PageSourceSearch

https://www.csfinance.app.br/assets/index-q3d-XdZC.js

js csfinance.app.br collected 2026-10-09 23:08:15 UTC 1,552,926 bytes, 941 lines download raw bytes

vendor: 6,424 bytes, lines 1-9
1var G5=Object.defineProperty;var Q_=t=>{throw TypeError(t)};var K5=(t,e,r)=>e in t?G5(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var mo=(t,e,r)=>K5(t,typeof e!="symbol"?e+"":e,r),Tv=(t,e,r)=>e.has(t)||Q_("Cannot "+r);var ue=(t,e,r)=>(Tv(t,e,"read from private field"),r?r.call(t):e.get(t)),_t=(t,e,r)=>e.has(t)?Q_("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,r),tt=(t,e,r,n)=>(Tv(t,e,"write to private field"),n?n.call(t,r):e.set(t,r),r),xn=(t,e,r)=>(Tv(t,e,"access private method"),r);var _p=(t,e,r,n)=>({set _(s){tt(t,e,s,r)},get _(){return ue(t,e,n)}});function X5(t,e){for(var r=0;r<e.length;r++){const n=e[r];if(typeof n!="string"&&!Array.isArray(n)){for(const s in n)if(s!=="default"&&!(s in t)){const i=Object.getOwnPropertyDescriptor(n,s);i&&Object.defineProperty(t,s,i.get?i:{enumerable:!0,get:()=>n[s]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))n(s);new MutationObserver(s=>{for(const i of s)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&n(o)}).observe(document,{childList:!0,subtree:!0});function r(s){const i={};return s.integrity&&(i.integrity=s.integrity),s.referrerPolicy&&(i.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?i.credentials="include":s.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function n(s){if(s.ep)return;s.ep=!0;const i=r(s);fetch(s.href,i)}})();var ri=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function md(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function Y5(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var r=function n(){return this instanceof n?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};r.prototype=e.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(t).forEach(function(n){var s=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(r,n,s.get?s:{enumerable:!0,get:function(){return t[n]}})}),r}var RA={exports:{}},Gg={},OA={exports:{}},vt={};/**
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 Wh=Symbol.for("react.element"),J5=Symbol.for("react.portal"),Q5=Symbol.for("react.fragment"),Z5=Symbol.for("react.strict_mode"),e6=Symbol.for("react.profiler"),t6=Symbol.for("react.provider"),r6=Symbol.for("react.context"),n6=Symbol.for("react.forward_ref"),s6=Symbol.for("react.suspense"),i6=Symbol.for("react.memo"),o6=Symbol.for("react.lazy"),Z_=Symbol.iterator;function a6(t){return t===null||typeof t!="object"?null:(t=Z_&&t[Z_]||t["@@iterator"],typeof t=="function"?t:null)}var PA={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},MA=Object.assign,IA={};function gd(t,e,r){this.props=t,this.context=e,this.refs=IA,this.updater=r||PA}gd.prototype.isReactComponent={};gd.prototype.setState=function(t,e){if(typeof t!="object"&&typeof t!="function"&&t!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,t,e,"setState")};gd.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")};function DA(){}DA.prototype=gd.prototype;function Fb(t,e,r){this.props=t,this.context=e,this.refs=IA,this.updater=r||PA}var Bb=Fb.prototype=new DA;Bb.constructor=Fb;MA(Bb,gd.prototype);Bb.isPureReactComponent=!0;var eE=Array.isArray,LA=Object.prototype.hasOwnProperty,$b={current:null},FA={key:!0,ref:!0,__self:!0,__source:!0};function BA(t,e,r){var n,s={},i=null,o=null;if(e!=null)for(n in e.ref!==void 0&&(o=e.ref),e.key!==void 0&&(i=""+e.key),e)LA.call(e,n)&&!FA.hasOwnProperty(n)&&(s[n]=e[n]);var a=arguments.length-2;if(a===1)s.children=r;else if(1<a){for(var l=Array(a),u=0;u<a;u++)l[u]=arguments[u+2];s.children=l}if(t&&t.defaultProps)for(n in a=t.defaultProps,a)s[n]===void 0&&(s[n]=a[n]);return{$$typeof:Wh,type:t,key:i,ref:o,props:s,_owner:$b.current}}function l6(t,e){return{$$typeof:Wh,type:t.type,key:e,ref:t.ref,props:t.props,_owner:t._owner}}function zb(t){return typeof t=="object"&&t!==null&&t.$$typeof===Wh}function c6(t){var e={"=":"=0",":":"=2"};return"$"+t.replace(/[=:]/g,function(r){return e[r]})}var tE=/\/+/g;function Cv(t,e){return typeof t=="object"&&t!==null&&t.key!=null?c6(""+t.key):e.toString(36)}function Sm(t,e,r,n,s){var i=typeof t;(i==="undefined"||i==="boolean")&&(t=null);var o=!1;if(t===null)o=!0;else switch(i){case"string":case"number":o=!0;break;case"object":switch(t.$$typeof){case Wh:case J5:o=!0}}if(o)return o=t,s=s(o),t=n===""?"."+Cv(o,0):n,eE(s)?(r="",t!=null&&(r=t.replace(tE,"$&/")+"/"),Sm(s,e,r,"",function(u){return u})):s!=null&&(zb(s)&&(s=l6(s,r+(!s.key||o&&o.key===s.key?"":(""+s.key).replace(tE,"$&/")+"/")+t)),e.push(s)),1;if(o=0,n=n===""?".":n+":",eE(t))for(var a=0;a<t.length;a++){i=t[a];var l=n+Cv(i,a);o+=Sm(i,e,r,l,s)}else if(l=a6(t),typeof l=="function")for(t=l.call(t),a=0;!(i=t.next()).done;)i=i.value,l=n+Cv(i,a++),o+=Sm(i,e,r,l,s);else if(i==="object")throw e=String(t),Error("Objects are not valid as a React child (found: "+(e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)+"). If you meant to render a collection of children, use an array instead.");return o}function Ep(t,e,r){if(t==null)return t;var n=[],s=0;return Sm(t,n,"","",function(i){return e.call(r,i,s++)}),n}function u6(t){if(t._status===-1){var e=t._result;e=e(),e.then(function(r){(t._status===0||t._status===-1)&&(t._status=1,t._result=r)},function(r){(t._status===0||t._status===-1)&&(t._status=2,t._result=r)}),t._status===-1&&(t._status=0,t._result=e)}if(t._status===1)return t._result.default;throw t._result}var qn={current:null},_m={transition:null},d6={ReactCurrentDispatcher:qn,ReactCurrentBatchConfig:_m,ReactCurrentOwner:$b};function $A(){throw Error("act(...) is not supported in production builds of React.")}
vendor: 7,847 bytes, lines 9-25
9vt.Children={map:Ep,forEach:function(t,e,r){Ep(t,function(){e.apply(this,arguments)},r)},count:function(t){var e=0;return Ep(t,function(){e++}),e},toArray:function(t){return Ep(t,function(e){return e})||[]},only:function(t){if(!zb(t))throw Error("React.Children.only expected to receive a single React element child.");return t}};vt.Component=gd;vt.Fragment=Q5;vt.Profiler=e6;vt.PureComponent=Fb;vt.StrictMode=Z5;vt.Suspense=s6;vt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=d6;vt.act=$A;vt.cloneElement=function(t,e,r){if(t==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+t+".");var n=MA({},t.props),s=t.key,i=t.ref,o=t._owner;if(e!=null){if(e.ref!==void 0&&(i=e.ref,o=$b.current),e.key!==void 0&&(s=""+e.key),t.type&&t.type.defaultProps)var a=t.type.defaultProps;for(l in e)LA.call(e,l)&&!FA.hasOwnProperty(l)&&(n[l]=e[l]===void 0&&a!==void 0?a[l]:e[l])}var l=arguments.length-2;if(l===1)n.children=r;else if(1<l){a=Array(l);for(var u=0;u<l;u++)a[u]=arguments[u+2];n.children=a}return{$$typeof:Wh,type:t.type,key:s,ref:i,props:n,_owner:o}};vt.createContext=function(t){return t={$$typeof:r6,_currentValue:t,_currentValue2:t,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},t.Provider={$$typeof:t6,_context:t},t.Consumer=t};vt.createElement=BA;vt.createFactory=function(t){var e=BA.bind(null,t);return e.type=t,e};vt.createRef=function(){return{current:null}};vt.forwardRef=function(t){return{$$typeof:n6,render:t}};vt.isValidElement=zb;vt.lazy=function(t){return{$$typeof:o6,_payload:{_status:-1,_result:t},_init:u6}};vt.memo=function(t,e){return{$$typeof:i6,type:t,compare:e===void 0?null:e}};vt.startTransition=function(t){var e=_m.transition;_m.transition={};try{t()}finally{_m.transition=e}};vt.unstable_act=$A;vt.useCallback=function(t,e){return qn.current.useCallback(t,e)};vt.useContext=function(t){return qn.current.useContext(t)};vt.useDebugValue=function(){};vt.useDeferredValue=function(t){return qn.current.useDeferredValue(t)};vt.useEffect=function(t,e){return qn.current.useEffect(t,e)};vt.useId=function(){return qn.current.useId()};vt.useImperativeHandle=function(t,e,r){return qn.current.useImperativeHandle(t,e,r)};vt.useInsertionEffect=function(t,e){return qn.current.useInsertionEffect(t,e)};vt.useLayoutEffect=function(t,e){return qn.current.useLayoutEffect(t,e)};vt.useMemo=function(t,e){return qn.current.useMemo(t,e)};vt.useReducer=function(t,e,r){return qn.current.useReducer(t,e,r)};vt.useRef=function(t){return qn.current.useRef(t)};vt.useState=function(t){return qn.current.useState(t)};vt.useSyncExternalStore=function(t,e,r){return qn.current.useSyncExternalStore(t,e,r)};vt.useTransition=function(){return qn.current.useTransition()};vt.version="18.3.1";OA.exports=vt;var w=OA.exports;const de=md(w),Ub=X5({__proto__:null,default:de},[w]);/**
10 * @license React
11 * react-jsx-runtime.production.min.js
12 *
13 * Copyright (c) Facebook, Inc. and its affiliates.
14 *
15 * This source code is licensed under the MIT license found in the
16 * LICENSE file in the root directory of this source tree.
17 */var f6=w,h6=Symbol.for("react.element"),p6=Symbol.for("react.fragment"),m6=Object.prototype.hasOwnProperty,g6=f6.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,x6={key:!0,ref:!0,__self:!0,__source:!0};function zA(t,e,r){var n,s={},i=null,o=null;r!==void 0&&(i=""+r),e.key!==void 0&&(i=""+e.key),e.ref!==void 0&&(o=e.ref);for(n in e)m6.call(e,n)&&!x6.hasOwnProperty(n)&&(s[n]=e[n]);if(t&&t.defaultProps)for(n in e=t.defaultProps,e)s[n]===void 0&&(s[n]=e[n]);return{$$typeof:h6,type:t,key:i,ref:o,props:s,_owner:g6.current}}Gg.Fragment=p6;Gg.jsx=zA;Gg.jsxs=zA;RA.exports=Gg;var c=RA.exports,UA={exports:{}},As={},HA={exports:{}},VA={};/**
18 * @license React
19 * scheduler.production.min.js
20 *
21 * Copyright (c) Facebook, Inc. and its affiliates.
22 *
23 * This source code is licensed under the MIT license found in the
24 * LICENSE file in the root directory of this source tree.
25 */(function(t){function e(G,O){var W=G.length;G.push(O);e:for(;0<W;){var ee=W-1>>>1,k=G[ee];if(0<s(k,O))G[ee]=O,G[W]=k,W=ee;else break e}}function r(G){return G.length===0?null:G[0]}function n(G){if(G.length===0)return null;var O=G[0],W=G.pop();if(W!==O){G[0]=W;e:for(var ee=0,k=G.length,z=k>>>1;ee<z;){var I=2*(ee+1)-1,B=G[I],q=I+1,X=G[q];if(0>s(B,W))q<k&&0>s(X,B)?(G[ee]=X,G[q]=W,ee=q):(G[ee]=B,G[I]=W,ee=I);else if(q<k&&0>s(X,W))G[ee]=X,G[q]=W,ee=q;else break e}}return O}function s(G,O){var W=G.sortIndex-O.sortIndex;return W!==0?W:G.id-O.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;t.unstable_now=function(){return i.now()}}else{var o=Date,a=o.now();t.unstable_now=function(){return o.now()-a}}var l=[],u=[],d=1,f=null,h=3,p=!1,g=!1,m=!1,x=typeof setTimeout=="function"?setTimeout:null,v=typeof clearTimeout=="function"?clearTimeout:null,y=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function b(G){for(var O=r(u);O!==null;){if(O.callback===null)n(u);else if(O.startTime<=G)n(u),O.sortIndex=O.expirationTime,e(l,O);else break;O=r(u)}}function S(G){if(m=!1,b(G),!g)if(r(l)!==null)g=!0,se(E);else{var O=r(u);O!==null&&he(S,O.startTime-G)}}function E(G,O){g=!1,m&&(m=!1,v(A),A=-1),p=!0;var W=h;try{for(b(O),f=r(l);f!==null&&(!(f.expirationTime>O)||G&&!V());){var ee=f.callback;if(typeof ee=="function"){f.callback=null,h=f.priorityLevel;var k=ee(f.expirationTime<=O);O=t.unstable_now(),typeof k=="function"?f.callback=k:f===r(l)&&n(l),b(O)}else n(l);f=r(l)}if(f!==null)var z=!0;else{var I=r(u);I!==null&&he(S,I.startTime-O),z=!1}return z}finally{f=null,h=W,p=!1}}var C=!1,_=null,A=-1,N=5,D=-1;function V(){return!(t.unstable_now()-D<N)}function H(){if(_!==null){var G=t.unstable_now();D=G;var O=!0;try{O=_(!0,G)}finally{O?U():(C=!1,_=null)}}else C=!1}var U;if(typeof y=="function")U=function(){y(H)};else if(typeof MessageChannel<"u"){var K=new MessageChannel,te=K.port2;K.port1.onmessage=H,U=function(){te.postMessage(null)}}else U=function(){x(H,0)};function se(G){_=G,C||(C=!0,U())}function he(G,O){A=x(function(){G(t.unstable_now())},O)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(G){G.callback=null},t.unstable_continueExecution=function(){g||p||(g=!0,se(E))},t.unstable_forceFrameRate=function(G){0>G||125<G?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):N=0<G?Math.floor(1e3/G):5},t.unstable_getCurrentPriorityLevel=function(){return h},t.unstable_getFirstCallbackNode=function(){return r(l)},t.unstable_next=function(G){switch(h){case 1:case 2:case 3:var O=3;break;default:O=h}var W=h;h=O;try{return G()}finally{h=W}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(G,O){switch(G){case 1:case 2:case 3:case 4:case 5:break;default:G=3}var W=h;h=G;try{return O()}finally{h=W}},t.unstable_scheduleCallback=function(G,O,W){var ee=t.unstable_now();switch(typeof W=="object"&&W!==null?(W=W.delay,W=typeof W=="number"&&0<W?ee+W:ee):W=ee,G){case 1:var k=-1;break;case 2:k=250;break;case 5:k=1073741823;break;case 4:k=1e4;break;default:k=5e3}return k=W+k,G={id:d++,callback:O,priorityLevel:G,startTime:W,expirationTime:k,sortIndex:-1},W>ee?(G.sortIndex=W,e(u,G),r(l)===null&&G===r(u)&&(m?(v(A),A=-1):m=!0,he(S,W-ee))):(G.sortIndex=k,e(l,G),g||p||(g=!0,se(E))),G},t.unstable_shouldYield=V,t.unstable_wrapCallback=function(G){var O=h;return function(){var W=h;h=O;try{return G.apply(this,arguments)}finally{h=W}}}})(VA);HA.exports=VA;
vendor: 4,229 bytes, lines 25-33
25var v6=HA.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 y6=w,Cs=v6;function we(t){for(var e="https://reactjs.org/docs/error-decoder.html?invariant="+t,r=1;r<arguments.length;r++)e+="&args[]="+encodeURIComponent(arguments[r]);return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var WA=new Set,Gf={};function mc(t,e){Vu(t,e),Vu(t+"Capture",e)}function Vu(t,e){for(Gf[t]=e,t=0;t<e.length;t++)WA.add(e[t])}var Do=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),py=Object.prototype.hasOwnProperty,w6=/^[: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]*$/,rE={},nE={};function b6(t){return py.call(nE,t)?!0:py.call(rE,t)?!1:w6.test(t)?nE[t]=!0:(rE[t]=!0,!1)}function S6(t,e,r,n){if(r!==null&&r.type===0)return!1;switch(typeof e){case"function":case"symbol":return!0;case"boolean":return n?!1:r!==null?!r.acceptsBooleans:(t=t.toLowerCase().slice(0,5),t!=="data-"&&t!=="aria-");default:return!1}}function _6(t,e,r,n){if(e===null||typeof e>"u"||S6(t,e,r,n))return!0;if(n)return!1;if(r!==null)switch(r.type){case 3:return!e;case 4:return e===!1;case 5:return isNaN(e);case 6:return isNaN(e)||1>e}return!1}function Gn(t,e,r,n,s,i,o){this.acceptsBooleans=e===2||e===3||e===4,this.attributeName=n,this.attributeNamespace=s,this.mustUseProperty=r,this.propertyName=t,this.type=e,this.sanitizeURL=i,this.removeEmptyString=o}var pn={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(t){pn[t]=new Gn(t,0,!1,t,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(t){var e=t[0];pn[e]=new Gn(e,1,!1,t[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(t){pn[t]=new Gn(t,2,!1,t.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(t){pn[t]=new Gn(t,2,!1,t,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(t){pn[t]=new Gn(t,3,!1,t.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(t){pn[t]=new Gn(t,3,!0,t,null,!1,!1)});["capture","download"].forEach(function(t){pn[t]=new Gn(t,4,!1,t,null,!1,!1)});["cols","rows","size","span"].forEach(function(t){pn[t]=new Gn(t,6,!1,t,null,!1,!1)});["rowSpan","start"].forEach(function(t){pn[t]=new Gn(t,5,!1,t.toLowerCase(),null,!1,!1)});var Hb=/[\-:]([a-z])/g;function Vb(t){return t[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode
33-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(t){var e=t.replace(Hb,Vb);pn[e]=new Gn(e,1,!1,t,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(t){var e=t.replace(Hb,Vb);pn[e]=new Gn(e,1,!1,t,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(t){var e=t.replace(Hb,Vb);pn[e]=new Gn(e,1,!1,t,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(t){pn[t]=new Gn(t,1,!1,t.toLowerCase(),null,!1,!1)});pn.xlinkHref=new Gn("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(t){pn[t]=new Gn(t,1,!1,t.toLowerCase(),null,!0,!0)});function Wb(t,e,r,n){var s=pn.hasOwnProperty(e)?pn[e]:null;(s!==null?s.type!==0:n||!(2<e.length)||e[0]!=="o"&&e[0]!=="O"||e[1]!=="n"&&e[1]!=="N")&&(_6(e,r,s,n)&&(r=null),n||s===null?b6(e)&&(r===null?t.removeAttribute(e):t.setAttribute(e,""+r)):s.mustUseProperty?t[s.propertyName]=r===null?s.type===3?!1:"":r:(e=s.attributeName,n=s.attributeNamespace,r===null?t.removeAttribute(e):(s=s.type,r=s===3||s===4&&r===!0?"":""+r,n?t.setAttributeNS(n,e,r):t.setAttribute(e,r))))}var qo=y6.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Tp=Symbol.for("react.element"),nu=Symbol.for("react.portal"),su=Symbol.for("react.fragment"),qb=Symbol.for("react.strict_mode"),my=Symbol.for("react.profiler"),qA=Symbol.for("react.provider"),GA=Symbol.for("react.context"),Gb=Symbol.for("react.forward_ref"),gy=Symbol.for("react.suspense"),xy=Symbol.for("react.suspense_list"),Kb=Symbol.for("react.memo"),la=Symbol.for("react.lazy"),KA=Symbol.for("react.offscreen"),sE=Symbol.iterator;function Dd(t){return t===null||typeof t!="object"?null:(t=sE&&t[sE]||t["@@iterator"],typeof t=="function"?t:null)}var rr=Object.assign,kv;function tf(t){if(kv===void 0)try{throw Error()}catch(r){var e=r.stack.trim().match(/\n( *(at )?)/);kv=e&&e[1]||""}return`
34`+kv+t}var Nv=!1;function Av(t,e){if(!t||Nv)return"";Nv=!0;var r=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(e)if(e=function(){throw Error()},Object.defineProperty(e.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(e,[])}catch(u){var n=u}Reflect.construct(t,[],e)}else{try{e.call()}catch(u){n=u}t.call(e.prototype)}else{try{throw Error()}catch(u){n=u}t()}}catch(u){if(u&&n&&typeof u.stack=="string"){for(var s=u.stack.split(`
35`),i=n.stack.split(`
36`),o=s.length-1,a=i.length-1;1<=o&&0<=a&&s[o]!==i[a];)a--;for(;1<=o&&0<=a;o--,a--)if(s[o]!==i[a]){if(o!==1||a!==1)do if(o--,a--,0>a||s[o]!==i[a]){var l=`
37`+s[o].replace(" at new "," at ");return t.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",t.displayName)),l}while(1<=o&&0<=a);break}}}finally{Nv=!1,Error.prepareStackTrace=r}return(t=t?t.displayName||t.name:"")?tf(t):""}function E6(t){switch(t.tag){case 5:return tf(t.type);case 16:return tf("Lazy");case 13:return tf("Suspense");case 19:return tf("SuspenseList");case 0:case 2:case 15:return t=Av(t.type,!1),t;case 11:return t=Av(t.type.render,!1),t;case 1:return t=Av(t.type,!0),t;default:return""}}function vy(t){if(t==null)return null;if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case su:return"Fragment";case nu:return"Portal";case my:return"Profiler";case qb:return"StrictMode";case gy:return"Suspense";case xy:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case GA:return(t.displayName||"Context")+".Consumer";case qA:return(t._context.displayName||"Context")+".Provider";case Gb:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case Kb:return e=t.displayName||null,e!==null?e:vy(t.type)||"Memo";case la:e=t._payload,t=t._init;try{return vy(t(e))}catch{}}return null}function T6(t){var e=t.type;switch(t.tag){case 24:return"Cache";case 9:return(e.displayName||"Context")+".Consumer";case 10:return(e._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return t=e.render,t=t.displayName||t.name||"",e.displayName||(t!==""?"ForwardRef("+t+")":"ForwardRef");case 7:return"Fragment";case 5:return e;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return vy(e);case 8:return e===qb?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e}return null}function Ya(t){switch(typeof t){case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function XA(t){var e=t.type;
vendor: 6,052 bytes, line 37
37return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function C6(t){var e=XA(t)?"checked":"value",r=Object.getOwnPropertyDescriptor(t.constructor.prototype,e),n=""+t[e];if(!t.hasOwnProperty(e)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var s=r.get,i=r.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return s.call(this)},set:function(o){n=""+o,i.call(this,o)}}),Object.defineProperty(t,e,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(o){n=""+o},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function Cp(t){t._valueTracker||(t._valueTracker=C6(t))}function YA(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var r=e.getValue(),n="";return t&&(n=XA(t)?t.checked?"true":"false":t.value),t=n,t!==r?(e.setValue(t),!0):!1}function Xm(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}function yy(t,e){var r=e.checked;return rr({},e,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??t._wrapperState.initialChecked})}function iE(t,e){var r=e.defaultValue==null?"":e.defaultValue,n=e.checked!=null?e.checked:e.defaultChecked;r=Ya(e.value!=null?e.value:r),t._wrapperState={initialChecked:n,initialValue:r,controlled:e.type==="checkbox"||e.type==="radio"?e.checked!=null:e.value!=null}}function JA(t,e){e=e.checked,e!=null&&Wb(t,"checked",e,!1)}function wy(t,e){JA(t,e);var r=Ya(e.value),n=e.type;if(r!=null)n==="number"?(r===0&&t.value===""||t.value!=r)&&(t.value=""+r):t.value!==""+r&&(t.value=""+r);else if(n==="submit"||n==="reset"){t.removeAttribute("value");return}e.hasOwnProperty("value")?by(t,e.type,r):e.hasOwnProperty("defaultValue")&&by(t,e.type,Ya(e.defaultValue)),e.checked==null&&e.defaultChecked!=null&&(t.defaultChecked=!!e.defaultChecked)}function oE(t,e,r){if(e.hasOwnProperty("value")||e.hasOwnProperty("defaultValue")){var n=e.type;if(!(n!=="submit"&&n!=="reset"||e.value!==void 0&&e.value!==null))return;e=""+t._wrapperState.initialValue,r||e===t.value||(t.value=e),t.defaultValue=e}r=t.name,r!==""&&(t.name=""),t.defaultChecked=!!t._wrapperState.initialChecked,r!==""&&(t.name=r)}function by(t,e,r){(e!=="number"||Xm(t.ownerDocument)!==t)&&(r==null?t.defaultValue=""+t._wrapperState.initialValue:t.defaultValue!==""+r&&(t.defaultValue=""+r))}var rf=Array.isArray;function xu(t,e,r,n){if(t=t.options,e){e={};for(var s=0;s<r.length;s++)e["$"+r[s]]=!0;for(r=0;r<t.length;r++)s=e.hasOwnProperty("$"+t[r].value),t[r].selected!==s&&(t[r].selected=s),s&&n&&(t[r].defaultSelected=!0)}else{for(r=""+Ya(r),e=null,s=0;s<t.length;s++){if(t[s].value===r){t[s].selected=!0,n&&(t[s].defaultSelected=!0);return}e!==null||t[s].disabled||(e=t[s])}e!==null&&(e.selected=!0)}}function Sy(t,e){if(e.dangerouslySetInnerHTML!=null)throw Error(we(91));return rr({},e,{value:void 0,defaultValue:void 0,children:""+t._wrapperState.initialValue})}function aE(t,e){var r=e.value;if(r==null){if(r=e.children,e=e.defaultValue,r!=null){if(e!=null)throw Error(we(92));if(rf(r)){if(1<r.length)throw Error(we(93));r=r[0]}e=r}e==null&&(e=""),r=e}t._wrapperState={initialValue:Ya(r)}}function QA(t,e){var r=Ya(e.value),n=Ya(e.defaultValue);r!=null&&(r=""+r,r!==t.value&&(t.value=r),e.defaultValue==null&&t.defaultValue!==r&&(t.defaultValue=r)),n!=null&&(t.defaultValue=""+n)}function lE(t){var e=t.textContent;e===t._wrapperState.initialValue&&e!==""&&e!==null&&(t.value=e)}function ZA(t){switch(t){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function _y(t,e){return t==null||t==="http://www.w3.org/1999/xhtml"?ZA(e):t==="http://www.w3.org/2000/svg"&&e==="foreignObject"?"http://www.w3.org/1999/xhtml":t}var kp,ej=function(t){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(e,r,n,s){MSApp.execUnsafeLocalFunction(function(){return t(e,r,n,s)})}:t}(function(t,e){if(t.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in t)t.innerHTML=e;else{for(kp=kp||document.createElement("div"),kp.innerHTML="<svg>"+e.valueOf().toString()+"</svg>",e=kp.firstChild;t.firstChild;)t.removeChild(t.firstChild);for(;e.firstChild;)t.appendChild(e.firstChild)}});function Kf(t,e){if(e){var r=t.firstChild;if(r&&r===t.lastChild&&r.nodeType===3){r.nodeValue=e;return}}t.textContent=e}var xf={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},k6=["Webkit","ms","Moz","O"];Object.keys(xf).forEach(function(t){k6.forEach(function(e){e=e+t.charAt(0).toUpperCase()+t.substring(1),xf[e]=xf[t]})});function tj(t,e,r){return e==null||typeof e=="boolean"||e===""?"":r||typeof e!="number"||e===0||xf.hasOwnProperty(t)&&xf[t]?(""+e).trim():e+"px"}function rj(t,e){t=t.style;for(var r in e)if(e.hasOwnProperty(r)){var n=r.indexOf("--")===0,s=tj(r,e[r],n);r==="float"&&(r="cssFloat"),n?t.setProperty(r,s):t[r]=s}}var N6=rr({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 Ey(t,e){if(e){if(N6[t]&&(e.children!=null||e.dangerouslySetInnerHTML!=null))throw Error(we(137,t));if(e.dangerouslySetInnerHTML!=null){if(e.children!=null)throw Error(we(60));if(typeof e.dangerouslySetInnerHTML!="object"||!("__html"in e.dangerouslySetInnerHTML))throw Error(we(61))}if(e.style!=null&&typeof e.style!="object")throw Error(we(62))}}function Ty(t,e){if(t.indexOf("-")===-1)return typeof e.is=="str
37ing";switch(t){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Cy=null;function Xb(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var ky=null,vu=null,yu=null;function cE(t){if(t=Kh(t)){if(typeof ky!="function")throw Error(we(280));var e=t.stateNode;e&&(e=Qg(e),ky(t.stateNode,t.type,e))}}function nj(t){vu?yu?yu.push(t):yu=[t]:vu=t}function sj(){if(vu){var t=vu,e=yu;if(yu=vu=null,cE(t),e)for(t=0;t<e.length;t++)cE(e[t])}}function ij(t,e){return t(e)}function oj(){}var jv=!1;function aj(t,e,r){if(jv)return t(e,r);jv=!0;try{return ij(t,e,r)}finally{jv=!1,(vu!==null||yu!==null)&&(oj(),sj())}}function Xf(t,e){var r=t.stateNode;if(r===null)return null;var n=Qg(r);if(n===null)return null;r=n[e];e:switch(e){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(n=!n.disabled)||(t=t.type,n=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!n;break e;default:t=!1}if(t)return null;if(r&&typeof r!="function")throw Error(we(231,e,typeof r));return r}var Ny=!1;if(Do)try{var Ld={};Object.defineProperty(Ld,"passive",{get:function(){Ny=!0}}),window.addEventListener("test",Ld,Ld),window.removeEventListener("test",Ld,Ld)}catch{Ny=!1}function A6(t,e,r,n,s,i,o,a,l){var u=Array.prototype.slice.call(arguments,3);try{e.apply(r,u)}catch(d){this.onError(d)}}var vf=!1,Ym=null,Jm=!1,Ay=null,j6={onError:function(t){vf=!0,Ym=t}};function R6(t,e,r,n,s,i,o,a,l){vf=!1,Ym=null,A6.apply(j6,arguments)}function O6(t,e,r,n,s,i,o,a,l){if(R6.apply(this,arguments),vf){if(vf){var u=Ym;vf=!1,Ym=null}else throw Error(we(198));Jm||(Jm=!0,Ay=u)}}function gc(t){var e=t,r=t;if(t.alternate)for(;e.return;)e=e.return;else{t=e;do e=t,e.flags&4098&&(r=e.return),t=e.return;while(t)}return e.tag===3?r:null}function lj(t){if(t.tag===13){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function uE(t){if(gc(t)!==t)throw Error(we(188))}function P6(t){var e=t.alternate;if(!e){if(e=gc(t),e===null)throw Error(we(188));return e!==t?null:t}for(var r=t,n=e;;){var s=r.return;if(s===null)break;var i=s.alternate;if(i===null){if(n=s.return,n!==null){r=n;continue}break}if(s.child===i.child){for(i=s.child;i;){if(i===r)return uE(s),t;if(i===n)return uE(s),e;i=i.sibling}throw Error(we(188))}if(r.return!==n.return)r=s,n=i;else{for(var o=!1,a=s.child;a;){if(a===r){o=!0,r=s,n=i;break}if(a===n){o=!0,n=s,r=i;break}a=a.sibling}if(!o){for(a=i.child;a;){if(a===r){o=!0,r=i,n=s;break}if(a===n){o=!0,n=i,r=s;break}a=a.sibling}if(!o)throw Error(we(189))}}if(r.alternate!==n)throw Error(we(190))}if(r.tag!==3)throw Error(we(188));return r.stateNode.current===r?t:e}function cj(t){return t=P6(t),t!==null?uj(t):null}function uj(t){if(t.tag===5||t.tag===6)return t;for(t=t.child;t!==null;){var e=uj(t);if(e!==null)return e;t=t.sibling}return null}var dj=Cs.unstable_scheduleCallback,dE=Cs.unstable_cancelCallback,M6=Cs.unstable_shouldYield,I6=Cs.unstable_requestPaint,wr=Cs.unstable_now,D6=Cs.unstable_getCurrentPriorityLevel,Yb=Cs.unstable_ImmediatePriority,fj=Cs.unstable_UserBlockingPriority,Qm=Cs.unstable_NormalPriority,L6=Cs.unstable_LowPriority,hj=Cs.unstable_IdlePriority,Kg=null,eo=null;function F6(t){if(eo&&typeof eo.onCommitFiberRoot=="function")try{eo.onCommitFiberRoot(Kg,t,void 0,(t.current.flags&128)===128)}catch{}}var Ai=Math.clz32?Math.clz32:z6,B6=Math.log,$6=Math.LN2;function z6(t){return t>>>=0,t===0?32:31-(B6(t)/$6|0)|0}
vendor: 4,442 bytes, line 37
37var Np=64,Ap=4194304;function nf(t){switch(t&-t){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return t&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return t}}function Zm(t,e){var r=t.pendingLanes;if(r===0)return 0;var n=0,s=t.suspendedLanes,i=t.pingedLanes,o=r&268435455;if(o!==0){var a=o&~s;a!==0?n=nf(a):(i&=o,i!==0&&(n=nf(i)))}else o=r&~s,o!==0?n=nf(o):i!==0&&(n=nf(i));if(n===0)return 0;if(e!==0&&e!==n&&!(e&s)&&(s=n&-n,i=e&-e,s>=i||s===16&&(i&4194240)!==0))return e;if(n&4&&(n|=r&16),e=t.entangledLanes,e!==0)for(t=t.entanglements,e&=n;0<e;)r=31-Ai(e),s=1<<r,n|=t[r],e&=~s;return n}function U6(t,e){switch(t){case 1:case 2:case 4:return e+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function H6(t,e){for(var r=t.suspendedLanes,n=t.pingedLanes,s=t.expirationTimes,i=t.pendingLanes;0<i;){var o=31-Ai(i),a=1<<o,l=s[o];l===-1?(!(a&r)||a&n)&&(s[o]=U6(a,e)):l<=e&&(t.expiredLanes|=a),i&=~a}}function jy(t){return t=t.pendingLanes&-1073741825,t!==0?t:t&1073741824?1073741824:0}function pj(){var t=Np;return Np<<=1,!(Np&4194240)&&(Np=64),t}function Rv(t){for(var e=[],r=0;31>r;r++)e.push(t);return e}function qh(t,e,r){t.pendingLanes|=e,e!==536870912&&(t.suspendedLanes=0,t.pingedLanes=0),t=t.eventTimes,e=31-Ai(e),t[e]=r}function V6(t,e){var r=t.pendingLanes&~e;t.pendingLanes=e,t.suspendedLanes=0,t.pingedLanes=0,t.expiredLanes&=e,t.mutableReadLanes&=e,t.entangledLanes&=e,e=t.entanglements;var n=t.eventTimes;for(t=t.expirationTimes;0<r;){var s=31-Ai(r),i=1<<s;e[s]=0,n[s]=-1,t[s]=-1,r&=~i}}function Jb(t,e){var r=t.entangledLanes|=e;for(t=t.entanglements;r;){var n=31-Ai(r),s=1<<n;s&e|t[n]&e&&(t[n]|=e),r&=~s}}var It=0;function mj(t){return t&=-t,1<t?4<t?t&268435455?16:536870912:4:1}var gj,Qb,xj,vj,yj,Ry=!1,jp=[],Ma=null,Ia=null,Da=null,Yf=new Map,Jf=new Map,pa=[],W6="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 fE(t,e){switch(t){case"focusin":case"focusout":Ma=null;break;case"dragenter":case"dragleave":Ia=null;break;case"mouseover":case"mouseout":Da=null;break;case"pointerover":case"pointerout":Yf.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":Jf.delete(e.pointerId)}}function Fd(t,e,r,n,s,i){return t===null||t.nativeEvent!==i?(t={blockedOn:e,domEventName:r,eventSystemFlags:n,nativeEvent:i,targetContainers:[s]},e!==null&&(e=Kh(e),e!==null&&Qb(e)),t):(t.eventSystemFlags|=n,e=t.targetContainers,s!==null&&e.indexOf(s)===-1&&e.push(s),t)}function q6(t,e,r,n,s){switch(e){case"focusin":return Ma=Fd(Ma,t,e,r,n,s),!0;case"dragenter":return Ia=Fd(Ia,t,e,r,n,s),!0;case"mouseover":return Da=Fd(Da,t,e,r,n,s),!0;case"pointerover":var i=s.pointerId;return Yf.set(i,Fd(Yf.get(i)||null,t,e,r,n,s)),!0;case"gotpointercapture":return i=s.pointerId,Jf.set(i,Fd(Jf.get(i)||null,t,e,r,n,s)),!0}return!1}function wj(t){var e=kl(t.target);if(e!==null){var r=gc(e);if(r!==null){if(e=r.tag,e===13){if(e=lj(r),e!==null){t.blockedOn=e,yj(t.priority,function(){xj(r)});return}}else if(e===3&&r.stateNode.current.memoizedState.isDehydrated){t.blockedOn=r.tag===3?r.stateNode.containerInfo:null;return}}}t.blockedOn=null}function Em(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var r=Oy(t.domEventName,t.eventSystemFlags,e[0],t.nativeEvent);if(r===null){r=t.nativeEvent;var n=new r.constructor(r.type,r);Cy=n,r.target.dispatchEvent(n),Cy=null}else return e=Kh(r),e!==null&&Qb(e),t.blockedOn=r,!1;e.shift()}return!0}function hE(t,e,r){Em(t)&&r.delete(e)}function G6(){Ry=!1,Ma!==null&&Em(Ma)&&(Ma=null),Ia!==null&&Em(Ia)&&(I
vendor: 11,887 bytes, line 37
37a=null),Da!==null&&Em(Da)&&(Da=null),Yf.forEach(hE),Jf.forEach(hE)}function Bd(t,e){t.blockedOn===e&&(t.blockedOn=null,Ry||(Ry=!0,Cs.unstable_scheduleCallback(Cs.unstable_NormalPriority,G6)))}function Qf(t){function e(s){return Bd(s,t)}if(0<jp.length){Bd(jp[0],t);for(var r=1;r<jp.length;r++){var n=jp[r];n.blockedOn===t&&(n.blockedOn=null)}}for(Ma!==null&&Bd(Ma,t),Ia!==null&&Bd(Ia,t),Da!==null&&Bd(Da,t),Yf.forEach(e),Jf.forEach(e),r=0;r<pa.length;r++)n=pa[r],n.blockedOn===t&&(n.blockedOn=null);for(;0<pa.length&&(r=pa[0],r.blockedOn===null);)wj(r),r.blockedOn===null&&pa.shift()}var wu=qo.ReactCurrentBatchConfig,e0=!0;function K6(t,e,r,n){var s=It,i=wu.transition;wu.transition=null;try{It=1,Zb(t,e,r,n)}finally{It=s,wu.transition=i}}function X6(t,e,r,n){var s=It,i=wu.transition;wu.transition=null;try{It=4,Zb(t,e,r,n)}finally{It=s,wu.transition=i}}function Zb(t,e,r,n){if(e0){var s=Oy(t,e,r,n);if(s===null)zv(t,e,n,t0,r),fE(t,n);else if(q6(s,t,e,r,n))n.stopPropagation();else if(fE(t,n),e&4&&-1<W6.indexOf(t)){for(;s!==null;){var i=Kh(s);if(i!==null&&gj(i),i=Oy(t,e,r,n),i===null&&zv(t,e,n,t0,r),i===s)break;s=i}s!==null&&n.stopPropagation()}else zv(t,e,n,null,r)}}var t0=null;function Oy(t,e,r,n){if(t0=null,t=Xb(n),t=kl(t),t!==null)if(e=gc(t),e===null)t=null;else if(r=e.tag,r===13){if(t=lj(e),t!==null)return t;t=null}else if(r===3){if(e.stateNode.current.memoizedState.isDehydrated)return e.tag===3?e.stateNode.containerInfo:null;t=null}else e!==t&&(t=null);return t0=t,null}function bj(t){switch(t){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(D6()){case Yb:return 1;case fj:return 4;case Qm:case L6:return 16;case hj:return 536870912;default:return 16}default:return 16}}var Ea=null,e2=null,Tm=null;function Sj(){if(Tm)return Tm;var t,e=e2,r=e.length,n,s="value"in Ea?Ea.value:Ea.textContent,i=s.length;for(t=0;t<r&&e[t]===s[t];t++);var o=r-t;for(n=1;n<=o&&e[r-n]===s[i-n];n++);return Tm=s.slice(t,1<n?1-n:void 0)}function Cm(t){var e=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&e===13&&(t=13)):t=e,t===10&&(t=13),32<=t||t===13?t:0}function Rp(){return!0}function pE(){return!1}function js(t){function e(r,n,s,i,o){this._reactName=r,this._targetInst=s,this.type=n,this.nativeEvent=i,this.target=o,this.currentTarget=null;for(var a in t)t.hasOwnProperty(a)&&(r=t[a],this[a]=r?r(i):i[a]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?Rp:pE,this.isPropagationStopped=pE,this}return rr(e.prototype,{preventDefault:function(){this.defaultPrevented=!0;var r=this.nativeEvent;r&&(r.preventDefault?r.preventDefault():typeof r.returnValue!="unknown"&&(r.returnValue=!1),this.isDefaultPrevented=Rp)},stopPropagation:function(){var r=this.nativeEvent;r&&(r.stopPropagation?r.stopPropagation():typeof r.cancelBubble!="unknown"&&(r.cancelBubble=!0),this.isPropagationStopped=Rp)},persist:function(){},isPersistent:Rp}),e}var xd={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},t2=js(xd),Gh=rr({},xd,{view:0,detail:0}),Y6=js(Gh),Ov,Pv,$d,Xg=rr({},Gh,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:r2,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==$d&&($d&&t.type==="mousemove"?(Ov=t.screenX-$d.screenX,Pv=t.screenY-$d.screenY):Pv=Ov=0,$d=t),Ov)},movementY:function(t){return"movementY"in t?t.movementY:Pv}}),mE=js(Xg),J6=rr({},Xg,{dataTransfer:0}),Q6=js(J6),Z6=rr({},Gh,{relatedTarget:0}),Mv=js(Z6),e8=rr({},xd,{animationName:0,elapsedTime:0,pseudoElement:0}),t8=js(e8),r8=rr({},xd,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),n8=js(r8),s8=rr({},xd,{data:0}),gE=js(s8),i8={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},o8={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"},a8={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function l8(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=a8[t])?!!e[t]:!1}function r2(){return l8}var c8=rr({},Gh,{key:function(t){if(t.key){var e=i8[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=Cm(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?o8[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:r2,charCode:function(t){return t.type==="keypress"?Cm(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?Cm(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),u8=js(c8),d8=rr({},Xg,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),xE=js(d8),f8=rr({},Gh,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:r2}),h8=js(f8),p8=rr({},xd,{propertyName:0,elapsedTime:0,pseudoElement:0}),m8=js(p8),g8=rr({},Xg,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),x8=js(g8),v8=[9,13,27,32],n2=Do&&"CompositionEvent"in window,yf=null;Do&&"documentMode"in document&&(yf=document.documentMode);var y8=Do&&"TextEvent"in window&&!yf,_j=Do&&(!n2||yf&&8<yf&&11>=yf),vE=" ",yE=!1;function Ej(t,e){switch(t){case"keyup":return v8.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Tj(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var iu=!1;function w8(t,e){switch(t){case"compositionend":return Tj(e);case"keypress":return e.which!==32?null:(yE=!0,vE);case"textInput":return t=e.data,t===vE&&yE?null:t;default:return null}}function b8(t,e){if(iu)return t==="compositionend"||!n2&&Ej(t,e)?(t=Sj(),Tm=e2=Ea=null,iu=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1<e.char.length)return e.char;if(e.which)return String.fromCharCode(e.which)}return null;case"compositionend":return _j&&e.locale!=="ko"?null:e.data;default:return null}}var S8={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 wE(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!S8[t.type]:e==="textarea"}function Cj(t,e,r,n){nj(n),e=r0(e,"onChange"),0<e.length&&(r=new t2("onChange","change",null,r,n),t.push({event:r,listeners:e}))}var wf=null,Zf=null;function _8(t){Lj(t,0)}function Yg(t){var e=lu(t);if(YA(e))return t}function E8(t,e){if(t==="change")return e}var kj=!1;if(Do){var Iv;if(Do){var Dv="oninput"in document;if(!Dv){var bE=document.createElement("div");bE.setAttribute("oninput","return;"),Dv=typeof bE.oninput=="function"}Iv=Dv}else Iv=!1;kj=Iv&&(!document.documentMode||9<document.documentMode)}function SE(){wf&&(wf.detachEvent("onpropertychange",Nj),Zf=wf=null)}function Nj(t){if(t.propertyName==="value"&&Yg(Zf)){var e=[];Cj(e,Zf,t,Xb(t)),aj(_8,e)}}function T8(t,e,r){t==="focusin"?(SE(),wf=e,Zf=r,wf.attachEvent("onpropertychange",Nj)):t==="focusout"&&SE()}function C8(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return Yg(Zf)}function k8(t,e){if(t==="click")return Yg(e)}function N8(t,e){if(t==="input"||t==="change")return Yg(e)}function A8(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var Mi=typeof Object.is=="function"?Object.is:A8;function eh(t,e){if(Mi(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;var r=Object.keys(t),n=Object.keys(e);if(r.length!==n.length)return!1;for(n=0;n<r.length;n++){var s=r[n];if(!py.call(e,s)||!Mi(t[s],e[s]))return!1}return!0}function _E(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function EE(t,e){var r=_E(t);t=0;for(var n;r;){if(r.nodeType===3){if(n=t+r.textContent.length,t<=e&&n>=e)return{node:r,offset:e-t};t=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=_E(r)}}function Aj(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?Aj(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function jj(){for(var t=window,e=Xm();e instanceof t.HTMLIFrameElement;){try{var r=typeof e.contentWindow.location.href=="string"}catch{r=!1}if(r)t=e.contentWindow;else break;e=Xm(t.document)}return e}function s2(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&(e==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||e==="textarea"||t.contentEditable==="true")}function j8(t){var e=jj(),r=t.focusedElem,n=t.selectionRange;if(e!==r&&r&&r.ownerDocument&&Aj(r.ownerDocument.documentElement,r)){if(n!==null&&s2(r)){if(e=n.start,t=n.end,t===void 0&&(t=e),"selectionStart"in r)r.selectionStart=e,r.selectionEnd=Math.min(t,r.value.length);else if(t=(e=r.ownerDocument||document)&&e.defaultView||window,t.getSelection){t=t.getSelection();var s=r.textContent.length,i=Math.min(n.start,s);n=n.end===void 0?i:Math.min(n.end,s),!t.extend&&i>n&&(s=n,n=i,i=s),s=EE(r,i);var o=EE(r,n);s&&o&&(t.rangeCount!==1||t.anchorNode!==s.node||t.anchorOffset!==s.offset||t.focusNode!==o.node||t.focusOffset!==o.offset)&&(e=e.createRange(),e.setStart(s.node,s.offset),t.removeAllRanges(),i>n?(t.addRange(e),t.extend(o.node,o.offset)):(e.setEnd(o.node,o.offset),t.addRange(e)))}}for(e=[],t=r;t=t.parentNode;)t.nodeType===1&&e.push({element:t,left:t.scrollLeft,top:t.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r<e.length;r++)t=e[r],t.element.scrollLeft=t.left,t.element.scrollTop=t.top}}var R8=Do&&"documentMode"in document&&11>=document.documentMode,ou=null,Py=null,bf=null,My=!1;function TE(t,e,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;My||ou==null||ou!==Xm(n)||(n=ou,"selectionStart"in n&&s2(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focu
vendor: 4,383 bytes, line 37
37sNode:n.focusNode,focusOffset:n.focusOffset}),bf&&eh(bf,n)||(bf=n,n=r0(Py,"onSelect"),0<n.length&&(e=new t2("onSelect","select",null,e,r),t.push({event:e,listeners:n}),e.target=ou)))}function Op(t,e){var r={};return r[t.toLowerCase()]=e.toLowerCase(),r["Webkit"+t]="webkit"+e,r["Moz"+t]="moz"+e,r}var au={animationend:Op("Animation","AnimationEnd"),animationiteration:Op("Animation","AnimationIteration"),animationstart:Op("Animation","AnimationStart"),transitionend:Op("Transition","TransitionEnd")},Lv={},Rj={};Do&&(Rj=document.createElement("div").style,"AnimationEvent"in window||(delete au.animationend.animation,delete au.animationiteration.animation,delete au.animationstart.animation),"TransitionEvent"in window||delete au.transitionend.transition);function Jg(t){if(Lv[t])return Lv[t];if(!au[t])return t;var e=au[t],r;for(r in e)if(e.hasOwnProperty(r)&&r in Rj)return Lv[t]=e[r];return t}var Oj=Jg("animationend"),Pj=Jg("animationiteration"),Mj=Jg("animationstart"),Ij=Jg("transitionend"),Dj=new Map,CE="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 al(t,e){Dj.set(t,e),mc(e,[t])}for(var Fv=0;Fv<CE.length;Fv++){var Bv=CE[Fv],O8=Bv.toLowerCase(),P8=Bv[0].toUpperCase()+Bv.slice(1);al(O8,"on"+P8)}al(Oj,"onAnimationEnd");al(Pj,"onAnimationIteration");al(Mj,"onAnimationStart");al("dblclick","onDoubleClick");al("focusin","onFocus");al("focusout","onBlur");al(Ij,"onTransitionEnd");Vu("onMouseEnter",["mouseout","mouseover"]);Vu("onMouseLeave",["mouseout","mouseover"]);Vu("onPointerEnter",["pointerout","pointerover"]);Vu("onPointerLeave",["pointerout","pointerover"]);mc("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));mc("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));mc("onBeforeInput",["compositionend","keypress","textInput","paste"]);mc("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));mc("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));mc("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var sf="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(" "),M8=new Set("cancel close invalid load scroll toggle".split(" ").concat(sf));function kE(t,e,r){var n=t.type||"unknown-event";t.currentTarget=r,O6(n,e,void 0,t),t.currentTarget=null}function Lj(t,e){e=(e&4)!==0;for(var r=0;r<t.length;r++){var n=t[r],s=n.event;n=n.listeners;e:{var i=void 0;if(e)for(var o=n.length-1;0<=o;o--){var a=n[o],l=a.instance,u=a.currentTarget;if(a=a.listener,l!==i&&s.isPropagationStopped())break e;kE(s,a,u),i=l}else for(o=0;o<n.length;o++){if(a=n[o],l=a.instance,u=a.currentTarget,a=a.listener,l!==i&&s.isPropagationStopped())break e;kE(s,a,u),i=l}}}if(Jm)throw t=Ay,Jm=!1,Ay=null,t}function Vt(t,e){var r=e[By];r===void 0&&(r=e[By]=new Set);var n=t+"__bubble";r.has(n)||(Fj(e,t,2,!1),r.add(n))}function $v(t,e,r){var n=0;e&&(n|=4),Fj(r,t,n,e)}var Pp="_reactListening"+Math.random().toString(36).slice(2);function th(t){if(!t[Pp]){t[Pp]=!0,WA.forEach(function(r){r!=="selectionchange"&&(M8.has(r)||$v(r,!1,t),$v(r,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[Pp]||(e[Pp]=!0,$v("selectionchange",!1,e))}}function Fj(t,e,r,n){switch(bj(e)){case 1:var s=K6;break;case 4:s=X6;break;default:s=Zb}r=s.bind(null,e,r,t),s=void 0,!Ny||e!=="touchstart"&&e!=="touchmove"&&e!=="wheel"||(s=!0),n?s!==void 0?t.addEventListener(e,r,{capture:!0,passive:s}):t.addEventListener(e,r,!0):s!==void 0?t.addEventListener(e,r,{passive:s}):t.addEventListener(e,r,!1)}function zv(t,e,r,n,s){var i=n;
vendor: 5,435 bytes, lines 37-38
37if(!(e&1)&&!(e&2)&&n!==null)e:for(;;){if(n===null)return;var o=n.tag;if(o===3||o===4){var a=n.stateNode.containerInfo;if(a===s||a.nodeType===8&&a.parentNode===s)break;if(o===4)for(o=n.return;o!==null;){var l=o.tag;if((l===3||l===4)&&(l=o.stateNode.containerInfo,l===s||l.nodeType===8&&l.parentNode===s))return;o=o.return}for(;a!==null;){if(o=kl(a),o===null)return;if(l=o.tag,l===5||l===6){n=i=o;continue e}a=a.parentNode}}n=n.return}aj(function(){var u=i,d=Xb(r),f=[];e:{var h=Dj.get(t);if(h!==void 0){var p=t2,g=t;switch(t){case"keypress":if(Cm(r)===0)break e;case"keydown":case"keyup":p=u8;break;case"focusin":g="focus",p=Mv;break;case"focusout":g="blur",p=Mv;break;case"beforeblur":case"afterblur":p=Mv;break;case"click":if(r.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":p=mE;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":p=Q6;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":p=h8;break;case Oj:case Pj:case Mj:p=t8;break;case Ij:p=m8;break;case"scroll":p=Y6;break;case"wheel":p=x8;break;case"copy":case"cut":case"paste":p=n8;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":p=xE}var m=(e&4)!==0,x=!m&&t==="scroll",v=m?h!==null?h+"Capture":null:h;m=[];for(var y=u,b;y!==null;){b=y;var S=b.stateNode;if(b.tag===5&&S!==null&&(b=S,v!==null&&(S=Xf(y,v),S!=null&&m.push(rh(y,S,b)))),x)break;y=y.return}0<m.length&&(h=new p(h,g,null,r,d),f.push({event:h,listeners:m}))}}if(!(e&7)){e:{if(h=t==="mouseover"||t==="pointerover",p=t==="mouseout"||t==="pointerout",h&&r!==Cy&&(g=r.relatedTarget||r.fromElement)&&(kl(g)||g[Lo]))break e;if((p||h)&&(h=d.window===d?d:(h=d.ownerDocument)?h.defaultView||h.parentWindow:window,p?(g=r.relatedTarget||r.toElement,p=u,g=g?kl(g):null,g!==null&&(x=gc(g),g!==x||g.tag!==5&&g.tag!==6)&&(g=null)):(p=null,g=u),p!==g)){if(m=mE,S="onMouseLeave",v="onMouseEnter",y="mouse",(t==="pointerout"||t==="pointerover")&&(m=xE,S="onPointerLeave",v="onPointerEnter",y="pointer"),x=p==null?h:lu(p),b=g==null?h:lu(g),h=new m(S,y+"leave",p,r,d),h.target=x,h.relatedTarget=b,S=null,kl(d)===u&&(m=new m(v,y+"enter",g,r,d),m.target=b,m.relatedTarget=x,S=m),x=S,p&&g)t:{for(m=p,v=g,y=0,b=m;b;b=jc(b))y++;for(b=0,S=v;S;S=jc(S))b++;for(;0<y-b;)m=jc(m),y--;for(;0<b-y;)v=jc(v),b--;for(;y--;){if(m===v||v!==null&&m===v.alternate)break t;m=jc(m),v=jc(v)}m=null}else m=null;p!==null&&NE(f,h,p,m,!1),g!==null&&x!==null&&NE(f,x,g,m,!0)}}e:{if(h=u?lu(u):window,p=h.nodeName&&h.nodeName.toLowerCase(),p==="select"||p==="input"&&h.type==="file")var E=E8;else if(wE(h))if(kj)E=N8;else{E=C8;var C=T8}else(p=h.nodeName)&&p.toLowerCase()==="input"&&(h.type==="checkbox"||h.type==="radio")&&(E=k8);if(E&&(E=E(t,u))){Cj(f,E,r,d);break e}C&&C(t,h,u),t==="focusout"&&(C=h._wrapperState)&&C.controlled&&h.type==="number"&&by(h,"number",h.value)}switch(C=u?lu(u):window,t){case"focusin":(wE(C)||C.contentEditable==="true")&&(ou=C,Py=u,bf=null);break;case"focusout":bf=Py=ou=null;break;case"mousedown":My=!0;break;case"contextmenu":case"mouseup":case"dragend":My=!1,TE(f,r,d);break;case"selectionchange":if(R8)break;case"keydown":case"keyup":TE(f,r,d)}var _;if(n2)e:{switch(t){case"compositionstart":var A="onCompositionStart";break e;case"compositionend":A="onCompositionEnd";break e;case"compositionupdate":A="onCompositionUpdate";break e}A=void 0}else iu?Ej(t,r)&&(A="onCompositionEnd"):t==="keydown"&&r.keyCode===229&&(A="onCompositionStart");A&&(_j&&r.locale!=="ko"&&(iu||A!=="onCompositionStart"?A==="onCompositionEnd"&&iu&&(_=Sj()):(Ea=d,e2="value"in Ea?Ea.value:Ea.textContent,iu=!0)),C=r0(u,A),0<C.length&&(A=new gE(A,t,null,r,d),f.push({event:A,listeners:C}),_?A.data=_:(_=Tj(r),_!==null&&(A.data=_)))),(_=y8?w8(t,r):b8(t,r))&&(u=r0(u,"onBeforeInput"),0<u.length&&(d=new gE("onBeforeInput","beforeinput",null,r,d),f.push({event:d,listeners:u}),d.data=_))}Lj(f,e)})}function rh(t,e,r){return{instance:t,listener:e,currentTarget:r}}function r0(t,e){for(var r=e+"Capture",n=[];t!==null;){var s=t,i=s.stateNode;s.tag===5&&i!==null&&(s=i,i=Xf(t,r),i!=null&&n.unshift(rh(t,i,s)),i=Xf(t,e),i!=null&&n.push(rh(t,i,s))),t=t.return}return n}function jc(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5);return t||null}function NE(t,e,r,n,s){for(var i=e._reactName,o=[];r!==null&&r!==n;){var a=r,l=a.alternate,u=a.stateNode;if(l!==null&&l===n)break;a.tag===5&&u!==null&&(a=u,s?(l=Xf(r,i),l!=null&&o.unshift(rh(r,l,a))):s||(l=Xf(r,i),l!=null&&o.push(rh(r,l,a)))),r=r.return}o.length!==0&&t.push({event:e,listeners:o})}var I8=/\r\n?/g,D8=/\u0000|\uFFFD/g;function AE(t){return(typeof t=="string"?t:""+t).replace(I8,`
38`).replace(D8,"")}function Mp(t,e,r){if(e=AE(e),AE(t)!==e&&r)throw Error(we(425))}function n0(){}var Iy=null,Dy=null;function Ly(t,e){return t==="textarea"||t==="noscript"||typeof e.children=="string"||typeof e.children=="number"||typeof e.dangerouslySetInnerHTML=="object"&&e.dangerouslySetInnerHTML!==null&&e.dangerouslySetInnerHTML.__html!=null}var Fy=typeof setTimeout=="function"?setTimeout:void 0,L8=typeof clearTimeout=="function"?clearTimeout:void 0,jE=typeof Promise=="function"?Promise:void 0,F8=typeof queueMicrotask=="function"?queueMicrotask:typeof jE<"u"?function(t){return jE.resolve(null).then(t).cat
vendor: 4,832 bytes, line 38
38ch(B8)}:Fy;function B8(t){setTimeout(function(){throw t})}function Uv(t,e){var r=e,n=0;do{var s=r.nextSibling;if(t.removeChild(r),s&&s.nodeType===8)if(r=s.data,r==="/$"){if(n===0){t.removeChild(s),Qf(e);return}n--}else r!=="$"&&r!=="$?"&&r!=="$!"||n++;r=s}while(r);Qf(e)}function La(t){for(;t!=null;t=t.nextSibling){var e=t.nodeType;if(e===1||e===3)break;if(e===8){if(e=t.data,e==="$"||e==="$!"||e==="$?")break;if(e==="/$")return null}}return t}function RE(t){t=t.previousSibling;for(var e=0;t;){if(t.nodeType===8){var r=t.data;if(r==="$"||r==="$!"||r==="$?"){if(e===0)return t;e--}else r==="/$"&&e++}t=t.previousSibling}return null}var vd=Math.random().toString(36).slice(2),Ji="__reactFiber$"+vd,nh="__reactProps$"+vd,Lo="__reactContainer$"+vd,By="__reactEvents$"+vd,$8="__reactListeners$"+vd,z8="__reactHandles$"+vd;function kl(t){var e=t[Ji];if(e)return e;for(var r=t.parentNode;r;){if(e=r[Lo]||r[Ji]){if(r=e.alternate,e.child!==null||r!==null&&r.child!==null)for(t=RE(t);t!==null;){if(r=t[Ji])return r;t=RE(t)}return e}t=r,r=t.parentNode}return null}function Kh(t){return t=t[Ji]||t[Lo],!t||t.tag!==5&&t.tag!==6&&t.tag!==13&&t.tag!==3?null:t}function lu(t){if(t.tag===5||t.tag===6)return t.stateNode;throw Error(we(33))}function Qg(t){return t[nh]||null}var $y=[],cu=-1;function ll(t){return{current:t}}function qt(t){0>cu||(t.current=$y[cu],$y[cu]=null,cu--)}function Ut(t,e){cu++,$y[cu]=t.current,t.current=e}var Ja={},Cn=ll(Ja),rs=ll(!1),Xl=Ja;function Wu(t,e){var r=t.type.contextTypes;if(!r)return Ja;var n=t.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===e)return n.__reactInternalMemoizedMaskedChildContext;var s={},i;for(i in r)s[i]=e[i];return n&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=e,t.__reactInternalMemoizedMaskedChildContext=s),s}function ns(t){return t=t.childContextTypes,t!=null}function s0(){qt(rs),qt(Cn)}function OE(t,e,r){if(Cn.current!==Ja)throw Error(we(168));Ut(Cn,e),Ut(rs,r)}function Bj(t,e,r){var n=t.stateNode;if(e=e.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var s in n)if(!(s in e))throw Error(we(108,T6(t)||"Unknown",s));return rr({},r,n)}function i0(t){return t=(t=t.stateNode)&&t.__reactInternalMemoizedMergedChildContext||Ja,Xl=Cn.current,Ut(Cn,t),Ut(rs,rs.current),!0}function PE(t,e,r){var n=t.stateNode;if(!n)throw Error(we(169));r?(t=Bj(t,e,Xl),n.__reactInternalMemoizedMergedChildContext=t,qt(rs),qt(Cn),Ut(Cn,t)):qt(rs),Ut(rs,r)}var Co=null,Zg=!1,Hv=!1;function $j(t){Co===null?Co=[t]:Co.push(t)}function U8(t){Zg=!0,$j(t)}function cl(){if(!Hv&&Co!==null){Hv=!0;var t=0,e=It;try{var r=Co;for(It=1;t<r.length;t++){var n=r[t];do n=n(!0);while(n!==null)}Co=null,Zg=!1}catch(s){throw Co!==null&&(Co=Co.slice(t+1)),dj(Yb,cl),s}finally{It=e,Hv=!1}}return null}var uu=[],du=0,o0=null,a0=0,Ws=[],qs=0,Yl=null,No=1,Ao="";function wl(t,e){uu[du++]=a0,uu[du++]=o0,o0=t,a0=e}function zj(t,e,r){Ws[qs++]=No,Ws[qs++]=Ao,Ws[qs++]=Yl,Yl=t;var n=No;t=Ao;var s=32-Ai(n)-1;n&=~(1<<s),r+=1;var i=32-Ai(e)+s;if(30<i){var o=s-s%5;i=(n&(1<<o)-1).toString(32),n>>=o,s-=o,No=1<<32-Ai(e)+s|r<<s|n,Ao=i+t}else No=1<<i|r<<s|n,Ao=t}function i2(t){t.return!==null&&(wl(t,1),zj(t,1,0))}function o2(t){for(;t===o0;)o0=uu[--du],uu[du]=null,a0=uu[--du],uu[du]=null;for(;t===Yl;)Yl=Ws[--qs],Ws[qs]=null,Ao=Ws[--qs],Ws[qs]=null,No=Ws[--qs],Ws[qs]=null}var _s=null,bs=null,Jt=!1,_i=null;function Uj(t,e){var r=Xs(5,null,null,0);r.elementType="DELETED",r.stateNode=e,r.return=t,e=t.deletions,e===null?(t.deletions=[r],t.flags|=16):e.push(r)}function ME(t,e){switch(t.tag){case 5:var r=t.type;return e=e.nodeType!==1||r.toLowerCase()!==e.nodeName.toLowerCase()?null:e,e!==null?(t.stateNode=e,_s=t,bs=La(e.firstChild),!0):!1;case 6:return e=t.pendingProps===""||e.nodeType!==3?null:e,e!==null?(t.stateNode=e,_s=t,bs=null,!0):!1;case 13:return e=e.nodeType!==8?null:e,e!==null?(r=Yl!==null?{id:No,overflow:Ao}:null,t.memoizedState={dehydrated:e,treeContext:r,retryLane:1073741824},r=Xs(18,null,null,0),r.stateNode=e,r.return=t,t.child=r,_s=t,bs=null,!0):!1;default:return!1}}function zy(t){return(t.mode&1)!==0&&(t.flags&128)===0}function Uy(t){if(Jt){var e=bs;if(e){var r=e;if(!ME(t,e)){if(zy(t))throw Error(we(418));e=La(r.nextSibling);var n=_s;e&&ME(t,e)?Uj(n,r):(t.flags=t.flags&-4097|2,Jt=!1,_s=t)}}else{if(zy(t))throw Error(we(418));t.flags=t.flags&-4097|2,Jt=!1,_s=t}}}function IE(t){for(t=t.return;t!==null&&t.tag!==5&&t.tag!==3&&t.tag!==13;)t=t.return;_s=t}function Ip(t){if(t!==_s)return!1;if(!Jt)return IE(t),Jt=!0,!1;var e;if((e=t.tag!==3)&&!(e=t.tag!==5)&&(e=t.type,e=e!=="head"&&e!=="body"&&!Ly(t.type,t.memoizedProps)),e&&(e=bs)){if(zy(t))throw Hj(),Error(we(418));for(;e;)Uj(t,e),e=La(e.nextSibling)}if(IE(t),t.tag===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(we(317));e:{for(t=t.nextSibling,e=0;t;
vendor: 12,492 bytes, line 38
38){if(t.nodeType===8){var r=t.data;if(r==="/$"){if(e===0){bs=La(t.nextSibling);break e}e--}else r!=="$"&&r!=="$!"&&r!=="$?"||e++}t=t.nextSibling}bs=null}}else bs=_s?La(t.stateNode.nextSibling):null;return!0}function Hj(){for(var t=bs;t;)t=La(t.nextSibling)}function qu(){bs=_s=null,Jt=!1}function a2(t){_i===null?_i=[t]:_i.push(t)}var H8=qo.ReactCurrentBatchConfig;function zd(t,e,r){if(t=r.ref,t!==null&&typeof t!="function"&&typeof t!="object"){if(r._owner){if(r=r._owner,r){if(r.tag!==1)throw Error(we(309));var n=r.stateNode}if(!n)throw Error(we(147,t));var s=n,i=""+t;return e!==null&&e.ref!==null&&typeof e.ref=="function"&&e.ref._stringRef===i?e.ref:(e=function(o){var a=s.refs;o===null?delete a[i]:a[i]=o},e._stringRef=i,e)}if(typeof t!="string")throw Error(we(284));if(!r._owner)throw Error(we(290,t))}return t}function Dp(t,e){throw t=Object.prototype.toString.call(e),Error(we(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t))}function DE(t){var e=t._init;return e(t._payload)}function Vj(t){function e(v,y){if(t){var b=v.deletions;b===null?(v.deletions=[y],v.flags|=16):b.push(y)}}function r(v,y){if(!t)return null;for(;y!==null;)e(v,y),y=y.sibling;return null}function n(v,y){for(v=new Map;y!==null;)y.key!==null?v.set(y.key,y):v.set(y.index,y),y=y.sibling;return v}function s(v,y){return v=za(v,y),v.index=0,v.sibling=null,v}function i(v,y,b){return v.index=b,t?(b=v.alternate,b!==null?(b=b.index,b<y?(v.flags|=2,y):b):(v.flags|=2,y)):(v.flags|=1048576,y)}function o(v){return t&&v.alternate===null&&(v.flags|=2),v}function a(v,y,b,S){return y===null||y.tag!==6?(y=Yv(b,v.mode,S),y.return=v,y):(y=s(y,b),y.return=v,y)}function l(v,y,b,S){var E=b.type;return E===su?d(v,y,b.props.children,S,b.key):y!==null&&(y.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===la&&DE(E)===y.type)?(S=s(y,b.props),S.ref=zd(v,y,b),S.return=v,S):(S=Pm(b.type,b.key,b.props,null,v.mode,S),S.ref=zd(v,y,b),S.return=v,S)}function u(v,y,b,S){return y===null||y.tag!==4||y.stateNode.containerInfo!==b.containerInfo||y.stateNode.implementation!==b.implementation?(y=Jv(b,v.mode,S),y.return=v,y):(y=s(y,b.children||[]),y.return=v,y)}function d(v,y,b,S,E){return y===null||y.tag!==7?(y=Ul(b,v.mode,S,E),y.return=v,y):(y=s(y,b),y.return=v,y)}function f(v,y,b){if(typeof y=="string"&&y!==""||typeof y=="number")return y=Yv(""+y,v.mode,b),y.return=v,y;if(typeof y=="object"&&y!==null){switch(y.$$typeof){case Tp:return b=Pm(y.type,y.key,y.props,null,v.mode,b),b.ref=zd(v,null,y),b.return=v,b;case nu:return y=Jv(y,v.mode,b),y.return=v,y;case la:var S=y._init;return f(v,S(y._payload),b)}if(rf(y)||Dd(y))return y=Ul(y,v.mode,b,null),y.return=v,y;Dp(v,y)}return null}function h(v,y,b,S){var E=y!==null?y.key:null;if(typeof b=="string"&&b!==""||typeof b=="number")return E!==null?null:a(v,y,""+b,S);if(typeof b=="object"&&b!==null){switch(b.$$typeof){case Tp:return b.key===E?l(v,y,b,S):null;case nu:return b.key===E?u(v,y,b,S):null;case la:return E=b._init,h(v,y,E(b._payload),S)}if(rf(b)||Dd(b))return E!==null?null:d(v,y,b,S,null);Dp(v,b)}return null}function p(v,y,b,S,E){if(typeof S=="string"&&S!==""||typeof S=="number")return v=v.get(b)||null,a(y,v,""+S,E);if(typeof S=="object"&&S!==null){switch(S.$$typeof){case Tp:return v=v.get(S.key===null?b:S.key)||null,l(y,v,S,E);case nu:return v=v.get(S.key===null?b:S.key)||null,u(y,v,S,E);case la:var C=S._init;return p(v,y,b,C(S._payload),E)}if(rf(S)||Dd(S))return v=v.get(b)||null,d(y,v,S,E,null);Dp(y,S)}return null}function g(v,y,b,S){for(var E=null,C=null,_=y,A=y=0,N=null;_!==null&&A<b.length;A++){_.index>A?(N=_,_=null):N=_.sibling;var D=h(v,_,b[A],S);if(D===null){_===null&&(_=N);break}t&&_&&D.alternate===null&&e(v,_),y=i(D,y,A),C===null?E=D:C.sibling=D,C=D,_=N}if(A===b.length)return r(v,_),Jt&&wl(v,A),E;if(_===null){for(;A<b.length;A++)_=f(v,b[A],S),_!==null&&(y=i(_,y,A),C===null?E=_:C.sibling=_,C=_);return Jt&&wl(v,A),E}for(_=n(v,_);A<b.length;A++)N=p(_,v,A,b[A],S),N!==null&&(t&&N.alternate!==null&&_.delete(N.key===null?A:N.key),y=i(N,y,A),C===null?E=N:C.sibling=N,C=N);return t&&_.forEach(function(V){return e(v,V)}),Jt&&wl(v,A),E}function m(v,y,b,S){var E=Dd(b);if(typeof E!="function")throw Error(we(150));if(b=E.call(b),b==null)throw Error(we(151));for(var C=E=null,_=y,A=y=0,N=null,D=b.next();_!==null&&!D.done;A++,D=b.next()){_.index>A?(N=_,_=null):N=_.sibling;var V=h(v,_,D.value,S);if(V===null){_===null&&(_=N);break}t&&_&&V.alternate===null&&e(v,_),y=i(V,y,A),C===null?E=V:C.sibling=V,C=V,_=N}if(D.done)return r(v,_),Jt&&wl(v,A),E;if(_===null){for(;!D.done;A++,D=b.next())D=f(v,D.value,S),D!==null&&(y=i(D,y,A),C===null?E=D:C.sibling=D,C=D);return Jt&&wl(v,A),E}for(_=n(v,_);!D.done;A++,D=b.next())D=p(_,v,A,D.value,S),D!==null&&(t&&D.alternate!==null&&_.delete(D.key===null?A:D.key),y=i(D,y,A),C===null?E=D:C.sibling=D,C=D);return t&&_.forEach(function(H){return e(v,H)}),Jt&&wl(v,A),E}function x(v,y,b,S){if(typeof b=="object"&&b!==null&&b.type===su&&b.key===null&&(b=b.props.children),typeof b=="object"&&b!==null){switch(b.$$typeof){case Tp:e:{for(var E=b.key,C=y;C!==null;){if(C.key===E){if(E=b.type,E===su){if(C.tag===7){r(v,C.sibling),y=s(C,b.props.children),y.return=v,v=y;break e}}else if(C.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===la&&DE(E)===C.type){r(v,C.sibling),y=s(C,b.props),y.ref=zd(v,C,b),y.return=v,v=y;break e}r(v,C);break}else e(v,C);C=C.sibling}b.type===su?(y=Ul(b.props.children,v.mode,S,b.key),y.return=v,v=y):(S=Pm(b.type,b.key,b.props,null,v.mode,S),S.ref=zd(v,y,b),S.return=v,v=S)}return o(v);case nu:e:{for(C=b.key;y!==null;){if(y.key===C)if(y.tag===4&&y.stateNode.containerInfo===b.containerInfo&&y.stateNode.implementation===b.implementation){r(v,y.sibling),y=s(y,b.children||[]),y.return=v,v=y;break e}else{r(v,y);break}else e(v,y);y=y.sibling}y=Jv(b,v.mode,S),y.return=v,v=y}return o(v);case la:return C=b._init,x(v,y,C(b._payload),S)}if(rf(b))return g(v,y,b,S);if(Dd(b))return m(v,y,b,S);Dp(v,b)}return typeof b=="string"&&b!==""||typeof b=="number"?(b=""+b,y!==null&&y.tag===6?(r(v,y.sibling),y=s(y,b),y.return=v,v=y):(r(v,y),y=Yv(b,v.mode,S),y.return=v,v=y),o(v)):r(v,y)}return x}var Gu=Vj(!0),Wj=Vj(!1),l0=ll(null),c0=null,fu=null,l2=null;function c2(){l2=fu=c0=null}function u2(t){var e=l0.current;qt(l0),t._currentValue=e}function Hy(t,e,r){for(;t!==null;){var n=t.alternate;if((t.childLanes&e)!==e?(t.childLanes|=e,n!==null&&(n.childLanes|=e)):n!==null&&(n.childLanes&e)!==e&&(n.childLanes|=e),t===r)break;t=t.return}}function bu(t,e){c0=t,l2=fu=null,t=t.dependencies,t!==null&&t.firstContext!==null&&(t.lanes&e&&(ts=!0),t.firstContext=null)}function ni(t){var e=t._currentValue;if(l2!==t)if(t={context:t,memoizedValue:e,next:null},fu===null){if(c0===null)throw Error(we(308));fu=t,c0.dependencies={lanes:0,firstContext:t}}else fu=fu.next=t;return e}var Nl=null;function d2(t){Nl===null?Nl=[t]:Nl.push(t)}function qj(t,e,r,n){var s=e.interleaved;return s===null?(r.next=r,d2(e)):(r.next=s.next,s.next=r),e.interleaved=r,Fo(t,n)}function Fo(t,e){t.lanes|=e;var r=t.alternate;for(r!==null&&(r.lanes|=e),r=t,t=t.return;t!==null;)t.childLanes|=e,r=t.alternate,r!==null&&(r.childLanes|=e),r=t,t=t.return;return r.tag===3?r.stateNode:null}var ca=!1;function f2(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Gj(t,e){t=t.updateQueue,e.updateQueue===t&&(e.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,effects:t.effects})}function Ro(t,e){return{eventTime:t,lane:e,tag:0,payload:null,callback:null,next:null}}function Fa(t,e,r){var n=t.updateQueue;if(n===null)return null;if(n=n.shared,bt&2){var s=n.pending;return s===null?e.next=e:(e.next=s.next,s.next=e),n.pending=e,Fo(t,r)}return s=n.interleaved,s===null?(e.next=e,d2(n)):(e.next=s.next,s.next=e),n.interleaved=e,Fo(t,r)}function km(t,e,r){if(e=e.updateQueue,e!==null&&(e=e.shared,(r&4194240)!==0)){var n=e.lanes;n&=t.pendingLanes,r|=n,e.lanes=r,Jb(t,r)}}function LE(t,e){var r=t.updateQueue,n=t.alternate;if(n!==null&&(n=n.updateQueue,r===n)){var s=null,i=null;if(r=r.firstBaseUpdate,r!==null){do{var o={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};i===null?s=i=o:i=i.next=o,r=r.next}while(r!==null);i===null?s=i=e:i=i.next=e}else s=i=e;r={baseState:n.baseState,firstBaseUpdate:s,lastBaseUpdate:i,shared:n.shared,effects:n.effects},t.updateQueue=r;return}t=r.lastBaseUpdate,t===null?r.firstBaseUpdate=e:t.next=e,r.lastBaseUpdate=e}function u0(t,e,r,n){var s=t.updateQueue;ca=!1;var i=s.firstBaseUpdate,o=s.lastBaseUpdate,a=s.shared.pending;if(a!==null){s.shared.pending=null;var l=a,u=l.next;l.next=null,o===null?i=u:o.next=u,o=l;var d=t.alternate;d!==null&&(d=d.updateQueue,a=d.lastBaseUpdate,a!==o&&(a===null?d.firstBaseUpdate=u:a.next=u,d.lastBaseUpdate=l))}if(i!==null){var f=s.baseState;o=0,d=u=l=null,a=i;do{var h=a.lane,p=a.eventTime;if((n&h)===h){d!==null&&(d=d.next={eventTime:p,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var g=t,m=a;switch(h=e,p=r,m.tag){case 1:if(g=m.payload,typeof g=="function"){f=g.call(p,f,h);break e}f=g;break e;case 3:g.flags=g.flags&-65537|128;case 0:if(g=m.payload,h=typeof g=="function"?g.call(p,f,h):g,h==null)break e;f=rr({},f,h);break e;case 2:ca=!0}}a.callback!==null&&a.lane!==0&&(t.flags|=64,h=s.effects,h===null?s.effects=[a]:h.push(a))}else p={eventTime:p,lane:h,tag:a.tag,payload:a.payload,callback:a.callback,next:null},d===null?(u=d=p,l=f):d=d.next=p,o|=h;if(a=a.next,a===null){if(a=s.shared.pending,a===null)break;h=a,a=h.next,h.next=null,s.lastBaseUpdate=h,s.shared.pending=null}}while(!0);if(d===null&&(l=f),s.baseState=l,s.firstBaseUpdate=u,s.lastBaseUpdate=d,e=s.shared.interleaved,e!==null){s=e;do o|=s.lane,s=s.next;while(s!==e)}else i===null&&(s.shared.lanes=0);Ql|=o,t.lanes=o,t.memoizedState=f}}function FE(t,e,r){if(t=e.effects,e.effects=null,t!==null)for(e=0;e<t.length;e++){var n=t[e],s=n.callback;if(s!==null){if(n.callback=null,n=r,typeof s!="function")throw Error(we(191,s));s.call(n)}}}var Xh={},to=ll(Xh),sh=ll(Xh),ih=ll(Xh);function Al(t){if(t===Xh)throw Error(we(174));return t}function h2(t,e){switch(Ut(ih,e),Ut(sh,t),Ut(to,Xh),t=e.nodeType,t){case 9:case 11:e=(e=e.documentElement)?e.namespaceURI:_y(null,"");break;default:t=t===8?e.parentNode:e,e=t.namespaceURI||null,t=t.tagName,e=_y(e,t)}qt(to),Ut(to,e)}function Ku(){qt(to),qt(sh),qt(ih)}function Kj(t){Al(ih.current);var e=Al(to.current),r=_y(e,t.type);e!==r&&(Ut(sh,t),Ut(to,r))}function p2(t){sh.current===t&&(qt(to),qt(sh))}var Zt=ll(0);function d0(t){for(var e=t;e!==null;){if(e.tag===13){var r=e.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data==="$?"||r.data==="$!"))return e}else if(e.tag===19&&e.memoizedProps.revealOrder!==void 0){if(e.flags&128)return e}else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}var Vv=[];function m2(){for(var t=0;t<Vv.length;t++)Vv[t]._workInProgressVersionPrimary=null;Vv.length=0}var Nm=qo.ReactCurrentDispatcher,Wv=qo.ReactCurrentBatchConfig,Jl=0,tr=null,Br=null,Wr=null,f0=!1,Sf=!1,oh=0,V8=0;function vn(){throw Error(we(321))}function g2(t,e){if(e===null)return!1;for(var r=0;r<e.length&&r<t.length;r++)if(!Mi(t[r],e[r]))return!1;return!0}function x2(t,e,r,n,s,i){if(Jl=i,tr=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,Nm.current=t===null||t.memoizedState===null?K8:X8,t=r(n,s),Sf){i=0;do{if(Sf=!1,oh=0,25<=i)throw Error(we(301));i+=1,Wr=Br=null,e.updateQueue=null,Nm.current=Y8,t=r(n,s)}while(Sf)}if(Nm.current=h0,e=Br!==null&&Br.next!==null,Jl=0,Wr=Br=tr=null,f0=!1,e)throw Error(we(300));return t}function v2(){var t=oh!==0;return oh=0,t}function Vi(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Wr===null?tr.memoizedState=Wr=t:Wr=Wr.next=t,Wr}function si(){if(Br===null){var t=tr.alternate;t=t!==null?t.memoizedState:null}else t=Br.next;var e=Wr===null?tr.memoizedState:Wr.next;if(e!==null)Wr=e,Br=t;else{if(t===null)throw Error(we(310));Br=t,t={memoizedState:Br.memoizedState,baseState:Br.baseState,baseQueue:Br.baseQueue,queue:Br.queue,next:null},Wr===null?tr.memoizedState=Wr=t:Wr=Wr.next=t}return Wr}function ah(t,e){return typeof e=="function"?e(t):e}function qv(t){var e=si(),r=e.queue;if(r===null)throw Error(we(311));r.lastRenderedReducer=t;
vendor: 4,651 bytes, line 38
38var n=Br,s=n.baseQueue,i=r.pending;if(i!==null){if(s!==null){var o=s.next;s.next=i.next,i.next=o}n.baseQueue=s=i,r.pending=null}if(s!==null){i=s.next,n=n.baseState;var a=o=null,l=null,u=i;do{var d=u.lane;if((Jl&d)===d)l!==null&&(l=l.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),n=u.hasEagerState?u.eagerState:t(n,u.action);else{var f={lane:d,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};l===null?(a=l=f,o=n):l=l.next=f,tr.lanes|=d,Ql|=d}u=u.next}while(u!==null&&u!==i);l===null?o=n:l.next=a,Mi(n,e.memoizedState)||(ts=!0),e.memoizedState=n,e.baseState=o,e.baseQueue=l,r.lastRenderedState=n}if(t=r.interleaved,t!==null){s=t;do i=s.lane,tr.lanes|=i,Ql|=i,s=s.next;while(s!==t)}else s===null&&(r.lanes=0);return[e.memoizedState,r.dispatch]}function Gv(t){var e=si(),r=e.queue;if(r===null)throw Error(we(311));r.lastRenderedReducer=t;var n=r.dispatch,s=r.pending,i=e.memoizedState;if(s!==null){r.pending=null;var o=s=s.next;do i=t(i,o.action),o=o.next;while(o!==s);Mi(i,e.memoizedState)||(ts=!0),e.memoizedState=i,e.baseQueue===null&&(e.baseState=i),r.lastRenderedState=i}return[i,n]}function Xj(){}function Yj(t,e){var r=tr,n=si(),s=e(),i=!Mi(n.memoizedState,s);if(i&&(n.memoizedState=s,ts=!0),n=n.queue,y2(Zj.bind(null,r,n,t),[t]),n.getSnapshot!==e||i||Wr!==null&&Wr.memoizedState.tag&1){if(r.flags|=2048,lh(9,Qj.bind(null,r,n,s,e),void 0,null),Xr===null)throw Error(we(349));Jl&30||Jj(r,e,s)}return s}function Jj(t,e,r){t.flags|=16384,t={getSnapshot:e,value:r},e=tr.updateQueue,e===null?(e={lastEffect:null,stores:null},tr.updateQueue=e,e.stores=[t]):(r=e.stores,r===null?e.stores=[t]:r.push(t))}function Qj(t,e,r,n){e.value=r,e.getSnapshot=n,e4(e)&&t4(t)}function Zj(t,e,r){return r(function(){e4(e)&&t4(t)})}function e4(t){var e=t.getSnapshot;t=t.value;try{var r=e();return!Mi(t,r)}catch{return!0}}function t4(t){var e=Fo(t,1);e!==null&&ji(e,t,1,-1)}function BE(t){var e=Vi();return typeof t=="function"&&(t=t()),e.memoizedState=e.baseState=t,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:ah,lastRenderedState:t},e.queue=t,t=t.dispatch=G8.bind(null,tr,t),[e.memoizedState,t]}function lh(t,e,r,n){return t={tag:t,create:e,destroy:r,deps:n,next:null},e=tr.updateQueue,e===null?(e={lastEffect:null,stores:null},tr.updateQueue=e,e.lastEffect=t.next=t):(r=e.lastEffect,r===null?e.lastEffect=t.next=t:(n=r.next,r.next=t,t.next=n,e.lastEffect=t)),t}function r4(){return si().memoizedState}function Am(t,e,r,n){var s=Vi();tr.flags|=t,s.memoizedState=lh(1|e,r,void 0,n===void 0?null:n)}function ex(t,e,r,n){var s=si();n=n===void 0?null:n;var i=void 0;if(Br!==null){var o=Br.memoizedState;if(i=o.destroy,n!==null&&g2(n,o.deps)){s.memoizedState=lh(e,r,i,n);return}}tr.flags|=t,s.memoizedState=lh(1|e,r,i,n)}function $E(t,e){return Am(8390656,8,t,e)}function y2(t,e){return ex(2048,8,t,e)}function n4(t,e){return ex(4,2,t,e)}function s4(t,e){return ex(4,4,t,e)}function i4(t,e){if(typeof e=="function")return t=t(),e(t),function(){e(null)};if(e!=null)return t=t(),e.current=t,function(){e.current=null}}function o4(t,e,r){return r=r!=null?r.concat([t]):null,ex(4,4,i4.bind(null,e,t),r)}function w2(){}function a4(t,e){var r=si();e=e===void 0?null:e;var n=r.memoizedState;return n!==null&&e!==null&&g2(e,n[1])?n[0]:(r.memoizedState=[t,e],t)}function l4(t,e){var r=si();e=e===void 0?null:e;var n=r.memoizedState;return n!==null&&e!==null&&g2(e,n[1])?n[0]:(t=t(),r.memoizedState=[t,e],t)}function c4(t,e,r){return Jl&21?(Mi(r,e)||(r=pj(),tr.lanes|=r,Ql|=r,t.baseState=!0),e):(t.baseState&&(t.baseState=!1,ts=!0),t.memoizedState=r)}function W8(t,e){var r=It;It=r!==0&&4>r?r:4,t(!0);var n=Wv.transition;Wv.transition={};try{t(!1),e()}finally{It=r,Wv.transition=n}}function u4(){return si().memoizedState}function q8(t,e,r){var n=$a(t);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},d4(t))f4(e,r);else if(r=qj(t,e,r,n),r!==null){var s=$n();ji(r,t,n,s),h4(r,e,n)}}function G8(t,e,r){var n=$a(t),s={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(d4(t))f4(e,s);else{var i=t.alternate;if(t.lanes===0&&(i===null||i.lanes===0)&&(i=e.lastRenderedReducer,i!==null))try{var o=e.lastRenderedState,a=i(o,r);if(s.hasEagerState=!0,s.eagerState=a,Mi(a,o)){var l=e.interleaved;l===null?(s.next=s,d2(e)):(s.next=l.next,l.next=s),e.interleaved=s;return}}catch{}finally{}r=qj(t,e,s,n),r!==null&&(s=$n(),ji(r,t,n,s),h4(r,e,n))}}function d4(t){var e=t.alternate;return t===tr||e!==null&&e===tr}function f4(t,e){Sf=f0=!0;var r=t.pending;r===null?e.next=e:(e.next=r.next,r.next=e),t.pending=e}function h4(t,e,r){if(r&4194240){var n=e.lanes;
vendor: 6,768 bytes, lines 38-40
38n&=t.pendingLanes,r|=n,e.lanes=r,Jb(t,r)}}var h0={readContext:ni,useCallback:vn,useContext:vn,useEffect:vn,useImperativeHandle:vn,useInsertionEffect:vn,useLayoutEffect:vn,useMemo:vn,useReducer:vn,useRef:vn,useState:vn,useDebugValue:vn,useDeferredValue:vn,useTransition:vn,useMutableSource:vn,useSyncExternalStore:vn,useId:vn,unstable_isNewReconciler:!1},K8={readContext:ni,useCallback:function(t,e){return Vi().memoizedState=[t,e===void 0?null:e],t},useContext:ni,useEffect:$E,useImperativeHandle:function(t,e,r){return r=r!=null?r.concat([t]):null,Am(4194308,4,i4.bind(null,e,t),r)},useLayoutEffect:function(t,e){return Am(4194308,4,t,e)},useInsertionEffect:function(t,e){return Am(4,2,t,e)},useMemo:function(t,e){var r=Vi();return e=e===void 0?null:e,t=t(),r.memoizedState=[t,e],t},useReducer:function(t,e,r){var n=Vi();return e=r!==void 0?r(e):e,n.memoizedState=n.baseState=e,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:e},n.queue=t,t=t.dispatch=q8.bind(null,tr,t),[n.memoizedState,t]},useRef:function(t){var e=Vi();return t={current:t},e.memoizedState=t},useState:BE,useDebugValue:w2,useDeferredValue:function(t){return Vi().memoizedState=t},useTransition:function(){var t=BE(!1),e=t[0];return t=W8.bind(null,t[1]),Vi().memoizedState=t,[e,t]},useMutableSource:function(){},useSyncExternalStore:function(t,e,r){var n=tr,s=Vi();if(Jt){if(r===void 0)throw Error(we(407));r=r()}else{if(r=e(),Xr===null)throw Error(we(349));Jl&30||Jj(n,e,r)}s.memoizedState=r;var i={value:r,getSnapshot:e};return s.queue=i,$E(Zj.bind(null,n,i,t),[t]),n.flags|=2048,lh(9,Qj.bind(null,n,i,r,e),void 0,null),r},useId:function(){var t=Vi(),e=Xr.identifierPrefix;if(Jt){var r=Ao,n=No;r=(n&~(1<<32-Ai(n)-1)).toString(32)+r,e=":"+e+"R"+r,r=oh++,0<r&&(e+="H"+r.toString(32)),e+=":"}else r=V8++,e=":"+e+"r"+r.toString(32)+":";return t.memoizedState=e},unstable_isNewReconciler:!1},X8={readContext:ni,useCallback:a4,useContext:ni,useEffect:y2,useImperativeHandle:o4,useInsertionEffect:n4,useLayoutEffect:s4,useMemo:l4,useReducer:qv,useRef:r4,useState:function(){return qv(ah)},useDebugValue:w2,useDeferredValue:function(t){var e=si();return c4(e,Br.memoizedState,t)},useTransition:function(){var t=qv(ah)[0],e=si().memoizedState;return[t,e]},useMutableSource:Xj,useSyncExternalStore:Yj,useId:u4,unstable_isNewReconciler:!1},Y8={readContext:ni,useCallback:a4,useContext:ni,useEffect:y2,useImperativeHandle:o4,useInsertionEffect:n4,useLayoutEffect:s4,useMemo:l4,useReducer:Gv,useRef:r4,useState:function(){return Gv(ah)},useDebugValue:w2,useDeferredValue:function(t){var e=si();return Br===null?e.memoizedState=t:c4(e,Br.memoizedState,t)},useTransition:function(){var t=Gv(ah)[0],e=si().memoizedState;return[t,e]},useMutableSource:Xj,useSyncExternalStore:Yj,useId:u4,unstable_isNewReconciler:!1};function xi(t,e){if(t&&t.defaultProps){e=rr({},e),t=t.defaultProps;for(var r in t)e[r]===void 0&&(e[r]=t[r]);return e}return e}function Vy(t,e,r,n){e=t.memoizedState,r=r(n,e),r=r==null?e:rr({},e,r),t.memoizedState=r,t.lanes===0&&(t.updateQueue.baseState=r)}var tx={isMounted:function(t){return(t=t._reactInternals)?gc(t)===t:!1},enqueueSetState:function(t,e,r){t=t._reactInternals;var n=$n(),s=$a(t),i=Ro(n,s);i.payload=e,r!=null&&(i.callback=r),e=Fa(t,i,s),e!==null&&(ji(e,t,s,n),km(e,t,s))},enqueueReplaceState:function(t,e,r){t=t._reactInternals;var n=$n(),s=$a(t),i=Ro(n,s);i.tag=1,i.payload=e,r!=null&&(i.callback=r),e=Fa(t,i,s),e!==null&&(ji(e,t,s,n),km(e,t,s))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var r=$n(),n=$a(t),s=Ro(r,n);s.tag=2,e!=null&&(s.callback=e),e=Fa(t,s,n),e!==null&&(ji(e,t,n,r),km(e,t,n))}};function zE(t,e,r,n,s,i,o){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(n,i,o):e.prototype&&e.prototype.isPureReactComponent?!eh(r,n)||!eh(s,i):!0}function p4(t,e,r){var n=!1,s=Ja,i=e.contextType;return typeof i=="object"&&i!==null?i=ni(i):(s=ns(e)?Xl:Cn.current,n=e.contextTypes,i=(n=n!=null)?Wu(t,s):Ja),e=new e(r,i),t.memoizedState=e.state!==null&&e.state!==void 0?e.state:null,e.updater=tx,t.stateNode=e,e._reactInternals=t,n&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=s,t.__reactInternalMemoizedMaskedChildContext=i),e}function UE(t,e,r,n){t=e.state,typeof e.componentWillReceiveProps=="function"&&e.componentWillReceiveProps(r,n),typeof e.UNSAFE_componentWillReceiveProps=="function"&&e.UNSAFE_componentWillReceiveProps(r,n),e.state!==t&&tx.enqueueReplaceState(e,e.state,null)}function Wy(t,e,r,n){var s=t.stateNode;s.props=r,s.state=t.memoizedState,s.refs={},f2(t);var i=e.contextType;typeof i=="object"&&i!==null?s.context=ni(i):(i=ns(e)?Xl:Cn.current,s.context=Wu(t,i)),s.state=t.memoizedState,i=e.getDerivedStateFromProps,typeof i=="function"&&(Vy(t,e,i,r),s.state=t.memoizedState),typeof e.getDerivedStateFromProps=="function"||typeof s.getSnapshotBeforeUpdate=="function"||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(e=s.state,typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount(),e!==s.state&&tx.enqueueReplaceState(s,s.state,null),u0(t,r,s,n),s.state=t.memoizedState),typeof s.componentDidMount=="function"&&(t.flags|=4194308)}function Xu(t,e){try{var r="",n=e;do r+=E6(n),n=n.return;while(n);var s=r}catch(i){s=`
39Error generating stack: `+i.message+`
40`+i.stack}return{value:t,source:e,stack:s,digest:null}}function Kv(t,e,r){return{value:t,source:null,stack:r??null,digest:e??null}}function qy(t,e){try{console.error(e.value)}catch(r){setTimeout(function(){throw r})}}var J8=typeof WeakMap=="function"?WeakMap:Map;function m4(t,e,r){r=Ro(-1,r),r.tag=3,r.payload={element:null};var n=e.value;return r.callback=function(){m0||(m0=!0,rw=n),qy(t,e)},r}function g4(t,e,r){r=Ro(-1,r),r.tag=3;var n=t.type.getDerivedStateFromError;if(typeof n=="function"){var s=e.value;r.payload=function(){return n(s)},r.callback=function(){qy(t,e)}}var i=t.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(r.callback=function(){qy(t,e),typeof n!="function"&&(Ba===null?Ba=new Set([this]):Ba.add(this));var o=e.stack;this.componentDidCatch(e.value,{componentStack:o!==null?o:""})}),r}function HE(t,e,r){var n=t.pingCache;if(n===null){n=t.pingCache=new J8;var s=new Set;n.set(e,s)}else s=n.get(e),s===void 0&&(s=new Set,n.set(e,s));s.has(r)||(s.add(r),t=dB.bind(null,t,e,r),e.then(t,t))}function VE(t){do{var e;if((e=t.tag===13)&&(e=t.memoizedState,e=e!==null?e.dehydrated!==null:!0),e)return t;t=t.return}while(t!==null);return null}function WE(t,e,r,n,s){return t.mode&1?(t.flags|=65536,t.lanes=s,t):(t===e?t.flags|=65536:(t.flags|=128,r.flags|=131072,r.flags&=-52805,r.tag===1&&(r.alternate===null?r.tag=17:(e=
vendor: 9,728 bytes, line 40
40Ro(-1,1),e.tag=2,Fa(r,e,1))),r.lanes|=1),t)}var Q8=qo.ReactCurrentOwner,ts=!1;function In(t,e,r,n){e.child=t===null?Wj(e,null,r,n):Gu(e,t.child,r,n)}function qE(t,e,r,n,s){r=r.render;var i=e.ref;return bu(e,s),n=x2(t,e,r,n,i,s),r=v2(),t!==null&&!ts?(e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~s,Bo(t,e,s)):(Jt&&r&&i2(e),e.flags|=1,In(t,e,n,s),e.child)}function GE(t,e,r,n,s){if(t===null){var i=r.type;return typeof i=="function"&&!N2(i)&&i.defaultProps===void 0&&r.compare===null&&r.defaultProps===void 0?(e.tag=15,e.type=i,x4(t,e,i,n,s)):(t=Pm(r.type,null,n,e,e.mode,s),t.ref=e.ref,t.return=e,e.child=t)}if(i=t.child,!(t.lanes&s)){var o=i.memoizedProps;if(r=r.compare,r=r!==null?r:eh,r(o,n)&&t.ref===e.ref)return Bo(t,e,s)}return e.flags|=1,t=za(i,n),t.ref=e.ref,t.return=e,e.child=t}function x4(t,e,r,n,s){if(t!==null){var i=t.memoizedProps;if(eh(i,n)&&t.ref===e.ref)if(ts=!1,e.pendingProps=n=i,(t.lanes&s)!==0)t.flags&131072&&(ts=!0);else return e.lanes=t.lanes,Bo(t,e,s)}return Gy(t,e,r,n,s)}function v4(t,e,r){var n=e.pendingProps,s=n.children,i=t!==null?t.memoizedState:null;if(n.mode==="hidden")if(!(e.mode&1))e.memoizedState={baseLanes:0,cachePool:null,transitions:null},Ut(pu,ps),ps|=r;else{if(!(r&1073741824))return t=i!==null?i.baseLanes|r:r,e.lanes=e.childLanes=1073741824,e.memoizedState={baseLanes:t,cachePool:null,transitions:null},e.updateQueue=null,Ut(pu,ps),ps|=t,null;e.memoizedState={baseLanes:0,cachePool:null,transitions:null},n=i!==null?i.baseLanes:r,Ut(pu,ps),ps|=n}else i!==null?(n=i.baseLanes|r,e.memoizedState=null):n=r,Ut(pu,ps),ps|=n;return In(t,e,s,r),e.child}function y4(t,e){var r=e.ref;(t===null&&r!==null||t!==null&&t.ref!==r)&&(e.flags|=512,e.flags|=2097152)}function Gy(t,e,r,n,s){var i=ns(r)?Xl:Cn.current;return i=Wu(e,i),bu(e,s),r=x2(t,e,r,n,i,s),n=v2(),t!==null&&!ts?(e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~s,Bo(t,e,s)):(Jt&&n&&i2(e),e.flags|=1,In(t,e,r,s),e.child)}function KE(t,e,r,n,s){if(ns(r)){var i=!0;i0(e)}else i=!1;if(bu(e,s),e.stateNode===null)jm(t,e),p4(e,r,n),Wy(e,r,n,s),n=!0;else if(t===null){var o=e.stateNode,a=e.memoizedProps;o.props=a;var l=o.context,u=r.contextType;typeof u=="object"&&u!==null?u=ni(u):(u=ns(r)?Xl:Cn.current,u=Wu(e,u));var d=r.getDerivedStateFromProps,f=typeof d=="function"||typeof o.getSnapshotBeforeUpdate=="function";f||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(a!==n||l!==u)&&UE(e,o,n,u),ca=!1;var h=e.memoizedState;o.state=h,u0(e,n,o,s),l=e.memoizedState,a!==n||h!==l||rs.current||ca?(typeof d=="function"&&(Vy(e,r,d,n),l=e.memoizedState),(a=ca||zE(e,r,a,n,h,l,u))?(f||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(e.flags|=4194308)):(typeof o.componentDidMount=="function"&&(e.flags|=4194308),e.memoizedProps=n,e.memoizedState=l),o.props=n,o.state=l,o.context=u,n=a):(typeof o.componentDidMount=="function"&&(e.flags|=4194308),n=!1)}else{o=e.stateNode,Gj(t,e),a=e.memoizedProps,u=e.type===e.elementType?a:xi(e.type,a),o.props=u,f=e.pendingProps,h=o.context,l=r.contextType,typeof l=="object"&&l!==null?l=ni(l):(l=ns(r)?Xl:Cn.current,l=Wu(e,l));var p=r.getDerivedStateFromProps;(d=typeof p=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(a!==f||h!==l)&&UE(e,o,n,l),ca=!1,h=e.memoizedState,o.state=h,u0(e,n,o,s);var g=e.memoizedState;a!==f||h!==g||rs.current||ca?(typeof p=="function"&&(Vy(e,r,p,n),g=e.memoizedState),(u=ca||zE(e,r,u,n,h,g,l)||!1)?(d||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(n,g,l),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(n,g,l)),typeof o.componentDidUpdate=="function"&&(e.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof o.componentDidUpdate!="function"||a===t.memoizedProps&&h===t.memoizedState||(e.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||a===t.memoizedProps&&h===t.memoizedState||(e.flags|=1024),e.memoizedProps=n,e.memoizedState=g),o.props=n,o.state=g,o.context=l,n=u):(typeof o.componentDidUpdate!="function"||a===t.memoizedProps&&h===t.memoizedState||(e.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||a===t.memoizedProps&&h===t.memoizedState||(e.flags|=1024),n=!1)}return Ky(t,e,r,n,i,s)}function Ky(t,e,r,n,s,i){y4(t,e);var o=(e.flags&128)!==0;if(!n&&!o)return s&&PE(e,r,!1),Bo(t,e,i);n=e.stateNode,Q8.current=e;var a=o&&typeof r.getDerivedStateFromError!="function"?null:n.render();return e.flags|=1,t!==null&&o?(e.child=Gu(e,t.child,null,i),e.child=Gu(e,null,a,i)):In(t,e,a,i),e.memoizedState=n.state,s&&PE(e,r,!0),e.child}function w4(t){var e=t.stateNode;e.pendingContext?OE(t,e.pendingContext,e.pendingContext!==e.context):e.context&&OE(t,e.context,!1),h2(t,e.containerInfo)}function XE(t,e,r,n,s){return qu(),a2(s),e.flags|=256,In(t,e,r,n),e.child}var Xy={dehydrated:null,treeContext:null,retryLane:0};function Yy(t){return{baseLanes:t,cachePool:null,transitions:null}}function b4(t,e,r){var n=e.pendingProps,s=Zt.current,i=!1,o=(e.flags&128)!==0,a;if((a=o)||(a=t!==null&&t.memoizedState===null?!1:(s&2)!==0),a?(i=!0,e.flags&=-129):(t===null||t.memoizedState!==null)&&(s|=1),Ut(Zt,s&1),t===null)return Uy(e),t=e.memoizedState,t!==null&&(t=t.dehydrated,t!==null)?(e.mode&1?t.data==="$!"?e.lanes=8:e.lanes=1073741824:e.lanes=1,null):(o=n.children,t=n.fallback,i?(n=e.mode,i=e.child,o={mode:"hidden",children:o},!(n&1)&&i!==null?(i.childLanes=0,i.pendingProps=o):i=sx(o,n,0,null),t=Ul(t,n,r,null),i.return=e,t.return=e,i.sibling=t,e.child=i,e.child.memoizedState=Yy(r),e.memoizedState=Xy,t):b2(e,o));if(s=t.memoizedState,s!==null&&(a=s.dehydrated,a!==null))return Z8(t,e,o,n,a,s,r);if(i){i=n.fallback,o=e.mode,s=t.child,a=s.sibling;var l={mode:"hidden",children:n.children};return!(o&1)&&e.child!==s?(n=e.child,n.childLanes=0,n.pendingProps=l,e.deletions=null):(n=za(s,l),n.subtreeFlags=s.subtreeFlags&14680064),a!==null?i=za(a,i):(i=Ul(i,o,r,null),i.flags|=2),i.return=e,n.return=e,n.sibling=i,e.child=n,n=i,i=e.child,o=t.child.memoizedState,o=o===null?Yy(r):{baseLanes:o.baseLanes|r,cachePool:null,transitions:o.transitions},i.memoizedState=o,i.childLanes=t.childLanes&~r,e.memoizedState=Xy,n}return i=t.child,t=i.sibling,n=za(i,{mode:"visible",children:n.children}),!(e.mode&1)&&(n.lanes=r),n.return=e,n.sibling=null,t!==null&&(r=e.deletions,r===null?(e.deletions=[t],e.flags|=16):r.push(t)),e.child=n,e.memoizedState=null,n}function b2(t,e){return e=sx({mode:"visible",children:e},t.mode,0,null),e.return=t,t.child=e}function Lp(t,e,r,n){return n!==null&&a2(n),Gu(e,t.child,null,r),t=b2(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function Z8(t,e,r,n,s,i,o){if(r)return e.flags&256?(e.flags&=-257,n=Kv(Error(we(422))),Lp(t,e,o,n)):e.memoizedState!==null?(e.child=t.child,e.flags|=128,null):(i=n.fallback,s=e.mode,n=sx({mode:"visible",children:n.children},s,0,null),i=Ul(i,s,o,null),i.flags|=2,n.return=e,i.return=e,n.sibling=i,e.child=n,e.mode&1&&Gu(e,t.child,null,o),e.child.memoizedState=Yy(o),e.memoizedState=Xy,i);if(!(e.mode&1))return Lp(t,e,o,null);if(s.data==="$!"){if(n=s.nextSibling&&s.nextSibling.dataset,n)var a=n.dgst;return n=a,i=Error(we(419)),n=Kv(i,n,void 0),Lp(t,e,o,n)}if(a=(o&t.childLanes)!==0,ts||a){if(n=Xr,n!==null){switch(o&-o){case 4:s=2;break;case 16:s=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:s=32;break;case 536870912:s=268435456;break;default:s=0}s=s&(n.suspendedLanes|o)?0:s,s!==0&&s!==i.retryLane&&(i.retryLane=s,Fo(t,s),ji(n,t,s,-1))}return k2(),n=Kv(Error(we(421))),Lp(t,e,o,n)}return s.data==="$?"?(e.flags|=128,e.child=t.child,e=fB.bind(null,t),s._reactRetry=e,null):(t=i.treeContext,bs=La(s.nextSibling),_s=e,Jt=!0,_i=null,t!==null&&(Ws[qs++]=No,Ws[qs++]=Ao,Ws[qs++]=Yl,No=t.id,Ao=t.overflow,Yl=e),e=b2(e,n.children),e.flags|=4096,e)}function YE(t,e,r){t.lanes|=e;var n=t.alternate;n!==null&&(n.lanes|=e),Hy(t.return,e,r)}function Xv(t,e,r,n,s){var i=t.memoizedState;i===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:n,tail:r,tailMode:s}:(i.isBackwards=e,i.rendering=null,i.renderingStartTime=0,i.last=n,i.tail=r,i.tailMode=s)}function S4(t,e,r){var n=e.pendingProps,s=n.revealOrder,i=n.tail;if(In(t,e,n.children,r),n=Zt.current,n&2)n=n&1|2,e.flags|=128;else{if(t!==null&&t.flags&128)e:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&YE(t,r,e);else if(t.tag===19)YE(t,r,e);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;t=t.return}t.sibling.return=t.return,t=t.sibling}n&=1}if(Ut(Zt,n),!(e.mode&1))e.memoizedState=null;else switch(s){case"forwards":for(r=e.child,s=null;r!==null;)t=r.alternate,t!==null&&d0(t)===null&&(s=r),r=r.sibling;r=s,r===null?(s=e.child,e.child=null):(s=r.sibling,r.sibling=null),Xv(e,!1,s,r,i);break;case"backwards":for(r=null,s=e.child,e.child=null;s!==null;){if(t=s.alternate,t!==null&&d0(t)===null){e.child=s;break}t=s.sibling,s.sibling=r,r=s,s=t}Xv(e,!0,r,null,i);break;case"together":Xv(e,!1,null,null,void 0);break;default:e.memoizedState=null}return e.child}function jm(t,e){!(e.mode&1)&&t!==null&&(t.alternate=null,e.alternate=null,e.flags|=2)}
vendor: 4,905 bytes, line 40
40function Bo(t,e,r){if(t!==null&&(e.dependencies=t.dependencies),Ql|=e.lanes,!(r&e.childLanes))return null;if(t!==null&&e.child!==t.child)throw Error(we(153));if(e.child!==null){for(t=e.child,r=za(t,t.pendingProps),e.child=r,r.return=e;t.sibling!==null;)t=t.sibling,r=r.sibling=za(t,t.pendingProps),r.return=e;r.sibling=null}return e.child}function eB(t,e,r){switch(e.tag){case 3:w4(e),qu();break;case 5:Kj(e);break;case 1:ns(e.type)&&i0(e);break;case 4:h2(e,e.stateNode.containerInfo);break;case 10:var n=e.type._context,s=e.memoizedProps.value;Ut(l0,n._currentValue),n._currentValue=s;break;case 13:if(n=e.memoizedState,n!==null)return n.dehydrated!==null?(Ut(Zt,Zt.current&1),e.flags|=128,null):r&e.child.childLanes?b4(t,e,r):(Ut(Zt,Zt.current&1),t=Bo(t,e,r),t!==null?t.sibling:null);Ut(Zt,Zt.current&1);break;case 19:if(n=(r&e.childLanes)!==0,t.flags&128){if(n)return S4(t,e,r);e.flags|=128}if(s=e.memoizedState,s!==null&&(s.rendering=null,s.tail=null,s.lastEffect=null),Ut(Zt,Zt.current),n)break;return null;case 22:case 23:return e.lanes=0,v4(t,e,r)}return Bo(t,e,r)}var _4,Jy,E4,T4;_4=function(t,e){for(var r=e.child;r!==null;){if(r.tag===5||r.tag===6)t.appendChild(r.stateNode);else if(r.tag!==4&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===e)break;for(;r.sibling===null;){if(r.return===null||r.return===e)return;r=r.return}r.sibling.return=r.return,r=r.sibling}};Jy=function(){};E4=function(t,e,r,n){var s=t.memoizedProps;if(s!==n){t=e.stateNode,Al(to.current);var i=null;switch(r){case"input":s=yy(t,s),n=yy(t,n),i=[];break;case"select":s=rr({},s,{value:void 0}),n=rr({},n,{value:void 0}),i=[];break;case"textarea":s=Sy(t,s),n=Sy(t,n),i=[];break;default:typeof s.onClick!="function"&&typeof n.onClick=="function"&&(t.onclick=n0)}Ey(r,n);var o;r=null;for(u in s)if(!n.hasOwnProperty(u)&&s.hasOwnProperty(u)&&s[u]!=null)if(u==="style"){var a=s[u];for(o in a)a.hasOwnProperty(o)&&(r||(r={}),r[o]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(Gf.hasOwnProperty(u)?i||(i=[]):(i=i||[]).push(u,null));for(u in n){var l=n[u];if(a=s!=null?s[u]:void 0,n.hasOwnProperty(u)&&l!==a&&(l!=null||a!=null))if(u==="style")if(a){for(o in a)!a.hasOwnProperty(o)||l&&l.hasOwnProperty(o)||(r||(r={}),r[o]="");for(o in l)l.hasOwnProperty(o)&&a[o]!==l[o]&&(r||(r={}),r[o]=l[o])}else r||(i||(i=[]),i.push(u,r)),r=l;else u==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,a=a?a.__html:void 0,l!=null&&a!==l&&(i=i||[]).push(u,l)):u==="children"?typeof l!="string"&&typeof l!="number"||(i=i||[]).push(u,""+l):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(Gf.hasOwnProperty(u)?(l!=null&&u==="onScroll"&&Vt("scroll",t),i||a===l||(i=[])):(i=i||[]).push(u,l))}r&&(i=i||[]).push("style",r);var u=i;(e.updateQueue=u)&&(e.flags|=4)}};T4=function(t,e,r,n){r!==n&&(e.flags|=4)};function Ud(t,e){if(!Jt)switch(t.tailMode){case"hidden":e=t.tail;for(var r=null;e!==null;)e.alternate!==null&&(r=e),e=e.sibling;r===null?t.tail=null:r.sibling=null;break;case"collapsed":r=t.tail;for(var n=null;r!==null;)r.alternate!==null&&(n=r),r=r.sibling;n===null?e||t.tail===null?t.tail=null:t.tail.sibling=null:n.sibling=null}}function yn(t){var e=t.alternate!==null&&t.alternate.child===t.child,r=0,n=0;if(e)for(var s=t.child;s!==null;)r|=s.lanes|s.childLanes,n|=s.subtreeFlags&14680064,n|=s.flags&14680064,s.return=t,s=s.sibling;else for(s=t.child;s!==null;)r|=s.lanes|s.childLanes,n|=s.subtreeFlags,n|=s.flags,s.return=t,s=s.sibling;return t.subtreeFlags|=n,t.childLanes=r,e}function tB(t,e,r){var n=e.pendingProps;switch(o2(e),e.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return yn(e),null;case 1:return ns(e.type)&&s0(),yn(e),null;case 3:return n=e.stateNode,Ku(),qt(rs),qt(Cn),m2(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(t===null||t.child===null)&&(Ip(e)?e.flags|=4:t===null||t.memoizedState.isDehydrated&&!(e.flags&256)||(e.flags|=1024,_i!==null&&(iw(_i),_i=null))),Jy(t,e),yn(e),null;case 5:p2(e);var s=Al(ih.current);if(r=e.type,t!==null&&e.stateNode!=null)E4(t,e,r,n,s),t.ref!==e.ref&&(e.flags|=512,e.flags|=2097152);else{if(!n){if(e.stateNode===null)throw Error(we(166));return yn(e),null}if(t=Al(to.current),Ip(e)){n=e.stateNode,r=e.type;var i=e.memoizedProps;switch(n[Ji]=e,n[nh]=i,t=(e.mode&1)!==0,r){case"dialog":Vt("cancel",n),Vt("close",n);break;case"iframe":case"object":case"embed":Vt("load",n);break;case"video":case"audio":for(s=0;s<sf.length;s++)Vt(sf[s],n);break;case"source":Vt("error",n);break;case"img":case"image":case"link":Vt("error",n),Vt("load",n);break;case"details":Vt("toggle",n);break;case"input":iE(n,i),Vt("invalid",n);break;case"select":n._wrapperState={wasMultiple:!!i.multiple},Vt("invalid",n);break;case"textarea":aE(n,i),Vt("invalid",n)}Ey(r,i),s=null;for(var o in i)if(i.hasOwnProperty(o)){var a=i[o];
vendor: 30,215 bytes, line 40
40o==="children"?typeof a=="string"?n.textContent!==a&&(i.suppressHydrationWarning!==!0&&Mp(n.textContent,a,t),s=["children",a]):typeof a=="number"&&n.textContent!==""+a&&(i.suppressHydrationWarning!==!0&&Mp(n.textContent,a,t),s=["children",""+a]):Gf.hasOwnProperty(o)&&a!=null&&o==="onScroll"&&Vt("scroll",n)}switch(r){case"input":Cp(n),oE(n,i,!0);break;case"textarea":Cp(n),lE(n);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(n.onclick=n0)}n=s,e.updateQueue=n,n!==null&&(e.flags|=4)}else{o=s.nodeType===9?s:s.ownerDocument,t==="http://www.w3.org/1999/xhtml"&&(t=ZA(r)),t==="http://www.w3.org/1999/xhtml"?r==="script"?(t=o.createElement("div"),t.innerHTML="<script><\/script>",t=t.removeChild(t.firstChild)):typeof n.is=="string"?t=o.createElement(r,{is:n.is}):(t=o.createElement(r),r==="select"&&(o=t,n.multiple?o.multiple=!0:n.size&&(o.size=n.size))):t=o.createElementNS(t,r),t[Ji]=e,t[nh]=n,_4(t,e,!1,!1),e.stateNode=t;e:{switch(o=Ty(r,n),r){case"dialog":Vt("cancel",t),Vt("close",t),s=n;break;case"iframe":case"object":case"embed":Vt("load",t),s=n;break;case"video":case"audio":for(s=0;s<sf.length;s++)Vt(sf[s],t);s=n;break;case"source":Vt("error",t),s=n;break;case"img":case"image":case"link":Vt("error",t),Vt("load",t),s=n;break;case"details":Vt("toggle",t),s=n;break;case"input":iE(t,n),s=yy(t,n),Vt("invalid",t);break;case"option":s=n;break;case"select":t._wrapperState={wasMultiple:!!n.multiple},s=rr({},n,{value:void 0}),Vt("invalid",t);break;case"textarea":aE(t,n),s=Sy(t,n),Vt("invalid",t);break;default:s=n}Ey(r,s),a=s;for(i in a)if(a.hasOwnProperty(i)){var l=a[i];i==="style"?rj(t,l):i==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&ej(t,l)):i==="children"?typeof l=="string"?(r!=="textarea"||l!=="")&&Kf(t,l):typeof l=="number"&&Kf(t,""+l):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(Gf.hasOwnProperty(i)?l!=null&&i==="onScroll"&&Vt("scroll",t):l!=null&&Wb(t,i,l,o))}switch(r){case"input":Cp(t),oE(t,n,!1);break;case"textarea":Cp(t),lE(t);break;case"option":n.value!=null&&t.setAttribute("value",""+Ya(n.value));break;case"select":t.multiple=!!n.multiple,i=n.value,i!=null?xu(t,!!n.multiple,i,!1):n.defaultValue!=null&&xu(t,!!n.multiple,n.defaultValue,!0);break;default:typeof s.onClick=="function"&&(t.onclick=n0)}switch(r){case"button":case"input":case"select":case"textarea":n=!!n.autoFocus;break e;case"img":n=!0;break e;default:n=!1}}n&&(e.flags|=4)}e.ref!==null&&(e.flags|=512,e.flags|=2097152)}return yn(e),null;case 6:if(t&&e.stateNode!=null)T4(t,e,t.memoizedProps,n);else{if(typeof n!="string"&&e.stateNode===null)throw Error(we(166));if(r=Al(ih.current),Al(to.current),Ip(e)){if(n=e.stateNode,r=e.memoizedProps,n[Ji]=e,(i=n.nodeValue!==r)&&(t=_s,t!==null))switch(t.tag){case 3:Mp(n.nodeValue,r,(t.mode&1)!==0);break;case 5:t.memoizedProps.suppressHydrationWarning!==!0&&Mp(n.nodeValue,r,(t.mode&1)!==0)}i&&(e.flags|=4)}else n=(r.nodeType===9?r:r.ownerDocument).createTextNode(n),n[Ji]=e,e.stateNode=n}return yn(e),null;case 13:if(qt(Zt),n=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(Jt&&bs!==null&&e.mode&1&&!(e.flags&128))Hj(),qu(),e.flags|=98560,i=!1;else if(i=Ip(e),n!==null&&n.dehydrated!==null){if(t===null){if(!i)throw Error(we(318));if(i=e.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(we(317));i[Ji]=e}else qu(),!(e.flags&128)&&(e.memoizedState=null),e.flags|=4;yn(e),i=!1}else _i!==null&&(iw(_i),_i=null),i=!0;if(!i)return e.flags&65536?e:null}return e.flags&128?(e.lanes=r,e):(n=n!==null,n!==(t!==null&&t.memoizedState!==null)&&n&&(e.child.flags|=8192,e.mode&1&&(t===null||Zt.current&1?$r===0&&($r=3):k2())),e.updateQueue!==null&&(e.flags|=4),yn(e),null);case 4:return Ku(),Jy(t,e),t===null&&th(e.stateNode.containerInfo),yn(e),null;case 10:return u2(e.type._context),yn(e),null;case 17:return ns(e.type)&&s0(),yn(e),null;case 19:if(qt(Zt),i=e.memoizedState,i===null)return yn(e),null;if(n=(e.flags&128)!==0,o=i.rendering,o===null)if(n)Ud(i,!1);else{if($r!==0||t!==null&&t.flags&128)for(t=e.child;t!==null;){if(o=d0(t),o!==null){for(e.flags|=128,Ud(i,!1),n=o.updateQueue,n!==null&&(e.updateQueue=n,e.flags|=4),e.subtreeFlags=0,n=r,r=e.child;r!==null;)i=r,t=n,i.flags&=14680066,o=i.alternate,o===null?(i.childLanes=0,i.lanes=t,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=o.childLanes,i.lanes=o.lanes,i.child=o.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=o.memoizedProps,i.memoizedState=o.memoizedState,i.updateQueue=o.updateQueue,i.type=o.type,t=o.dependencies,i.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),r=r.sibling;return Ut(Zt,Zt.current&1|2),e.child}t=t.sibling}i.tail!==null&&wr()>Yu&&(e.flags|=128,n=!0,Ud(i,!1),e.lanes=4194304)}else{if(!n)if(t=d0(o),t!==null){if(e.flags|=128,n=!0,r=t.updateQueue,r!==null&&(e.updateQueue=r,e.flags|=4),Ud(i,!0),i.tail===null&&i.tailMode==="hidden"&&!o.alternate&&!Jt)return yn(e),null}else 2*wr()-i.renderingStartTime>Yu&&r!==1073741824&&(e.flags|=128,n=!0,Ud(i,!1),e.lanes=4194304);i.isBackwards?(o.sibling=e.child,e.child=o):(r=i.last,r!==null?r.sibling=o:e.child=o,i.last=o)}return i.tail!==null?(e=i.tail,i.rendering=e,i.tail=e.sibling,i.renderingStartTime=wr(),e.sibling=null,r=Zt.current,Ut(Zt,n?r&1|2:r&1),e):(yn(e),null);case 22:case 23:return C2(),n=e.memoizedState!==null,t!==null&&t.memoizedState!==null!==n&&(e.flags|=8192),n&&e.mode&1?ps&1073741824&&(yn(e),e.subtreeFlags&6&&(e.flags|=8192)):yn(e),null;case 24:return null;case 25:return null}throw Error(we(156,e.tag))}function rB(t,e){switch(o2(e),e.tag){case 1:return ns(e.type)&&s0(),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return Ku(),qt(rs),qt(Cn),m2(),t=e.flags,t&65536&&!(t&128)?(e.flags=t&-65537|128,e):null;case 5:return p2(e),null;case 13:if(qt(Zt),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(we(340));qu()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return qt(Zt),null;case 4:return Ku(),null;case 10:return u2(e.type._context),null;case 22:case 23:return C2(),null;case 24:return null;default:return null}}var Fp=!1,_n=!1,nB=typeof WeakSet=="function"?WeakSet:Set,Fe=null;function hu(t,e){var r=t.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){fr(t,e,n)}else r.current=null}function Qy(t,e,r){try{r()}catch(n){fr(t,e,n)}}var JE=!1;function sB(t,e){if(Iy=e0,t=jj(),s2(t)){if("selectionStart"in t)var r={start:t.selectionStart,end:t.selectionEnd};else e:{r=(r=t.ownerDocument)&&r.defaultView||window;var n=r.getSelection&&r.getSelection();if(n&&n.rangeCount!==0){r=n.anchorNode;var s=n.anchorOffset,i=n.focusNode;n=n.focusOffset;try{r.nodeType,i.nodeType}catch{r=null;break e}var o=0,a=-1,l=-1,u=0,d=0,f=t,h=null;t:for(;;){for(var p;f!==r||s!==0&&f.nodeType!==3||(a=o+s),f!==i||n!==0&&f.nodeType!==3||(l=o+n),f.nodeType===3&&(o+=f.nodeValue.length),(p=f.firstChild)!==null;)h=f,f=p;for(;;){if(f===t)break t;if(h===r&&++u===s&&(a=o),h===i&&++d===n&&(l=o),(p=f.nextSibling)!==null)break;f=h,h=f.parentNode}f=p}r=a===-1||l===-1?null:{start:a,end:l}}else r=null}r=r||{start:0,end:0}}else r=null;for(Dy={focusedElem:t,selectionRange:r},e0=!1,Fe=e;Fe!==null;)if(e=Fe,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,Fe=t;else for(;Fe!==null;){e=Fe;try{var g=e.alternate;if(e.flags&1024)switch(e.tag){case 0:case 11:case 15:break;case 1:if(g!==null){var m=g.memoizedProps,x=g.memoizedState,v=e.stateNode,y=v.getSnapshotBeforeUpdate(e.elementType===e.type?m:xi(e.type,m),x);v.__reactInternalSnapshotBeforeUpdate=y}break;case 3:var b=e.stateNode.containerInfo;b.nodeType===1?b.textContent="":b.nodeType===9&&b.documentElement&&b.removeChild(b.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(we(163))}}catch(S){fr(e,e.return,S)}if(t=e.sibling,t!==null){t.return=e.return,Fe=t;break}Fe=e.return}return g=JE,JE=!1,g}function _f(t,e,r){var n=e.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var s=n=n.next;do{if((s.tag&t)===t){var i=s.destroy;s.destroy=void 0,i!==void 0&&Qy(e,r,i)}s=s.next}while(s!==n)}}function rx(t,e){if(e=e.updateQueue,e=e!==null?e.lastEffect:null,e!==null){var r=e=e.next;do{if((r.tag&t)===t){var n=r.create;r.destroy=n()}r=r.next}while(r!==e)}}function Zy(t){var e=t.ref;if(e!==null){var r=t.stateNode;switch(t.tag){case 5:t=r;break;default:t=r}typeof e=="function"?e(t):e.current=t}}function C4(t){var e=t.alternate;e!==null&&(t.alternate=null,C4(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&(delete e[Ji],delete e[nh],delete e[By],delete e[$8],delete e[z8])),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}function k4(t){return t.tag===5||t.tag===3||t.tag===4}function QE(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||k4(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.flags&2||t.child===null||t.tag===4)continue e;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function ew(t,e,r){var n=t.tag;if(n===5||n===6)t=t.stateNode,e?r.nodeType===8?r.parentNode.insertBefore(t,e):r.insertBefore(t,e):(r.nodeType===8?(e=r.parentNode,e.insertBefore(t,r)):(e=r,e.appendChild(t)),r=r._reactRootContainer,r!=null||e.onclick!==null||(e.onclick=n0));else if(n!==4&&(t=t.child,t!==null))for(ew(t,e,r),t=t.sibling;t!==null;)ew(t,e,r),t=t.sibling}function tw(t,e,r){var n=t.tag;if(n===5||n===6)t=t.stateNode,e?r.insertBefore(t,e):r.appendChild(t);else if(n!==4&&(t=t.child,t!==null))for(tw(t,e,r),t=t.sibling;t!==null;)tw(t,e,r),t=t.sibling}var nn=null,bi=!1;function Jo(t,e,r){for(r=r.child;r!==null;)N4(t,e,r),r=r.sibling}function N4(t,e,r){if(eo&&typeof eo.onCommitFiberUnmount=="function")try{eo.onCommitFiberUnmount(Kg,r)}catch{}switch(r.tag){case 5:_n||hu(r,e);case 6:var n=nn,s=bi;nn=null,Jo(t,e,r),nn=n,bi=s,nn!==null&&(bi?(t=nn,r=r.stateNode,t.nodeType===8?t.parentNode.removeChild(r):t.removeChild(r)):nn.removeChild(r.stateNode));break;case 18:nn!==null&&(bi?(t=nn,r=r.stateNode,t.nodeType===8?Uv(t.parentNode,r):t.nodeType===1&&Uv(t,r),Qf(t)):Uv(nn,r.stateNode));break;case 4:n=nn,s=bi,nn=r.stateNode.containerInfo,bi=!0,Jo(t,e,r),nn=n,bi=s;break;case 0:case 11:case 14:case 15:if(!_n&&(n=r.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){s=n=n.next;do{var i=s,o=i.destroy;i=i.tag,o!==void 0&&(i&2||i&4)&&Qy(r,e,o),s=s.next}while(s!==n)}Jo(t,e,r);break;case 1:if(!_n&&(hu(r,e),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(a){fr(r,e,a)}Jo(t,e,r);break;case 21:Jo(t,e,r);break;case 22:r.mode&1?(_n=(n=_n)||r.memoizedState!==null,Jo(t,e,r),_n=n):Jo(t,e,r);break;default:Jo(t,e,r)}}function ZE(t){var e=t.updateQueue;if(e!==null){t.updateQueue=null;var r=t.stateNode;r===null&&(r=t.stateNode=new nB),e.forEach(function(n){var s=hB.bind(null,t,n);r.has(n)||(r.add(n),n.then(s,s))})}}function ui(t,e){var r=e.deletions;if(r!==null)for(var n=0;n<r.length;n++){var s=r[n];try{var i=t,o=e,a=o;e:for(;a!==null;){switch(a.tag){case 5:nn=a.stateNode,bi=!1;break e;case 3:nn=a.stateNode.containerInfo,bi=!0;break e;case 4:nn=a.stateNode.containerInfo,bi=!0;break e}a=a.return}if(nn===null)throw Error(we(160));N4(i,o,s),nn=null,bi=!1;var l=s.alternate;l!==null&&(l.return=null),s.return=null}catch(u){fr(s,e,u)}}if(e.subtreeFlags&12854)for(e=e.child;e!==null;)A4(e,t),e=e.sibling}function A4(t,e){var r=t.alternate,n=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:if(ui(e,t),Bi(t),n&4){try{_f(3,t,t.return),rx(3,t)}catch(m){fr(t,t.return,m)}try{_f(5,t,t.return)}catch(m){fr(t,t.return,m)}}break;case 1:ui(e,t),Bi(t),n&512&&r!==null&&hu(r,r.return);break;case 5:if(ui(e,t),Bi(t),n&512&&r!==null&&hu(r,r.return),t.flags&32){var s=t.stateNode;try{Kf(s,"")}catch(m){fr(t,t.return,m)}}if(n&4&&(s=t.stateNode,s!=null)){var i=t.memoizedProps,o=r!==null?r.memoizedProps:i,a=t.type,l=t.updateQueue;if(t.updateQueue=null,l!==null)try{a==="input"&&i.type==="radio"&&i.name!=null&&JA(s,i),Ty(a,o);var u=Ty(a,i);for(o=0;o<l.length;o+=2){var d=l[o],f=l[o+1];d==="style"?rj(s,f):d==="dangerouslySetInnerHTML"?ej(s,f):d==="children"?Kf(s,f):Wb(s,d,f,u)}switch(a){case"input":wy(s,i);break;case"textarea":QA(s,i);break;case"select":var h=s._wrapperState.wasMultiple;s._wrapperState.wasMultiple=!!i.multiple;var p=i.value;p!=null?xu(s,!!i.multiple,p,!1):h!==!!i.multiple&&(i.defaultValue!=null?xu(s,!!i.multiple,i.defaultValue,!0):xu(s,!!i.multiple,i.multiple?[]:"",!1))}s[nh]=i}catch(m){fr(t,t.return,m)}}break;case 6:if(ui(e,t),Bi(t),n&4){if(t.stateNode===null)throw Error(we(162));s=t.stateNode,i=t.memoizedProps;try{s.nodeValue=i}catch(m){fr(t,t.return,m)}}break;case 3:if(ui(e,t),Bi(t),n&4&&r!==null&&r.memoizedState.isDehydrated)try{Qf(e.containerInfo)}catch(m){fr(t,t.return,m)}break;case 4:ui(e,t),Bi(t);break;case 13:ui(e,t),Bi(t),s=t.child,s.flags&8192&&(i=s.memoizedState!==null,s.stateNode.isHidden=i,!i||s.alternate!==null&&s.alternate.memoizedState!==null||(E2=wr())),n&4&&ZE(t);break;case 22:if(d=r!==null&&r.memoizedState!==null,t.mode&1?(_n=(u=_n)||d,ui(e,t),_n=u):ui(e,t),Bi(t),n&8192){if(u=t.memoizedState!==null,(t.stateNode.isHidden=u)&&!d&&t.mode&1)for(Fe=t,d=t.child;d!==null;){for(f=Fe=d;Fe!==null;){switch(h=Fe,p=h.child,h.tag){case 0:case 11:case 14:case 15:_f(4,h,h.return);break;case 1:hu(h,h.return);var g=h.stateNode;if(typeof g.componentWillUnmount=="function"){n=h,r=h.return;try{e=n,g.props=e.memoizedProps,g.state=e.memoizedState,g.componentWillUnmount()}catch(m){fr(n,r,m)}}break;case 5:hu(h,h.return);break;case 22:if(h.memoizedState!==null){tT(f);continue}}p!==null?(p.return=h,Fe=p):tT(f)}d=d.sibling}e:for(d=null,f=t;;){if(f.tag===5){if(d===null){d=f;try{s=f.stateNode,u?(i=s.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none"):(a=f.stateNode,l=f.memoizedProps.style,o=l!=null&&l.hasOwnProperty("display")?l.display:null,a.style.display=tj("display",o))}catch(m){fr(t,t.return,m)}}}else if(f.tag===6){if(d===null)try{f.stateNode.nodeValue=u?"":f.memoizedProps}catch(m){fr(t,t.return,m)}}else if((f.tag!==22&&f.tag!==23||f.memoizedState===null||f===t)&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===t)break e;for(;f.sibling===null;){if(f.return===null||f.return===t)break e;d===f&&(d=null),f=f.return}d===f&&(d=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:ui(e,t),Bi(t),n&4&&ZE(t);break;case 21:break;default:ui(e,t),Bi(t)}}function Bi(t){var e=t.flags;if(e&2){try{e:{for(var r=t.return;r!==null;){if(k4(r)){var n=r;break e}r=r.return}throw Error(we(160))}switch(n.tag){case 5:var s=n.stateNode;n.flags&32&&(Kf(s,""),n.flags&=-33);var i=QE(t);tw(t,i,s);break;case 3:case 4:var o=n.stateNode.containerInfo,a=QE(t);ew(t,a,o);break;default:throw Error(we(161))}}catch(l){fr(t,t.return,l)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function iB(t,e,r){Fe=t,j4(t)}function j4(t,e,r){for(var n=(t.mode&1)!==0;Fe!==null;){var s=Fe,i=s.child;if(s.tag===22&&n){var o=s.memoizedState!==null||Fp;if(!o){var a=s.alternate,l=a!==null&&a.memoizedState!==null||_n;a=Fp;var u=_n;if(Fp=o,(_n=l)&&!u)for(Fe=s;Fe!==null;)o=Fe,l=o.child,o.tag===22&&o.memoizedState!==null?rT(s):l!==null?(l.return=o,Fe=l):rT(s);for(;i!==null;)Fe=i,j4(i),i=i.sibling;Fe=s,Fp=a,_n=u}eT(t)}else s.subtreeFlags&8772&&i!==null?(i.return=s,Fe=i):eT(t)}}function eT(t){for(;Fe!==null;){var e=Fe;if(e.flags&8772){var r=e.alternate;try{if(e.flags&8772)switch(e.tag){case 0:case 11:case 15:_n||rx(5,e);break;case 1:var n=e.stateNode;if(e.flags&4&&!_n)if(r===null)n.componentDidMount();else{var s=e.elementType===e.type?r.memoizedProps:xi(e.type,r.memoizedProps);n.componentDidUpdate(s,r.memoizedState,n.__reactInternalSnapshotBeforeUpdate)}var i=e.updateQueue;i!==null&&FE(e,i,n);break;case 3:var o=e.updateQueue;if(o!==null){if(r=null,e.child!==null)switch(e.child.tag){case 5:r=e.child.stateNode;break;case 1:r=e.child.stateNode}FE(e,o,r)}break;case 5:var a=e.stateNode;if(r===null&&e.flags&4){r=a;var l=e.memoizedProps;switch(e.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&r.focus();break;case"img":l.src&&(r.src=l.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(e.memoizedState===null){var u=e.alternate;if(u!==null){var d=u.memoizedState;if(d!==null){var f=d.dehydrated;f!==null&&Qf(f)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(we(163))}_n||e.flags&512&&Zy(e)}catch(h){fr(e,e.return,h)}}if(e===t){Fe=null;break}if(r=e.sibling,r!==null){r.return=e.return,Fe=r;break}Fe=e.return}}function tT(t){for(;Fe!==null;){var e=Fe;if(e===t){Fe=null;break}var r=e.sibling;if(r!==null){r.return=e.return,Fe=r;break}Fe=e.return}}function rT(t){for(;Fe!==null;){var e=Fe;try{switch(e.tag){case 0:case 11:case 15:var r=e.return;try{rx(4,e)}catch(l){fr(e,r,l)}break;case 1:var n=e.stateNode;if(typeof n.componentDidMount=="function"){var s=e.return;try{n.componentDidMount()}catch(l){fr(e,s,l)}}var i=e.return;try{Zy(e)}catch(l){fr(e,i,l)}break;case 5:var o=e.return;try{Zy(e)}catch(l){fr(e,o,l)}}}catch(l){fr(e,e.return,l)}if(e===t){Fe=null;break}var a=e.sibling;if(a!==null){a.return=e.return,Fe=a;break}Fe=e.return}}var oB=Math.ceil,p0=qo.ReactCurrentDispatcher,S2=qo.ReactCurrentOwner,Js=qo.ReactCurrentBatchConfig,bt=0,Xr=null,Tr=null,fn=0,ps=0,pu=ll(0),$r=0,ch=null,Ql=0,nx=0,_2=0,Ef=null,Qn=null,E2=0,Yu=1/0,_o=null,m0=!1,rw=null,Ba=null,Bp=!1,Ta=null,g0=0,Tf=0,nw=null,Rm=-1,Om=0;function $n(){return bt&6?wr():Rm!==-1?Rm:Rm=wr()}function $a(t){return t.mode&1?bt&2&&fn!==0?fn&-fn:H8.transition!==null?(Om===0&&(Om=pj()),Om):(t=It,t!==0||(t=window.event,t=t===void 0?16:bj(t.type)),t):1}function ji(t,e,r,n){if(50<Tf)throw Tf=0,nw=null,Error(we(185));qh(t,r,n),(!(bt&2)||t!==Xr)&&(t===Xr&&(!(bt&2)&&(nx|=r),$r===4&&ma(t,fn)),ss(t,n),r===1&&bt===0&&!(e.mode&1)&&(Yu=wr()+500,Zg&&cl()))}function ss(t,e){var r=t.callbackNode;H6(t,e);var n=Zm(t,t===Xr?fn:0);if(n===0)r!==null&&dE(r),t.callbackNode=null,t.callbackPriority=0;else if(e=n&-n,t.callbackPriority!==e){if(r!=null&&dE(r),e===1)t.tag===0?U8(nT.bind(null,t)):$j(nT.bind(null,t)),F8(function(){!(bt&6)&&cl()}),r=null;else{switch(mj(n)){case 1:r=Yb;break;case 4:r=fj;break;case 16:r=Qm;break;case 536870912:r=hj;break;default:r=Qm}r=F4(r,R4.bind(null,t))}t.callbackPriority=e,t.callbackNode=r}}function R4(t,e){if(Rm=-1,Om=0,bt&6)throw Error(we(327));var r=t.callbackNode;if(Su()&&t.callbackNode!==r)return null;var n=Zm(t,t===Xr?fn:0);if(n===0)return null;if(n&30||n&t.expiredLanes||e)e=x0(t,n);else{e=n;var s=bt;bt|=2;var i=P4();(Xr!==t||fn!==e)&&(_o=null,Yu=wr()+500,zl(t,e));do try{cB();break}catch(a){O4(t,a)}while(!0);c2(),p0.current=i,bt=s,Tr!==null?e=0:(Xr=null,fn=0,e=$r)}if(e!==0){if(e===2&&(s=jy(t),s!==0&&(n=s,e=sw(t,s))),e===1)throw r=ch,zl(t,0),ma(t,n),ss(t,wr()),r;if(e===6)ma(t,n);else{if(s=t.current.alternate,!(n&30)&&!aB(s)&&(e=x0(t,n),e===2&&(i=jy(t),i!==0&&(n=i,e=sw(t,i))),e===1))throw r=ch,zl(t,0),ma(t,n),ss(t,wr()),r;switch(t.finishedWork=s,t.finishedLanes=n,e){case 0:case 1:throw Error(we(345));case 2:bl(t,Qn,_o);break;case 3:if(ma(t,n),(n&130023424)===n&&(e=E2+500-wr(),10<e)){if(Zm(t,0)!==0)break;if(s=t.suspendedLanes,(s&n)!==n){$n(),t.pingedLanes|=t.suspendedLanes&s;break}t.timeoutHandle=Fy(bl.bind(null,t,Qn,_o),e);break}bl(t,Qn,_o);break;case 4:if(ma(t,n),(n&4194240)===n)break;for(e=t.eventTimes,s=-1;0<n;){var o=31-Ai(n);i=1<<o,o=e[o],o>s&&(s=o),n&=~i}if(n=s,n=wr()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*oB(n/1960))-n,10<n){t.timeoutHandle=Fy(bl.bind(null,t,Qn,_o),n);break}bl(t,Qn,_o);break;case 5:bl(t,Qn,_o);break;default:throw Error(we(329))}}}return ss(t,wr()),t.callbackNode===r?R4.bind(null,t):null}function sw(t,e){var r=Ef;return t.current.memoizedState.isDehydrated&&(zl(t,e).flags|=256),t=x0(t,e),t!==2&&(e=Qn,Qn=r,e!==null&&iw(e)),t}function iw(t){Qn===null?Qn=t:Qn.push.apply(Qn,t)}function aB(t){for(var e=t;;){if(e.flags&16384){var r=e.updateQueue;if(r!==null&&(r=r.stores,r!==null))for(var n=0;n<r.length;n++){var s=r[n],i=s.getSnapshot;s=s.value;try{if(!Mi(i(),s))return!1}catch{return!1}}}if(r=e.child,e.subtreeFlags&16384&&r!==null)r.return=e,e=r;else{if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return!0;e=e.return}e.sibling.return=e.return,e=e.sibling}}return!0}function ma(t,e){for(e&=~_2,e&=~nx,t.suspendedLanes|=e,t.pingedLanes&=~e,t=t.expirationTimes;0<e;){var r=31-Ai(e),n=1<<r;t[r]=-1,e&=~n}}function nT(t){if(bt&6)throw Error(we(327));Su();var e=Zm(t,0);if(!(e&1))return ss(t,wr()),null;var r=x0(t,e);if(t.tag!==0&&r===2){var n=jy(t);n!==0&&(e=n,r=sw(t,n))}if(r===1)throw r=ch,zl(t,0),ma(t,e),ss(t,wr()),r;if(r===6)throw Error(we(345));return t.finishedWork=t.current.alternate,t.finishedLanes=e,bl(t,Qn,_o),ss(t,wr()),null}function T2(t,e){var r=bt;bt|=1;try{return t(e)}finally{bt=r,bt===0&&(Yu=wr()+500,Zg&&cl())}}function Zl(t){Ta!==null&&Ta.tag===0&&!(bt&6)&&Su();var e=bt;bt|=1;var r=Js.transition,n=It;try{if(Js.transition=null,It=1,t)return t()}finally{It=n,Js.transition=r,bt=e,!(bt&6)&&cl()}}function C2(){ps=pu.current,qt(pu)}function zl(t,e){t.finishedWork=null,t.finishedLanes=0;var r=t.timeoutHandle;if(r!==-1&&(t.timeoutHandle=-1,L8(r)),Tr!==null)for(r=Tr.return;r!==null;){var n=r;switch(o2(n),n.tag){case 1:n=n.type.childContextTypes,n!=null&&s0();break;case 3:Ku(),qt(rs),qt(Cn),m2();break;case 5:p2(n);break;case 4:Ku();break;case 13:qt(Zt);break;case 19:qt(Zt);break;case 10:u2(n.type._context);break;case 22:case 23:C2()}r=r.return}if(Xr=t,Tr=t=za(t.current,null),fn=ps=e,$r=0,ch=null,_2=nx=Ql=0,Qn=Ef=null,Nl!==null){for(e=0;e<Nl.length;e++)if(r=Nl[e],n=r.interleaved,n!==null){r.interleaved=null;var s=n.next,i=r.pending;if(i!==null){var o=i.next;i.next=s,n.next=o}r.pending=n}Nl=null}return t}function O4(t,e){do{var r=Tr;try{if(c2(),Nm.current=h0,f0){for(var n=tr.memoizedState;n!==null;){var s=n.queue;s!==null&&(s.pending=null),n=n.next}f0=!1}if(Jl=0,Wr=Br=tr=null,Sf=!1,oh=0,S2.current=null,r===null||r.return===null){$r=1,ch=e,Tr=null;break}e:{var i=t,o=r.return,a=r,l=e;if(e=fn,a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var u=l,d=a,f=d.tag;if(!(d.mode&1)&&(f===0||f===11||f===15)){var h=d.alternate;h?(d.updateQueue=h.updateQueue,d.memoizedState=h.memoizedState,d.lanes=h.lanes):(d.updateQueue=null,d.memoizedState=null)}var p=VE(o);if(p!==null){p.flags&=-257,WE(p,o,a,i,e),p.mode&1&&HE(i,u,e),e=p,l=u;var g=e.updateQueue;if(g===null){var m=new Set;m.add(l),e.updateQueue=m}else g.add(l);break e}else{if(!(e&1)){HE(i,u,e),k2();break e}l=Error(we(426))}}else if(Jt&&a.mode&1){var x=VE(o);if(x!==null){!(x.flags&65536)&&(x.flags|=256),WE(x,o,a,i,e),a2(Xu(l,a));break e}}i=l=Xu(l,a),$r!==4&&($r=2),Ef===null?Ef=[i]:Ef.push(i),i=o;do{switch(i.tag){case 3:i.flags|=65536,e&=-e,i.lanes|=e;var v=m4(i,l,e);LE(i,v);break e;case 1:a=l;var y=i.type,b=i.stateNode;if(!(i.flags&128)&&(typeof y.getDerivedStateFromError=="function"||b!==null&&typeof b.componentDidCatch=="function"&&(Ba===null||!Ba.has(b)))){i.flags|=65536,e&=-e,i.lanes|=e;var S=g4(i,a,e);LE(i,S);break e}}i=i.return}while(i!==null)}I4(r)}catch(E){e=E,Tr===r&&r!==null&&(Tr=r=r.return);continue}break}while(!0)}function P4(){var t=p0.current;return p0.current=h0,t===null?h0:t}function k2(){($r===0||$r===3||$r===2)&&($r=4),Xr===null||!(Ql&268435455)&&!(nx&268435455)||ma(Xr,fn)}function x0(t,e){var r=bt;bt|=2;var n=P4();(Xr!==t||fn!==e)&&(_o=null,zl(t,e));do try{lB();break}catch(s){O4(t,s)}while(!0);if(c2(),bt=r,p0.current=n,Tr!==null)throw Error(we(261));return Xr=null,fn=0,$r}function lB(){for(;Tr!==null;)M4(Tr)}function cB(){for(;Tr!==null&&!M6();)M4(Tr)}function M4(t){var e=L4(t.alternate,t,ps);t.memoizedProps=t.pendingProps,e===null?I4(t):Tr=e,S2.current=null}function I4(t){var e=t;do{var r=e.alternate;if(t=e.return,e.flags&32768){if(r=rB(r,e),r!==null){r.flags&=32767,Tr=r;return}if(t!==null)t.flags|=32768,t.subtreeFlags=0,t.deletions=null;else{$r=6,Tr=null;return}}else if(r=tB(r,e,ps),r!==null){Tr=r;return}if(e=e.sibling,e!==null){Tr=e;return}Tr=e=t}while(e!==null);$r===0&&($r=5)}function bl(t,e,r){var n=It,s=Js.transition;try{Js.transition=null,It=1,uB(t,e,r,n)}finally{Js.transition=s,It=n}return null}function uB(t,e,r,n){do Su();while(Ta!==null);if(bt&6)throw Error(we(327));r=t.finishedWork;var s=t.finishedLanes;if(r===null)return null;if(t.finishedWork=null,t.finishedLanes=0,r===t.current)throw Error(we(177));t.callbackNode=null,t.callbackPriority=0;var i=r.lanes|r.childLanes;if(V6(t,i),t===Xr&&(Tr=Xr=null,fn=0),!(r.subtreeFlags&2064)&&!(r.flags&2064)||Bp||(Bp=!0,F4(Qm,function(){return Su(),null})),i=(r.flags&15990)!==0,r.subtreeFlags&15990||i){i=Js.transition,Js.transition=null;var o=It;It=1;var a=bt;bt|=4,S2.current=null,sB(t,r),A4(r,t),j8(Dy),e0=!!Iy,Dy=Iy=null,t.current=r,iB(r),I6(),bt=a,It=o,Js.transition=i}else t.current=r;if(Bp&&(Bp=!1,Ta=t,g0=s),i=t.pendingLanes,i===0&&(Ba=null),F6(r.stateNode),ss(t,wr()),e!==null)for(n=t.onRecoverableError,r=0;r<e.length;r++)s=e[r],n(s.value,{componentStack:s.stack,digest:s.digest});if(m0)throw m0=!1,t=rw,rw=null,t;return g0&1&&t.tag!==0&&Su(),i=t.pendingLanes,i&1?t===nw?Tf++:(Tf=0,nw=t):Tf=0,cl(),null}function Su(){if(Ta!==null){var t=mj(g0),e=Js.transition,r=It;try{if(Js.transition=null,It=16>t?16:t,Ta===null)var n=!1;else{if(t=Ta,Ta=null,g0=0,bt&6)throw Error(we(331));var s=bt;for(bt|=4,Fe=t.current;Fe!==null;){var i=Fe,o=i.child;if(Fe.flags&16){var a=i.deletions;if(a!==null){for(var l=0;l<a.length;l++){var u=a[l];for(Fe=u;Fe!==null;){var d=Fe;switch(d.tag){case 0:case 11:case 15:_f(8,d,i)}var f=d.child;if(f!==null)f.return=d,Fe=f;else for(;Fe!==null;){d=Fe;var h=d.sibling,p=d.return;if(C4(d),d===u){Fe=null;break}if(h!==null){h.return=p,Fe=h;break}Fe=p}}}var g=i.alternate;if(g!==null){var m=g.child;if(m!==null){g.child=null;do{var x=m.sibling;m.sibling=null,m=x}while(m!==null)}}Fe=i}}if(i.subtreeFlags&2064&&o!==null)o.return=i,Fe=o;else e:for(;Fe!==null;){if(i=Fe,i.flags&2048)switch(i.tag){case 0:case 11:case 15:_f(9,i,i.return)}var v=i.sibling;if(v!==null){v.return=i.return,Fe=v;break e}Fe=i.return}}var y=t.current;for(Fe=y;Fe!==null;){o=Fe;var b=o.child;if(o.subtreeFlags&2064&&b!==null)b.return=o,Fe=b;else e:for(o=y;Fe!==null;){if(a=Fe,a.flags&2048)try{switch(a.tag){case 0:case 11:case 15:rx(9,a)}}catch(E){fr(a,a.return,E)}if(a===o){Fe=null;break e}var S=a.sibling;if(S!==null){S.return=a.return,Fe=S;break e}Fe=a.return}}if(bt=s,cl(),eo&&typeof eo.onPostCommitFiberRoot=="function")try{eo.onPostCommitFiberRoot(Kg,t)}catch{}n=!0}return n}finally{It=r,Js.transition=e}}return!1}function sT(t,e,r){e=Xu(r,e),e=m4(t,e,1),t=Fa(t,e,1),e=$n(),t!==null&&(qh(t,1,e),ss(t,e))}function fr(t,e,r){if(t.tag===3)sT(t,t,r);else for(;e!==null;){if(e.tag===3){sT(e,t,r);break}else if(e.tag===1){var n=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof n.componentDidCatch=="function"&&(Ba===null||!Ba.has(n))){t=Xu(r,t),t=g4(e,t,1),e=Fa(e,t,1),t=$n(),e!==null&&(qh(e,1,t),ss(e,t));break}}e=e.return}}function dB(t,e,r){var n=t.pingCache;n!==null&&n.delete(e),e=$n(),t.pingedLanes|=t.suspendedLanes&r,Xr===t&&(fn&r)===r&&($r===4||$r===3&&(fn&130023424)===fn&&500>wr()-E2?zl(t,0):_2|=r),ss(t,e)}function D4(t,e){e===0&&(t.mode&1?(e=Ap,Ap<<=1,!(Ap&130023424)&&(Ap=4194304)):e=1);var r=$n();t=Fo(t,e),t!==null&&(qh(t,e,r),ss(t,r))}function fB(t){var e=t.memoizedState,r=0;e!==null&&(r=e.retryLane),D4(t,r)}function hB(t,e){var r=0;switch(t.tag){case 13:var n=t.stateNode,s=t.memoizedState;s!==null&&(r=s.retryLane);break;case 19:n=t.stateNode;break;default:throw Error(we(314))}n!==null&&n.delete(e),D4(t,r)}var L4;L4=function(t,e,r){if(t!==null)if(t.memoizedProps!==e.pendingProps||rs.current)ts=!0;else{if(!(t.lanes&r)&&!(e.flags&128))return ts=!1,eB(t,e,r);ts=!!(t.flags&131072)}else ts=!1,Jt&&e.flags&1048576&&zj(e,a0,e.index);switch(e.lanes=0,e.tag){case 2:var n=e.type;jm(t,e),t=e.pendingProps;var s=Wu(e,Cn.current);bu(e,r),s=x2(null,e,n,t,s,r);var i=v2();return e.flags|=1,typeof s=="object"&&s!==null&&typeof s.render=="function"&&s.$$typeof===void 0?(e.tag=1,e.memoizedState=null,e.updateQueue=null,ns(n)?(i=!0,i0(e)):i=!1,e.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,f2(e),s.updater=tx,e.stateNode=s,s._reactInternals=e,Wy(e,n,t,r),e=Ky(null,e,n,!0,i,r)):(e.tag=0,Jt&&i&&i2(e),In(null,e,s,r),e=e.child),e;case 16:n=e.elementType;e:{switch(jm(t,e),t=e.pendingProps,s=n._init,n=s(n._payload),e.type=n,s=e.tag=mB(n),t=xi(n,t),s){case 0:e=Gy(null,e,n,t,r);break e;case 1:e=KE(null,e,n,t,r);break e;case 11:e=qE(null,e,n,t,r);break e;case 14:e=GE(null,e,n,xi(n.type,t),r);break e}throw Error(we(306,n,""))}return e;case 0:return n=e.type,s=e.pendingProps,s=e.elementType===n?s:xi(n,s),Gy(t,e,n,s,r);case 1:return n=e.type,s=e.pendingProps,s=e.elementType===n?s:xi(n,s),KE(t,e,n,s,r);case 3:e:{if(w4(e),t===null)throw Error(we(387));n=e.pendingProps,i=e.memoizedState,s=i.element,Gj(t,e),u0(e,n,null,r);var o=e.memoizedState;if(n=o.element,i.isDehydrated)if(i={element:n,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},e.updateQueue.baseState=i,e.memoizedState=i,e.flags&256){s=Xu(Error(we(423)),e),e=XE(t,e,n,r,s);break e}else if(n!==s){s=Xu(Error(we(424)),e),e=XE(t,e,n,r,s);break e}else for(bs=La(e.stateNode.containerInfo.firstChild),_s=e,Jt=!0,_i=null,r=Wj(e,null,n,r),e.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(qu(),n===s){e=Bo(t,e,r);break e}In(t,e,n,r)}e=e.child}return e;case 5:return Kj(e),t===null&&Uy(e),n=e.type,s=e.pendingProps,i=t!==null?t.memoizedProps:null,o=s.children,Ly(n,s)?o=null:i!==null&&Ly(n,i)&&(e.flags|=32),y4(t,e),In(t,e,o,r),e.child;case 6:return t===null&&Uy(e),null;case 13:return b4(t,e,r);case 4:return h2(e,e.stateNode.containerInfo),n=e.pendingProps,t===null?e.child=Gu(e,null,n,r):In(t,e,n,r),e.child;case 11:return n=e.type,s=e.pendingProps,s=e.elementType===n?s:xi(n,s),qE(t,e,n,s,r);case 7:return In(t,e,e.pendingProps,r),e.child;case 8:return In(t,e,e.pendingProps.children,r),e.child;case 12:return In(t,e,e.pendingProps.children,r),e.child;
vendor: 4,552 bytes, line 40
40case 10:e:{if(n=e.type._context,s=e.pendingProps,i=e.memoizedProps,o=s.value,Ut(l0,n._currentValue),n._currentValue=o,i!==null)if(Mi(i.value,o)){if(i.children===s.children&&!rs.current){e=Bo(t,e,r);break e}}else for(i=e.child,i!==null&&(i.return=e);i!==null;){var a=i.dependencies;if(a!==null){o=i.child;for(var l=a.firstContext;l!==null;){if(l.context===n){if(i.tag===1){l=Ro(-1,r&-r),l.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var d=u.pending;d===null?l.next=l:(l.next=d.next,d.next=l),u.pending=l}}i.lanes|=r,l=i.alternate,l!==null&&(l.lanes|=r),Hy(i.return,r,e),a.lanes|=r;break}l=l.next}}else if(i.tag===10)o=i.type===e.type?null:i.child;else if(i.tag===18){if(o=i.return,o===null)throw Error(we(341));o.lanes|=r,a=o.alternate,a!==null&&(a.lanes|=r),Hy(o,r,e),o=i.sibling}else o=i.child;if(o!==null)o.return=i;else for(o=i;o!==null;){if(o===e){o=null;break}if(i=o.sibling,i!==null){i.return=o.return,o=i;break}o=o.return}i=o}In(t,e,s.children,r),e=e.child}return e;case 9:return s=e.type,n=e.pendingProps.children,bu(e,r),s=ni(s),n=n(s),e.flags|=1,In(t,e,n,r),e.child;case 14:return n=e.type,s=xi(n,e.pendingProps),s=xi(n.type,s),GE(t,e,n,s,r);case 15:return x4(t,e,e.type,e.pendingProps,r);case 17:return n=e.type,s=e.pendingProps,s=e.elementType===n?s:xi(n,s),jm(t,e),e.tag=1,ns(n)?(t=!0,i0(e)):t=!1,bu(e,r),p4(e,n,s),Wy(e,n,s,r),Ky(null,e,n,!0,t,r);case 19:return S4(t,e,r);case 22:return v4(t,e,r)}throw Error(we(156,e.tag))};function F4(t,e){return dj(t,e)}function pB(t,e,r,n){this.tag=t,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Xs(t,e,r,n){return new pB(t,e,r,n)}function N2(t){return t=t.prototype,!(!t||!t.isReactComponent)}function mB(t){if(typeof t=="function")return N2(t)?1:0;if(t!=null){if(t=t.$$typeof,t===Gb)return 11;if(t===Kb)return 14}return 2}function za(t,e){var r=t.alternate;return r===null?(r=Xs(t.tag,e,t.key,t.mode),r.elementType=t.elementType,r.type=t.type,r.stateNode=t.stateNode,r.alternate=t,t.alternate=r):(r.pendingProps=e,r.type=t.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=t.flags&14680064,r.childLanes=t.childLanes,r.lanes=t.lanes,r.child=t.child,r.memoizedProps=t.memoizedProps,r.memoizedState=t.memoizedState,r.updateQueue=t.updateQueue,e=t.dependencies,r.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},r.sibling=t.sibling,r.index=t.index,r.ref=t.ref,r}function Pm(t,e,r,n,s,i){var o=2;if(n=t,typeof t=="function")N2(t)&&(o=1);else if(typeof t=="string")o=5;else e:switch(t){case su:return Ul(r.children,s,i,e);case qb:o=8,s|=8;break;case my:return t=Xs(12,r,e,s|2),t.elementType=my,t.lanes=i,t;case gy:return t=Xs(13,r,e,s),t.elementType=gy,t.lanes=i,t;case xy:return t=Xs(19,r,e,s),t.elementType=xy,t.lanes=i,t;case KA:return sx(r,s,i,e);default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case qA:o=10;break e;case GA:o=9;break e;case Gb:o=11;break e;case Kb:o=14;break e;case la:o=16,n=null;break e}throw Error(we(130,t==null?t:typeof t,""))}return e=Xs(o,r,e,s),e.elementType=t,e.type=n,e.lanes=i,e}function Ul(t,e,r,n){return t=Xs(7,t,n,e),t.lanes=r,t}function sx(t,e,r,n){return t=Xs(22,t,n,e),t.elementType=KA,t.lanes=r,t.stateNode={isHidden:!1},t}function Yv(t,e,r){return t=Xs(6,t,null,e),t.lanes=r,t}function Jv(t,e,r){return e=Xs(4,t.children!==null?t.children:[],t.key,e),e.lanes=r,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}function gB(t,e,r,n,s){this.tag=e,this.containerInfo=t,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Rv(0),this.expirationTimes=Rv(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Rv(0),this.identifierPrefix=n,this.onRecoverableError=s,this.mutableSourceEagerHydrationData=null}function A2(t,e,r,n,s,i,o,a,l){return t=new gB(t,e,r,a,l),e===1?(e=1,i===!0&&(e|=8)):e=0,i=Xs(3,null,null,e),t.current=i,i.stateNode=t,i.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},f2(i),t}function xB(t,e,r){var n=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;
vendor: 4,595 bytes, line 40
40return{$$typeof:nu,key:n==null?null:""+n,children:t,containerInfo:e,implementation:r}}function B4(t){if(!t)return Ja;t=t._reactInternals;e:{if(gc(t)!==t||t.tag!==1)throw Error(we(170));var e=t;do{switch(e.tag){case 3:e=e.stateNode.context;break e;case 1:if(ns(e.type)){e=e.stateNode.__reactInternalMemoizedMergedChildContext;break e}}e=e.return}while(e!==null);throw Error(we(171))}if(t.tag===1){var r=t.type;if(ns(r))return Bj(t,r,e)}return e}function $4(t,e,r,n,s,i,o,a,l){return t=A2(r,n,!0,t,s,i,o,a,l),t.context=B4(null),r=t.current,n=$n(),s=$a(r),i=Ro(n,s),i.callback=e??null,Fa(r,i,s),t.current.lanes=s,qh(t,s,n),ss(t,n),t}function ix(t,e,r,n){var s=e.current,i=$n(),o=$a(s);return r=B4(r),e.context===null?e.context=r:e.pendingContext=r,e=Ro(i,o),e.payload={element:t},n=n===void 0?null:n,n!==null&&(e.callback=n),t=Fa(s,e,o),t!==null&&(ji(t,s,o,i),km(t,s,o)),o}function v0(t){if(t=t.current,!t.child)return null;switch(t.child.tag){case 5:return t.child.stateNode;default:return t.child.stateNode}}function iT(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var r=t.retryLane;t.retryLane=r!==0&&r<e?r:e}}function j2(t,e){iT(t,e),(t=t.alternate)&&iT(t,e)}function vB(){return null}var z4=typeof reportError=="function"?reportError:function(t){console.error(t)};function R2(t){this._internalRoot=t}ox.prototype.render=R2.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(we(409));ix(t,e,null,null)};ox.prototype.unmount=R2.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;Zl(function(){ix(null,t,null,null)}),e[Lo]=null}};function ox(t){this._internalRoot=t}ox.prototype.unstable_scheduleHydration=function(t){if(t){var e=vj();t={blockedOn:null,target:t,priority:e};for(var r=0;r<pa.length&&e!==0&&e<pa[r].priority;r++);pa.splice(r,0,t),r===0&&wj(t)}};function O2(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function ax(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11&&(t.nodeType!==8||t.nodeValue!==" react-mount-point-unstable "))}function oT(){}function yB(t,e,r,n,s){if(s){if(typeof n=="function"){var i=n;n=function(){var u=v0(o);i.call(u)}}var o=$4(e,n,t,0,null,!1,!1,"",oT);return t._reactRootContainer=o,t[Lo]=o.current,th(t.nodeType===8?t.parentNode:t),Zl(),o}for(;s=t.lastChild;)t.removeChild(s);if(typeof n=="function"){var a=n;n=function(){var u=v0(l);a.call(u)}}var l=A2(t,0,!1,null,null,!1,!1,"",oT);return t._reactRootContainer=l,t[Lo]=l.current,th(t.nodeType===8?t.parentNode:t),Zl(function(){ix(e,l,r,n)}),l}function lx(t,e,r,n,s){var i=r._reactRootContainer;if(i){var o=i;if(typeof s=="function"){var a=s;s=function(){var l=v0(o);a.call(l)}}ix(e,o,t,s)}else o=yB(r,e,t,s,n);return v0(o)}gj=function(t){switch(t.tag){case 3:var e=t.stateNode;if(e.current.memoizedState.isDehydrated){var r=nf(e.pendingLanes);r!==0&&(Jb(e,r|1),ss(e,wr()),!(bt&6)&&(Yu=wr()+500,cl()))}break;case 13:Zl(function(){var n=Fo(t,1);if(n!==null){var s=$n();ji(n,t,1,s)}}),j2(t,1)}};Qb=function(t){if(t.tag===13){var e=Fo(t,134217728);if(e!==null){var r=$n();ji(e,t,134217728,r)}j2(t,134217728)}};xj=function(t){if(t.tag===13){var e=$a(t),r=Fo(t,e);if(r!==null){var n=$n();ji(r,t,e,n)}j2(t,e)}};vj=function(){return It};yj=function(t,e){var r=It;try{return It=t,e()}finally{It=r}};ky=function(t,e,r){switch(e){case"input":if(wy(t,r),e=r.name,r.type==="radio"&&e!=null){for(r=t;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll("input[name="+JSON.stringify(""+e)+'][type="radio"]'),e=0;e<r.length;e++){var n=r[e];if(n!==t&&n.form===t.form){var s=Qg(n);if(!s)throw Error(we(90));YA(n),wy(n,s)}}}break;case"textarea":QA(t,r);break;case"select":e=r.value,e!=null&&xu(t,!!r.multiple,e,!1)}};ij=T2;oj=Zl;var wB={usingClientEntryPoint:!1,Events:[Kh,lu,Qg,nj,sj,T2]},Hd={findFiberByHostInstance:kl,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},bB={bundleType:Hd.bundleType,version:Hd.version,rendererPackageName:Hd.rendererPackageName,rendererConfig:Hd.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:qo.ReactCurrentDispatcher,findHostInstanceByFiber:function(t){return t=cj(t),t===null?null:t.stateNode},findFiberByHostInstance:Hd.findFiberByHostInstance||vB,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 $p=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!$p.isDisabled&&$p.supportsFiber)try{Kg=$p.inject(bB),eo=$p}catch{}}As.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=wB;As.createPortal=function(t,e){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!O2(e))throw Error(we(200));return xB(t,e,null,r)};As.createRoot=function(t,e){if(!O2(t))throw Error(we(299));var r=!1,n="",s=z4;return e!=null&&(e.unstable_strictMode===!0&&(r=!0),e.identifierPrefix!==void 0&&(n=e.identifierPrefix),e.onRecoverableError!==void 0&&(s=e.onRecoverableError)),e=A2(t,1,!1,null,null,r,!1,n,s),t[Lo]=e.current,th(t.nodeType===8?t.parentNode:t),new R2(e)};As.findDOMNode=function(t){if(t==null)return null;if(t.nodeType===1)return t;var e=t._reactInternals;if(e===void 0)throw typeof t.render=="function"?Error(we(188)):(t=Object.keys(t).join(","),Error(we(268,t)));return t=cj(e),t=t===null?null:t.stateNode,t};As.flushSync=function(t){return Zl(t)};As.hydrate=function(t,e,r){if(!ax(e))throw Error(we(200));return lx(null,t,e,!0,r)};As.hydrateRoot=function(t,e,r){if(!O2(t))throw Error(we(405));var n=r!=null&&r.hydratedSources||null,s=!1,i="",o=z4;if(r!=null&&(r.unstable_strictMode===!0&&(s=!0),r.identifierPrefix!==void 0&&(i=r.identifierPrefix),r.onRecoverableError!==void 0&&(o=r.onRecoverableError)),e=$4(e,null,t,1,r??null,s,!1,i,o),t[Lo]=e.current,th(t),n)for(t=0;t<n.length;t++)r=n[t],s=r._getVersion,s=s(r._source),e.mutableSourceEagerHydrationData==null?e.mutableSourceEagerHydrationData=[r,s]:e.mutableSourceEagerHydrationData.push(r,s);return new ox(e)};As.render=function(t,e,r){if(!ax(e))throw Error(we(200));return lx(null,t,e,!1,r)};As.unmountComponentAtNode=function(t){if(!ax(t))throw Error(we(40));return t._reactRootContainer?(Zl(function(){lx(null,null,t,!1,function(){t._reactRootContainer=null,t[Lo]=null})}),!0):!1};As.unstable_batchedUpdates=T2;As.unstable_renderSubtreeIntoContainer=function(t,e,r,n){if(!ax(r))throw Error(we(200));if(t==null||t._reactInternals===void 0)throw Error(we(38));return lx(t,e,r,!1,n)};As.version="18.3.1-next-f1338f8080-20240426";function U4(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(U4)}catch(t){console.error(t)}}U4(),UA.exports=As;var xc=UA.exports;const P2=md(xc);var H4,aT=xc;H4=aT.createRoot,aT.hydrateRoot;const SB=1,_B=1e6;let Qv=0;function EB(){return Qv=(Qv+1)%Number.MAX_SAFE_INTEGER,Qv.toString()}const Zv=new Map,lT=t=>{if(Zv.has(t))return;const e=setTimeout(()=>{Zv.delete(t),Cf({type:"REMOVE_TOAST",toastId:t})},_B);Zv.set(t,e)},TB=(t,e)=>{switch(e.type){case"ADD_TOAST":return{...t,toasts:[e.toast,...t.toasts].slice(0,SB)};case"UPDATE_TOAST":return{...t,toasts:t.toasts.map(r=>r.id===e.toast.id?{...r,...e.toast}:r)};case"DISMISS_TOAST":{const{toastId:r}=e;return r?lT(r):t.toasts.forEach(n=>{lT(n.id)}),{...t,toasts:t.toasts.map(n=>
vendor: 14,237 bytes, line 40
40n.id===r||r===void 0?{...n,open:!1}:n)}}case"REMOVE_TOAST":return e.toastId===void 0?{...t,toasts:[]}:{...t,toasts:t.toasts.filter(r=>r.id!==e.toastId)}}},Mm=[];let Im={toasts:[]};function Cf(t){Im=TB(Im,t),Mm.forEach(e=>{e(Im)})}function CB({...t}){const e=EB(),r=s=>Cf({type:"UPDATE_TOAST",toast:{...s,id:e}}),n=()=>Cf({type:"DISMISS_TOAST",toastId:e});return Cf({type:"ADD_TOAST",toast:{...t,id:e,open:!0,onOpenChange:s=>{s||n()}}}),{id:e,dismiss:n,update:r}}function uo(){const[t,e]=w.useState(Im);return w.useEffect(()=>(Mm.push(e),()=>{const r=Mm.indexOf(e);r>-1&&Mm.splice(r,1)}),[t]),{...t,toast:CB,dismiss:r=>Cf({type:"DISMISS_TOAST",toastId:r})}}function Ce(t,e,{checkForDefaultPrevented:r=!0}={}){return function(s){if(t==null||t(s),r===!1||!s.defaultPrevented)return e==null?void 0:e(s)}}function cT(t,e){if(typeof t=="function")return t(e);t!=null&&(t.current=e)}function cx(...t){return e=>{let r=!1;const n=t.map(s=>{const i=cT(s,e);return!r&&typeof i=="function"&&(r=!0),i});if(r)return()=>{for(let s=0;s<n.length;s++){const i=n[s];typeof i=="function"?i():cT(t[s],null)}}}}function ot(...t){return w.useCallback(cx(...t),t)}function kB(t,e){const r=w.createContext(e),n=i=>{const{children:o,...a}=i,l=w.useMemo(()=>a,Object.values(a));return c.jsx(r.Provider,{value:l,children:o})};n.displayName=t+"Provider";function s(i){const o=w.useContext(r);if(o)return o;if(e!==void 0)return e;throw new Error(`\`${i}\` must be used within \`${t}\``)}return[n,s]}function Rs(t,e=[]){let r=[];function n(i,o){const a=w.createContext(o),l=r.length;r=[...r,o];const u=f=>{var v;const{scope:h,children:p,...g}=f,m=((v=h==null?void 0:h[t])==null?void 0:v[l])||a,x=w.useMemo(()=>g,Object.values(g));return c.jsx(m.Provider,{value:x,children:p})};u.displayName=i+"Provider";function d(f,h){var m;const p=((m=h==null?void 0:h[t])==null?void 0:m[l])||a,g=w.useContext(p);if(g)return g;if(o!==void 0)return o;throw new Error(`\`${f}\` must be used within \`${i}\``)}return[u,d]}const s=()=>{const i=r.map(o=>w.createContext(o));return function(a){const l=(a==null?void 0:a[t])||i;return w.useMemo(()=>({[`__scope${t}`]:{...a,[t]:l}}),[a,l])}};return s.scopeName=t,[n,NB(s,...e)]}function NB(...t){const e=t[0];if(t.length===1)return e;const r=()=>{const n=t.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(i){const o=n.reduce((a,{useScope:l,scopeName:u})=>{const f=l(i)[`__scope${u}`];return{...a,...f}},{});return w.useMemo(()=>({[`__scope${e.scopeName}`]:o}),[o])}};return r.scopeName=e.scopeName,r}function ec(t){const e=jB(t),r=w.forwardRef((n,s)=>{const{children:i,...o}=n,a=w.Children.toArray(i),l=a.find(OB);if(l){const u=l.props.children,d=a.map(f=>f===l?w.Children.count(u)>1?w.Children.only(null):w.isValidElement(u)?u.props.children:null:f);return c.jsx(e,{...o,ref:s,children:w.isValidElement(u)?w.cloneElement(u,void 0,d):null})}return c.jsx(e,{...o,ref:s,children:i})});return r.displayName=`${t}.Slot`,r}var AB=ec("Slot");function jB(t){const e=w.forwardRef((r,n)=>{const{children:s,...i}=r;if(w.isValidElement(s)){const o=MB(s),a=PB(i,s.props);return s.type!==w.Fragment&&(a.ref=n?cx(n,o):o),w.cloneElement(s,a)}return w.Children.count(s)>1?w.Children.only(null):null});return e.displayName=`${t}.SlotClone`,e}var V4=Symbol("radix.slottable");function RB(t){const e=({children:r})=>c.jsx(c.Fragment,{children:r});return e.displayName=`${t}.Slottable`,e.__radixId=V4,e}function OB(t){return w.isValidElement(t)&&typeof t.type=="function"&&"__radixId"in t.type&&t.type.__radixId===V4}function PB(t,e){const r={...e};for(const n in e){const s=t[n],i=e[n];/^on[A-Z]/.test(n)?s&&i?r[n]=(...a)=>{const l=i(...a);return s(...a),l}:s&&(r[n]=s):n==="style"?r[n]={...s,...i}:n==="className"&&(r[n]=[s,i].filter(Boolean).join(" "))}return{...t,...r}}function MB(t){var n,s;let e=(n=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:n.get,r=e&&"isReactWarning"in e&&e.isReactWarning;return r?t.ref:(e=(s=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:s.get,r=e&&"isReactWarning"in e&&e.isReactWarning,r?t.props.ref:t.props.ref||t.ref)}function Yh(t){const e=t+"CollectionProvider",[r,n]=Rs(e),[s,i]=r(e,{collectionRef:{current:null},itemMap:new Map}),o=m=>{const{scope:x,children:v}=m,y=de.useRef(null),b=de.useRef(new Map).current;return c.jsx(s,{scope:x,itemMap:b,collectionRef:y,children:v})};o.displayName=e;const a=t+"CollectionSlot",l=ec(a),u=de.forwardRef((m,x)=>{const{scope:v,children:y}=m,b=i(a,v),S=ot(x,b.collectionRef);return c.jsx(l,{ref:S,children:y})});u.displayName=a;const d=t+"CollectionItemSlot",f="data-radix-collection-item",h=ec(d),p=de.forwardRef((m,x)=>{const{scope:v,children:y,...b}=m,S=de.useRef(null),E=ot(x,S),C=i(d,v);return de.useEffect(()=>(C.itemMap.set(S,{ref:S,...b}),()=>void C.itemMap.delete(S))),c.jsx(h,{[f]:"",ref:E,children:y})});p.displayName=d;function g(m){const x=i(t+"CollectionConsumer",m);return de.useCallback(()=>{const y=x.collectionRef.current;if(!y)return[];const b=Array.from(y.querySelectorAll(`[${f}]`));return Array.from(x.itemMap.values()).sort((C,_)=>b.indexOf(C.ref.current)-b.indexOf(_.ref.current))},[x.collectionRef,x.itemMap])}return[{Provider:o,Slot:u,ItemSlot:p},g,n]}var IB=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Ue=IB.reduce((t,e)=>{const r=ec(`Primitive.${e}`),n=w.forwardRef((s,i)=>{const{asChild:o,...a}=s,l=o?r:e;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),c.jsx(l,{...a,ref:i})});return n.displayName=`Primitive.${e}`,{...t,[e]:n}},{});function M2(t,e){t&&xc.flushSync(()=>t.dispatchEvent(e))}function br(t){const e=w.useRef(t);return w.useEffect(()=>{e.current=t}),w.useMemo(()=>(...r)=>{var n;return(n=e.current)==null?void 0:n.call(e,...r)},[])}function DB(t,e=globalThis==null?void 0:globalThis.document){const r=br(t);w.useEffect(()=>{const n=s=>{s.key==="Escape"&&r(s)};return e.addEventListener("keydown",n,{capture:!0}),()=>e.removeEventListener("keydown",n,{capture:!0})},[r,e])}var LB="DismissableLayer",ow="dismissableLayer.update",FB="dismissableLayer.pointerDownOutside",BB="dismissableLayer.focusOutside",uT,W4=w.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),yd=w.forwardRef((t,e)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:s,onFocusOutside:i,onInteractOutside:o,onDismiss:a,...l}=t,u=w.useContext(W4),[d,f]=w.useState(null),h=(d==null?void 0:d.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,p]=w.useState({}),g=ot(e,_=>f(_)),m=Array.from(u.layers),[x]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),v=m.indexOf(x),y=d?m.indexOf(d):-1,b=u.layersWithOutsidePointerEventsDisabled.size>0,S=y>=v,E=zB(_=>{const A=_.target,N=[...u.branches].some(D=>D.contains(A));!S||N||(s==null||s(_),o==null||o(_),_.defaultPrevented||a==null||a())},h),C=UB(_=>{const A=_.target;[...u.branches].some(D=>D.contains(A))||(i==null||i(_),o==null||o(_),_.defaultPrevented||a==null||a())},h);return DB(_=>{y===u.layers.size-1&&(n==null||n(_),!_.defaultPrevented&&a&&(_.preventDefault(),a()))},h),w.useEffect(()=>{if(d)return r&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(uT=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),dT(),()=>{r&&u.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=uT)}},[d,h,r,u]),w.useEffect(()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),dT())},[d,u]),w.useEffect(()=>{const _=()=>p({});return document.addEventListener(ow,_),()=>document.removeEventListener(ow,_)},[]),c.jsx(Ue.div,{...l,ref:g,style:{pointerEvents:b?S?"auto":"none":void 0,...t.style},onFocusCapture:Ce(t.onFocusCapture,C.onFocusCapture),onBlurCapture:Ce(t.onBlurCapture,C.onBlurCapture),onPointerDownCapture:Ce(t.onPointerDownCapture,E.onPointerDownCapture)})});yd.displayName=LB;var $B="DismissableLayerBranch",q4=w.forwardRef((t,e)=>{const r=w.useContext(W4),n=w.useRef(null),s=ot(e,n);return w.useEffect(()=>{const i=n.current;if(i)return r.branches.add(i),()=>{r.branches.delete(i)}},[r.branches]),c.jsx(Ue.div,{...t,ref:s})});q4.displayName=$B;function zB(t,e=globalThis==null?void 0:globalThis.document){const r=br(t),n=w.useRef(!1),s=w.useRef(()=>{});return w.useEffect(()=>{const i=a=>{if(a.target&&!n.current){let l=function(){G4(FB,r,u,{discrete:!0})};const u={originalEvent:a};a.pointerType==="touch"?(e.removeEventListener("click",s.current),s.current=l,e.addEventListener("click",s.current,{once:!0})):l()}else e.removeEventListener("click",s.current);n.current=!1},o=window.setTimeout(()=>{e.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(o),e.removeEventListener("pointerdown",i),e.removeEventListener("click",s.current)}},[e,r]),{onPointerDownCapture:()=>n.current=!0}}function UB(t,e=globalThis==null?void 0:globalThis.document){const r=br(t),n=w.useRef(!1);return w.useEffect(()=>{const s=i=>{i.target&&!n.current&&G4(BB,r,{originalEvent:i},{discrete:!1})};return e.addEventListener("focusin",s),()=>e.removeEventListener("focusin",s)},[e,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function dT(){const t=new CustomEvent(ow);document.dispatchEvent(t)}function G4(t,e,r,{discrete:n}){const s=r.originalEvent.target,i=new CustomEvent(t,{bubbles:!1,cancelable:!0,detail:r});e&&s.addEventListener(t,e,{once:!0}),n?M2(s,i):s.dispatchEvent(i)}var HB=yd,VB=q4,zr=globalThis!=null&&globalThis.document?w.useLayoutEffect:()=>{},WB="Portal",Jh=w.forwardRef((t,e)=>{var a;const{container:r,...n}=t,[s,i]=w.useState(!1);zr(()=>i(!0),[]);const o=r||s&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return o?P2.createPortal(c.jsx(Ue.div,{...n,ref:e}),o):null});Jh.displayName=WB;function qB(t,e){return w.useReducer((r,n)=>e[r][n]??r,t)}var Nn=t=>{const{present:e,children:r}=t,n=GB(e),s=typeof r=="function"?r({present:n.isPresent}):w.Children.only(r),i=ot(n.ref,KB(s));return typeof r=="function"||n.isPresent?w.cloneElement(s,{ref:i}):null};Nn.displayName="Presence";function GB(t){const[e,r]=w.useState(),n=w.useRef(null),s=w.useRef(t),i=w.useRef("none"),o=t?"mounted":"unmounted",[a,l]=qB(o,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return w.useEffect(()=>{const u=zp(n.current);i.current=a==="mounted"?u:"none"},[a]),zr(()=>{const u=n.current,d=s.current;if(d!==t){const h=i.current,p=zp(u);t?l("MOUNT"):p==="none"||(u==null?void 0:u.display)==="none"?l("UNMOUNT"):l(d&&h!==p?"ANIMATION_OUT":"UNMOUNT"),s.current=t}},[t,l]),zr(()=>{if(e){let u;const d=e.ownerDocument.defaultView??window,f=p=>{const m=zp(n.current).includes(p.animationName);if(p.target===e&&m&&(l("ANIMATION_END"),!s.current)){const x=e.style.animationFillMode;e.style.animationFillMode="forwards",u=d.setTimeout(()=>{e.style.animationFillMode==="forwards"&&(e.style.animationFillMode=x)})}},h=p=>{p.target===e&&(i.current=zp(n.current))};return e.addEventListener("animationstart",h),e.addEventListener("animationcancel",f),e.addEventListener("animationend",f),()=>{d.clearTimeout(u),e.removeEventListener("animationstart",h),e.removeEventListener("animationcancel",f),e.removeEventListener("animationend",f)}}else l("ANIMATION_END")},[e,l]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:w.useCallback(u=>{n.current=u?getComputedStyle(u):null,r(u)},[])}}function zp(t){return(t==null?void 0:t.animationName)||"none"}function KB(t){var n,s;let e=(n=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:n.get,r=e&&"isReactWarning"in e&&e.isReactWarning;return r?t.ref:(e=(s=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:s.get,r=e&&"isReactWarning"in e&&e.isReactWarning,r?t.props.ref:t.props.ref||t.ref)}var XB=Ub[" useInsertionEffect ".trim().toString()]||zr;function so({prop:t,defaultProp:e,onChange:r=()=>{},caller:n}){const[s,i,o]=YB({defaultProp:e,onChange:r}),a=t!==void 0,l=a?t:s;{const d=w.useRef(t!==void 0);w.useEffect(()=>{const f=d.current;f!==a&&console.warn(`${n} is changing from ${f?"controlled":"uncontrolled"} to ${a?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),d.current=a},[a,n])}const u=w.useCallback(d=>{var f;if(a){const h=JB(d)?d(t):d;h!==t&&((f=o.current)==null||f.call(o,h))}else i(d)},[a,t,i,o]);return[l,u]}function YB({defaultProp:t,onChange:e}){const[r,n]=w.useState(t),s=w.useRef(r),i=w.useRef(e);return XB(()=>{i.current=e},[e]),w.useEffect(()=>{var o;s.current!==r&&((o=i.current)==null||o.call(i,r),s.current=r)},[r,s]),[r,n,i]}function JB(t){return typeof t=="function"}var K4=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"}),QB="VisuallyHidden",ux=w.forwardRef((t,e)=>c.jsx(Ue.span,{...t,ref:e,style:{...K4,...t.style}}));ux.displayName=QB;var ZB=ux,I2="ToastProvider",[D2,e7,t7]=Yh("Toast"),[X4,lpe]=Rs("Toast",[t7]),[r7,dx]=X4(I2),Y4=t=>{const{__scopeToast:e,label:r="Notification",duration:n=5e3,swipeDirection:s="right",swipeThreshold:i=50,children:o}=t,[a,l]=w.useState(null),[u,d]=w.useState(0),f=w.useRef(!1),h=w.useRef(!1);return r.trim()||console.error(`Invalid prop \`label\` supplied to \`${I2}\`. Expected non-empty \`string\`.`),c.jsx(D2.Provider,{scope:e,children:c.jsx(r7,{scope:e,label:r,duration:n,swipeDirection:s,swipeThreshold:i,toastCount:u,viewport:a,onViewportChange:l,onToastAdd:w.useCallback(()=>d(p=>p+1),[]),onToastRemove:w.useCallback(()=>d(p=>p-1),[]),isFocusedToastEscapeKeyDownRef:f,isClosePausedRef:h,children:o})})};Y4.displayName=I2;var J4="ToastViewport",n7=["F8"],aw="toast.viewportPause",lw="toast.viewportResume",Q4=w.forwardRef((t,e)=>{const{__scopeToast:r,hotkey:n=n7,label:s="Notifications ({hotkey})",...i}=t,o=dx(J4,r),a=e7(r),l=w.useRef(null),u=w.useRef(null),d=w.useRef(null),f=w.useRef(null),h=ot(e,f,o.onViewportChange),p=n.join("+").replace(/Key/g,"").replace(/Digit/g,""),g=o.toastCount>0;w.useEffect(()=>{const x=v=>{var b;n.length!==0&&n.every(S=>
40v[S]||v.code===S)&&((b=f.current)==null||b.focus())};return document.addEventListener("keydown",x),()=>document.removeEventListener("keydown",x)},[n]),w.useEffect(()=>{const x=l.current,v=f.current;if(g&&x&&v){const y=()=>{if(!o.isClosePausedRef.current){const C=new CustomEvent(aw);v.dispatchEvent(C),o.isClosePausedRef.current=!0}},b=()=>{if(o.isClosePausedRef.current){const C=new CustomEvent(lw);v.dispatchEvent(C),o.isClosePausedRef.current=!1}},S=C=>{!x.contains(C.relatedTarget)&&b()},E=()=>{x.contains(document.activeElement)||b()};return x.addEventListener("focusin",y),x.addEventListener("focusout",S),x.addEventListener("pointermove",y),x.addEventListener("pointerleave",E),window.addEventListener("blur",y),window.addEventListener("focus",b),()=>{x.removeEventListener("focusin",y),x.removeEventListener("focusout",S),x.removeEventListener("pointermove",y),x.removeEventListener("pointerleave",E),window.removeEventListener("blur",y),window.removeEventListener("focus",b)}}},[g,o.isClosePausedRef]);const m=w.useCallback(({tabbingDirection:x})=>{const y=a().map(b=>{const S=b.ref.current,E=[S,...g7(S)];return x==="forwards"?E:E.reverse()});return(x==="forwards"?y.reverse():y).flat()},[a]);return w.useEffect(()=>{const x=f.current;if(x){const v=y=>{var E,C,_;const b=y.altKey||y.ctrlKey||y.metaKey;if(y.key==="Tab"&&!b){const A=document.activeElement,N=y.shiftKey;if(y.target===x&&N){(E=u.current)==null||E.focus();return}const H=m({tabbingDirection:N?"backwards":"forwards"}),U=H.findIndex(K=>K===A);e1(H.slice(U+1))?y.preventDefault():N?(C=u.current)==null||C.focus():(_=d.current)==null||_.focus()}};return x.addEventListener("keydown",v),()=>x.removeEventListener("keydown",v)}},[a,m]),c.jsxs(VB,{ref:l,role:"region","aria-label":s.replace("{hotkey}",p),tabIndex:-1,style:{pointerEvents:g?void 0:"none"},children:[g&&c.jsx(cw,{ref:u,onFocusFromOutsideViewport:()=>{const x=m({tabbingDirection:"forwards"});e1(x)}}),c.jsx(D2.Slot,{scope:r,children:c.jsx(Ue.ol,{tabIndex:-1,...i,ref:h})}),g&&c.jsx(cw,{ref:d,onFocusFromOutsideViewport:()=>{const x=m({tabbingDirection:"backwards"});e1(x)}})]})});Q4.displayName=J4;var Z4="ToastFocusProxy",cw=w.forwardRef((t,e)=>{const{__scopeToast:r,onFocusFromOutsideViewport:n,...s}=t,i=dx(Z4,r);return c.jsx(ux,{"aria-hidden":!0,tabIndex:0,...s,ref:e,style:{position:"fixed"},onFocus:o=>{var u;const a=o.relatedTarget;!((u=i.viewport)!=null&&u.contains(a))&&n()}})});cw.displayName=Z4;var Qh="Toast",s7="toast.swipeStart",i7="toast.swipeMove",o7="toast.swipeCancel",a7="toast.swipeEnd",eR=w.forwardRef((t,e)=>{const{forceMount:r,open:n,defaultOpen:s,onOpenChange:i,...o}=t,[a,l]=so({prop:n,defaultProp:s??!0,onChange:i,caller:Qh});return c.jsx(Nn,{present:r||a,children:c.jsx(u7,{open:a,...o,ref:e,onClose:()=>l(!1),onPause:br(t.onPause),onResume:br(t.onResume),onSwipeStart:Ce(t.onSwipeStart,u=>{u.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:Ce(t.onSwipeMove,u=>{const{x:d,y:f}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","move"),u.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${d}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${f}px`)}),onSwipeCancel:Ce(t.onSwipeCancel,u=>{u.currentTarget.setAttribute("data-swipe","cancel"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:Ce(t.onSwipeEnd,u=>{const{x:d,y:f}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","end"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${d}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${f}px`),l(!1)})})})});eR.displayName=Qh;var[l7,c7]=X4(Qh,{onClose(){}}),u7=w.forwardRef((t,e)=>{const{__scopeToast:r,type:n="foreground",duration:s,open:i,onClose:o,onEscapeKeyDown:a,onPause:l,onResume:u,onSwipeStart:d,onSwipeMove:f,onSwipeCancel:h,onSwipeEnd:p,...g}=t,m=dx(Qh,r),[x,v]=w.useState(null),y=ot(e,K=>v(K)),b=w.useRef(null),S=w.useRef(null),E=s||m.duration,C=w.useRef(0),_=w.useRef(E),A=w.useRef(0),{onToastAdd:N,onToastRemove:D}=m,V=br(()=>{var te;(x==null?void 0:x.contains(document.activeElement))&&((te=m.viewport)==null||te.focus()),o()}),H=w.useCallback(K=>
40{!K||K===1/0||(window.clearTimeout(A.current),C.current=new Date().getTime(),A.current=window.setTimeout(V,K))},[V]);w.useEffect(()=>{const K=m.viewport;if(K){const te=()=>{H(_.current),u==null||u()},se=()=>{const he=new Date().getTime()-C.current;_.current=_.current-he,window.clearTimeout(A.current),l==null||l()};return K.addEventListener(aw,se),K.addEventListener(lw,te),()=>{K.removeEventListener(aw,se),K.removeEventListener(lw,te)}}},[m.viewport,E,l,u,H]),w.useEffect(()=>{i&&!m.isClosePausedRef.current&&H(E)},[i,E,m.isClosePausedRef,H]),w.useEffect(()=>(N(),()=>D()),[N,D]);const U=w.useMemo(()=>x?aR(x):null,[x]);return m.viewport?c.jsxs(c.Fragment,{children:[U&&c.jsx(d7,{__scopeToast:r,role:"status","aria-live":n==="foreground"?"assertive":"polite","aria-atomic":!0,children:U}),c.jsx(l7,{scope:r,onClose:V,children:xc.createPortal(c.jsx(D2.ItemSlot,{scope:r,children:c.jsx(HB,{asChild:!0,onEscapeKeyDown:Ce(a,()=>{m.isFocusedToastEscapeKeyDownRef.current||V(),m.isFocusedToastEscapeKeyDownRef.current=!1}),children:c.jsx(Ue.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":i?"open":"closed","data-swipe-direction":m.swipeDirection,...g,ref:y,style:{userSelect:"none",touchAction:"none",...t.style},onKeyDown:Ce(t.onKeyDown,K=>{K.key==="Escape"&&(a==null||a(K.nativeEvent),K.nativeEvent.defaultPrevented||(m.isFocusedToastEscapeKeyDownRef.current=!0,V()))}),onPointerDown:Ce(t.onPointerDown,K=>{K.button===0&&(b.current={x:K.clientX,y:K.clientY})}),onPointerMove:Ce(t.onPointerMove,K=>{if(!b.current)return;const te=K.clientX-b.current.x,se=K.clientY-b.current.y,he=!!S.current,G=["left","right"].includes(m.swipeDirection),O=["left","up"].includes(m.swipeDirection)?Math.min:Math.max,W=G?O(0,te):0,ee=G?0:O(0,se),k=K.pointerType==="touch"?10:2,z={x:W,y:ee},I={originalEvent:K,delta:z};he?(S.current=z,Up(i7,f,I,{discrete:!1})):fT(z,m.swipeDirection,k)?(S.current=z,Up(s7,d,I,{discrete:!1}),K.target.setPointerCapture(K.pointerId)):(Math.abs(te)>k||Math.abs(se)>k)&&(b.current=null)}),onPointerUp:Ce(t.onPointerUp,K=>{const te=S.current,se=K.target;if(se.hasPointerCapture(K.pointerId)&&se.releasePointerCapture(K.pointerId),S.current=null,b.current=null,te){const he=K.currentTarget,G={originalEvent:K,delta:te};fT(te,m.swipeDirection,m.swipeThreshold)?Up(a7,p,G,{discrete:!0}):Up(o7,h,G,{discrete:!0}),he.addEventListener("click",O=>O.preventDefault(),{once:!0})}})})})}),m.viewport)})]}):null}),d7=t=>{const{__scopeToast:e,children:r,...n}=t,s=dx(Qh,e),[i,o]=w.useState(!1),[a,l]=w.useState(!1);return p7(()=>o(!0)),w.useEffect(()=>{const u=window.setTimeout(()=>l(!0),1e3);return()=>window.clearTimeout(u)},[]),a?null:c.jsx(Jh,{asChild:!0,children:c.jsx(ux,{...n,children:i&&c.jsxs(c.Fragment,{children:[s.label," ",r]})})})},f7="ToastTitle",tR=w.forwardRef((t,e)=>{const{__scopeToast:r,...n}=t;return c.jsx(Ue.div,{...n,ref:e})});tR.displayName=f7;var h7="ToastDescription",rR=w.forwardRef((t,e)=>{const{__scopeToast:r,...n}=t;return c.jsx(Ue.div,{...n,ref:e})});rR.displayName=h7;var nR="ToastAction",sR=w.forwardRef((t,e)=>{const{altText:r,...n}=t;return r.trim()?c.jsx(oR,{altText:r,asChild:!0,children:c.jsx(L2,{...n,ref:e})}):(console.error(`Invalid prop \`altText\` supplied to \`${nR}\`. Expected non-empty \`string\`.`),null)});sR.displayName=nR;var iR="ToastClose",L2=w.forwardRef((t,e)=>{const{__scopeToast:r,...n}=t,s=c7(iR,r);return c.jsx(oR,{asChild:!0,children:c.jsx(Ue.button,{type:"button",...n,ref:e,onClick:Ce(t.onClick,s.onClose)})})});L2.displayName=iR;var oR=w.forwardRef((t,e)=>{const{__scopeToast:r,altText:n,...s}=t;return c.jsx(Ue.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":n||void 0,...s,ref:e})});function aR(t){const e=[];return Array.from(t.childNodes).forEach(n=>{if(n.nodeType===n.TEXT_NODE&&n.textContent&&e.push(n.textContent),m7(n)){const s=n.ariaHidden||n.hidden||n.style.display==="none",i=n.dataset.radixToastAnnounceExclude==="";if(!s)if(i){const o=n.dataset.radixToastAnnounceAlt;o&&e.push(o)}else e.push(...aR(n))}}),e}function Up(t,e,r,{discrete:n}){const s=r.originalEvent.currentTarget,i=new CustomEvent(t,{bubbles:!0,cancelable:!0,detail:r});e&&s.addEventListener(t,e,{once:!0}),n?M2(s,i):s.dispatchEvent(i)}var fT=(t,e,r=0)=>{const n=Math.abs(t.x),s=Math.abs(t.y),i=n>s;return e==="left"||e==="right"?i&&n>r:!i&&s>r};function p7(t=()=>{}){const e=br(t);zr(()=>{let r=0,n=0;return r=window.requestAnimationFrame(()=>n=window.requestAnimationFrame(e)),()=>{window.cancelAnimationFrame(r),window.cancelAnimationFrame(n)}},[e])}function m7(t){return t.nodeType===t.ELEMENT_NODE}function g7(t){const e=[],r=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const s=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||s?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)e.push(r.currentNode);return e}function e1(t){const e=document.activeElement;return t.some(r=>r===e?!0:(r.focus(),document.activeElement!==e))}var x7=Y4,lR=Q4,cR=eR,uR=tR,dR=rR,fR=sR,hR=L2;function pR(t){var e,r,n="";if(typeof t=="string"||typeof t=="number")n+=t;else if(typeof t=="object")if(Array.isArray(t)){var s=t.length;for(e=0;e<s;e++)t[e]&&(r=pR(t[e]))&&(n&&(n+=" "),n+=r)}else for(r in t)t[r]&&(n&&(n+=" "),n+=r);return n}function mR(){for(var t,e,r=0,n="",s=arguments.length;r<s;r++)(t=arguments[r])&&(e=pR(t))&&(n&&(n+=" "),n+=e);return n}const hT=t=>typeof t=="boolean"?`${t}`:t===0?"0":t,pT=mR,fx=(t,e)=>r=>{var n;if((e==null?void 0:e.variants)==null)return pT(t,r==null?void 0:r.class,r==null?void 0:r.className);const{variants:s,defaultVariants:i}=e,o=Object.keys(s).map(u=>{const d=r==null?void 0:r[u],f=i==null?void 0:i[u];if(d===null)return null;const h=hT(d)||hT(f);return s[u][h]}),a=r&&Object.entries(r).reduce((u,d)=>{let[f,h]=d;return h===void 0||(u[f]=h),u},{}),l=e==null||(n=e.compoundVariants)===null||n===void 0?void 0:n.reduce((u,d)=>{let{class:f,className:h,...p}=d;return Object.entries(p).every(g=>{let[m,x]=g;return Array.isArray(x)?x.includes({...i,...a}[m]):{...i,...a}[m]===x})?[...u,f,h]:u},[]);return pT(t,o,l,r==null?void 0:r.class,r==null?void 0:r.className)};/**
41 * @license lucide-react v0.462.0 - ISC
42 *
43 * This source code is licensed under the ISC license.
44 * See the LICENSE file in the root directory of this source tree.
45 */const v7=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),gR=(...t)=>t.filter((e,r,n)=>!!e&&e.trim()!==""&&n.indexOf(e)===r).join(" ").trim();/**
46 * @license lucide-react v0.462.0 - ISC
47 *
48 * This source code is licensed under the ISC license.
49 * See the LICENSE file in the root directory of this source tree.
50 */var y7={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
51 * @license lucide-react v0.462.0 - ISC
52 *
53 * This source code is licensed under the ISC license.
54 * See the LICENSE file in the root directory of this source tree.
55 */const w7=w.forwardRef(({color:t="currentColor",size:e=24,strokeWidth:r=2,absoluteStrokeWidth:n,className:s="",children:i,iconNode:o,...a},l)=>w.createElement("svg",{ref:l,...y7,width:e,height:e,stroke:t,strokeWidth:n?Number(r)*24/Number(e):r,className:gR("lucide",s),...a},[...o.map(([u,d])=>w.createElement(u,d)),...Array.isArray(i)?i:[i]]));/**
56 * @license lucide-react v0.462.0 - ISC
57 *
58 * This source code is licensed under the ISC license.
59 * See the LICENSE file in the root directory of this source tree.
60 */const pe=(t,e)=>{const r=w.forwardRef(({className:n,...s},i)=>w.createElement(w7,{ref:i,iconNode:e,className:gR(`lucide-${v7(t)}`,n),...s}));return r.displayName=`${t}`,r};/**
61 * @license lucide-react v0.462.0 - ISC
62 *
63 * This source code is licensed under the ISC license.
64 * See the LICENSE file in the root directory of this source tree.
65 */const b7=pe("AlignCenter",[["path",{d:"M17 12H7",key:"16if0g"}],["path",{d:"M19 18H5",key:"18s9l3"}],["path",{d:"M21 6H3",key:"1jwq7v"}]]);/**
66 * @license lucide-react v0.462.0 - ISC
67 *
68 * This source code is licensed under the ISC license.
69 * See the LICENSE file in the root directory of this source tree.
70 */const S7=pe("AlignLeft",[["path",{d:"M15 12H3",key:"6jk70r"}],["path",{d:"M17 18H3",key:"1amg6g"}],["path",{d:"M21 6H3",key:"1jwq7v"}]]);/**
71 * @license lucide-react v0.462.0 - ISC
72 *
73 * This source code is licensed under the ISC license.
74 * See the LICENSE file in the root directory of this source tree.
75 */const _7=pe("AlignRight",[["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M21 18H7",key:"1ygte8"}],["path",{d:"M21 6H3",key:"1jwq7v"}]]);/**
76 * @license lucide-react v0.462.0 - ISC
77 *
78 * This source code is licensed under the ISC license.
79 * See the LICENSE file in the root directory of this source tree.
80 */const F2=pe("Archive",[["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"}]]);/**
81 * @license lucide-react v0.462.0 - ISC
82 *
83 * This source code is licensed under the ISC license.
84 * See the LICENSE file in the root directory of this source tree.
85 */const E7=pe("ArrowLeftRight",[["path",{d:"M8 3 4 7l4 4",key:"9rb6wj"}],["path",{d:"M4 7h16",key:"6tx8e3"}],["path",{d:"m16 21 4-4-4-4",key:"siv7j2"}],["path",{d:"M20 17H4",key:"h6l3hr"}]]);/**
86 * @license lucide-react v0.462.0 - ISC
87 *
88 * This source code is licensed under the ISC license.
89 * See the LICENSE file in the root directory of this source tree.
90 */const Os=pe("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);/**
91 * @license lucide-react v0.462.0 - ISC
92 *
93 * This source code is licensed under the ISC license.
94 * See the LICENSE file in the root directory of this source tree.
95 */const hx=pe("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);/**
96 * @license lucide-react v0.462.0 - ISC
97 *
98 * This source code is licensed under the ISC license.
99 * See the LICENSE file in the root directory of this source tree.
100 */const xR=pe("Banknote",[["rect",{width:"20",height:"12",x:"2",y:"6",rx:"2",key:"9lu3g6"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}],["path",{d:"M6 12h.01M18 12h.01",key:"113zkx"}]]);/**
101 * @license lucide-react v0.462.0 - ISC
102 *
103 * This source code is licensed under the ISC license.
104 * See the LICENSE file in the root directory of this source tree.
105 */const vR=pe("Bold",[["path",{d:"M6 12h9a4 4 0 0 1 0 8H7a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1h7a4 4 0 0 1 0 8",key:"mg9rjx"}]]);/**
106 * @license lucide-react v0.462.0 - ISC
107 *
108 * This source code is licensed under the ISC license.
109 * See the LICENSE file in the root directory of this source tree.
110 */const B2=pe("Briefcase",[["path",{d:"M16 20V4a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16",key:"jecpp"}],["rect",{width:"20",height:"14",x:"2",y:"6",rx:"2",key:"i6l2r4"}]]);/**
111 * @license lucide-react v0.462.0 - ISC
112 *
113 * This source code is licensed under the ISC license.
114 * See the LICENSE file in the root directory of this source tree.
115 */const T7=pe("Building2",[["path",{d:"M6 22V4a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v18Z",key:"1b4qmf"}],["path",{d:"M6 12H4a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h2",key:"i71pzd"}],["path",{d:"M18 9h2a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2h-2",key:"10jefs"}],["path",{d:"M10 6h4",key:"1itunk"}],["path",{d:"M10 10h4",key:"tcdvrf"}
115],["path",{d:"M10 14h4",key:"kelpxr"}],["path",{d:"M10 18h4",key:"1ulq68"}]]);/**
116 * @license lucide-react v0.462.0 - ISC
117 *
118 * This source code is licensed under the ISC license.
119 * See the LICENSE file in the root directory of this source tree.
120 */const yR=pe("Building",[["rect",{width:"16",height:"20",x:"4",y:"2",rx:"2",ry:"2",key:"76otgf"}],["path",{d:"M9 22v-4h6v4",key:"r93iot"}],["path",{d:"M8 6h.01",key:"1dz90k"}],["path",{d:"M16 6h.01",key:"1x0f13"}],["path",{d:"M12 6h.01",key:"1vi96p"}],["path",{d:"M12 10h.01",key:"1nrarc"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M16 10h.01",key:"1m94wz"}],["path",{d:"M16 14h.01",key:"1gbofw"}],["path",{d:"M8 10h.01",key:"19clt8"}],["path",{d:"M8 14h.01",key:"6423bh"}]]);/**
121 * @license lucide-react v0.462.0 - ISC
122 *
123 * This source code is licensed under the ISC license.
124 * See the LICENSE file in the root directory of this source tree.
125 */const C7=pe("Calculator",[["rect",{width:"16",height:"20",x:"4",y:"2",rx:"2",key:"1nb95v"}],["line",{x1:"8",x2:"16",y1:"6",y2:"6",key:"x4nwl0"}],["line",{x1:"16",x2:"16",y1:"14",y2:"18",key:"wjye3r"}],["path",{d:"M16 10h.01",key:"1m94wz"}],["path",{d:"M12 10h.01",key:"1nrarc"}],["path",{d:"M8 10h.01",key:"19clt8"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M8 14h.01",key:"6423bh"}],["path",{d:"M12 18h.01",key:"mhygvu"}],["path",{d:"M8 18h.01",key:"lrp35t"}]]);/**
126 * @license lucide-react v0.462.0 - ISC
127 *
128 * This source code is licensed under the ISC license.
129 * See the LICENSE file in the root directory of this source tree.
130 */const $2=pe("CalendarClock",[["path",{d:"M21 7.5V6a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h3.5",key:"1osxxc"}],["path",{d:"M16 2v4",key:"4m81vk"}],["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M3 10h5",key:"r794hk"}],["path",{d:"M17.5 17.5 16 16.3V14",key:"akvzfd"}],["circle",{cx:"16",cy:"16",r:"6",key:"qoo3c4"}]]);/**
131 * @license lucide-react v0.462.0 - ISC
132 *
133 * This source code is licensed under the ISC license.
134 * See the LICENSE file in the root directory of this source tree.
135 */const k7=pe("Calendar",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]]);/**
136 * @license lucide-react v0.462.0 - ISC
137 *
138 * This source code is licensed under the ISC license.
139 * See the LICENSE file in the root directory of this source tree.
140 */const N7=pe("CarFront",[["path",{d:"m21 8-2 2-1.5-3.7A2 2 0 0 0 15.646 5H8.4a2 2 0 0 0-1.903 1.257L5 10 3 8",key:"1imjwt"}],["path",{d:"M7 14h.01",key:"1qa3f1"}],["path",{d:"M17 14h.01",key:"7oqj8z"}],["rect",{width:"18",height:"8",x:"3",y:"10",rx:"2",key:"a7itu8"}],["path",{d:"M5 18v2",key:"ppbyun"}],["path",{d:"M19 18v2",key:"gy7782"}]]);/**
141 * @license lucide-react v0.462.0 - ISC
142 *
143 * This source code is licensed under the ISC license.
144 * See the LICENSE file in the root directory of this source tree.
145 */const wR=pe("Car",[["path",{d:"M19 17h2c.6 0 1-.4 1-1v-3c0-.9-.7-1.7-1.5-1.9C18.7 10.6 16 10 16 10s-1.3-1.4-2.2-2.3c-.5-.4-1.1-.7-1.8-.7H5c-.6 0-1.1.4-1.4.9l-1.4 2.9A3.7 3.7 0 0 0 2 12v4c0 .6.4 1 1 1h2",key:"5owen"}],["circle",{cx:"7",cy:"17",r:"2",key:"u2ysq9"}],["path",{d:"M9 17h6",key:"r8uit2"}],["circle",{cx:"17",cy:"17",r:"2",key:"axvx0g"}]]);/**
146 * @license lucide-react v0.462.0 - ISC
147 *
148 * This source code is licensed under the ISC license.
149 * See the LICENSE file in the root directory of this source tree.
150 */const A7=pe("ChartColumn",[["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"}]]);/**
151 * @license lucide-react v0.462.0 - ISC
152 *
153 * This source code is licensed under the ISC license.
154 * See the LICENSE file in the root directory of this source tree.
155 */const px=pe("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
156 * @license lucide-react v0.462.0 - ISC
157 *
158 * This source code is licensed under the ISC license.
159 * See the LICENSE file in the root directory of this source tree.
160 */const Zh=pe("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
161 * @license lucide-react v0.462.0 - ISC
162 *
163 * This source code is licensed under the ISC license.
164 * See the LICENSE file in the root directory of this source tree.
165 */const j7=pe("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);/**
166 * @license lucide-react v0.462.0 - ISC
167 *
168 * This source code is licensed under the ISC license.
169 * See the LICENSE file in the root directory of this source tree.
170 */const bR=pe("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
171 * @license lucide-react v0.462.0 - ISC
172 *
173 * This source code is licensed under the ISC license.
174 * See the LICENSE file in the root directory of this source tree.
175 */const SR=pe("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);/**
176 * @license lucide-react v0.462.0 - ISC
177 *
178 * This source code is licensed under the ISC license.
179 * See the LICENSE file in the root directory of this source tree.
180 */const R7=pe("CircleAlert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);/**
181 * @license lucide-react v0.462.0 - ISC
182 *
183 * This source code is licensed under the ISC license.
184 * See the LICENSE file in the root directory of this source tree.
185 */const mi=pe("CircleCheckBig",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);/**
186 * @license lucide-react v0.462.0 - ISC
187 *
188 * This source code is licensed under the ISC license.
189 * See the LICENSE file in the root directory of this source tree.
190 */const uw=pe("CircleCheck",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
191 * @license lucide-react v0.462.0 - ISC
192 *
193 * This source code is licensed under the ISC license.
194 * See the LICENSE file in the root directory of this source tree.
195 */const O7=pe("CircleHelp",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/**
196 * @license lucide-react v0.462.0 - ISC
197 *
198 * This source code is licensed under the ISC license.
199 * See the LICENSE file in the root directory of this source tree.
200 */const P7=pe("Circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);/**
201 * @license lucide-react v0.462.0 - ISC
202 *
203 * This source code is licensed under the ISC license.
204 * See the LICENSE file in the root directory of this source tree.
205 */const M7=pe("ClipboardCheck",[["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"}]]);/**
206 * @license lucide-react v0.462.0 - ISC
207 *
208 * This source code is licensed under the ISC license.
209 * See the LICENSE file in the root directory of this source tree.
210 */const _R=pe("ClipboardList",[["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"}]]);/**
211 * @license lucide-react v0.462.0 - ISC
212 *
213 * This source code is licensed under the ISC license.
214 * See the LICENSE file in the root directory of this source tree.
215 */const uh=pe("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);/**
216 * @license lucide-react v0.462.0 - ISC
217 *
218 * This source code is licensed under the ISC license.
219 * See the LICENSE file in the root directory of this source tree.
220 */const I7=pe("Code",[["polyline",{points:"16 18 22 12 16 6",key:"z7tu5w"}],["polyline",{points:"8 6 2 12 8 18",key:"1eg1df"}]]);/**
221 * @license lucide-react v0.462.0 - ISC
222 *
223 * This source code is licensed under the ISC license.
224 * See the LICENSE file in the root directory of this source tree.
225 */const z2=pe("CreditCard",[["rect",{width:"20",height:"14",x:"2",y:"5",rx:"2",key:"ynyp8z"}],["line",{x1:"2",x2:"22",y1:"10",y2:"10",key:"1b3vmo"}]]);/**
226 * @license lucide-react v0.462.0 - ISC
227 *
228 * This source code is licensed under the ISC license.
229 * See the LICENSE file in the root directory of this source tree.
230 */const ER=pe("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]]);/**
231 * @license lucide-react v0.462.0 - ISC
232 *
233 * This source code is licensed under the ISC license.
234 * See the LICENSE file in the root directory of this source tree.
235 */const D7=pe("EyeOff",[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]);/**
236 * @license lucide-react v0.462.0 - ISC
237 *
238 * This source code is licensed under the ISC license.
239 * See the LICENSE file in the root directory of this source tree.
240 */const L7=pe("Eye",[["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"}]]);/**
241 * @license lucide-react v0.462.0 - ISC
242 *
243 * This source code is licensed under the ISC license.
244 * See the LICENSE file in the root directory of this source tree.
245 */const F7=pe("Facebook",[["path",{d:"M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z",key:"1jg4f8"}]]);/**
246 * @license lucide-react v0.462.0 - ISC
247 *
248 * This source code is licensed under the ISC license.
249 * See the LICENSE file in the root directory of this source tree.
250 */const TR=pe("FileSearch",[["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M4.268 21a2 2 0 0 0 1.727 1H18a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v3",key:"ms7g94"}],["path",{d:"m9 18-1.5-1.5",key:"1j6qii"}],["circle",{cx:"5",cy:"14",r:"3",key:"ufru5t"}]]);/**
251 * @license lucide-react v0.462.0 - ISC
252 *
253 * This source code is licensed under the ISC license.
254 * See the LICENSE file in the root directory of this source tree.
255 */const CR=pe("FileText",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);/**
256 * @license lucide-react v0.462.0 - ISC
257 *
258 * This source code is licensed under the ISC license.
259 * See the LICENSE file in the root directory of this source tree.
260 */const B7=pe("Footprints",[["path",{d:"M4 16v-2.38C4 11.5 2.97 10.5 3 8c.03-2.72 1.49-6 4.5-6C9.37 2 10 3.8 10 5.5c0 3.11-2 5.66-2 8.68V16a2 2 0 1 1-4 0Z",key:"1dudjm"}],["path",{d:"M20 20v-2.38c0-2.12 1.03-3.12 1-5.62-.03-2.72-1.49-6-4.5-6C14.63 6 14 7.8 14 9.5c0 3.11 2 5.66 2 8.68V20a2 2 0 1 0 4 0Z",key:"l2t8xc"}],["path",{d:"M16 17h4",key:"1dejxt"}],["path",{d:"M4 13h4",key:"1bwh8b"}]]);/**
261 * @license lucide-react v0.462.0 - ISC
262 *
263 * This source code is licensed under the ISC license.
264 * See the LICENSE file in the root directory of this source tree.
265 */const mT=pe("Forward",[["polyline",{points:"15 17 20 12 15 7",key:"1w3sku"}],["path",{d:"M4 18v-2a4 4 0 0 1 4-4h12",key:"jmiej9"}]]);/**
266 * @license lucide-react v0.462.0 - ISC
267 *
268 * This source code is licensed under the ISC license.
269 * See the LICENSE file in the root directory of this source tree.
270 */const kR=pe("Gift",[["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"}]]);/**
271 * @license lucide-react v0.462.0 - ISC
272 *
273 * This source code is licensed under the ISC license.
274 * See the LICENSE file in the root directory of this source tree.
275 */const $7=pe("Globe",[["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"}]]);/**
276 * @license lucide-react v0.462.0 - ISC
277 *
278 * This source code is licensed under the ISC license.
279 * See the LICENSE file in the root directory of this source tree.
280 */const z7=pe("GraduationCap",[["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"}]]);/**
281 * @license lucide-react v0.462.0 - ISC
282 *
283 * This source code is licensed under the ISC license.
284 * See the LICENSE file in the root directory of this source tree.
285 */const U7=pe("Hammer",[["path",{d:"m15 12-8.373 8.373a1 1 0 1 1-3-3L12 9",key:"eefl8a"}],["path",{d:"m18 15 4-4",key:"16gjal"}],["path",{d:"m21.5 11.5-1.914-1.914A2 2 0 0 1 19 8.172V7l-2.26-2.26a6 6 0 0 0-4.202-1.756L9 2.96l.92.82A6.18 6.18 0 0 1 12 8.4V10l2 2h1.172a2 2 0 0 1 1.414.586L18.5 14.5",key:"b7pghm"}]]);/**
286 * @license lucide-react v0.462.0 - ISC
287 *
288 * This source code is licensed under the ISC license.
289 * See the LICENSE file in the root directory of this source tree.
290 */const wd=pe("HandCoins",[["path",{d:"M11 15h2a2 2 0 1 0 0-4h-3c-.6 0-1.1.2-1.4.6L3 17",key:"geh8rc"}],["path",{d:"m7 21 1.6-1.4c.3-.4.8-.6 1.4-.6h4c1.1 0 2.1-.4 2.8-1.2l4.6-4.4a2 2 0 0 0-2.75-2.91l-4.2 3.9",key:"1fto5m"}],["path",{d:"m2 16 6 6",key:"1pfhp9"}],["circle",{cx:"16",cy:"9",r:"2.9",key:"1n0dlu"}],["circle",{cx:"6",cy:"5",r:"3",key:"151irh"}]]);/**
291 * @license lucide-react v0.462.0 - ISC
292 *
293 * This source code is licensed under the ISC license.
294 * See the LICENSE file in the root directory of this source tree.
295 */const H7=pe("Heading1",[["path",{d:"M4 12h8",key:"17cfdx"}],["path",{d:"M4 18V6",key:"1rz3zl"}],["path",{d:"M12 18V6",key:"zqpxq5"}],["path",{d:"m17 12 3-2v8",key:"1hhhft"}]]);/**
296 * @license lucide-react v0.462.0 - ISC
297 *
298 * This source code is licensed under the ISC license.
299 * See the LICENSE file in the root directory of this source tree.
300 */const V7=pe("Heading2",[["path",{d:"M4 12h8",key:"17cfdx"}],["path",{d:"M4 18V6",key:"1rz3zl"}],["path",{d:"M12 18V6",key:"zqpxq5"}],["path",{d:"M21 18h-4c0-4 4-3 4-6 0-1.5-2-2.5-4-1",key:"9jr5yi"}
300]]);/**
301 * @license lucide-react v0.462.0 - ISC
302 *
303 * This source code is licensed under the ISC license.
304 * See the LICENSE file in the root directory of this source tree.
305 */const NR=pe("Headphones",[["path",{d:"M3 14h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-7a9 9 0 0 1 18 0v7a2 2 0 0 1-2 2h-1a2 2 0 0 1-2-2v-3a2 2 0 0 1 2-2h3",key:"1xhozi"}]]);/**
306 * @license lucide-react v0.462.0 - ISC
307 *
308 * This source code is licensed under the ISC license.
309 * See the LICENSE file in the root directory of this source tree.
310 */const AR=pe("HeartHandshake",[["path",{d:"M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z",key:"c3ymky"}],["path",{d:"M12 5 9.04 7.96a2.17 2.17 0 0 0 0 3.08c.82.82 2.13.85 3 .07l2.07-1.9a2.82 2.82 0 0 1 3.79 0l2.96 2.66",key:"4oyue0"}],["path",{d:"m18 15-2-2",key:"60u0ii"}],["path",{d:"m15 18-2-2",key:"6p76be"}]]);/**
311 * @license lucide-react v0.462.0 - ISC
312 *
313 * This source code is licensed under the ISC license.
314 * See the LICENSE file in the root directory of this source tree.
315 */const W7=pe("HeartPulse",[["path",{d:"M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z",key:"c3ymky"}],["path",{d:"M3.22 12H9.5l.5-1 2 4.5 2-7 1.5 3.5h5.27",key:"1uw2ng"}]]);/**
316 * @license lucide-react v0.462.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 q7=pe("Heart",[["path",{d:"M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z",key:"c3ymky"}]]);/**
321 * @license lucide-react v0.462.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 G7=pe("History",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M12 7v5l4 2",key:"1fdv2h"}]]);/**
326 * @license lucide-react v0.462.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 mx=pe("House",[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-5.999a2 2 0 0 1 2.582 0l7 5.999A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"1d0kgt"}]]);/**
331 * @license lucide-react v0.462.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 K7=pe("Image",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]]);/**
336 * @license lucide-react v0.462.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 Dm=pe("Inbox",[["polyline",{points:"22 12 16 12 14 15 10 15 8 12 2 12",key:"o97t9d"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}]]);/**
341 * @license lucide-react v0.462.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 X7=pe("Instagram",[["rect",{width:"20",height:"20",x:"2",y:"2",rx:"5",ry:"5",key:"2e1cvw"}],["path",{d:"M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z",key:"9exkf1"}],["line",{x1:"17.5",x2:"17.51",y1:"6.5",y2:"6.5",key:"r4j83e"}]]);/**
346 * @license lucide-react v0.462.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 jR=pe("Italic",[["line",{x1:"19",x2:"10",y1:"4",y2:"4",key:"15jd3p"}],["line",{x1:"14",x2:"5",y1:"20",y2:"20",key:"bu0au3"}],["line",{x1:"15",x2:"9",y1:"4",y2:"20",key:"uljnxc"}]]);/**
351 * @license lucide-react v0.462.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 U2=pe("KeyRound",[["path",{d:"M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z",key:"1s6t7t"}],["circle",{cx:"16.5",cy:"7.5",r:".5",fill:"currentColor",key:"w0ekpg"}]]);/**
356 * @license lucide-react v0.462.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 RR=pe("Lightbulb",[["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"}]]);/**
361 * @license lucide-react v0.462.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 Y7=pe("Link",[["path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71",key:"1cjeqo"}],["path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71",key:"19qd67"}]]);/**
366 * @license lucide-react v0.462.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 J7=pe("Linkedin",[["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"}]]);/**
371 * @license lucide-react v0.462.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 OR=pe("ListOrdered",[["path",{d:"M10 12h11",key:"6m4ad9"}],["path",{d:"M10 18h11",key:"11hvi2"}],["path",{d:"M10 6h11",key:"c7qv1k"}],["path",{d:"M4 10h2",key:"16xx2s"}],["path",{d:"M4 6h1v4",key:"cnovpq"}],["path",{d:"M6 18H4c0-1 2-2 2-3s-1-1.5-2-1",key:"m9a95d"}]]);/**
376 * @license lucide-react v0.462.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 PR=pe("List",[["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M3 18h.01",key:"1tta3j"}],["path",{d:"M3 6h.01",key:"1rqtza"}],["path",{d:"M8 12h13",key:"1za7za"}],["path",{d:"M8 18h13",key:"1lx6n3"}],["path",{d:"M8 6h13",key:"ik3vkj"}]]);/**
381 * @license lucide-react v0.462.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 Es=pe("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/**
386 * @license lucide-react v0.462.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 H2=pe("Lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]]);/**
391 * @license lucide-react v0.462.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 Q7=pe("LogIn",[["path",{d:"M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4",key:"u53s6r"}],["polyline",{points:"10 17 15 12 10 7",key:"1ail0h"}],["line",{x1:"15",x2:"3",y1:"12",y2:"12",key:"v6grx8"}]]);/**
396 * @license lucide-react v0.462.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 MR=pe("LogOut",[["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"}]]);/**
401 * @license lucide-react v0.462.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 y0=pe("MailOpen",[["path",{d:"M21.2 8.4c.5.38.8.97.8 1.6v10a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V10a2 2 0 0 1 .8-1.6l8-6a2 2 0 0 1 2.4 0l8 6Z",key:"1jhwl8"}],["path",{d:"m22 10-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 10",key:"1qfld7"}]]);/**
406 * @license lucide-react v0.462.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 Ss=pe("Mail",[["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}]]);/**
411 * @license lucide-react v0.462.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 IR=pe("MapPin",[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]]);/**
416 * @license lucide-react v0.462.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 DR=pe("Menu",[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]]);/**
421 * @license lucide-react v0.462.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 Ys=pe("MessageCircle",[["path",{d:"M7.9 20A9 9 0 1 0 4 16.1L2 22Z",key:"vv11sd"}]]);/**
426 * @license lucide-react v0.462.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 Z7=pe("MessageSquare",[["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"}]]);/**
431 * @license lucide-react v0.462.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 e$=pe("Minus",[["path",{d:"M5 12h14",key:"1ays0h"}]]);/**
436 * @license lucide-react v0.462.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 t$=pe("OctagonAlert",[["path",{d:"M12 16h.01",key:"1drbdi"}],["path",{d:"M12 8v4",key:"1got3b"}],["path",{d:"M15.312 2a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586l-4.688-4.688A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2z",key:"1fd625"}]]);/**
441 * @license lucide-react v0.462.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 Ri=pe("Paperclip",[["path",{d:"m21.44 11.05-9.19 9.19a6 6 0 0 1-8.49-8.49l8.57-8.57A4 4 0 1 1 18 8.84l-8.59 8.57a2 2 0 0 1-2.83-2.83l8.49-8.48",key:"1u3ebp"}]]);/**
446 * @license lucide-react v0.462.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 gx=pe("Phone",[["path",{d:"M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z",key:"foiqr5"}]]);/**
451 * @license lucide-react v0.462.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 Lm=pe("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/**
456 * @license lucide-react v0.462.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 r$=pe("Quote",[["path",{d:"M16 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z",key:"rib7q0"}],["path",{d:"M5 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z",key:"1ymkrd"}]]);/**
461 * @license lucide-react v0.462.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 n$=pe("Receipt",[["path",{d:"M4 2v20l2-1 2 1 2-1 2 1 2-1 2 1 2-1 2 1V2l-2 1-2-1-2 1-2-1-2 1-2-1-2 1Z",key:"q3az6g"}],["path",{d:"M16 8h-6a2 2 0 1 0 0 4h4a2 2 0 1 1 0 4H8",key:"1h4pet"}],["path",{d:"M12 17.5v-11",key:"1jc1ny"}]]);/**
466 * @license lucide-react v0.462.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 xx=pe("RefreshCw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);/**
471 * @license lucide-react v0.462.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 s$=pe("RemoveFormatting",[["path",{d:"M4 7V4h16v3",key:"9msm58"}],["path",{d:"M5 20h6",key:"1h6pxn"}],["path",{d:"M13 4 8 20",key:"kqq6aj"}],["path",{d:"m15 15 5 5",key:"me55sn"}],["path",{d:"m20 15-5 5",key:"11p7ol"}]]);/**
476 * @license lucide-react v0.462.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 i$=pe("ReplyAll",[["polyline",{points:"7 17 2 12 7 7",key:"t83bqg"}],["polyline",{points:"12 17 7 12 12 7",key:"1g4ajm"}],["path",{d:"M22 18v-2a4 4 0 0 0-4-4H7",key:"1fcyog"}]]);/**
481 * @license lucide-react v0.462.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 gT=pe("Reply",[["polyline",{points:"9 17 4 12 9 7",key:"hvgpf2"}
485],["path",{d:"M20 18v-2a4 4 0 0 0-4-4H4",key:"5vmcpk"}]]);/**
486 * @license lucide-react v0.462.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 o$=pe("RotateCcw",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]]);/**
491 * @license lucide-react v0.462.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 a$=pe("Save",[["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"}]]);/**
496 * @license lucide-react v0.462.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 l$=pe("Scale",[["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"}]]);/**
501 * @license lucide-react v0.462.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 V2=pe("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/**
506 * @license lucide-react v0.462.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 vx=pe("Send",[["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"}]]);/**
511 * @license lucide-react v0.462.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 c$=pe("Settings",[["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"}]]);/**
516 * @license lucide-react v0.462.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 yx=pe("ShieldCheck",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
521 * @license lucide-react v0.462.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 io=pe("Shield",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]]);/**
526 * @license lucide-react v0.462.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 wx=pe("Smartphone",[["rect",{width:"14",height:"20",x:"5",y:"2",rx:"2",ry:"2",key:"1yt0o3"}],["path",{d:"M12 18h.01",key:"mhygvu"}]]);/**
531 * @license lucide-react v0.462.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 _u=pe("Sparkles",[["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"}]]);/**
536 * @license lucide-react v0.462.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 ep=pe("Star",[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]]);/**
541 * @license lucide-react v0.462.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 W2=pe("Tag",[["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"}]]);/**
546 * @license lucide-react v0.462.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 dw=pe("Target",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"6",key:"1vlfrh"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]]);/**
551 * @license lucide-react v0.462.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 u$=pe("Terminal",[["polyline",{points:"4 17 10 11 4 5",key:"akl6gq"}],["line",{x1:"12",x2:"20",y1:"19",y2:"19",key:"q2wloq"}]]);/**
556 * @license lucide-react v0.462.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 Ca=pe("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]);/**
561 * @license lucide-react v0.462.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 Ju=pe("TrendingUp",[["polyline",{points:"22 7 13.5 15.5 8.5 10.5 2 17",key:"126l90"}],["polyline",{points:"16 7 22 7 22 13",key:"kwv8wd"}]]);/**
566 * @license lucide-react v0.462.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 d$=pe("TriangleAlert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/**
571 * @license lucide-react v0.462.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 f$=pe("Type",[["polyline",{points:"4 7 4 4 20 4 20 7",key:"1nosan"}],["line",{x1:"9",x2:"15",y1:"20",y2:"20",key:"swin9y"}],["line",{x1:"12",x2:"12",y1:"4",y2:"20",key:"1tx1rr"}]]);/**
576 * @license lucide-react v0.462.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 h$=pe("Underline",[["path",{d:"M6 4v6a6 6 0 0 0 12 0V4",key:"9kb039"}],["line",{x1:"4",x2:"20",y1:"20",y2:"20",key:"nun2al"}]]);/**
581 * @license lucide-react v0.462.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 xT=pe("User",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]);/**
586 * @license lucide-react v0.462.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 $o=pe("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]]);/**
591 * @license lucide-react v0.462.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 LR=pe("Wallet",[["path",{d:"M19 7V4a1 1 0 0 0-1-1H5a2 2 0 0 0 0 4h15a1 1 0 0 1 1 1v4h-3a2 2 0 0 0 0 4h3a1 1 0 0 0 1-1v-2a1 1 0 0 0-1-1",key:"18etb6"}],["path",{d:"M3 5v14a2 2 0 0 0 2 2h15a1 1 0 0 0 1-1v-4",key:"xoc0q4"}]]);/**
596 * @license lucide-react v0.462.0 - ISC
597 *
598 * This source code is licensed under the ISC license.
599 * See the LICENSE file in the root directory of this source tree.
600 */const tc=pe("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}
vendor: 12,647 bytes, lines 600-605
600],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);/**
601 * @license lucide-react v0.462.0 - ISC
602 *
603 * This source code is licensed under the ISC license.
604 * See the LICENSE file in the root directory of this source tree.
605 */const w0=pe("Zap",[["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"}]]),q2="-",p$=t=>{const e=g$(t),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=t;return{getClassGroupId:o=>{const a=o.split(q2);return a[0]===""&&a.length!==1&&a.shift(),FR(a,e)||m$(o)},getConflictingClassGroupIds:(o,a)=>{const l=r[o]||[];return a&&n[o]?[...l,...n[o]]:l}}},FR=(t,e)=>{var o;if(t.length===0)return e.classGroupId;const r=t[0],n=e.nextPart.get(r),s=n?FR(t.slice(1),n):void 0;if(s)return s;if(e.validators.length===0)return;const i=t.join(q2);return(o=e.validators.find(({validator:a})=>a(i)))==null?void 0:o.classGroupId},vT=/^\[(.+)\]$/,m$=t=>{if(vT.test(t)){const e=vT.exec(t)[1],r=e==null?void 0:e.substring(0,e.indexOf(":"));if(r)return"arbitrary.."+r}},g$=t=>{const{theme:e,prefix:r}=t,n={nextPart:new Map,validators:[]};return v$(Object.entries(t.classGroups),r).forEach(([i,o])=>{fw(o,n,i,e)}),n},fw=(t,e,r,n)=>{t.forEach(s=>{if(typeof s=="string"){const i=s===""?e:yT(e,s);i.classGroupId=r;return}if(typeof s=="function"){if(x$(s)){fw(s(n),e,r,n);return}e.validators.push({validator:s,classGroupId:r});return}Object.entries(s).forEach(([i,o])=>{fw(o,yT(e,i),r,n)})})},yT=(t,e)=>{let r=t;return e.split(q2).forEach(n=>{r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n)}),r},x$=t=>t.isThemeGetter,v$=(t,e)=>e?t.map(([r,n])=>{const s=n.map(i=>typeof i=="string"?e+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(([o,a])=>[e+o,a])):i);return[r,s]}):t,y$=t=>{if(t<1)return{get:()=>{},set:()=>{}};let e=0,r=new Map,n=new Map;const s=(i,o)=>{r.set(i,o),e++,e>t&&(e=0,n=r,r=new Map)};return{get(i){let o=r.get(i);if(o!==void 0)return o;if((o=n.get(i))!==void 0)return s(i,o),o},set(i,o){r.has(i)?r.set(i,o):s(i,o)}}},BR="!",w$=t=>{const{separator:e,experimentalParseClassName:r}=t,n=e.length===1,s=e[0],i=e.length,o=a=>{const l=[];let u=0,d=0,f;for(let x=0;x<a.length;x++){let v=a[x];if(u===0){if(v===s&&(n||a.slice(x,x+i)===e)){l.push(a.slice(d,x)),d=x+i;continue}if(v==="/"){f=x;continue}}v==="["?u++:v==="]"&&u--}const h=l.length===0?a:a.substring(d),p=h.startsWith(BR),g=p?h.substring(1):h,m=f&&f>d?f-d:void 0;return{modifiers:l,hasImportantModifier:p,baseClassName:g,maybePostfixModifierPosition:m}};return r?a=>r({className:a,parseClassName:o}):o},b$=t=>{if(t.length<=1)return t;const e=[];let r=[];return t.forEach(n=>{n[0]==="["?(e.push(...r.sort(),n),r=[]):r.push(n)}),e.push(...r.sort()),e},S$=t=>({cache:y$(t.cacheSize),parseClassName:w$(t),...p$(t)}),_$=/\s+/,E$=(t,e)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:s}=e,i=[],o=t.trim().split(_$);let a="";for(let l=o.length-1;l>=0;l-=1){const u=o[l],{modifiers:d,hasImportantModifier:f,baseClassName:h,maybePostfixModifierPosition:p}=r(u);let g=!!p,m=n(g?h.substring(0,p):h);if(!m){if(!g){a=u+(a.length>0?" "+a:a);continue}if(m=n(h),!m){a=u+(a.length>0?" "+a:a);continue}g=!1}const x=b$(d).join(":"),v=f?x+BR:x,y=v+m;if(i.includes(y))continue;i.push(y);const b=s(m,g);for(let S=0;S<b.length;++S){const E=b[S];i.push(v+E)}a=u+(a.length>0?" "+a:a)}return a};function T$(){let t=0,e,r,n="";for(;t<arguments.length;)(e=arguments[t++])&&(r=$R(e))&&(n&&(n+=" "),n+=r);return n}const $R=t=>{if(typeof t=="string")return t;let e,r="";for(let n=0;n<t.length;n++)t[n]&&(e=$R(t[n]))&&(r&&(r+=" "),r+=e);return r};function C$(t,...e){let r,n,s,i=o;function o(l){const u=e.reduce((d,f)=>f(d),t());return r=S$(u),n=r.cache.get,s=r.cache.set,i=a,a(l)}function a(l){const u=n(l);if(u)return u;const d=E$(l,r);return s(l,d),d}return function(){return i(T$.apply(null,arguments))}}const Ht=t=>{const e=r=>r[t]||[];return e.isThemeGetter=!0,e},zR=/^\[(?:([a-z-]+):)?(.+)\]$/i,k$=/^\d+\/\d+$/,N$=new Set(["px","full","screen"]),A$=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,j$=/\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$/,R$=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,O$=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,P$=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,go=t=>Eu(t)||N$.has(t)||k$.test(t),Qo=t=>bd(t,"length",z$),Eu=t=>!!t&&!Number.isNaN(Number(t)),t1=t=>bd(t,"number",Eu),Vd=t=>!!t&&Number.isInteger(Number(t)),M$=t=>t.endsWith("%")&&Eu(t.slice(0,-1)),st=t=>zR.test(t),Zo=t=>A$.test(t),I$=new Set(["length","size","percentage"]),D$=t=>bd(t,I$,UR),L$=t=>bd(t,"position",UR),F$=new Set(["image","url"]),B$=t=>bd(t,F$,H$),$$=t=>bd(t,"",U$),Wd=()=>!0,bd=(t,e,r)=>{const n=zR.exec(t);return n?n[1]?typeof e=="string"?n[1]===e:e.has(n[1]):r(n[2]):!1},z$=t=>j$.test(t)&&!R$.test(t),UR=()=>!1,U$=t=>O$.test(t),H$=t=>P$.test(t),V$=()=>{const t=Ht("colors"),e=Ht("spacing"),r=Ht("blur"),n=Ht("brightness"),s=Ht("borderColor"),i=Ht("borderRadius"),o=Ht("borderSpacing"),a=Ht("borderWidth"),l=Ht("contrast"),u=Ht("grayscale"),d=Ht("hueRotate"),f=Ht("invert"),h=Ht("gap"),p=Ht("gradientColorStops"),g=Ht("gradientColorStopPositions"),m=Ht("inset"),x=Ht("margin"),v=Ht("opacity"),y=Ht("padding"),b=Ht("saturate"),S=Ht("scale"),E=Ht("sepia"),C=Ht("skew"),_=Ht("space"),A=Ht("translate"),N=()=>["auto","contain","none"],D=()=>["auto","hidden","clip","visible","scroll"],V=()=>["auto",st,e],H=()=>[st,e],U=()=>["",go,Qo],K=()=>["auto",Eu,st],te=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],se=()=>["solid","dashed","dotted","double","none"],he=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],G=()=>["start","end","center","between","around","evenly","stretch"],O=()=>["","0",st],W=()=>["auto","avoid","all","avoid-page","page","left","right","column"],ee=()=>[Eu,st];return{cacheSize:500,separator:":",theme:{colors:[Wd],spacing:[go,Qo],blur:["none","",Zo,st],brightness:ee(),borderColor:[t],borderRadius:["none","","full",Zo,st],borderSpacing:H(),borderWidth:U(),contrast:ee(),grayscale:O(),hueRotate:ee(),invert:O(),gap:H(),gradientColorStops:[t],gradientColorStopPositions:[M$,Qo],inset:V(),margin:V(),opacity:ee(),padding:H(),saturate:ee(),scale:ee(),sepia:O(),skew:ee(),space:H(),translate:H()},classGroups:{aspect:[{aspect:["auto","square","video",st]}],container:["container"],columns:[{columns:[Zo]}],"break-after":[{"break-after":W()}],"break-before":[{"break-before":W()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...te(),st]}],overflow:[{overflow:D()}],"overflow-x":[{"overflow-x":D()}],"overflow-y":[{"overflow-y":D()}],overscroll:[{overscroll:N()}],"overscroll-x":[{"overscroll-x":N()}],"overscroll-y":[{"overscroll-y":N()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[m]}],"inset-x":[{"inset-x":[m]}],"inset-y":[{"inset-y":[m]}],start:[{start:[m]}],end:[{end:[m]}],top:[{top:[m]}],right:[{right:[m]}],bottom:[{bottom:[m]}],left:[{left:[m]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Vd,st]}],basis:[{basis:V()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",st]}],grow:[{grow:O()}],shrink:[{shrink:O()}],order:[{order:["first","last","none",Vd,st]}],"grid-cols":[{"grid-cols":[Wd]}],"col-start-end":[{col:["auto",{span:["full",Vd,st]},st]}],"col-start":[{"col-start":K()}],"col-end":[{"col-end":K()}],"grid-rows":[{"grid-rows":[Wd]}],"row-start-end":[{row:["auto",{span:[Vd,st]},st]}],"row-start":[{"row-start":K()}],"row-end":[{"row-end":K()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",st]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",st]}],gap:[{gap:[h]}],"gap-x":[{"gap-x":[h]}],"gap-y":[{"gap-y":[h]}],"justify-content":[{justify:["normal",...G()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...G(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...G(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[y]}],px:[{px:[y]}],py:[{py:[y]}],ps:[{ps:[y]}],pe:[{pe:[y]}],pt:[{pt:[y]}],pr:[{pr:[y]}],pb:[{pb:[y]}],pl:[{pl:[y]}],m:[{m:[x]}],mx:[{mx:[x]}],my:[{my:[x]}],ms:[{ms:[x]}],me:[{me:[x]}],mt:[{mt:[x]}],mr:[{mr:[x]}],mb:[{mb:[x]}],ml:[{ml:[x]}],"space-x":[{"space-x":[_]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[_]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",st,e]}],"min-w":[{"min-w":[st,e,"min","max","fit"]}],"max-w":[{"max-w":[st,e,"none","full","min","max","fit","prose",{screen:[Zo]},Zo]}],h:[{h:[st,e,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[st,e,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[st,e,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[st,e,"auto","min","max","fit"]}],"font-size":[{text:["base",Zo,Qo]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",t1]}],"font-family":[{font:[Wd]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",st]}],"line-clamp":[{"line-clamp":["none",Eu,t1]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",go,st]}],"list-image":[{"list-image":["none",st]}],"list-style-type":[{list:["none","disc","decimal",st]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[t]}],"placeholder-opacity":[{"placeholder-opacity":[v]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[t]}],"text-opacity":[{"text-opacity":[v]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...se(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",go,Qo]}],"underline-offset":[{"underline-offset":["auto",go,st]}],"text-decoration-color":[{decoration:[t]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:H()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",st]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",st]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[v]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...te(),L$]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",D$]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},B$]}],"bg-color":[{bg:[t]}],"gradient-from-pos":[{from:[g]}
vendor: 5,187 bytes, line 605
605],"gradient-via-pos":[{via:[g]}],"gradient-to-pos":[{to:[g]}],"gradient-from":[{from:[p]}],"gradient-via":[{via:[p]}],"gradient-to":[{to:[p]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[a]}],"border-w-x":[{"border-x":[a]}],"border-w-y":[{"border-y":[a]}],"border-w-s":[{"border-s":[a]}],"border-w-e":[{"border-e":[a]}],"border-w-t":[{"border-t":[a]}],"border-w-r":[{"border-r":[a]}],"border-w-b":[{"border-b":[a]}],"border-w-l":[{"border-l":[a]}],"border-opacity":[{"border-opacity":[v]}],"border-style":[{border:[...se(),"hidden"]}],"divide-x":[{"divide-x":[a]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[a]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[v]}],"divide-style":[{divide:se()}],"border-color":[{border:[s]}],"border-color-x":[{"border-x":[s]}],"border-color-y":[{"border-y":[s]}],"border-color-s":[{"border-s":[s]}],"border-color-e":[{"border-e":[s]}],"border-color-t":[{"border-t":[s]}],"border-color-r":[{"border-r":[s]}],"border-color-b":[{"border-b":[s]}],"border-color-l":[{"border-l":[s]}],"divide-color":[{divide:[s]}],"outline-style":[{outline:["",...se()]}],"outline-offset":[{"outline-offset":[go,st]}],"outline-w":[{outline:[go,Qo]}],"outline-color":[{outline:[t]}],"ring-w":[{ring:U()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[t]}],"ring-opacity":[{"ring-opacity":[v]}],"ring-offset-w":[{"ring-offset":[go,Qo]}],"ring-offset-color":[{"ring-offset":[t]}],shadow:[{shadow:["","inner","none",Zo,$$]}],"shadow-color":[{shadow:[Wd]}],opacity:[{opacity:[v]}],"mix-blend":[{"mix-blend":[...he(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":he()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[n]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",Zo,st]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[f]}],saturate:[{saturate:[b]}],sepia:[{sepia:[E]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[n]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[d]}],"backdrop-invert":[{"backdrop-invert":[f]}],"backdrop-opacity":[{"backdrop-opacity":[v]}],"backdrop-saturate":[{"backdrop-saturate":[b]}],"backdrop-sepia":[{"backdrop-sepia":[E]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[o]}],"border-spacing-x":[{"border-spacing-x":[o]}],"border-spacing-y":[{"border-spacing-y":[o]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",st]}],duration:[{duration:ee()}],ease:[{ease:["linear","in","out","in-out",st]}],delay:[{delay:ee()}],animate:[{animate:["none","spin","ping","pulse","bounce",st]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[S]}],"scale-x":[{"scale-x":[S]}],"scale-y":[{"scale-y":[S]}],rotate:[{rotate:[Vd,st]}],"translate-x":[{"translate-x":[A]}],"translate-y":[{"translate-y":[A]}],"skew-x":[{"skew-x":[C]}],"skew-y":[{"skew-y":[C]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",st]}],accent:[{accent:["auto",t]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",st]}],"caret-color":[{caret:[t]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":H()}],"scroll-mx":[{"scroll-mx":H()}],"scroll-my":[{"scroll-my":H()}],"scroll-ms":[{"scroll-ms":H()}],"scroll-me":[{"scroll-me":H()}],"scroll-mt":[{"scroll-mt":H()}],"scroll-mr":[{"scroll-mr":H()}],"scroll-mb":[{"scroll-mb":H()}],"scroll-ml":[{"scroll-ml":H()}],"scroll-p":[{"scroll-p":H()}],"scroll-px":[{"scroll-px":H()}],"scroll-py":[{"scroll-py":H()}],"scroll-ps":[{"scroll-ps":H()}],"scroll-pe":[{"scroll-pe":H()}],"scroll-pt":[{"scroll-pt":H()}],"scroll-pr":[{"scroll-pr":H()}],"scroll-pb":[{"scroll-pb":H()}],"scroll-pl":[{"scroll-pl":H()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}
vendor: 4,647 bytes, line 605
605],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",st]}],fill:[{fill:[t,"none"]}],"stroke-w":[{stroke:[go,Qo,t1]}],stroke:[{stroke:[t,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},W$=C$(V$);function Ke(...t){return W$(mR(t))}const q$=x7,HR=w.forwardRef(({className:t,...e},r)=>c.jsx(lR,{ref:r,className:Ke("fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",t),...e}));HR.displayName=lR.displayName;const G$=fx("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"}}),VR=w.forwardRef(({className:t,variant:e,...r},n)=>c.jsx(cR,{ref:n,className:Ke(G$({variant:e}),t),...r}));VR.displayName=cR.displayName;const K$=w.forwardRef(({className:t,...e},r)=>c.jsx(fR,{ref:r,className:Ke("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors hover:bg-secondary focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive",t),...e}));K$.displayName=fR.displayName;const WR=w.forwardRef(({className:t,...e},r)=>c.jsx(hR,{ref:r,className:Ke("absolute right-2 top-2 rounded-md p-1 text-foreground
605/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-2 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",t),"toast-close":"",...e,children:c.jsx(tc,{className:"h-4 w-4"})}));WR.displayName=hR.displayName;const qR=w.forwardRef(({className:t,...e},r)=>c.jsx(uR,{ref:r,className:Ke("text-sm font-semibold",t),...e}));qR.displayName=uR.displayName;const GR=w.forwardRef(({className:t,...e},r)=>c.jsx(dR,{ref:r,className:Ke("text-sm opacity-90",t),...e}));GR.displayName=dR.displayName;function X$(){const{toasts:t}=uo();return c.jsxs(q$,{children:[t.map(function({id:e,title:r,description:n,action:s,...i}){return c.jsxs(VR,{...i,children:[c.jsxs("div",{className:"grid gap-1",children:[r&&c.jsx(qR,{children:r}),n&&c.jsx(GR,{children:n})]}),s,c.jsx(WR,{})]},e)}),c.jsx(HR,{})]})}var wT=["light","dark"],Y$="(prefers-color-scheme: dark)",J$=w.createContext(void 0),Q$={setTheme:t=>{},themes:[]},Z$=()=>{var t;return(t=w.useContext(J$))!=null?t:Q$};w.memo(({forcedTheme:t,storageKey:e,attribute:r,enableSystem:n,enableColorScheme:s,defaultTheme:i,value:o,attrs:a,nonce:l})=>{let u=i==="system",d=r==="class"?`var d=document.documentElement,c=d.classList;${`c.remove(${a.map(g=>`'${g}'`).join(",")})`};`:`var d=document.documentElement,n='${r}',s='setAttribute';`,f=s?wT.includes(i)&&i?`if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${i}'`:"if(e==='light'||e==='dark')d.style.colorScheme=e":"",h=(g,m=!1,x=!0)=>{let v=o?o[g]:g,y=m?g+"|| ''":`'${v}'`,b="";return s&&x&&!m&&wT.includes(g)&&(b+=`d.style.colorScheme = '${g}';`),r==="class"?m||v?b+=`c.add(${y})`:b+="null":v&&(b+=`d[s](n,${y})`),b},p=t?`!function(){${d}${h(t)}}()`:n?`!function(){try{${d}var e=localStorage.getItem('${e}');if('system'===e||(!e&&${u})){var t='${Y$}',m=window.matchMedia(t);if(m.media!==t||m.matches){${h("dark")}}else{${h("light")}}}else if(e){${o?`var x=${JSON.stringify(o)};`:""}${h(o?"x[e]":"e",!0)}}${u?"":"else{"+h(i,!1,!1)+"}"}${f}}catch(e){}}()`:`!function(){try{${d}var e=localStorage.getItem('${e}');if(e){${o?`var x=${JSON.stringify(o)};`:""}${h(o?"x[e]":"e",!0)}}else{${h(i,!1,!1)};}${f}}catch(t){}}();`;return w.createElement("script",{nonce:l,dangerouslySetInnerHTML:{__html:p}})});var e9=t=>{switch(t){case"success":return n9;case"info":return i9;case"warning":return s9;case"error":return o9;default:return null}},t9=Array(12).fill(0),r9=({visible:t,className:e})=>de.createElement("div",{className:["sonner-loading-wrapper",e].filter(Boolean).join(" "),"data-visible":t},de.createElement("div",{className:"sonner-spinner"},t9.map((r,n)=>de.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${n}`})))),n9=de.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},de.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),s9=de.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},de.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),i9=de.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},de.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),o9=de.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},de.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),a9=de.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},de.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),de.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),l9=()=>{let[t,e]=de.useState(document.hidden);return de.useEffect(()=>{let r=()=>{e(document.hidden)};return document.addEventListener("visibilitychange",r),()=>window.removeEventListener("visibilitychange",r)},[]),t},hw=1,c9=class{constructor(){this.subscribe=t=>(this.subscribers.push(t),()=>{let e=this.subscribers.indexOf(t);this.subscribers.splice(e,1)}),this.publish=t=>
605{this.subscribers.forEach(e=>e(t))},this.addToast=t=>{this.publish(t),this.toasts=[...this.toasts,t]},this.create=t=>{var e;let{message:r,...n}=t,s=typeof(t==null?void 0:t.id)=="number"||((e=t.id)==null?void 0:e.length)>0?t.id:hw++,i=this.toasts.find(a=>a.id===s),o=t.dismissible===void 0?!0:t.dismissible;return this.dismissedToasts.has(s)&&this.dismissedToasts.delete(s),i?this.toasts=this.toasts.map(a=>a.id===s?(this.publish({...a,...t,id:s,title:r}),{...a,...t,id:s,dismissible:o,title:r}):a):this.addToast({title:r,...n,dismissible:o,id:s}),s},this.dismiss=t=>(this.dismissedToasts.add(t),t||this.toasts.forEach(e=>{this.subscribers.forEach(r=>r({id:e.id,dismiss:!0}))}),this.subscribers.forEach(e=>e({id:t,dismiss:!0})),t),this.message=(t,e)=>this.create({...e,message:t}),this.error=(t,e)=>this.create({...e,message:t,type:"error"}),this.success=(t,e)=>this.create({...e,type:"success",message:t}),this.info=(t,e)=>this.create({...e,type:"info",message:t}),this.warning=(t,e)=>this.create({...e,type:"warning",message:t}),this.loading=(t,e)=>this.create({...e,type:"loading",message:t}),this.promise=(t,e)=>{if(!e)return;let r;e.loading!==void 0&&(r=this.create({...e,promise:t,type:"loading",message:e.loading,description:typeof e.description!="function"?e.description:void 0}));let n=t instanceof Promise?t:t(),s=r!==void 0,i,o=n.then(async l=>{if(i=["resolve",l],de.isValidElement(l))s=!1,this.create({id:r,type:"default",message:l});else if(d9(l)&&!l.ok){s=!1;let u=typeof e.error=="function"?await e.error(`HTTP error! status: ${l.status}`):e.error,d=typeof e.description=="function"?await e.description(`HTTP error! status: ${l.status}`):e.description;this.create({id:r,type:"error",message:u,description:d})}else if(e.success!==void 0){s=!1;let u=typeof e.success=="function"?await e.success(l):e.success,d=typeof e.description=="function"?await e.description(l):e.description;this.create({id:r,type:"success",message:u,description:d})}}).catch(async l=>{if(i=["reject",l],e.error!==void 0){s=!1;let u=typeof e.error=="function"?await e.error(l):e.error,d=typeof e.description=="function"?await e.description(l):e.description;this.create({id:r,type:"error",message:u,description:d})}}).finally(()=>{var l;s&&(this.dismiss(r),r=void 0),(l=e.finally)==null||l.call(e)}),a=()=>new Promise((l,u)=>o.then(()=>i[0]==="reject"?u(i[1]):l(i[1])).catch(u));return typeof r!="string"&&typeof r!="number"?{unwrap:a}:Object.assign(r,{unwrap:a})},this.custom=(t,e)=>{let r=(e==null?void 0:e.id)||hw++;return this.create({jsx:t(r),id:r,...e}),r},this.getActiveToasts=()=>this.toasts.filter(t=>!this.dismissedToasts.has(t.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}},Jn=new c9,u9=(t,e)=>{let r=(e==null?void 0:e.id)||hw++;return Jn.addToast({title:t,...e,id:r}),r},d9=t=>t&&typeof t=="object"&&"ok"in t&&typeof t.ok=="boolean"&&"status"in t&&typeof t.status=="number",f9=u9,h9=()=>Jn.toasts,p9=()=>Jn.getActiveToasts();Object.assign(f9,{success:Jn.success,info:Jn.info,warning:Jn.warning,error:Jn.error,custom:Jn.custom,message:Jn.message,promise:Jn.promise,dismiss:Jn.dismiss,loading:Jn.loading},{getHistory:h9,getToasts:p9});function m9(t,{insertAt:e}={}){if(typeof document>"u")return;let r=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",e==="top"&&r.firstChild?r.insertBefore(n,r.firstChild):r.appendChild(n),n.styleSheet?n.styleSheet.cssText=t:n.appendChild(document.createTextNode(t))}m9(`:where(html[dir="ltr"]),:where([data-sonner-toaster][dir="ltr"]){--toast-icon-margin-start: -3px;--toast-icon-margin-end: 4px;--toast-svg-margin-start: -1px;--toast-svg-margin-end: 0px;--toast-button-margin-start: auto;--toast-button-margin-end: 0;--toast-close-button-start: 0;--toast-close-button-end: unset;--toast-close-button-transform: translate(-35%, -35%)}:where(html[dir="rtl"]),:where([data-sonner-toaster][dir="rtl"]){--toast-icon-margin-start: 4px;--toast-icon-margin-end: -3px;--toast-svg-margin-start: 0px;--toast-svg-margin-end: -1px;--toast-button-margin-start: 0;--toast-button-margin-end: auto;--toast-close-button-start: unset;--toast-close-button-end: 0;--toast-close-button-transform: translate(35%, -35%)}:where([data-sonner-toaster]){position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1: hsl(0, 0%, 99%);--gray2: hsl(0, 0%, 97.3%);--gray3: hsl(0, 0%, 95.1%);--gray4: hsl(0, 0%, 93%);--gray5: hsl(0, 0%, 90.9%);--gray6: hsl(0, 0%, 88.7%);--gray7: hsl(0, 0%, 85.8%);--gray8: hsl(0, 0%, 78%);--gray9: hsl(0, 0%, 56.1%);--gray10: hsl(0, 0%, 52.3%);--gray11: hsl(0, 0%, 43.5%);--gray12: hsl(0, 0%, 9%);--border-radius: 8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:none;z-index:999999999;transition:transform .4s ease}:where([data-sonner-toaster][data-lifted="true"]){transform:translateY(-10px)}@media (hover: none) and (pointer: coarse){:where([data-sonner-toaster][data-lifted="true"]){transform:none}}:where([data-sonner-toaster][data-x-position="right"]){right:var(--offset-right)}:where([data-sonner-toaster][data-x-position="left"]){left:var(--offset-left)}:where([data-sonner-toaster][data-x-position="center"]){left:50%;transform:translate(-50%)}:where([data-sonner-toaster][data-y-position="top"]){top:var(--offset-top)}:where([data-sonner-toaster][data-y-position="bottom"]){bottom:var(--offset-bottom)}:where([data-sonner-toast]){--y: translateY(100%);--lift-amount: calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);filter:blur(0);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:none;overflow-wrap:anywhere}:where([data-sonner-toast][data-styled="true"]){padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px #0000001a;width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}:where([data-sonner-toast]:focus-visible){box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast][data-y-position="top"]){top:0;--y: translateY(-100%);--lift: 1;--lift-amount: calc(1 * var(--gap))}:where([data-sonner-toast][data-y-position="bottom"]){bottom:0;--y: translateY(100%);--lift: -1;--lift-amount: calc(var(--lift) * var(--gap))}:where([data-sonner-toast]) :where([data-description]){font-weight:400;line-height:1.4;color:inherit}:where([data-sonner-toast]) :where([data-title]){font-weight:500;line-height:1.5;color:inherit}:where([data-sonner-toast]) :where([data-icon]){display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}:where([data-sonner-toast][data-promise="true"]) :where([data-icon])>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}:where([data-sonner-toast]) :where([data-icon])>*{flex-shrink:0}:where([data-sonner-toast]) :where([data-icon]) svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}:where([data-sonner-toast]) :where([data-content]){display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;cursor:pointer;outline:none;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}:where([data-sonner-toast]) :where([data-button]):focus-visible{box-shadow:0 0 0 2px #0006}:where([data-sonner-toast]) :where([data-button]):first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}:where([data-sonner-toast]) :where([data-cancel]){color:var(--normal-text);background:rgba(0,0,0,.08)}:where([data-sonner-toast][data-theme="dark"]) :where([data-cancel]){background:rgba(255,255,255,.3)}:where([data-sonner-toast]) :where([data-close-button]){position:absolute;
605left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast] [data-close-button]{background:var(--gray1)}:where([data-sonner-toast]) :where([data-close-button]):focus-visible{box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast]) :where([data-disabled="true"]){cursor:not-allowed}:where([data-sonner-toast]):hover :where([data-close-button]):hover{background:var(--gray2);border-color:var(--gray5)}:where([data-sonner-toast][data-swiping="true"]):before{content:"";position:absolute;left:-50%;right:-50%;height:100%;z-index:-1}:where([data-sonner-toast][data-y-position="top"][data-swiping="true"]):before{bottom:50%;transform:scaleY(3) translateY(50%)}:where([data-sonner-toast][data-y-position="bottom"][data-swiping="true"]):before{top:50%;transform:scaleY(3) translateY(-50%)}:where([data-sonner-toast][data-swiping="false"][data-removed="true"]):before{content:"";position:absolute;inset:0;transform:scaleY(2)}:where([data-sonner-toast]):after{content:"";position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}:where([data-sonner-toast][data-mounted="true"]){--y: translateY(0);opacity:1}:where([data-sonner-toast][data-expanded="false"][data-front="false"]){--scale: var(--toasts-before) * .05 + 1;--y: translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}:where([data-sonner-toast])>*{transition:opacity .4s}:where([data-sonner-toast][data-expanded="false"][data-front="false"][data-styled="true"])>*{opacity:0}
605:where([data-sonner-toast][data-visible="false"]){opacity:0;pointer-events:none}:where([data-sonner-toast][data-mounted="true"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}:where([data-sonner-toast][data-removed="true"][data-front="true"][data-swipe-out="false"]){--y: translateY(calc(var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="false"]){--y: translateY(40%);opacity:0;transition:transform .5s,opacity .2s}:where([data-sonner-toast][data-removed="true"][data-front="false"]):before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y, 0px)) translate(var(--swipe-amount-x, 0px));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width: 600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-theme=light]{--normal-bg: #fff;--normal-border: var(--gray4);--normal-text: var(--gray12);--success-bg: hsl(143, 85%, 96%);--success-border: hsl(145, 92%, 91%);--success-text: hsl(140, 100%, 27%);--info-bg: hsl(208, 100%, 97%);--info-border: hsl(221, 91%, 91%);--info-text: hsl(210, 92%, 45%);--warning-bg: hsl(49, 100%, 97%);--warning-border: hsl(49, 91%, 91%);--warning-text: hsl(31, 92%, 45%);--error-bg: hsl(359, 100%, 97%);--error-border: hsl(359, 100%, 94%);--error-text: hsl(360, 100%, 45%)}[data-sonner-toaster][data-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg: #fff;--normal-border: var(--gray3);--normal-text: var(--gray12)}[data-sonner-toaster][data-theme=dark]{--normal-bg: #000;--normal-bg-hover: hsl(0, 0%, 12%);--normal-border: hsl(0, 0%, 20%);--normal-border-hover: hsl(0, 0%, 25%);--normal-text: var(--gray1);--success-bg: hsl(150, 100%, 6%);--success-border: hsl(147, 100%, 12%);--success-text: hsl(150, 86%, 65%);--info-bg: hsl(215, 100%, 6%);--info-border: hsl(223, 100%, 12%);--info-text: hsl(216, 87%, 65%);--warning-bg: hsl(64, 100%, 6%);--warning-border: hsl(60, 100%, 12%);--warning-text: hsl(46, 87%, 65%);--error-bg: hsl(358, 76%, 10%);--error-border: hsl(357, 89%, 16%);
605--error-text: hsl(358, 100%, 81%)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success],[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info],[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning],[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error],[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size: 16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:nth-child(1){animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}to{opacity:.15}}@media (prefers-reduced-motion){[data-sonner-toast],[data-sonner-toast]>*,.sonner-loading-bar{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}
606`);function Hp(t){return t.label!==void 0}var g9=3,x9="32px",v9="16px",bT=4e3,y9=356,w9=14,b9=20,S9=200;function di(...t){return t.filter(Boolean).join(" ")}function _9(t){let[e,r]=t.split("-"),n=[];return e&&n.push(e),r&&n.push(r),n}var E9=t=>{var e,r,n,s,i,o,a,l,u,d,f;let{invert:h,toast:p,unstyled:g,interacting:m,setHeights:x,visibleToasts:v,heights:y,index:b,toasts:S,expanded:E,removeToast:C,defaultRichColors:_,closeButton:A,style:N,cancelButtonStyle:D,actionButtonStyle:V,className:H="",descriptionClassName:U="",duration:K,position:te,gap:se,loadingIcon:he,expandByDefault:G,classNames:O,icons:W,closeButtonAriaLabel:ee="Close toast",pauseWhenPageIsHidden:k}=t,[z,I]=de.useState(null),[B,q]=de.useState(null),[X,ae]=de.useState(!1),[ce,ne]=de.useState(!1),[Ae,je]=de.useState(!1),[Xe,Ve]=de.useState(!1),[re,Se]=de.useState(!1),[ve,yt]=de.useState(0),[mt,Kt]=de.useState(0),sr=de.useRef(p.duration||K||bT),Pe=de.useRef(null),qe=de.useRef(null),rt=b===0,At=b+1<=v,dt=p.type,ir=p.dismissible!==!1,Qr=p.className||"",Xn=p.descriptionClassName||"",Zr=de.useMemo(()=>y.findIndex(Ge=>Ge.toastId===p.id)||0,[y,p.id]),ds=de.useMemo(()=>{var Ge;return(Ge=p.closeButton)!=null?Ge:A},[p.closeButton,A]),Hr=de.useMemo(()=>p.duration||K||bT,[p.duration,K]),fs=de.useRef(0),Yn=de.useRef(0),Me=de.useRef(0),He=de.useRef(null),[at,Xt]=te.split("-"),Ms=de.useMemo(()=>y.reduce((Ge,wt,Lt)=>Lt>=Zr?Ge:Ge+wt.height,0),[y,Zr]),Pr=l9(),gn=p.invert||h,po=dt==="loading";Yn.current=de.useMemo(()=>Zr*se+Ms,[Zr,Ms]),de.useEffect(()=>{sr.current=Hr},[Hr]),de.useEffect(()=>{ae(!0)},[]),de.useEffect(()=>{let Ge=qe.current;if(Ge){let wt=Ge.getBoundingClientRect().height;return Kt(wt),x(Lt=>[{toastId:p.id,height:wt,position:p.position},...Lt]),()=>x(Lt=>Lt.filter(Mr=>Mr.toastId!==p.id))}},[x,p.id]),de.useLayoutEffect(()=>{if(!X)return;let Ge=qe.current,wt=Ge.style.height;Ge.style.height="auto";let Lt=Ge.getBoundingClientRect().height;Ge.style.height=wt,Kt(Lt),x(Mr=>Mr.find(jn=>jn.toastId===p.id)?Mr.map(jn=>jn.toastId===p.id?{...jn,height:Lt}:jn):[{toastId:p.id,height:Lt,position:p.position},...Mr])},[X,p.title,p.description,x,p.id]);let en=de.useCallback(()=>{ne(!0),yt(Yn.current),x(Ge=>Ge.filter(wt=>wt.toastId!==p.id)),setTimeout(()=>{C(p)},S9)},[p,C,x,Yn]);de.useEffect(()=>{if(p.promise&&dt==="loading"||p.duration===1/0||p.type==="loading")return;let Ge;return E||m||k&&Pr?(()=>{if(Me.current<fs.current){let wt=new Date().getTime()-fs.current;sr.current=sr.current-wt}
606Me.current=new Date().getTime()})():sr.current!==1/0&&(fs.current=new Date().getTime(),Ge=setTimeout(()=>{var wt;(wt=p.onAutoClose)==null||wt.call(p,p),en()},sr.current)),()=>clearTimeout(Ge)},[E,m,p,dt,k,Pr,en]),de.useEffect(()=>{p.delete&&en()},[en,p.delete]);function Md(){var Ge,wt,Lt;return W!=null&&W.loading?de.createElement("div",{className:di(O==null?void 0:O.loader,(Ge=p==null?void 0:p.classNames)==null?void 0:Ge.loader,"sonner-loader"),"data-visible":dt==="loading"},W.loading):he?de.createElement("div",{className:di(O==null?void 0:O.loader,(wt=p==null?void 0:p.classNames)==null?void 0:wt.loader,"sonner-loader"),"data-visible":dt==="loading"},he):de.createElement(r9,{className:di(O==null?void 0:O.loader,(Lt=p==null?void 0:p.classNames)==null?void 0:Lt.loader),visible:dt==="loading"})}return de.createElement("li",{tabIndex:0,ref:qe,className:di(H,Qr,O==null?void 0:O.toast,(e=p==null?void 0:p.classNames)==null?void 0:e.toast,O==null?void 0:O.default,O==null?void 0:O[dt],(r=p==null?void 0:p.classNames)==null?void 0:r[dt]),"data-sonner-toast":"","data-rich-colors":(n=p.richColors)!=null?n:_,"data-styled":!(p.jsx||p.unstyled||g),"data-mounted":X,"data-promise":!!p.promise,"data-swiped":re,"data-removed":ce,"data-visible":At,"data-y-position":at,"data-x-position":Xt,"data-index":b,"data-front":rt,"data-swiping":Ae,"data-dismissible":ir,"data-type":dt,"data-invert":gn,"data-swipe-out":Xe,"data-swipe-direction":B,"data-expanded":!!(E||G&&X),style:{"--index":b,"--toasts-before":b,"--z-index":S.length-b,"--offset":`${ce?ve:Yn.current}px`,"--initial-height":G?"auto":`${mt}px`,...N,...p.style},onDragEnd:()=>{je(!1),I(null),He.current=null},onPointerDown:Ge=>{po||!ir||(Pe.current=new Date,yt(Yn.current),Ge.target.setPointerCapture(Ge.pointerId),Ge.target.tagName!=="BUTTON"&&(je(!0),He.current={x:Ge.clientX,y:Ge.clientY}))},onPointerUp:()=>{var Ge,wt,Lt,Mr;if(Xe||!ir)return;He.current=null;let jn=Number(((Ge=qe.current)==null?void 0:Ge.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),Is=Number(((wt=qe.current)==null?void 0:wt.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),Ct=new Date().getTime()-((Lt=Pe.current)==null?void 0:Lt.getTime()),or=z==="x"?jn:Is,Ds=Math.abs(or)/Ct;if(Math.abs(or)>=b9||Ds>.11){yt(Yn.current),(Mr=p.onDismiss)==null||Mr.call(p,p),q(z==="x"?jn>0?"right":"left":Is>0?"down":"up"),en(),Ve(!0),Se(!1);return}je(!1),I(null)},onPointerMove:Ge=>{var wt,Lt,Mr,jn;if(!He.current||!ir||((wt=window.getSelection())==null?void 0:wt.toString().length)>0)return;let Is=Ge.clientY-He.current.y,Ct=Ge.clientX-He.current.x,or=(Lt=t.swipeDirections)!=null?Lt:_9(te);!z&&(Math.abs(Ct)>1||Math.abs(Is)>1)&&I(Math.abs(Ct)>Math.abs(Is)?"x":"y");let Ds={x:0,y:0};z==="y"?(or.includes("top")||or.includes("bottom"))&&(or.includes("top")&&Is<0||or.includes("bottom")&&Is>0)&&(Ds.y=Is):z==="x"&&(or.includes("left")||or.includes("right"))&&(or.includes("left")&&Ct<0||or.includes("right")&&Ct>0)&&(Ds.x=Ct),(Math.abs(Ds.x)>0||Math.abs(Ds.y)>0)&&Se(!0),(Mr=qe.current)==null||Mr.style.setProperty("--swipe-amount-x",`${Ds.x}px`),(jn=qe.current)==null||jn.style.setProperty("--swipe-amount-y",`${Ds.y}px`)}},ds&&!p.jsx?de.createElement("button",{"aria-label":ee,"data-disabled":po,"data-close-button":!0,onClick:po||!ir?()=>{}:()=>{var Ge;en(),(Ge=p.onDismiss)==null||Ge.call(p,p)},className:di(O==null?void 0:O.closeButton,(s=p==null?void 0:p.classNames)==null?void 0:s.closeButton)},(i=W==null?void 0:W.close)!=null?i:a9):null,p.jsx||w.isValidElement(p.title)?p.jsx?p.jsx:typeof p.title=="function"?p.title():p.title:de.createElement(de.Fragment,null,dt||p.icon||p.promise?de.createElement("div",{"data-icon":"",className:di(O==null?void 0:O.icon,(o=p==null?void 0:p.classNames)==null?void 0:o.icon)},p.promise||p.type==="loading"&&!p.icon?p.icon||Md():null,p.type!=="loading"?p.icon||(W==null?void 0:W[dt])||e9(dt):null):null,de.createElement("div",{"data-content":"",className:di(O==null?void 0:O.content,(a=p==null?void 0:p.classNames)==null?void 0:a.content)},de.createElement("div",{"data-title":"",className:di(O==null?void 0:O.title,(l=p==null?void 0:p.classNames)==null?void 0:l.title)},typeof p.title=="function"?p.title():p.title),p.description?de.createElement("div",{"data-description":"",className:di(U,Xn,O==null?void 0:O.de
606scription,(u=p==null?void 0:p.classNames)==null?void 0:u.description)},typeof p.description=="function"?p.description():p.description):null),w.isValidElement(p.cancel)?p.cancel:p.cancel&&Hp(p.cancel)?de.createElement("button",{"data-button":!0,"data-cancel":!0,style:p.cancelButtonStyle||D,onClick:Ge=>{var wt,Lt;Hp(p.cancel)&&ir&&((Lt=(wt=p.cancel).onClick)==null||Lt.call(wt,Ge),en())},className:di(O==null?void 0:O.cancelButton,(d=p==null?void 0:p.classNames)==null?void 0:d.cancelButton)},p.cancel.label):null,w.isValidElement(p.action)?p.action:p.action&&Hp(p.action)?de.createElement("button",{"data-button":!0,"data-action":!0,style:p.actionButtonStyle||V,onClick:Ge=>{var wt,Lt;Hp(p.action)&&((Lt=(wt=p.action).onClick)==null||Lt.call(wt,Ge),!Ge.defaultPrevented&&en())},className:di(O==null?void 0:O.actionButton,(f=p==null?void 0:p.classNames)==null?void 0:f.actionButton)},p.action.label):null))};function ST(){if(typeof window>"u"||typeof document>"u")return"ltr";let t=document.documentElement.getAttribute("dir");return t==="auto"||!t?window.getComputedStyle(document.documentElement).direction:t}function T9(t,e){let r={};return[t,e].forEach((n,s)=>{let i=s===1,o=i?"--mobile-offset":"--offset",a=i?v9:x9;function l(u){["top","right","bottom","left"].forEach(d=>{r[`${o}-${d}`]=typeof u=="number"?`${u}px`:u})}typeof n=="number"||typeof n=="string"?l(n):typeof n=="object"?["top","right","bottom","left"].forEach(u=>{n[u]===void 0?r[`${o}-${u}`]=a:r[`${o}-${u}`]=typeof n[u]=="number"?`${n[u]}px`:n[u]}):l(a)}),r}var C9=w.forwardRef(function(t,e){let{invert:r,position:n="bottom-right",hotkey:s=["altKey","KeyT"],expand:i,closeButton:o,className:a,offset:l,mobileOffset:u,theme:d="light",richColors:f,duration:h,style:p,visibleToasts:g=g9,toastOptions:m,dir:x=ST(),gap:v=w9,loadingIcon:y,icons:b,containerAriaLabel:S="Notifications",pauseWhenPageIsHidden:E}=t,[C,_]=de.useState([]),A=de.useMemo(()=>Array.from(new Set([n].concat(C.filter(k=>k.position).map(k=>k.position)))),[C,n]),[N,D]=de.useState([]),[V,H]=de.useState(!1),[U,K]=de.useState(!1),[te,se]=de.useState(d!=="system"?d:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),he=de.useRef(null),G=s.join("+").replace(/Key/g,"").replace(/Digit/g,""),O=
606de.useRef(null),W=de.useRef(!1),ee=de.useCallback(k=>{_(z=>{var I;return(I=z.find(B=>B.id===k.id))!=null&&I.delete||Jn.dismiss(k.id),z.filter(({id:B})=>B!==k.id)})},[]);return de.useEffect(()=>Jn.subscribe(k=>{if(k.dismiss){_(z=>z.map(I=>I.id===k.id?{...I,delete:!0}:I));return}setTimeout(()=>{P2.flushSync(()=>{_(z=>{let I=z.findIndex(B=>B.id===k.id);return I!==-1?[...z.slice(0,I),{...z[I],...k},...z.slice(I+1)]:[k,...z]})})})}),[]),de.useEffect(()=>{if(d!=="system"){se(d);return}if(d==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?se("dark"):se("light")),typeof window>"u")return;let k=window.matchMedia("(prefers-color-scheme: dark)");try{k.addEventListener("change",({matches:z})=>{se(z?"dark":"light")})}catch{k.addListener(({matches:I})=>{try{se(I?"dark":"light")}catch(B){console.error(B)}})}},[d]),de.useEffect(()=>{C.length<=1&&H(!1)},[C]),de.useEffect(()=>{let k=z=>{var I,B;s.every(q=>z[q]||z.code===q)&&(H(!0),(I=he.current)==null||I.focus()),z.code==="Escape"&&(document.activeElement===he.current||(B=he.current)!=null&&B.contains(document.activeElement))&&H(!1)};return document.addEventListener("keydown",k),()=>document.removeEventListener("keydown",k)},[s]),de.useEffect(()=>{if(he.current)return()=>{O.current&&(O.current.focus({preventScroll:!0}),O.current=null,W.current=!1)}},[he.current]),de.createElement("section",{ref:e,"aria-label":`${S} ${G}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},A.map((k,z)=>{var I;let[B,q]=k.split("-");return C.length?de.createElement("ol",{key:k,dir:x==="auto"?ST():x,tabIndex:-1,ref:he,className:a,"data-sonner-toaster":!0,"data-theme":te,"data-y-position":B,"data-lifted":V&&C.length>1&&!i,"data-x-position":q,style:{"--front-toast-height":`${((I=N[0])==null?void 0:I.height)||0}px`,"--width":`${y9}px`,"--gap":`${v}px`,...p,...T9(l,u)},onBlur:X=>{W.current&&!X.currentTarget.contains(X.relatedTarget)&&(W.current=!1,O.current&&(O.current.focus({preventScroll:!0}),O.current=null))},onFocus:X=>{X.target instanceof HTMLElement&&X.target.dataset.dismissible==="false"||W.current||(W.current=!0,O.current=X.relatedTarget)},onMouseEnter:()=>H(!0),onMouseMove:()=>H(!0),onMouseLeave:()=>{U||H(!1)},onDragEnd:()=>H(!1),onPointerDown:X=>{X.target instanceof HTMLElement&&X.target.dataset.dismissible==="false"||K(!0)},onPointerUp:()=>K(!1)},C.filter(X=>!X.position&&z===0||X.position===k).map((X,ae)=>{var ce,ne;return de.createElement(E9,{key:X.id,icons:b,index:ae,toast:X,defaultRichColors:f,duration:(ce=m==null?void 0:m.duration)!=null?ce:h,className:m==null?void 0:m.className,descriptionClassName:m==null?void 0:m.descriptionClassName,invert:r,visibleToasts:g,closeButton:(ne=m==null?void 0:m.closeButton)!=null?ne:o,interacting:U,position:k,style:m==null?void 0:m.style,unstyled:m==null?void 0:m.unstyled,classNames:m==null?void 0:m.classNames,cancelButtonStyle:m==null?void 0:m.cancelButtonStyle,actionButtonStyle:m==null?void 0:m.actionButtonStyle,removeToast:ee,toasts:C.filter(Ae=>Ae.position==X.position),heights:N.filter(Ae=>Ae.position==X.position),setHeights:D,expandByDefault:i,gap:v,loadingIcon:y,expanded:V,pauseWhenPageIsHidden:E,swipeDirections:t.swipeDirections})})):null}))});const k9=({...t})=>{const{theme:e="system"}=Z$();return c.jsx(C9,{theme:e,className:"toaster group",toastOptions:{classNames:{toast:"group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg",description:"group-[.toast]:text-muted-foreground",actionButton:"group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",cancelButton:"group-[.toast]:bg-muted group-[.toast]:text-muted-foreground"}},...t})};var N9=Ub[" useId ".trim().toString()]||(()=>{}),A9=0;function Oi(t){const[e,r]=w.useState(N9());return zr(()=>{r(n=>n??String(A9++))},[t]),e?`radix-${e}`:""}const j9=["top","right","bottom","left"],Qa=Math.min,gs=Math.max,b0=Math.round,Vp=Math.floor,ro=t=>({x:t,y:t}
vendor: 19,342 bytes, line 606
606),R9={left:"right",right:"left",bottom:"top",top:"bottom"},O9={start:"end",end:"start"};function pw(t,e,r){return gs(t,Qa(e,r))}function zo(t,e){return typeof t=="function"?t(e):t}function Uo(t){return t.split("-")[0]}function Sd(t){return t.split("-")[1]}function G2(t){return t==="x"?"y":"x"}function K2(t){return t==="y"?"height":"width"}const P9=new Set(["top","bottom"]);function Zi(t){return P9.has(Uo(t))?"y":"x"}function X2(t){return G2(Zi(t))}function M9(t,e,r){r===void 0&&(r=!1);const n=Sd(t),s=X2(t),i=K2(s);let o=s==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return e.reference[i]>e.floating[i]&&(o=S0(o)),[o,S0(o)]}function I9(t){const e=S0(t);return[mw(t),e,mw(e)]}function mw(t){return t.replace(/start|end/g,e=>O9[e])}const _T=["left","right"],ET=["right","left"],D9=["top","bottom"],L9=["bottom","top"];function F9(t,e,r){switch(t){case"top":case"bottom":return r?e?ET:_T:e?_T:ET;case"left":case"right":return e?D9:L9;default:return[]}}function B9(t,e,r,n){const s=Sd(t);let i=F9(Uo(t),r==="start",n);return s&&(i=i.map(o=>o+"-"+s),e&&(i=i.concat(i.map(mw)))),i}function S0(t){return t.replace(/left|right|bottom|top/g,e=>R9[e])}function $9(t){return{top:0,right:0,bottom:0,left:0,...t}}function KR(t){return typeof t!="number"?$9(t):{top:t,right:t,bottom:t,left:t}}function _0(t){const{x:e,y:r,width:n,height:s}=t;return{width:n,height:s,top:r,left:e,right:e+n,bottom:r+s,x:e,y:r}}function TT(t,e,r){let{reference:n,floating:s}=t;const i=Zi(e),o=X2(e),a=K2(o),l=Uo(e),u=i==="y",d=n.x+n.width/2-s.width/2,f=n.y+n.height/2-s.height/2,h=n[a]/2-s[a]/2;let p;switch(l){case"top":p={x:d,y:n.y-s.height};break;case"bottom":p={x:d,y:n.y+n.height};break;case"right":p={x:n.x+n.width,y:f};break;case"left":p={x:n.x-s.width,y:f};break;default:p={x:n.x,y:n.y}}switch(Sd(e)){case"start":p[o]-=h*(r&&u?-1:1);break;case"end":p[o]+=h*(r&&u?-1:1);break}return p}const z9=async(t,e,r)=>{const{placement:n="bottom",strategy:s="absolute",middleware:i=[],platform:o}=r,a=i.filter(Boolean),l=await(o.isRTL==null?void 0:o.isRTL(e));let u=await o.getElementRects({reference:t,floating:e,strategy:s}),{x:d,y:f}=TT(u,n,l),h=n,p={},g=0;for(let m=0;m<a.length;m++){const{name:x,fn:v}=a[m],{x:y,y:b,data:S,reset:E}=await v({x:d,y:f,initialPlacement:n,placement:h,strategy:s,middlewareData:p,rects:u,platform:o,elements:{reference:t,floating:e}});d=y??d,f=b??f,p={...p,[x]:{...p[x],...S}},E&&g<=50&&(g++,typeof E=="object"&&(E.placement&&(h=E.placement),E.rects&&(u=E.rects===!0?await o.getElementRects({reference:t,floating:e,strategy:s}):E.rects),{x:d,y:f}=TT(u,h,l)),m=-1)}return{x:d,y:f,placement:h,strategy:s,middlewareData:p}};async function dh(t,e){var r;e===void 0&&(e={});const{x:n,y:s,platform:i,rects:o,elements:a,strategy:l}=t,{boundary:u="clippingAncestors",rootBoundary:d="viewport",elementContext:f="floating",altBoundary:h=!1,padding:p=0}=zo(e,t),g=KR(p),x=a[h?f==="floating"?"reference":"floating":f],v=_0(await i.getClippingRect({element:(r=await(i.isElement==null?void 0:i.isElement(x)))==null||r?x:x.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(a.floating)),boundary:u,rootBoundary:d,strategy:l})),y=f==="floating"?{x:n,y:s,width:o.floating.width,height:o.floating.height}:o.reference,b=await(i.getOffsetParent==null?void 0:i.getOffsetParent(a.floating)),S=await(i.isElement==null?void 0:i.isElement(b))?await(i.getScale==null?void 0:i.getScale(b))||{x:1,y:1}:{x:1,y:1},E=_0(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:y,offsetParent:b,strategy:l}):y);return{top:(v.top-E.top+g.top)/S.y,bottom:(E.bottom-v.bottom+g.bottom)/S.y,left:(v.left-E.left+g.left)/S.x,right:(E.right-v.right+g.right)/S.x}}const U9=t=>({name:"arrow",options:t,async fn(e){const{x:r,y:n,placement:s,rects:i,platform:o,elements:a,middlewareData:l}=e,{element:u,padding:d=0}=zo(t,e)||{};if(u==null)return{};const f=KR(d),h={x:r,y:n},p=X2(s),g=K2(p),m=await o.getDimensions(u),x=p==="y",v=x?"top":"left",y=x?"bottom":"right",b=x?"clientHeight":"clientWidth",S=i.reference[g]+i.reference[p]-h[p]-i.floating[g],E=h[p]-i.reference[p],C=await(o.getOffsetParent==null?void 0:o.getOffsetParent(u));let _=C?C[b]:0;(!_||!await(o.isElement==null?void 0:o.isElement(C)))&&(_=a.floating[b]||i.floating[g]);const A=S/2-E/2,N=_/2-m[g]/2-1,D=Qa(f[v],N),V=Qa(f[y],N),H=D,U=_-m[g]-V,K=_/2-m[g]/2+A,te=pw(H,K,U),se=!l.arrow&&Sd(s)!=null&&K!==te&&i.reference[g]/2-(K<H?D:V)-m[g]/2<0,he=se?K<H?K-H:K-U:0;return{[p]:h[p]+he,data:{[p]:te,centerOffset:K-te-he,...se&&{alignmentOffset:he}},reset:se}}}),H9=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var r,n;const{placement:s,middlewareData:i,rects:o,initialPlacement:a,platform:l,elements:u}=e,{mainAxis:d=!0,crossAxis:f=!0,fallbackPlacements:h,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:m=!0,...x}=zo(t,e);if((r=i.arrow)!=null&&r.alignmentOffset)return{};const v=Uo(s),y=Zi(a),b=Uo(a)===a,S=await(l.isRTL==null?void 0:l.isRTL(u.floating)),E=h||(b||!m?[S0(a)]:I9(a)),C=g!=="none";!h&&C&&E.push(...B9(a,m,g,S));const _=[a,...E],A=await dh(e,x),N=[];let D=((n=i.flip)==null?void 0:n.overflows)||[];if(d&&N.push(A[v]),f){const K=M9(s,o,S);N.push(A[K[0]],A[K[1]])}if(D=[...D,{placement:s,overflows:N}],!N.every(K=>K<=0)){var V,H;const K=(((V=i.flip)==null?void 0:V.index)||0)+1,te=_[K];if(te&&(!(f==="alignment"?y!==Zi(te):!1)||D.every(G=>G.overflows[0]>0&&Zi(G.placement)===y)))return{data:{index:K,overflows:D},reset:{placement:te}};let se=(H=D.filter(he=>he.overflows[0]<=0).sort((he,G)=>he.overflows[1]-G.overflows[1])[0])==null?void 0:H.placement;if(!se)switch(p){case"bestFit":{var U;const he=(U=D.filter(G=>{if(C){const O=Zi(G.placement);return O===y||O==="y"}return!0}).map(G=>[G.placement,G.overflows.filter(O=>O>0).reduce((O,W)=>O+W,0)]).sort((G,O)=>G[1]-O[1])[0])==null?void 0:U[0];he&&(se=he);break}case"initialPlacement":se=a;break}if(s!==se)return{reset:{placement:se}}}return{}}}};function CT(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function kT(t){return j9.some(e=>t[e]>=0)}const V9=function(t){return t===void 0&&(t={}),{name:"hide",options:t,async fn(e){const{rects:r}=e,{strategy:n="referenceHidden",...s}=zo(t,e);switch(n){case"referenceHidden":{const i=await dh(e,{...s,elementContext:"reference"}),o=CT(i,r.reference);return{data:{referenceHiddenOffsets:o,referenceHidden:kT(o)}}}case"escaped":{const i=await dh(e,{...s,altBoundary:!0}),o=CT(i,r.floating);return{data:{escapedOffsets:o,escaped:kT(o)}}}default:return{}}}}},XR=new Set(["left","top"]);async function W9(t,e){const{placement:r,platform:n,elements:s}=t,i=await(n.isRTL==null?void 0:n.isRTL(s.floating)),o=Uo(r),a=Sd(r),l=Zi(r)==="y",u=XR.has(o)?-1:1,d=i&&l?-1:1,f=zo(e,t);let{mainAxis:h,crossAxis:p,alignmentAxis:g}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return a&&typeof g=="number"&&(p=a==="end"?g*-1:g),l?{x:p*d,y:h*u}:{x:h*u,y:p*d}}const q9=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var r,n;const{x:s,y:i,placement:o,middlewareData:a}=e,l=await W9(e,t);return o===((r=a.offset)==null?void 0:r.placement)&&(n=a.arrow)!=null&&n.alignmentOffset?{}:{x:s+l.x,y:i+l.y,data:{...l,placement:o}}}}},G9=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:r,y:n,placement:s}=e,{mainAxis:i=!0,crossAxis:o=!1,limiter:a={fn:x=>{let{x:v,y}=x;return{x:v,y}}},...l}=zo(t,e),u={x:r,y:n},d=await dh(e,l),f=Zi(Uo(s)),h=G2(f);let p=u[h],g=u[f];if(i){const x=h==="y"?"top":"left",v=h==="y"?"bottom":"right",y=p+d[x],b=p-d[v];p=pw(y,p,b)}if(o){const x=f==="y"?"top":"left",v=f==="y"?"bottom":"right",y=g+d[x],b=g-d[v];g=pw(y,g,b)}const m=a.fn({...e,[h]:p,[f]:g});return{...m,data:{x:m.x-r,y:m.y-n,enabled:{[h]:i,[f]:o}}}}}},K9=function(t){return t===void 0&&(t={}),{options:t,fn(e){const{x:r,y:n,placement:s,rects:i,middlewareData:o}=e,{offset:a=0,mainAxis:l=!0,crossAxis:u=!0}=zo(t,e),d={x:r,y:n},f=Zi(s),h=G2(f);let p=d[h],g=d[f];const m=zo(a,e),x=typeof m=="number"?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(l){const b=h==="y"?"height":"width",S=i.reference[h]-i.floating[b]+x.mainAxis,E=i.reference[h]+i.reference[b]-x.mainAxis;p<S?p=S:p>E&&(p=E)}if(u){var v,y;const b=h==="y"?"width":"height",S=XR.has(Uo(s)),E=i.reference[f]-i.floating[b]+(S&&((v=o.offset)==null?void 0:v[f])||0)+(S?0:x.crossAxis),C=i.reference[f]+i.reference[b]+(S?0:((y=o.offset)==null?void 0:y[f])||0)-(S?x.crossAxis:0);g<E?g=E:g>C&&(g=C)}return{[h]:p,[f]:g}}}},X9=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){var r,n;const{placement:s,rects:i,platform:o,elements:a}=e,{apply:l=()=>{},...u}=zo(t,e),d=await dh(e,u),f=Uo(s),h=Sd(s),p=Zi(s)==="y",{width:g,height:m}=i.floating;let x,v;f==="top"||f==="bottom"?(x=f,v=h===(await(o.isRTL==null?void 0:o.isRTL(a.floating))?"start":"end")?"left":"right"):(v=f,x=h==="end"?"top":"bottom");const y=m-d.top-d.bottom,b=g-d.left-d.right,S=Qa(m-d[x],y),E=Qa(g-d[v],b),C=!e.middlewareData.shift;let _=S,A=E;if((r=e.middlewareData.shift)!=null&&r.enabled.x&&(A=b),(n=e.middlewareData.shift)!=null&&n.enabled.y&&(_=y),C&&!h){const D=gs(d.left,0),V=gs(d.right,0),H=gs(d.top,0),U=gs(d.bottom,0);p?A=g-2*(D!==0||V!==0?D+V:gs(d.left,d.right)):_=m-2*(H!==0||U!==0?H+U:gs(d.top,d.bottom))}await l({...e,availableWidth:A,availableHeight:_});const N=await o.getDimensions(a.floating);return g!==N.width||m!==N.height?{reset:{rects:!0}}:{}}}};function bx(){return typeof window<"u"}function _d(t){return YR(t)?(t.nodeName||"").toLowerCase():"#document"}function Ts(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function fo(t){var e;return(e=(YR(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function YR(t){return bx()?t instanceof Node||t instanceof Ts(t).Node:!1}function Ii(t){return bx()?t instanceof Element||t instanceof Ts(t).Element:!1}function oo(t){return bx()?t instanceof HTMLElement||t instanceof Ts(t).HTMLElement:!1}function NT(t){return!bx()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof Ts(t).ShadowRoot}const Y9=new Set(["inline","contents"]);function tp(t){const{overflow:e,overflowX:r,overflowY:n,display:s}=Di(t);return/auto|scroll|overlay|hidden|clip/.test(e+n+r)&&!Y9.has(s)}const J9=new Set(["table","td","th"]);function Q9(t){return J9.has(_d(t))}const Z9=[":popover-open",":modal"];function Sx(t){return Z9.some(e=>{try{return t.matches(e)}catch{return!1}})}const ez=["transform","translate","scale","rotate","perspective"],tz=["transform","translate","scale","rotate","perspective","filter"],rz=["paint","layout","strict","content"];function Y2(t){const e=J2(),r=Ii(t)?Di(t):t;return ez.some(n=>r[n]?r[n]!=="none":!1)||(r.containerType?r.containerType!=="normal":!1)||!e&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!e&&(r.filter?r.filter!=="none":!1)||tz.some(n=>(r.willChange||"").includes(n))||rz.some(n=>(r.contain||"").includes(n))}function nz(t){let e=Za(t);for(;oo(e)&&!Qu(e);){if(Y2(e))return e;if(Sx(e))return null;e=Za(e)}return null}function J2(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const sz=new Set(["html","body","#document"]);function Qu(t){return sz.has(_d(t))}function Di(t){return Ts(t).getComputedStyle(t)}function _x(t){return Ii(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function Za(t){if(_d(t)==="html")return t;const e=t.assignedSlot||t.parentNode||NT(t)&&t.host||fo(t);return NT(e)?e.host:e}function JR(t){const e=Za(t);return Qu(e)?t.ownerDocument?t.ownerDocument.body:t.body:oo(e)&&tp(e)?e:JR(e)}function fh(t,e,r){var n;e===void 0&&(e=[]),r===void 0&&(r=!0);const s=JR(t),i=s===((n=t.ownerDocument)==null?void 0:n.body),o=Ts(s);if(i){const a=gw(o);return e.concat(o,o.visualViewport||[],tp(s)?s:[],a&&r?fh(a):[])}return e.concat(s,fh(s,[],r))}function gw(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function QR(t){const e=Di(t);let r=parseFloat(e.width)||0,n=parseFloat(e.height)||0;const s=oo(t),i=s?t.offsetWidth:r,o=s?t.offsetHeight:n,a=b0(r)!==i||b0(n)!==o;return a&&(r=i,n=o),{width:r,height:n,$:a}}function Q2(t){return Ii(t)?t:t.contextElement}function Tu(t){const e=Q2(t);if(!oo(e))return ro(1);const r=e.getBoundingClientRect(),{width:n,height:s,$:i}=QR(e);let o=(i?b0(r.width):r.width)/n,a=(i?b0(r.height):r.height)/s;return(!o||!Number.isFinite(o))&&(o=1),(!a||!Number.isFinite(a))&&(a=1),{x:o,y:a}}const iz=ro(0);function ZR(t){const e=Ts(t);return!J2()||!e.visualViewport?iz:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function oz(t,e,r){return e===void 0&&(e=!1),!r||e&&r!==Ts(t)?!1:e}function rc(t,e,r,n){e===void 0&&(e=!1),r===void 0&&(r=!1);const s=t.getBoundingClientRect(),i=Q2(t);let o=ro(1);e&&(n?Ii(n)&&(o=Tu(n)):o=Tu(t));const a=oz(i,r,n)?ZR(i):ro(0);let l=(s.left+a.x)/o.x,u=(s.top+a.y)/o.y,d=s.width/o.x,f=s.height/o.y;if(i){const h=Ts(i),p=n&&Ii(n)?Ts(n):n;let g=h,m=gw(g);for(;m&&n&&p!==g;){const x=Tu(m),v=m.getBoundingClientRect(),y=Di(m),b=v.left+(m.clientLeft+parseFloat(y.paddingLeft))*x.x,S=v.top+(m.clientTop+parseFloat(y.paddingTop))*x.y;l*=x.x,u*=x.y,d*=x.x,f*=x.y,l+=b,u+=S,g=Ts(m),m=gw(g)}}return _0({width:d,height:f,x:l,y:u})}function Z2(t,e){const r=_x(t).scrollLeft;return e?e.left+r:rc(fo(t)).left+r}function eO(t,e,r){r===void 0&&(r=!1);const n=t.getBoundingClientRect(),s=n.left+e.scrollLeft-(r?0:Z2(t,n)),i=n.top+e.scrollTop;return{x:s,y:i}}function az(t){let{elements:e,rect:r,offsetParent:n,strategy:s}=t;const i=s==="fixed",o=fo(n),a=e?Sx(e.floating):!1;if(n===o||a&&i)return r;let l={scrollLeft:0,scrollTop:0},u=ro(1);const d=ro(0),f=oo(n);if((f||!f&&!i)&&((_d(n)!=="body"||tp(o))&&(l=_x(n)),oo(n))){const p=rc(n);u=Tu(n),d.x=p.x+n.clientLeft,d.y=p.y+n.clientTop}const h=o&&!f&&!i?eO(o,l,!0):ro(0);return{width:r.width*u.x,height:r.height*u.y,x:r.x*u.x-l.scrollLeft*u.x+d.x+h.x,y:r.y*u.y-l.scrollTop*u.y+d.y+h.y}}function lz(t){return Array.from(t.getClientRects())}function cz(t){const e=fo(t),r=_x(t),n=t.ownerDocument.body,s=gs(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),i=gs(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight);let o=-r.scrollLeft+Z2(t);const a=-r.scrollTop;return Di(n).direction==="rtl"&&(o+=gs(e.clientWidth,n.clientWidth)-s),{width:s,height:i,x:o,y:a}}function uz(t,e){const r=Ts(t),n=fo(t),s=r.visualViewport;let i=n.clientWidth,o=n.clientHeight,a=0,l=0;if(s){i=s.width,o=s.height;const u=J2();(!u||u&&e==="fixed")&&(a=s.offsetLeft,l=s.offsetTop)}return{width:i,height:o,x:a,y:l}}const dz=new Set(["absolute","fixed"]);function fz(t,e){const r=rc(t,!0,e==="fixed"),n=r.top+t.clientTop,s=r.left+t.clientLeft,i=oo(t)?Tu(t):ro(1),o=t.clientWidth*i.x,a=t.clientHeight*i.y,l=s*i.x,u=n*i.y;return{width:o,height:a,x:l,y:u}}function AT(t,e,r){let n;if(e==="viewport")n=uz(t,r);else if(e==="document")n=cz(fo(t));else if(Ii(e))n=fz(e,r);else{const s=ZR(t);n={x:e.x-s.x,y:e.y-s.y,width:e.width,height:e.height}}return _0(n)}function tO(t,e){const r=Za(t);return r===e||!Ii(r)||Qu(r)?!1:Di(r).position==="fixed"||tO(r,e)}function hz(t,e){const r=e.get(t);if(r)return r;let n=fh(t,[],!1).filter(a=>Ii(a)&&_d(a)!=="body"),s=null;const i=Di(t).position==="fixed";let o=i?Za(t):t;for(;Ii(o)&&!Qu(o);){const a=Di(o),l=Y2(o);!l&&a.position==="fixed"&&(s=null),(i?!l&&!s:!l&&a.position==="static"&&!!s&&dz.has(s.position)||tp(o)&&!l&&tO(t,o))?n=n.filter(d=>d!==o):s=a,o=Za(o)}return e.set(t,n),n}function pz(t){let{element:e,boundary:r,rootBoundary:n,strategy:s}=t;const o=[...r==="clippingAncestors"?Sx(e)?[]:hz(e,this._c):[].concat(r),n],a=o[0],l=o.reduce((u,d)=>{const f=AT(e,d,s);return u.top=gs(f.top,u.top),u.right=Qa(f.right,u.right),u.bottom=Qa(f.bottom,u.bottom),u.left=gs(f.left,u.left),u},AT(e,a,s));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function mz(t){const{width:e,height:r}=QR(t);return{width:e,height:r}}function gz(t,e,r){const n=oo(e),s=fo(e),i=r==="fixed",o=rc(t,!0,i,e);let a={scrollLeft:0,scrollTop:0};const l=ro(0);function u(){l.x=Z2(s)}if(n||!n&&!i)if((_d(e)!=="body"||tp(s))&&(a=_x(e)),n){const p=rc(e,!0,i,e);l.x=p.x+e.clientLeft,l.y=p.y+e.clientTop}else s&&u();i&&!n&&s&&u();const d=s&&!n&&!i?eO(s,a):ro(0),f=o.left+a.scrollLeft-l.x-d.x,h=o.top+a.scrollTop-l.y-d.y;return{x:f,y:h,width:o.width,height:o.height}}function r1(t){return Di(t).position==="static"}function jT(t,e){if(!oo(t)||Di(t).position==="fixed")return null;if(e)return e(t);let r=t.offsetParent;return fo(t)===r&&(r=r.ownerDocument.body),r}function rO(t,e){const r=Ts(t);if(Sx(t))return r;if(!oo(t)){let s=Za(t);for(;s&&!Qu(s);){if(Ii(s)&&!r1(s))return s;s=Za(s)}return r}let n=jT(t,e);for(;n&&Q9(n)&&r1(n);)n=jT(n,e);return n&&Qu(n)&&r1(n)&&!Y2(n)?r:n||nz(t)||r}const xz=async function(t){const e=this.getOffsetParent||rO,r=this.getDimensions,n=await r(t.floating);return{reference:gz(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function vz(t){return Di(t).direction==="rtl"}const yz={convertOffsetParentRelativeRectToViewportRelativeRect:az,getDocumentElement:fo,getClippingRect:pz,getOffsetParent:rO,getElementRects:xz,getClientRects:lz,getDimensions:mz,getScale:Tu,isElement:Ii,isRTL:vz};function nO(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function wz(t,e){let r=null,n;const s=fo(t);function i(){var a;clearTimeout(n),(a=r)==null||a.disconnect(),r=null}function o(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),i();const u=t.getBoundingClientRect(),{left:d,top:f,width:h,height:p}=u;if(a||e(),!h||!p)return;const g=Vp(f),m=Vp(s.clientWidth-(d+h)),x=Vp(s.clientHeight-(f+p)),v=Vp(d),b={rootMargin:-g+"px "+-m+"px "+-x+"px "+-v+"px",threshold:gs(0,Qa(1,l))||1};let S=!0;function E(C){const _=C[0].intersectionRatio;if(_!==l){if(!S)return o();_?o(!1,_):n=setTimeout(()=>{o(!1,1e-7)},1e3)}_===1&&!nO(u,t.getBoundingClientRect())&&o(),S=!1}try{r=new IntersectionObserver(E,{...b,root:s.ownerDocument})}catch{r=new IntersectionObserver(E,b)}r.observe(t)}return o(!0),i}function bz(t,e,r,n){n===void 0&&(n={});const{ancestorScroll:s=!0,ancestorResize:i=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=n,u=Q2(t),d=s||i?[...u?fh(u):[],...fh(e)]:[];d.forEach(v=>{s&&v.addEventListener("scroll",r,{passive:!0}),i&&v.addEventListener("resize",r)});const f=u&&a?wz(u,r):null;let h=-1,p=null;o&&(p=new ResizeObserver(v=>{let[y]=v;y&&y.target===u&&p&&(p.unobserve(e),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var b;(b=p)==null||b.observe(e)})),r()}),u&&!l&&p.observe(u),p.observe(e));let g,m=l?rc(t):null;l&&x();function x(){const v=rc(t);m&&!nO(m,v)&&r(),m=v,g=requestAnimationFrame(x)}return r(),()=>{var v;d.forEach(y=>{s&&y.removeEventListener("scroll",r),i&&y.removeEventListener("resize",r)}),f==null||f(),(v=p)==null||v.disconnect(),p=null,l&&cancelAnimationFrame(g)}}const Sz=q9,_z=G9,Ez=H9,Tz=X9,Cz=V9,RT=U9,kz=K9,Nz=(t,e,r)=>{const n=new Map,s={platform:yz,...r},i={...s.platform,_c:n};return z9(t,e,{...s,platform:i})};var Az=typeof document<"u",jz=function(){},Fm=Az?w.useLayoutEffect:jz;function E0(t,e){if(t===e)return!0;
vendor: 12,122 bytes, line 606
606if(typeof t!=typeof e)return!1;if(typeof t=="function"&&t.toString()===e.toString())return!0;let r,n,s;if(t&&e&&typeof t=="object"){if(Array.isArray(t)){if(r=t.length,r!==e.length)return!1;for(n=r;n--!==0;)if(!E0(t[n],e[n]))return!1;return!0}if(s=Object.keys(t),r=s.length,r!==Object.keys(e).length)return!1;for(n=r;n--!==0;)if(!{}.hasOwnProperty.call(e,s[n]))return!1;for(n=r;n--!==0;){const i=s[n];if(!(i==="_owner"&&t.$$typeof)&&!E0(t[i],e[i]))return!1}return!0}return t!==t&&e!==e}function sO(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function OT(t,e){const r=sO(t);return Math.round(e*r)/r}function n1(t){const e=w.useRef(t);return Fm(()=>{e.current=t}),e}function Rz(t){t===void 0&&(t={});const{placement:e="bottom",strategy:r="absolute",middleware:n=[],platform:s,elements:{reference:i,floating:o}={},transform:a=!0,whileElementsMounted:l,open:u}=t,[d,f]=w.useState({x:0,y:0,strategy:r,placement:e,middlewareData:{},isPositioned:!1}),[h,p]=w.useState(n);E0(h,n)||p(n);const[g,m]=w.useState(null),[x,v]=w.useState(null),y=w.useCallback(G=>{G!==C.current&&(C.current=G,m(G))},[]),b=w.useCallback(G=>{G!==_.current&&(_.current=G,v(G))},[]),S=i||g,E=o||x,C=w.useRef(null),_=w.useRef(null),A=w.useRef(d),N=l!=null,D=n1(l),V=n1(s),H=n1(u),U=w.useCallback(()=>{if(!C.current||!_.current)return;const G={placement:e,strategy:r,middleware:h};V.current&&(G.platform=V.current),Nz(C.current,_.current,G).then(O=>{const W={...O,isPositioned:H.current!==!1};K.current&&!E0(A.current,W)&&(A.current=W,xc.flushSync(()=>{f(W)}))})},[h,e,r,V,H]);Fm(()=>{u===!1&&A.current.isPositioned&&(A.current.isPositioned=!1,f(G=>({...G,isPositioned:!1})))},[u]);const K=w.useRef(!1);Fm(()=>(K.current=!0,()=>{K.current=!1}),[]),Fm(()=>{if(S&&(C.current=S),E&&(_.current=E),S&&E){if(D.current)return D.current(S,E,U);U()}},[S,E,U,D,N]);const te=w.useMemo(()=>({reference:C,floating:_,setReference:y,setFloating:b}),[y,b]),se=w.useMemo(()=>({reference:S,floating:E}),[S,E]),he=w.useMemo(()=>{const G={position:r,left:0,top:0};if(!se.floating)return G;const O=OT(se.floating,d.x),W=OT(se.floating,d.y);return a?{...G,transform:"translate("+O+"px, "+W+"px)",...sO(se.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:O,top:W}},[r,a,se.floating,d.x,d.y]);return w.useMemo(()=>({...d,update:U,refs:te,elements:se,floatingStyles:he}),[d,U,te,se,he])}const Oz=t=>{function e(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:t,fn(r){const{element:n,padding:s}=typeof t=="function"?t(r):t;return n&&e(n)?n.current!=null?RT({element:n.current,padding:s}).fn(r):{}:n?RT({element:n,padding:s}).fn(r):{}}}},Pz=(t,e)=>({...Sz(t),options:[t,e]}),Mz=(t,e)=>({..._z(t),options:[t,e]}),Iz=(t,e)=>({...kz(t),options:[t,e]}),Dz=(t,e)=>({...Ez(t),options:[t,e]}),Lz=(t,e)=>({...Tz(t),options:[t,e]}),Fz=(t,e)=>({...Cz(t),options:[t,e]}),Bz=(t,e)=>({...Oz(t),options:[t,e]});var $z="Arrow",iO=w.forwardRef((t,e)=>{const{children:r,width:n=10,height:s=5,...i}=t;return c.jsx(Ue.svg,{...i,ref:e,width:n,height:s,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:t.asChild?r:c.jsx("polygon",{points:"0,0 30,0 15,10"})})});iO.displayName=$z;var zz=iO;function oO(t){const[e,r]=w.useState(void 0);return zr(()=>{if(t){r({width:t.offsetWidth,height:t.offsetHeight});const n=new ResizeObserver(s=>{if(!Array.isArray(s)||!s.length)return;const i=s[0];let o,a;if("borderBoxSize"in i){const l=i.borderBoxSize,u=Array.isArray(l)?l[0]:l;o=u.inlineSize,a=u.blockSize}else o=t.offsetWidth,a=t.offsetHeight;r({width:o,height:a})});return n.observe(t,{box:"border-box"}),()=>n.unobserve(t)}else r(void 0)},[t]),e}var eS="Popper",[aO,Ed]=Rs(eS),[Uz,lO]=aO(eS),cO=t=>{const{__scopePopper:e,children:r}=t,[n,s]=w.useState(null);return c.jsx(Uz,{scope:e,anchor:n,onAnchorChange:s,children:r})};cO.displayName=eS;var uO="PopperAnchor",dO=w.forwardRef((t,e)=>{const{__scopePopper:r,virtualRef:n,...s}=t,i=lO(uO,r),o=w.useRef(null),a=ot(e,o);return w.useEffect(()=>{i.onAnchorChange((n==null?void 0:n.current)||o.current)}),n?null:c.jsx(Ue.div,{...s,ref:a})});dO.displayName=uO;var tS="PopperContent",[Hz,Vz]=aO(tS),fO=w.forwardRef((t,e)=>{var X,ae,ce,ne,Ae,je;const{__scopePopper:r,side:n="bottom",sideOffset:s=0,align:i="center",alignOffset:o=0,arrowPadding:a=0,avoidCollisions:l=!0,collisionBoundary:u=[],collisionPadding:d=0,sticky:f="partial",hideWhenDetached:h=!1,updatePositionStrategy:p="optimized",onPlaced:g,...m}=t,x=lO(tS,r),[v,y]=w.useState(null),b=ot(e,Xe=>y(Xe)),[S,E]=w.useState(null),C=oO(S),_=(C==null?void 0:C.width)??0,A=(C==null?void 0:C.height)??0,N=n+(i!=="center"?"-"+i:""),D=typeof d=="number"?d:{top:0,right:0,bottom:0,left:0,...d},V=Array.isArray(u)?u:[u],H=V.length>0,U={padding:D,boundary:V.filter(qz),altBoundary:H},{refs:K,floatingStyles:te,placement:se,isPositioned:he,middlewareData:G}=Rz({strategy:"fixed",placement:N,whileElementsMounted:(...Xe)=>bz(...Xe,{animationFrame:p==="always"}),elements:{reference:x.anchor},middleware:[Pz({mainAxis:s+A,alignmentAxis:o}),l&&Mz({mainAxis:!0,crossAxis:!1,limiter:f==="partial"?Iz():void 0,...U}),l&&Dz({...U}),Lz({...U,apply:({elements:Xe,rects:Ve,availableWidth:re,availableHeight:Se})=>{const{width:ve,height:yt}=Ve.reference,mt=Xe.floating.style;mt.setProperty("--radix-popper-available-width",`${re}px`),mt.setProperty("--radix-popper-available-height",`${Se}px`),mt.setProperty("--radix-popper-anchor-width",`${ve}px`),mt.setProperty("--radix-popper-anchor-height",`${yt}px`)}}),S&&Bz({element:S,padding:a}),Gz({arrowWidth:_,arrowHeight:A}),h&&Fz({strategy:"referenceHidden",...U})]}),[O,W]=mO(se),ee=br(g);zr(()=>{he&&(ee==null||ee())},[he,ee]);const k=(X=G.arrow)==null?void 0:X.x,z=(ae=G.arrow)==null?void 0:ae.y,I=((ce=G.arrow)==null?void 0:ce.centerOffset)!==0,[B,q]=w.useState();return zr(()=>{v&&q(window.getComputedStyle(v).zIndex)},[v]),c.jsx("div",{ref:K.setFloating,"data-radix-popper-content-wrapper":"",style:{...te,transform:he?te.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:B,"--radix-popper-transform-origin":[(ne=G.transformOrigin)==null?void 0:ne.x,(Ae=G.transformOrigin)==null?void 0:Ae.y].join(" "),...((je=G.hide)==null?void 0:je.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:t.dir,children:c.jsx(Hz,{scope:r,placedSide:O,onArrowChange:E,arrowX:k,arrowY:z,shouldHideArrow:I,children:c.jsx(Ue.div,{"data-side":O,"data-align":W,...m,ref:b,style:{...m.style,animation:he?void 0:"none"}})})})});fO.displayName=tS;var hO="PopperArrow",Wz={top:"bottom",right:"left",bottom:"top",left:"right"},pO=w.forwardRef(function(e,r){const{__scopePopper:n,...s}=e,i=Vz(hO,n),o=Wz[i.placedSide];return c.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[o]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:c.jsx(zz,{...s,ref:r,style:{...s.style,display:"block"}})})});pO.displayName=hO;function qz(t){return t!==null}var Gz=t=>({name:"transformOrigin",options:t,fn(e){var x,v,y;const{placement:r,rects:n,middlewareData:s}=e,o=((x=s.arrow)==null?void 0:x.centerOffset)!==0,a=o?0:t.arrowWidth,l=o?0:t.arrowHeight,[u,d]=mO(r),f={start:"0%",center:"50%",end:"100%"}[d],h=(((v=s.arrow)==null?void 0:v.x)??0)+a/2,p=(((y=s.arrow)==null?void 0:y.y)??0)+l/2;let g="",m="";return u==="bottom"?(g=o?f:`${h}px`,m=`${-l}px`):u==="top"?(g=o?f:`${h}px`,m=`${n.floating.height+l}px`):u==="right"?(g=`${-l}px`,m=o?f:`${p}px`):u==="left"&&(g=`${n.floating.width+l}px`,m=o?f:`${p}px`),{data:{x:g,y:m}}}});function mO(t){const[e,r="center"]=t.split("-");return[e,r]}var gO=cO,rS=dO,nS=fO,sS=pO,[Ex,cpe]=Rs("Tooltip",[Ed]),iS=Ed(),xO="TooltipProvider",Kz=700,PT="tooltip.open",[Xz,vO]=Ex(xO),yO=t=>{const{__scopeTooltip:e,delayDuration:r=Kz,skipDelayDuration:n=300,disableHoverableContent:s=!1,children:i}=t,o=w.useRef(!0),a=w.useRef(!1),l=w.useRef(0);return w.useEffect(()=>{const u=l.current;return()=>window.clearTimeout(u)},[]),c.jsx(Xz,{scope:e,isOpenDelayedRef:o,delayDuration:r,onOpen:w.useCallback(()=>{window.clearTimeout(l.current),o.current=!1},[]),onClose:w.useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(()=>o.current=!0,n)},[n]),isPointerInTransitRef:a,onPointerInTransitChange:w.useCallback(u=>{a.current=u},[]),disableHoverableContent:s,children:i})};yO.displayName=xO;var wO="Tooltip",[upe,Tx]=Ex(wO),xw="TooltipTrigger",Yz=w.forwardRef((t,e)=>{const{__scopeTooltip:r,...n}=t,s=Tx(xw,r),i=vO(xw,r),o=iS(r),a=w.useRef(null),l=ot(e,a,s.onTriggerChange),u=w.useRef(!1),d=w.useRef(!1),f=w.useCallback(()=>u.current=!1,[]);return w.useEffect(()=>()=>document.removeEventListener("pointerup",f),[f]),c.jsx(rS,{asChild:!0,...o,children:c.jsx(Ue.button,{"aria-describedby":s.open?s.contentId:void 0,"data-state":s.stateAttribute,...n,ref:l,onPointerMove:Ce(t.onPointerMove,h=>{h.pointerType!=="touch"&&!d.current&&!i.isPointerInTransitRef.current&&(s.onTriggerEnter(),d.current=!0)}),onPointerLeave:Ce(t.onPointerLeave,()=>{s.onTriggerLeave(),d.current=!1}),onPointerDown:Ce(t.onPointerDown,()=>{s.open&&s.onClose(),u.current=!0,document.addEventListener("pointerup",f,{once:!0})}),onFocus:Ce(t.onFocus,()=>{u.current||s.onOpen()}),onBlur:Ce(t.onBlur,s.onClose),onClick:Ce(t.onClick,s.onClose)})})});Yz.displayName=xw;var Jz="TooltipPortal",[dpe,Qz]=Ex(Jz,{forceMount:void 0}),Zu="TooltipContent",bO=w.forwardRef((t,e)=>{const r=Qz(Zu,t.__scopeTooltip),{forceMount:n=r.forceMount,side:s="top",...i}=t,o=Tx(Zu,t.__scopeTooltip);return c.jsx(Nn,{present:n||o.open,children:o.disableHoverableContent?c.jsx(SO,{side:s,...i,ref:e}):c.jsx(Zz,{side:s,...i,ref:e})})}),Zz=w.forwardRef((t,e)=>{const r=Tx(Zu,t.__scopeTooltip),n=vO(Zu,t.__scopeTooltip),s=w.useRef(null),i=ot(e,s),[o,a]=w.useState(null),{trigger:l,onClose:u}=r,d=s.current,{onPointerInTransitChange:f}=n,h=w.useCallback(()=>{a(null),f(!1)},[f]),p=w.useCallback((g,m)=>{const x=g.currentTarget,v={x:g.clientX,y:g.clientY},y=sU(v,x.getBoundingClientRect()),b=iU(v,y),S=oU(m.getBoundingClientRect()),E=lU([...b,...S]);a(E),f(!0)},[f]);return w.useEffect(()=>()=>h(),[h]),w.useEffect(()=>{if(l&&d){const g=x=>p(x,d),m=x=>p(x,l);return l.addEventListener("pointerleave",g),d.addEventListener("pointerleave",m),()=>{l.removeEventListener("pointerleave",g),d.removeEventListener("pointerleave",m)}}},[l,d,p,h]),w.useEffect(()=>{if(o){const g=m=>{const x=m.target,v={x:m.clientX,y:m.clientY},y=(l==null?void 0:l.contains(x))||(d==null?void 0:d.contains(x)),b=!aU(v,o);y?h():b&&(h(),u())};return document.addEventListener("pointermove",g),()=>document.removeEventListener("pointermove",g)}},[l,d,o,u,h]),c.jsx(SO,{...t,ref:i})}),[eU,tU]=Ex(wO,{isInside:!1}),rU=RB("TooltipContent"),SO=w.forwardRef((t,e)=>{const{__scopeTooltip:r,children:n,"aria-label":s,onEscapeKeyDown:i,onPointerDownOutside:o,...a}=t,l=Tx(Zu,r),u=iS(r),{onClose:d}=l;return w.useEffect(()=>(document.addEventListener(PT,d),()=>document.removeEventListener(PT,d)),[d]),w.useEffect(()=>{if(l.trigger){const f=h=>{const p=h.target;p!=null&&p.contains(l.trigger)&&d()};return window.addEventListener("scroll",f,{capture:!0}),()=>window.removeEventListener("scroll",f,{capture:!0})}},[l.trigger,d]),c.jsx(yd,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:o,onFocusOutside:f=>f.preventDefault(),onDismiss:d,children:c.jsxs(nS,{"data-state":l.stateAttribute,...u,...a,ref:e,style:{...a.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[c.jsx(rU,{children:n}),c.jsx(eU,{scope:r,isInside:!0,children:c.jsx(ZB,{id:l.contentId,role:"tooltip",children:s||n})})]})})});
606bO.displayName=Zu;var _O="TooltipArrow",nU=w.forwardRef((t,e)=>{const{__scopeTooltip:r,...n}=t,s=iS(r);return tU(_O,r).isInside?null:c.jsx(sS,{...s,...n,ref:e})});nU.displayName=_O;function sU(t,e){const r=Math.abs(e.top-t.y),n=Math.abs(e.bottom-t.y),s=Math.abs(e.right-t.x),i=Math.abs(e.left-t.x);switch(Math.min(r,n,s,i)){case i:return"left";case s:return"right";case r:return"top";case n:return"bottom";default:throw new Error("unreachable")}}function iU(t,e,r=5){const n=[];switch(e){case"top":n.push({x:t.x-r,y:t.y+r},{x:t.x+r,y:t.y+r});break;case"bottom":n.push({x:t.x-r,y:t.y-r},{x:t.x+r,y:t.y-r});break;case"left":n.push({x:t.x+r,y:t.y-r},{x:t.x+r,y:t.y+r});break;case"right":n.push({x:t.x-r,y:t.y-r},{x:t.x-r,y:t.y+r});break}return n}function oU(t){const{top:e,right:r,bottom:n,left:s}=t;return[{x:s,y:e},{x:r,y:e},{x:r,y:n},{x:s,y:n}]}function aU(t,e){const{x:r,y:n}=t;let s=!1;for(let i=0,o=e.length-1;i<e.length;o=i++){const a=e[i],l=e[o],u=a.x,d=a.y,f=l.x,h=l.y;d>n!=h>n&&r<(f-u)*(n-d)/(h-d)+u&&(s=!s)}return s}function lU(t){const e=t.slice();return e.sort((r,n)=>r.x<n.x?-1:r.x>n.x?1:r.y<n.y?-1:r.y>n.y?1:0),cU(e)}function cU(t){if(t.length<=1)return t.slice();const e=[];for(let n=0;n<t.length;n++){const s=t[n];for(;e.length>=2;){const i=e[e.length-1],o=e[e.length-2];if((i.x-o.x)*(s.y-o.y)>=(i.y-o.y)*(s.x-o.x))e.pop();else break}e.push(s)}e.pop();const r=[];for(let n=t.length-1;n>=0;n--){const s=t[n];for(;r.length>=2;){const i=r[r.length-1],o=r[r.length-2];if((i.x-o.x)*(s.y-o.y)>=(i.y-o.y)*(s.x-o.x))r.pop();else break}r.push(s)}return r.pop(),e.length===1&&r.length===1&&e[0].x===r[0].x&&e[0].y===r[0].y?e:e.concat(r)}var uU=yO,EO=bO;const dU=uU,fU=w.forwardRef(({className:t,sideOffset:e=4,...r},n)=>c.jsx(EO,{ref:n,sideOffset:e,className:Ke("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",t),...r}));fU.displayName=EO.displayName;var Cx=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(t){return this.listeners.add(t),this.onSubscribe(),()=>{this.listeners.delete(t),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},kx=typeof window>"u"||"Deno"in globalThis;function vi(){}function hU(t,e){return typeof t=="function"?t(e):t}function pU(t){return typeof t=="number"&&t>=0&&t!==1/0}function mU(t,e){return Math.max(t+(e||0)-Date.now(),0)}function vw(t,e){return typeof t=="function"?t(e):t}function gU(t,e){return typeof t=="function"?t(e):t}function MT(t,e){const{type:r="all",exact:n,fetchStatus:s,predicate:i,queryKey:o,stale:a}=t;if(o){if(n){if(e.queryHash!==oS(o,e.options))return!1}else if(!ph(e.queryKey,o))return!1}if(r!=="all"){const l=e.isActive();if(r==="active"&&!l||r==="inactive"&&l)return!1}return!(typeof a=="boolean"&&e.isStale()!==a||s&&s!==e.state.fetchStatus||i&&!i(e))}function IT(t,e){const{exact:r,status:n,predicate:s,mutationKey:i}=t;if(i){if(!e.options.mutationKey)return!1;if(r){if(hh(e.options.mutationKey)!==hh(i))return!1}else if(!ph(e.options.mutationKey,i))return!1}return!(n&&e.state.status!==n||s&&!s(e))}function oS(t,e){return((e==null?void 0:e.queryKeyHashFn)||hh)(t)}function hh(t){return JSON.stringify(t,(e,r)=>yw(r)?Object.keys(r).sort().reduce((n,s)=>(n[s]=r[s],n),{}):r)}function ph(t,e){return t===e?!0:typeof t!=typeof e?!1:t&&e&&typeof t=="object"&&typeof e=="object"?Object.keys(e).every(r=>ph(t[r],e[r])):!1}function TO(t,e){if(t===e)return t;const r=DT(t)&&DT(e);if(r||yw(t)&&yw(e)){const n=r?t:Object.keys(t),s=n.length,i=r?e:Object.keys(e),o=i.length,a=r?[]:{},l=new Set(n);let u=0;for(let d=0;d<o;d++){const f=r?d:i[d];(!r&&l.has(f)||r)&&t[f]===void 0&&e[f]===void 0?(a[f]=void 0,u++):(a[f]=TO(t[f],e[f]),a[f]===t[f]&&t[f]!==void 0&&u++)}return s===o&&u===s?t:a}return e}function DT(t){return Array.isArray(t)&&t.length===Object.keys(t).length}function yw(t){if(!LT(t))return!1;const e=t.constructor;if(e===void 0)return!0;const r=e.prototype;return!(!LT(r)||!r.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(t)!==Object.prototype)}function LT(t){return Object.prototype.toString.call(t)==="[object Object]"}function xU(t){return new Promise(e=>{setTimeout(e,t)})}function vU(t,e,r){return typeof r.structuralSharing=="function"?r.structuralSharing(t,e):r.structuralSharing!==!1?TO(t,e):e}function yU(t,e,r=0){const n=[...t,e];return r&&n.length>r?n.slice(1):n}function wU(t,e,r=0){const n=[e,...t];return r&&n.length>r?n.slice(0,-1):n}var aS=Symbol();function CO(t,e){return!t.queryFn&&(e!=null&&e.initialPromise)?()=>e.initialPromise:!t.queryFn||t.queryFn===aS?()=>Promise.reject(new Error(`Missing queryFn: '${t.queryHash}'`)):t.queryFn}var Ml,ya,Du,_A,bU=(_A=class extends Cx{constructor(){super();_t(this,Ml);_t(this,ya);_t(this,Du);tt(this,Du,e=>{if(!kx&&window.addEventListener){const r=()=>e();return window.addEventListener("visibilitychange",r,!1),()=>{window.removeEventListener("visibilitychange",r)}}})}onSubscribe(){ue(this,ya)||this.setEventListener(ue(this,Du))}onUnsubscribe(){var e;this.hasListeners()||((e=ue(this,ya))==null||e.call(this),tt(this,ya,void 0))}setEventListener(e){var r;tt(this,Du,e),(r=ue(this,ya))==null||r.call(this),tt(this,ya,e(n=>{typeof n=="boolean"?this.setFocused(n):this.onFocus()}))}setFocused(e){ue(this,Ml)!==e&&(tt(this,Ml,e),this.onFocus())}onFocus(){const e=this.isFocused();
vendor: 4,942 bytes, line 606
606this.listeners.forEach(r=>{r(e)})}isFocused(){var e;return typeof ue(this,Ml)=="boolean"?ue(this,Ml):((e=globalThis.document)==null?void 0:e.visibilityState)!=="hidden"}},Ml=new WeakMap,ya=new WeakMap,Du=new WeakMap,_A),kO=new bU,Lu,wa,Fu,EA,SU=(EA=class extends Cx{constructor(){super();_t(this,Lu,!0);_t(this,wa);_t(this,Fu);tt(this,Fu,e=>{if(!kx&&window.addEventListener){const r=()=>e(!0),n=()=>e(!1);return window.addEventListener("online",r,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",r),window.removeEventListener("offline",n)}}})}onSubscribe(){ue(this,wa)||this.setEventListener(ue(this,Fu))}onUnsubscribe(){var e;this.hasListeners()||((e=ue(this,wa))==null||e.call(this),tt(this,wa,void 0))}setEventListener(e){var r;tt(this,Fu,e),(r=ue(this,wa))==null||r.call(this),tt(this,wa,e(this.setOnline.bind(this)))}setOnline(e){ue(this,Lu)!==e&&(tt(this,Lu,e),this.listeners.forEach(n=>{n(e)}))}isOnline(){return ue(this,Lu)}},Lu=new WeakMap,wa=new WeakMap,Fu=new WeakMap,EA),T0=new SU;function _U(){let t,e;const r=new Promise((s,i)=>{t=s,e=i});r.status="pending",r.catch(()=>{});function n(s){Object.assign(r,s),delete r.resolve,delete r.reject}return r.resolve=s=>{n({status:"fulfilled",value:s}),t(s)},r.reject=s=>{n({status:"rejected",reason:s}),e(s)},r}function EU(t){return Math.min(1e3*2**t,3e4)}function NO(t){return(t??"online")==="online"?T0.isOnline():!0}var AO=class extends Error{constructor(t){super("CancelledError"),this.revert=t==null?void 0:t.revert,this.silent=t==null?void 0:t.silent}};function s1(t){return t instanceof AO}function jO(t){let e=!1,r=0,n=!1,s;const i=_U(),o=m=>{var x;n||(h(new AO(m)),(x=t.abort)==null||x.call(t))},a=()=>{e=!0},l=()=>{e=!1},u=()=>kO.isFocused()&&(t.networkMode==="always"||T0.isOnline())&&t.canRun(),d=()=>NO(t.networkMode)&&t.canRun(),f=m=>{var x;n||(n=!0,(x=t.onSuccess)==null||x.call(t,m),s==null||s(),i.resolve(m))},h=m=>{var x;n||(n=!0,(x=t.onError)==null||x.call(t,m),s==null||s(),i.reject(m))},p=()=>new Promise(m=>{var x;s=v=>{(n||u())&&m(v)},(x=t.onPause)==null||x.call(t)}).then(()=>{var m;s=void 0,n||(m=t.onContinue)==null||m.call(t)}),g=()=>{if(n)return;let m;const x=r===0?t.initialPromise:void 0;try{m=x??t.fn()}catch(v){m=Promise.reject(v)}Promise.resolve(m).then(f).catch(v=>{var C;if(n)return;const y=t.retry??(kx?0:3),b=t.retryDelay??EU,S=typeof b=="function"?b(r,v):b,E=y===!0||typeof y=="number"&&r<y||typeof y=="function"&&y(r,v);if(e||!E){h(v);return}r++,(C=t.onFail)==null||C.call(t,r,v),xU(S).then(()=>u()?void 0:p()).then(()=>{e?h(v):g()})})};return{promise:i,cancel:o,continue:()=>(s==null||s(),i),cancelRetry:a,continueRetry:l,canStart:d,start:()=>(d()?g():p().then(g),i)}}var TU=t=>setTimeout(t,0);function CU(){let t=[],e=0,r=a=>{a()},n=a=>{a()},s=TU;const i=a=>{e?t.push(a):s(()=>{r(a)})},o=()=>{const a=t;t=[],a.length&&s(()=>{n(()=>{a.forEach(l=>{r(l)})})})};return{batch:a=>{let l;e++;try{l=a()}finally{e--,e||o()}return l},batchCalls:a=>(...l)=>{i(()=>{a(...l)})},schedule:i,setNotifyFunction:a=>{r=a},setBatchNotifyFunction:a=>{n=a},setScheduler:a=>{s=a}}}var Fn=CU(),Il,TA,RO=(TA=class{constructor(){_t(this,Il)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),pU(this.gcTime)&&tt(this,Il,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(t){this.gcTime=Math.max(this.gcTime||0,t??(kx?1/0:5*60*1e3))}clearGcTimeout(){ue(this,Il)&&(clearTimeout(ue(this,Il)),tt(this,Il,void 0))}},Il=new WeakMap,TA),Bu,Dl,Us,Ll,bn,Hh,Fl,yi,wo,CA,kU=(CA=class extends RO{constructor(e){super();_t(this,yi);_t(this,Bu);_t(this,Dl);_t(this,Us);_t(this,Ll);_t(this,bn);_t(this,Hh);_t(this,Fl);tt(this,Fl,!1),tt(this,Hh,e.defaultOptions),this.setOptions(e.options),this.observers=[],tt(this,Ll,e.client),tt(this,Us,ue(this,Ll).getQueryCache()),this.queryKey=e.queryKey,this.queryHash=e.queryHash,tt(this,Bu,AU(this.options)),this.state=e.state??ue(this,Bu),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var e;return(e=ue(this,bn))==null?void 0:e.promise}setOptions(e){this.options={...ue(this,Hh),...e},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&ue(this,Us).remove(this)}setData(e,r){const n=vU(this.state.data,e,this.options);return xn(this,yi,wo).call(this,{data:n,type:"success",dataUpdatedAt:r==null?void 0:r.updatedAt,manual:r==null?void 0:r.manual}),n}setState(e,r){xn(this,yi,wo).call(this,{type:"setState",state:e,setStateOptions:r})}cancel(e){var n,s;const r=(n=ue(this,bn))==null?void 0:n.promise;return(s=ue(this,bn))==null||s.cancel(e),r?r.then(vi).catch(vi):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(ue(this,Bu))}isActive(){return this.observers.some(e=>gU(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===aS||this.state.dataUpdateCount+this.state.errorUpdate
606Count===0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>vw(e.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e==="static"?!1:this.state.isInvalidated?!0:!mU(this.state.dataUpdatedAt,e)}onFocus(){var r;const e=this.observers.find(n=>n.shouldFetchOnWindowFocus());e==null||e.refetch({cancelRefetch:!1}),(r=ue(this,bn))==null||r.continue()}onOnline(){var r;const e=this.observers.find(n=>n.shouldFetchOnReconnect());e==null||e.refetch({cancelRefetch:!1}),(r=ue(this,bn))==null||r.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),ue(this,Us).notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(r=>r!==e),this.observers.length||(ue(this,bn)&&(ue(this,Fl)?ue(this,bn).cancel({revert:!0}):ue(this,bn).cancelRetry()),this.scheduleGc()),ue(this,Us).notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||xn(this,yi,wo).call(this,{type:"invalidate"})}fetch(e,r){var u,d,f;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(r!=null&&r.cancelRefetch))this.cancel({silent:!0});else if(ue(this,bn))return ue(this,bn).continueRetry(),ue(this,bn).promise}if(e&&this.setOptions(e),!this.options.queryFn){const h=this.observers.find(p=>p.options.queryFn);h&&this.setOptions(h.options)}const n=new AbortController,s=h=>{Object.defineProperty(h,"signal",{enumerable:!0,get:()=>(tt(this,Fl,!0),n.signal)})},i=()=>{const h=CO(this.options,r),g=(()=>{const m={client:ue(this,Ll),queryKey:this.queryKey,meta:this.meta};return s(m),m})();return tt(this,Fl,!1),this.options.persister?this.options.persister(h,g,this):h(g)},a=(()=>{const h={fetchOptions:r,options:this.options,queryKey:this.queryKey,client:ue(this,Ll),state:this.state,fetchFn:i};return s(h),h})();(u=this.options.behavior)==null||u.onFetch(a,this),tt(this,Dl,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((d=a.fetchOptions)==null?void 0:d.meta))&&xn(this,yi,wo).call(this,{type:"fetch",meta:(f=a.fetchOptions)==null?void 0:f.meta});const l=h=>{var p,g,m,x;s1(h)&&h.silent||xn(this,yi,wo).call(this,{type:"error",error:h}),s1(h)||((g=(p=ue(this,Us).config).onError)==null||g.call(p,h,this),(x=(m=ue(this,Us).config).onSettled)==null||x.call(m,this.state.data,h,this)),this.scheduleGc()};return tt(this,bn,jO({initialPromise:r==null?void 0:r.initialPromise,fn:a.fetchFn,abort:n.abort.bind(n),onSuccess:h=>{var p,g,m,x;if(h===void 0){l(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(h)}catch(v){l(v);return}(g=(p=ue(this,Us).config).onSuccess)==null||g.call(p,h,this),(x=(m=ue(this,Us).config).onSettled)==null||x.call(m,h,this.state.error,this),this.scheduleGc()},onError:l,onFail:(h,p)=>{xn(this,yi,wo).call(this,{type:"failed",failureCount:h,error:p})},onPause:()=>{xn(this,yi,wo).call(this,{type:"pause"})},onContinue:()=>{xn(this,yi,wo).call(this,{type:"continue"})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0})),ue(this,bn).start()}},Bu=new WeakMap,Dl=new WeakMap,Us=new WeakMap,Ll=new WeakMap,bn=new WeakMap,Hh=new WeakMap,Fl=new WeakMap,yi=new WeakSet,wo=function(e){const r=n=>{switch(e.type){case"failed":return{...n,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...n,fetchStatus:"paused"};case"continue":return{...n,fetchStatus:"fetching"};case"fetch":return{...n,...NU(n.data,this.options),fetchMeta:e.meta??null};case"success":return tt(this,Dl,void 0),{...n,data:e.data,dataUpdateCount:n.dataUpdateCount+1,dataUpdatedAt:e.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const s=e.error;return s1(s)&&s.revert&&ue(this,Dl)?{...ue(this,Dl),fetchStatus:"idle"}
vendor: 5,129 bytes, line 606
606:{...n,error:s,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:s,fetchStatus:"idle",status:"error"};case"invalidate":return{...n,isInvalidated:!0};case"setState":return{...n,...e.state}}};this.state=r(this.state),Fn.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate()}),ue(this,Us).notify({query:this,type:"updated",action:e})})},CA);function NU(t,e){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:NO(e.networkMode)?"fetching":"paused",...t===void 0&&{error:null,status:"pending"}}}function AU(t){const e=typeof t.initialData=="function"?t.initialData():t.initialData,r=e!==void 0,n=r?typeof t.initialDataUpdatedAt=="function"?t.initialDataUpdatedAt():t.initialDataUpdatedAt:0;return{data:e,dataUpdateCount:0,dataUpdatedAt:r?n??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}var Ki,kA,jU=(kA=class extends Cx{constructor(e={}){super();_t(this,Ki);this.config=e,tt(this,Ki,new Map)}build(e,r,n){const s=r.queryKey,i=r.queryHash??oS(s,r);let o=this.get(i);return o||(o=new kU({client:e,queryKey:s,queryHash:i,options:e.defaultQueryOptions(r),state:n,defaultOptions:e.getQueryDefaults(s)}),this.add(o)),o}add(e){ue(this,Ki).has(e.queryHash)||(ue(this,Ki).set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const r=ue(this,Ki).get(e.queryHash);r&&(e.destroy(),r===e&&ue(this,Ki).delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){Fn.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return ue(this,Ki).get(e)}getAll(){return[...ue(this,Ki).values()]}find(e){const r={exact:!0,...e};return this.getAll().find(n=>MT(r,n))}findAll(e={}){const r=this.getAll();return Object.keys(e).length>0?r.filter(n=>MT(e,n)):r}notify(e){Fn.batch(()=>{this.listeners.forEach(r=>{r(e)})})}onFocus(){Fn.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){Fn.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},Ki=new WeakMap,kA),Xi,Mn,Bl,Yi,sa,NA,RU=(NA=class extends RO{constructor(e){super();_t(this,Yi);_t(this,Xi);_t(this,Mn);_t(this,Bl);this.mutationId=e.mutationId,tt(this,Mn,e.mutationCache),tt(this,Xi,[]),this.state=e.state||OU(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){ue(this,Xi).includes(e)||(ue(this,Xi).push(e),this.clearGcTimeout(),ue(this,Mn).notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){tt(this,Xi,ue(this,Xi).filter(r=>r!==e)),this.scheduleGc(),ue(this,Mn).notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){ue(this,Xi).length||(this.state.status==="pending"?this.scheduleGc():ue(this,Mn).remove(this))}continue(){var e;return((e=ue(this,Bl))==null?void 0:e.continue())??this.execute(this.state.variables)}async execute(e){var i,o,a,l,u,d,f,h,p,g,m,x,v,y,b,S,E,C,_,A;const r=()=>{xn(this,Yi,sa).call(this,{type:"continue"})};tt(this,Bl,jO({fn:()=>this.options.mutationFn?this.options.mutationFn(e):Promise.reject(new Error("No mutationFn found")),onFail:(N,D)=>{xn(this,Yi,sa).call(this,{type:"failed",failureCount:N,error:D})},onPause:()=>{xn(this,Yi,sa).call(this,{type:"pause"})},onContinue:r,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>ue(this,Mn).canRun(this)}));const n=this.state.status==="pending",s=!ue(this,Bl).canStart();try{if(n)r();else{xn(this,Yi,sa).call(this,{type:"pending",variables:e,isPaused:s}),await((o=(i=ue(this,Mn).config).onMutate)==null?void 0:o.call(i,e,this));const D=await((l=(a=this.options).onMutate)==null?void 0:l.call(a,e));D!==this.state.context&&xn(this,Yi,sa).call(this,{type:"pending",context:D,variables:e,isPaused:s})}const N=await ue(this,Bl).start();return await((d=(u=ue(this,Mn).config).onSuccess)==null?void 0:d.call(u,N,e,this.state.context,this)),await((h=(f=this.options).onSuccess)==null?void 0:h.call(f,N,e,this.state.context)),await((g=(p=ue(this,Mn).config).onSettled)==null?void 0:g.call(p,N,null,this.state.variables,this.state.context,this)),await((x=(m=this.options).onSettled)==null?void 0:x.call(m,N,null,e,this.state.context)),xn(this,Yi,sa).call(this,{type:"success",data:N}),N}catch(N){try{throw await((y=(v=ue(this,Mn).config).onError)==null?void 0:y.call(v,N,e,this.state.context,this)),await((S=(b=this.options).onError)==null?void 0:S.call(b,N,e,this.state.context)),await((C=(E=ue(this,Mn).config).onSettled)==null?void 0:C.call(E,void 0,N,this.state.variables,this.state.context,this)),await((A=(_=this.options).onSettled)==null?void 0:A.call(_,void 0,N,e,this.state.context)),N}finally{xn(this,Yi,sa).call(this,{type:"error",error:N})}}finally{ue(this,Mn).runNext(this)}}},Xi=new WeakMap,Mn=new WeakMap,Bl=new WeakMap,Yi=new WeakSet,sa=function(e){const r=n=>{switch(e.type){case"failed":return{...n,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...n,isPaused:!0};case"continue":return{...n,isPaused:!1};
606case"pending":return{...n,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...n,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...n,data:void 0,error:e.error,failureCount:n.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}};this.state=r(this.state),Fn.batch(()=>{ue(this,Xi).forEach(n=>{n.onMutationUpdate(e)}),ue(this,Mn).notify({mutation:this,type:"updated",action:e})})},NA);function OU(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var ko,wi,Vh,AA,PU=(AA=class extends Cx{constructor(e={}){super();_t(this,ko);_t(this,wi);_t(this,Vh);this.config=e,tt(this,ko,new Set),tt(this,wi,new Map),tt(this,Vh,0)}build(e,r,n){const s=new RU({mutationCache:this,mutationId:++_p(this,Vh)._,options:e.defaultMutationOptions(r),state:n});return this.add(s),s}add(e){ue(this,ko).add(e);const r=Wp(e);if(typeof r=="string"){const n=ue(this,wi).get(r);n?n.push(e):ue(this,wi).set(r,[e])}this.notify({type:"added",mutation:e})}remove(e){if(ue(this,ko).delete(e)){const r=Wp(e);if(typeof r=="string"){const n=ue(this,wi).get(r);if(n)if(n.length>1){const s=n.indexOf(e);s!==-1&&n.splice(s,1)}else n[0]===e&&ue(this,wi).delete(r)}}this.notify({type:"removed",mutation:e})}canRun(e){const r=Wp(e);if(typeof r=="string"){const n=ue(this,wi).get(r),s=n==null?void 0:n.find(i=>i.state.status==="pending");return!s||s===e}else return!0}runNext(e){var n;const r=Wp(e);if(typeof r=="string"){const s=(n=ue(this,wi).get(r))==null?void 0:n.find(i=>i!==e&&i.state.isPaused);return(s==null?void 0:s.continue())??Promise.resolve()}else return Promise.resolve()}clear(){Fn.batch(()=>{ue(this,ko).forEach(e=>{this.notify({type:"removed",mutation:e})}),ue(this,ko).clear(),ue(this,wi).clear()})}getAll(){return Array.from(ue(this,ko))}find(e){const r={exact:!0,...e};return this.getAll().find(n=>IT(r,n))}findAll(e={}){return this.getAll().filter(r=>IT(e,r))}notify(e){Fn.batch(()=>{this.listeners.forEach(r=>{r(e)})})}resumePausedMutations(){const e=this.getAll().filter(r=>
vendor: 4,458 bytes, line 606
606r.state.isPaused);return Fn.batch(()=>Promise.all(e.map(r=>r.continue().catch(vi))))}},ko=new WeakMap,wi=new WeakMap,Vh=new WeakMap,AA);function Wp(t){var e;return(e=t.options.scope)==null?void 0:e.id}function FT(t){return{onFetch:(e,r)=>{var d,f,h,p,g;const n=e.options,s=(h=(f=(d=e.fetchOptions)==null?void 0:d.meta)==null?void 0:f.fetchMore)==null?void 0:h.direction,i=((p=e.state.data)==null?void 0:p.pages)||[],o=((g=e.state.data)==null?void 0:g.pageParams)||[];let a={pages:[],pageParams:[]},l=0;const u=async()=>{let m=!1;const x=b=>{Object.defineProperty(b,"signal",{enumerable:!0,get:()=>(e.signal.aborted?m=!0:e.signal.addEventListener("abort",()=>{m=!0}),e.signal)})},v=CO(e.options,e.fetchOptions),y=async(b,S,E)=>{if(m)return Promise.reject();if(S==null&&b.pages.length)return Promise.resolve(b);const _=(()=>{const V={client:e.client,queryKey:e.queryKey,pageParam:S,direction:E?"backward":"forward",meta:e.options.meta};return x(V),V})(),A=await v(_),{maxPages:N}=e.options,D=E?wU:yU;return{pages:D(b.pages,A,N),pageParams:D(b.pageParams,S,N)}};if(s&&i.length){const b=s==="backward",S=b?MU:BT,E={pages:i,pageParams:o},C=S(n,E);a=await y(E,C,b)}else{const b=t??i.length;do{const S=l===0?o[0]??n.initialPageParam:BT(n,a);if(l>0&&S==null)break;a=await y(a,S),l++}while(l<b)}return a};e.options.persister?e.fetchFn=()=>{var m,x;return(x=(m=e.options).persister)==null?void 0:x.call(m,u,{client:e.client,queryKey:e.queryKey,meta:e.options.meta,signal:e.signal},r)}:e.fetchFn=u}}}function BT(t,{pages:e,pageParams:r}){const n=e.length-1;return e.length>0?t.getNextPageParam(e[n],e,r[n],r):void 0}function MU(t,{pages:e,pageParams:r}){var n;return e.length>0?(n=t.getPreviousPageParam)==null?void 0:n.call(t,e[0],e,r[0],r):void 0}var cr,ba,Sa,$u,zu,_a,Uu,Hu,jA,IU=(jA=class{constructor(t={}){_t(this,cr);_t(this,ba);_t(this,Sa);_t(this,$u);_t(this,zu);_t(this,_a);_t(this,Uu);_t(this,Hu);tt(this,cr,t.queryCache||new jU),tt(this,ba,t.mutationCache||new PU),tt(this,Sa,t.defaultOptions||{}),tt(this,$u,new Map),tt(this,zu,new Map),tt(this,_a,0)}mount(){_p(this,_a)._++,ue(this,_a)===1&&(tt(this,Uu,kO.subscribe(async t=>{t&&(await this.resumePausedMutations(),ue(this,cr).onFocus())})),tt(this,Hu,T0.subscribe(async t=>{t&&(await this.resumePausedMutations(),ue(this,cr).onOnline())})))}unmount(){var t,e;_p(this,_a)._--,ue(this,_a)===0&&((t=ue(this,Uu))==null||t.call(this),tt(this,Uu,void 0),(e=ue(this,Hu))==null||e.call(this),tt(this,Hu,void 0))}isFetching(t){return ue(this,cr).findAll({...t,fetchStatus:"fetching"}).length}isMutating(t){return ue(this,ba).findAll({...t,status:"pending"}).length}getQueryData(t){var r;const e=this.defaultQueryOptions({queryKey:t});return(r=ue(this,cr).get(e.queryHash))==null?void 0:r.state.data}ensureQueryData(t){const e=this.defaultQueryOptions(t),r=ue(this,cr).build(this,e),n=r.state.data;return n===void 0?this.fetchQuery(t):(t.revalidateIfStale&&r.isStaleByTime(vw(e.staleTime,r))&&this.prefetchQuery(e),Promise.resolve(n))}getQueriesData(t){return ue(this,cr).findAll(t).map(({queryKey:e,state:r})=>{const n=r.data;return[e,n]})}setQueryData(t,e,r){const n=this.defaultQueryOptions({queryKey:t}),s=ue(this,cr).get(n.queryHash),i=s==null?void 0:s.state.data,o=hU(e,i);if(o!==void 0)return ue(this,cr).build(this,n).setData(o,{...r,manual:!0})}setQueriesData(t,e,r){return Fn.batch(()=>ue(this,cr).findAll(t).map(({queryKey:n})=>[n,this.setQueryData(n,e,r)]))}getQueryState(t){var r;const e=this.defaultQueryOptions({queryKey:t});return(r=ue(this,cr).get(e.queryHash))==null?void 0:r.state}removeQueries(t){const e=ue(this,cr);Fn.batch(()=>{e.findAll(t).forEach(r=>{e.remove(r)})})}resetQueries(t,e){const r=ue(this,cr);return Fn.batch(()=>(r.findAll(t).forEach(n=>{n.reset()}),this.refetchQueries({type:"active",...t},e)))}cancelQueries(t,e={}){const r={revert:!0,...e},n=Fn.batch(()=>ue(this,cr).findAll(t).map(s=>s.cancel(r)));return Promise.all(n).then(vi).catch(vi)}invalidateQueries(t,e={}){return Fn.batch(()=>(ue(this,cr).findAll(t).forEach(r=>{r.invalidate()}),(t==null?void 0:t.refetchType)==="none"?Promise.resolve():this.refetchQueries({...t,type:(t==null?void 0:t.refetchType)??(t==null?void 0:t.type)??"active"},e)))}refetchQueries(t,e={}){const r={...e,cancelRefetch:e.cancelRefetch??!0},n=Fn.batch(()=>ue(this,cr).findAll(t).filter(s=>!s.isDisabled()&&!s.isStatic()).map(s=>{let i=s.fetch(void 0,r);return r.throwOnError||(i=i.catch(vi)),s.state.fetchStatus==="paused"?Promise.resolve():i}
606));return Promise.all(n).then(vi)}fetchQuery(t){const e=this.defaultQueryOptions(t);e.retry===void 0&&(e.retry=!1);const r=ue(this,cr).build(this,e);return r.isStaleByTime(vw(e.staleTime,r))?r.fetch(e):Promise.resolve(r.state.data)}prefetchQuery(t){return this.fetchQuery(t).then(vi).catch(vi)}fetchInfiniteQuery(t){return t.behavior=FT(t.pages),this.fetchQuery(t)}prefetchInfiniteQuery(t){return this.fetchInfiniteQuery(t).then(vi).catch(vi)}ensureInfiniteQueryData(t){return t.behavior=FT(t.pages),this.ensureQueryData(t)}resumePausedMutations(){return T0.isOnline()?ue(this,ba).resumePausedMutations():Promise.resolve()}getQueryCache(){return ue(this,cr)}getMutationCache(){return ue(this,ba)}getDefaultOptions(){return ue(this,Sa)}setDefaultOptions(t){tt(this,Sa,t)}setQueryDefaults(t,e){ue(this,$u).set(hh(t),{queryKey:t,defaultOptions:e})}getQueryDefaults(t){const e=[...ue(this,$u).values()],r={};return e.forEach(n=>{ph(t,n.queryKey)&&Object.assign(r,n.defaultOptions)}),r}setMutationDefaults(t,e){ue(this,zu).set(hh(t),{mutationKey:t,defaultOptions:e})}getMutationDefaults(t){const e=[...ue(this,zu).values()],r={};return e.forEach(n=>{ph(t,n.mutationKey)&&Object.assign(r,n.defaultOptions)}),r}defaultQueryOptions(t){if(t._defaulted)return t;const e={...ue(this,Sa).queries,...this.getQueryDefaults(t.queryKey),...t,_defaulted:!0};return e.queryHash||(e.queryHash=oS(e.queryKey,e)),e.refetchOnReconnect===void 0&&(e.refetchOnReconnect=e.networkMode!=="always"),e.throwOnError===void 0&&(e.throwOnError=!!e.suspense),!e.networkMode&&e.persister&&(e.networkMode="offlineFirst"),e.queryFn===aS&&(e.enabled=!1),e}defaultMutationOptions(t){return t!=null&&t._defaulted?t:{...ue(this,Sa).mutations,...(t==null?void 0:t.mutationKey)&&this.getMutationDefaults(t.mutationKey),...t,_defaulted:!0}}clear(){ue(this,cr).clear(),ue(this,ba).clear()}},cr=new WeakMap,ba=new WeakMap,Sa=new WeakMap,$u=new WeakMap,zu=new WeakMap,_a=new WeakMap,Uu=new WeakMap,Hu=new WeakMap,jA),DU=w.createContext(void 0),LU=({client:t,children:e})=>(w.useEffect(()=>(t.mount(),()=>{t.unmount()}),[t]),c.jsx(DU.Provider,{value:t,children:e}));/**
607 * @remix-run/router v1.23.0
608 *
609 * Copyright (c) Remix Software Inc.
610 *
611 * This source code is licensed under the MIT license found in the
612 * LICENSE.md file in the root directory of this source tree.
613 *
614 * @license MIT
615 */function mh(){return mh=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},mh.apply(this,arguments)}var ka;(function(t){t.Pop="POP",t.Push="PUSH",t.Replace="REPLACE"})(ka||(ka={}));const $T="popstate";function FU(t){t===void 0&&(t={});function e(n,s){let{pathname:i,search:o,hash:a}=n.location;return ww("",{pathname:i,search:o,hash:a},s.state&&s.state.usr||null,s.state&&s.state.key||"default")}function r(n,s){return typeof s=="string"?s:C0(s)}return $U(e,r,null,t)}function kr(t,e){if(t===!1||t===null||typeof t>"u")throw new Error(e)}function OO(t,e){if(!t){typeof console<"u"&&console.warn(e);try{throw new Error(e)}catch{}}}function BU(){return Math.random().toString(36).substr(2,8)}function zT(t,e){return{usr:t.state,key:t.key,idx:e}}function ww(t,e,r,n){return r===void 0&&(r=null),mh({pathname:typeof t=="string"?t:t.pathname,search:"",hash:""},typeof e=="string"?Td(e):e,{state:r,key:e&&e.key||n||BU()})}function C0(t){let{pathname:e="/",search:r="",hash:n=""}=t;return r&&r!=="?"&&(e+=r.charAt(0)==="?"?r:"?"+r),n&&n!=="#"&&(e+=n.charAt(0)==="#"?n:"#"+n),e}function Td(t){let e={};if(t){let r=t.indexOf("#");r>=0&&(e.hash=t.substr(r),t=t.substr(0,r));let n=t.indexOf("?");n>=0&&(e.search=t.substr(n),t=t.substr(0,n)),t&&(e.pathname=t)}return e}function $U(t,e,r,n){n===void 0&&(n={});let{window:s=document.defaultView,v5Compat:i=!1}=n,o=s.history,a=ka.Pop,l=null,u=d();u==null&&(u=0,o.replaceState(mh({},o.state,{idx:u}),""));function d(){return(o.state||{idx:null}).idx}function f(){a=ka.Pop;let x=d(),v=x==null?null:x-u;u=x,l&&l({action:a,location:m.location,delta:v})}function h(x,v){a=ka.Push;let y=ww(m.location,x,v);u=d()+1;let b=zT(y,u),S=m.createHref(y);try{o.pushState(b,"",S)}
vendor: 3,324 bytes, line 615
615catch(E){if(E instanceof DOMException&&E.name==="DataCloneError")throw E;s.location.assign(S)}i&&l&&l({action:a,location:m.location,delta:1})}function p(x,v){a=ka.Replace;let y=ww(m.location,x,v);u=d();let b=zT(y,u),S=m.createHref(y);o.replaceState(b,"",S),i&&l&&l({action:a,location:m.location,delta:0})}function g(x){let v=s.location.origin!=="null"?s.location.origin:s.location.href,y=typeof x=="string"?x:C0(x);return y=y.replace(/ $/,"%20"),kr(v,"No window.location.(origin|href) available to create URL for href: "+y),new URL(y,v)}let m={get action(){return a},get location(){return t(s,o)},listen(x){if(l)throw new Error("A history only accepts one active listener");return s.addEventListener($T,f),l=x,()=>{s.removeEventListener($T,f),l=null}},createHref(x){return e(s,x)},createURL:g,encodeLocation(x){let v=g(x);return{pathname:v.pathname,search:v.search,hash:v.hash}},push:h,replace:p,go(x){return o.go(x)}};return m}var UT;(function(t){t.data="data",t.deferred="deferred",t.redirect="redirect",t.error="error"})(UT||(UT={}));function zU(t,e,r){return r===void 0&&(r="/"),UU(t,e,r,!1)}function UU(t,e,r,n){let s=typeof e=="string"?Td(e):e,i=lS(s.pathname||"/",r);if(i==null)return null;let o=PO(t);HU(o);let a=null;for(let l=0;a==null&&l<o.length;++l){let u=eH(i);a=QU(o[l],u,n)}return a}function PO(t,e,r,n){e===void 0&&(e=[]),r===void 0&&(r=[]),n===void 0&&(n="");let s=(i,o,a)=>{let l={relativePath:a===void 0?i.path||"":a,caseSensitive:i.caseSensitive===!0,childrenIndex:o,route:i};l.relativePath.startsWith("/")&&(kr(l.relativePath.startsWith(n),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+n+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(n.length));let u=Ua([n,l.relativePath]),d=r.concat(l);i.children&&i.children.length>0&&(kr(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),PO(i.children,e,d,u)),!(i.path==null&&!i.index)&&e.push({path:u,score:YU(u,i.index),routesMeta:d})};return t.forEach((i,o)=>{var a;if(i.path===""||!((a=i.path)!=null&&a.includes("?")))s(i,o);else for(let l of MO(i.path))s(i,o,l)}),e}function MO(t){let e=t.split("/");if(e.length===0)return[];let[r,...n]=e,s=r.endsWith("?"),i=r.replace(/\?$/,"");if(n.length===0)return s?[i,""]:[i];let o=MO(n.join("/")),a=[];return a.push(...o.map(l=>l===""?i:[i,l].join("/"))),s&&a.push(...o),a.map(l=>t.startsWith("/")&&l===""?"/":l)}function HU(t){t.sort((e,r)=>e.score!==r.score?r.score-e.score:JU(e.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}const VU=/^:[\w-]+$/,WU=3,qU=2,GU=1,KU=10,XU=-2,HT=t=>t==="*";function YU(t,e){let r=t.split("/"),n=r.length;return r.some(HT)&&(n+=XU),e&&(n+=qU),r.filter(s=>!HT(s)).reduce((s,i)=>s+(VU.test(i)?WU:i===""?GU:KU),n)}function JU(t,e){return t.length===e.length&&t.slice(0,-1).every((n,s)=>n===e[s])?t[t.length-1]-e[e.length-1]:0}function QU(t,e,r){let{routesMeta:n}=t,s={},i="/",o=[];for(let a=0;a<n.length;++a){let l=n[a],u=a===n.length-1,d=i==="/"?e:e.slice(i.length)||"/",f=VT({path:l.relativePath,caseSensitive:l.caseSensitive,end:u},d),h=l.route;if(!f&&u&&r&&!n[n.length-1].route.index&&(f=VT({path:l.relativePath,caseSensitive:l.caseSensitive,end:!1},d)),!f)return null;
vendor: 9,412 bytes, lines 615-624
615Object.assign(s,f.params),o.push({params:s,pathname:Ua([i,f.pathname]),pathnameBase:sH(Ua([i,f.pathnameBase])),route:h}),f.pathnameBase!=="/"&&(i=Ua([i,f.pathnameBase]))}return o}function VT(t,e){typeof t=="string"&&(t={path:t,caseSensitive:!1,end:!0});let[r,n]=ZU(t.path,t.caseSensitive,t.end),s=e.match(r);if(!s)return null;let i=s[0],o=i.replace(/(.)\/+$/,"$1"),a=s.slice(1);return{params:n.reduce((u,d,f)=>{let{paramName:h,isOptional:p}=d;if(h==="*"){let m=a[f]||"";o=i.slice(0,i.length-m.length).replace(/(.)\/+$/,"$1")}const g=a[f];return p&&!g?u[h]=void 0:u[h]=(g||"").replace(/%2F/g,"/"),u},{}),pathname:i,pathnameBase:o,pattern:t}}function ZU(t,e,r){e===void 0&&(e=!1),r===void 0&&(r=!0),OO(t==="*"||!t.endsWith("*")||t.endsWith("/*"),'Route path "'+t+'" will be treated as if it were '+('"'+t.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+t.replace(/\*$/,"/*")+'".'));let n=[],s="^"+t.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(o,a,l)=>(n.push({paramName:a,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return t.endsWith("*")?(n.push({paramName:"*"}),s+=t==="*"||t==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?s+="\\/*$":t!==""&&t!=="/"&&(s+="(?:(?=\\/|$))"),[new RegExp(s,e?void 0:"i"),n]}function eH(t){try{return t.split("/").map(e=>decodeURIComponent(e).replace(/\//g,"%2F")).join("/")}catch(e){return OO(!1,'The URL path "'+t+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+e+").")),t}}function lS(t,e){if(e==="/")return t;if(!t.toLowerCase().startsWith(e.toLowerCase()))return null;let r=e.endsWith("/")?e.length-1:e.length,n=t.charAt(r);return n&&n!=="/"?null:t.slice(r)||"/"}function tH(t,e){e===void 0&&(e="/");let{pathname:r,search:n="",hash:s=""}=typeof t=="string"?Td(t):t;return{pathname:r?r.startsWith("/")?r:rH(r,e):e,search:iH(n),hash:oH(s)}}function rH(t,e){let r=e.replace(/\/+$/,"").split("/");return t.split("/").forEach(s=>{s===".."?r.length>1&&r.pop():s!=="."&&r.push(s)}),r.length>1?r.join("/"):"/"}function i1(t,e,r,n){return"Cannot include a '"+t+"' character in a manually specified "+("`to."+e+"` field ["+JSON.stringify(n)+"].  Please separate it out to the ")+("`to."+r+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function nH(t){return t.filter((e,r)=>r===0||e.route.path&&e.route.path.length>0)}function IO(t,e){let r=nH(t);return e?r.map((n,s)=>s===r.length-1?n.pathname:n.pathnameBase):r.map(n=>n.pathnameBase)}function DO(t,e,r,n){n===void 0&&(n=!1);let s;typeof t=="string"?s=Td(t):(s=mh({},t),kr(!s.pathname||!s.pathname.includes("?"),i1("?","pathname","search",s)),kr(!s.pathname||!s.pathname.includes("#"),i1("#","pathname","hash",s)),kr(!s.search||!s.search.includes("#"),i1("#","search","hash",s)));let i=t===""||s.pathname==="",o=i?"/":s.pathname,a;if(o==null)a=r;else{let f=e.length-1;if(!n&&o.startsWith("..")){let h=o.split("/");for(;h[0]==="..";)h.shift(),f-=1;s.pathname=h.join("/")}a=f>=0?e[f]:"/"}let l=tH(s,a),u=o&&o!=="/"&&o.endsWith("/"),d=(i||o===".")&&r.endsWith("/");return!l.pathname.endsWith("/")&&(u||d)&&(l.pathname+="/"),l}const Ua=t=>t.join("/").replace(/\/\/+/g,"/"),sH=t=>t.replace(/\/+$/,"").replace(/^\/*/,"/"),iH=t=>!t||t==="?"?"":t.startsWith("?")?t:"?"+t,oH=t=>!t||t==="#"?"":t.startsWith("#")?t:"#"+t;function aH(t){return t!=null&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.internal=="boolean"&&"data"in t}const LO=["post","put","patch","delete"];new Set(LO);const lH=["get",...LO];new Set(lH);/**
616 * React Router v6.30.1
617 *
618 * Copyright (c) Remix Software Inc.
619 *
620 * This source code is licensed under the MIT license found in the
621 * LICENSE.md file in the root directory of this source tree.
622 *
623 * @license MIT
624 */function gh(){return gh=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},gh.apply(this,arguments)}const cS=w.createContext(null),cH=w.createContext(null),vc=w.createContext(null),Nx=w.createContext(null),yc=w.createContext({outlet:null,matches:[],isDataRoute:!1}),FO=w.createContext(null);function uH(t,e){let{relative:r}=e===void 0?{}:e;rp()||kr(!1);let{basename:n,navigator:s}=w.useContext(vc),{hash:i,pathname:o,search:a}=$O(t,{relative:r}),l=o;return n!=="/"&&(l=o==="/"?n:Ua([n,o])),s.createHref({pathname:l,search:a,hash:i})}function rp(){return w.useContext(Nx)!=null}function np(){return rp()||kr(!1),w.useContext(Nx).location}function BO(t){w.useContext(vc).static||w.useLayoutEffect(t)}function Ax(){let{isDataRoute:t}=w.useContext(yc);return t?_H():dH()}function dH(){rp()||kr(!1);let t=w.useContext(cS),{basename:e,future:r,navigator:n}=w.useContext(vc),{matches:s}=w.useContext(yc),{pathname:i}=np(),o=JSON.stringify(IO(s,r.v7_relativeSplatPath)),a=w.useRef(!1);return BO(()=>{a.current=!0}),w.useCallback(function(u,d){if(d===void 0&&(d={}),!a.current)return;if(typeof u=="number"){n.go(u);return}let f=DO(u,JSON.parse(o),i,d.relative==="path");t==null&&e!=="/"&&(f.pathname=f.pathname==="/"?e:Ua([e,f.pathname])),(d.replace?n.replace:n.push)(f,d.state,d)},[e,n,o,i,t])}function $O(t,e){let{relative:r}=e===void 0?{}:e,{future:n}=w.useContext(vc),{matches:s}=w.useContext(yc),{pathname:i}=np(),o=JSON.stringify(IO(s,n.v7_relativeSplatPath));return w.useMemo(()=>DO(t,JSON.parse(o),i,r==="path"),[t,o,i,r])}function fH(t,e){return hH(t,e)}function hH(t,e,r,n){rp()||kr(!1);let{navigator:s}=w.useContext(vc),{matches:i}=w.useContext(yc),o=i[i.length-1],a=o?o.params:{};o&&o.pathname;let l=o?o.pathnameBase:"/";o&&o.route;let u=np(),d;if(e){var f;let x=typeof e=="string"?Td(e):e;l==="/"||(f=x.pathname)!=null&&f.startsWith(l)||kr(!1),d=x}else d=u;let h=d.pathname||"/",p=h;if(l!=="/"){let x=l.replace(/^\//,"").split("/");p="/"+h.replace(/^\//,"").split("/").slice(x.length).join("/")}let g=zU(t,{pathname:p}),m=vH(g&&g.map(x=>Object.assign({},x,{params:Object.assign({},a,x.params),pathname:Ua([l,s.encodeLocation?s.encodeLocation(x.pathname).pathname:x.pathname]),pathnameBase:x.pathnameBase==="/"?l:Ua([l,s.encodeLocation?s.encodeLocation(x.pathnameBase).pathname:x.pathnameBase])})),i,r,n);return e&&m?w.createElement(Nx.Provider,{value:{location:gh({pathname:"/",search:"",hash:"",state:null,key:"default"},d),navigationType:ka.Pop}},m):m}function pH(){let t=SH(),e=aH(t)?t.status+" "+t.statusText:t instanceof Error?t.message:JSON.stringify(t),r=t instanceof Error?t.stack:null,s={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return w.createElement(w.Fragment,null,w.createElement("h2",null,"Unexpected Application Error!"),w.createElement("h3",{style:{fontStyle:"italic"}},e),r?w.createElement("pre",{style:s},r):null,null)}const mH=w.createElement(pH,null);class gH extends w.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,r){return r.location!==e.location||r.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:r.error,location:r.location,revalidation:e.revalidation||r.revalidation}}componentDidCatch(e,r){console.error("React Router caught the following error during render",e,r)}render(){return this.state.error!==void 0?w.createElement(yc.Provider,{value:this.props.routeContext},w.createElement(FO.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function xH(t){let{routeContext:e,match:r,children:n}=t,s=w.useContext(cS);return s&&s.static&&s.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(s.staticContext._deepestRenderedBoundaryId=r.route.id),w.createElement(yc.Provider,{value:e},n)}function vH(t,e,r,n){var s;if(e===void 0&&(e=[]),r===void 0&&(r=null),n===void 0&&(n=null),t==null){var i;if(!r)return null;if(r.errors)t=r.matches;else if((i=n)!=null&&i.v7_partialHydration&&e.length===0&&!r.initialized&&r.matches.length>0)t=r.matches;else return null}let o=t,a=(s=r)==null?void 0:s.errors;if(a!=null){let d=o.findIndex(f=>f.route.id&&(a==null?void 0:a[f.route.id])!==void 0);d>=0||kr(!1),o=o.slice(0,Math.min(o.length,d+1))}let l=!1,u=-1;if(r&&n&&n.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:h,errors:p}=r,g=f.route.loader&&h[f.route.id]===void 0&&(!p||p[f.route.id]===void 0);if(f.route.lazy||g){l=!0,u>=0?o=o.slice(0,u+1):o=[o[0]];break}}}return o.reduceRight((d,f,h)=>{let p,g=!1,m=null,x=null;r&&(p=a&&f.route.id?a[f.route.id]:void 0,m=f.route.errorElement||mH,l&&(u<0&&h===0?(g=!0,x=null):u===h&&(g=!0,x=f.route.hydrateFallbackElement||null)));let v=e.concat(o.slice(0,h+1)),y=()=>{let b;return p?b=m:g?b=x:f.route.Component?b=w.createElement(f.route.Component,null):f.route.element?b=f.route.element:b=d,w.createElement(xH,{match:f,routeContext:{outlet:d,matches:v,isDataRoute:r!=null},children:b})};return r&&(f.route.ErrorBoundary||f.route.errorElement||h===0)?w.createElement(gH,{location:r.location,revalidation:r.revalidation,component:m,error:p,children:y(),routeC
624ontext:{outlet:null,matches:v,isDataRoute:!0}}):y()},null)}var zO=function(t){return t.UseBlocker="useBlocker",t.UseRevalidator="useRevalidator",t.UseNavigateStable="useNavigate",t}(zO||{}),k0=function(t){return t.UseBlocker="useBlocker",t.UseLoaderData="useLoaderData",t.UseActionData="useActionData",t.UseRouteError="useRouteError",t.UseNavigation="useNavigation",t.UseRouteLoaderData="useRouteLoaderData",t.UseMatches="useMatches",t.UseRevalidator="useRevalidator",t.UseNavigateStable="useNavigate",t.UseRouteId="useRouteId",t}(k0||{});function yH(t){let e=w.useContext(cS);return e||kr(!1),e}function wH(t){let e=w.useContext(cH);return e||kr(!1),e}function bH(t){let e=w.useContext(yc);return e||kr(!1),e}function UO(t){let e=bH(),r=e.matches[e.matches.length-1];return r.route.id||kr(!1),r.route.id}function SH(){var t;let e=w.useContext(FO),r=wH(k0.UseRouteError),n=UO(k0.UseRouteError);return e!==void 0?e:(t=r.errors)==null?void 0:t[n]}function _H(){let{router:t}=yH(zO.UseNavigateStable),e=UO(k0.UseNavigateStable),r=w.useRef(!1);return BO(()=>{r.current=!0}),w.useCallback(function(s,i){i===void 0&&(i={}),r.current&&(typeof s=="number"?t.navigate(s):t.navigate(s,gh({fromRouteId:e},i)))},[t,e])}function EH(t,e){t==null||t.v7_startTransition,t==null||t.v7_relativeSplatPath}function On(t){kr(!1)}function TH(t){let{basename:e="/",children:r=null,location:n,navigationType:s=ka.Pop,navigator:i,static:o=!1,future:a}=t;rp()&&kr(!1);let l=e.replace(/^\/*/,"/"),u=w.useMemo(()=>({basename:l,navigator:i,static:o,future:gh({v7_relativeSplatPath:!1},a)}),[l,a,i,o]);typeof n=="string"&&(n=Td(n));let{pathname:d="/",search:f="",hash:h="",state:p=null,key:g="default"}=n,m=w.useMemo(()=>{let x=lS(d,l);return x==null?null:{location:{pathname:x,search:f,hash:h,state:p,key:g},navigationType:s}},[l,d,f,h,p,g,s]);return m==null?null:w.createElement(vc.Provider,{value:u},w.createElement(Nx.Provider,{children:r,value:m}))}function CH(t){let{children:e,location:r}=t;return fH(bw(e),r)}new Promise(()=>{});function bw(t,e){e===void 0&&(e=[]);let r=[];return w.Children.forEach(t,(n,s)=>{if(!w.isValidElement(n))return;let i=[...e,s];if(n.type===w.Fragment){r.push.apply(r,bw(n.props.children,i));return}n.type!==On&&kr(!1),!n.props.index||!n.props.children||kr(!1);let o={id:n.props.id||i.join("-"),caseSensitive:n.props.caseSensitive,element:n.props.element,Component:n.props.Component,index:n.props.index,path:n.props.path,loader:n.props.loader,action:n.props.action,errorElement:n.props.errorElement,ErrorBoundary:n.props.ErrorBoundary,hasErrorBoundary:n.props.ErrorBoundary!=null||n.props.errorElement!=null,shouldRevalidate:n.props.shouldRevalidate,handle:n.props.handle,lazy:n.props.lazy};n.props.children&&(o.children=bw(n.props.children,i)),r.push(o)}),r}/**
625 * React Router DOM v6.30.1
626 *
627 * Copyright (c) Remix Software Inc.
628 *
629 * This source code is licensed under the MIT license found in the
630 * LICENSE.md file in the root directory of this source tree.
631 *
632 * @license MIT
633 */function Sw(){return Sw=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Sw.apply(this,arguments)}function kH(t,e){if(t==null)return{};var r={},n=Object.keys(t),s,i;for(i=0;i<n.length;i++)s=n[i],!(e.indexOf(s)>=0)&&(r[s]=t[s]);return r}function NH(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}function AH(t,e){return t.button===0&&(!e||e==="_self")&&!NH(t)}const jH=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],RH="6";try{window.__reactRouterVersion=RH}catch{}const OH="startTransition",WT=Ub[OH];function PH(t){let{basename:e,children:r,future:n,window:s}=t,i=w.useRef();i.current==null&&(i.current=FU({window:s,v5Compat:!0}));let o=i.current,[a,l]=w.useState({action:o.action,location:o.location}),{v7_startTransition:u}=n||{},d=w.useCallback(f=>{u&&WT?WT(()=>l(f)):l(f)},[l,u]);return w.useLayoutEffect(()=>o.listen(d),[o,d]),w.useEffect(()=>EH(n),[n]),w.createElement(TH,{basename:e,children:r,location:a.location,navigationType:a.action,navigator:o,future:n})}const MH=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",IH=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,is=w.forwardRef(function(e,r){let{onClick:n,relative:s,reloadDocument:i,replace:o,state:a,target:l,to:u,preventScrollReset:d,viewTransition:f}=e,h=kH(e,jH),{basename:p}=w.useContext(vc),g,m=!1;if(typeof u=="string"&&IH.test(u)&&(g=u,MH))try{let b=new URL(window.location.href),S=u.startsWith("//")?new URL(b.protocol+u):new URL(u),E=lS(S.pathname,p);S.origin===b.origin&&E!=null?u=E+S.search+S.hash:m=!0}catch{}let x=uH(u,{relative:s}),v=DH(u,{replace:o,state:a,target:l,preventScrollReset:d,relative:s,viewTransition:f});function y(b){n&&n(b),b.defaultPrevented||v(b)}return w.createElement("a",Sw({},h,{href:g||x,onClick:m||i?n:y,ref:r,target:l}))});var qT;(function(t){t.UseScrollRestoration="useScrollRestoration",t.UseSubmit="useSubmit",t.UseSubmitFetcher="useSubmitFetcher",t.UseFetcher="useFetcher",t.useViewTransitionState="useViewTransitionState"})(qT||(qT={}));var GT;(function(t){t.UseFetcher="useFetcher",t.UseFetchers="useFetchers",t.UseScrollRestoration="useScrollRestoration"})(GT||(GT={}));function DH(t,e){let{target:r,replace:n,state:s,preventScrollReset:i,relative:o,viewTransition:a}=e===void 0?{}:e,l=Ax(),u=np(),d=$O(t,{relative:o});return w.useCallback(f=>{if(AH(f,r)){f.preventDefault();let h=n!==void 0?n:C0(u)===C0(d);l(t,{replace:h,state:s,preventScrollReset:i,relative:o,viewTransition:a})}},[u,l,d,n,s,r,t,i,o,a])}var LH=typeof Element<"u",FH=typeof Map=="function",BH=typeof Set=="function",$H=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function Bm(t,e){if(t===e)return!0;
633if(t&&e&&typeof t=="object"&&typeof e=="object"){if(t.constructor!==e.constructor)return!1;var r,n,s;if(Array.isArray(t)){if(r=t.length,r!=e.length)return!1;for(n=r;n--!==0;)if(!Bm(t[n],e[n]))return!1;return!0}var i;if(FH&&t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(i=t.entries();!(n=i.next()).done;)if(!e.has(n.value[0]))return!1;for(i=t.entries();!(n=i.next()).done;)if(!Bm(n.value[1],e.get(n.value[0])))return!1;return!0}if(BH&&t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(i=t.entries();!(n=i.next()).done;)if(!e.has(n.value[0]))return!1;return!0}if($H&&ArrayBuffer.isView(t)&&ArrayBuffer.isView(e)){if(r=t.length,r!=e.length)return!1;for(n=r;n--!==0;)if(t[n]!==e[n])return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf&&typeof t.valueOf=="function"&&typeof e.valueOf=="function")return t.valueOf()===e.valueOf();if(t.toString!==Object.prototype.toString&&typeof t.toString=="function"&&typeof e.toString=="function")return t.toString()===e.toString();if(s=Object.keys(t),r=s.length,r!==Object.keys(e).length)return!1;for(n=r;n--!==0;)if(!Object.prototype.hasOwnProperty.call(e,s[n]))return!1;if(LH&&t instanceof Element)return!1;for(n=r;n--!==0;)if(!((s[n]==="_owner"||s[n]==="__v"||s[n]==="__o")&&t.$$typeof)&&!Bm(t[s[n]],e[s[n]]))return!1;return!0}return t!==t&&e!==e}var zH=function(e,r){try{return Bm(e,r)}catch(n){if((n.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw n}};const UH=md(zH);var HH=function(t,e,r,n,s,i,o,a){if(!t){var l;if(e===void 0)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[r,n,s,i,o,a],d=0;l=new Error(e.replace(/%s/g,function(){return u[d++]})),l.name="Invariant Violation"}throw l.framesToPop=1,l}},VH=HH;const KT=md(VH);var WH=function(e,r,n,s){var i=n?n.call(s,e,r):void 0;if(i!==void 0)return!!i;if(e===r)return!0;if(typeof e!="object"||!e||typeof r!="object"||!r)return!1;var o=Object.keys(e),a=Object.keys(r);if(o.length!==a.length)return!1;for(var l=Object.prototype.hasOwnProperty.bind(r),u=0;u<o.length;u++){var d=o[u];if(!l(d))return!1;var f=e[d],h=r[d];if(i=n?n.call(s,f,h,d):void 0,i===!1||i===void 0&&f!==h)return!1}return!0};const qH=md(WH);var HO=(t=>(t.BASE="base",t.BODY="body",t.HEAD="head",t.HTML="html",t.LINK="link",t.META="meta",t.NOSCRIPT="noscript",t.SCRIPT="script",t.STYLE="style",t.TITLE="title",t.FRAGMENT="Symbol(react.fragment)",t))(HO||{}),o1={link:{rel:["amphtml","canonical","alternate"]},script:{type:["application/ld+json"]},meta:{charset:"",name:["generator","robots","description"],property:["og:type","og:title","og:url","og:image","og:image:alt","og:description","twitter:url","twitter:title","twitter:description","twitter:image","twitter:image:alt","twitter:card","twitter:site"]}},XT=Object.values(HO),uS={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},GH=Object.entries(uS).reduce((t,[e,r])=>(t[r]=e,t),{}),Ci="data-rh",Cu={DEFAULT_TITLE:"defaultTitle",DEFER:"defer",ENCODE_SPECIAL_CHARACTERS:"encodeSpecialCharacters",ON_CHANGE_CLIENT_STATE:"onChangeClientState",TITLE_TEMPLATE:"titleTemplate",PRIORITIZE_SEO_TAGS:"prioritizeSeoTags"},ku=(t,e)=>{for(let r=t.length-1;r>=0;r-=1){const n=t[r];if(Object.prototype.hasOwnProperty.call(n,e))return n[e]}return null},KH=t=>{let e=ku(t,"title");const r=ku(t,Cu.TITLE_TEMPLATE);if(Array.isArray(e)&&(e=e.join("")),r&&e)return r.replace(/%s/g,()=>e);const n=ku(t,Cu.DEFAULT_TITLE);return e||n||void 0},XH=t=>ku(t,Cu.ON_CHANGE_CLIENT_STATE)||(()=>{}),a1=(t,e)=>e.filter(r=>typeof r[t]<"u").map(r=>r[t]).reduce((r,n)=>({...r,...n}),{}),YH=(t,e)=>e.filter(r=>typeof r.base<"u").map(r=>r.base).reverse().reduce((r,n)=>{if(!r.length){const s=Object.keys(n);for(let i=0;i<s.length;i+=1){const a=s[i].toLowerCase();if(t.indexOf(a)!==-1&&n[a])return r.concat(n)}}return r},[]),JH=t=>console&&typeof console.warn=="function"&&console.warn(t),qd=(t,e,r)=>{const n={};return r.filter(s=>Array.isArray(s[t])?!0:(typeof s[t]<"u"&&JH(`Helmet: ${t} should be of type "Array". Instead found type "${typeof s[t]}"`),!1)).map(s=>s[t]).reverse().reduce((s,i)=>{const o={};i.filter(l=>{let u;const d=Object.keys(l);for(let h=0;h<d.length;h+=1){const p=d[h],g=p.toLowerCase();e.indexOf(g)!==-1&&!(u==="rel"&&l[u].toLowerCase()==="canonical")&&!(g==="rel"&&l[g].toLowerCase()==="stylesheet")&&(u=g),e.indexOf(p)!==-1&&(p==="innerHTML"||p==="cssText"||p==="itemprop")&&(u=p)}if(!u||!l[u])return!1;const f=l[u].toLowerCase();return n[u]||(n[u]={}),o[u]||(o[u]={}),n[u][f]?!1:(o[u][f]=!0,!0)}
633).reverse().forEach(l=>s.push(l));const a=Object.keys(o);for(let l=0;l<a.length;l+=1){const u=a[l],d={...n[u],...o[u]};n[u]=d}return s},[]).reverse()},QH=(t,e)=>{if(Array.isArray(t)&&t.length){for(let r=0;r<t.length;r+=1)if(t[r][e])return!0}return!1},ZH=t=>({baseTag:YH(["href"],t),bodyAttributes:a1("bodyAttributes",t),defer:ku(t,Cu.DEFER),encode:ku(t,Cu.ENCODE_SPECIAL_CHARACTERS),htmlAttributes:a1("htmlAttributes",t),linkTags:qd("link",["rel","href"],t),metaTags:qd("meta",["name","charset","http-equiv","property","itemprop"],t),noscriptTags:qd("noscript",["innerHTML"],t),onChangeClientState:XH(t),scriptTags:qd("script",["src","innerHTML"],t),styleTags:qd("style",["cssText"],t),title:KH(t),titleAttributes:a1("titleAttributes",t),prioritizeSeoTags:QH(t,Cu.PRIORITIZE_SEO_TAGS)}),VO=t=>Array.isArray(t)?t.join(""):t,eV=(t,e)=>{const r=Object.keys(t);for(let n=0;n<r.length;n+=1)if(e[r[n]]&&e[r[n]].includes(t[r[n]]))return!0;return!1},l1=(t,e)=>Array.isArray(t)?t.reduce((r,n)=>(eV(n,e)?r.priority.push(n):r.default.push(n),r),{priority:[],default:[]}):{default:t,priority:[]},YT=(t,e)=>({...t,[e]:void 0}),tV=["noscript","script","style"],_w=(t,e=!0)=>e===!1?String(t):String(t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;"),WO=t=>Object.keys(t).reduce((e,r)=>{const n=typeof t[r]<"u"?`${r}="${t[r]}"`:`${r}`;return e?`${e} ${n}`:n},""),rV=(t,e,r,n)=>{const s=WO(r),i=VO(e);return s?`<${t} ${Ci}="true" ${s}>${_w(i,n)}</${t}>`:`<${t} ${Ci}="true">${_w(i,n)}</${t}>`},nV=(t,e,r=!0)=>e.reduce((n,s)=>{const i=s,o=Object.keys(i).filter(u=>!(u==="innerHTML"||u==="cssText")).reduce((u,d)=>{const f=typeof i[d]>"u"?d:`${d}="${_w(i[d],r)}"`;return u?`${u} ${f}`:f},""),a=i.innerHTML||i.cssText||"",l=tV.indexOf(t)===-1;return`${n}<${t} ${Ci}="true" ${o}${l?"/>":`>${a}</${t}>`}`},""),qO=(t,e={})=>Object.keys(t).reduce((r,n)=>{const s=uS[n];return r[s||n]=t[n],r},e),sV=(t,e,r)=>{const n={key:e,[Ci]:!0},s=qO(r,n);return[de.createElement("title",s,e)]},$m=(t,e)=>e.map((r,n)=>{const s={key:n,[Ci]:!0};return Object.keys(r).forEach(i=>{const a=uS[i]||i;if(a==="innerHTML"||a==="cssText"){const l=r.innerHTML||r.cssText;s.dangerouslySetInnerHTML={__html:l}}else s[a]=r[i]}),de.createElement(t,s)}),zs=(t,e,r=!0)=>{switch(t){case"title":return{toComponent:()=>sV(t,e.title,e.titleAttributes),toString:()=>rV(t,e.title,e.titleAttributes,r)};case"bodyAttributes":case"htmlAttributes":return{toComponent:()=>qO(e),toString:()=>WO(e)};default:return{toComponent:()=>$m(t,e),toString:()=>nV(t,e,r)}}},iV=({metaTags:t,linkTags:e,scriptTags:r,encode:n})=>{const s=l1(t,o1.meta),i=l1(e,o1.link),o=l1(r,o1.script);return{priorityMethods:{toComponent:()=>[...$m("meta",s.priority),...$m("link",i.priority),...$m("script",o.priority)],toString:()=>`${zs("meta",s.priority,n)} ${zs("link",i.priority,n)} ${zs("script",o.priority,n)}`},metaTags:s.default,linkTags:i.default,scriptTags:o.default}},oV=t=>{const{baseTag:e,bodyAttributes:r,encode:n=!0,htmlAttributes:s,noscriptTags:i,styleTags:o,title:a="",titleAttributes:l,prioritizeSeoTags:u}=t;let{linkTags:d,metaTags:f,scriptTags:h}=t,p={toComponent:()=>{},toString:()=>""};return u&&({priorityMethods:p,linkTags:d,metaTags:f,scriptTags:h}=iV(t)),{priority:p,base:zs("base",e,n),bodyAttributes:zs("bodyAttributes",r,n),htmlAttributes:zs("htmlAttributes",s,n),link:zs("link",d,n),meta:zs("meta",f,n),noscript:zs("noscript",i,n),script:zs("script",h,n),style:zs("style",o,n),title:zs("title",{title:a,titleAttributes:l},n)}},Ew=oV,qp=[],GO=!!(typeof window<"u"&&window.document&&window.document.createElement),Tw=class{constructor(t,e){mo(this,"instances",[]);mo(this,"canUseDOM",GO);mo(this,"context");mo(this,"value",{setHelmet:t=>{this.context.helmet=t},helmetInstances:{get:()=>this.canUseDOM?qp:this.instances,add:t=>{(this.canUseDOM?qp:this.instances).push(t)},remove:t=>{const e=(this.canUseDOM?qp:this.instances).indexOf(t);(this.canUseDOM?qp:this.instances).splice(e,1)}}});this.context=t,this.canUseDOM=e||!1,e||(t.helmet=Ew({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}}))}},aV={},KO=de.createContext(aV),$l,XO=($l=class extends w.Component{constructor(r){super(r);mo(this,"helmetData");this.helmetData=new Tw(this.props.context||{},$l.canUseDOM)}render(){return de.createElement(KO.Provider,{value:this.helmetData.value},this.props.children)}},mo($l,"canUseDOM",GO),$l),Rc=(t,e)=>{const r=document.head||document.querySelector("head"),n=r.querySelectorAll(`${t}[${Ci}]`),s=[].slice.call(n),i=[];let o;return e&&e.length&&e.forEach(a=>{const l=document.createElement(t);for(const u in a)if(Object.prototype.hasOwnProperty.call(a,u))if(u==="innerHTML")l.innerHTML=a.innerHTML;else if(u==="cssText")l.styleSheet?l.styleSheet.cssText=a.cssText:l.appendChild(document.createTextNode(a.cssText));else{const d=u,f=typeof a[d]>"u"?"":a[d];l.setAttribute(u,f)}l.setAttribute(Ci,"true"),s.some((u,d)=>(o=d,l.isEqualNode(u)))?s.splice(o,1):i.push(l)}
633),s.forEach(a=>{var l;return(l=a.parentNode)==null?void 0:l.removeChild(a)}),i.forEach(a=>r.appendChild(a)),{oldTags:s,newTags:i}},Cw=(t,e)=>{const r=document.getElementsByTagName(t)[0];if(!r)return;const n=r.getAttribute(Ci),s=n?n.split(","):[],i=[...s],o=Object.keys(e);for(const a of o){const l=e[a]||"";r.getAttribute(a)!==l&&r.setAttribute(a,l),s.indexOf(a)===-1&&s.push(a);const u=i.indexOf(a);u!==-1&&i.splice(u,1)}for(let a=i.length-1;a>=0;a-=1)r.removeAttribute(i[a]);s.length===i.length?r.removeAttribute(Ci):r.getAttribute(Ci)!==o.join(",")&&r.setAttribute(Ci,o.join(","))},lV=(t,e)=>{typeof t<"u"&&document.title!==t&&(document.title=VO(t)),Cw("title",e)},JT=(t,e)=>{const{baseTag:r,bodyAttributes:n,htmlAttributes:s,linkTags:i,metaTags:o,noscriptTags:a,onChangeClientState:l,scriptTags:u,styleTags:d,title:f,titleAttributes:h}=t;Cw("body",n),Cw("html",s),lV(f,h);const p={baseTag:Rc("base",r),linkTags:Rc("link",i),metaTags:Rc("meta",o),noscriptTags:Rc("noscript",a),scriptTags:Rc("script",u),styleTags:Rc("style",d)},g={},m={};Object.keys(p).forEach(x=>{const{newTags:v,oldTags:y}=p[x];v.length&&(g[x]=v),y.length&&(m[x]=p[x].oldTags)}),e&&e(),l(t,g,m)},Gd=null,cV=t=>{Gd&&cancelAnimationFrame(Gd),t.defer?Gd=requestAnimationFrame(()=>{JT(t,()=>{Gd=null})}):(JT(t),Gd=null)},uV=cV,QT=class extends w.Component{constructor(){super(...arguments);mo(this,"rendered",!1)}shouldComponentUpdate(e){return!qH(e,this.props)}componentDidUpdate(){this.emitChange()}componentWillUnmount(){const{helmetInstances:e}=this.props.context;e.remove(this),this.emitChange()}emitChange(){const{helmetInstances:e,setHelmet:r}=this.props.context;let n=null;const s=ZH(e.get().map(i=>{const o={...i.props};return delete o.context,o}));XO.canUseDOM?uV(s):Ew&&(n=Ew(s)),r(n)}init(){if(this.rendered)return;this.rendered=!0;const{helmetInstances:e}=this.props.context;e.add(this),this.emitChange()}render(){return this.init(),null}},hy,Un=(hy=class extends w.Component{shouldComponentUpdate(t){return!UH(YT(this.props,"helmetData"),YT(t,"helmetData"))}mapNestedChildrenToProps(t,e){if(!e)return null;switch(t.type){case"script":case"noscript":return{innerHTML:e};case"style":return{cssText:e};default:throw new Error(`<${t.type} /> elements are self-closing and can not contain children. Refer to our API for more information.`)}}flattenArrayTypeChildren(t,e,r,n){return{...e,[t.type]:[...e[t.type]||[],{...r,...this.mapNestedChildrenToProps(t,n)}]}}mapObjectTypeChildren(t,e,r,n){switch(t.type){case"title":return{...e,[t.type]:n,titleAttributes:{...r}};case"body":return{...e,bodyAttributes:{...r}};case"html":return{...e,htmlAttributes:{...r}};default:return{...e,[t.type]:{...r}}}}mapArrayTypeChildrenToProps(t,e){let r={...e};return Object.keys(t).forEach(n=>{r={...r,[n]:t[n]}}),r}warnOnInvalidChildren(t,e){return KT(XT.some(r=>t.type===r),typeof t.type=="function"?"You may be attempting to nest <Helmet> components within each other, which is not allowed. Refer to our API for more information.":`Only elements types ${XT.join(", ")} are allowed. Helmet does not support rendering <${t.type}> elements. Refer to our API for more information.`),KT(!e||typeof e=="string"||Array.isArray(e)&&!e.some(r=>typeof r!="string"),`Helmet expects a string as a child of <${t.type}>. Did you forget to wrap your children in braces? ( <${t.type}>{\`\`}</${t.type}> ) Refer to our API for more information.`),!0}mapChildrenToProps(t,e){let r={};return de.Children.forEach(t,n=>{if(!n||!n.props)return;const{children:s,...i}=n.props,o=Object.keys(i).reduce((l,u)=>(l[GH[u]||u]=i[u],l),{});let{type:a}=n;
633switch(typeof a=="symbol"?a=a.toString():this.warnOnInvalidChildren(n,s),a){case"Symbol(react.fragment)":e=this.mapChildrenToProps(s,e);break;case"link":case"meta":case"noscript":case"script":case"style":r=this.flattenArrayTypeChildren(n,r,o,s);break;default:e=this.mapObjectTypeChildren(n,e,o,s);break}}),this.mapArrayTypeChildrenToProps(r,e)}render(){const{children:t,...e}=this.props;let r={...e},{helmetData:n}=e;if(t&&(r=this.mapChildrenToProps(t,r)),n&&!(n instanceof Tw)){const s=n;n=new Tw(s.context,!0),delete r.helmetData}return n?de.createElement(QT,{...r,context:n.value}):de.createElement(KO.Consumer,null,s=>de.createElement(QT,{...r,context:s}))}},mo(hy,"defaultProps",{defer:!0,encodeSpecialCharacters:!0,prioritizeSeoTags:!1}),hy);const dV=fx("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),fe=w.forwardRef(({className:t,variant:e,size:r,asChild:n=!1,...s},i)=>{const o=n?AB:"button";return c.jsx(o,{className:Ke(dV({variant:e,size:r,className:t})),ref:i,...s})});fe.displayName="Button";const ZT=`http://wa.me/558005914353?text=${encodeURIComponent("Olá! Gostaria de falar com um especialista da CS Finance.")}`,eC=[{to:"/credito-imobiliario",label:"Crédito Imobiliário"},{to:"/cs-consignado",label:"CS Consignado"},{to:"/cs-risco-sacado",label:"CS Risco Sacado"},{to:"/contact",label:"Atendimento"}],Go=()=>{const[t,e]=w.useState(!1),r=()=>e(!t);return c.jsx("header",{className:"fixed top-0 left-0 right-0 z-50 bg-white/95 backdrop-blur-md border-b border-border/60 shadow-sm",children:c.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[c.jsxs("div",{className:"flex items-center justify-between h-16 md:h-20",children:[c.jsx(is,{to:"/",className:"flex items-center shrink-0",children:c.jsx("img",{src:"/lovable-uploads/logo-cs-finance.png",alt:"CS Finance - Banco digital, crédito e soluções financeiras",className:"h-10 md:h-14 w-auto transition-transform hover:scale-105",width:"200",height:"64",loading:"eager"})}),c.jsx("nav",{className:"hidden lg:flex items-center gap-7",children:eC.map(n=>c.jsxs(is,{to:n.to,className:"text-cs-primary hover:text-cs-secondary font-medium text-sm tracking-wide transition-all duration-200 relative group",children:[n.label,c.jsx("span",{className:"absolute -bottom-1 left-0 w-0 h-0.5 bg-cs-secondary transition-all duration-200 group-hover:w-full"})]},n.to))}),c.jsxs("div",{className:"hidden lg:flex items-center gap-3",children:[c.jsx(fe,{asChild:!0,variant:"outline",className:"border-cs-secondary text-cs-secondary hover:bg-cs-secondary hover:text-white rounded-full font-medium px-5",children:c.jsxs("a",{href:ZT,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-2",children:[c.jsx(Ys,{className:"w-4 h-4"}),"WhatsApp"]})}),c.jsx(fe,{asChild:!0,className:"bg-cs-primary hover:bg-cs-primary/90 text-white px-6 rounded-full font-medium text-sm transition-all duration-200 hover:shadow-lg",children:c.jsx("a",{href:"https://csbank.idez.com.br/login",target:"_blank",rel:"noopener noreferrer",children:"Acessar conta"})})]}),c.jsx(fe,{variant:"ghost",size:"icon",onClick:r,"aria-label":"Abrir menu",className:"lg:hidden hover:bg-cs-primary/10 transition-colors duration-200",children:t?c.jsx(tc,{
633className:"w-6 h-6 text-cs-primary"}):c.jsx(DR,{className:"w-6 h-6 text-cs-primary"})})]}),t&&c.jsx("div",{className:"lg:hidden absolute top-16 md:top-20 left-0 right-0 bg-white border-b border-border shadow-lg animate-in slide-in-from-top-2 duration-200 z-40",children:c.jsxs("nav",{className:"flex flex-col p-5 space-y-1",children:[eC.map(n=>c.jsx(is,{to:n.to,className:"text-cs-primary hover:text-cs-secondary font-medium py-3 px-4 rounded-lg hover:bg-cs-secondary/5 transition-all duration-200",onClick:()=>e(!1),children:n.label},n.to)),c.jsxs("div",{className:"flex flex-col gap-3 pt-4",children:[c.jsx(fe,{asChild:!0,variant:"outline",className:"border-cs-secondary text-cs-secondary hover:bg-cs-secondary hover:text-white w-full py-3 rounded-lg font-medium",children:c.jsxs("a",{href:ZT,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center justify-center gap-2",children:[c.jsx(Ys,{className:"w-4 h-4"}),"Falar no WhatsApp"]})}),c.jsx(fe,{asChild:!0,className:"bg-cs-primary hover:bg-cs-primary/90 text-white w-full py-3 rounded-lg font-medium",children:c.jsx("a",{href:"https://csbank.idez.com.br/login",target:"_blank",rel:"noopener noreferrer",children:"Acessar conta"})})]})]})})]})})},fV=`http://wa.me/558005914353?text=${encodeURIComponent("Olá! Gostaria de falar com um especialista da CS Finance.")}`,hV=[{icon:yx,label:"100% digital"},{icon:NR,label:"Atendimento humano"},{icon:wd,label:"Crédito consciente"},{icon:T7,label:"Soluções PF e PJ"}],pV=()=>c.jsxs("section",{className:"relative flex items-center justify-center pt-24 md:pt-28 pb-16 md:pb-24 overflow-hidden",style:{background:"var(--gradient-hero)"},children:[c.jsx("div",{className:"pointer-events-none absolute -top-32 -right-24 w-96 h-96 rounded-full bg-cs-secondary/20 blur-3xl"}),c.jsx("div",{className:"pointer-events-none absolute -bottom-32 -left-24 w-96 h-96 rounded-full bg-cs-accent/10 blur-3xl"}),c.jsx("div",{className:"relative max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 text-center text-cs-text-light",children:c.jsxs("div",{className:"max-w-4xl mx-auto",children:[c.jsx("span",{className:"inline-flex items-center gap-2 rounded-full bg-white/10 border border-white/15 px-4 py-1.5 text-sm text-cs-text-light/90 mb-6",children:"Soluções financeiras, crédito e banco digital"}),c.jsxs("h1",{className:"text-3xl sm:text-4xl md:text-5xl lg:text-6xl font-bold mb-5 leading-tight",children:["Banco digital, crédito e soluções financeiras com"," ",c.jsx("span",{className:"text-cs-secondary",children:"atendimento humano"})]}),c.jsx("p",{className:"text-base sm:text-lg md:text-xl mb-8 text-cs-text-light/80 font-light max-w-3xl mx-auto",children:"Conta digital, cartão, crédito, financiamentos e soluções para pessoas e empresas, com mais transparência, menos burocracia e suporte real quando você precisar."}),c.jsxs("div",{className:"flex flex-col sm:flex-row gap-3 sm:gap-4 justify-center items-stretch sm:items-center",children:[c.jsx(fe,{asChild:!0,size:"lg",className:"bg-cs-accent hover:bg-cs-accent/90 text-white font-semibold px-8 py-4 text-base sm:text-lg shadow-lg",children:c.jsxs("a",{href:fV,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center justify-center gap-2",children:[c.jsx(Ys,{className:"w-5 h-5"}),"Falar com especialista"]})}),c.jsx(fe,{asChild:!0,size:"lg",variant:"outline",className:"border-white/30 bg-white/5 text-white hover:bg-white hover:text-cs-primary font-medium px-8 py-4 text-base sm:text-lg",children:c.jsxs("a",{href:"#servicos",className:"inline-flex items-center justify-center gap-2",children:["Conhecer soluções",c.jsx(hx,{className:"w-5 h-5"})]})})]}),c.jsx("div",{className:"mt-10 grid grid-cols-2 md:grid-cols-4 gap-3 sm:gap-4 max-w-3xl mx-auto",children:hV.map(t=>c.jsxs("div",{className:"flex items-center gap-2.5 rounded-xl bg-white/5 border border-white/10 px-3 py-3 backdrop-blur-sm",children:[c.jsx("span",{className:"flex items-center justify-center w-9 h-9 rounded-lg bg-cs-secondary/15 text-cs-secondary shrink-0",children:c.jsx(t.icon,{className:"w-5 h-5"})}),c.jsx("span",{className:"text-sm font-medium text-cs-text-light text-left",children:t.label})]},t.label))})]})})]}
633),mV=[{icon:yx,title:"Transparência",description:"Sem taxas escondidas e com comunicação clara."},{icon:NR,title:"Atendimento humano",description:"Suporte real para orientar sua decisão."},{icon:w0,title:"Agilidade responsável",description:"Processos mais práticos, sempre sujeitos à análise."},{icon:wd,title:"Crédito consciente",description:"Soluções adequadas ao seu perfil e objetivo."}],gV=()=>c.jsx("section",{className:"cs-section bg-cs-ice",children:c.jsxs("div",{className:"max-w-6xl mx-auto",children:[c.jsxs("div",{className:"text-center max-w-2xl mx-auto mb-10 md:mb-14",children:[c.jsx("h2",{className:"text-3xl sm:text-4xl font-bold text-cs-primary mb-4",children:"Por que escolher o CS Finance?"}),c.jsx("p",{className:"text-lg text-muted-foreground",children:"Tecnologia bancária com atendimento próximo, do primeiro contato à decisão."})]}),c.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-5 md:gap-6",children:mV.map(t=>c.jsxs("div",{className:"bg-white rounded-xl p-6 border border-border hover:border-cs-secondary/40 hover:shadow-lg transition-all duration-300",children:[c.jsx("span",{className:"flex items-center justify-center w-12 h-12 rounded-xl bg-cs-secondary/10 text-cs-secondary mb-4",children:c.jsx(t.icon,{className:"w-6 h-6"})}),c.jsx("h3",{className:"font-semibold text-cs-primary text-lg mb-2",children:t.title}),c.jsx("p",{className:"text-sm text-muted-foreground leading-relaxed",children:t.description})]},t.title))})]})}),xV=()=>c.jsx("section",{className:"cs-section",children:c.jsx("div",{className:"max-w-6xl mx-auto",children:c.jsxs("div",{className:"grid lg:grid-cols-2 gap-10 lg:gap-14 items-center",children:[c.jsxs("div",{children:[c.jsx("h2",{className:"text-3xl sm:text-4xl font-bold text-cs-primary mb-6",children:"Sobre nós"}),c.jsxs("div",{className:"space-y-4 text-muted-foreground text-base md:text-lg max-w-prose leading-relaxed",children:[c.jsx("p",{children:"A CS Finance nasceu para simplificar a relação entre pessoas, empresas e soluções financeiras."}),c.jsx("p",{children:"Unimos tecnologia, atendimento humano e crédito consciente para oferecer uma experiência mais clara, prática e transparente."})]}),c.jsxs("div",{className:"mt-8 grid grid-cols-2 gap-6 max-w-sm",children:[c.jsxs("div",{children:[c.jsx("div",{className:"text-3xl font-bold text-cs-secondary mb-1",children:"100%"}),c.jsx("div",{className:"text-sm text-muted-foreground",children:"Digital"})]}),c.jsxs("div",{children:[c.jsx("div",{className:"text-3xl font-bold text-cs-secondary mb-1",children:"0"}),c.jsx("div",{className:"text-sm text-muted-foreground",children:"Taxas escondidas"})]})]})]}),c.jsx("div",{children:c.jsx("img",{src:"/lovable-uploads/corporate-home.jpg",alt:"Ambiente corporativo moderno da CS Finance, instituição financeira digital e transparente",className:"w-full h-full object-cover rounded-2xl shadow-lg hover:shadow-xl transition-shadow duration-300",loading:"lazy",width:"600",height:"400"})})]})})}),vV=[{icon:LR,title:"Conta Digital",description:"Conta completa para o seu dia a dia, prática e sem burocracia."},{icon:E7,title:"PIX e Transferências",description:"Envie e receba em segundos, quando você precisar."},{icon:z2,title:"Cartão Virtual",description:"Cartão prático e seguro para compras online."},{icon:wx,title:"Pagamentos e Recargas",description:"Boletos, contas e recargas em poucos cliques."},{icon:wd,title:"Empréstimos e Consignado",description:"Crédito com condições claras e sem armadilhas."},{icon:W7,title:"Crédito Saúde",description:"Parcele consultas, exames e procedimentos com facilidade."},{icon:mx,title:"Crédito Imobiliário",description:"Para comprar, construir ou investir com clareza."},{icon:U2,title:"Crédito com Garantia de Imóvel",description:"Capital com taxas reduzidas e prazos estendidos."},{icon:wR,title:"Financiamento de Veículos",description:"Compre ou troque seu veículo com segurança."},{icon:N7,title:"Assinatura de Veículos",description:"Dirija sem comprar, com planos mensais flexíveis."},{icon:B2,title:"Soluções Empresariais",description:"Estrutura financeira sob medida para o seu negócio."},{icon:kR,title:"Clube de Benefícios",description:"Vantagens e descontos exclusivos para clientes."}],yV=()=>c.jsx("section",{id:"servicos",className:"cs-section scroll-mt-24",children:c.jsxs("div",{className:"max-w-6xl mx-auto",children:[c.jsxs("div",{className:"text-center max-w-2xl mx-auto mb-10 md:mb-14",children:[c.jsx("h2",{className:"text-3xl sm:text-4xl font-bold text-cs-primary mb-4",children:"Nossos serviços"}),c.jsx("p",{className:"text-lg text-muted-foreground",children:"Soluções completas para pessoas e empresas, num só lugar."})]}),c.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-5 md:gap-6",children:vV.map(t=>c.jsxs("div",{className:"group bg-white rounded-xl p-6 border border-border hover:border-cs-secondary/40 hover:shadow-lg transition-all duration-300",children:[c.jsx("span",{className:"flex items-center justify-center w-12 h-12 rounded-xl bg-cs-secondary/10 text-cs-secondary mb-4 group-hover:bg-cs-secondary group-hover:text-white transition-colors duration-300",children:c.jsx(t.icon,{className:"w-6 h-6"})}),c.jsx("h3",{className:"text-lg font-semibold text-cs-primary mb-2",children:t.title}),c.jsx("p",{className:"text-muted-foreground text-sm leading-relaxed",children:t.description})]},t.title))})]})}),wV=[{icon:xR,label:"R$ 50 mil a R$ 15 milhões por imóvel"},{icon:$2,label:"Até 240 meses"},{icon:yR,label:"Aquisição, construção ou investimento"},{icon:$o,label:"Atendimento consultivo"}],bV=()=>c.jsx("section",{className:"cs-section text-cs-text-light",style:{background:"var(--gradient-dark)"},children:c.jsx("div",{className:"max-w-6xl mx-auto",children:c.jsxs("div",{className:"grid lg:grid-cols-2 gap-10 lg:gap-14 items-center",children:[c.jsxs("div",{children:[c.jsx("span",{className:"text-cs-secondary font-semibold uppercase tracking-wide text-sm",children:"Crédito Imobiliário"}),c.jsx("h2",{className:"text-3xl sm:text-4xl font-bold mt-3 mb-5 leading-tight",children:"Crédito imobiliário para comprar, construir ou investir com mais clareza"}),c.jsx("p",{className:"text-cs-text-light/80 text-base md:text-lg mb-8 max-w-prose leading-relaxed",children:"Conte com atendimento consultivo para entender possibilidades, documentos e próximos passos. Valores de R$ 50 mil a R$ 15 milhões por imóvel, com prazo de até 240 meses, conforme análise."}),c.jsx(fe,{asChild:!0,className:"bg-cs-accent hover:bg-cs-accent/90 text-white font-semibold px-7 py-6 rounded-full text-base",children:c.jsxs(is,{to:"/credito-imobiliario",className:"inline-flex items-center gap-2",children:["Conhecer crédito imobiliário",c.jsx(hx,{className:"w-4 h-4"})]})}),c.jsx("p",{className:"text-xs text-cs-text-muted mt-5 max-w-md",children:"Sujeito à análise de crédito, documentação, perfil do cliente, imóvel e condições comerciais."})]}),c.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:wV.map(t=>c.jsxs("div",{className:"rounded-xl p-5 border border-white/10 bg-white/5 backdrop-blur-sm hover:border-cs-secondary/50 transition-colors duration-300",children:[c.jsx("span",{className:"flex items-center justify-center w-11 h-11 rounded-lg bg-cs-secondary/15 text-cs-secondary mb-4",children:c.jsx(t.icon,{className:"w-5 h-5"})}),c.jsx("p",{className:"font-medium text-cs-text-light leading-snug",children:t.label})]},t.label))})]})})}),SV=()=>{const t=[{icon:c.jsx(mx,{className:"w-6 h-6"}),title:"Crédito com Garantia de Imóveis",description:"Ideal para quem precisa de capital com taxas reduzidas e prazos estendidos."},{icon:c.jsx(U2,{className:"w-6 h-6"}),title:"Financiamento Imobiliário",description:"Realize o sonho do imóvel próprio com condições acessíveis."},{icon:c.jsx(wR,{className:"w-6 h-6"}),title:"Financiamento de Veículos",description:"Troque ou compre seu carro com facilidade e segurança."},{icon:c.jsx(Ju,{className:"w-6 h-6"}),title:"Assinatura de Veículos",description:"Uma nova forma de dirigir sem precisar comprar. Planos mensais e personalizados."}];return c.jsx("section",{className:"cs-section bg-muted/30",children:c.jsxs("div",{className:"max-w-6xl mx-auto",children:[c.jsxs("div",{className:"text-center mb-12",children:[c.jsx("h2",{className:"text-3xl sm:text-4xl font-bold text-cs-primary mb-4",children:"Créditos & Financiamentos"}),c.jsx("p",{className:"text-lg text-muted-foreground max-w-3xl mx-auto",children:"Soluções completas de crédito e financiamento para realizar seus objetivos."})]}),c.jsx("div",{className:"grid md:grid-cols-2 gap-6 mb-8",children:t.map((e,r)=>c.jsxs("div",{className:"bg-white p-6 rounded-xl shadow-sm border border-border hover:shadow-md transition-shadow duration-300",children:[c.jsx("div",{className:"bg-cs-primary/10 p-3 rounded-lg inline-flex mb-4",children:c.jsx("div",{className:"text-cs-primary",children:e.icon})}),c.jsx("h3",{className:"font-semibold text-cs-primary text-lg mb-2",children:e.title}),c.jsx("p",{className:"text-muted-foreground",children:e.description})]},r))}),c.jsx("div",{className:"text-center",children:c.jsx(fe,{asChild:!0,className:"btn-primary",children:c.jsxs("a",{href:"http://wa.me/558005914353?text=Olá! Gostaria de saber mais sobre os produtos de crédito e financiamento.",target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center",children:["Consultar Especialistas",c.jsx(hx,{className:"w-4 h-4 ml-2"})]})})})]})})},_V=`http://wa.me/558005914353?text=${encodeURIComponent("Olá! Gostaria de falar sobre soluções empresariais da CS Finance.")}`,EV=[{title:"Conta digital empresarial",icon:Ju},{title:"Cartão virtual empresarial",icon:z2},{title:"Folha de pagamento simplificada",icon:$o},{title:"Capital de giro",icon:C7},{title:"Gestão financeira empresarial",icon:B2},{title:"Maquininhas",icon:u$},{title:"Crédito sob medida",icon:wd}],TV=()=>c.jsx("section",{className:"cs-section bg-cs-ice",children:c.jsxs("div",{className:"max-w-6xl mx-auto",children:[c.jsxs("div",{className:"text-center max-w-3xl mx-auto mb-10 md:mb-14",children:[c.jsxs("div",{className:"inline-flex items-center gap-2 mb-4",children:[c.jsx(B2,{className:"w-6 h-6 text-cs-accent"}),c.jsx("span",{className:"text-cs-accent font-semibold uppercase tracking-wide text-sm",children:"Para empresários"})]}),c.jsx("h2",{className:"text-3xl sm:text-4xl font-bold text-cs-primary mb-4",children:"Soluções financeiras para o seu negócio crescer sem complicar a operação"}),c.jsx("p",{className:"text-lg text-muted-foreground",children:"Uma estrutura financeira moderna e sob medida para a sua empresa."})]}),c.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-5 md:gap-6 mb-10",children:EV.map(t=>c.jsxs("div",{className:"group flex items-center gap-4 bg-white rounded-xl p-5 border border-border hover:border-cs-secondary/40 hover:shadow-lg transition-all duration-300",children:[c.jsx("span",{className:"flex items-center justify-center w-11 h-11 rounded-lg bg-cs-secondary/10 text-cs-secondary shrink-0 group-hover:bg-cs-secondary group-hover:text-white transition-colors duration-300",children:c.jsx(t.icon,{className:"w-5 h-5"})}),c.jsx("h3",{className:"font-semibold text-cs-primary",children:t.title})]},t.title))}),c.jsx("div",{className:"text-center",children:c.jsx(fe,{asChild:!0,className:"bg-cs-secondary hover:bg-cs-secondary/90 text-white font-semibold px-8 py-6 rounded-full text-base",children:c.jsxs("a",{href:_V,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-2",children:["Falar sobre soluções empresariais",c.jsx(hx,{className:"w-4 h-4"})]})})})]})}),CV=()=>{const t=["Magalu","Cinemark","Evino","iFood","Uber","Netshoes","Americanas","Shoptime","Magazine Luiza","Casas Bahia"];return c.jsx("section",{className:"cs-section bg-white",children:c.jsxs("div",{className:"max-w-6xl mx-auto text-center",children:[c.jsxs("div",{className:"mb-10 md:mb-12",children:[c.jsxs("div",{className:"inline-flex items-center gap-2 mb-4",children:[c.jsx(kR,{className:"w-6 h-6 text-cs-accent"}),c.jsx("span",{className:"text-cs-accent font-semibold uppercase tracking-wide text-sm",children:"Clube exclusivo"})]}),c.jsx("h2",{className:"text-3xl sm:text-4xl font-bold text-cs-primary mb-4",children:"Clube de Benefícios CS Finance"}),c.jsx("p",{className:"text-lg text-muted-foreground max-w-2xl mx-auto",children:"Ser cliente é também economizar no que você já consome, com descontos e vantagens em grandes marcas."})]}),c.jsx("div",{className:"bg-cs-ice rounded-2xl p-6 sm:p-10 border border-border mb-6",children:c.jsxs("div",{className:"flex flex-wrap justify-center gap-3",children:[t.map(e=>c.jsx("div",{className:"bg-white px-4 py-2 rounded-full shadow-sm border border-border hover:border-cs-secondary/40 hover:shadow-md transition-all duration-300",children:c.jsx("span",{className:"font-medium text-cs-primary text-sm",children:e})},e)),c.jsx("div",{className:"bg-cs-accent text-white px-4 py-2 rounded-full font-medium text-sm",children:"e muito mais"})]})}),c.jsx("p",{className:"text-sm text-muted-foreground",children:"Benefícios exclusivos para clientes. Condições e parceiros podem variar."})]})})},kV=()=>c.jsx("section",{className:"cs-section bg-cs-ice",children:c.jsxs("div",{className:"max-w-4xl mx-auto",children:[c.jsxs("div",{className:"text-center mb-10 md:mb-12",children:[c.jsx("span",{className:"text-cs-accent font-semibold uppercase tracking-wide text-sm",children:"Prova social"}),c.jsx("h2",{className:"text-3xl sm:text-4xl font-bold text-cs-primary mt-3",children:"Quem é cliente, recomenda"})]}),c.jsxs("figure",{className:"bg-white rounded-2xl p-7 sm:p-10 shadow-lg border border-border relative",children:[c.jsx(r$,{className:"w-12 h-12 text-cs-secondary/15 absolute top-6 right-6"}),c.jsx("div",{className:"flex gap-1 mb-5 text-cs-accent",children:Array.from({length:5}).map((t,e)=>c.jsx(ep,{className:"w-5 h-5 fill-cs-accent"},e))}),c.jsx("blockquote",{className:"text-base sm:text-lg text-cs-primary/90 leading-relaxed mb-8 relative z-10",children:'"Como todo empresário, já passei por quase todas as máquinas do mercado. Sempre os mesmos problemas: taxas diferentes do combinado e atrasos nos pagamentos. Resolvi experimentar a maquininha do CS Finance, afinal não tinha custo nem fidelidade. Foi uma bela surpresa. Taxas reais conforme combinado, pagamentos pontuais e um atendimento cordial sempre que preciso."'}),c.jsxs("figcaption",{className:"flex items-center gap-4",children:[c.jsx("div",{className:"w-14 h-14 roun
633ded-full overflow-hidden shrink-0 ring-2 ring-cs-secondary/20",children:c.jsx("img",{src:"/lovable-uploads/1c787537-15ae-4b5f-b984-c7ae8675e947.png",alt:"Foto de Júlio Antônio, proprietário dos Restaurantes do Pingo e cliente PJ do CS Finance",className:"w-full h-full object-cover",loading:"lazy",width:"56",height:"56"})}),c.jsxs("div",{children:[c.jsx("p",{className:"font-semibold text-cs-primary",children:"Júlio Antônio"}),c.jsx("p",{className:"text-cs-secondary font-medium text-sm",children:"Restaurantes do Pingo"}),c.jsx("p",{className:"text-xs text-muted-foreground",children:"Cliente PJ"})]})]})]})]})}),NV=()=>{const t=[{title:"Transparência em cada produto",icon:c.jsx(io,{className:"w-8 h-8"}),description:"Sem taxas escondidas ou surpresas desagradáveis"},{title:"Crédito consciente, sem empurrar dívidas",icon:c.jsx(q7,{className:"w-8 h-8"}),description:"Oferecemos apenas o que realmente faz sentido para você"},{title:"Atendimento humano e resolutivo",icon:c.jsx($o,{className:"w-8 h-8"}),description:"Suporte real, com pessoas reais quando você precisar"},{title:"Educação financeira como parte da sua jornada",icon:c.jsx(z7,{className:"w-8 h-8"}),description:"Te ajudamos a tomar decisões financeiras mais inteligentes"}];return c.jsx("section",{className:"cs-section bg-white",children:c.jsxs("div",{className:"max-w-7xl mx-auto",children:[c.jsx("div",{className:"text-center mb-16",children:c.jsx("h2",{className:"text-3xl sm:text-4xl lg:text-5xl font-bold text-cs-primary mb-6",children:"Nossa promessa para você"})}),c.jsx("div",{className:"grid md:grid-cols-2 gap-8 mb-12",children:t.map((e,r)=>c.jsx("div",{className:"cs-card group hover:shadow-xl hover:border-cs-secondary/30 transition-all duration-300",children:c.jsxs("div",{className:"flex items-start gap-4",children:[c.jsx("div",{className:"p-3 bg-cs-secondary/10 rounded-full text-cs-secondary group-hover:bg-cs-secondary group-hover:text-white transition-all duration-300",children:e.icon}),c.jsxs("div",{className:"flex-1",children:[c.jsx("h3",{className:"text-xl font-semibold text-cs-primary mb-3",children:e.title}),c.jsx("p",{className:"text-muted-foreground",children:e.description})]})]})},r))}),c.jsxs("div",{className:"text-center bg-gradient-to-r from-cs-primary/5 to-cs-secondary/5 p-8 rounded-2xl",children:[c.jsx("p",{className:"text-2xl font-bold text-cs-primary mb-2",children:"👉 No CS Finance, você não é apenas um número."}),c.jsx("p",{className:"text-xl text-cs-secondary font-semibold",children:"Você é um parceiro."})]})]})})},AV=[{icon:Ys,title:"Você chama no WhatsApp",description:"O primeiro contato é simples e direto."},{icon:V2,title:"A equipe entende sua necessidade",description:"Ouvimos o seu objetivo e o seu momento."},{icon:RR,title:"Indicamos a solução adequada",description:"Apresentamos o caminho que faz sentido para você."},{icon:M7,title:"Fazemos a análise necessária",description:"Avaliação de crédito, documentação e condições."},{icon:B7,title:"Acompanhamos os próximos passos",description:"Suporte real até a conclusão."}],jV=()=>c.jsx("section",{className:"cs-section bg-cs-ice",children:c.jsxs("div",{className:"max-w-6xl mx-auto",children:[c.jsxs("div",{className:"text-center max-w-2xl mx-auto mb-10 md:mb-14",children:[c.jsx("span",{className:"text-cs-accent font-semibold uppercase tracking-wide text-sm",children:"Passo a passo"}),c.jsx("h2",{className:"text-3xl sm:text-4xl font-bold text-cs-primary mt-3",children:"Como funciona o atendimento"})]}),c.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-5 gap-5 md:gap-6",children:AV.map((t,e)=>c.jsxs("div",{className:"relative bg-white rounded-xl p-6 border border-border hover:shadow-lg transition-all duration-300",children:[c.jsx("span",{className:"absolute top-4 right-4 text-3xl font-bold text-cs-secondary/15",children:e+1}),c.jsx("span",{className:"flex items-center justify-center w-12 h-12 rounded-xl bg-cs-secondary/10 text-cs-secondary mb-4",children:c.jsx(t.icon,{className:"w-6 h-6"})}),c.jsx("h3",{className:"font-semibold text-cs-primary mb-2 leading-snug",children:t.title}),c.jsx("p",{className:"text-sm text-muted-foreground leading-relaxed",children:t.description})]},t.title))})]})});var jx="Collapsible",[RV,YO]=Rs(jx),[OV,dS]=RV(jx),JO=w.forwardRef((t,e)=>{const{__scopeCollapsible:r,open:n,defaultOpen:s,disabled:i,onOpenChange:o,...a}=t,[l,u]=so({prop:n,defaultProp:s??!1,onChange:o,caller:jx});return c.jsx(OV,{scope:r,disabled:i,contentId:Oi(),open:l,onOpenToggle:w.useCallback(()=>u(d=>!d),[u]),children:c.jsx(Ue.div,{"data-state":hS(l),"data-disabled":i?"":void 0,...a,ref:e})})});JO.displayName=jx;var QO="CollapsibleTrigger",ZO=w.forwardRef((t,e)=>{const{__scopeCollapsible:r,...n}=t,s=dS(QO,r);return c.jsx(Ue.button,{type:"button","aria-controls":s.contentId,"aria-expanded":s.open||!1,"data-state":hS(s.open),"data-disabled":s.disabled?"":void 0,disabled:s.disabled,...n,ref:e,onClick:Ce(t.onClick,s.onOpenToggle)})});ZO.displayName=QO;var fS="CollapsibleContent",eP=w.forwardRef((t,e)=>{const{forceMount:r,...n}=t,s=dS(fS,t.__scopeCollapsible);return c.jsx(Nn,{present:r||s.open,children:({present:i})=>c.jsx(PV,{...n,ref:e,present:i})})});eP.displayName=fS;var PV=w.forwardRef((t,e)=>{const{__scopeCollapsible:r,present:n,children:s,...i}=t,o=dS(fS,r),[a,l]=w.useState(n),u=w.useRef(null),d=ot(e,u),f=w.useRef(0),h=f.current,p=w.useRef(0),g=p.current,m=o.open||a,x=w.useRef(m),v=w.useRef(void 0);return w.useEffect(()=>{const y=requestAnimationFrame(()=>x.current=!1);return()=>cancelAnimationFrame(y)},[]),zr(()=>{const y=u.current;if(y){v.current=v.current||{transitionDuration:y.style.transitionDuration,animationName:y.style.animationName},y.style.transitionDuration="0s",y.style.animationName="none";const b=y.getBoundingClientRect();f.current=b.height,p.current=b.width,x.current||(y.style.transitionDuration=v.current.transitionDuration,y.style.animationName=v.current.animationName),l(n)}},[o.open,n]),c.jsx(Ue.div,{"data-state":hS(o.open),"data-disabled":o.disabled?"":void 0,id:o.contentId,hidden:!m,...i,ref:d,style:{"--radix-collapsible-content-height":h?`${h}px`:void 0,"--radix-collapsible-content-width":g?`${g}px`:void 0,...t.style},children:m&&s})});function hS(t){return t?"open":"closed"}var MV=JO,IV=ZO,DV=eP,LV=w.createContext(void 0);function sp(t){const e=w.useContext(LV);return t||e||"ltr"}var Li="Accordion",FV=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[pS,BV,$V]=Yh(Li),[Rx,fpe]=Rs(Li,[$V,YO]),mS=YO(),tP=de.forwardRef((t,e)=>{const{type:r,...n}=t,s=n,i=n;return c.jsx(pS.Provider,{scope:t.__scopeAccordion,children:r==="multiple"?
633c.jsx(VV,{...i,ref:e}):c.jsx(HV,{...s,ref:e})})});tP.displayName=Li;var[rP,zV]=Rx(Li),[nP,UV]=Rx(Li,{collapsible:!1}),HV=de.forwardRef((t,e)=>{const{value:r,defaultValue:n,onValueChange:s=()=>{},collapsible:i=!1,...o}=t,[a,l]=so({prop:r,defaultProp:n??"",onChange:s,caller:Li});return c.jsx(rP,{scope:t.__scopeAccordion,value:de.useMemo(()=>a?[a]:[],[a]),onItemOpen:l,onItemClose:de.useCallback(()=>i&&l(""),[i,l]),children:c.jsx(nP,{scope:t.__scopeAccordion,collapsible:i,children:c.jsx(sP,{...o,ref:e})})})}),VV=de.forwardRef((t,e)=>{const{value:r,defaultValue:n,onValueChange:s=()=>{},...i}=t,[o,a]=so({prop:r,defaultProp:n??[],onChange:s,caller:Li}),l=de.useCallback(d=>a((f=[])=>[...f,d]),[a]),u=de.useCallback(d=>a((f=[])=>f.filter(h=>h!==d)),[a]);return c.jsx(rP,{scope:t.__scopeAccordion,value:o,onItemOpen:l,onItemClose:u,children:c.jsx(nP,{scope:t.__scopeAccordion,collapsible:!0,children:c.jsx(sP,{...i,ref:e})})})}),[WV,Ox]=Rx(Li),sP=de.forwardRef((t,e)=>{const{__scopeAccordion:r,disabled:n,dir:s,orientation:i="vertical",...o}=t,a=de.useRef(null),l=ot(a,e),u=BV(r),f=sp(s)==="ltr",h=Ce(t.onKeyDown,p=>{var A;if(!FV.includes(p.key))return;const g=p.target,m=u().filter(N=>{var D;return!((D=N.ref.current)!=null&&D.disabled)}),x=m.findIndex(N=>N.ref.current===g),v=m.length;if(x===-1)return;p.preventDefault();let y=x;const b=0,S=v-1,E=()=>{y=x+1,y>S&&(y=b)},C=()=>{y=x-1,y<b&&(y=S)};switch(p.key){case"Home":y=b;break;case"End":y=S;break;case"ArrowRight":i==="horizontal"&&(f?E():C());break;case"ArrowDown":i==="vertical"&&E();break;case"ArrowLeft":i==="horizontal"&&(f?C():E());break;case"ArrowUp":i==="vertical"&&C();break}const _=y%v;(A=m[_].ref.current)==null||A.focus()});return c.jsx(WV,{scope:r,disabled:n,direction:s,orientation:i,children:c.jsx(pS.Slot,{scope:r,children:c.jsx(Ue.div,{...o,"data-orientation":i,ref:l,onKeyDown:n?void 0:h})})})}),N0="AccordionItem",[qV,gS]=Rx(N0),iP=de.forwardRef((t,e)=>{const{__scopeAccordion:r,value:n,...s}=t,i=Ox(N0,r),o=zV(N0,r),a=mS(r),l=Oi(),u=n&&o.value.includes(n)||!1,d=i.disabled||t.disabled;return c.jsx(qV,{scope:r,open:u,disabled:d,triggerId:l,children:c.jsx(MV,{"data-orientation":i.orientation,"data-state":dP(u),...a,...s,ref:e,disabled:d,open:u,onOpenChange:f=>{f?o.onItemOpen(n):o.onItemClose(n)}})})});iP.displayName=N0;var oP="AccordionHeader",aP=de.forwardRef((t,e)=>{const{__scopeAccordion:r,...n}=t,s=Ox(Li,r),i=gS(oP,r);return c.jsx(Ue.h3,{"data-orientation":s.orientation,"data-state":dP(i.open),"data-disabled":i.disabled?"":void 0,...n,ref:e})});aP.displayName=oP;var kw="AccordionTrigger",lP=de.forwardRef((t,e)=>{const{__scopeAccordion:r,...n}=t,s=Ox(Li,r),i=gS(kw,r),o=UV(kw,r),a=mS(r);return c.jsx(pS.ItemSlot,{scope:r,children:c.jsx(IV,{"aria-disabled":i.open&&!o.collapsible||void 0,"data-orientation":s.orientation,id:i.triggerId,...a,...n,ref:e})})});lP.displayName=kw;var cP="AccordionContent",uP=de.forwardRef((t,e)=>{const{__scopeAccordion:r,...n}=t,s=Ox(Li,r),i=gS(cP,r),o=mS(r);return c.jsx(DV,{role:"region","aria-labelledby":i.triggerId,"data-orientation":s.orientation,...o,...n,ref:e,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...t.style}})});uP.displayName=cP;function dP(t){return t?"open":"closed"}var GV=tP,KV=iP,XV=aP,fP=lP,hP=uP;const xS=GV,Px=w.forwardRef(({className:t,...e},r)=>c.jsx(KV,{ref:r,className:Ke("border-b",t),...e}));Px.displayName="AccordionItem";const Mx=w.forwardRef(({className:t,children:e,...r},n)=>c.jsx(XV,{className:"flex",children:c.jsxs(fP,{ref:n,className:Ke("flex flex-1 items-center justify-between py-4 font-medium transition-all hover:underline [&[data-state=open]>svg]:rotate-180",t),...r,children:[e,c.jsx(Zh,{className:"h-4 w-4 shrink-0 transition-transform duration-200"})]})}));Mx.displayName=fP.displayName;const Ix=w.forwardRef(({className:t,children:e,...r},n)=>c.jsx(hP,{ref:n,className:"overflow-hidden text-sm transition-all data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",...r,children:c.jsx("div",{className:Ke("pb-4 pt-0",t),children:e})}));Ix.displayName=hP.displayName;const YV=()=>{const t=[{question:"Como abrir minha conta?",answer:"Tudo online, em poucos minutos. Basta ter em mãos seus documentos pessoais, fazer o download do nosso app e seguir o passo a passo. Em menos de 5 minutos sua conta estará pronta para usar!"},{question:"Posso fazer e receber PIX normalmente?",answer:"Sim, ilimitado e sem custo. Você pode fazer e receber PIX 24 horas por dia, 7 dias por semana, sem nenhuma cobrança adicional."},{question:"E o cartão, como funciona?",answer:"Você recebe um cartão físico e um virtual, ambos sem anuidade. O cartão virtual fica disponível imediatamente no app, e o físico chega na sua casa em até 7 dias úteis."},{question:"Existe algum custo de manutenção?",answer:"Não! Sua conta CS Finance é 100% gratuita. Sem taxa de abertura, sem mensalidade, sem custo de manutenção. Você só paga pelos serviços que realmente usar."},{question:"Como funciona o atendimento?",answer:"Temos atendimento humano disponível via chat no app, WhatsApp e telefone. Nossa equipe está preparada para resolver suas dúvidas de forma rápida e eficiente."},{question:"Posso usar em qualquer estabelecimento?",answer:"Sim! Nosso cartão tem a bandeira Mastercard e é aceito em milhões de estabelecimentos no Brasil e no mundo, tanto físicos quanto online."},{question:"Os produtos de crédito têm aprovação garantida?",answer:"Não. Todo produto de crédito está sujeito à análise de crédito, documentação, perfil do cliente e condições comerciais disponíveis."},{question:"Como começa o atendimento?",answer:"O atendimento pode começar de forma digital, com orientação da equipe para entender sua necessidade e indicar os próximos passos."}];return c.jsx("section",{className:"cs-section bg-muted/30",children:c.jsxs("div",{className:"max-w-4xl mx-auto",children:[c.jsxs("div",{className:"text-center mb-12",children:[c.jsx("h2",{className:"text-3xl sm:text-4xl font-bold text-cs-primary mb-6",children:"Perguntas Frequentes"}),c.jsx("p",{className:"text-lg text-muted-foreground",children:"Tire suas principais dúvidas sobre o CS Finance"})]}),c.jsx("div",{className:"bg-white rounded-2xl shadow-sm border border-border p-6",children:c.jsx(xS,{type:"single",collapsible:!0,className:"w-full",children:t.map((e,r)=>c.jsxs(Px,{value:`item-${r}`,children:[c.jsx(Mx,{className:"text-left text-cs-primary font-semibold hover:text-cs-secondary",children:e.question}),c.jsx(Ix,{className:"text-muted-foreground pt-2",children:e.answer})]},r))})})]})})},JV=`http://wa.me/558005914353?text=${encodeURIComponent("Olá! Gostaria de falar c
633om a CS Finance sobre soluções financeiras.")}`,QV=()=>c.jsx("section",{className:"cs-section",style:{background:"var(--gradient-cta)"},children:c.jsxs("div",{className:"max-w-4xl mx-auto text-center text-cs-text-light",children:[c.jsx("h2",{className:"text-3xl sm:text-4xl font-bold mb-5",children:"Fale com a CS Finance e encontre a solução financeira certa para o seu momento"}),c.jsx("p",{className:"text-lg mb-9 text-cs-text-light/80 max-w-2xl mx-auto",children:"Conte com uma equipe preparada para orientar sua decisão com clareza, tecnologia e atendimento humano."}),c.jsxs("div",{className:"flex flex-col sm:flex-row gap-3 sm:gap-4 justify-center items-stretch sm:items-center",children:[c.jsx(fe,{asChild:!0,size:"lg",className:"bg-cs-accent hover:bg-cs-accent/90 text-white font-semibold px-8 py-4 text-lg shadow-lg",children:c.jsxs("a",{href:JV,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center justify-center gap-2",children:[c.jsx(Ys,{className:"w-5 h-5"}),"Falar no WhatsApp"]})}),c.jsx(fe,{asChild:!0,size:"lg",variant:"outline",className:"border-white/30 bg-white/5 text-white hover:bg-white hover:text-cs-primary font-medium px-8 py-4 text-lg",children:c.jsxs("a",{href:"https://csbank.idez.com.br/login",target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center justify-center gap-2",children:[c.jsx(Q7,{className:"w-5 h-5"}),"Acessar conta"]})})]})]})}),Ko=()=>c.jsx("footer",{className:"bg-cs-primary text-white py-12",children:c.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[c.jsxs("div",{className:"grid md:grid-cols-5 gap-8",children:[c.jsxs("div",{className:"md:col-span-2",children:[c.jsx("div",{className:"mb-4",children:c.jsx("img",{src:"/lovable-uploads/logo-cs-finance.png",alt:"CS Finance - Logo do banco digital transparente com conta gratuita e empréstimo consignado",className:"h-16 w-auto mb-4 brightness-0 invert",loading:"lazy",width:"200",height:"64"})}),c.jsx("p",{className:"text-white/80 mb-6 max-w-md",children:"O banco digital que nasceu para ser seu parceiro de verdade. Transparente, justo e pensado para o seu dia a dia."}),c.jsxs("div",{className:"space-y-2 text-white/70 text-sm",children:[c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx(wx,{className:"w-4 h-4"}),c.jsx("span",{children:"0800 591 4353"})]}),c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx(Ss,{className:"w-4 h-4"}),c.jsx("span",{children:"[email protected]"})]}),c.jsxs("div",{className:"flex items-start gap-2",children:[c.jsx(IR,{className:"w-4 h-4 mt-0.5"}),c.jsxs("div",{children:[c.jsx("p",{children:"R. Dr. Ribeiro da Luz, 570 – Centro – São Lourenço/MG"}),c.jsx("p",{className:"mt-1",children:"Avenida Sagiário, 138 – Sala 915 – Torre City – Alphaville – Barueri/SP"})]})]})]})]}),c.jsxs("div",{children:[c.jsx("h4",{className:"font-semibold mb-4 text-cs-accent",children:"Links úteis"}),c.jsxs("ul",{className:"space-y-2 text-white/80 text-sm",children:[c.jsx("li",{children:c.jsx("a",{href:"/privacy-policy",className:"hover:text-white transition-colors",children:"Política de privacidade"})}),c.jsx("li",{children:c.jsx("a",{href:"/terms-of-use",className:"hover:text-white transition-colors",children:"Termos de usuário"})}),c.jsx("li",{children:c.jsx("a",{href:"/data-protection",className:"hover:text-white transition-colors",children:"Proteção de dados"})}),c.jsx("li",{children:c.jsx("a",{href:"/faq",className:"hover:text-white transition-colors",children:"Perguntas frequentes"})})]})]}),c.jsxs("div",{children:[c.jsx("h4",{className:"font-semibold mb-4 text-cs-accent",children:"Serviços"}),c.jsxs("ul",{className:"space-y-2 text-white/80 text-sm",children:[c.jsx("li",{children:c.jsx("a",{href:"/#maquininhas",className:"hover:text-white transition-colors",children:"MAQUININHAS"})}),c.jsx("li",{children:c.jsx("a",{href:"/cs-consignado",className:"hover:text-white transition-colors",children:"CS CONSIGNADO"})}),c.jsx("li",{children:c.jsx("a",{href:"/cs-risco-sacado",className:"hover:text-white transition-colors",children:"CS RISCO SACADO"})}),c.jsx("li",{children:c.jsx("a",{href:"/contact",className:"hover:text-white transition-colors",children:"ATENDIMENTO"})}),c.jsx("li",{children:c.jsx("a",{href:"/faq",className:"hover:text-white transition-colors",children:"FAQ"})})]})]}),c.jsxs("div",{children:[c.jsx("h4",{className:"font-semibold mb-4 text-cs-accent",children:"Newsletter"}),c.jsxs("div",{className:"space-y-4",children:[c.jsxs("div",{children:[c.jsx("label",{htmlFor:"email",className:"block text-sm text-white/80 mb-2",children:"Seu Melhor E-mail"}),c.jsx("input",{type:"email",id:"email",className:"w-full px-3 py-2 bg-white/10 border border-white/20 rounded-lg text-white placeholder-white/50 focus:outline-none focus:border-cs-accent",placeholder:"[email protected]"})]}),c.jsxs("div",{className:"flex gap-3",children:[c.jsx("a",{href:"https://www.facebook.com/csfinancebr",target:"_blank",rel:"noopener noreferrer","aria-label":"Facebook CS Finance",className:"text-white/70 hover:text-white transition-colors",children:c.jsx(F7,{className:"w-5 h-5"})}),c.jsx("a",{href:"https://www.instagram.com/csfinancebr",target:"_blank",rel:"noopener noreferrer","aria-label":"Instagram CS Finance",className:"text-white/70 hover:text-white transition-colors",children:c.jsx(X7,{className:"w-5 h-5"})}),c.jsx("a",{href:"https://www.linkedin.com/company/csfinancebr",target:"_blank",rel:"noopener noreferrer","aria-label":"LinkedIn CS Finance",className:"text-white/70 hover:text-white transition-colors",children:c.jsx(J7,{className:"w-5 h-5"})})]})]})]})]}),c.jsxs("div",{className:"border-t border-white/20 mt-8 pt-8 space-y-4",children:[c.jsx("p",{className:"text-white/60 text-xs leading-relaxed max-w-4xl",children:"Produtos financeiros, crédito e condições estão sujeitos à análise, elegibilidade, documentação e disponibilidade 
633comercial."}),c.jsx("p",{className:"text-center text-white/60 text-sm",children:"Copyright © CS FINANCE LTDA 2026. Todos os direitos reservados."})]})]})}),ZV=()=>{const t=()=>{const r=`http://wa.me/558005914353?text=${encodeURIComponent("Olá! Gostaria de falar com o suporte do CS Finance.")}`;window.open(r,"_blank")};return c.jsx(fe,{onClick:t,className:"fixed bottom-6 right-6 w-14 h-14 rounded-full bg-green-500 hover:bg-green-600 text-white shadow-lg hover:shadow-xl transition-all duration-300 hover:scale-110 z-50 flex items-center justify-center animate-pulse","aria-label":"Falar no WhatsApp",children:c.jsx(Ys,{className:"w-7 h-7"})})},eW=()=>c.jsxs(c.Fragment,{children:[c.jsxs(Un,{children:[c.jsx("title",{children:"CS Finance | Banco digital, crédito e soluções financeiras"}),c.jsx("meta",{name:"description",content:"Conta digital, cartão, crédito, financiamentos, soluções empresariais e atendimento humano. Conheça a CS Finance."}),c.jsx("meta",{name:"keywords",content:"banco digital, conta digital, crédito imobiliário, empréstimo consignado, financiamentos, soluções empresariais, atendimento humano, CS Finance"}),c.jsx("link",{rel:"canonical",href:"https://csfinance.app.br/"}),c.jsx("link",{rel:"preconnect",href:"https://fonts.googleapis.com"}),c.jsx("link",{rel:"preconnect",href:"https://gohyovgluliqrltppvoh.supabase.co"}),c.jsx("link",{rel:"dns-prefetch",href:"https://fonts.gstatic.com"}),c.jsx("meta",{property:"og:title",content:"CS Finance - O banco digital que nasceu para ser seu parceiro"}),c.jsx("meta",{property:"og:description",content:"Conta digital gratuita, sem taxas escondidas. PIX ilimitado, cartão sem anuidade, empréstimo consignado e CS Risco Sacado. Transparente e justo."}),c.jsx("meta",{property:"og:url",content:"https://csfinance.app.br/"}),c.jsx("meta",{property:"og:type",content:"website"}),c.jsx("meta",{property:"og:image",content:"https://csfinance.app.br/lovable-uploads/logo-cs-finance.png"}),c.jsx("meta",{name:"twitter:card",content:"summary_large_image"}),c.jsx("meta",{name:"twitter:title",content:"CS Finance - Banco Digital Transparente"}),c.jsx("meta",{name:"twitter:description",content:"Conta gratuita, empréstimo consignado e soluções financeiras sem taxas escondidas."}),c.jsx("meta",{name:"twitter:image",content:"https://csfinance.app.br/lovable-uploads/logo-cs-finance.png"}),c.jsx("script",{type:"application/ld+json",children:JSON.stringify({"@context":"https://schema.org","@type":"FinancialService",name:"CS Finance",url:"https://csfinance.app.br/",logo:"https://csfinance.app.br/lovable-uploads/logo-cs-finance.png",description:"Banco digital transparente com conta gratuita, empréstimo consignado e soluções financeiras sem taxas escondidas",telephone:"+55-800-591-4353",email:"[email protected]",address:[{"@type":"PostalAddress",streetAddress:"R. Dr. Ribeiro da Luz, 570",addressLocality:"São Lourenço",addressRegion:"MG",addressCountry:"BR"},{"@type":"PostalAddress",streetAddress:"Avenida Sagiário, 138, Sala 915",addressLocality:"Barueri",addressRegion:"SP",addressCountry:"BR"}],sameAs:["https://wa.me/558005914353"],priceRange:"Gratuito",areaServed:"BR"})}),c.jsx("script",{type:"application/ld+json",children:JSON.stringify({"@context":"https://schema.org","@type":"BreadcrumbList",itemListElement:[{"@type":"ListItem",position:1,name:"Início",item:"https://csfinance.app.br/"}]})}),c.jsx("script",{type:"application/ld+json",children:JSON.stringify({"@context":"https://schema.org","@type":"WebSite",name:"CS Finance",url:"https://csfinance.app.br/",potentialAction:{"@type":"SearchAction",target:"https://csfinance.app.br/?s={search_term_string}","query-input":"required name=search_term_string"}})})]}),c.jsxs("main",{className:"min-h-screen",children:[c.jsx(Go,{}),c.jsx(pV,{}),c.jsx(gV,{}),c.jsx(xV,{}),c.jsx(yV,{}),c.jsx(bV,{}),c.jsx(SV,{}),c.jsx(TV,{}),c.jsx(CV,{}),c.jsx(kV,{}),c.jsx(NV,{}),c.jsx(jV,{}),c.jsx(YV,{}),c.jsx(QV,{}),c.jsx(Ko,{}),c.jsx(ZV,{})]})]}),tW=()=>{const t={"@context":"https://schema.org","@type":"Service",name:"CS Consignado - Empréstimo Consignado Privado",description:"Empréstimo consignado para colaboradores CLT com desconto direto na folha de pagamento, sem custos para a empresa",provider:{"@type":"Financial
633Service",name:"CS Finance"},areaServed:"BR",hasOfferCatalog:{"@type":"OfferCatalog",name:"Empréstimo Consignado",itemListElement:[{"@type":"Offer",itemOffered:{"@type":"LoanOrCredit",name:"Empréstimo Consignado Privado CLT",description:"Empréstimo com desconto em folha para colaboradores CLT"}}]}};return c.jsxs(c.Fragment,{children:[c.jsxs(Un,{children:[c.jsx("title",{children:"CS Consignado | Empréstimo Consignado Privado CLT com Melhores Taxas"}),c.jsx("meta",{name:"description",content:"Empréstimo consignado para colaboradores CLT. Aprovação em 24h, sem consulta SPC/Serasa, taxas competitivas. Benefício gratuito para sua empresa."}),c.jsx("meta",{name:"keywords",content:"empréstimo consignado privado, crédito consignado CLT, empréstimo colaborador, melhores taxas consignado, crédito folha pagamento"}),c.jsx("link",{rel:"canonical",href:"https://csfinance.app.br/cs-consignado"}),c.jsx("meta",{property:"og:title",content:"CS Consignado - Empréstimo com Melhores Taxas para Colaboradores CLT"}),c.jsx("meta",{property:"og:description",content:"Empréstimo consignado aprovado em 24h com taxas competitivas, sem consulta SPC/Serasa. Benefício gratuito para empresas."}),c.jsx("meta",{property:"og:url",content:"https://csfinance.app.br/cs-consignado"}),c.jsx("meta",{property:"og:type",content:"website"}),c.jsx("meta",{property:"og:image",content:"https://csfinance.app.br/lovable-uploads/corporate-home.jpg"}),c.jsx("meta",{property:"twitter:card",content:"summary_large_image"}),c.jsx("meta",{property:"twitter:image",content:"https://csfinance.app.br/lovable-uploads/corporate-home.jpg"}),c.jsx("script",{type:"application/ld+json",children:JSON.stringify(t)}),c.jsx("script",{type:"application/ld+json",children:JSON.stringify({"@context":"https://schema.org","@type":"BreadcrumbList",itemListElement:[{"@type":"ListItem",position:1,name:"Início",item:"https://csfinance.app.br/"},{"@type":"ListItem",position:2,name:"CS Consignado",item:"https://csfinance.app.br/cs-consignado"}]})})]}),c.jsxs("div",{className:"min-h-screen bg-background",children:[c.jsx(Go,{}),c.jsx("section",{className:"text-white py-16 md:py-20 pt-28 md:pt-32",style:{background:"var(--gradient-hero)"},children:c.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[c.jsx("div",{className:"mb-6",children:c.jsx(fe,{asChild:!0,variant:"ghost",className:"text-white hover:bg-white/10 mb-4",children:c.jsxs(is,{to:"/",className:"flex items-center gap-2",children:[c.jsx(Os,{className:"w-4 h-4"}),"Voltar ao início"]})})}),c.jsxs("div",{className:"text-center",children:[c.jsx("h1",{className:"text-3xl sm:text-4xl md:text-5xl font-bold mb-5",children:"CS Consignado"}),c.jsx("p",{className:"text-lg md:text-xl mb-8 max-w-3xl mx-auto text-white/80",children:"Um benefício para o colaborador sem custo para a empresa. Reduzimos o estresse financeiro da equipe e a rotatividade, sem exigir contrapartidas."}),c.jsx(fe,{asChild:!0,className:"btn-hero text-lg px-8 py-4",children:c.jsx("a",{href:`http://wa.me/558005914353?text=${encodeURIComponent("Olá! Gostaria de me tornar conveniado do CS Consignado.")}`,target:"_blank",rel:"noopener noreferrer",children:"Torne-se um conveniado"})})]})]})}),c.jsx("section",{className:"py-16 px-4 sm:px-6 lg:px-8",children:c.jsx("div",{className:"max-w-7xl mx-auto",children:c.jsxs("div",{className:"text-center mb-12",children:[c.jsx("h2",{className:"text-3xl md:text-4xl font-bold text-cs-primary mb-6",children:"O que é Empréstimo Consignado?"}),c.jsx("p",{className:"text-lg text-gray-600 max-w-3xl mx-auto",children:"O empréstimo consignado privado é uma modalidade de crédito onde o pagamento é descontado diretamente do salário do tomador."}),c.jsx("p",{className:"text-lg text-gray-600 max-w-3xl mx-auto mt-4",children:"CS Consignado é oferecido por empresas privadas como benefício aos seus colaboradores contratados por regime CLT."})]})})}),c.jsx("section",{className:"py-16 bg-gray-50",children:c.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:c.jsxs("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-8",children:[c.jsxs("div",{className:"bg-white p-6 rounded-xl shadow-sm",children:[c.jsx("div",{className:"w-12 h-12 bg-cs-accent/10 rounded-lg flex items-center justify-center mb-4",children:c.jsx(mi,{className:"w-6 h-6 text-cs-accent"})}),c.jsx("h3",{className:"text-xl font-semibold text-cs-primary mb-3",children:"Benefício gratuito"}),c.jsx("p",{className:"text-gray-600",children:"Complemente nosso programa de empréstimo consignado privado sem contrapartidas. Isso reduzirá o estresse financeiro dos colaboradores, diminuirá a rotatividade e melhorará a estabilidade emocional e produtivida
633de, sem qualquer custo adicional para sua empresa."})]}),c.jsxs("div",{className:"bg-white p-6 rounded-xl shadow-sm",children:[c.jsx("div",{className:"w-12 h-12 bg-cs-secondary/10 rounded-lg flex items-center justify-center mb-4",children:c.jsx($o,{className:"w-6 h-6 text-cs-secondary"})}),c.jsx("h3",{className:"text-xl font-semibold text-cs-primary mb-3",children:"Ambiente multibancos"}),c.jsx("p",{className:"text-gray-600",children:"Ao tomar um crédito, o colaborador é livre para escolher a instituição que melhor o atender, e isto se aplica também ao consignado. Assim, trabalhamos sem exclusividade. A CS Consignado nestes casos entra como mais uma opção, que aumenta o leque de opções competitivas de taxas, prazos e limites para os colaboradores."})]}),c.jsxs("div",{className:"bg-white p-6 rounded-xl shadow-sm",children:[c.jsx("div",{className:"w-12 h-12 bg-cs-primary/10 rounded-lg flex items-center justify-center mb-4",children:c.jsx(io,{className:"w-6 h-6 text-cs-primary"})}),c.jsx("h3",{className:"text-xl font-semibold text-cs-primary mb-3",children:"Central do RH (opcional)"}),c.jsx("p",{className:"text-gray-600",children:"O CS Consignado assume essas responsabilidades, simplificando o trabalho do RH. Oferecemos a Central do RH para gerenciar todas as atividades ligadas ao empréstimo consignado, incluindo averbação, faturamento e desligamentos."})]}),c.jsxs("div",{className:"bg-white p-6 rounded-xl shadow-sm",children:[c.jsx("div",{className:"w-12 h-12 bg-cs-accent/10 rounded-lg flex items-center justify-center mb-4",children:c.jsx(uh,{className:"w-6 h-6 text-cs-accent"})}),c.jsx("h3",{className:"text-xl font-semibold text-cs-primary mb-3",children:"Integração sistêmica (opcional)"}),c.jsx("p",{className:"text-gray-600",children:'Nosso sistema proprietário de consignado possui APIs abertas para integração aos principais sistemas de folha de pagamento ("HRM"s) do mercado nacional, para que as informações sejam sempre confiáveis e atualizadas.'})]}),c.jsxs("div",{className:"bg-white p-6 rounded-xl shadow-sm",children:[c.jsx("div",{className:"w-12 h-12 bg-cs-secondary/10 rounded-lg flex items-center justify-center mb-4",children:c.jsx(dw,{className:"w-6 h-6 text-cs-secondary"})}),c.jsx("h3",{className:"text-xl font-semibold text-cs-primary mb-3",children:"Atendimento consultivo"}),c.jsx("p",{className:"text-gray-600",children:"Esqueça os apps automáticos. Seus colaboradores serão atendidos por nossa equipe de especialistas treinada para entender a realidade financeira individual de cada um, e trazer uma solução de crédito que resolva sua situação financeira, reestruturando dívidas, reduzindo taxas médias e realizando sonhos."})]}),c.jsxs("div",{className:"bg-white p-6 rounded-xl shadow-sm",children:[c.jsx("div",{className:"w-12 h-12 bg-cs-primary/10 rounded-lg flex items-center justify-center mb-4",children:c.jsx(Ju,{className:"w-6 h-6 text-cs-primary"})}),c.jsx("h3",{className:"text-xl font-semibold text-cs-primary mb-3",children:"Sua política de crédito única"}),c.jsx("p",{className:"text-gray-600",children:"Tenha poder de definir junto à CS Consignado uma política de crédito específica para o seu negócio, parametrizando limites para prazos, valores de parcelas, percentual de margem tomado e regras por tempo de casa."})]})]})})}),c.jsx("section",{className:"py-16",children:c.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:c.jsxs("div",{className:"grid md:grid-cols-2 gap-12",children:[c.jsxs("div",{children:[c.jsx("h3",{className:"text-2xl font-bold text-cs-primary mb-6",children:"Vantagens para a empresa"}),c.jsxs("div",{className:"space-y-4",children:[c.jsxs("div",{className:"flex items-start gap-3",children:[c.jsx(mi,{className:"w-5 h-5 text-cs-accent mt-1"}),c.jsx("p",{className:"text-gray-600",children:"Proporcionar um pacote de benefícios mais completo e como resultado ter colaboradores satisfeitos."})]}),c.jsxs("div",{className:"flex items-start gap-3",children:[c.jsx(mi,{className:"w-5 h-5 text-cs-accent mt-1"}),c.jsx("p",{className:"text-gray-600",children:"Rápida implantação comercial do convênio e sistema web simples e ágil."})]}),c.jsxs("div",{className:"flex items-start gap-3",children:[c.jsx(mi,{className:"w-5 h-5 text-cs-accent mt-1"}),c.jsx("p",{className:"text-gray-600",children:"Atendimento personalizado à empresa (RH)."})]}),c.jsxs("div",{className:"flex items-start gap-3",children:[c.jsx(mi,{className:"w-5 h-5 text-cs-accent mt-1"}),c.jsx("p",{className:"text-gray-600",children:"Sem custos para a empresa."})]})]})]}),c.jsxs("div",{children:[c.jsx("h3",{className:"text-2xl font-bold text-cs-primary mb-6",children:"Vantagens para o colaborador"}),c.jsxs("div",{className:"space-y-4",children:[c.jsxs("div",{className:"flex items-start gap-3",children:[c.jsx(mi,{className:"w-5 h-5 text-cs-secondary mt-1"}),c.jsx("p",{className:"text-gray-600",children:"Acesso ao crédito sem consulta ao SPC ou SERASA."})]}),c.jsxs("div",{className:"flex items-start gap-3",children:[c.jsx(mi,{className:"w-5 h-5 text-cs-secondary mt-1"}),c.jsx("p",{className:"text-gray-600",children:"Colaboradores mais satisfeitos com a oportunidade de organizarem sua vida financeira."})]}),c.jsxs("div",{className:"flex items-start gap-3",children:[c.jsx(mi,{className:"w-5 h-5 text-cs-secondary mt-1"}),c.jsx("p",{className:"text-gray-600",children:"Orientação financeira aos colaboradores das empresas."})]}),c.jsxs("div",{className:"flex items-start gap-3",children:[c.jsx(mi,{className:"w-5 h-5 text-cs-secondary mt-1"}),c.jsx("p",{className:"text-gray-600",children:"Contratação fácil, rápida e simplificada."})]})]})]})]})})}),c.jsx("section",{className:"py-16 bg-gray-50",children:c.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[c.jsx("h2",{className:"text-3xl md:text-4xl font-bold text-cs-primary text-center mb-12",children:"Como Funciona?"}
633),c.jsx("div",{className:"grid md:grid-cols-5 gap-8",children:[{step:"01",title:"Coleta de informações",description:"CNPJ da empresa, quantidade de funcionários, valor total da folha de pagamento, banco pagador da folha e se já há produto consignado."},{step:"02",title:"Análise",description:"Análise dos dados e apresentação de proposta em até 48 horas."},{step:"03",title:"Assinatura",description:"Assinatura do convênio."},{step:"04",title:"Onboarding",description:"Reunião com responsáveis internos por RH para definição da sua Política de Crédito única e alinhamento do início do programa."},{step:"05",title:"Início das divulgações",description:"Elaboramos peças customizadas com seu logo e identidade visual para divulgação nos canais de comunicação interna."}].map((e,r)=>c.jsxs("div",{className:"text-center",children:[c.jsx("div",{className:"w-16 h-16 bg-cs-accent rounded-full flex items-center justify-center text-white font-bold text-xl mx-auto mb-4",children:e.step}),c.jsx("h3",{className:"font-semibold text-cs-primary mb-3",children:e.title}),c.jsx("p",{className:"text-gray-600 text-sm",children:e.description})]},r))})]})}),c.jsx("section",{className:"py-16",children:c.jsxs("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8",children:[c.jsx("h2",{className:"text-3xl md:text-4xl font-bold text-cs-primary text-center mb-12",children:"Perguntas Frequentes"}),c.jsx("div",{className:"space-y-6",children:[{question:"Como funciona o empréstimo consignado?",answer:"O empréstimo consignado é um benefício de crédito disponibilizado por empresas para seus colaboradores que tenham vínculo CLT, onde as parcelas são descontadas diretamente do salário e repassadas pelo empregador à instituição financeira. Devido à amarração com a folha de pagamento, esta linha oferece taxas de juros mais baixas em comparação com outros tipos de empréstimo pessoais."},{question:"Qual é a taxa de juros do empréstimo consignado?",answer:"A taxa de juros podem variar de acordo com o segmento da empresa, rotatividade dos funcionários, número de parcelas e a data de contratação."},{question:"Qual é o valor máximo que posso emprestar?",answer:"O valor máximo de liberação de crédito é baseado na renda do colaborador, seus compromissos financeiros existentes e o tempo de contratação. A parcela mensal nunca pode exceder 35% do salário líquido."},{question:"Quais são os requisitos para solicitar um empréstimo consignado?",answer:"Ser funcionário CLT da empresa conveniada há pelo menos 3 meses e estar em concordância com a Política de Crédito Única da empresa. Ainda, ao contratar a operação com nosso time de especialistas, será necessário apresentar documentos pessoais, como RG, CPF, Contracheque e comprovante de residência, e realizar a assinatura digital de contratação."},{question:"Quanto tempo leva para aprovar e liberar o empréstimo?",answer:"O tempo de aprovação dos documentos costuma ser processado em poucos minutos. Já a liberação do crédito é realizada na conta do colaborador em até 48h após a contratação."},{question:"Em quantas parcelar posso repagar o empréstimo?",answer:"O prazo máximo depende do tempo de casa do colaborador e da Política de Crédito Única, podendo ir de 6 meses até 60 meses."},{question:"Posso solicitar um empréstimo consignado se estiver com o nome negativado?",answer:"Sim. O empréstimo consignado pode ser liberado mesmo se o colaborador estiver com o nome negativado (SPC ou Serasa) e inclusive utilizar para quitar outras dívidas."},{question:"O que acontece se eu perder o emprego durante o pagamento do empréstimo?",answer:"Se o colaborador perder o emprego durante o pagamento do empréstimo consignado, até 35% do valor líquido de sua rescisão será descontado para quitação do empréstimo solicitado. Caso o valor não seja suficiente para quitação total do saldo devedor, o saldo remanescente será cobrado diretamente pela CS Consignado com o colaborador, deixando de haver qualquer responsabilidade da empresa empregadora."},{question:"Posso receber meu empréstimo em qualquer banco que eu possua conta?",answer:"O empréstimo consignado pode ser creditado em qualquer conta de Banco Múltiplo de titularidade do próprio empregado. Para contas digitais, é necessário passar por um processo de análise."}].map((e,r)=>c.jsxs("div",{className:"bg-white p-6 rounded-xl shadow-sm",children:[c.jsx("h3",{className:"font-semibold text-cs-primary mb-3",children:e.question}),c.jsx("p",{className:"text-gray-600",children:e.answer})]},r))})]})}),c.jsx("section",{className:"py-16 md:py-20 text-white",style:{background:"var(--gradient-cta)"},children:c.jsxs("div",{className:"max-w-3xl mx-auto px-4 sm:px-6 lg:px-8 text-center",children:[c.jsx("h2",{className:"text-2xl sm:text-3xl md:text-4xl font-bold mb-5",children:"Deseja saber mais?"}),c.jsx("p",{className:"text-base md:text-lg mb-8 text-white/80",children:"Fale com nossa equipe e leve o CS Consignado para a sua empresa."}),c.jsx(fe,{asChild:!0,size:"lg",className:"bg-cs-accent hover:bg-cs-accent/90 text-white font-semibold px-8 py-4 text-base sm:text-lg",children:c.jsxs("a",{href:`http://wa.me/558005914353?text=${encodeURIComponent("Olá! Gostaria de me tornar conveniado do CS Consignado.")}`,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center justify-center gap-2",children:[c.jsx(gx,{className:"w-5 h-5"}),"Torne-se um conveniado"]})})]})}),c.jsx(Ko,{})]})]})},rW=()=>{const t={"@context":"https://schema.org","@type":"Service",name:"CS Risco Sacado - Antecipação de Recebíveis",description:"Alongamento de prazo com fornecedores e antecipação de recebíveis baseada no risco do sacado",provider:{"@type":"Financial
633Service",name:"CS Finance"},areaServed:"BR",hasOfferCatalog:{"@type":"OfferCatalog",name:"Risco Sacado",itemListElement:[{"@type":"Offer",itemOffered:{"@type":"FinancialProduct",name:"Antecipação de Recebíveis Risco Sacado",description:"Antecipação D+0 sem burocracia para fornecedores"}}]}};return c.jsxs("div",{className:"min-h-screen bg-background",children:[c.jsxs(Un,{children:[c.jsx("title",{children:"CS Risco Sacado | Antecipação de Recebíveis e Alongamento de Prazo com Fornecedores"}),c.jsx("meta",{name:"description",content:"Antecipação de recebíveis D+0 com base no risco-sacado. Aumente prazos de pagamento, destrave seu limite bancário e melhore seu capital de giro."}),c.jsx("meta",{name:"keywords",content:"risco sacado, antecipação recebíveis, alongamento prazo fornecedores, capital de giro, antecipação D+0, factoring"}),c.jsx("link",{rel:"canonical",href:"https://csfinance.app.br/cs-risco-sacado"}),c.jsx("meta",{property:"og:title",content:"CS Risco Sacado - Antecipação de Recebíveis e Alongamento de Prazo"}),c.jsx("meta",{property:"og:description",content:"Antecipação D+0 sem burocracia. Aumente prazos com fornecedores e melhore seu capital de giro com taxas competitivas."}),c.jsx("meta",{property:"og:url",content:"https://csfinance.app.br/cs-risco-sacado"}),c.jsx("meta",{property:"og:type",content:"website"}),c.jsx("meta",{property:"og:image",content:"https://csfinance.app.br/lovable-uploads/corporate-home.jpg"}),c.jsx("meta",{property:"twitter:card",content:"summary_large_image"}),c.jsx("meta",{property:"twitter:image",content:"https://csfinance.app.br/lovable-uploads/corporate-home.jpg"}),c.jsx("script",{type:"application/ld+json",children:JSON.stringify(t)}),c.jsx("script",{type:"application/ld+json",children:JSON.stringify({"@context":"https://schema.org","@type":"BreadcrumbList",itemListElement:[{"@type":"ListItem",position:1,name:"Início",item:"https://csfinance.app.br/"},{"@type":"ListItem",position:2,name:"CS Risco Sacado",item:"https://csfinance.app.br/cs-risco-sacado"}]})})]}),c.jsx(Go,{}),c.jsx("section",{className:"text-white py-16 md:py-20 pt-28 md:pt-32",style:{background:"var(--gradient-hero)"},children:c.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[c.jsx("div",{className:"mb-6",children:c.jsx(fe,{asChild:!0,variant:"ghost",className:"text-white hover:bg-white/10 mb-4",children:c.jsxs(is,{to:"/",className:"flex items-center gap-2",children:[c.jsx(Os,{className:"w-4 h-4"}),"Voltar ao início"]})})}),c.jsxs("div",{className:"text-center",children:[c.jsx("h1",{className:"text-3xl sm:text-4xl md:text-5xl font-bold mb-5",children:"CS Risco-Sacado"}),c.jsx("p",{className:"text-lg md:text-xl mb-8 max-w-3xl mx-auto text-white/80",children:"Alongamento de prazo com fornecedores sem prejuízos, com modalidades de antecipação de recebíveis ágeis e seguras."}),c.jsx(fe,{asChild:!0,className:"btn-hero text-lg px-8 py-4",children:c.jsx("a",{href:`http://wa.me/558005914353?text=${encodeURIComponent("Olá! Gostaria de me tornar conveniado do CS Risco-Sacado.")}`,target:"_blank",rel:"noopener noreferrer",children:"Torne-se um conveniado"})})]})]})}),c.jsx("section",{className:"py-16",children:c.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[c.jsx("h2",{className:"text-3xl md:text-4xl font-bold text-cs-primary text-center mb-12",children:"Vantagens para o sacado"}),c.jsxs("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-8",children:[c.jsxs("div",{className:"bg-white p-6 rounded-xl shadow-sm border",children:[c.jsx("div",{className:"w-12 h-12 bg-cs-accent/10 rounded-lg flex items-center justify-center mb-4",children:c.jsx(uh,{className:"w-6 h-6 text-cs-accent"})}),c.jsx("h3",{className:"text-xl font-semibold text-cs-primary mb-3",children:"Aumento de prazos de pagamento"}),c.jsx("p",{className:"text-gray-600",children:"Aumente o prazo de pagamento de seu contas a pagar e tenha mais tempo para vender antes mesmo de pagar pelo estoque."})]}),c.jsxs("div",{className:"bg-white p-6 rounded-xl shadow-sm border",children:[c.jsx("div",{className:"w-12 h-12 bg-cs-secondary/10 rounded-lg flex items-center justify-center mb-4",children:c.jsx(Ju,{className:"w-6 h-6 text-cs-secondary"})}),c.jsx("h3",{className:"text-xl font-semibold text-cs-primary mb-3",children:"Destrave seu limite"}),c.jsx("p",{className:"text-gray-600",children:"A operação risco-sacado não consome limite bancário ou limite no Banco Central, deixando o sacado mais livre para negociar com bancos."})]}),c.jsxs("div",{className:"bg-white p-6 rounded-xl shadow-sm border",children:[c.jsx("div",{className:"w-12 h-12 bg-cs-primary/10 rounded-lg flex items-center justify-center mb-4",children:c.jsx(io,{className:"w-6 h-6 text-cs-primary"})}),c.jsx("h3",{className:"text-xl font-semibold text-cs-primary mb-3",children:"Redução de endividamento bancário"}),c.jsx("p",{className:"text-gray-600",children:"Financie suas operações com o próprio capital de giro, sem a necessidade de tomar dívida em bancos."})]}),c.jsxs("div",{className:"bg-white p-6 rounded-xl shadow-sm border",children:[c.jsx("div",{className:"w-12 h-12 bg-cs-accent/10 rounded-lg flex items-center justify-center mb-4",children:c.jsx($o,{className:"w-6 h-6 text-cs-accent"})}),c.jsx("h3",{className:"text-xl font-semibold text-cs-primary mb-3",children:"Time dedicado para seu dia-a-dia"}),c.jsx("p",{className:"text-gray-600",children:"Conte com um gerente de relacionamento para ajudar no seu dia-a-dia e construir estratég
633ias de engajamento com os seus fornecedores."})]}),c.jsxs("div",{className:"bg-white p-6 rounded-xl shadow-sm border",children:[c.jsx("div",{className:"w-12 h-12 bg-cs-secondary/10 rounded-lg flex items-center justify-center mb-4",children:c.jsx(dw,{className:"w-6 h-6 text-cs-secondary"})}),c.jsx("h3",{className:"text-xl font-semibold text-cs-primary mb-3",children:"Taxas atrativas"}),c.jsx("p",{className:"text-gray-600",children:"Dê aos seus fornecedores a possibilidade de operar taxas mais atrativas do que as que existem nas factorings de mercado."})]}),c.jsxs("div",{className:"bg-white p-6 rounded-xl shadow-sm border",children:[c.jsx("div",{className:"w-12 h-12 bg-cs-primary/10 rounded-lg flex items-center justify-center mb-4",children:c.jsx(w0,{className:"w-6 h-6 text-cs-primary"})}),c.jsx("h3",{className:"text-xl font-semibold text-cs-primary mb-3",children:"100% digital, customizado e integrado"}),c.jsx("p",{className:"text-gray-600",children:"Com seu logo e sua URL, as operações são efetivadas por meio totalmente digital. A plataforma pode ser alimentada por APIs."})]})]})]})}),c.jsx("section",{className:"py-16 bg-gray-50",children:c.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[c.jsx("h2",{className:"text-3xl md:text-4xl font-bold text-cs-primary text-center mb-12",children:"Vantagens para o fornecedor (cedente)"}),c.jsxs("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-8",children:[c.jsxs("div",{className:"bg-white p-6 rounded-xl shadow-sm",children:[c.jsx("div",{className:"w-12 h-12 bg-cs-accent/10 rounded-lg flex items-center justify-center mb-4",children:c.jsx(w0,{className:"w-6 h-6 text-cs-accent"})}),c.jsx("h3",{className:"text-xl font-semibold text-cs-primary mb-3",children:"Antecipação D+0 sem burocracia"}),c.jsx("p",{className:"text-gray-600",children:"Fornecedor solicita antecipação online com poucos cliques e conta com dinheiro na conta D+0."})]}),c.jsxs("div",{className:"bg-white p-6 rounded-xl shadow-sm",children:[c.jsx("div",{className:"w-12 h-12 bg-cs-secondary/10 rounded-lg flex items-center justify-center mb-4",children:c.jsx(Ju,{className:"w-6 h-6 text-cs-secondary"})}),c.jsx("h3",{className:"text-xl font-semibold text-cs-primary mb-3",children:"Melhora nos indicadores financeiros"}),c.jsx("p",{className:"text-gray-600",children:'Como a antecipação é baseada na avaliação de risco-sacado, para o fornecedor a antecipação é "off balance" – melhorando indicadores de liquidez.'})]}),c.jsxs("div",{className:"bg-white p-6 rounded-xl shadow-sm",children:[c.jsx("div",{className:"w-12 h-12 bg-cs-primary/10 rounded-lg flex items-center justify-center mb-4",children:c.jsx(io,{className:"w-6 h-6 text-cs-primary"})}),c.jsx("h3",{className:"text-xl font-semibold text-cs-primary mb-3",children:"Zero IOF e melhores taxas"}),c.jsx("p",{className:"text-gray-600",children:"As operações de antecipação sem regresso são isentas de IOF, isentas de tarifas de contratação e permitem uma taxa final menor do que em factorings e bancos."})]}),c.jsxs("div",{className:"bg-white p-6 rounded-xl shadow-sm",children:[c.jsx("div",{className:"w-12 h-12 bg-cs-accent/10 rounded-lg flex items-center justify-center mb-4",children:c.jsx(uh,{className:"w-6 h-6 text-cs-accent"})}),c.jsx("h3",{className:"text-xl font-semibold text-cs-primary mb-3",children:"Libera limite bancário"}),c.jsx("p",{className:"text-gray-600",children:"Fornecedor atende sua necessidade de capital de giro sem tomar limite junto aos bancos."})]}),c.jsxs("div",{className:"bg-white p-6 rounded-xl shadow-sm",children:[c.jsx("div",{className:"w-12 h-12 bg-cs-secondary/10 rounded-lg flex items-center justify-center mb-4",children:c.jsx(dw,{className:"w-6 h-6 text-cs-secondary"})}),c.jsx("h3",{className:"text-xl font-semibold text-cs-primary mb-3",children:"Aumento de vendas a prazo sem tomar limite"}),c.jsx("p",{className:"text-gray-600",children:"Liberação de vendas travadas por limite de crédito e aumento de faturamento."})]}),c.jsxs("div",{className:"bg-white p-6 rounded-xl shadow-sm",children:[c.jsx("div",{className:"w-12 h-12 bg-cs-primary/10 rounded-lg flex items-center justify-center mb-4",children:c.jsx($o,{className:"w-6 h-6 text-cs-primary"})}),c.jsx("h3",{className:"text-xl font-semibold text-cs-primary mb-3",children:"Atendimento humanizado"}),c.jsx("p",{className:"text-gray-600",children:"Fornecedor conta com uma mesa-fornecedores proativa para o atendimento constante."})]})]})]})}),c.jsx("section",{className:"py-16",children:c.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[c.jsx("h2",{className:"text-3xl md:text-4xl font-bold text-cs-primary text-center mb-12",children:"Passo a passo da implementação"}
633),c.jsx("div",{className:"grid md:grid-cols-5 gap-8",children:[{step:"01",title:"Criação do limite global para o sacado",description:"São avaliadas as demonstrações financeiras e dados de compras do sacado para dimensionamento do valor total que poderá ser operado"},{step:"02",title:"Assinatura do convênio",description:"É firmado o convênio de Sacado-Âncora entre o Sacado e o Fundo para que o processo de implantação se inicie."},{step:"03",title:"Implantação",description:"Nosso time de especialistas fará a integração com o ERP do sacado, garantindo que todo o processo desde o lançamento da NF até a liquidação ocorra eletronicamente."},{step:"04",title:"Divulgação e negociação",description:"Implantada a plataforma, o sacado anuncia a sua disponibilização aos seus fornecedores que desejarem utilizá-la."},{step:"05",title:"Criação dos logins",description:"Os fornecedores que aderirem ao programa recebem um login e senha exclusivos para que consiga acessar a plataforma e começar a operar."}].map((e,r)=>c.jsxs("div",{className:"text-center",children:[c.jsx("div",{className:"w-16 h-16 bg-cs-accent rounded-full flex items-center justify-center text-white font-bold text-xl mx-auto mb-4",children:e.step}),c.jsx("h3",{className:"font-semibold text-cs-primary mb-3",children:e.title}),c.jsx("p",{className:"text-gray-600 text-sm",children:e.description})]},r))})]})}),c.jsx("section",{className:"py-16 md:py-20 text-white",style:{background:"var(--gradient-cta)"},children:c.jsxs("div",{className:"max-w-3xl mx-auto px-4 sm:px-6 lg:px-8 text-center",children:[c.jsx("h2",{className:"text-2xl sm:text-3xl md:text-4xl font-bold mb-5",children:"Suporte e atendimento dedicados"}),c.jsx("p",{className:"text-base md:text-lg mb-8 text-white/80",children:"Equipe dedicada da integração de sistemas ao rollout da operação, com apoio no onboarding dos cedentes até a efetivação das operações."}),c.jsx(fe,{asChild:!0,size:"lg",className:"bg-cs-accent hover:bg-cs-accent/90 text-white font-semibold px-8 py-4 text-base sm:text-lg",children:c.jsxs("a",{href:`http://wa.me/558005914353?text=${encodeURIComponent("Olá! Gostaria de me tornar conveniado do CS Risco-Sacado.")}`,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center justify-center gap-2",children:[c.jsx(gx,{className:"w-5 h-5"}),"Torne-se um conveniado"]})})]})}),c.jsx(Ko,{})]})},pP=t=>`http://wa.me/558005914353?text=${encodeURIComponent(t)}`,tC=pP("Olá! Gostaria de falar com um especialista sobre crédito imobiliário da CS Finance."),rC=pP("Olá! Gostaria de iniciar uma pré-análise de crédito imobiliário com a CS Finance."),c1="Sujeito à análise de crédito, documentação, perfil do cliente, imóvel e condições comerciais.",nW=[{icon:xR,label:"R$ 50 mil a R$ 15 milhões"},{icon:$2,label:"Até 240 meses"},{icon:yR,label:"Aquisição, construção ou investimento"},{icon:$o,label:"Atendimento consultivo"}],sW=[{icon:TR,label:"Dúvidas sobre documentos"},{icon:O7,label:"Processo pouco claro"},{icon:$o,label:"Atendimento impessoal"},{icon:l$,label:"Dificuldade para comparar possibilidades"},{icon:yx,label:"Insegurança na tomada de decisão"}],iW=[{icon:AR,title:"Atendimento humano",description:"Você fala com uma equipe preparada para orientar sua decisão."},{icon:V2,title:"Pré-análise mais prática",description:"Entenda possibilidades antes de avançar no processo."},{icon:wd,title:"Crédito consciente",description:"A indicação considera seu perfil, objetivo e capacidade financeira."},{icon:_R,title:"Acompanhamento consultivo",description:"Mais clareza sobre documentos, etapas e próximos passos."}],oW=[{icon:mx,label:"Comprar imóvel residencial"},{icon:U7,label:"Construir"},{icon:Ju,label:"Investir em imóvel"},{icon:TR,label:"Avaliar crédito para imóvel"},{icon:$2,label:"Organizar uma operação imobiliária com mais prazo"}],aW=[{title:"R$ 50 mil a R$ 15 milhões",description:"Valores por imóvel, conforme análise."},{title:"Até 240 meses",description:"Mais prazo para organizar o pagamento, conforme condições aplicáveis."}
633,{title:"Atendimento consultivo",description:"Orientação para entender documentos, perfil e próximos passos."}],lW=["Você chama no WhatsApp","A equipe entende seu objetivo","São avaliadas informações iniciais","Você recebe orientação sobre documentos e possibilidades","O processo segue com acompanhamento consultivo"],cW=[{icon:yx,label:"Transparência"},{icon:RR,label:"Segurança na orientação"},{icon:wd,label:"Crédito consciente"},{icon:AR,label:"Atendimento resolutivo"}],nC=[{q:"A aprovação é garantida?",a:"Não. Todo crédito está sujeito à análise de crédito, documentação, perfil do cliente, imóvel e condições comerciais disponíveis."},{q:"Qual o valor mínimo e máximo?",a:"O crédito pode variar de R$ 50 mil a R$ 15 milhões por imóvel, conforme análise."},{q:"Qual o prazo de pagamento?",a:"O prazo pode chegar a até 240 meses, conforme perfil, documentação, imóvel e condições aplicáveis."},{q:"Serve para construção?",a:"Sim. A solução pode atender aquisição, construção ou investimento, conforme análise e enquadramento."},{q:"O atendimento é online?",a:"O atendimento inicial pode ser feito de forma digital, com orientação da equipe pelo WhatsApp."},{q:"Quais documentos preciso enviar?",a:"A documentação pode variar conforme o perfil do cliente, objetivo da operação e imóvel. A equipe orienta os próximos passos durante a pré-análise."},{q:"Como começo?",a:"Clique no botão de WhatsApp, informe seu objetivo e aguarde a orientação inicial da equipe."}],uW=[{href:"#vantagens",label:"Vantagens"},{href:"#como-funciona",label:"Como funciona"},{href:"#duvidas",label:"Dúvidas"}],dW=()=>{const t={"@context":"https://schema.org","@type":"Service",name:"Crédito Imobiliário CS Finance",description:"Crédito imobiliário para aquisição, construção ou investimento, de R$ 50 mil a R$ 15 milhões por imóvel, com prazo de até 240 meses, conforme análise.",provider:{"@type":"FinancialService",name:"CS Finance"},areaServed:"BR"},e={"@context":"https://schema.org","@type":"FAQPage",mainEntity:nC.map(r=>({"@type":"Question",name:r.q,acceptedAnswer:{"@type":"Answer",text:r.a}}))};return c.jsxs("div",{className:"min-h-screen bg-background",children:[c.jsxs(Un,{children:[c.jsx("title",{children:"Crédito Imobiliário CS Finance | Comprar, construir ou investir"}),c.jsx("meta",{name:"description",content:"Crédito imobiliário de R$ 50 mil a R$ 15 milhões por imóvel, prazo de até 240 meses e atendimento consultivo. Sujeito à análise de crédito e documentação."}),c.jsx("meta",{name:"keywords",content:"crédito imobiliário, financiamento imobiliário, crédito para imóvel, crédito para construção, comprar imóvel, investir em imóvel, CS Finance"}),c.jsx("link",{rel:"canonical",href:"https://csfinance.app.br/credito-imobiliario"}),c.jsx("meta",{property:"og:title",content:"Crédito Imobiliário CS Finance | Comprar, construir ou investir"}),c.jsx("meta",{property:"og:description",content:"Crédito imobiliário de R$ 50 mil a R$ 15 milhões por imóvel, prazo de até 240 meses e atendimento consultivo. Sujeito à análise de crédito e documentação."}),c.jsx("meta",{property:"og:url",content:"https://csfinance.app.br/credito-imobiliario"}),c.jsx("meta",{property:"og:type",content:"website"}),c.jsx("meta",{property:"og:image",content:"https://csfinance.app.br/lovable-uploads/corporate-home.jpg"}),c.jsx("script",{type:"application/ld+json",children:JSON.stringify(t)}),c.jsx("script",{type:"application/ld+json",children:JSON.stringify(e)}),c.jsx("script",{type:"application/ld+json",children:JSON.stringify({"@context":"https://schema.org","@type":"BreadcrumbList",itemListElement:[{"@type":"ListItem",position:1,name:"Início",item:"https://csfinance.app.br/"},{"@type":"ListItem",position:2,name:"Crédito Imobiliário",item:"https://csfinance.app.br/credito-imobiliario"}]})})]}),c.jsx(Go,{}),c.jsx("div",{className:"sticky top-16 md:top-20 z-40 bg-cs-navy/95 backdrop-blur-md border-b border-white/10",children:c.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 flex items-center justify-between h-12 gap-3",children:[c.jsx("nav",{className:"flex items-center gap-4 sm:gap-6 overflow-x-auto no-scrollbar",children:uW.map(r=>c.jsx("a",{href:r.href,className:"text-cs-text-light/80 hover:text-cs-secondary text-sm font-medium whitespace-nowrap transition-colors",children:r.label},r.href))}),c.jsx(fe,{asChild:!0,size:"sm",className:"bg-cs-accent hover:bg-cs-accent/90 text-white rounded-full font-medium shrink-0",children:c.jsxs("a",{href:rC,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1.5",children:[c.jsx(Ys,{className:"w-4 h-4"}),"Simular no WhatsApp"]})})]})}),c.jsxs("section",{className:"text-cs-text-light pt-12 md:pt-16 pb-16 md:pb-20 relative overflow-hidden",style:{background:"var(--gradient-hero)"},children:[c.jsx("div",{className:"pointer-events-none absolute -top-32 -right-24 w-96 h-96 rounded-full bg-cs-secondary/20 blur-3xl"}),c.jsx("div",{className:"pointer-events-none absolute -bottom-32 -left-24 w-96 h-96 rounded-full bg-cs-accent/10 blur-3xl"}),c.jsxs("div",{className:"relative max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[c.jsx(fe,{asChild:!0,variant:"ghost",className:"text-white hover:bg-white/10 mb-6 -ml-2",children:c.jsxs(is,{to:"/",className:"flex items-center gap-2",children:[c.jsx(Os,{className:"w-4 h-4"}),"Voltar ao início"]})}),c.jsxs("div",{className:"grid lg:grid-cols-2 gap-10 lg:gap-14 items-center",children:[c.jsxs("div",{children:[c.jsx("span",{className:"text-cs-secondary font-semibold uppercase tracking-wide text-sm",children:"Crédito Imobiliário CS Finance"}),c.jsx("h1",{className:"text-3xl sm:text-4xl md:text-5xl font-bold mt-3 mb-5 leading-tight",children:"Crédito imobiliário com orientação humana para comprar, construir ou investir com mais segurança"}),c.jsx("p",{className:"text-base md:text-lg text-cs-text-light/80 mb-8 leading-relaxed",children:"Tenha acesso a crédito de R$ 50 mil a R$ 15 milhões por imóvel, com prazo de até 240 meses e acompanhamento consultivo para entender possibilidades, documentos e próximos passos."}),c.jsxs("div",{className:"flex flex-col sm:flex-row gap-3 sm:gap-4",children:[c.jsx(fe,{asChild:!0,size:"lg",className:"bg-cs-accent hover:bg-cs-accent/90 text-white font-semibold px-7 py-4 text-base shadow-lg",children:c.jsxs("a",{href:tC,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center justify-center gap-2",children:[c.jsx(Ys,{className:"w-5 h-5"}),"Falar com especialista no WhatsApp"]})}),c.jsx(fe,{asChild:!0,size:"lg",variant:"outline",className:"border-white/30 bg-white/5 text-white hover:bg-white hover:text-cs-primary font-medium px-7 py-4 text-base",children:c.jsx("a",{href:"#como-funciona",className:"inline-flex items-center justify-center gap-2",children:"Entender como funciona"})})]}),c.jsx("p",{className:"text-xs text-cs-text-muted mt-5 max-w-md",children:c1})]}),c.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:nW.map(r=>c.jsxs("div",{className:"rounded-xl p-5 border border-white/10 bg-white/5 backdrop-blur-sm hover:border-cs-secondary/50 transition-colors duration-300",children:[c.jsx("span",{className:"flex items-center justify-center w-11 h-11 rounded-lg bg-cs-secondary/15 text-cs-secondary mb-4",children:c.jsx(r.icon,{className:"w-5 h-5"})}),c.jsx("p",{className:"font-medium text-cs-text-light leading-snug",children:r.label})]},r.label))})]})]})]}),c.jsx("section",{className:"cs-section",children:c.jsxs("div",{className:"max-w-6xl mx-auto",children:[c.jsxs("div",{className:"text-center max-w-3xl mx-auto mb-10 md:mb-12",children:[c.jsx("h2",{className:"text-3xl sm:text-4xl font-bold text-cs-primary mb-4",children:"Seu projeto imobiliário não precisa ficar travado por falta de orientação"}),c.jsx("p",{className:"text-lg text-muted-foreground leading-relaxed",children:"Em muitos processos, o cliente enfrenta demora, dúvidas sobre documentação, etapas confusas e atendimento impessoal. A proposta da CS Finance é tornar essa jornada mais clara, orientada e prática desde a primeira conversa."})]}),c.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-5 ga
633p-4 md:gap-5",children:sW.map(r=>c.jsxs("div",{className:"bg-white rounded-xl p-5 border border-border hover:shadow-lg transition-all duration-300",children:[c.jsx("span",{className:"flex items-center justify-center w-11 h-11 rounded-lg bg-cs-accent/10 text-cs-accent mb-4",children:c.jsx(r.icon,{className:"w-5 h-5"})}),c.jsx("p",{className:"font-medium text-cs-primary leading-snug",children:r.label})]},r.label))})]})}),c.jsx("section",{id:"vantagens",className:"cs-section bg-cs-ice scroll-mt-28",children:c.jsxs("div",{className:"max-w-6xl mx-auto",children:[c.jsxs("div",{className:"text-center max-w-3xl mx-auto mb-10 md:mb-12",children:[c.jsx("h2",{className:"text-3xl sm:text-4xl font-bold text-cs-primary mb-4",children:"Mais clareza para transformar imóvel em plano real"}),c.jsx("p",{className:"text-lg text-muted-foreground leading-relaxed",children:"A equipe da CS Finance orienta você na pré-análise, explica os próximos passos e acompanha a jornada para aquisição, construção ou investimento imobiliário."})]}),c.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-
6335 md:gap-6",children:iW.map(r=>c.jsxs("div",{className:"bg-white rounded-xl p-6 border border-border hover:border-cs-secondary/40 hover:shadow-lg transition-all duration-300",children:[c.jsx("span",{className:"flex items-center justify-center w-12 h-12 rounded-xl bg-cs-secondary/10 text-cs-secondary mb-4",children:c.jsx(r.icon,{className:"w-6 h-6"})}),c.jsx("h3",{className:"font-semibold text-cs-primary text-lg mb-2",children:r.title}),c.jsx("p",{className:"text-sm text-muted-foreground leading-relaxed",children:r.description})]},r.title))})]})}),c.jsx("section",{className:"cs-section",children:c.jsxs("div",{className:"max-w-6xl mx-auto",children:[c.jsx("div",{className:"text-center max-w-2xl mx-auto mb-10 md:mb-12",children:c.jsx("h2",{className:"text-3xl sm:text-4xl font-bold text-cs-primary mb-4",children:"Indicado para diferentes objetivos imobiliários"})}),c.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-5 gap-4 md:gap-5",children:oW.map(r=>c.jsxs("div",{className:"flex flex-col items-start gap-3 bg-white rounded-xl p-5 border border-border hover:shadow-lg transition-all duration-300",children:[c.jsx("span",{className:"flex items-center justify-center w-11 h-11 rounded-lg bg-cs-secondary/10 text-cs-secondary",children:c.jsx(r.icon,{className:"w-5 h-5"})}),c.jsx("p",{className:"font-medium text-cs-primary leading-snug",children:r.label})]},r.label))})]})}),c.jsx("section",{className:"cs-section text-cs-text-light",style:{background:"var(--gradient-dark)"},children:c.jsxs("div",{className:"max-w-6xl mx-auto",children:[c.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-5 md:gap-6",children:aW.map(r=>c.jsxs("div",{className:"rounded-2xl p-7 border border-white/10 bg-white/5 backdrop-blur-sm text-center",children:[c.jsx("p",{className:"text-2xl sm:text-3xl font-bold text-cs-secondary mb-3",children:r.title}),c.jsx("p",{className:"text-cs-text-light/80 leading-relaxed",children:r.description})]},r.title))}),c.jsx("p",{className:"text-xs text-cs-text-muted mt-6 text-center max-w-2xl mx-auto",children:c1})]})}),c.jsx("section",{id:"como-funciona",className:"cs-section bg-cs-ice scroll-mt-28",children:c.jsxs("div",{className:"max-w-5xl mx-auto",children:[c.jsxs("div",{className:"text-center max-w-2xl mx-auto mb-10 md:mb-14",children:[c.jsx("span",{className:"text-cs-accent font-semibold uppercase tracking-wide text-sm",children:"Passo a passo"}),c.jsx("h2",{className:"text-3xl sm:text-4xl font-bold text-cs-primary mt-3",children:"Como funciona a pré-análise"})]}),c.jsx("ol",{className:"relative border-l-2 border-cs-secondary/30 ml-3 sm:ml-4 space-y-6",children:lW.map((r,n)=>c.jsxs("li",{className:"relative pl-8 sm:pl-10",children:[c.jsx("span",{className:"absolute -left-[1.05rem] sm:-left-[1.15rem] top-0 flex items-center justify-center w-8 h-8 rounded-full bg-cs-secondary text-white font-bold text-sm shadow",children:n+1}),c.jsx("div",{className:"bg-white rounded-xl p-5 border border-border",children:c.jsx("p",{className:"font-medium text-cs-primary",children:r})})]},n))}),c.jsx("div",{className:"text-center mt-10",children:c.jsx(fe,{asChild:!0,size:"lg",className:"bg-cs-accent hover:bg-cs-accent/90 text-white font-semibold px-8 py-4 text-base shadow-lg",children:c.jsxs("a",{href:rC,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-2",children:[c.jsx(Ys,{className:"w-5 h-5"}),"Iniciar pré-análise no WhatsApp"]})})})]})}),c.jsx("section",{className:"cs-section",children:c.jsxs("div",{className:"max-w-6xl mx-auto",children:[c.jsxs("div",{className:"text-center max-w-3xl mx-auto mb-10 md:mb-12",children:[c.jsx("h2",{className:"text-3xl sm:text-4xl font-bold text-cs-primary mb-4",children:"Digital no processo. Humano na decisão."}),c.jsx("p",{className:"text-lg text-muted-foreground leading-relaxed",children:"Crédito imobiliário envolve valor alto, documentação e planejamento. Por isso, a CS Finance combina tecnologia, atendimento humano e comunicação clara para ajudar você a tomar uma decisão mais segura."})]}),c.jsx("div",{className:"grid grid-cols-2 lg:grid-cols-4 gap-4 md:gap-6",children:cW.map(r=>c.jsxs("div",{className:"flex flex-col items-center text-center gap-3 bg-white rounded-xl p-6 border border-border hover:shadow-lg transition-all duration-300",children:[c.jsx("span",{className:"flex items-center justify-center w-12 h-12 rounded-xl bg-cs-secondary/10 text-cs-secondary",children:c.jsx(r.icon,{className:"w-6 h-6"})}),c.jsx("p",{className:"font-semibold text-cs-primary",children:r.label})]},r.label))})]})}),c.jsx("section",{id:"duvidas",className:"cs-section bg-cs-ice scroll-mt-28",children:c.jsxs("div",{className:"max-w-4xl mx-auto",children:[c.jsxs("div",{className:"text-center mb-10 md:mb-12",children:[c.jsx("h2",{className:"text-3xl sm:text-4xl font-bold text-cs-primary mb-3",children:"Perguntas frequentes"}),c.jsx("p",{className:"text-lg text-muted-foreground",children:"Tire suas dúvidas sobre o crédito imobiliário CS Finance."})]}),c.jsx("div",{className:"bg-white rounded-2xl shadow-sm border border-border p-4 sm:p-6",children:c.jsx(xS,{type:"single",collapsible:!0,className:"w-full",children:nC.map((r,n)=>c.jsxs(Px,{value:`item-${n}`,children:[c.jsx(Mx,{className:"text-left text-cs-primary font-semibold hover:text-cs-secondary",children:r.q}),c.jsx(Ix,{className:"text-muted-foreground pt-2 leading-relaxed",children:r.a})]},n))})})]})}),c.jsx("section",{className:"cs-section text-cs-text-light",style:{background:"var(--gradient-cta)"},children:c.jsxs("div",{className:"max-w-3xl mx-auto text-center",children:[c.jsx(uw,{className:"w-12 h-12 text-cs-secondary mx-auto mb-5"}),c.jsx("h2",{className:"text-3xl sm:text-4xl font-bold mb-5",children:"Seu projeto imobiliário pode começar com uma conversa"}),c.jsx("p",{className:"text-lg text-cs-text-light/80 mb-8",children:"Fale com a CS Finance e entenda as possibilidades para comprar, construir ou investir com mais clareza e acompanhamento."}),c.jsx(fe,{asChild:!0,size:"lg",className:"bg-cs-accent hover:bg-cs-accent/90 text-white font-semibold px-8 py-4 text-base shadow-lg",children:c.jsxs("a",{href:tC,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-2",children:[c.jsx(Ys,{className:"w-5 h-5"}),"Falar com especialista no WhatsApp"]})}),c.jsx("p",{className:"text-xs text-cs-text-muted mt-6 max-w-xl mx-auto",children:c1})]})}),c.jsx(Ko,{})]})},fW=()=>c.jsxs("div",{className:"min-h-screen bg-background",children:[c.jsxs(Un,{children:[c.jsx("title",{children:"Política de Privacidade | CS Finance"}),c.jsx("meta",{name:"description",content:"Saiba como a CS Finance coleta, usa e protege seus dados pessoais, em conformidade com a LGPD."}),c.jsx("link",{rel:"canonical",href:"https://csfinance.app.br/privacy-policy"}),c.jsx("meta",{property:"og:title",content:"Política de Privacidade | CS Finance"}),c.jsx("meta",{property:"og:description",content:"Como a CS Finance coleta, usa e protege seus dados pessoais, em conformidade com a LGPD."}),c.jsx("meta",{property:"og:url",content:"https://csfinance.app.br/privacy-policy"}),c.jsx("meta",{property:"og:type",content:"website"}),c.jsx("meta",{property:"og:image",content:"https://csfinance.app.br/lovable-uploads/corporate-home.jpg"}),c.jsx("meta",{property:"twitter:card",content:"summary_large_image"}),c.jsx("meta",{property:"twitter:image",content:"https://csfinance.app.br/lovable-uploads/corporate-home.jpg"})]}),c.jsx(Go,{}),c.jsx("section",{className:"text-white py-16 md:py-20 pt-28 md:pt-32",style:{background:"var(--gradient-hero)"},children:c.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[c.jsx("div",{className:"mb-6",children:c.jsx(fe,{asChild:!0,variant:"ghost",className:"text-white hover:bg-white/10 mb-4",children:c.jsxs(is,{to:"/",className:"flex items-center gap-2",children:[c.jsx(Os,{className:"w-4 h-4"}),"Voltar ao início"]})})}),c.jsx("div",{className:"text-center",children:c.jsx("h1",{className:"text-3xl sm:text-4xl md:text-5xl font-bold",children:"Política de Privacidade"})})]})}),c.jsx("main",{className:"cs-section max-w-4xl mx-auto",children:c.jsxs("div",{className:"prose prose-lg max-w-none text-foreground space-y-6",children:[c.jsxs("section",{children:[c.jsx("h2",{className:"text-2xl font-semibold text-cs-primary mb-4",children:"1. Introdução"}),c.jsx("p",{children:"O CS Finance valoriza sua privacidade e está comprometido em proteger seus dados pessoais. Esta Política de Privacidade explica como coletamos, usamos, armazenamos e protegemos suas informações quando você utiliza nossos serviços financeiros."})]}),c.jsxs("section",{children:[c.jsx("h2",{className:"text-2xl font-semibold text-cs-primary mb-4",children:"2. Dados Coletados"}),c.jsx("p",{children:"Coletamos as seguintes informações:"}),c.jsxs("ul",{className:"list-disc ml-6 space-y-2",children:[c.jsx("li",{children:"Dados pessoais: nome, CPF, RG, data de nascimento"}),c.jsx("li",{children:"Informações de contato: telefone, e-mail, endereço"}),c.jsx("li",{children:"Dados financeiros: renda, movimentações bancárias"}),c.jsx("li",{children:"Informações de navegação: cookies, logs de acesso"})]})]}),c.jsxs("section",{children:[c.jsx("h2",{className:"text-2xl font-semibold text-cs-primary mb-4",children:"3. Uso dos Dados"}),c.jsx("p",{children:"Utilizamos seus dados para:"}),c.jsxs("ul",{className:"list-disc ml-6 space-y-2",children:[c.jsx("li",{children:"Prestação de serviços financeiros"}),c.jsx("li",{children:"Análise de crédito e risco"}),c.jsx("li",{children:"Cumprimento de obrigações legais e regulatórias"}),c.jsx("li",{children:"Melhoria de nossos produtos e serviços"}),c.jsx("li",{children:"Comunicação sobre produtos e ofertas"})]})]}),c.jsxs("section",{children:[c.jsx("h2",{className:"text-2xl font-semibold text-cs-primary mb-4",children:"4. Compartilhamento de Dados"}),c.jsx("p",{children:"Seus dados podem ser compartilhados com órgãos reguladores, bureaus de crédito, parceiros comerciais e prestadores de serviços, sempre respeitando as normas da Lei Geral de Proteção de Dados (LGPD)."})]}),c.jsxs("section",{children:[c.jsx("h2",{className:"text-2xl font-semibold text-cs-primary mb-4",children:"5. Segurança"}),c.jsx("p",{children:"Implementamos medidas técnicas e organizacionais para proteger seus dados contra acesso não autorizado, alteração, divulgação ou destruição."})]}),c.jsxs("section",{children:[c.jsx("h2",{className:"text-2xl font-semibold text-cs-primary mb-4",children:"6. Seus Direitos"}),c.jsx("p",{children:"Você tem direito a:"}),c.jsxs("ul",{className:"list-disc ml-6 space-y-2",children:[c.jsx("li",{children:"Acesso aos seus dados"}),c.jsx("li",{children:"Correção de dados inexatos"}),c.jsx("li",{children:"Exclusão de dados desnecessários"}),c.jsx("li",{children:"Portabilidade dos dados"}),c.jsx("li",{children:"Revogação do consentimento"})]})]}),c.jsxs("section",{children:[c.jsx("h2",{className:"text-2xl font-semibold text-cs-primary mb-4",children:"7. 
633Contato"}),c.jsx("p",{children:"Para exercer seus direitos ou esclarecer dúvidas sobre esta política, entre em contato através do e-mail: [email protected] ou telefone 0800 591 4353."})]}),c.jsx("p",{className:"text-sm text-muted-foreground",children:"Última atualização: Dezembro de 2024"})]})}),c.jsx(Ko,{})]}),hW=()=>c.jsxs("div",{className:"min-h-screen bg-background",children:[c.jsxs(Un,{children:[c.jsx("title",{children:"Termos de Usuário | CS Finance"}),c.jsx("meta",{name:"description",content:"Conheça os Termos de Usuário da CS Finance: condições de uso, elegibilidade e responsabilidades dos serviços financeiros."}),c.jsx("link",{rel:"canonical",href:"https://csfinance.app.br/terms-of-use"}),c.jsx("meta",{property:"og:title",content:"Termos de Usuário | CS Finance"}),c.jsx("meta",{property:"og:description",content:"Condições de uso, elegibilidade e responsabilidades dos serviços financeiros da CS Finance."}),c.jsx("meta",{property:"og:url",content:"https://csfinance.app.br/terms-of-use"}),c.jsx("meta",{property:"og:type",content:"website"}),c.jsx("meta",{property:"og:image",content:"https://csfinance.app.br/lovable-uploads/corporate-home.jpg"}),c.jsx("meta",{property:"twitter:card",content:"summary_large_image"}),c.jsx("meta",{property:"twitter:image",content:"https://csfinance.app.br/lovable-uploads/corporate-home.jpg"})]}),c.jsx(Go,{}),c.jsx("section",{className:"text-white py-16 md:py-20 pt-28 md:pt-32",style:{background:"var(--gradient-hero)"},children:c.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[c.jsx("div",{className:"mb-6",children:c.jsx(fe,{asChild:!0,variant:"ghost",className:"text-white hover:bg-white/10 mb-4",children:c.jsxs(is,{to:"/",className:"flex items-center gap-2",children:[c.jsx(Os,{className:"w-4 h-4"}),"Voltar ao início"]})})}),c.jsx("div",{className:"text-center",children:c.jsx("h1",{className:"text-3xl sm:text-4xl md:text-5xl font-bold",children:"Termos de Usuário"})})]})}),c.jsx("main",{className:"cs-section max-w-4xl mx-auto",children:c.jsxs("div",{className:"prose prose-lg max-w-none text-foreground space-y-6",children:[c.jsxs("section",{children:[c.jsx("h2",{className:"text-2xl font-semibold text-cs-primary mb-4",children:"1. Aceitação dos Termos"}),c.jsx("p",{children:"Ao utilizar os serviços do CS Finance, você concorda em cumprir estes Termos de Usuário. Se não concordar com qualquer parte destes termos, não utilize nossos serviços."})]}),c.jsxs("section",{children:[c.jsx("h2",{className:"text-2xl font-semibold text-cs-primary mb-4",children:"2. Serviços Oferecidos"}),c.jsx("p",{children:"O CS Finance oferece:"}),c.jsxs("ul",{className:"list-disc ml-6 space-y-2",children:[c.jsx("li",{children:"Conta digital gratuita"}),c.jsx("li",{children:"Cartão de débito e crédito"}),c.jsx("li",{children:"PIX e transferências"}),c.jsx("li",{children:"Empréstimos consignados"}),c.jsx("li",{children:"Antecipação de recebíveis"}),c.jsx("li",{children:"Maquininhas de cartão"})]})]}),c.jsxs("section",{children:[c.jsx("h2",{className:"text-2xl font-semibold text-cs-primary mb-4",children:"3. Elegibilidade"}),c.jsx("p",{children:"Para utilizar nossos serviços, você deve:"}),c.jsxs("ul",{className:"list-disc ml-6 space-y-2",children:[c.jsx("li",{children:"Ser maior de 18 anos"}),c.jsx("li",{children:"Possuir CPF válido"}),c.jsx("li",{children:"Residir no Brasil"}),c.jsx("li",{children:"Fornecer documentos e informações verdadeiras"})]})]}),c.jsxs("section",{children:[c.jsx("h2",{className:"text-2xl font-semibold text-cs-primary mb-4",children:"4. Responsabilidades do Usuário"}),c.jsx("p",{children:"Você se compromete a:"}),c.jsxs("ul",{className:"list-disc ml-6 space-y-2",children:[c.jsx("li",{children:"Manter suas informações atualizadas"}),c.jsx("li",{children:"Proteger seus dados de acesso"}),c.jsx("li",{children:"Usar os serviços de forma legal e ética"}),c.jsx("li",{children:"Cumprir todas as obrigações financeiras"})]})]}),c.jsxs("section",{children:[c.jsx("h2",{className:"text-2xl font-semibold text-cs-primary mb-4",children:"5. Taxas e Tarifas"}),c.jsx("p",{children:"As taxas e tarifas são transparentes e disponibilizadas no momento da contratação. Não cobramos taxas escondidas ou surpresas."})]}),c.jsxs("section",{children:[c.jsx("h2",{className:"text-2xl font-semibold text-cs-primary mb-4",children:"6. Encerramento da Conta"}),c.jsx("p",{children:"Tanto você quanto o CS Finance podem encerrar a conta a qualquer momento, respeitando os prazos e condições estabelecidos."})]}),c.jsxs("section",{children:[c.jsx("h2",{className:"text-2xl font-semibold text-cs-primary mb-4",children:"7. Limitação de Responsabilidade"}),c.jsx("p",{children:"O CS Finance não se responsabiliza por danos indiretos, perdas de lucros ou consequências de uso inadequado dos serviços."})]}),c.jsxs("section",{children:[c.jsx("h2",{className:"text-2xl font-semibold text-cs-primary mb-4",children:"8. Alterações nos Termos"}),c.jsx("p",{children:"Podemos alterar estes termos a qualquer momento. As alterações serão comunicadas com antecedência adequada."})]}),c.jsxs("section",{children:[c.jsx("h2",{className:"text-2xl font-semibold text-cs-primary mb-4",children:"9. Lei Aplicável"}),c.jsx("p",{children:"Estes termos são regidos pela legislação brasileira e eventuais disputas serão resolvidas no foro da comarca de São Paulo/SP."})]}),c.jsxs("section",{children:[c.jsx("h2",{className:"text-2xl font-semibold text-cs-primary mb-4",children:"10. Contato"}),c.jsx("p",{children:"Para dúvidas sobre estes termos, entre em contato: [email protected] ou 0800 591 4353."})]}),c.jsx("p",{className:"text-sm text-muted-foreground",children:"Última atualização: Dezembro de 2024"})]})}),c.jsx(Ko,{})]}),pW=()=>c.jsxs("div",{className:"min-h-screen bg-background",children:[c.jsxs(Un,{children:[c.jsx("title",{children:"Proteção de Dados | CS Finance"}),c.jsx("meta",{name:"description",content:"Compromisso da CS Finance com a LGPD: bases legais, segurança da informação e direitos dos t
633itulares de dados."}),c.jsx("link",{rel:"canonical",href:"https://csfinance.app.br/data-protection"}),c.jsx("meta",{property:"og:title",content:"Proteção de Dados | CS Finance"}),c.jsx("meta",{property:"og:description",content:"Compromisso da CS Finance com a LGPD: bases legais, segurança e direitos dos titulares de dados."}),c.jsx("meta",{property:"og:url",content:"https://csfinance.app.br/data-protection"}),c.jsx("meta",{property:"og:type",content:"website"}),c.jsx("meta",{property:"og:image",content:"https://csfinance.app.br/lovable-uploads/corporate-home.jpg"}),c.jsx("meta",{property:"twitter:card",content:"summary_large_image"}),c.jsx("meta",{property:"twitter:image",content:"https://csfinance.app.br/lovable-uploads/corporate-home.jpg"})]}),c.jsx(Go,{}),c.jsx("section",{className:"text-white py-16 md:py-20 pt-28 md:pt-32",style:{background:"var(--gradient-hero)"},children:c.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[c.jsx("div",{className:"mb-6",children:c.jsx(fe,{asChild:!0,variant:"ghost",className:"text-white hover:bg-white/10 mb-4",children:c.jsxs(is,{to:"/",className:"flex items-center gap-2",children:[c.jsx(Os,{className:"w-4 h-4"}),"Voltar ao início"]})})}),c.jsx("div",{className:"text-center",children:c.jsx("h1",{className:"text-3xl sm:text-4xl md:text-5xl font-bold",children:"Proteção de Dados"})})]})}),c.jsx("main",{className:"cs-section max-w-4xl mx-auto",children:c.jsxs("div",{className:"prose prose-lg max-w-none text-foreground space-y-6",children:[c.jsxs("section",{children:[c.jsx("h2",{className:"text-2xl font-semibold text-cs-primary mb-4",children:"1. Compromisso com a LGPD"}),c.jsx("p",{children:"O CS Finance está em total conformidade com a Lei Geral de Proteção de Dados (LGPD - Lei 13.709/2018) e adota as melhores práticas para garantir a proteção dos dados pessoais de nossos clientes."})]}),c.jsxs("section",{children:[c.jsx("h2",{className:"text-2xl font-semibold text-cs-primary mb-4",children:"2. Bases Legais para Tratamento"}),c.jsx("p",{children:"Tratamos seus dados com base nas seguintes bases legais:"}),c.jsxs("ul",{className:"list-disc ml-6 space-y-2",children:[c.jsx("li",{children:"Consentimento do titular"}),c.jsx("li",{children:"Cumprimento de obrigação legal ou regulatória"}),c.jsx("li",{children:"Execução de contrato"}),c.jsx("li",{children:"Exercício regular de direitos"}),c.jsx("li",{children:"Proteção da vida ou incolumidade física"}),c.jsx("li",{children:"Legítimo interesse"})]})]}),c.jsxs("section",{children:[c.jsx("h2",{className:"text-2xl font-semibold text-cs-primary mb-4",children:"3. Categorias de Dados"}),c.jsx("p",{children:"Tratamos as seguintes categorias de dados:"}),c.jsxs("ul",{className:"list-disc ml-6 space-y-2",children:[c.jsxs("li",{children:[c.jsx("strong",{children:"Dados pessoais:"})," informações que identificam ou podem identificar você"]}),c.jsxs("li",{children:[c.jsx("strong",{children:"Dados sensíveis:"})," dados biométricos para autenticação"]}),c.jsxs("li",{children:[c.jsx("strong",{children:"Dados financeiros:"})," informações sobre renda, patrimônio e movimentações"]}),c.jsxs("li",{children:[c.jsx("strong",{children:"Dados de navegação:"})," informações sobre o uso de nossos canais digitais"]})]})]}),c.jsxs("section",{children:[c.jsx("h2",{className:"text-2xl font-semibold text-cs-primary mb-4",children:"4. Medidas de Segurança"}),c.jsx("p",{children:"Implementamos medidas técnicas e organizacionais como:"}),c.jsxs("ul",{className:"list-disc ml-6 space-y-2",children:[c.jsx("li",{children:"Criptografia de dados em trânsito e em repouso"}),c.jsx("li",{children:"Controles de acesso baseados em perfis"}),c.jsx("li",{children:"Monitoramento contínuo de segurança"}),c.jsx("li",{children:"Treinamento regular da equipe"}),c.jsx("li",{children:"Auditorias internas e externas"})]})]}),c.jsxs("section",{children:[c.jsx("h2",{className:"text-2xl font-semibold text-cs-primary mb-4",children:"5. Retenção de Dados"}),c.jsx("p",{children:"Mantemos seus dados pelo tempo necessário para cumprir as finalidades para as quais foram coletados, respeitando os prazos legais e regulatórios a
633plicáveis ao setor financeiro."})]}),c.jsxs("section",{children:[c.jsx("h2",{className:"text-2xl font-semibold text-cs-primary mb-4",children:"6. Transferência Internacional"}),c.jsx("p",{children:"Eventuais transferências internacionais de dados são realizadas apenas para países com nível adequado de proteção ou mediante garantias específicas de proteção."})]}),c.jsxs("section",{children:[c.jsx("h2",{className:"text-2xl font-semibold text-cs-primary mb-4",children:"7. Direitos dos Titulares"}),c.jsx("p",{children:"Você pode exercer os seguintes direitos:"}),c.jsxs("ul",{className:"list-disc ml-6 space-y-2",children:[c.jsx("li",{children:"Confirmação da existência de tratamento"}),c.jsx("li",{children:"Acesso aos dados"}),c.jsx("li",{children:"Correção de dados incompletos, inexatos ou desatualizados"}),c.jsx("li",{children:"Anonimização, bloqueio ou eliminação"}),c.jsx("li",{children:"Portabilidade dos dados"}),c.jsx("li",{children:"Eliminação dos dados tratados com consentimento"}),c.jsx("li",{children:"Informação sobre compartilhamento"}),c.jsx("li",{children:"Revogação do consentimento"})]})]}),c.jsxs("section",{children:[c.jsx("h2",{className:"text-2xl font-semibold text-cs-primary mb-4",children:"8. Canal de Comunicação"}),c.jsx("p",{children:"Para exercer seus direitos ou relatar incidentes de segurança:"}),c.jsxs("ul",{className:"list-disc ml-6 space-y-2",children:[c.jsx("li",{children:"E-mail: [email protected]"}),c.jsx("li",{children:"Telefone: 0800 591 4353"}),c.jsx("li",{children:'Portal do cliente: seção "Proteção de Dados"'})]})]}),c.jsxs("section",{children:[c.jsx("h2",{className:"text-2xl font-semibold text-cs-primary mb-4",children:"9. Encarregado de Dados (DPO)"}),c.jsx("p",{children:"Nosso Encarregado de Proteção de Dados está disponível para esclarecer dúvidas e receber comunicações dos titulares sobre o tratamento de dados pessoais."})]}),c.jsxs("section",{children:[c.jsx("h2",{className:"text-2xl font-semibold text-cs-primary mb-4",children:"10. Autoridade Nacional"}),c.jsx("p",{children:"Você também pode apresentar reclamações à Autoridade Nacional de Proteção de Dados (ANPD) sobre o tratamento de seus dados pessoais."})]}),c.jsx("p",{className:"text-sm text-muted-foreground",children:"Última atualização: Dezembro de 2024"})]})}),c.jsx(Ko,{})]}),mW=()=>{const t={"@context":"https://schema.org","@type":"FAQPage",mainEntity:[]},e=[{question:"Como abrir uma conta no CS Finance?",answer:"Abrir uma conta no CS Finance é simples e 100% digital. Basta clicar em 'Abrir conta', preencher seus dados, enviar os documentos solicitados e pronto! Sua conta fica pronta em poucos minutos."},{question:"A conta no CS Finance tem anuidade?",answer:"Não! A conta no CS Finance é 100% gratuita, sem taxa de abertura, sem mensalidade e sem surpresas. Você só paga pelo que usar, com total transparência."},{question:"Quais são as taxas do CS Finance?",answer:"Somos transparentes com nossas taxas. PIX é ilimitado e gratuito, TED e DOC têm valores competitivos. Consulte nossa tabela completa de tarifas no app ou site."},{question:"Como funciona o cartão de crédito?",answer:"Nosso cartão de crédito não tem anuidade e oferece limite compatível com seu perfil financeiro. Você pode solicitar diretamente pelo app após a abertura da conta."},{question:"Posso usar o cartão no exterior?",answer:"Sim! Nosso cartão tem bandeira internacional e pode ser usado em qualquer estabelecimento do mundo. Consulte as taxas de câmbio no app."},{question:"Como funciona o empréstimo consignado?",answer:"O empréstimo consignado CS Finance é oferecido para funcionários de empresas conveniadas. As parcelas são descontadas diretamente do salário, garantindo taxas mais baixas."},{question:"O que é CS Risco Sacado?",answer:"É uma modalidade que permite antecipar recebíveis com base no risco do sacado (quem vai pagar), oferecendo melhores condições para fornecedores e empresas."},{question:"Como funciona a maquininha CS Finance?",answer:"Nossa maquininha não tem aluguel, sem fidelidade e com taxas transparentes. Você recebe na hora e pode começar a vender imediatamente."}
633,{question:"O CS Finance é seguro?",answer:"Sim! Somos uma instituição financeira regulamentada pelo Banco Central do Brasil. Seus dados e dinheiro estão protegidos por tecnologia de ponta e criptografia."},{question:"Como falar com o atendimento?",answer:"Você pode falar conosco pelo telefone 0800 591 4353, WhatsApp, e-mail [email protected] ou pelo chat no app. Nosso atendimento é humanizado, não robôs!"},{question:"Posso encerrar minha conta quando quiser?",answer:"Sim! Você tem total liberdade para encerrar sua conta quando desejar, sem burocracias ou taxas de cancelamento."},{question:"O CS Finance tem agências físicas?",answer:"Somos um banco 100% digital, mas oferecemos atendimento humanizado por telefone, chat e WhatsApp. Nossa proposta é ser prático e eficiente."}];return e.forEach(r=>{t.mainEntity.push({"@type":"Question",name:r.question,acceptedAnswer:{"@type":"Answer",text:r.answer}})}),c.jsxs("div",{className:"min-h-screen bg-background",children:[c.jsxs(Un,{children:[c.jsx("title",{children:"Perguntas Frequentes | CS Finance"}),c.jsx("meta",{name:"description",content:"Tire suas dúvidas sobre a CS Finance: conta digital, crédito, cartão, empréstimo consignado, CS Risco Sacado e atendimento."}),c.jsx("meta",{name:"keywords",content:"FAQ CS Finance, perguntas frequentes, conta digital, crédito, empréstimo consignado, CS Risco Sacado"}),c.jsx("link",{rel:"canonical",href:"https://csfinance.app.br/faq"}),c.jsx("meta",{property:"og:title",content:"Perguntas Frequentes | CS Finance"}),c.jsx("meta",{property:"og:description",content:"Respostas para as principais dúvidas sobre conta digital, crédito e serviços da CS Finance."}),c.jsx("meta",{property:"og:url",content:"https://csfinance.app.br/faq"}),c.jsx("meta",{property:"og:type",content:"website"}),c.jsx("meta",{property:"og:image",content:"https://csfinance.app.br/lovable-uploads/corporate-home.jpg"}),c.jsx("meta",{property:"twitter:card",content:"summary_large_image"}),c.jsx("meta",{property:"twitter:image",content:"https://csfinance.app.br/lovable-uploads/corporate-home.jpg"}),c.jsx("script",{type:"application/ld+json",children:JSON.stringify(t)}),c.jsx("script",{type:"application/ld+json",children:JSON.stringify({"@context":"https://schema.org","@type":"BreadcrumbList",itemListElement:[{"@type":"ListItem",position:1,name:"Início",item:"https://csfinance.app.br/"},{"@type":"ListItem",position:2,name:"Perguntas Frequentes",item:"https://csfinance.app.br/faq"}]})})]}),c.jsx(Go,{}),c.jsx("section",{className:"text-white py-16 md:py-20 pt-28 md:pt-32",style:{background:"var(--gradient-hero)"},children:c.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[c.jsx("div",{className:"mb-6",children:c.jsx(fe,{asChild:!0,variant:"ghost",className:"text-white hover:bg-white/10 mb-4",children:c.jsxs(is,{to:"/",className:"flex items-center gap-2",children:[c.jsx(Os,{className:"w-4 h-4"}),"Voltar ao início"]})})}),c.jsxs("div",{className:"text-center",children:[c.jsx("h1",{className:"text-3xl sm:text-4xl md:text-5xl font-bold mb-4",children:"Perguntas Frequentes"}),c.jsx("p",{className:"text-lg md:text-xl max-w-2xl mx-auto text-white/80",children:"Respostas para as principais dúvidas sobre a CS Finance"})]})]})}),c.jsxs("main",{className:"cs-section max-w-4xl mx-auto",children:[c.jsx(xS,{type:"single",collapsible:!0,className:"space-y-4",children:e.map((r,n)=>c.jsxs(Px,{value:`item-${n}`,className:"bg-white rounded-lg border border-border px-6",children:[c.jsx(Mx,{className:"text-left font-semibold text-cs-primary hover:text-cs-secondary",children:r.question}),c.jsx(Ix,{className:"text-muted-foreground leading-relaxed",children:r.answer})]},n))}),c.jsxs("div",{className:"text-center mt-12",children:[c.jsx("p",{className:"text-muted-foreground mb-4",children:"Não encontrou sua resposta?"}),c.jsx(fe,{asChild:!0,className:"bg-cs-accent hover:bg-cs-accent/90 text-white",children:c.jsx("a",{href:"http://wa.me/558005914353?text=Olá! Tenho uma dúvida sobre os serviços do CS Finance",target:"_blank",rel:"noopener noreferrer",children:"Fale Conosco pelo WhatsApp"})})]})]}),c.jsx(Ko,{})]})},gW="modulepreload",xW=function(t){return"/"+t},sC={},ip=function(e,r,n){let s=Promise.resolve();if(r&&r.length>0){document.getElementsByTagName("link");const o=document.querySelector("meta[property=csp-nonce]"),a=(o==null?void 0:o.nonce)||(o==null?void 0:o.getAttribute("nonce"));s=Promise.allSettled(r.map(l=>{if(l=xW(l),l in sC)return;sC[l]=!0;const u=l.endsWith(".css"),d=u?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${l}"]${d}`))return;const f=document.createElement("link");if(f.rel=u?"stylesheet":gW,u||(f.as="script"),f.crossOrigin="",f.href=l,a&&f.setAttribute("nonce",a),document.head.appendChild(f),u)return new Promise((h,p)=>{f.addEventListener("load",h),f.addEventListener("error",()=>p(new Error(`Unable to preload CSS for ${l}`)))})}))}function i(o){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=o,window.dispatchEvent(a),!a.defaultPrevented)throw o}return s.then(o=>{for(const a of o||[])a.status==="rejected"&&i(a.reason);return e().catch(i)})},vW=t=>{let e;return t?e=t:typeof fetch>"u"?e=(...r)=>ip(async()=>{const{default:n}=await Promise.resolve().then(()=>Cd);return{default:n}},void 0).then(({default:n})=>n(...r)):e=fetch,(...r)=>e(...r)};
633class vS extends Error{constructor(e,r="FunctionsError",n){super(e),this.name=r,this.context=n}}class yW extends vS{constructor(e){super("Failed to send a request to the Edge Function","FunctionsFetchError",e)}}class iC extends vS{constructor(e){super("Relay Error invoking the Edge Function","FunctionsRelayError",e)}}class oC extends vS{constructor(e){super("Edge Function returned a non-2xx status code","FunctionsHttpError",e)}}var Nw;(function(t){t.Any="any",t.ApNortheast1="ap-northeast-1",t.ApNortheast2="ap-northeast-2",t.ApSouth1="ap-south-1",t.ApSoutheast1="ap-southeast-1",t.ApSoutheast2="ap-southeast-2",t.CaCentral1="ca-central-1",t.EuCentral1="eu-central-1",t.EuWest1="eu-west-1",t.EuWest2="eu-west-2",t.EuWest3="eu-west-3",t.SaEast1="sa-east-1",t.UsEast1="us-east-1",t.UsWest1="us-west-1",t.UsWest2="us-west-2"})(Nw||(Nw={}));var wW=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(d){try{u(n.next(d))}catch(f){o(f)}}function l(d){try{u(n.throw(d))}catch(f){o(f)}}function u(d){d.done?i(d.value):s(d.value).then(a,l)}u((n=n.apply(t,e||[])).next())})};class bW{constructor(e,{headers:r={},customFetch:n,region:s=Nw.Any}={}){this.url=e,this.headers=r,this.region=s,this.fetch=vW(n)}setAuth(e){this.headers.Authorization=`Bearer ${e}`}invoke(e,r={}){var n;return wW(this,void 0,void 0,function*(){try{const{headers:s,method:i,body:o}=r;let a={},{region:l}=r;l||(l=this.region);const u=new URL(`${this.url}/${e}`);l&&l!=="any"&&(a["x-region"]=l,u.searchParams.set("forceFunctionRegion",l));let d;o&&(s&&!Object.prototype.hasOwnProperty.call(s,"Content-Type")||!s)&&(typeof Blob<"u"&&o instanceof Blob||o instanceof ArrayBuffer?(a["Content-Type"]="application/octet-stream",d=o):typeof o=="string"?(a["Content-Type"]="text/plain",d=o):typeof FormData<"u"&&o instanceof FormData?d=o:(a["Content-Type"]="application/json",d=JSON.stringify(o)));const f=yield this.fetch(u.toString(),{method:i||"POST",headers:Object.assign(Object.assign(Object.assign({},a),this.headers),s),body:d}).catch(m=>{throw new yW(m)}),h=f.headers.get("x-relay-error");if(h&&h==="true")throw new iC(f);if(!f.ok)throw new oC(f);let p=((n=f.headers.get("Content-Type"))!==null&&n!==void 0?n:"text/plain").split(";")[0].trim(),g;return p==="application/json"?g=yield f.json():p==="application/octet-stream"?g=yield f.blob():p==="text/event-stream"?g=f:p==="multipart/form-data"?g=yield f.formData():g=yield f.text(),{data:g,error:null,response:f}}catch(s){return{data:null,error:s,response:s instanceof oC||s instanceof iC?s.context:void 0}}})}}var Zn={},yS={},Dx={},op={},Lx={},Fx={},SW=function(){if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("unable to locate global object")},ed=SW();const _W=ed.fetch,mP=ed.fetch.bind(ed),gP=ed.Headers,EW=ed.Request,TW=ed.Response,Cd=Object.freeze(Object.defineProperty({__proto__:null,Headers:gP,Request:EW,Response:TW,default:mP,fetch:_W},Symbol.toStringTag,{value:"Module"})),CW=Y5(Cd);var Bx={};Object.defineProperty(Bx,"__esModule",{value:!0});let kW=class extends Error{constructor(e){super(e.message),this.name="PostgrestError",this.details=e.details,this.hint=e.hint,this.co
633de=e.code}};Bx.default=kW;var xP=ri&&ri.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Fx,"__esModule",{value:!0});const NW=xP(CW),AW=xP(Bx);let jW=class{constructor(e){var r,n;this.shouldThrowOnError=!1,this.method=e.method,this.url=e.url,this.headers=new Headers(e.headers),this.schema=e.schema,this.body=e.body,this.shouldThrowOnError=(r=e.shouldThrowOnError)!==null&&r!==void 0?r:!1,this.signal=e.signal,this.isMaybeSingle=(n=e.isMaybeSingle)!==null&&n!==void 0?n:!1,e.fetch?this.fetch=e.fetch:typeof fetch>"u"?this.fetch=NW.default:this.fetch=fetch}throwOnError(){return this.shouldThrowOnError=!0,this}setHeader(e,r){return this.headers=new Headers(this.headers),this.headers.set(e,r),this}then(e,r){this.schema===void 0||(["GET","HEAD"].includes(this.method)?this.headers.set("Accept-Profile",this.schema):this.headers.set("Content-Profile",this.schema)),this.method!=="GET"&&this.method!=="HEAD"&&this.headers.set("Content-Type","application/json");const n=this.fetch;let s=n(this.url.toString(),{method:this.method,headers:this.headers,body:JSON.stringify(this.body),signal:this.signal}).then(async i=>{var o,a,l,u;let d=null,f=null,h=null,p=i.status,g=i.statusText;if(i.ok){if(this.method!=="HEAD"){const y=await i.text();y===""||(this.headers.get("Accept")==="text/csv"||this.headers.get("Accept")&&(!((o=this.headers.get("Accept"))===null||o===void 0)&&o.includes("application/vnd.pgrst.plan+text"))?f=y:f=JSON.parse(y))}const x=(a=this.headers.get("Prefer"))===null||a===void 0?void 0:a.match(/count=(exact|planned|estimated)/),v=(l=i.headers.get("content-range"))===null||l===void 0?void 0:l.split("/");x&&v&&v.length>1&&(h=parseInt(v[1])),this.isMaybeSingle&&this.method==="GET"&&Array.isArray(f)&&(f.length>1?(d={code:"PGRST116",details:`Results contain ${f.length} rows, application/vnd.pgrst.object+json requires 1 row`,hint:null,message:"JSON object requested, multiple (or no) rows returned"},f=null,h=null,p=406,g="Not Acceptable"):f.length===1?f=f[0]:f=null)}else{const x=await i.text();try{d=JSON.parse(x),Array.isArray(d)&&i.status===404&&(f=[],d=null,p=200,g="OK")}catch{i.status===404&&x===""?(p=204,g="No Content"):d={message:x}}if(d&&this.isMaybeSingle&&(!((u=d==null?void 0:d.details)===null||u===void 0)&&u.includes("0 rows"))&&(d=null,p=200,g="OK"),d&&this.shouldThrowOnError)throw new AW.default(d)}return{error:d,data:f,count:h,status:p,statusText:g}});return this.shouldThrowOnError||(s=s.catch(i=>{var o,a,l;return{error:{message:`${(o=i==null?void 0:i.name)!==null&&o!==void 0?o:"FetchError"}: ${i==null?void 0:i.message}`,details:`${(a=i==null?void 0:i.stack)!==null&&a!==void 0?a:""}`,hint:"",code:`${(l=i==null?void 0:i.code)!==null&&l!==void 0?l:""}`},data:null,count:null,status:0,statusText:""}})),s.then(e,r)}returns(){return this}overrideTypes(){return this}};Fx.default=jW;var RW=ri&&ri.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Lx,"__esModule",{value:!0});const OW=RW(Fx);let PW=class extends OW.default{select(e){let r=!1;const n=(e??"*").split("").map(s=>/\s/.test(s)&&!r?"":(s==='"'&&(r=!r),s)).join("");return this.url.searchParams.set("select",n),this.headers.append("Prefer","return=representation"),this}order(e,{ascending:r=!0,nullsFirst:n,foreignTable:s,referencedTable:i=s}={}){const o=i?`${i}.order`:"order",a=this.url.searchParams.get(o);return this.url.searchParams.set(o,`${a?`${a},`:""}${e}.${r?"asc":"desc"}${n===void 0?"":n?".nullsfirst":".nullslast"}`),this}limit(e,{foreignTable:r,referencedTable:n=r}={}){const s=typeof n>"u"?"limit":`${n}.limit`;return this.url.searchParams.set(s,`${e}`),this}range(e,r,{foreignTable:n,referencedTable:s=n}={}){const i=typeof s>"u"?"offset":`${s}.offset`,o=typeof s>"u"?"limit":`${s}.limit`;return this.url.searchParams.set(i,`${e}`),this.url.searchParams.set(o,`${r-e+1}`),this}abortSignal(e){return this.signal=e,this}single(){return this.headers.set("Accept","application/vnd.pgrst.object+json"),this}maybeSingle(){return this.method==="GET"?this.headers.set("Accept","application/json"):this.headers.set("Accept","application/vnd.pgrst.object+json"),this.isMaybeSingle=!0,this}csv(){return this.headers.set("Accept","text/csv"),this}geojson(){return this.headers.set("Accept","application/geo+json"),this}
633explain({analyze:e=!1,verbose:r=!1,settings:n=!1,buffers:s=!1,wal:i=!1,format:o="text"}={}){var a;const l=[e?"analyze":null,r?"verbose":null,n?"settings":null,s?"buffers":null,i?"wal":null].filter(Boolean).join("|"),u=(a=this.headers.get("Accept"))!==null&&a!==void 0?a:"application/json";return this.headers.set("Accept",`application/vnd.pgrst.plan+${o}; for="${u}"; options=${l};`),o==="json"?this:this}rollback(){return this.headers.append("Prefer","tx=rollback"),this}returns(){return this}maxAffected(e){return this.headers.append("Prefer","handling=strict"),this.headers.append("Prefer",`max-affected=${e}`),this}};Lx.default=PW;var MW=ri&&ri.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(op,"__esModule",{value:!0});const IW=MW(Lx);let DW=class extends IW.default{eq(e,r){return this.url.searchParams.append(e,`eq.${r}`),this}neq(e,r){return this.url.searchParams.append(e,`neq.${r}`),this}gt(e,r){return this.url.searchParams.append(e,`gt.${r}`),this}gte(e,r){return this.url.searchParams.append(e,`gte.${r}`),this}lt(e,r){return this.url.searchParams.append(e,`lt.${r}`),this}lte(e,r){return this.url.searchParams.append(e,`lte.${r}`),this}like(e,r){return this.url.searchParams.append(e,`like.${r}`),this}likeAllOf(e,r){return this.url.searchParams.append(e,`like(all).{${r.join(",")}}`),this}likeAnyOf(e,r){return this.url.searchParams.append(e,`like(any).{${r.join(",")}}`),this}ilike(e,r){return this.url.searchParams.append(e,`ilike.${r}`),this}ilikeAllOf(e,r){return this.url.searchParams.append(e,`ilike(all).{${r.join(",")}}`),this}ilikeAnyOf(e,r){return this.url.searchParams.append(e,`ilike(any).{${r.join(",")}}`),this}is(e,r){return this.url.searchParams.append(e,`is.${r}`),this}in(e,r){const n=Array.from(new Set(r)).map(s=>typeof s=="string"&&new RegExp("[,()]").test(s)?`"${s}"`:`${s}`).join(",");return this.url.searchParams.append(e,`in.(${n})`),this}contains(e,r){return typeof r=="string"?this.url.searchParams.append(e,`cs.${r}`):Array.isArray(r)?this.url.searchParams.append(e,`cs.{${r.join(",")}}`):this.url.searchParams.append(e,`cs.${JSON.stringify(r)}`),this}containedBy(e,r){return typeof r=="string"?this.url.searchParams.append(e,`cd.${r}`):Array.isArray(r)?this.url.searchParams.append(e,`cd.{${r.join(",")}}`):this.url.searchParams.append(e,`cd.${JSON.stringify(r)}`),this}rangeGt(e,r){return this.url.searchParams.append(e,`sr.${r}`),this}rangeGte(e,r){return this.url.searchParams.append(e,`nxl.${r}`),this}rangeLt(e,r){return this.url.searchParams.append(e,`sl.${r}`),this}rangeLte(e,r){return this.url.searchParams.append(e,`nxr.${r}`),this}rangeAdjacent(e,r){return this.url.searchParams.append(e,`adj.${r}`),this}overlaps(e,r){return typeof r=="string"?this.url.searchParams.append(e,`ov.${r}`):this.url.searchParams.append(e,`ov.{${r.join(",")}}`),this}textSearch(e,r,{config:n,type:s}={}){let i="";s==="plain"?i="pl":s==="phrase"?i="ph":s==="websearch"&&(i="w");const o=n===void 0?"":`(${n})`;return this.url.searchParams.append(e,`${i}fts${o}.${r}`),this}match(e){return Object.entries(e).forEach(([r,n])=>{this.url.searchParams.append(r,`eq.${n}`)}),this}not(e,r,n){return this.url.searchParams.append(e,`not.${r}.${n}`),this}or(e,{foreignTable:r,referencedTable:n=r}={}){const s=n?`${n}.or`:"or";return this.url.searchParams.append(s,`(${e})`),this}filter(e,r,n){return this.url.searchParams.append(e,`${r}.${n}`),this}};op.default=DW;var LW=ri&&ri.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Dx,"__esModule",{value:!0});const Kd=LW(op);let FW=class{constructor(e,{headers:r={},schema:n,fetch:s}){this.url=e,this.headers=new Headers(r),this.schema=n,this.fetch=s}select(e,{head:r=!1,count:n}={}){const s=r?"HEAD":"GET";let i=!1;const o=(e??"*").split("").map(a=>/\s/.test(a)&&!i?"":(a==='"'&&(i=!i),a)).join("");return this.url.searchParams.set("select",o),n&&this.headers.append("Prefer",`count=${n}`),new Kd.default({method:s,url:this.url,headers:this.headers,schema:this.schema,fetch:this.fetch})}insert(e,{count:r,defaultToNull:n=!0}={}){var s;const i="POST";if(r&&this.headers.append("Prefer",`count=${r}`),n||this.headers.append("Prefer","missing=default"),Array.isArray(e)){const o=e.reduce((a,l)=>a.concat(Object.keys(l)),[]);if(o.length>
6330){const a=[...new Set(o)].map(l=>`"${l}"`);this.url.searchParams.set("columns",a.join(","))}}return new Kd.default({method:i,url:this.url,headers:this.headers,schema:this.schema,body:e,fetch:(s=this.fetch)!==null&&s!==void 0?s:fetch})}upsert(e,{onConflict:r,ignoreDuplicates:n=!1,count:s,defaultToNull:i=!0}={}){var o;const a="POST";if(this.headers.append("Prefer",`resolution=${n?"ignore":"merge"}-duplicates`),r!==void 0&&this.url.searchParams.set("on_conflict",r),s&&this.headers.append("Prefer",`count=${s}`),i||this.headers.append("Prefer","missing=default"),Array.isArray(e)){const l=e.reduce((u,d)=>u.concat(Object.keys(d)),[]);if(l.length>0){const u=[...new Set(l)].map(d=>`"${d}"`);this.url.searchParams.set("columns",u.join(","))}}return new Kd.default({method:a,url:this.url,headers:this.headers,schema:this.schema,body:e,fetch:(o=this.fetch)!==null&&o!==void 0?o:fetch})}update(e,{count:r}={}){var n;const s="PATCH";return r&&this.headers.append("Prefer",`count=${r}`),new Kd.default({method:s,url:this.url,headers:this.headers,schema:this.schema,body:e,fetch:(n=this.fetch)!==null&&n!==void 0?n:fetch})}delete({count:e}={}){var r;const n="DELETE";return e&&this.headers.append("Prefer",`count=${e}`),new Kd.default({method:n,url:this.url,headers:this.headers,schema:this.schema,fetch:(r=this.fetch)!==null&&r!==void 0?r:fetch})}};Dx.default=FW;var vP=ri&&ri.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(yS,"__esModule",{value:!0});const BW=vP(Dx),$W=vP(op);let zW=class yP{constructor(e,{headers:r={},schema:n,fetch:s}={}){this.url=e,this.headers=new Headers(r),this.schemaName=n,this.fetch=s}from(e){const r=new URL(`${this.url}/${e}`);return new BW.default(r,{headers:new Headers(this.headers),schema:this.schemaName,fetch:this.fetch})}schema(e){return new yP(this.url,{headers:this.headers,schema:e,fetch:this.fetch})}rpc(e,r={},{head:n=!1,get:s=!1,count:i}={}){var o;let a;const l=new URL(`${this.url}/rpc/${e}`);let u;n||s?(a=n?"HEAD":"GET",Object.entries(r).filter(([f,h])=>h!==void 0).map(([f,h])=>[f,Array.isArray(h)?`{${h.join(",")}}`:`${h}`]).forEach(([f,h])=>{l.searchParams.append(f,h)})):(a="POST",u=r);const d=new Headers(this.headers);return i&&d.set("Prefer",`count=${i}`),new $W.default({method:a,url:l,headers:d,schema:this.schemaName,body:u,fetch:(o=this.fetch)!==null&&o!==void 0?o:fetch})}};yS.default=zW;var kd=ri&&ri.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Zn,"__esModule",{value:!0});Zn.PostgrestError=Zn.PostgrestBuilder=Zn.PostgrestTransformBuilder=Zn.PostgrestFilterBuilder=Zn.PostgrestQueryBuilder=Zn.PostgrestClient=void 0;const wP=kd(yS);Zn.PostgrestClient=wP.default;const bP=kd(Dx);Zn.PostgrestQueryBuilder=bP.default;const SP=kd(op);Zn.PostgrestFilterBuilder=SP.default;const _P=kd(Lx);Zn.PostgrestTransformBuilder=_P.default;const EP=kd(Fx);Zn.PostgrestBuilder=EP.default;const TP=kd(Bx);Zn.PostgrestError=TP.default;var UW=Zn.default={PostgrestClient:wP.default,PostgrestQueryBuilder:bP.default,PostgrestFilterBuilder:SP.default,PostgrestTransformBuilder:_P.default,PostgrestBuilder:EP.default,PostgrestError:TP.default};const{PostgrestClient:HW,PostgrestQueryBuilder:vpe,PostgrestFilterBuilder:ype,PostgrestTransformBuilder:wpe,PostgrestBuilder:bpe,PostgrestError:Spe}=UW;class VW{static detectEnvironment(){var e;if(typeof WebSocket<"u")return{type:"native",constructor:WebSocket};if(typeof globalThis<"u"&&typeof globalThis.WebSocket<"u")return{type:"native",constructor:globalThis.WebSocket};if(typeof global<"u"&&typeof global.WebSocket<"u")return{type:"native",constructor:global.WebSocket};if(typeof globalThis<"u"&&typeof globalThis.WebSocketPair<"u"&&typeof globalThis.WebSocket>"u")return{type:"cloudflare",error:"Cloudflare Workers detected. WebSocket clients are not supported in Cloudflare Workers.",workaround:"Use Cloudflare Workers WebSocket API for server-side WebSocket handling, or deploy to a different runtime."};if(typeof globalThis<"u"&&globalThis.EdgeRuntime||typeof navigator<"u"&&(!((e=navigator.userAgent)===null||e===void 0)&&e.includes("Vercel-Edge")))return{type:"unsupported",error:"Edge runtime detected (Vercel Edge/Netlify Edge). WebSockets are not supported in edge functions.",workaround:"Use serverless functions or a different deployment target for WebSocket functionality."};if(typeof process<"u"&&process.versions&&process.versions.node){const r=parseInt(process.versions.node.split(".")[0]);return r>=22?typeof globalThis.WebSocket<"u"?{type:"native",constructor:globalThis.WebSocket}:{type:"unsupported",error:`Node.js ${r} detected but native WebSocket not found.`,workaround:"Provide a WebSocket implementation via the transport option."}:{type:"unsupported",error:`Node.js ${r} detected without native WebSocket support.`,workaround:`For Node.js < 22, install "ws" package and provide it via the transport option:
634import ws from "ws"
635new RealtimeClient(url, { transport: ws })`}}return{type:"unsupported",error:"Unknown JavaScript runtime without WebSocket support.",workaround:"Ensure you're running in a supported environment (browser, Node.js, Deno) or provide a custom WebSocket implementation."}}static getWebSocketConstructor(){const e=this.detectEnvironment();if(e.constructor)return e.constructor;let r=e.error||"WebSocket not supported in this environment.";throw e.workaround&&(r+=`
636
637Suggested solution: ${e.workaround}`),new Error(r)}static createWebSocket(e,r){const n=this.getWebSocketConstructor();return new n(e,r)}static isWebSocketSupported(){try{const e=this.detectEnvironment();return e.type==="native"||e.type==="ws"}catch{return!1}}}const WW="2.15.1",qW=`realtime-js/${WW}`,GW="1.0.0",Aw=1e4,KW=1e3,XW=100;var kf;(function(t){t[t.connecting=0]="connecting",t[t.open=1]="open",t[t.closing=2]="closing",t[t.closed=3]="closed"})(kf||(kf={}));var Dr;(function(t){t.closed="closed",t.errored="errored",t.joined="joined",t.joining="joining",t.leaving="leaving"})(Dr||(Dr={}));var Si;(function(t){t.close="phx_close",t.error="phx_error",t.join="phx_join",t.reply="phx_reply",t.leave="phx_leave",t.access_token="access_token"})(Si||(Si={}));var jw;(function(t){t.websocket="websocket"})(jw||(jw={}));var _l;(function(t){t.Connecting="connecting",t.Open="open",t.Closing="closing",t.Closed="closed"})(_l||(_l={}));class YW{constructor(){this.HEADER_LENGTH=1}decode(e,r){return e.constructor===ArrayBuffer?r(this._binaryDecode(e)):r(typeof e=="string"?JSON.parse(e):{})}_binaryDecode(e){const r=new DataView(e),n=new TextDecoder;return this._decodeBroadcast(e,r,n)}_decodeBroadcast(e,r,n){const s=r.getUint8(1),i=r.getUint8(2);let o=this.HEADER_LENGTH+2;const a=n.decode(e.slice(o,o+s));o=o+s;const l=n.decode(e.slice(o,o+i));o=o+i;const u=JSON.parse(n.decode(e.slice(o,e.byteLength)));return{ref:null,topic:a,event:l,payload:u}}}class CP{constructor(e,r){this.callback=e,this.timerCalc=r,this.timer=void 0,this.tries=0,this.callback=e,this.timerCalc=r}reset(){this.tries=0,clearTimeout(this.timer),this.timer=void 0}scheduleTimeout(){clearTimeout(this.timer),this.timer=setTimeout(()=>{this.tries=this.tries+1,this.callback()},this.timerCalc(this.tries+1))}}var zt;(function(t){t.abstime="abstime",t.bool="bool",t.date="date",t.daterange="daterange",t.float4="float4",t.float8="float8",t.int2="int2",t.int4="int4",t.int4range="int4range",t.int8="int8",t.int8range="int8range",t.json="json",t.jsonb="jsonb",t.money="money",t.numeric="numeric",t.oid="oid",t.reltime="reltime",t.text="text",t.time="time",t.timestamp="timestamp",t.timestamptz="timestamptz",t.timetz="timetz",t.t
vendor: 4,779 bytes, line 637
637srange="tsrange",t.tstzrange="tstzrange"})(zt||(zt={}));const aC=(t,e,r={})=>{var n;const s=(n=r.skipTypes)!==null&&n!==void 0?n:[];return Object.keys(e).reduce((i,o)=>(i[o]=JW(o,t,e,s),i),{})},JW=(t,e,r,n)=>{const s=e.find(a=>a.name===t),i=s==null?void 0:s.type,o=r[t];return i&&!n.includes(i)?kP(i,o):Rw(o)},kP=(t,e)=>{if(t.charAt(0)==="_"){const r=t.slice(1,t.length);return tq(e,r)}switch(t){case zt.bool:return QW(e);case zt.float4:case zt.float8:case zt.int2:case zt.int4:case zt.int8:case zt.numeric:case zt.oid:return ZW(e);case zt.json:case zt.jsonb:return eq(e);case zt.timestamp:return rq(e);case zt.abstime:case zt.date:case zt.daterange:case zt.int4range:case zt.int8range:case zt.money:case zt.reltime:case zt.text:case zt.time:case zt.timestamptz:case zt.timetz:case zt.tsrange:case zt.tstzrange:return Rw(e);default:return Rw(e)}},Rw=t=>t,QW=t=>{switch(t){case"t":return!0;case"f":return!1;default:return t}},ZW=t=>{if(typeof t=="string"){const e=parseFloat(t);if(!Number.isNaN(e))return e}return t},eq=t=>{if(typeof t=="string")try{return JSON.parse(t)}catch(e){return console.log(`JSON parse error: ${e}`),t}return t},tq=(t,e)=>{if(typeof t!="string")return t;const r=t.length-1,n=t[r];if(t[0]==="{"&&n==="}"){let i;const o=t.slice(1,r);try{i=JSON.parse("["+o+"]")}catch{i=o?o.split(","):[]}return i.map(a=>kP(e,a))}return t},rq=t=>typeof t=="string"?t.replace(" ","T"):t,NP=t=>{let e=t;return e=e.replace(/^ws/i,"http"),e=e.replace(/(\/socket\/websocket|\/socket|\/websocket)\/?$/i,""),e.replace(/\/+$/,"")+"/api/broadcast"};class u1{constructor(e,r,n={},s=Aw){this.channel=e,this.event=r,this.payload=n,this.timeout=s,this.sent=!1,this.timeoutTimer=void 0,this.ref="",this.receivedResp=null,this.recHooks=[],this.refEvent=null}resend(e){this.timeout=e,this._cancelRefEvent(),this.ref="",this.refEvent=null,this.receivedResp=null,this.sent=!1,this.send()}send(){this._hasReceived("timeout")||(this.startTimeout(),this.sent=!0,this.channel.socket.push({topic:this.channel.topic,event:this.event,payload:this.payload,ref:this.ref,join_ref:this.channel._joinRef()}))}updatePayload(e){this.payload=Object.assign(Object.assign({},this.payload),e)}receive(e,r){var n;return this._hasReceived(e)&&r((n=this.receivedResp)===null||n===void 0?void 0:n.response),this.recHooks.push({status:e,callback:r}),this}startTimeout(){if(this.timeoutTimer)return;this.ref=this.channel.socket._makeRef(),this.refEvent=this.channel._replyEventName(this.ref);const e=r=>{this._cancelRefEvent(),this._cancelTimeout(),this.receivedResp=r,this._matchReceive(r)};this.channel._on(this.refEvent,{},e),this.timeoutTimer=setTimeout(()=>{this.trigger("timeout",{})},this.timeout)}trigger(e,r){this.refEvent&&this.channel._trigger(this.refEvent,{status:e,response:r})}destroy(){this._cancelRefEvent(),this._cancelTimeout()}_cancelRefEvent(){this.refEvent&&this.channel._off(this.refEvent,{})}_cancelTimeout(){clearTimeout(this.timeoutTimer),this.timeoutTimer=void 0}_matchReceive({status:e,response:r}){this.recHooks.filter(n=>n.status===e).forEach(n=>n.callback(r))}_hasReceived(e){return this.receivedResp&&this.receivedResp.status===e}}var lC;(function(t){t.SYNC="sync",t.JOIN="join",t.LEAVE="leave"})(lC||(lC={}));class Nf{constructor(e,r){this.channel=e,this.state={},this.pendingDiffs=[],this.joinRef=null,this.enabled=!1,this.caller={onJoin:()=>{},onLeave:()=>{},onSync:()=>{}};const n=(r==null?void 0:r.events)||{state:"presence_state",diff:"presence_diff"};this.channel._on(n.state,{},s=>{const{onJoin:i,onLeave:o,onSync:a}=this.caller;this.joinRef=this.channel._joinRef(),this.state=Nf.syncState(this.state,s,i,o),this.pendingDiffs.forEach(l=>{this.state=Nf.syncDiff(this.state,l,i,o)}),this.pendingDiffs=[],a()}),this.channel._on(n.diff,{},s=>{const{onJoin:i,onLeave:o,onSync:a}=this.caller;this.inPendingSyncState()?this.pendingDiffs.push(s):(this.state=Nf.syncDiff(this.state,s,i,o),a())}),this.onJoin((s,i,o)=>{this.channel._trigger("presence",{event:"join",key:s,currentPresences:i,newPresences:o})}),this.onLeave((s,i,o)=>{this.channel._trigger("presence",{event:"leave",key:s,currentPresences:i,leftPresences:o})}),this.onSync(()=>{this.channel._trigger("presence",{event:"sync"})})}static syncState(e,r,n,s){const i=this.cloneDeep(e),o=this.transformState(r),a={},l={};return this.map(i,(u,d)=>{o[u]||(l[u]=d)}),this.map(o,(u,d)=>{const f=i[u];if(f){const h=d.map(x=>x.presence_ref),p=f.map(x=>x.presence_ref),g=d.filter(x=>p.indexOf(x.presence_ref)<0),m=f.filter(x=>h.indexOf(x.presence_ref)<0);g.length>0&&(a[u]=g),m.length>0&&(l[u]=m)}else a[u]=d}),this.syncDiff(i,{joins:a,leaves:l},n,s)}static syncDiff(e,r,n,s){const{joins:i,leaves:o}={joins:this.transformState(r.joins),leaves:this.transformState(r.leaves)};return n||(n=()=>{}),s||(s=()=>{}),this.map(i,(a,l)=>{var u;
637const d=(u=e[a])!==null&&u!==void 0?u:[];if(e[a]=this.cloneDeep(l),d.length>0){const f=e[a].map(p=>p.presence_ref),h=d.filter(p=>f.indexOf(p.presence_ref)<0);e[a].unshift(...h)}n(a,d,l)}),this.map(o,(a,l)=>{let u=e[a];if(!u)return;const d=l.map(f=>f.presence_ref);u=u.filter(f=>d.indexOf(f.presence_ref)<0),e[a]=u,s(a,u,l),u.length===0&&delete e[a]}),e}static map(e,r){return Object.getOwnPropertyNames(e).map(n=>r(n,e[n]))}static transformState(e){return e=this.cloneDeep(e),Object.getOwnPropertyNames(e).reduce((r,n)=>{const s=e[n];return"metas"in s?r[n]=s.metas.map(i=>(i.presence_ref=i.phx_ref,delete i.phx_ref,delete i.phx_ref_prev,i)):r[n]=s,r},{})}static cloneDeep(e){return JSON.parse(JSON.stringify(e))}onJoin(e){this.caller.onJoin=e}onLeave(e){this.caller.onLeave=e}onSync(e){this.caller.onSync=e}inPendingSyncState(){return!this.joinRef||this.joinRef!==this.channel._joinRef()}}var cC;(function(t){t.ALL="*",t.INSERT="INSERT",t.UPDATE="UPDATE",t.DELETE="DELETE"})(cC||(cC={}));var Af;(function(t){t.BROADCAST="broadcast",t.PRESENCE="presence",t.POSTGRES_CHANGES="postgres_changes",t.SYSTEM="system"})(Af||(Af={}));var Eo;(function(t){t.SUBSCRIBED="SUBSCRIBED",t.TIMED_OUT="TIMED_OUT",t.CLOSED="CLOSED",t.CHANNEL_ERROR="CHANNEL_ERROR"})(Eo||(Eo={}));class wS{constructor(e,r={config:{}},n){this.topic=e,this.params=r,this.socket=n,this.bindings={},this.state=Dr.closed,this.joinedOnce=!1,this.pushBuffer=[],this.subTopic=e.replace(/^realtime:/i,""),this.params.config=Object.assign({broadcast:{ack:!1,self:!1},presence:{key:"",enabled:!1},private:!1},r.config),this.timeout=this.socket.timeout,this.joinPush=new u1(this,Si.join,this.params,this.timeout),this.rejoinTimer=new CP(()=>this._rejoinUntilConnected(),this.socket.reconnectAfterMs),this.joinPush.receive("ok",()=>{this.state=Dr.joined,this.rejoinTimer.reset(),this.pushBuffer.forEach(s=>s.send()),this.pushBuffer=[]}),this._onClose(()=>{this.rejoinTimer.reset(),this.socket.log("channel",`close ${this.topic} ${this._joinRef()}`),this.state=Dr.closed,this.socket._remove(this)}),this._onError(s=>{this._isLeaving()||this._isClosed()||(this.socket.log("channel",`error ${this.topic}`,s),this.state=Dr.errored,this.rejoinTimer.scheduleTimeout())}),this.joinPush.receive("timeout",()=>{this._isJoining()&&(this.socket.log("channel",`timeout ${this.topic}`,this.joinPush.timeout),this.state=Dr.errored,this.rejoinTimer.scheduleTimeout())}),this.joinPush.receive("error",s=>{this._isLeaving()||this._isClosed()||(this.socket.log("channel",`error ${this.topic}`,s),this.state=Dr.errored,this.rejoinTimer.scheduleTimeout())}),this._on(Si.reply,{},(s,i)=>{this._trigger(this._replyEventName(i),s)}),this.presence=new Nf(this),this.broadcastEndpointURL=NP(this.socket.endPoint),this.private=this.params.config.private||!1}subscribe(e,r=this.timeout){var n,s;if(this.socket.isConnected()||this.socket.connect(),this.state==Dr.closed){const{config:{broadcast:i,presence:o,private:a}}=this.params,l=(s=(n=this.bindings.postgres_changes)===null||n===void 0?void 0:n.map(h=>h.filter))!==null&&s!==void 0?s:[],u=!!this.bindings[Af.PRESENCE]&&this.bindings[Af.PRESENCE].length>0,d={},f={broadcast:i,presence:Object.assign(Object.assign({},o),{enabled:u}),postgres_changes:l,private:a};this.socket.accessTokenValue&&(d.access_token=this.socket.accessTokenValue),this._onError(h=>e==null?void 0:e(Eo.CHANNEL_ERROR,h)),this._onClose(()=>e==null?void 0:e(Eo.CLOSED)),this.updateJoinPayload(Object.assign({config:f},d)),this.joinedOnce=!0,this._rejoin(r),this.joinPush.receive("ok",async({postgres_changes:h})=>{var p;if(this.socket.setAuth(),h===void 0){e==null||e(Eo.SUBSCRIBED);return}else{const g=this.bindings.postgres_changes,m=(p=g==null?void 0:g.length)!==null&&p!==void 0?p:0,x=[];for(let v=0;v<m;v++){const y=g[v],{filter:{event:b,schema:S,table:E,filter:C}}=y,_=h&&h[v];if(_&&_.event===b&&_.schema===S&&_.table===E&&_.filter===C)x.push(Object.assign(Object.assign({},y),{id:_.id}));else{this.unsubscribe(),this.state=Dr.errored,e==null||e(Eo.CHANNEL_ERROR,new Error("mismatch between server and client bindings for postgres changes"));return}}this.bindings.postgres_changes=x,e&&e(Eo.SUBSCRIBED);return}}).receive("error",h=>{this.state=Dr.errored,e==null||e(Eo.CHANNEL_ERROR,new Error(JSON.stringify(Object.values(h).join(", ")||"error")))}).receive("timeout",()=>{e==null||e(Eo.TIMED_OUT)})}return this}presenceState(){return this.presence.state}async track(e,r={}){return await this.send({type:"presence",event:"track",payload:e},r.timeout||this.timeout)}async untrack(e={}){return await this.send({type:"presence",event:"untrack"},e)}on(e,r,n){return this.state===Dr.joined&&e===Af.PRESENCE&&(this.socket.log("channel",`resubscribe to ${this.topic} due to change in presence callbacks on joined channel`),this.unsubscribe().then(()=>this.subscribe())),this._on(e,r,n)}async send(e,r={}){var n,s;if(!this._canPush()&&e.type==="broadcast"){const{event:i,payload:o}=e,l={method:"POST",headers:{Authorization:this.socket.accessTokenValue?`Bearer ${this.socket.accessTokenValue}`:"",apikey:this.socket.apiKey?this.socket.apiKey:"","Content-Type":"application/json"},body:JSON.stringify({messages:[{topic:this.subTopic,event:i,payload:o,private:this.private}]})};try{const u=await this._fetchWithTimeout(this.broadcastEndpointURL,l,(n=r.timeout)!==null&&n!==void 0?n:this.timeout);return await((s=u.body)===null||s===void 0?void 0:s.cancel()),u.ok?"ok":"error"}catch(u){return u.name==="AbortError"?"timed out":"error"}}else return new Promise(i=>{var o,a,l;const u=this._push(e.type,e,r.timeout||this.timeout);e.type==="broadcast"&&!(!((l=(a=(o=this.params)===null||o===void 0?void 0:o.config)===null||a===void 0?void 0:a.broadcast)===null||l===void 0)&&l.ack)&&i("ok"),u.receive("ok",()=>i("ok")),u.receive("error",()=>i("error")),u.receive("timeout",()=>i("timed out"))})}updateJoinPayload(e){this.joinPush.updatePayload(e)}unsubscribe(e=this.timeout){this.state=Dr.leaving;const r=()=>{this.socket.log("channel",`leave ${this.topic}`),this._trigger(Si.close,"leave",this._joinRef())};this.joinPush.destroy();let n=null;return new Promise(s=>{n=new u1(this,Si.leave,{},e),n.receive("ok",()=>{r(),s("ok")}).receive("timeout",()=>{r(),s("timed out")}).receive("error",()=>{s("error")}),n.send(),this._canPush()||n.trigger("ok",{})}).finally(()=>{n==null||n.destroy()})}
637teardown(){this.pushBuffer.forEach(e=>e.destroy()),this.pushBuffer=[],this.rejoinTimer.reset(),this.joinPush.destroy(),this.state=Dr.closed,this.bindings={}}async _fetchWithTimeout(e,r,n){const s=new AbortController,i=setTimeout(()=>s.abort(),n),o=await this.socket.fetch(e,Object.assign(Object.assign({},r),{signal:s.signal}));return clearTimeout(i),o}_push(e,r,n=this.timeout){if(!this.joinedOnce)throw`tried to push '${e}' to '${this.topic}' before joining. Use channel.subscribe() before pushing events`;let s=new u1(this,e,r,n);return this._canPush()?s.send():this._addToPushBuffer(s),s}_addToPushBuffer(e){if(e.startTimeout(),this.pushBuffer.push(e),this.pushBuffer.length>XW){const r=this.pushBuffer.shift();r&&(r.destroy(),this.socket.log("channel",`discarded push due to buffer overflow: ${r.event}`,r.payload))}}_onMessage(e,r,n){return r}_isMember(e){return this.topic===e}_joinRef(){return this.joinPush.ref}_trigger(e,r,n){var s,i;const o=e.toLocaleLowerCase(),{close:a,error:l,leave:u,join:d}=Si;if(n&&[a,l,u,d].indexOf(o)>=0&&n!==this._joinRef())return;let h=this._onMessage(o,r,n);if(r&&!h)throw"channel onMessage callbacks must return the payload, modified or unmodified";["insert","update","delete"].includes(o)?(s=this.bindings.postgres_changes)===null||s===void 0||s.filter(p=>{var g,m,x;return((g=p.filter)===null||g===void 0?void 0:g.event)==="*"||((x=(m=p.filter)===null||m===void 0?void 0:m.event)===null||x===void 0?void 0:x.toLocaleLowerCase())===o}).map(p=>p.callback(h,n)):(i=this.bindings[o])===null||i===void 0||i.filter(p=>{var g,m,x,v,y,b;if(["broadcast","presence","postgres_changes"].includes(o))if("id"in p){const S=p.id,E=(g=p.filter)===null||g===void 0?void 0:g.event;return S&&((m=r.ids)===null||m===void 0?void 0:m.includes(S))&&(E==="*"||(E==null?void 0:E.toLocaleLowerCase())===((x=r.data)===null||x===void 0?void 0:x.type.toLocaleLowerCase()))}else{const S=(y=(v=p==null?void 0:p.filter)===null||v===void 0?void 0:v.event)===null||y===void 0?void 0:y.toLocaleLowerCase();return S==="*"||S===((b=r==null?void 0:r.event)===null||b===void 0?void 0:b.toLocaleLowerCase())}else return p.type.toLocaleLowerCase()===o}).map(p=>{if(typeof h=="object"&&"ids"in h){const g=h.data,{schema:m,table:x,commit_timestamp:v,type:y,errors:b}=g;h=Object.assign(Object.assign({},{schema:m,table:x,commit_timestamp:v,eventType:y,new:{},old:{},errors:b}),this._getPayloadRecords(g))}p.callback(h,n)})}_isClosed(){return this.state===Dr.closed}_isJoined(){return this.state===Dr.joined}_isJoining(){return this.state===Dr.joining}_isLeaving(){return this.state===Dr.leaving}_replyEventName(e){return`chan_reply_${e}`}_on(e,r,n){const s=e.toLocaleLowerCase(),i={type:s,filter:r,callback:n};return this.bindings[s]?this.bindings[s].push(i):this.bindings[s]=[i],this}_off(e,r){const n=e.toLocaleLowerCase();return this.bindings[n]&&(this.bindings[n]=this.bindings[n].filter(s=>{var i;return!(((i=s.type)===null||i===void 0?void 0:i.toLocaleLowerCase())===n&&wS.isEqual(s.filter,r))})),this}static isEqual(e,r){if(Object.keys(e).length!==Object.keys(r).length)return!1;for(const n in e)if(e[n]!==r[n])return!1;return!0}_rejoinUntilConnected(){this.rejoinTimer.scheduleTimeout(),this.socket.isConnected()&&this._rejoin()}_onClose(e){this._on(Si.close,{},e)}_onError(e){this._on(Si.error,{},r=>e(r))}_canPush(){return this.socket.isConnected()&&this._isJoined()}_rejoin(e=this.timeout){this._isLeaving()||(this.socket._leaveOpenTopic(this.topic),this.state=Dr.joining,this.joinPush.resend(e))}_getPayloadRecords(e){const r={new:{},old:{}};return(e.type==="INSERT"||e.type==="UPDATE")&&(r.new=aC(e.columns,e.record)),(e.type==="UPDATE"||e.type==="DELETE")&&(r.old=aC(e.columns,e.old_record)),r}}const uC=()=>{},Gp={HEARTBEAT_INTERVAL:25e3,RECONNECT_DELAY:10,HEARTBEAT_TIMEOUT_FALLBACK:100},nq=[1e3,2e3,5e3,1e4],sq=1e4,iq=`
638  addEventListener("message", (e) => {
639    if (e.data.event === "start") {
640      setInterval(() => postMessage({ event: "keepAlive" }), e.data.interval);
641    }
642  });`;class oq{constructor(e,r){var n;if(this.accessTokenValue=null,this.apiKey=null,this.channels=new Array,this.endPoint="",this.httpEndpoint="",this.headers={},this.params={},this.timeout=Aw,this.transport=null,this.heartbeatIntervalMs=Gp.HEARTBEAT_INTERVAL,this.heartbeatTimer=void 0,this.pendingHeartbeatRef=null,this.heartbeatCallback=uC,this.ref=0,this.reconnectTimer=null,this.logger=uC,this.conn=null,this.sendBuffer=[],this.serializer
642=new YW,this.stateChangeCallbacks={open:[],close:[],error:[],message:[]},this.accessToken=null,this._connectionState="disconnected",this._wasManualDisconnect=!1,this._authPromise=null,this._resolveFetch=s=>{let i;return s?i=s:typeof fetch>"u"?i=(...o)=>ip(async()=>{const{default:a}=await Promise.resolve().then(()=>Cd);return{default:a}},void 0).then(({default:a})=>a(...o)).catch(a=>{throw new Error(`Failed to load @supabase/node-fetch: ${a.message}. This is required for HTTP requests in Node.js environments without native fetch.`)}):i=fetch,(...o)=>i(...o)},!(!((n=r==null?void 0:r.params)===null||n===void 0)&&n.apikey))throw new Error("API key is required to connect to Realtime");this.apiKey=r.params.apikey,this.endPoint=`${e}/${jw.websocket}`,this.httpEndpoint=NP(e),this._initializeOptions(r),this._setupReconnectionTimer(),this.fetch=this._resolveFetch(r==null?void 0:r.fetch)}connect(){if(!(this.isConnecting()||this.isDisconnecting()||this.conn!==null&&this.isConnected())){if(this._setConnectionState("connecting"),this._setAuthSafely("connect"),this.transport)this.conn=new this.transport(this.endpointURL());else try{this.conn=VW.createWebSocket(this.endpointURL())}catch(e){this._setConnectionState("disconnected");const r=e.message;throw r.includes("Node.js")?new Error(`${r}
643
644To use Realtime in Node.js, you need to provide a WebSocket implementation:
645
646Option 1: Use Node.js 22+ which has native WebSocket support
647Option 2: Install and provide the "ws" package:
648
649  npm install ws
650
651  import ws from "ws"
652  const client = new RealtimeClient(url, {
653    ...options,
654    transport: ws
655  })`):new Error(`WebSocket not available: ${r}`)}this._setupConnectionHandlers()}}endpointURL(){return this._appendParams(this.endPoint,Object.assign({},this.params,{vsn:GW}))}disconnect(e,r){if(!this.isDisconnecting())if(this._setConnectionState("disconnecting",!0),this.conn){const n=setTimeout(()=>{this._setConnectionState("disconnected")},100);this.conn.onclose=()=>{clearTimeout(n),this._setConnectionState("disconnected")},e?this.conn.close(e,r??""):this.conn.close(),this._teardownConnection()}else this._setConnectionState("disconnected")}getChannels(){return this.channels}async removeChannel(e){const r=await e.unsubscribe();return this.channels.length===0&&this.disconnect(),r}async removeAllChannels(){const e=await Promise.all(this.channels.map(r=>r.unsubscribe()));return this.channels=[],this.disconnect(),e}log(e,r,n){this.logger(e,r,n)}connectionState(){switch(this.conn&&this.conn.readyState){case kf.connecting:return _l.Connecting;case kf.open:return _l.Open;case kf.closing:return _l.Closing;default:return _l.Closed}}isConnected(){return this.connectionState()===_l.Open}isConnecting(){return this._connectionState==="connecting"}isDisconnecting(){return this._connectionState==="disconnecting"}channel(e,r={config:{}}){const n=`realtime:${e}`,s=this.getChannels().find(i=>i.topic===n);if(s)return s;{const i=new wS(`realtime:${e}`,r,this);return this.channels.push(i),i}}push(e){const{topic:r,event:n,payload:s,ref:i}=e,o=()=>{this.encode(e,a=>{var l;(l=this.conn)===null||l===void 0||l.send(a)})};this.log("push",`${r} ${n} (${i})`,s),this.isConnected()?o():this.sendBuffer.push(o)}async setAuth(e=null){this._authPromise=this._performAuth(e);try{await this._authPromise}finally{this._authPromise=null}}async sendHeartbeat(){var e;if(!this.isConnected()){this.heartbeatCallback("disconnected");return}if(this.pendingHeartbeatRef){this.pendingHeartbeatRef=null,this.log("transport","heartbeat timeout. Attempting to re-establish connection"),this.heartbeatCallback("timeout"),this._wasManualDisconnect=!1,(e=this.conn)===null||e===void 0||e.close(KW,"heartbeat timeout"),setTimeout(()=>{var r;this.isConnected()||(r=this.reconnectTimer)===null||r===void 0||r.sc
655heduleTimeout()},Gp.HEARTBEAT_TIMEOUT_FALLBACK);return}this.pendingHeartbeatRef=this._makeRef(),this.push({topic:"phoenix",event:"heartbeat",payload:{},ref:this.pendingHeartbeatRef}),this.heartbeatCallback("sent"),this._setAuthSafely("heartbeat")}onHeartbeat(e){this.heartbeatCallback=e}flushSendBuffer(){this.isConnected()&&this.sendBuffer.length>0&&(this.sendBuffer.forEach(e=>e()),this.sendBuffer=[])}_makeRef(){let e=this.ref+1;return e===this.ref?this.ref=0:this.ref=e,this.ref.toString()}_leaveOpenTopic(e){let r=this.channels.find(n=>n.topic===e&&(n._isJoined()||n._isJoining()));r&&(this.log("transport",`leaving duplicate topic "${e}"`),r.unsubscribe())}_remove(e){this.channels=this.channels.filter(r=>r.topic!==e.topic)}_onConnMessage(e){this.decode(e.data,r=>{r.topic==="phoenix"&&r.event==="phx_reply"&&this.heartbeatCallback(r.payload.status==="ok"?"ok":"error"),r.ref&&r.ref===this.pendingHeartbeatRef&&(this.pendingHeartbeatRef=null);const{topic:n,event:s,payload:i,ref:o}=r,a=o?`(${o})`:"",l=i.status||"";this.log("receive",`${l} ${n} ${s} ${a}`.trim(),i),this.channels.filter(u=>u._isMember(n)).forEach(u=>u._trigger(s,i,o)),this._triggerStateCallbacks("message",r)})}_clearTimer(e){var r;e==="heartbeat"&&this.heartbeatTimer?(clearInterval(this.heartbeatTimer),this.heartbeatTimer=void 0):e==="reconnect"&&((r=this.reconnectTimer)===null||r===void 0||r.reset())}_clearAllTimers(){this._clearTimer("heartbeat"),this._clearTimer("reconnect")}_setupConnectionHandlers(){this.conn&&("binaryType"in this.conn&&(this.conn.binaryType="arraybuffer"),this.conn.onopen=()=>this._onConnOpen(),this.conn.onerror=e=>this._onConnError(e),this.conn.onmessage=e=>this._onConnMessage(e),this.conn.onclose=e=>this._onConnClose(e))}_teardownConnection(){this.conn&&(this.conn.onopen=null,this.conn.onerror=null,this.conn.onmessage=null,this.conn.onclose=null,this.conn=null),this._clearAllTimers(),this.channels.forEach(e=>e.teardown())}_onConnOpen(){this._setConnectionState("connected"),this.log("transport",`connected to ${this.endpointURL()}`),this.flushSendBuffer(),this._clearTimer("reconnect"),this.worker?this.workerRef||this._startWorkerHeartbeat():this._startHeartbeat(),this._triggerStateCallbacks("open")}_startHeartbeat(){this.heartbeatTimer&&clearInterval(this.heartbeatTimer),this.heartbeatTimer=setInterval(()=>this.sendHeartbeat(),this.heartbeatIntervalMs)}_startWorkerHeartbeat(){this.workerUrl?this.log("worker",`starting worker for from ${this.workerUrl}`):this.log("worker","starting default worker");const e=this._workerObjectUrl(this.workerUrl);this.workerRef=new Worker(e),this.workerRef.onerror=r=>{this.log("worker","worker error",r.message),this.workerRef.terminate()},this.workerRef.onmessage=r=>{r.data.event==="keepAlive"&&this.sendHeartbeat()},this.workerRef.postMessage({event:"start",interval:this.heartbeatIntervalMs})}_onConnClose(e){var r;this._setConnectionState("disconnected"),this.log("transport","close",e),this._triggerChanError(),this._clearTimer("heartbeat"),this._wasManualDisconnect||(r=this.reconnectTimer)===null||r===void 0||r.sc
655heduleTimeout(),this._triggerStateCallbacks("close",e)}_onConnError(e){this._setConnectionState("disconnected"),this.log("transport",`${e}`),this._triggerChanError(),this._triggerStateCallbacks("error",e)}_triggerChanError(){this.channels.forEach(e=>e._trigger(Si.error))}_appendParams(e,r){if(Object.keys(r).length===0)return e;const n=e.match(/\?/)?"&":"?",s=new URLSearchParams(r);return`${e}${n}${s}`}_workerObjectUrl(e){let r;if(e)r=e;else{const n=new Blob([iq],{type:"application/javascript"});r=URL.createObjectURL(n)}return r}_setConnectionState(e,r=!1){this._connectionState=e,e==="connecting"?this._wasManualDisconnect=!1:e==="disconnecting"&&(this._wasManualDisconnect=r)}async _performAuth(e=null){let r;e?r=e:this.accessToken?r=await this.accessToken():r=this.accessTokenValue,this.accessTokenValue!=r&&(this.accessTokenValue=r,this.channels.forEach(n=>{const s={access_token:r,version:qW};r&&n.updateJoinPayload(s),n.joinedOnce&&n._isJoined()&&n._push(Si.access_token,{access_token:r})}))}async _waitForAuthIfNeeded(){this._authPromise&&await this._authPromise}_setAuthSafely(e="general"){this.setAuth().catch(r=>{this.log("error",`error setting auth in ${e}`,r)})}_triggerStateCallbacks(e,r){try{this.stateChangeCallbacks[e].forEach(n=>{try{n(r)}catch(s){this.log("error",`error in ${e} callback`,s)}})}catch(n){this.log("error",`error triggering ${e} callbacks`,n)}}_setupReconnectionTimer(){this.reconnectTimer=new CP(async()=>{setTimeout(async()=>{await this._waitForAuthIfNeeded(),this.isConnected()||this.connect()},Gp.RECONNECT_DELAY)},this.reconnectAfterMs)}_initializeOptions(e){var r,n,s,i,o,a,l,u;if(this.transport=(r=e==null?void 0:e.transport)!==null&&r!==void 0?r:null,this.timeout=(n=e==null?void 0:e.timeout)!==null&&n!==void 0?n:Aw,this.heartbeatIntervalMs=(s=e==null?void 0:e.heartbeatIntervalMs)!==null&&s!==void 0?s:Gp.HEARTBEAT_INTERVAL,this.worker=(i=e==null?void 0:e.worker)!==null&&i!==void 0?i:!1,this.accessToken=(o=e==null?void 0:e.accessToken)!==null&&o!==void 0?o:null,e!=null&&e.params&&(this.params=e.params),e!=null&&e.logger&&(this.logger=e.logger),(e!=null&&e.logLevel||e!=null&&e.log_level)&&(this.logLevel=e.logLevel||e.log_level,this.params=Object.assign(Object.assign({},this.params),{log_level:this.logLevel})),this.reconnectAfterMs=(a=e==null?void 0:e.reconnectAfterMs)!==null&&a!==void 0?a:d=>nq[d-1]||sq,this.encode=(l=e==null?void 0:e.encode)!==null&&l!==void 0?l:(d,f)=>f(JSON.stringify(d)),this.decode=(u=e==null?void 0:e.decode)!==null&&u!==void 0?u:this.serializer.decode.bind(this.serializer),this.worker){if(typeof window<"u"&&!window.Worker)throw new Error("Web Worker is not supported");this.workerUrl=e==null?void 0:e.workerUrl}}}class bS extends Error{constructor(e){super(e),this.__isStorageError=!0,this.name="StorageError"}}function Fr(t){return typeof t=="object"&&t!==null&&"__isStorageError"in t}class aq extends bS{constructor(e,r,n){super(e),this.name="StorageApiError",this.status=r,this.statusCode=n}toJSON(){return{name:this.name,message:this.message,status:this.status,statusCode:this.statusCode}}}class Ow extends bS{constructor(e,r){super(e),this.name="StorageUnknownError",this.originalError=r}}var lq=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(d){try{u(n.next(d))}catch(f){o(f)}}function l(d){try{u(n.throw(d))}catch(f){o(f)}}function u(d){d.done?i(d.value):s(d.value).then(a,l)}u((n=n.apply(t,e||[])).next())})};const AP=t=>{let e;return t?e=t:typeof fetch>"u"?e=(...r)=>ip(async()=>{const{default:n}=await Promise.resolve().then(()=>Cd);return{default:n}},void 0).then(({default:n})=>n(...r)):e=fetch,(...r)=>e(...r)},cq=()=>lq(void 0,void 0,void 0,function*(){return typeof Response>"u"?(yield ip(()=>Promise.resolve().then(()=>Cd),void 0)).Response:Response}),Pw=t=>{if(Array.isArray(t))return t.map(r=>Pw(r));if(typeof t=="function"||t!==Object(t))return t;const e={};return Object.entries(t).forEach(([r,n])=>{const s=r.replace(/([-_][a-z])/gi,i=>i.toUpperCase().replace(/[-_]/g,""));e[s]=Pw(n)}),e},uq=t=>{if(typeof t!="object"||t===null)return!1;const e=Object.getPrototypeOf(t);
655return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)};var wc=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(d){try{u(n.next(d))}catch(f){o(f)}}function l(d){try{u(n.throw(d))}catch(f){o(f)}}function u(d){d.done?i(d.value):s(d.value).then(a,l)}u((n=n.apply(t,e||[])).next())})};const d1=t=>t.msg||t.message||t.error_description||t.error||JSON.stringify(t),dq=(t,e,r)=>wc(void 0,void 0,void 0,function*(){const n=yield cq();t instanceof n&&!(r!=null&&r.noResolveJson)?t.json().then(s=>{const i=t.status||500,o=(s==null?void 0:s.statusCode)||i+"";e(new aq(d1(s),i,o))}).catch(s=>{e(new Ow(d1(s),s))}):e(new Ow(d1(t),t))}),fq=(t,e,r,n)=>{const s={method:t,headers:(e==null?void 0:e.headers)||{}};return t==="GET"||!n?s:(uq(n)?(s.headers=Object.assign({"Content-Type":"application/json"},e==null?void 0:e.headers),s.body=JSON.stringify(n)):s.body=n,e!=null&&e.duplex&&(s.duplex=e.duplex),Object.assign(Object.assign({},s),r))};function ap(t,e,r,n,s,i){return wc(this,void 0,void 0,function*(){return new Promise((o,a)=>{t(r,fq(e,n,s,i)).then(l=>{if(!l.ok)throw l;return n!=null&&n.noResolveJson?l:l.json()}).then(l=>o(l)).catch(l=>dq(l,a,n))})})}function A0(t,e,r,n){return wc(this,void 0,void 0,function*(){return ap(t,"GET",e,r,n)})}function Wi(t,e,r,n,s){return wc(this,void 0,void 0,function*(){return ap(t,"POST",e,n,s,r)})}function Mw(t,e,r,n,s){return wc(this,void 0,void 0,function*(){return ap(t,"PUT",e,n,s,r)})}function hq(t,e,r,n){return wc(this,void 0,void 0,function*(){return ap(t,"HEAD",e,Object.assign(Object.assign({},r),{noResolveJson:!0}),n)})}function jP(t,e,r,n,s){return wc(this,void 0,void 0,function*(){return ap(t,"DELETE",e,n,s,r)})}var Rn=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(d){try{u(n.next(d))}catch(f){o(f)}}function l(d){try{u(n.throw(d))}catch(f){o(f)}}function u(d){d.done?i(d.value):s(d.value).then(a,l)}u((n=n.apply(t,e||[])).next())})};const pq={limit:100,offset:0,sortBy:{column:"name",order:"asc"}},dC={cacheControl:"3600",contentType:"text/plain;charset=UTF-8",upsert:!1};class mq{constructor(e,r={},n,s){this.url=e,this.headers=r,this.bucketId=n,this.fetch=AP(s)}uploadOrUpdate(e,r,n,s){return Rn(this,void 0,void 0,function*(){try{let i;const o=Object.assign(Object.assign({},dC),s);let a=Object.assign(Object.assign({},this.headers),e==="POST"&&{"x-upsert":String(o.upsert)});const l=o.metadata;typeof Blob<"u"&&n instanceof Blob?(i=new FormData,i.append("cacheControl",o.cacheControl),l&&i.append("metadata",this.encodeMetadata(l)),i.append("",n)):typeof FormData<"u"&&n instanceof FormData?(i=n,i.append("cacheControl",o.cacheControl),l&&i.append("metadata",this.encodeMetadata(l))):(i=n,a["cache-control"]=`max-age=${o.cacheControl}`,a["content-type"]=o.contentType,l&&(a["x-metadata"]=this.toBase64(this.encodeMetadata(l)))),s!=null&&s.headers&&(a=Object.assign(Object.assign({},a),s.headers));const u=this._removeEmptyFolders(r),d=this._getFinalPath(u),f=yield(e=="PUT"?Mw:Wi)(this.fetch,`${this.url}/object/${d}`,i,Object.assign({headers:a},o!=null&&o.duplex?{duplex:o.duplex}:{}));return{data:{path:u,id:f.Id,fullPath:f.Key},error:null}}catch(i){if(Fr(i))return{data:null,error:i};throw i}})}upload(e,r,n){return Rn(this,void 0,void 0,function*(){return this.uploadOrUpdate("POST",e,r,n)})}uploadToSignedUrl(e,r,n,s){return Rn(this,void 0,void 0,function*(){const i=this._removeEmptyFolders(e),o=this._getFinalPath(i),a=new URL(this.url+`/object/upload/sign/${o}`);a.searchParams.set("token",r);try{let l;const u=Object.assign({upsert:dC.upsert},s),d=Object.assign(Object.assign({},this.headers),{"x-upsert":String(u.upsert)});typeof Blob<"u"&&n instanceof Blob?(l=new FormData,l.append("cacheControl",u.cacheControl),l.append("",n)):typeof FormData<"u"&&n instanceof FormData?(l=n,l.append("cacheControl",u.cacheControl)):(l=n,d["cache-control"]=`max-age=${u.cacheControl}`,d["content-type"]=u.contentType);const f=yield Mw(this.fetch,a.toString(),l,{headers:d});return{data:{path:i,fullPath:f.Key},error:null}}catch(l){if(Fr(l))return{data:null,error:l};throw l}})}createSignedUploadUrl(e,r){return Rn(this,void 0,void 0,function*(){try{let n=this._getFinalPath(e);const s=Object.assign({},this.headers);r!=null&&r.upsert&&(s["x-upsert"]="true");const i=yield Wi(this.fetch,`${this.url}/object/upload/sign/${n}`,{},{headers:s}),o=new URL(this.url+i.url),a=o.searchParams.get("token");if(!a)throw new bS("No token returned by API");return{data:{signedUrl:o.toString(),path:e,token:a},error:null}}catch(n){if(Fr(n))return{data:null,error:n};throw n}})}update(e,r,n){return Rn(this,void 0,void 0,function*(){return this.uploadOrUpdate("PUT",e,r,n)})}move(e,r,n){return Rn(this,void 0,void 0,function*(){try{return{data:yield Wi(this.fetch,`${this.url}/object/move`,{bucketId:this.bucketId,sourceKey:e,destinationKey:r,destinationBucket:n==null?void 0:n.destinationBucket},{headers:this.headers}),error:null}}catch(s){if(Fr(s))return{data:null,error:s};throw s}})}copy(e,r,n){return Rn(this,void 0,void 0,function*(){try{return{data:{path:(yield Wi(this.fetch,`${this.url}/object/copy`,{bucketId:this.bucketId,sourceKey:e,destinationKey:r,destinationBucket:n==null?void 0:n.destinationBucket},{headers:this.headers})).Key},error:null}}catch(s){if(Fr(s))return{data:null,error:s};throw s}})}createSignedUrl(e,r,n){return Rn(this,void 0,void 0,function*(){try{let s=this._getFinalPath(e),i=yield Wi(this.fetch,`${this.url}/object/sign/${s}
655`,Object.assign({expiresIn:r},n!=null&&n.transform?{transform:n.transform}:{}),{headers:this.headers});const o=n!=null&&n.download?`&download=${n.download===!0?"":n.download}`:"";return i={signedUrl:encodeURI(`${this.url}${i.signedURL}${o}`)},{data:i,error:null}}catch(s){if(Fr(s))return{data:null,error:s};throw s}})}createSignedUrls(e,r,n){return Rn(this,void 0,void 0,function*(){try{const s=yield Wi(this.fetch,`${this.url}/object/sign/${this.bucketId}`,{expiresIn:r,paths:e},{headers:this.headers}),i=n!=null&&n.download?`&download=${n.download===!0?"":n.download}`:"";return{data:s.map(o=>Object.assign(Object.assign({},o),{signedUrl:o.signedURL?encodeURI(`${this.url}${o.signedURL}${i}`):null})),error:null}}catch(s){if(Fr(s))return{data:null,error:s};throw s}})}download(e,r){return Rn(this,void 0,void 0,function*(){const s=typeof(r==null?void 0:r.transform)<"u"?"render/image/authenticated":"object",i=this.transformOptsToQueryString((r==null?void 0:r.transform)||{}),o=i?`?${i}`:"";try{const a=this._getFinalPath(e);return{data:yield(yield A0(this.fetch,`${this.url}/${s}/${a}${o}`,{headers:this.headers,noResolveJson:!0})).blob(),error:null}}catch(a){if(Fr(a))return{data:null,error:a};throw a}})}info(e){return Rn(this,void 0,void 0,function*(){const r=this._getFinalPath(e);try{const n=yield A0(this.fetch,`${this.url}/object/info/${r}`,{headers:this.headers});return{data:Pw(n),error:null}}catch(n){if(Fr(n))return{data:null,error:n};throw n}})}exists(e){return Rn(this,void 0,void 0,function*(){const r=this._getFinalPath(e);try{return yield hq(this.fetch,`${this.url}/object/${r}`,{headers:this.headers}),{data:!0,error:null}}catch(n){if(Fr(n)&&n instanceof Ow){const s=n.originalError;if([400,404].includes(s==null?void 0:s.status))return{data:!1,error:n}}throw n}})}getPublicUrl(e,r){const n=this._getFinalPath(e),s=[],i=r!=null&&r.download?`download=${r.download===!0?"":r.download}`:"";i!==""&&s.push(i);const a=typeof(r==null?void 0:r.transform)<"u"?"render/image":"object",l=this.transformOptsToQueryString((r==null?void 0:r.transform)||{});l!==""&&s.push(l);let u=s.join("&");return u!==""&&(u=`?${u}`),{data:{publicUrl:encodeURI(`${this.url}/${a}/public/${n}${u}`)}}}remove(e){return Rn(this,void 0,void 0,function*(){try{return{data:yield jP(this.fetch,`${this.url}/object/${this.bucketId}`,{prefixes:e},{headers:this.headers}),error:null}}catch(r){if(Fr(r))return{data:null,error:r};throw r}})}list(e,r,n){return Rn(this,void 0,void 0,function*(){try{const s=Object.assign(Object.assign(Object.assign({},pq),r),{prefix:e||""});return{data:yield Wi(this.fetch,`${this.url}/object/list/${this.bucketId}`,s,{headers:this.headers},n),error:null}}catch(s){if(Fr(s))return{data:null,error:s};throw s}})}listV2(e,r){return Rn(this,void 0,void 0,function*(){try{const n=Object.assign({},e);return{data:yield Wi(this.fetch,`${this.url}/object/list-v2/${this.bucketId}`,n,{headers:this.headers},r),error:null}}catch(n){if(Fr(n))return{data:null,error:n};throw n}})}encodeMetadata(e){return JSON.stringify(e)}toBase64(e){return typeof Buffer<"u"?Buffer.from(e).toString("base64"):btoa(e)}_getFinalPath(e){return`${this.bucketId}/${e.replace(/^\/+/,"")}`}_removeEmptyFolders(e){return e.replace(/^\/|\/$/g,"").replace(/\/+/g,"/")}transformOptsToQueryString(e){const r=[];return e.width&&r.push(`width=${e.width}`),e.height&&r.push(`height=${e.height}`),e.resize&&r.push(`resize=${e.resize}`),e.format&&r.push(`format=${e.format}`),e.quality&&r.push(`quality=${e.quality}`),r.join("&")}}const gq="2.11.0",xq={"X-Client-Info":`storage-js/${gq}`};var Oc=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(d){try{u(n.next(d))}catch(f){o(f)}}function l(d){try{u(n.throw(d))}catch(f){o(f)}}function u(d){d.done?i(d.value):s(d.value).then(a,l)}u((n=n.apply(t,e||[])).next())})};class vq{constructor(e,r={},n,s){const i=new URL(e);s!=null&&s.useNewHostname&&/supabase\.(co|in|red)$/.test(i.hostname)&&!i.hostname.includes("storage.supabase.")&&(i.hostname=i.hostname.replace("supabase.","storage.supabase.")),this.url=i.href,this.headers=Object.assign(Object.assign({},xq),r),this.fetch=AP(n)}listBuckets(){return Oc(this,void 0,void 0,function*(){try{return{data:yield A0(this.fetch,`${this.url}/bucket`,{headers:this.headers}),error:null}}catch(e){if(Fr(e))return{data:null,error:e};throw e}})}getBucket(e){return Oc(this,void 0,void 0,function*(){try{return{data:yield A0(this.fetch,`${this.url}/bucket/${e}`,{headers:this.headers}),error:null}}catch(r){if(Fr(r))return{data:null,error:r};throw r}})}createBucket(e,r={public:!1}){return Oc(this,void 0,void 0,function*(){try{return{data:yield Wi(this.fetch,`${this.url}/bucket`,{id:e,name:e,type:r.type,public:r.public,file_size_limit:r.fileSizeLimit,allowed_mime_types:r.allowedMimeTypes},{headers:this.headers}),error:null}}catch(n){if(Fr(n))return{data:null,error:n};throw n}})}updateBucket(e,r){return Oc(this,void 0,void 0,function*(){try{return{data:yield Mw(this.fetch,`${this.url}/bucket/${e}`,{id:e,name:e,public:r.public,file_size_limit:r.fileSizeLimit,allowed_mime_types:r.allowedMimeTypes},{headers:this.headers}),error:null}}catch(n){if(Fr(n))return{data:null,error:n};throw n}})}emptyBucket(e){return Oc(this,void 0,void 0,function*(){try{return{data:yield Wi(this.fetch,`${this.url}/bucket/${e}/empty`,{},{headers:this.headers}),error:null}}catch(r){if(Fr(r))return{data:null,error:r};throw r}})}deleteBucket(e){return Oc(this,void 0,void 0,function*(){try{return{data:yield jP(this.fetch,`${this.url}/bucket/${e}`,{},{headers:this.headers}),error:null}}catch(r){if(Fr(r))return{data:null,error:r};throw r}})}}class yq extends vq{constructor(e,r={},n,s){super(e,r,n,s)}from(e){return new mq(this.url,this.headers,e,this.fetch)}}const wq="2.56.0";let of="";typeof Deno<"u"?of="deno":typeof document<"u"?of="web":typeof navigator<"u"&&navigator.product==="ReactNative"?of="react-native":of="node";const bq={"X-Client-Info":`supabase-js-${of}/${wq}`},Sq={headers:bq},_q={schema:"public"},Eq={autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,flowType:"implicit"},Tq={};
655var Cq=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(d){try{u(n.next(d))}catch(f){o(f)}}function l(d){try{u(n.throw(d))}catch(f){o(f)}}function u(d){d.done?i(d.value):s(d.value).then(a,l)}u((n=n.apply(t,e||[])).next())})};const kq=t=>{let e;return t?e=t:typeof fetch>"u"?e=mP:e=fetch,(...r)=>e(...r)},Nq=()=>typeof Headers>"u"?gP:Headers,Aq=(t,e,r)=>{const n=kq(r),s=Nq();return(i,o)=>Cq(void 0,void 0,void 0,function*(){var a;const l=(a=yield e())!==null&&a!==void 0?a:t;let u=new s(o==null?void 0:o.headers);return u.has("apikey")||u.set("apikey",t),u.has("Authorization")||u.set("Authorization",`Bearer ${l}`),n(i,Object.assign(Object.assign({},o),{headers:u}))})};var jq=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(d){try{u(n.next(d))}catch(f){o(f)}}function l(d){try{u(n.throw(d))}catch(f){o(f)}}function u(d){d.done?i(d.value):s(d.value).then(a,l)}u((n=n.apply(t,e||[])).next())})};function Rq(t){return t.endsWith("/")?t:t+"/"}function Oq(t,e){var r,n;const{db:s,auth:i,realtime:o,global:a}=t,{db:l,auth:u,realtime:d,global:f}=e,h={db:Object.assign(Object.assign({},l),s),auth:Object.assign(Object.assign({},u),i),realtime:Object.assign(Object.assign({},d),o),storage:{},global:Object.assign(Object.assign(Object.assign({},f),a),{headers:Object.assign(Object.assign({},(r=f==null?void 0:f.headers)!==null&&r!==void 0?r:{}),(n=a==null?void 0:a.headers)!==null&&n!==void 0?n:{})}),accessToken:()=>jq(this,void 0,void 0,function*(){return""})};return t.accessToken?h.accessToken=t.accessToken:delete h.accessToken,h}const RP="2.71.1",Xc=30*1e3,Iw=3,f1=Iw*Xc,Pq="http://localhost:9999",Mq="supabase.auth.token",Iq={"X-Client-Info":`gotrue-js/${RP}`},Dw="X-Supabase-Api-Version",OP={"2024-01-01":{timestamp:Date.parse("2024-01-01T00:00:00.0Z"),name:"2024-01-01"}},Dq=/^([a-z0-9_-]{4})*($|[a-z0-9_-]{3}$|[a-z0-9_-]{2}$)$/i,Lq=10*60*1e3;class SS extends Error{constructor(e,r,n){super(e),this.__isAuthError=!0,this.name="AuthError",this.status=r,this.code=n}}function nt(t){return typeof t=="object"&&t!==null&&"__isAuthError"in t}class Fq extends SS{constructor(e,r,n){super(e,r,n),this.name="AuthApiError",this.status=r,this.code=n}}function Bq(t){return nt(t)&&t.name==="AuthApiError"}class PP extends SS{constructor(e,r){super(e),this.name="AuthUnknownError",this.originalError=r}}class ul extends SS{constructor(e,r,n,s){super(e,n,s),this.name=r,this.status=n}}class ia extends ul{constructor(){super("Auth session missing!","AuthSessionMissingError",400,void 0)}}function $q(t){return nt(t)&&t.name==="AuthSessionMissingError"}class Kp extends ul{constructor(){super("Auth session or user missing","AuthInvalidToken
655ResponseError",500,void 0)}}class Xp extends ul{constructor(e){super(e,"AuthInvalidCredentialsError",400,void 0)}}class Yp extends ul{constructor(e,r=null){super(e,"AuthImplicitGrantRedirectError",500,void 0),this.details=null,this.details=r}toJSON(){return{name:this.name,message:this.message,status:this.status,details:this.details}}}function zq(t){return nt(t)&&t.name==="AuthImplicitGrantRedirectError"}class fC extends ul{constructor(e,r=null){super(e,"AuthPKCEGrantCodeExchangeError",500,void 0),this.details=null,this.details=r}toJSON(){return{name:this.name,message:this.message,status:this.status,details:this.details}}}class Lw extends ul{constructor(e,r){super(e,"AuthRetryableFetchError",r,void 0)}}function h1(t){return nt(t)&&t.name==="AuthRetryableFetchError"}class hC extends ul{constructor(e,r,n){super(e,"AuthWeakPasswordError",r,"weak_password"),this.reasons=n}}class Fw extends ul{constructor(e){super(e,"AuthInvalidJwtError",400,"invalid_jwt")}}const j0="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".split(""),pC=` 	
656\r=`.split(""),Uq=(()=>{const t=new Array(128);for(let e=0;e<t.length;e+=1)t[e]=-1;for(let e=0;e<pC.length;e+=1)t[pC[e].charCodeAt(0)]=-2;for(let e=0;e<j0.length;e+=1)t[j0[e].charCodeAt(0)]=e;return t})();function mC(t,e,r){if(t!==null)for(e.queue=e.queue<<8|t,e.queuedBits+=8;e.queuedBits>=6;){const n=e.queue>>e.queuedBits-6&63;r(j0[n]),e.queuedBits-=6}else if(e.queuedBits>0)for(e.queue=e.queue<<6-e.queuedBits,e.queuedBits=6;e.queuedBits>=6;){const n=e.queue>>e.queuedBits-6&63;r(j0[n]),e.queuedBits-=6}}function MP(t,e,r){const n=Uq[t];if(n>-1)for(e.queue=e.queue<<6|n,e.queuedBits+=6;e.queuedBits>=8;)r(e.queue>>e.queuedBits-8&255),e.queuedBits-=8;else{if(n===-2)return;throw new Error(`Invalid Base64-URL character "${String.fromCharCode(t)}"`)}}function gC(t){const e=[],r=o=>{e.push(String.fromCodePoint(o))},n={utf8seq:0,codepoint:0},s={queue:0,queuedBits:0},i=o=>{Wq(o,n,r)};for(let o=0;o<t.length;o+=1)MP(t.charCodeAt(o),s,i);return e.join("")}function Hq(t,e){if(t<=127){e(t);return}else if(t<=2047){e(192|t>>6),e(128|t&63);return}else if(t<=65535){e(224|t>>12),e(128|t>>6&63),e(128|t&63);return}else if(t<=1114111){e(240|t>>18),e(128|t>>12&63),e(128|t>>6&63),e(128|t&63);return}throw new Error(`Unrecognized Unicode codepoint: ${t.toString(16)}`)}function Vq(t,e){for(let r=0;r<t.length;r+=1){let n=t.charCodeAt(r);if(n>55295&&n<=56319){const s=(n-55296)*1024&65535;n=(t.charCodeAt(r+1)-56320&65535|s)+65536,r+=1}Hq(n,e)}}function Wq(t,e,r){if(e.utf8seq===0){if(t<=127){r(t);return}for(let n=1;n<6;n+=1)if(!(t>>7-n&1)){e.utf8seq=n;break}if(e.utf8seq===2)e.codepoint=t&31;else if(e.utf8seq===3)e.codepoint=t&15;else if(e.utf8seq===4)e.codepoint=t&7;else throw new Error("Invalid UTF-8 sequence");e.utf8seq-=1}else if(e.utf8seq>0){if(t<=127)throw new Error("Invalid UTF-8 sequence");e.codepoint=e.codepoint<<6|t&63,e.utf8seq-=1,e.utf8seq===0&&r(e.codepoint)}}function qq(t){const e=[],r={queue:0,queuedBits:0},n=s=>{e.push(s)};for(let s=0;s<t.length;s+=1)MP(t.charCodeAt(s),r,n);return new Uint8Array(e)}function Gq(t){const e=[];return Vq(t,r=>e.push(r)),new Uint8Array(e)}function Kq(t){const e=[],r={queue:0,queuedBits:0},n=s=>{e.push(s)};return t.forEach(s=>mC(s,r,n)),mC(null,r,n),e.join("")}function Xq(t){return Math.round(Date.now()/1e3)+t}function Yq(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){const e=Math.random()*16|0;return(t=="x"?e:e&3|8).toString(16)})}const pi=()=>typeof window<"u"&&typeof document<"u",gl={tested:!1,writable:!1},IP=()=>{if(!pi())return!1;try{if(typeof globalThis.localStorage!="object")return!1}catch{return!1}if(gl.tested)return gl.writable;const t=`lswt-${Math.random()}${Math.random()}`;try{globalThis.localStorage.setItem(t,t),globalThis.localStorage.removeItem(t),gl.tested=!0,gl.writable=!0}catch{gl.tested=!0,gl.writable=!1}return gl.writable};function Jq(t){const e={},r=new URL(t);if(r.hash&&r.hash[0]==="#")try{new URLSearchParams(r.hash.substring(1)).forEach((s,i)=>{e[i]=s})}catch{}return r.searchParams.forEach((n,s)=>{e[s]=n}),e}const DP=t=>{let e;return t?e=t:typeof fetch>"u"?e=(...r)=>ip(async()=>{const{default:n}=await Promise.resolve().then(()=>Cd);return{default:n}},void 0).then(({default:n})=>n(...r)):e=fetch,(...r)=>e(...r)},Qq=t=>typeof t=="object"&&t!==null&&"status"in t&&"ok"in t&&"json"in t&&typeof t.json=="function",Yc=async(t,e,r)=>{await t.setItem(e,JSON.stringify(r))},xl=async(t,e)=>{const r=await t.getItem(e);if(!r)return null;try{return JSON.parse(r)}catch{return r}},ea=async(t,e)=>{await t.removeItem(e)};class $x{constructor(){this.promise=new $x.promiseConstructor((e,r)=>{this.resolve=e,this.reject=r})}}$x.promiseConstructor=Promise;function p1(t){const e=t.split(".");if(e.length!==3)throw new Fw("Invalid JWT structure");for(let n=0;n<e.length;n++)if(!Dq.test(e[n]))throw new Fw("JWT not in base64url format");return{header:JSON.parse(gC(e[0])),payload:JSON.parse(gC(e[1])),signature:qq(e[2]),raw:{header:e[0],payload:e[1]}}}async function Zq(t){return await new Promise(e=>{setTimeout(()=>e(null),t)})}function eG(t,e){return new Promise((n,s)=>{(async()=>{for(let i=0;i<1/0;i++)try{const o=await t(i);if(!e(i,null,o)){n(o);return}}catch(o){if(!e(i,o)){s(o);return}}})()})}function tG(t){return("0"+t.toString(16)).substr(-2)}function rG(){const e=new Uint32Array(56);if(typeof crypto>"u"){const r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~",n=r.length;let s="";for(let i=0;i<56;i++)s+=r.charAt(Math.floor(Math.random()*n));return s}return crypto.getRandomValues(e),Array.from(e,tG).join("")}async function nG(t){const r=new TextEncoder().encode(t),n=await crypto.subtle.digest("SHA-256",r),s=new Uint8Array(n);return Array.from(s).map(i=>String.fromCharCode(i)).join("")}async function sG(t){if(!(typeof crypto<"u"&&typeof crypto.subtle<"u"&&typeof TextEncoder<"u"))return console.warn("WebCrypto API is not supported. Code 
656challenge method will default to use plain instead of sha256."),t;const r=await nG(t);return btoa(r).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}async function Pc(t,e,r=!1){const n=rG();let s=n;r&&(s+="/PASSWORD_RECOVERY"),await Yc(t,`${e}-code-verifier`,s);const i=await sG(n);return[i,n===i?"plain":"s256"]}const iG=/^2[0-9]{3}-(0[1-9]|1[0-2])-(0[1-9]|1[0-9]|2[0-9]|3[0-1])$/i;function oG(t){const e=t.headers.get(Dw);if(!e||!e.match(iG))return null;try{return new Date(`${e}T00:00:00.0Z`)}catch{return null}}function aG(t){if(!t)throw new Error("Missing exp claim");const e=Math.floor(Date.now()/1e3);if(t<=e)throw new Error("JWT has expired")}function lG(t){switch(t){case"RS256":return{name:"RSASSA-PKCS1-v1_5",hash:{name:"SHA-256"}};case"ES256":return{name:"ECDSA",namedCurve:"P-256",hash:{name:"SHA-256"}};default:throw new Error("Invalid alg claim")}}const cG=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/;function Mc(t){if(!cG.test(t))throw new Error("@supabase/auth-js: Expected parameter to be UUID but is not")}function m1(){const t={};return new Proxy(t,{get:(e,r)=>{if(r==="__isUserNotAvailableProxy")return!0;if(typeof r=="symbol"){const n=r.toString();if(n==="Symbol(Symbol.toPrimitive)"||n==="Symbol(Symbol.toStringTag)"||n==="Symbol(util.inspect.custom)")return}throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Accessing the "${r}" property of the session object is not supported. Please use getUser() instead.`)},set:(e,r)=>{throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Setting the "${r}" property of the session object is not supported. Please use getUser() to fetch a user object you can manipulate.`)},deleteProperty:(e,r)=>{throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Deleting the "${r}" property of the session object is not supported. Please use getUser() to fetch a user object you can manipulate.`)}})}function xC(t){return JSON.parse(JSON.stringify(t))}var uG=function(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,n=Object.getOwnPropertySymbols(t);s<n.length;s++)e.indexOf(n[s])<0&&Object.prototype.propertyIsEnumerable.call(t,n[s])&&(r[n[s]]=t[n[s]]);return r};const Sl=t=>t.msg||t.message||t.error_description||t.error||JSON.stringify(t),dG=[502,503,504];async function vC(t){var e;if(!Qq(t))throw new Lw(Sl(t),0);if(dG.includes(t.status))throw new Lw(Sl(t),t.status);let r;try{r=await t.json()}catch(i){throw new PP(Sl(i),i)}let n;const s=oG(t);if(s&&s.getTime()>=OP["2024-01-01"].timestamp&&typeof r=="object"&&r&&typeof r.code=="string"?n=r.code:typeof r=="object"&&r&&typeof r.error_code=="string"&&(n=r.error_code),n){if(n==="weak_password")throw new hC(Sl(r),t.status,((e=r.weak_password)===null||e===void 0?void 0:e.reasons)||[]);if(n==="session_not_found")throw new ia}else if(typeof r=="object"&&r&&typeof r.weak_password=="object"&&r.weak_password&&Array.isArray(r.weak_password.reasons)&&r.weak_password.reasons.length&&r.weak_password.reasons.reduce((i,o)=>i&&typeof o=="string",!0))throw new hC(Sl(r),t.status,r.weak_password.reasons);throw new Fq(Sl(r),t.status||500,n)}const fG=(t,e,r,n)=>{const s={method:t,headers:(e==null?void 0:e.headers)||{}};return t==="GET"?s:(s.headers=Object.assign({"Content-Type":"application/json;charset=UTF-8"},e==null?void 0:e.headers),s.body=JSON.stringify(n),Object.assign(Object.assign({},s),r))};async function xt(t,e,r,n){var s;const i=Object.assign({},n==null?void 0:n.headers);i[Dw]||(i[Dw]=OP["2024-01-01"].name),n!=null&&n.jwt&&(i.Authorization=`Bearer ${n.jwt}`);const o=(s=n==null?void 0:n.query)!==null&&s!==void 0?s:{};n!=null&&n.redirectTo&&(o.redirect_to=n.redirectTo);const a=Object.keys(o).length?"?"+new URLSearchParams(o).toString():"",l=await hG(t,e,r+a,{headers:i,noResolveJson:n==null?void 0:n.noResolveJson},{},n==null?void 0:n.body);return n!=null&&n.xform?n==null?void 0:n.xform(l):{data:Object.assign({},l),error:null}}async function hG(t,e,r,n,s,i){const o=fG(e,n,s,i);let a;try{a=await t(r,Object.assign({},o))}catch(l){throw console.error(l),new Lw(Sl(l),0)}if(a.ok||await vC(a),n!=null&&n.noResolveJson)return a;try{return await a.json()}catch(l){await vC(l)}}function bo(t){var e;let r=null;xG(t)&&(r=Object.assign({},t),t.expires_at||(r.expires_at=Xq(t.expires_in)));const n=(e=t.user)!==null&&e!==void 0?e:t;return{data:{session:r,user:n},error:null}}function yC(t){const e=bo(t);return!e.error&&t.weak_password&&typeof t.weak_password=="object"&&Array.isArray(t.weak_password.reasons)&&t.weak_password.reasons.length&&t.weak_password.message&&typeof t.weak_password.message=="string"&&t.weak_password.reasons.reduce((r,n)=>r&&typeof n=="string",!0)&&(e.data.weak_password=t.weak_password),e}function ga(t){var e;return{data:{user:(e=t.user)!==null&&e!==void 0?e:t},error:null}}function pG(t){return{data:t,error:null}}function mG(t){const{action_link:e,email_otp:r,hashed_token:n,redirect_to:s,verification_type:i}=t,o=uG(t,["action_link","email_otp","hashed_token","redirect_to","verification_type"]),a={action_link:e,email_otp:r,hashed_token:n,redirect_to:s,verification_type:i},l=Object.assign({},o);return{data:{properties:a,user:l},error:null}}function gG(t){return t}function xG(t){return t.access_token&&t.refresh_token&&t.expires_in}const g1=["global","local","others"];var vG=function(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,n=Object.getOwnPropertySymbols(t);s<n.length;s++)e.indexOf(n[s])<0&&Object.prototype.propertyIsEnumerable.call(t,n[s])&&(r[n[s]]=t[n[s]]);return r};class yG{constructor({url:e="",headers:r={},fetch:n}){this.url=e,this.headers=r,this.fetch=DP(n),this.mfa={listFactors:this._listFactors.bind(this),deleteFactor:this._deleteFactor.bind(this)}}
656async signOut(e,r=g1[0]){if(g1.indexOf(r)<0)throw new Error(`@supabase/auth-js: Parameter scope must be one of ${g1.join(", ")}`);try{return await xt(this.fetch,"POST",`${this.url}/logout?scope=${r}`,{headers:this.headers,jwt:e,noResolveJson:!0}),{data:null,error:null}}catch(n){if(nt(n))return{data:null,error:n};throw n}}async inviteUserByEmail(e,r={}){try{return await xt(this.fetch,"POST",`${this.url}/invite`,{body:{email:e,data:r.data},headers:this.headers,redirectTo:r.redirectTo,xform:ga})}catch(n){if(nt(n))return{data:{user:null},error:n};throw n}}async generateLink(e){try{const{options:r}=e,n=vG(e,["options"]),s=Object.assign(Object.assign({},n),r);return"newEmail"in n&&(s.new_email=n==null?void 0:n.newEmail,delete s.newEmail),await xt(this.fetch,"POST",`${this.url}/admin/generate_link`,{body:s,headers:this.headers,xform:mG,redirectTo:r==null?void 0:r.redirectTo})}catch(r){if(nt(r))return{data:{properties:null,user:null},error:r};throw r}}async createUser(e){try{return await xt(this.fetch,"POST",`${this.url}/admin/users`,{body:e,headers:this.headers,xform:ga})}catch(r){if(nt(r))return{data:{user:null},error:r};throw r}}async listUsers(e){var r,n,s,i,o,a,l;try{const u={nextPage:null,lastPage:0,total:0},d=await xt(this.fetch,"GET",`${this.url}/admin/users`,{headers:this.headers,noResolveJson:!0,query:{page:(n=(r=e==null?void 0:e.page)===null||r===void 0?void 0:r.toString())!==null&&n!==void 0?n:"",per_page:(i=(s=e==null?void 0:e.perPage)===null||s===void 0?void 0:s.toString())!==null&&i!==void 0?i:""},xform:gG});if(d.error)throw d.error;const f=await d.json(),h=(o=d.headers.get("x-total-count"))!==null&&o!==void 0?o:0,p=(l=(a=d.headers.get("link"))===null||a===void 0?void 0:a.split(","))!==null&&l!==void 0?l:[];return p.length>0&&(p.forEach(g=>{const m=parseInt(g.split(";")[0].split("=")[1].substring(0,1)),x=JSON.parse(g.split(";")[1].split("=")[1]);u[`${x}Page`]=m}),u.total=parseInt(h)),{data:Object.assign(Object.assign({},f),u),error:null}}catch(u){if(nt(u))return{data:{users:[]},error:u};throw u}}async getUserById(e){Mc(e);try{return await xt(this.fetch,"GET",`${this.url}/admin/users/${e}`,{headers:this.headers,xform:ga})}catch(r){if(nt(r))return{data:{user:null},error:r};throw r}}async updateUserById(e,r){Mc(e);try{return await xt(this.fetch,"PUT",`${this.url}/admin/users/${e}`,{body:r,headers:this.headers,xform:ga})}catch(n){if(nt(n))return{data:{user:null},error:n};throw n}}async deleteUser(e,r=!1){Mc(e);try{return await xt(this.fetch,"DELETE",`${this.url}/admin/users/${e}`,{headers:this.headers,body:{should_soft_delete:r},xform:ga})}catch(n){if(nt(n))return{data:{user:null},error:n};throw n}}async _listFactors(e){Mc(e.userId);try{const{data:r,error:n}=await xt(this.fetch,"GET",`${this.url}/admin/users/${e.userId}/factors`,{headers:this.headers,xform:s=>({data:{factors:s},error:null})});return{data:r,error:n}}catch(r){if(nt(r))return{data:null,error:r};throw r}}async _deleteFactor(e){Mc(e.userId),Mc(e.id);try{return{data:await xt(this.fetch,"DELETE",`${this.url}/admin/users/${e.userId}/factors/${e.id}`,{headers:this.headers}),error:null}}catch(r){if(nt(r))return{data:null,error:r};throw r}}}function wC(t={}){return{getItem:e=>t[e]||null,setItem:(e,r)=>{t[e]=r},removeItem:e=>{delete t[e]}}}function wG(){if(typeof globalThis!="object")try{Object.defineProperty(Object.prototype,"__magic__",{get:function(){return this},configurable:!0}),__magic__.globalThis=__magic__,delete Object.prototype.__magic__}catch{typeof self<"u"&&(self.globalThis=self)}}const Ic={debug:!!(globalThis&&IP()&&globalThis.localStorage&&globalThis.localStorage.getItem("supabase.gotrue-js.locks.debug")==="true")};class LP extends Error{constructor(e){super(e),this.isAcquireTimeout=!0}}class bG extends LP{}async function SG(t,e,r){Ic.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquire lock",t,e);const n=new globalThis.AbortController;return e>0&&setTimeout(()=>{n.abort(),Ic.debug&&console.log("@supabase/gotrue-js: navigatorLock acquire timed out",t)},e),await Promise.resolve().then(()=>globalThis.navigator.locks.request(t,e===0?{mode:"exclusive",ifAvailable:!0}:{mode:"exclusive",signal:n.signal},async s=>{if(s){Ic.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquired",t,s.name);try{return await r()}finally{Ic.debug&&console.log("@supabase/gotrue-js: navigatorLock: released",t,s.name)}}else{if(e===0)throw Ic.debug&&console.log("@supabase/gotrue-js: navigatorLock: not immediately available",t),new bG(`Acquiring an exclusive Navigator LockManager lock "${t}" immediately failed`);if(Ic.debug)try{const i=await globalThis.navigator.locks.query();console.log("@supabase/gotrue-js: Navigator LockManager state",JSON.stringify(i,null,"  "))}catch(i){console.warn("@supabase/gotrue-js: Error when querying Navigator LockManager state",i)}return console.warn("@supabase/gotrue-js: Navigator LockManager returned a null lock when using #request without ifAvailable set to true, it appears this browser is not following the LockManager spec https://developer.mozilla.org/en-US/docs/Web/API/LockManager/request"),await r()}}))}wG();const _G={url:Pq,storageKey:Mq,autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,headers:Iq,flowType:"implicit",debug:!1,hasCustomAuthorizationHeader:!1};async function bC(t,e,r){return await r()}const Dc={};class xh{constructor(e){var r,n;this.userStorage=null,this.memoryStorage=null,this.stateChangeEmitters=new Map,this.autoRefreshTicker=null,this.visibilityChangedCallback=null,this.refreshingDeferred=null,this.initializePromise=null,this.detectSessionInUrl=!0,this.hasCustomAuthorizationHeader=!1,this.suppressGetSessionWarning=!1,this.lockAcquired=!1,this.pendingInLock=[],this.broadcastChannel=null,this.logger=console.log,this.instanceID=xh.nextInstanceID,xh.nextInstanceID+=1,this.instanceID>0&&pi()&&console.warn("Multiple GoTrueClient instances detected in the same browser context. It is not an error, but this should be avoided as it may produce undefined behavior when used concurrently under the same storage key.");const s=Object.assign(Object.assign({},_G),e);if(this.logDebugMessages=!!s.debug,typeof s.debug=="function"&&(this.logger=s.debug),this.persistSession=s.persistSession,this.storageKey=s.storageKey,this.autoRefreshToken=s.autoRefreshToken,this.admin=new yG({url:s.url,headers:s.headers,fetch:s.fetch}),this.url=s.url,this.headers=s.headers,this.fetch=DP(s.fetch),this.lock=s.lock||bC,this.detectSessionInUrl=s.detectSessionInUrl,this.flowType=s.flowType,this.hasCustomAuthorizationHeader=s.hasCustomAuthorizationHeader,s.lock?this.lock=s.lock:pi()&&(!((r=globalThis==null?void 0:globalThis.navigator)===null||r===void 0)&&r.locks)?this.lock=SG:this.lock=bC,this.jwks||(this.jwks={keys:[]},this.jwks_cached_at=Number.MIN_SAFE_INTEGER),this.mfa={verify:this._verify.bind(this),enroll:this._enroll.bind(this),unenroll:this._unenroll.bind(this),challenge:this._challenge.bind(this),listFactors:this._listFactors.bind(this),challengeAndVerify:this._challengeAndVerify.bind(this),getAuthenticatorAssuranceLevel:this._getAuthenticatorAssuranceLevel.bind(this)},this.persistSession?(s.storage?this.storage=s.storage:IP()?this.storage=globalThis.localStorage:(this.memoryStorage={},this.storage=wC(this.memoryStorage)),s.userStorage&&(this.userStorage=s.userStorage)):(this.memoryStorage={},this.storage=wC(this.memoryStorage)),pi()&&globalThis.BroadcastChannel&&this.persistSession&&this.storageKey){try{this.broadcastChannel=new globalThis.BroadcastChannel(this.storageKey)}catch(i){console.error("Failed to create a new BroadcastChannel, multi-tab state changes will not be available",i)}(n=this.broadcastChannel)===null||n===void 0||n.addEventListener("message",async i=>{this._debug("received broadcast notification from other tab or client",i),await this._notifyAllSubscribers(i.data.event,i.data.session,!1)})}this.initialize()}get jwks(){var e,r;return(r=(e=Dc[this.storageKey])===null||e===void 0?void 0:e.jwks)!==null&&r!==void 0?r:{keys:[]}}set jwks(e){Dc[this.storageKey]=Object.assign(Object.assign({},Dc[this.storageKey]),{jwks:e})}get jwks_cached_at(){var e,r;return(r=(e=Dc[this.storageKey])===null||e===void 0?void 0:e.cachedAt)!==null&&r!==void 0?r:Number.MIN_SAFE_INTEGER}set jwks_cached_at(e){Dc[this.storageKey]=Object.assign(Object.assign({},Dc[this.storageKey]),{cachedAt:e})}_debug(...e){return this.logDebugMessages&&this.logger(`GoTrueClient@${this.instanceID} (${RP}) ${new Date().toISOString()}`,...e),this}async initialize(){return this.initializePromise?await this.initializePromise:(this.initializePromise=(async()=>await this._acquireLock(-1,async()=>await this._initialize()))(),await this.initializePromise)}async _initialize(){var e;try{const r=Jq(window.location.href);let n="none";if(this._isImplicitGrantCallback(r)?n="implicit":await this._isPKCECallback(r)&&(n="pkce"),pi()&&this.detectSessionInUrl&&n!=="none"){const{data:s,error:i}=await this._getSessionFromURL(r,n);if(i){if(this._debug("#_initialize()","error detecting session from URL",i),zq(i)){const l=(e=i.details)===null||e===void 0?void 0:e.code;if(l==="identity_already_exists"||l==="identity_not_found"||l==="single_identity_not_deletable")return{error:i}}return await this._removeSession(),{error:i}}const{session:o,redirectType:a}=s;return this._debug("#_initialize()","detected session in URL",o,"redirect type",a),await this._saveSession(o),setTimeout(async()=>{a==="recovery"?await this._notifyAllSubscribers("PASSWORD_RECOVERY",o):await this._notifyAllSubscribers("SIGNED_IN",o)},0),{error:null}}return await this._recoverAndRefresh(),{error:null}}catch(r){return nt(r)?{error:r}:{error:new PP("Unexpected error during initialization",r)}}finally{await this._handleVisibilityChange(),this._debug("#_initialize()","end")}}async signInAnonymously(e){var r,n,s;try{const i=await xt(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{data:(n=(r=e==null?void 0:e.options)===null||r===void 0?void 0:r.data)!==null&&n!==void 0?n:{},gotrue_meta_security:{captcha_token:(s=e==null?void 0:e.options)===null||s===void 0?void 0:s.captchaToken}},xform:bo}),{data:o,error:a}=i;if(a||!o)return{data:{user:null,session:null},error:a};const l=o.session,u=o.user;return o.session&&(await this._saveSession(o.session),await this._notifyAllSubscribers("SIGNED_IN",l)),{data:{user:u,session:l},error:null}}catch(i){if(nt(i))return{data:{user:null,session:null},error:i};throw i}}async signUp(e){var r,n,s;try{let i;if("email"in e){const{email:d,password:f,options:h}=e;let p=null,g=null;this.flowType==="pkce"&&([p,g]=await Pc(this.storage,this.storageKey)),i=await xt(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,redirectTo:h==null?void 0:h.emailRedirectTo,body:{email:d,password:f,data:(r=h==null?void 0:h.data)!==null&&r!==void 0?r:{},gotrue_meta_security:{captcha_token:h==null?void 0:h.captchaToken},code_challenge:p,code_challenge_method:g},xform:bo})}else if("phone"in e){const{phone:d,password:f,options:h}=e;i=await xt(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{phone:d,password:f,data:(n=h==null?void 0:h.data)!==null&&n!==void 0?n:{},channel:(s=h==null?void 0:h.channel)!==null&&s!==void 0?s:"sms",gotrue_meta_security:{captcha_token:h==null?void 0:h.captchaToken}},xform:bo})}else throw new Xp("You must provide either an email or phone number and a password");const{data:o,error:a}=i;if(a||!o)return{data:{user:null,session:null},error:a};const l=o.session,u=o.user;return o.session&&(await this._saveSession(o.session),await this._notifyAllSubscribers("SIGNED_IN",l)),{data:{user:u,session:l},error:null}}catch(i){if(nt(i))return{data:{user:null,session:null},error:i};throw i}}async signInWithPassword(e){try{let r;if("email"in e){const{email:i,password:o,options:a}=e;r=await xt(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{email:i,password:o,gotrue_meta_security:{captcha_token:a==null?void 0:a.captchaToken}},xform:yC})}else if("phone"in e){const{phone:i,password:o,options:a}=e;r=await xt(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{phone:i,password:o,gotrue_meta_security:{captcha_token:a==null?void 0:a.captchaToken}},xform:yC})}else throw new Xp("You must provide either an email or phone number and a password");const{data:n,error:s}=r;return s?{data:{user:null,session:null},error:s}:!n||!n.session||!n.user?{data:{user:null,session:null},error:new Kp}:(n.session&&(await this._saveSession(n.session),await this._notifyAllSubscribers("SIGNED_IN",n.session)),{data:Object.assign({user:n.user,session:n.session},n.weak_password?{weakPassword:n.weak_password}:null),error:s})}catch(r){if(nt(r))return{data:{user:null,session:null},error:r};throw r}}async signInWithOAuth(e){var r,n,s,i;return await this._handleProviderSignIn(e.provider,{redirectTo:(r=e.options)===null||r===void 0?void 0:r.redirectTo,scopes:(n=e.options)===null||n===void 0?void 0:n.scopes,queryParams:(s=e.options)===null||s===void 0?void 0:s.queryParams,skipBrowserRedirect:(i=e.options)===null||i===void 0?void 0:i.skipBrowserRedirect})}async exchangeCodeForSession(e){return await this.initializePromise,this._acquireLock(-1,async()=>this._exchangeCodeForSession(e))}async signInWithWeb3(e){const{chain:r}=e;if(r==="solana")return await this.signInWithSolana(e);throw new Error(`@supabase/auth-js: Unsupported chain "${r}"`)}async signInWithSolana(e){var r,n,s,i,o,a,l,u,d,f,h,p;let g,m;if("message"in e)g=e.message,m=e.signature;else{const{chain:x,wallet:v,statement:y,options:b}=e;let S;if(pi())if(typeof v=="object")S=v;else{const C=window;if("solana"in C&&typeof C.solana=="object"&&("signIn"in C.solana&&typeof C.solana.signIn=="function"||"signMessage"in C.solana&&typeof C.solana.signMessage=="function"))S=C.solana;else throw new Error("@supabase/auth-js: No compatible Solana wallet interface on the window object (window.solana) detected. Make sure the user already has a wallet installed and connected for this app. Prefer passing the wallet interface object directly to signInWithWeb3({ chain: 'solana', wallet: resolvedUserWallet }) instead.")}else{if(typeof v!="object"||!(b!=null&&b.url))throw new Error("@supabase/auth-js: Both wallet and url must be specified in non-browser environments.");S=v}const E=new URL((r=b==null?void 0:b.url)!==null&&r!==void 0?r:window.location.href);if("signIn"in S&&S.signIn){const C=await S.signIn(Object.assign(Object.assign(Object.assign({issuedAt:new Date().toISOString()},b==null?void 0:b.signInWithSolana),{version:"1",domain:E.host,uri:E.href}),y?{statement:y}:null));let _;if(Array.isArray(C)&&C[0]&&typeof C[0]=="object")_=C[0];else if(C&&typeof C=="object"&&"signedMessage"in C&&"signature"in C)_=C;else throw new Error("@supabase/auth-js: Wallet method signIn() returned unrecognized value");if("signedMessage"in _&&"signature"in _&&(typeof _.signedMessage=="string"||_.signedMessage instanceof Uint8Array)&&_.signature instanceof Uint8Array)g=typeof _.signedMessage=="string"?_.signedMessage:new TextDecoder().decode(_.signedMessage),m=_.signature;else throw new Error("@supabase/auth-js: Wallet method signIn() API returned object without signedMessage and signature fields")}else{if(!("signMessage"in S)||typeof S.signMessage!="function"||!("publicKey"in S)||typeof S!="object"||!S.publicKey||!("toBase58"in S.publicKey)||typeof S.publicKey.toBase58!="function")throw new Error("@supabase/auth-js: Wallet does not have a compatible signMessage() and publicKey.toBase58() API");g=[`${E.host} wants you to sign in with your Solana account:`,S.publicKey.toBase58(),...y?["",y,""]:[""],"Version: 1",`URI: ${E.href}`,`Issued At: ${(s=(n=b==null?void 0:b.signInWithSolana)===null||n===void 0?void 0:n.issuedAt)!==null&&s!==void 0?s:new Date().toISOString()}`,...!((i=b==null?void 0:b.signInWithSolana)===null||i===void 0)&&i.notBefore?[`Not Before: ${b.signInWithSolana.notBefore}`]:[],...!((o=b==null?void 0:b.signInWithSolana)===null||o===void 0)&&o.expirationTime?[`Expiration Time: ${b.signInWithSolana.expirationTime}`]:[],...!((a=b==null?void 0:b.signInWithSolana)===null||a===void 0)&&a.chainId?[`Chain ID: ${b.signInWithSolana.chainId}`]:[],...!((l=b==null?void 0:b.signInWithSolana)===null||l===void 0)&&l.nonce?[`Nonce: ${b.signInWithSolana.nonce}`]:[],...!((u=b==null?void 0:b.signInWithSolana)===null||u===void 0)&&u.requestId?[`Request ID: ${b.signInWithSolana.re
656questId}`]:[],...!((f=(d=b==null?void 0:b.signInWithSolana)===null||d===void 0?void 0:d.resources)===null||f===void 0)&&f.length?["Resources",...b.signInWithSolana.resources.map(_=>`- ${_}`)]:[]].join(`
657`);const C=await S.signMessage(new TextEncoder().encode(g),"utf8");if(!C||!(C instanceof Uint8Array))throw new Error("@supabase/auth-js: Wallet signMessage() API returned an recognized value");m=C}}try{const{data:x,error:v}=await xt(this.fetch,"POST",`${this.url}/token?grant_type=web3`,{headers:this.headers,body:Object.assign({chain:"solana",message:g,signature:Kq(m)},!((h=e.options)===null||h===void 0)&&h.captchaToken?{gotrue_meta_security:{captcha_token:(p=e.options)===null||p===void 0?void 0:p.captchaToken}}:null),xform:bo});if(v)throw v;return!x||!x.session||!x.user?{data:{user:null,session:null},error:new Kp}:(x.session&&(await this._saveSession(x.session),await this._notifyAllSubscribers("SIGNED_IN",x.session)),{data:Object.assign({},x),error:v})}catch(x){if(nt(x))return{data:{user:null,session:null},error:x};throw x}}async _exchangeCodeForSession(e){const r=await xl(this.storage,`${this.storageKey}-code-verifier`),[n,s]=(r??"").split("/");try{const{data:i,error:o}=await xt(this.fetch,"POST",`${this.url}/token?grant_type=pkce`,{headers:this.headers,body:{auth_code:e,code_verifier:n},xform:bo});if(await ea(this.storage,`${this.storageKey}-code-verifier`),o)throw o;return!i||!i.session||!i.user?{data:{user:null,session:null,redirectType:null},error:new Kp}:(i.session&&(await this._saveSession(i.session),await this._notifyAllSubscribers("SIGNED_IN",i.session)),{data:Object.assign(Object.assign({},i),{redirectType:s??null}),error:o})}catch(i){if(nt(i))return{data:{user:null,session:null,redirectType:null},error:i};throw i}}async signInWithIdToken(e){try{const{options:r,provider:n,token:s,access_token:i,nonce:o}=e,a=await xt(this.fetch,"POST",`${this.url}/token?grant_type=id_token`,{headers:this.headers,body:{provider:n,id_token:s,access_token:i,nonce:o,gotrue_meta_security:{captcha_token:r==null?void 0:r.captchaToken}},xform:bo}),{data:l,error:u}=a;return u?{data:{user:null,session:null},error:u}:!l||!l.session||!l.user?{data:{user:null,session:null},error:new Kp}:(l.session&&(await this._saveSession(l.session),await this._notifyAllSubscribers("SIGNED_IN",l.session)),{data:l,error:u})}catch(r){if(nt(r))return{data:{user:null,session:null},error:r};throw r}}async signInWithOtp(e){var r,n,s,i,o;try{if("email"in e){const{email:a,options:l}=e;let u=null,d=null;this.flowType==="pkce"&&([u,d]=await Pc(this.storage,this.storageKey));const{error:f}=await xt(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{email:a,data:(r=l==null?void 0:l.data)!==null&&r!==void 0?r:{},create_user:(n=l==null?void 0:l.shouldCreateUser)!==null&&n!==void 0?n:!0,gotrue_meta_security:{captcha_token:l==null?void 0:l.captchaToken},code_challenge:u,code_challenge_method:d},redirectTo:l==null?void 0:l.emailRedirectTo});return{data:{user:null,session:null},error:f}}if("phone"in e){const{phone:a,options:l}=e,{data:u,error:d}=await xt(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{phone:a,data:(s=l==null?void 0:l.data)!==null&&s!==void 0?s:{},create_user:(i=l==null?void 0:l.shouldCreateUser)!==null&&i!==void 0?i:!0,gotrue_meta_security:{captcha_token:l==null?void 0:l.captchaToken},channel:(o=l==null?void 0:l.channel)!==null&&o!==void 0?o:"sms"}});return{data:{user:null,session:null,messageId:u==null?void 0:u.message_id},error:d}}throw new Xp("You must provide either an email or phone number.")}catch(a){if(nt(a))return{data:{user:null,session:null},error:a};throw a}}async verifyOtp(e){var r,n;try{let s,i;"options"in e&&(s=(r=e.options)===null||r===void 0?void 0:r.redirectTo,i=(n=e.options)===null||n===void 0?void 0:n.captchaToken);const{data:o,error:a}=await xt(this.fetch,"POST",`${this.url}/verify`,{headers:this.headers,body:Object.assign(Object.assign({},e),{gotrue_meta_security:{captcha_token:i}}),redirectTo:s,xform:bo});if(a)throw a;if(!o)throw new Error("An error occurred on token verification.");const l=o.session,u=o.user;return l!=null&&l.access_token&&(await this._saveSession(l),await this._notifyAllSubscribers(e.type=="recovery"?"PASSWORD_RECOVERY":"SIGNED_IN",l)),{data:{user:u,session:l},error:null}}catch(s){if(nt(s))return{data:{user:null,session:null},error:s};throw s}}async signInWithSSO(e){var r,n,s;try{let i=null,o=null;return this.flowType==="pkce"&&([i,o]=await Pc(this.storage,this.storageKey)),await xt(this.fetch,"POST",`${this.url}/sso`,{body:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},"providerId"in e?{provider_id:e.providerId}:null),"domain"in e?{domain:e.domain}:null),{redirect_to:(n=(r=e.options)===null||r===void 0?void 0:r.redirectTo)!==null&&n!==void 0?n:void 0}),!((s=e==null?void 0:e.options)===null||s===void 0)&&s.captchaToken?{gotrue_meta_security:{captcha_token:e.options.captchaToken}}:null),{skip_http_redirect:!0,code_challenge:i,code_challenge_method:o}),headers:this.headers,xform:pG})}catch(i){if(nt(i))return{data:null,error:i};throw i}}async reauthenticate(){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._reauthenticate())}async _reauthenticate(){try{return await this._useSession(async e=>{const{data:{session:r},error:n}=e;if(n)throw n;if(!r)throw new ia;const{error:s}=await xt(this.fetch,"GET",`${this.url}/reauthenticate`,{headers:this.headers,jwt:r.access_token});return{data:{user:null,session:null},error:s}})}catch(e){if(nt(e))return{data:{user:null,session:null},error:e};throw e}}async resend(e){try{const r=`${this.url}/resend`;if("email"in e){const{email:n,type:s,options:i}=e,{error:o}=await xt(this.fetch,"POST",r,{headers:this.headers,body:{email:n,type:s,gotrue_meta_security:{captcha_token:i==null?void 0:i.captchaToken}},redirectTo:i==null?void 0:i.emailRedirectTo});return{data:{user:null,session:null},error:o}}else if("phone"in e){const{phone:n,type:s,options:i}=e,{data:o,error:a}=await xt(this.fetch,"POST",r,{headers:this.headers,body:{phone:n,type:s,gotrue_meta_security:{captcha_token:i==null?void 0:i.captchaToken}}});return{data:{user:null,session:null,messageId:o==null?void 0:o.message_id},error:a}}throw new Xp("You must provide either an email or phone number and a type")}catch(r){if(nt(r))return{data:{user:null,session:null},error:r};throw r}}async getSession(){return await this.initializePromise,await this._acquireLock(-1,async()=>this._useSession(async r=>r))}async _acquireLock(e,r){this._debug("#_acquireLock","begin",e);try{if(this.lockAcquired){const n=this.pendingInLock.length?this.pendingInLock[this.pendingInLock.length-1]:Promise.resolve(),s=(async()=>(await n,await r()))();return this.pendingInLock.push((async()=>{try{await s}catch{}})()),s}return await this.lock(`lock:${this.storageKey}`,e,async()=>{this._debug("#_acquireLock","lock acquired for storage key",this.storageKey);try{this.lockAcquired=!0;const n=r();for(this.pendingInLock.push((async()=>{try{await n}catch{}})()),await n;this.pendingInLock.length;){const s=[...this.pendingInLock];await Promise.all(s),this.pendingInLock.splice(0,s.length)}return await n}finally{this._debug("#_acquireLock","lock released for storage key",this.storageKey),this.lockAcquired=!1}})}finally{this._debug("#_acquireLock","end")}}async _useSession(e){this._debug("#_useSession","begin");try{const r=await this.__loadSession();return await e(r)}finally{this._debug("#_useSession","end")}}async __loadSession(){this._debug("#__loadSession()","begin"),this.lockAcquired||this._debug("#__loadSession()","used outside of an acquired lock!",new Error().stack);try{let e=null;const r=await xl(this.storage,this.storageKey);if(this._debug("#getSession()","session from storage",r),r!==null&&(this._isValidSession(r)?e=r:(this._debug("#getSession()","session from storage is not val
657id"),await this._removeSession())),!e)return{data:{session:null},error:null};const n=e.expires_at?e.expires_at*1e3-Date.now()<f1:!1;if(this._debug("#__loadSession()",`session has${n?"":" not"} expired`,"expires_at",e.expires_at),!n){if(this.userStorage){const o=await xl(this.userStorage,this.storageKey+"-user");o!=null&&o.user?e.user=o.user:e.user=m1()}if(this.storage.isServer&&e.user){let o=this.suppressGetSessionWarning;e=new Proxy(e,{get:(l,u,d)=>(!o&&u==="user"&&(console.warn("Using the user object as returned from supabase.auth.getSession() or from some supabase.auth.onAuthStateChange() events could be insecure! This value comes directly from the storage medium (usually cookies on the server) and may not be authentic. Use supabase.auth.getUser() instead which authenticates the data by contacting the Supabase Auth server."),o=!0,this.suppressGetSessionWarning=!0),Reflect.get(l,u,d))})}return{data:{session:e},error:null}}const{session:s,error:i}=await this._callRefreshToken(e.refresh_token);return i?{data:{session:null},error:i}:{data:{session:s},error:null}}finally{this._debug("#__loadSession()","end")}}async getUser(e){return e?await this._getUser(e):(await this.initializePromise,await this._acquireLock(-1,async()=>await this._getUser()))}async _getUser(e){try{return e?await xt(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:e,xform:ga}):await this._useSession(async r=>{var n,s,i;const{data:o,error:a}=r;if(a)throw a;return!(!((n=o.session)===null||n===void 0)&&n.access_token)&&!this.hasCustomAuthorizationHeader?{data:{user:null},error:new ia}:await xt(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:(i=(s=o.session)===null||s===void 0?void 0:s.access_token)!==null&&i!==void 0?i:void 0,xform:ga})})}catch(r){if(nt(r))return $q(r)&&(await this._removeSession(),await ea(this.storage,`${this.storageKey}-code-verifier`)),{data:{user:null},error:r};throw r}}async updateUser(e,r={}){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._updateUser(e,r))}async _updateUser(e,r={}){try{return await this._useSession(async n=>{const{data:s,error:i}=n;if(i)throw i;if(!s.session)throw new ia;const o=s.session;let a=null,l=null;this.flowType==="pkce"&&e.email!=null&&([a,l]=await Pc(this.storage,this.storageKey));const{data:u,error:d}=await xt(this.fetch,"PUT",`${this.url}/user`,{headers:this.headers,redirectTo:r==null?void 0:r.emailRedirectTo,body:Object.assign(Object.assign({},e),{code_challenge:a,code_challenge_method:l}),jwt:o.access_token,xform:ga});if(d)throw d;return o.user=u.user,await this._saveSession(o),await this._notifyAllSubscribers("USER_UPDATED",o),{data:{user:o.user},error:null}})}catch(n){if(nt(n))return{data:{user:null},error:n};throw n}}async setSession(e){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._setSession(e))}async _setSession(e){try{if(!e.access_token||!e.refresh_token)throw new ia;const r=Date.now()/1e3;let n=r,s=!0,i=null;const{payload:o}=p1(e.access_token);if(o.exp&&(n=o.exp,s=n<=r),s){const{session:a,error:l}=await this._callRefreshToken(e.refresh_token);if(l)return{data:{user:null,session:null},error:l};if(!a)return{data:{user:null,session:null},error:null};i=a}else{const{data:a,error:l}=await this._getUser(e.access_token);if(l)throw l;i={access_token:e.access_token,refresh_token:e.refresh_token,user:a.user,token_type:"bearer",expires_in:n-r,expires_at:n},await this._saveSession(i),await this._notifyAllSubscribers("SIGNED_IN",i)}return{data:{user:i.user,session:i},error:null}}catch(r){if(nt(r))return{data:{session:null,user:null},error:r};throw r}}async refreshSession(e){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._refreshSession(e))}async _refreshSession(e){try{return await this._useSession(async r=>{var n;if(!e){const{data:o,error:a}=r;if(a)throw a;e=(n=o.session)!==null&&n!==void 0?n:void 0}if(!(e!=null&&e.refresh_token))throw new ia;const{session:s,error:i}=await this._callRefreshToken(e.refresh_token);return i?{data:{user:null,session:null},error:i}:s?{data:{user:s.user,session:s},error:null}:{data:{user:null,session:null},error:null}})}catch(r){if(nt(r))return{data:{user:null,session:null},error:r};throw r}}async _getSessionFromURL(e,r){try{if(!pi())throw new Yp("No browser detected.");
657if(e.error||e.error_description||e.error_code)throw new Yp(e.error_description||"Error in URL with unspecified error_description",{error:e.error||"unspecified_error",code:e.error_code||"unspecified_code"});switch(r){case"implicit":if(this.flowType==="pkce")throw new fC("Not a valid PKCE flow url.");break;case"pkce":if(this.flowType==="implicit")throw new Yp("Not a valid implicit grant flow url.");break;default:}if(r==="pkce"){if(this._debug("#_initialize()","begin","is PKCE flow",!0),!e.code)throw new fC("No code detected.");const{data:y,error:b}=await this._exchangeCodeForSession(e.code);if(b)throw b;const S=new URL(window.location.href);return S.searchParams.delete("code"),window.history.replaceState(window.history.state,"",S.toString()),{data:{session:y.session,redirectType:null},error:null}}const{provider_token:n,provider_refresh_token:s,access_token:i,refresh_token:o,expires_in:a,expires_at:l,token_type:u}=e;if(!i||!a||!o||!u)throw new Yp("No session defined in URL");const d=Math.round(Date.now()/1e3),f=parseInt(a);let h=d+f;l&&(h=parseInt(l));const p=h-d;p*1e3<=Xc&&console.warn(`@supabase/gotrue-js: Session as retrieved from URL expires in ${p}s, should have been closer to ${f}s`);const g=h-f;d-g>=120?console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued over 120s ago, URL could be stale",g,h,d):d-g<0&&console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued in the future? Check the device clock for skew",g,h,d);const{data:m,error:x}=await this._getUser(i);if(x)throw x;const v={provider_token:n,provider_refresh_token:s,access_token:i,expires_in:f,expires_at:h,refresh_token:o,token_type:u,user:m.user};return window.location.hash="",this._debug("#_getSessionFromURL()","clearing window.location.hash"),{data:{session:v,redirectType:e.type},error:null}}catch(n){if(nt(n))return{data:{session:null,redirectType:null},error:n};throw n}}_isImplicitGrantCallback(e){return!!(e.access_token||e.error_description)}async _isPKCECallback(e){const r=await xl(this.storage,`${this.storageKey}-code-verifier`);return!!(e.code&&r)}async signOut(e={scope:"global"}){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._signOut(e))}async _signOut({scope:e}={scope:"global"}){return await this._useSession(async r=>{var n;const{data:s,error:i}=r;if(i)return{error:i};const o=(n=s.session)===null||n===void 0?void 0:n.access_token;if(o){const{error:a}=await this.admin.signOut(o,e);if(a&&!(Bq(a)&&(a.status===404||a.status===401||a.status===403)))return{error:a}}return e!=="others"&&(await this._removeSession(),await ea(this.storage,`${this.storageKey}-code-verifier`)),{error:null}})}onAuthStateChange(e){const r=Yq(),n={id:r,callback:e,unsubscribe:()=>{this._debug("#unsubscribe()","state change callback with id removed",r),this.stateChangeEmitters.delete(r)}};return this._debug("#onAuthStateChange()","registered callback with id",r),this.stateChangeEmitters.set(r,n),(async()=>(await this.initializePromise,await this._acquireLock(-1,async()=>{this._emitInitialSession(r)})))(),{data:{subscription:n}}}async _emitInitialSession(e){return await this._useSession(async r=>{var n,s;try{const{data:{session:i},error:o}=r;if(o)throw o;await((n=this.stateChangeEmitters.get(e))===null||n===void 0?void 0:n.callback("INITIAL_SESSION",i)),this._debug("INITIAL_SESSION","callback id",e,"session",i)}catch(i){await((s=this.stateChangeEmitters.get(e))===null||s===void 0?void 0:s.callback("INITIAL_SESSION",null)),this._debug("INITIAL_SESSION","callback id",e,"error",i),console.error(i)}})}async resetPasswordForEmail(e,r={}){let n=null,s=null;this.flowType==="pkce"&&([n,s]=await Pc(this.storage,this.storageKey,!0));try{return await xt(this.fetch,"POST",`${this.url}/recover`,{body:{email:e,code_challenge:n,code_challenge_method:s,gotrue_meta_security:{captcha_token:r.captchaToken}},headers:this.headers,redirectTo:r.redirectTo})}catch(i){if(nt(i))return{data:null,error:i};throw i}}async getUserIdentities(){var e;try{const{data:r,error:n}=await this.getUser();if(n)throw n;return{data:{identities:(e=r.user.identities)!==null&&e!==void 0?e:[]},error:null}}catch(r){if(nt(r))return{data:null,error:r};throw r}}async linkIdentity(e){var r;try{const{data:n,error:s}=await this._useSession(async i=>{var o,a,l,u,d;const{data:f,error:h}=i;if(h)throw h;const p=await this._getUrlForProvider(`${this.url}/user/identities/authorize`,e.provider,{redirectTo:(o=e.options)===null||o===void 0?void 0:o.redirectTo,scopes:(a=e.options)===null||a===void 0?void 0:a.scopes,queryParams:(l=e.options)===null||l===void 0?void 0:l.queryParams,skipBrowserRedirect:!0});return await xt(this.fetch,"GET",p,{headers:this.headers,jwt:(d=(u=f.session)===null||u===void 0?void 0:u.access_token)!==null&&d!==void 0?d:void 0})});if(s)throw s;return pi()&&!(!((r=e.options)===null||r===void 0)&&r.skipBrowserRedirect)&&window.location.assign(n==null?void 0:n.url),{data:{provider:e.provider,url:n==null?void 0:n.url},error:null}}catch(n){if(nt(n))return{data:{provider:e.provider,url:null},error:n};throw n}}async unlinkIdentity(e){try{return await this._useSession(async r=>{var n,s;const{data:i,error:o}=r;if(o)throw o;
657return await xt(this.fetch,"DELETE",`${this.url}/user/identities/${e.identity_id}`,{headers:this.headers,jwt:(s=(n=i.session)===null||n===void 0?void 0:n.access_token)!==null&&s!==void 0?s:void 0})})}catch(r){if(nt(r))return{data:null,error:r};throw r}}async _refreshAccessToken(e){const r=`#_refreshAccessToken(${e.substring(0,5)}...)`;this._debug(r,"begin");try{const n=Date.now();return await eG(async s=>(s>0&&await Zq(200*Math.pow(2,s-1)),this._debug(r,"refreshing attempt",s),await xt(this.fetch,"POST",`${this.url}/token?grant_type=refresh_token`,{body:{refresh_token:e},headers:this.headers,xform:bo})),(s,i)=>{const o=200*Math.pow(2,s);return i&&h1(i)&&Date.now()+o-n<Xc})}catch(n){if(this._debug(r,"error",n),nt(n))return{data:{session:null,user:null},error:n};throw n}finally{this._debug(r,"end")}}_isValidSession(e){return typeof e=="object"&&e!==null&&"access_token"in e&&"refresh_token"in e&&"expires_at"in e}async _handleProviderSignIn(e,r){const n=await this._getUrlForProvider(`${this.url}/authorize`,e,{redirectTo:r.redirectTo,scopes:r.scopes,queryParams:r.queryParams});return this._debug("#_handleProviderSignIn()","provider",e,"options",r,"url",n),pi()&&!r.skipBrowserRedirect&&window.location.assign(n),{data:{provider:e,url:n},error:null}}async _recoverAndRefresh(){var e,r;const n="#_recoverAndRefresh()";this._debug(n,"begin");try{const s=await xl(this.storage,this.storageKey);if(s&&this.userStorage){let o=await xl(this.userStorage,this.storageKey+"-user");!this.storage.isServer&&Object.is(this.storage,this.userStorage)&&!o&&(o={user:s.user},await Yc(this.userStorage,this.storageKey+"-user",o)),s.user=(e=o==null?void 0:o.user)!==null&&e!==void 0?e:m1()}else if(s&&!s.user&&!s.user){const o=await xl(this.storage,this.storageKey+"-user");o&&(o!=null&&o.user)?(s.user=o.user,await ea(this.storage,this.storageKey+"-user"),await Yc(this.storage,this.storageKey,s)):s.user=m1()}if(this._debug(n,"session from storage",s),!this._isValidSession(s)){this._debug(n,"session is not valid"),s!==null&&await this._removeSession();return}const i=((r=s.expires_at)!==null&&r!==void 0?r:1/0)*1e3-Date.now()<f1;if(this._debug(n,`session has${i?"":" not"} expired with margin of ${f1}s`),i){if(this.autoRefreshToken&&s.refresh_token){const{error:o}=await this._callRefreshToken(s.refresh_token);o&&(console.error(o),h1(o)||(this._debug(n,"refresh failed with a non-retryable error, removing the session",o),await this._removeSession()))}}else if(s.user&&s.user.__isUserNotAvailableProxy===!0)try{const{data:o,error:a}=await this._getUser(s.access_token);!a&&(o!=null&&o.user)?(s.user=o.user,await this._saveSession(s),await this._notifyAllSubscribers("SIGNED_IN",s)):this._debug(n,"could not get user data, skipping SIGNED_IN notification")}catch(o){console.error("Error getting user data:",o),this._debug(n,"error getting user data, skipping SIGNED_IN notification",o)}else await this._notifyAllSubscribers("SIGNED_IN",s)}catch(s){this._debug(n,"error",s),console.error(s);return}finally{this._debug(n,"end")}}async _callRefreshToken(e){var r,n;if(!e)throw new ia;if(this.refreshingDeferred)return this.refreshingDeferred.promise;const s=`#_callRefreshToken(${e.substring(0,5)}...)`;this._debug(s,"begin");try{this.refreshingDeferred=new $x;const{data:i,error:o}=await this._refreshAccessToken(e);if(o)throw o;if(!i.session)throw new ia;await this._saveSession(i.session),await this._notifyAllSubscribers("TOKEN_REFRESHED",i.session);const a={session:i.session,error:null};return this.refreshingDeferred.resolve(a),a}catch(i){if(this._debug(s,"error",i),nt(i)){const o={session:null,error:i};return h1(i)||await this._removeSession(),(r=this.refreshingDeferred)===null||r===void 0||r.resolve(o),o}throw(n=this.refreshingDeferred)===null||n===void 0||n.reject(i),i}finally{this.refreshingDeferred=null,this._debug(s,"end")}}async _notifyAllSubscribers(e,r,n=!0){const s=`#_notifyAllSubscribers(${e})`;this._debug(s,"begin",r,`broadcast = ${n}`);try{this.broadcastChannel&&n&&this.broadcastChannel.postMessage({event:e,session:r});const i=[],o=Array.from(this.stateChangeEmitters.values()).map(async a=>{try{await a.callback(e,r)}catch(l){i.push(l)}});if(await Promise.all(o),i.length>0){for(let a=0;a<i.length;a+=1)console.error(i[a]);throw i[0]}}finally{this._debug(s,"end")}}async _saveSession(e){this._debug("#_saveSession()",e),this.suppressGetSessionWarning=!0;const r=Object.assign({},e),n=r.user&&r.user.__isUserNotAvailableProxy===!0;if(this.userStorage){!n&&r.user&&await Yc(this.userStorage,this.storageKey+"-user",{user:r.user});const s=Object.assign({},r);delete s.user;const i=xC(s);await Yc(this.storage,this.storageKey,i)}else{const s=xC(r);await Yc(this.storage,this.storageKey,s)}}async _removeSession(){this._debug("#_removeSession()"),await ea(this.storage,this.storageKey),await ea(this.storage,this.storageKey+"-code-verifier"),await ea(this.storage,this.storageKey+"-user"),this.userStorage&&await ea(this.userStorage,this.storageKey+"-user"),await this._notifyAllSubscribers("SIGNED_OUT",null)}_removeVisibilityChangedCallback(){this._debug("#_removeVisibilityChangedCallback()");const e=this.visibilityChangedCallback;this.visibilityChangedCallback=null;try{e&&pi()&&(window!=null&&window.removeEventListener)&&window.removeEventListener("visibilitychange",e)}
657catch(r){console.error("removing visibilitychange callback failed",r)}}async _startAutoRefresh(){await this._stopAutoRefresh(),this._debug("#_startAutoRefresh()");const e=setInterval(()=>this._autoRefreshTokenTick(),Xc);this.autoRefreshTicker=e,e&&typeof e=="object"&&typeof e.unref=="function"?e.unref():typeof Deno<"u"&&typeof Deno.unrefTimer=="function"&&Deno.unrefTimer(e),setTimeout(async()=>{await this.initializePromise,await this._autoRefreshTokenTick()},0)}async _stopAutoRefresh(){this._debug("#_stopAutoRefresh()");const e=this.autoRefreshTicker;this.autoRefreshTicker=null,e&&clearInterval(e)}async startAutoRefresh(){this._removeVisibilityChangedCallback(),await this._startAutoRefresh()}async stopAutoRefresh(){this._removeVisibilityChangedCallback(),await this._stopAutoRefresh()}async _autoRefreshTokenTick(){this._debug("#_autoRefreshTokenTick()","begin");try{await this._acquireLock(0,async()=>{try{const e=Date.now();try{return await this._useSession(async r=>{const{data:{session:n}}=r;if(!n||!n.refresh_token||!n.expires_at){this._debug("#_autoRefreshTokenTick()","no session");return}const s=Math.floor((n.expires_at*1e3-e)/Xc);this._debug("#_autoRefreshTokenTick()",`access token expires in ${s} ticks, a tick lasts ${Xc}ms, refresh threshold is ${Iw} ticks`),s<=Iw&&await this._callRefreshToken(n.refresh_token)})}catch(r){console.error("Auto refresh tick failed with error. This is likely a transient error.",r)}}finally{this._debug("#_autoRefreshTokenTick()","end")}})}catch(e){if(e.isAcquireTimeout||e instanceof LP)this._debug("auto refresh token tick lock not available");else throw e}}async _handleVisibilityChange(){if(this._debug("#_handleVisibilityChange()"),!pi()||!(window!=null&&window.addEventListener))return this.autoRefreshToken&&this.startAutoRefresh(),!1;try{this.visibilityChangedCallback=async()=>await this._onVisibilityChanged(!1),window==null||window.addEventListener("visibilitychange",this.visibilityChangedCallback),await this._onVisibilityChanged(!0)}catch(e){console.error("_handleVisibilityChange",e)}}async _onVisibilityChanged(e){const r=`#_onVisibilityChanged(${e})`;this._debug(r,"visibilityState",document.visibilityState),document.visibilityState==="visible"?(this.autoRefreshToken&&this._startAutoRefresh(),e||(await this.initializePromise,await this._acquireLock(-1,async()=>{if(document.visibilityState!=="visible"){this._debug(r,"acquired the lock to recover the session, but the browser visibilityState is no longer visible, aborting");return}await this._recoverAndRefresh()}))):document.visibilityState==="hidden"&&this.autoRefreshToken&&this._stopAutoRefresh()}async _getUrlForProvider(e,r,n){const s=[`provider=${encodeURIComponent(r)}`];if(n!=null&&n.redirectTo&&s.push(`redirect_to=${encodeURIComponent(n.redirectTo)}`),n!=null&&n.scopes&&s.push(`scopes=${encodeURIComponent(n.scopes)}`),this.flowType==="pkce"){const[i,o]=await Pc(this.storage,this.storageKey),a=new URLSearchParams({code_challenge:`${encodeURIComponent(i)}`,code_challenge_method:`${encodeURIComponent(o)}`});s.push(a.toString())}if(n!=null&&n.queryParams){const i=new URLSearchParams(n.queryParams);s.push(i.toString())}return n!=null&&n.skipBrowserRedirect&&s.push(`skip_http_redirect=${n.skipBrowserRedirect}`),`${e}?${s.join("&")}`}async _unenroll(e){try{return await this._useSession(async r=>{var n;const{data:s,error:i}=r;return i?{data:null,error:i}:await xt(this.fetch,"DELETE",`${this.url}/factors/${e.factorId}`,{headers:this.headers,jwt:(n=s==null?void 0:s.session)===null||n===void 0?void 0:n.access_token})})}catch(r){if(nt(r))return{data:null,error:r};throw r}}async _enroll(e){try{return await this._useSession(async r=>{var n,s;const{data:i,error:o}=r;if(o)return{data:null,error:o};const a=Object.assign({friendly_name:e.friendlyName,factor_type:e.factorType},e.factorType==="phone"?{phone:e.phone}:{issuer:e.issuer}),{data:l,error:u}=await xt(this.fetch,"POST",`${this.url}/factors`,{body:a,headers:this.headers,jwt:(n=i==null?void 0:i.session)===null||n===void 0?void 0:n.access_token});return u?{data:null,error:u}:(e.factorType==="totp"&&(!((s=l==null?void 0:l.totp)===null||s===void 0)&&s.qr_code)&&(l.totp.qr_code=`data:image/svg+xml;utf-8,${l.totp.qr_code}`),{data:l,error:null})})}catch(r){if(nt(r))return{data:null,error:r};throw r}}async _verify(e){return this._acquireLock(-1,async()=>{try{return await this._useSession(async r=>{var n;const{data:s,error:i}=r;if(i)return{data:null,error:i};const{data:o,error:a}=await xt(this.fetch,"POST",`${this.url}/factors/${e.factorId}/verify`,{body:{code:e.code,challenge_id:e.challengeId},headers:this.headers,jwt:(n=s==null?void 0:s.session)===null||n===void 0?void 0:n.access_token});return a?{data:null,error:a}:(await this._saveSession(Object.assign({expires_at:Math.round(Date.now()/1e3)+o.expires_in},o)),await this._notifyAllSubscribers("MFA_CHALLENGE_VERIFIED",o),{data:o,error:a})})}catch(r){if(nt(r))return{data:null,error:r};throw r}})}async _challenge(e){return this._acquireLock(-1,async()=>{try{return await this._useSession(async r=>{var n;const{data:s,error:i}=r;return i?{data:null,error:i}:await xt(this.fetch,"POST",`${this.url}/factors/${e.factorId}/challenge`,{body:{channel:e.channel},headers:this.headers,jwt:(n=s==null?void 0:s.session)===null||n===void 0?void 0:n.access_token})})}catch(r){if(nt(r))return{data:null,error:r};throw r}})}async _challengeAndVerify(e){const{data:r,error:n}=await this._challenge({factorId:e.factorId});return n?{data:null,error:n}:await this._verify({factorId:e.factorId,challengeId:r.id,code:e.code})}async _listFactors(){const{data:{user:e},error:r}=await this.getUser();if(r)return{data:null,error:r};const n=(e==null?void 0:e.factors)||[],s=n.filter(o=>o.factor_type==="totp"&&o.status==="verified"),i=n.filter(o=>o.factor_type==="phone"&&o.status==="verified");return{data:{all:n,totp:s,phone:i},error:null}}async _getAuthenticatorAssuranceLevel(){return this._acquireLock(-1,async()=>await this._useSession(async e=>{var r,n;const{data:{session:s},error:i}=e;if(i)return{data:null,error:i};if(!s)return{data:{currentLevel:null,nextLevel:null,currentAuthenticationMethods:[]},error:null};const{payload:o}=p1(s.access_token);let a=null;o.aal&&(a=o.aal);let l=a;((n=(r=s.user.factors)===null||r===void 0?void 0:r.filter(f=>f.status==="verified"))!==null&&n!==void 0?n:[]).length>0&&(l="aal2");const d=o.amr||[];return{data:{currentLevel:a,nextLevel:l,currentAuthenticationMethods:d},error:null}}))}async fetchJwk(e,r={keys:[]}){let n=r.keys.find(a=>a.kid===e);if(n)return n;const s=Date.now();if(n=this.jwks.keys.find(a=>a.kid===e),n&&this.jwks_cached_at+Lq>s)return n;const{data:i,error:o}=await xt(this.fetch,"GET",`${this.url}/.well-known/jwks.json`,{headers:this.headers});if(o)throw o;return!i.keys||i.keys.length===0||(this.jwks=i,this.jwks_cached_at=s,n=i.keys.find(a=>a.kid===e),!n)?null:n}async getClaims(e,r={}){try{let n=e;if(!n){const{data:p,error:g}
657=await this.getSession();if(g||!p.session)return{data:null,error:g};n=p.session.access_token}const{header:s,payload:i,signature:o,raw:{header:a,payload:l}}=p1(n);r!=null&&r.allowExpired||aG(i.exp);const u=!s.alg||s.alg.startsWith("HS")||!s.kid||!("crypto"in globalThis&&"subtle"in globalThis.crypto)?null:await this.fetchJwk(s.kid,r!=null&&r.keys?{keys:r.keys}:r==null?void 0:r.jwks);if(!u){const{error:p}=await this.getUser(n);if(p)throw p;return{data:{claims:i,header:s,signature:o},error:null}}const d=lG(s.alg),f=await crypto.subtle.importKey("jwk",u,d,!0,["verify"]);if(!await crypto.subtle.verify(d,f,o,Gq(`${a}.${l}`)))throw new Fw("Invalid JWT signature");return{data:{claims:i,header:s,signature:o},error:null}}catch(n){if(nt(n))return{data:null,error:n};throw n}}}xh.nextInstanceID=0;const EG=xh;class TG extends EG{constructor(e){super(e)}}var CG=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(d){try{u(n.next(d))}catch(f){o(f)}}function l(d){try{u(n.throw(d))}catch(f){o(f)}}function u(d){d.done?i(d.value):s(d.value).then(a,l)}u((n=n.apply(t,e||[])).next())})};class kG{constructor(e,r,n){var s,i,o;if(this.supabaseUrl=e,this.supabaseKey=r,!e)throw new Error("supabaseUrl is required.");if(!r)throw new Error("supabaseKey is required.");const a=Rq(e),l=new URL(a);this.realtimeUrl=new URL("realtime/v1",l),this.realtimeUrl.protocol=this.realtimeUrl.protocol.replace("http","ws"),this.authUrl=new URL("auth/v1",l),this.storageUrl=new URL("storage/v1",l),this.functionsUrl=new URL("functions/v1",l);const u=`sb-${l.hostname.split(".")[0]}-auth-token`,d={db:_q,realtime:Tq,auth:Object.assign(Object.assign({},Eq),{storageKey:u}),global:Sq},f=Oq(n??{},d);this.storageKey=(s=f.auth.storageKey)!==null&&s!==void 0?s:"",this.headers=(i=f.global.headers)!==null&&i!==void 0?i:{},f.accessToken?(this.accessToken=f.accessToken,this.auth=new Proxy({},{get:(h,p)=>{throw new Error(`@supabase/supabase-js: Supabase Client is configured with the accessToken option, accessing supabase.auth.${String(p)} is not possible`)}})):this.auth=this._initSupabaseAuthClient((o=f.auth)!==null&&o!==void 0?o:{},this.headers,f.global.fetch),this.fetch=Aq(r,this._getAccessToken.bind(this),f.global.fetch),this.realtime=this._initRealtimeClient(Object.assign({headers:this.headers,accessToken:this._getAccessToken.bind(this)},f.realtime)),this.rest=new HW(new URL("rest/v1",l).href,{headers:this.headers,schema:f.db.schema,fetch:this.fetch}),this.storage=new yq(this.storageUrl.href,this.headers,this.fetch,n==null?void 0:n.storage),f.accessToken||this._listenForAuthEvents()}get functions(){return new bW(this.functionsUrl.href,{headers:this.headers,customFetch:this.fetch})}from(e){return this.rest.from(e)}schema(e){return this.rest.schema(e)}rpc(e,r={},n={}){return this.rest.rpc(e,r,n)}channel(e,r={config:{}}){return this.realtime.channel(e,r)}getChannels(){return this.realtime.getChannels()}removeChannel(e){return this.realtime.removeChannel(e)}removeAllChannels(){return this.realtime.removeAllChannels()}_getAccessToken(){var e,r;return CG(this,void 0,void 0,function*(){if(this.accessToken)return yield this.accessToken();const{data:n}=yield this.auth.getSession();return(r=(e=n.session)===null||e===void 0?void 0:e.access_token)!==null&&r!==void 0?r:this.supabaseKey})}_initSupabaseAuthClient({autoRefreshToken:e,persistSession:r,detectSessionInUrl:n,storage:s,storageKey:i,flowType:o,lock:a,debug:l},u,d){const f={Authorization:`Bearer ${this.supabaseKey}`,apikey:`${this.supabaseKey}`};return new TG({url:this.authUrl.href,headers:Object.assign(Object.assign({},f),u),storageKey:i,autoRefreshToken:e,persistSession:r,detectSessionInUrl:n,storage:s,flowType:o,lock:a,debug:l,fetch:d,hasCustomAuthorizationHeader:"Authorization"in this.headers})}_initRealtimeClient(e){return new oq(this.realtimeUrl.href,Object.assign(Object.assign({},e),{params:Object.assign({apikey:this.supabaseKey},e==null?void 0:e.params)}))}_listenForAuthEvents(){return this.auth.onAuthStateChange((r,n)=>{this._handleTokenChanged(r,"CLIENT",n==null?void 0:n.access_token)})}_handleTokenChanged(e,r,n){(e==="TOKEN_REFRESHED"||e==="SIGNED_IN")&&this.changedAccessToken!==n?this.changedAccessToken=n:e==="SIGNED_OUT"&&(this.realtime.setAuth(),r=="STORAGE"&&this.auth.signOut(),this.changedAccessToken=void 0)}}const NG=(t,e,r)=>new kG(t,e,r);
vendor: 6,896 bytes, line 657
657function AG(){if(typeof window<"u"||typeof process>"u")return!1;const t=process.version;if(t==null)return!1;const e=t.match(/^v(\d+)\./);return e?parseInt(e[1],10)<=18:!1}AG()&&console.warn("⚠️  Node.js 18 and below are deprecated and will no longer be supported in future versions of @supabase/supabase-js. Please upgrade to Node.js 20 or later. For more information, visit: https://github.com/orgs/supabase/discussions/37217");const jG="https://gohyovgluliqrltppvoh.supabase.co",RG="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6ImdvaHlvdmdsdWxpcXJsdHBwdm9oIiwicm9sZSI6ImFub24iLCJpYXQiOjE3NTU4NzkzMzQsImV4cCI6MjA3MTQ1NTMzNH0.sLjV3FfXB3ut1vLvJUzN3RiAAngVzCKzbJ7tjLepy3k",_r=NG(jG,RG,{auth:{storage:localStorage,persistSession:!0,autoRefreshToken:!0}});var Tt;(function(t){t.assertEqual=s=>{};function e(s){}t.assertIs=e;function r(s){throw new Error}t.assertNever=r,t.arrayToEnum=s=>{const i={};for(const o of s)i[o]=o;return i},t.getValidEnumValues=s=>{const i=t.objectKeys(s).filter(a=>typeof s[s[a]]!="number"),o={};for(const a of i)o[a]=s[a];return t.objectValues(o)},t.objectValues=s=>t.objectKeys(s).map(function(i){return s[i]}),t.objectKeys=typeof Object.keys=="function"?s=>Object.keys(s):s=>{const i=[];for(const o in s)Object.prototype.hasOwnProperty.call(s,o)&&i.push(o);return i},t.find=(s,i)=>{for(const o of s)if(i(o))return o},t.isInteger=typeof Number.isInteger=="function"?s=>Number.isInteger(s):s=>typeof s=="number"&&Number.isFinite(s)&&Math.floor(s)===s;function n(s,i=" | "){return s.map(o=>typeof o=="string"?`'${o}'`:o).join(i)}t.joinValues=n,t.jsonStringifyReplacer=(s,i)=>typeof i=="bigint"?i.toString():i})(Tt||(Tt={}));var SC;(function(t){t.mergeShapes=(e,r)=>({...e,...r})})(SC||(SC={}));const Be=Tt.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),ua=t=>{switch(typeof t){case"undefined":return Be.undefined;case"string":return Be.string;case"number":return Number.isNaN(t)?Be.nan:Be.number;case"boolean":return Be.boolean;case"function":return Be.function;case"bigint":return Be.bigint;case"symbol":return Be.symbol;case"object":return Array.isArray(t)?Be.array:t===null?Be.null:t.then&&typeof t.then=="function"&&t.catch&&typeof t.catch=="function"?Be.promise:typeof Map<"u"&&t instanceof Map?Be.map:typeof Set<"u"&&t instanceof Set?Be.set:typeof Date<"u"&&t instanceof Date?Be.date:Be.object;default:return Be.unknown}},_e=Tt.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class Ho extends Error{get errors(){return this.issues}constructor(e){super(),this.issues=[],this.addIssue=n=>{this.issues=[...this.issues,n]},this.addIssues=(n=[])=>{this.issues=[...this.issues,...n]};const r=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,r):this.__proto__=r,this.name="ZodError",this.issues=e}format(e){const r=e||function(i){return i.message},n={_errors:[]},s=i=>{for(const o of i.issues)if(o.code==="invalid_union")o.unionErrors.map(s);else if(o.code==="invalid_return_type")s(o.returnTypeError);else if(o.code==="invalid_arguments")s(o.argumentsError);else if(o.path.length===0)n._errors.push(r(o));else{let a=n,l=0;for(;l<o.path.length;){const u=o.path[l];l===o.path.length-1?(a[u]=a[u]||{_errors:[]},a[u]._errors.push(r(o))):a[u]=a[u]||{_errors:[]},a=a[u],l++}}};return s(this),n}static assert(e){if(!(e instanceof Ho))throw new Error(`Not a ZodError: ${e}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,Tt.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(e=r=>r.message){const r={},n=[];for(const s of this.issues)if(s.path.length>0){const i=s.path[0];r[i]=r[i]||[],r[i].push(e(s))}else n.push(e(s));return{formErrors:n,fieldErrors:r}}get formErrors(){return this.flatten()}}Ho.create=t=>new Ho(t);const Bw=(t,e)=>{let r;switch(t.code){case _e.invalid_type:t.received===Be.undefined?r="Required":r=`Expected ${t.expected}, received ${t.received}`;break;case _e.invalid_literal:r=`Invalid literal value, expected ${JSON.stringify(t.expected,Tt.jsonStringifyReplacer)}`;break;case _e.unrecognized_keys:r=`Unrecognized key(s) in object: ${Tt.joinValues(t.keys,", ")}`;break;case _e.invalid_union:r="Invalid input";break;case _e.invalid_union_discriminator:r=`Invalid discriminator value. Expected ${Tt.joinValues(t.options)}`;break;case _e.invalid_enum_value:r=`Invalid enum value. Expected ${Tt.joinValues(t.options)}, received '${t.received}'`;break;case _e.invalid_arguments:r="Invalid function arguments";break;case _e.invalid_return_type:r="Invalid function return type";break;case _e.invalid_date:r="Invalid date";break;case _e.invalid_string:typeof t.validation=="object"?"includes"in t.validation?(r=`Invalid input: must include "${t.validation.includes}"`,typeof t.validation.position=="number"&&(r=`${r} at one or more positions greater than or equal to ${t.validation.position}`)):"startsWith"in t.validation?r=`Invalid input: must start with "${t.validation.startsWith}"`:"endsWith"in t.validation?r=`Invalid input: must end with "${t.validation.endsWith}"`:Tt.assertNever(t.validation):t.validation!=="regex"?r=`Invalid ${t.validation}`:r="Invalid";break;case _e.too_small:t.type==="array"?r=`Array must contain ${t.exact?"exactly":t.inclusive?"at least":"more than"} ${t.minimum} element(s)`:t.type==="string"?r=`String must contain ${t.exact?"exactly":t.inclusive?"at least":"over"} ${t.minimum} character(s)`:t.type==="number"?r=`Number must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${t.minimum}`:t.type==="bigint"?r=`Number must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${t.minimum}`:t.type==="date"?r=`Date must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(t.minimum))}`:r="Invalid input";break;case _e.too_big:t.type==="array"?r=`Array must contain ${t.exact?"exactly":t.inclusive?"at most":"less than"} ${t.maximum} element(s)`:t.type==="string"?r=`String must contain ${t.exact?"exactly":t.inclusive?"at most":"under"} ${t.maximum} character(s)`:t.type==="number"?r=`Number must be ${t.exact?"exactly":t.inclusive?"less than or equal to":"less than"} ${t.maximum}`:t.type==="bigint"?r=`BigInt must be ${t.exact?"exactly":t.inclusive?"less than or equal to":"less than"} ${t.maximum}`:t.type==="date"?r=`Date must be ${t.exact?"exactly":t.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(t.maximum))}`:r="Invalid input";break;case _e.custom:r="Invalid input";break;
vendor: 7,534 bytes, line 657
657case _e.invalid_intersection_types:r="Intersection results could not be merged";break;case _e.not_multiple_of:r=`Number must be a multiple of ${t.multipleOf}`;break;case _e.not_finite:r="Number must be finite";break;default:r=e.defaultError,Tt.assertNever(t)}return{message:r}};let OG=Bw;function PG(){return OG}const MG=t=>{const{data:e,path:r,errorMaps:n,issueData:s}=t,i=[...r,...s.path||[]],o={...s,path:i};if(s.message!==void 0)return{...s,path:i,message:s.message};let a="";const l=n.filter(u=>!!u).slice().reverse();for(const u of l)a=u(o,{data:e,defaultError:a}).message;return{...s,path:i,message:a}};function De(t,e){const r=PG(),n=MG({issueData:e,data:t.data,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,r,r===Bw?void 0:Bw].filter(s=>!!s)});t.common.issues.push(n)}class ks{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(e,r){const n=[];for(const s of r){if(s.status==="aborted")return Qe;s.status==="dirty"&&e.dirty(),n.push(s.value)}return{status:e.value,value:n}}static async mergeObjectAsync(e,r){const n=[];for(const s of r){const i=await s.key,o=await s.value;n.push({key:i,value:o})}return ks.mergeObjectSync(e,n)}static mergeObjectSync(e,r){const n={};for(const s of r){const{key:i,value:o}=s;if(i.status==="aborted"||o.status==="aborted")return Qe;i.status==="dirty"&&e.dirty(),o.status==="dirty"&&e.dirty(),i.value!=="__proto__"&&(typeof o.value<"u"||s.alwaysSet)&&(n[i.value]=o.value)}return{status:e.value,value:n}}}const Qe=Object.freeze({status:"aborted"}),af=t=>({status:"dirty",value:t}),oi=t=>({status:"valid",value:t}),_C=t=>t.status==="aborted",EC=t=>t.status==="dirty",td=t=>t.status==="valid",R0=t=>typeof Promise<"u"&&t instanceof Promise;var $e;(function(t){t.errToObj=e=>typeof e=="string"?{message:e}:e||{},t.toString=e=>typeof e=="string"?e:e==null?void 0:e.message})($e||($e={}));class el{constructor(e,r,n,s){this._cachedPath=[],this.parent=e,this.data=r,this._path=n,this._key=s}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const TC=(t,e)=>{if(td(e))return{success:!0,data:e.value};if(!t.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const r=new Ho(t.common.issues);return this._error=r,this._error}}};function pt(t){if(!t)return{};const{errorMap:e,invalid_type_error:r,required_error:n,description:s}=t;if(e&&(r||n))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return e?{errorMap:e,description:s}:{errorMap:(o,a)=>{const{message:l}=t;return o.code==="invalid_enum_value"?{message:l??a.defaultError}:typeof a.data>"u"?{message:l??n??a.defaultError}:o.code!=="invalid_type"?{message:a.defaultError}:{message:l??r??a.defaultError}},description:s}}class St{get description(){return this._def.description}_getType(e){return ua(e.data)}_getOrReturnCtx(e,r){return r||{common:e.parent.common,data:e.data,parsedType:ua(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new ks,ctx:{common:e.parent.common,data:e.data,parsedType:ua(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){const r=this._parse(e);if(R0(r))throw new Error("Synchronous parse encountered promise.");return r}_parseAsync(e){const r=this._parse(e);return Promise.resolve(r)}parse(e,r){const n=this.safeParse(e,r);if(n.success)return n.data;throw n.error}safeParse(e,r){const n={common:{issues:[],async:(r==null?void 0:r.async)??!1,contextualErrorMap:r==null?void 0:r.errorMap},path:(r==null?void 0:r.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:ua(e)},s=this._parseSync({data:e,path:n.path,parent:n});return TC(n,s)}"~validate"(e){var n,s;const r={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:ua(e)};if(!this["~standard"].async)try{const i=this._parseSync({data:e,path:[],parent:r});return td(i)?{value:i.value}:{issues:r.common.issues}}catch(i){(s=(n=i==null?void 0:i.message)==null?void 0:n.toLowerCase())!=null&&s.includes("encountered")&&(this["~standard"].async=!0),r.common={issues:[],async:!0}}return this._parseAsync({data:e,path:[],parent:r}).then(i=>td(i)?{value:i.value}:{issues:r.common.issues})}async parseAsync(e,r){const n=await this.safeParseAsync(e,r);if(n.success)return n.data;throw n.error}async safeParseAsync(e,r){const n={common:{issues:[],contextualErrorMap:r==null?void 0:r.errorMap,async:!0},path:(r==null?void 0:r.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:ua(e)},s=this._parse({data:e,path:n.path,parent:n}),i=await(R0(s)?s:Promise.resolve(s));return TC(n,i)}refine(e,r){const n=s=>typeof r=="string"||typeof r>"u"?{message:r}:typeof r=="function"?r(s):r;return this._refinement((s,i)=>{const o=e(s),a=()=>i.addIssue({code:_e.custom,...n(s)});return typeof Promise<"u"&&o instanceof Promise?o.then(l=>l?!0:(a(),!1)):o?!0:(a(),!1)})}refinement(e,r){return this._refinement((n,s)=>e(n)?!0:(s.addIssue(typeof r=="function"?r(n,s):r),!1))}_refinement(e){return new nd({schema:this,typeName:Ze.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:r=>this["~validate"](r)}}optional(){return Ha.create(this,this._def)}nullable(){return sd.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return no.create(this)}promise(){return I0.create(this,this._def)}or(e){return P0.create([this,e],this._def)}and(e){return M0.create(this,e,this._def)}transform(e){return new nd({...pt(this._def),schema:this,typeName:Ze.ZodEffects,effect:{type:"transform",transform:e}})}default(e){const r=typeof e=="function"?e:()=>e;return new Uw({...pt(this._def),innerType:this,defaultValue:r,typeName:Ze.ZodDefault})}brand(){return new nK({typeName:Ze.ZodBranded,type:this,...pt(this._def)})}catch(e){const r=typeof e=="function"?e:()=>e;return new Hw({...pt(this._def),innerType:this,catchValue:r,typeName:Ze.ZodCatch})}describe(e){const r=this.constructor;return new r({...this._def,description:e})}pipe(e){return _S.create(this,e)}readonly(){return Vw.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const IG=/^c[^\s-]{8,}
657$/i,DG=/^[0-9a-z]+$/,LG=/^[0-9A-HJKMNP-TV-Z]{26}$/i,FG=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,BG=/^[a-z0-9_-]{21}$/i,$G=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,zG=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,UG=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,HG="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let x1;const VG=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,WG=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,qG=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}
vendor: 4,266 bytes, line 657
657[0-9]))$/,GG=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,KG=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,XG=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,FP="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",YG=new RegExp(`^${FP}$`);function BP(t){let e="[0-5]\\d";t.precision?e=`${e}\\.\\d{${t.precision}}`:t.precision==null&&(e=`${e}(\\.\\d+)?`);const r=t.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${e})${r}`}function JG(t){return new RegExp(`^${BP(t)}$`)}function QG(t){let e=`${FP}T${BP(t)}`;const r=[];return r.push(t.local?"Z?":"Z"),t.offset&&r.push("([+-]\\d{2}:?\\d{2})"),e=`${e}(${r.join("|")})`,new RegExp(`^${e}$`)}function ZG(t,e){return!!((e==="v4"||!e)&&VG.test(t)||(e==="v6"||!e)&&qG.test(t))}function eK(t,e){if(!$G.test(t))return!1;try{const[r]=t.split(".");if(!r)return!1;const n=r.replace(/-/g,"+").replace(/_/g,"/").padEnd(r.length+(4-r.length%4)%4,"="),s=JSON.parse(atob(n));return!(typeof s!="object"||s===null||"typ"in s&&(s==null?void 0:s.typ)!=="JWT"||!s.alg||e&&s.alg!==e)}catch{return!1}}function tK(t,e){return!!((e==="v4"||!e)&&WG.test(t)||(e==="v6"||!e)&&GG.test(t))}class Na extends St{_parse(e){if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==Be.string){const i=this._getOrReturnCtx(e);return De(i,{code:_e.invalid_type,expected:Be.string,received:i.parsedType}),Qe}const n=new ks;let s;for(const i of this._def.checks)if(i.kind==="min")e.data.length<i.value&&(s=this._getOrReturnCtx(e,s),De(s,{code:_e.too_small,minimum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),n.dirty());else if(i.kind==="max")e.data.length>i.value&&(s=this._getOrReturnCtx(e,s),De(s,{code:_e.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),n.dirty());else if(i.kind==="length"){const o=e.data.length>i.value,a=e.data.length<i.value;(o||a)&&(s=this._getOrReturnCtx(e,s),o?De(s,{code:_e.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!0,message:i.message}):a&&De(s,{code:_e.too_small,minimum:i.value,type:"string",inclusive:!0,exact:!0,message:i.message}),n.dirty())}else if(i.kind==="email")UG.test(e.data)||(s=this._getOrReturnCtx(e,s),De(s,{validation:"email",code:_e.invalid_string,message:i.message}),n.dirty());else if(i.kind==="emoji")x1||(x1=new RegExp(HG,"u")),x1.test(e.data)||(s=this._getOrReturnCtx(e,s),De(s,{validation:"emoji",code:_e.invalid_string,message:i.message}),n.dirty());else if(i.kind==="uuid")FG.test(e.data)||(s=this._getOrReturnCtx(e,s),De(s,{validation:"uuid",code:_e.invalid_string,message:i.message}),n.dirty());else if(i.kind==="nanoid")BG.test(e.data)||(s=this._getOrReturnCtx(e,s),De(s,{validation:"nanoid",code:_e.invalid_string,message:i.message}),n.dirty());else if(i.kind==="cuid")IG.test(e.data)||(s=this._getOrReturnCtx(e,s),De(s,{validation:"cuid",code:_e.invalid_string,message:i.message}),n.dirty());else if(i.kind==="cuid2")DG.test(e.data)||(s=this._getOrReturnCtx(e,s),De(s,{validation:"cuid2",code:_e.invalid_string,message:i.message}),n.dirty());else if(i.kind==="ulid")LG.test(e.data)||(s=this._getOrReturnCtx(e,s),De(s,{validation:"ulid",code:_e.invalid_string,message:i.message}),n.dirty());else if(i.kind==="url")try{new URL(e.data)}catch{s=this._getOrReturnCtx(e,s),De(s,{validation:"url",code:_e.invalid_string,message:i.message}),n.dirty()}else i.kind==="regex"?(i.regex.lastIndex=0,i.regex.test(e.data)||(s=this._getOrReturnCtx(e,s),De(s,{validation:"regex",code:_e.invali
vendor: 14,708 bytes, line 657
657d_string,message:i.message}),n.dirty())):i.kind==="trim"?e.data=e.data.trim():i.kind==="includes"?e.data.includes(i.value,i.position)||(s=this._getOrReturnCtx(e,s),De(s,{code:_e.invalid_string,validation:{includes:i.value,position:i.position},message:i.message}),n.dirty()):i.kind==="toLowerCase"?e.data=e.data.toLowerCase():i.kind==="toUpperCase"?e.data=e.data.toUpperCase():i.kind==="startsWith"?e.data.startsWith(i.value)||(s=this._getOrReturnCtx(e,s),De(s,{code:_e.invalid_string,validation:{startsWith:i.value},message:i.message}),n.dirty()):i.kind==="endsWith"?e.data.endsWith(i.value)||(s=this._getOrReturnCtx(e,s),De(s,{code:_e.invalid_string,validation:{endsWith:i.value},message:i.message}),n.dirty()):i.kind==="datetime"?QG(i).test(e.data)||(s=this._getOrReturnCtx(e,s),De(s,{code:_e.invalid_string,validation:"datetime",message:i.message}),n.dirty()):i.kind==="date"?YG.test(e.data)||(s=this._getOrReturnCtx(e,s),De(s,{code:_e.invalid_string,validation:"date",message:i.message}),n.dirty()):i.kind==="time"?JG(i).test(e.data)||(s=this._getOrReturnCtx(e,s),De(s,{code:_e.invalid_string,validation:"time",message:i.message}),n.dirty()):i.kind==="duration"?zG.test(e.data)||(s=this._getOrReturnCtx(e,s),De(s,{validation:"duration",code:_e.invalid_string,message:i.message}),n.dirty()):i.kind==="ip"?ZG(e.data,i.version)||(s=this._getOrReturnCtx(e,s),De(s,{validation:"ip",code:_e.invalid_string,message:i.message}),n.dirty()):i.kind==="jwt"?eK(e.data,i.alg)||(s=this._getOrReturnCtx(e,s),De(s,{validation:"jwt",code:_e.invalid_string,message:i.message}),n.dirty()):i.kind==="cidr"?tK(e.data,i.version)||(s=this._getOrReturnCtx(e,s),De(s,{validation:"cidr",code:_e.invalid_string,message:i.message}),n.dirty()):i.kind==="base64"?KG.test(e.data)||(s=this._getOrReturnCtx(e,s),De(s,{validation:"base64",code:_e.invalid_string,message:i.message}),n.dirty()):i.kind==="base64url"?XG.test(e.data)||(s=this._getOrReturnCtx(e,s),De(s,{validation:"base64url",code:_e.invalid_string,message:i.message}),n.dirty()):Tt.assertNever(i);return{status:n.value,value:e.data}}_regex(e,r,n){return this.refinement(s=>e.test(s),{validation:r,code:_e.invalid_string,...$e.errToObj(n)})}_addCheck(e){return new Na({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...$e.errToObj(e)})}url(e){return this._addCheck({kind:"url",...$e.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...$e.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...$e.errToObj(e)})}nanoid(e){return this._addCheck({kind:"nanoid",...$e.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...$e.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...$e.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...$e.errToObj(e)})}base64(e){return this._addCheck({kind:"base64",...$e.errToObj(e)})}base64url(e){return this._addCheck({kind:"base64url",...$e.errToObj(e)})}jwt(e){return this._addCheck({kind:"jwt",...$e.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...$e.errToObj(e)})}cidr(e){return this._addCheck({kind:"cidr",...$e.errToObj(e)})}datetime(e){return typeof e=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:e}):this._addCheck({kind:"datetime",precision:typeof(e==null?void 0:e.precision)>"u"?null:e==null?void 0:e.precision,offset:(e==null?void 0:e.offset)??!1,local:(e==null?void 0:e.local)??!1,...$e.errToObj(e==null?void 0:e.message)})}date(e){return this._addCheck({kind:"date",message:e})}time(e){return typeof e=="string"?this._addCheck({kind:"time",precision:null,message:e}):this._addCheck({kind:"time",precision:typeof(e==null?void 0:e.precision)>"u"?null:e==null?void 0:e.precision,...$e.errToObj(e==null?void 0:e.message)})}duration(e){return this._addCheck({kind:"duration",...$e.errToObj(e)})}regex(e,r){return this._addCheck({kind:"regex",regex:e,...$e.errToObj(r)})}includes(e,r){return this._addCheck({kind:"includes",value:e,position:r==null?void 0:r.position,...$e.errToObj(r==null?void 0:r.message)})}startsWith(e,r){return this._addCheck({kind:"startsWith",value:e,...$e.errToObj(r)})}endsWith(e,r){return this._addCheck({kind:"endsWith",value:e,...$e.errToObj(r)})}min(e,r){return this._addCheck({kind:"min",value:e,...$e.errToObj(r)})}max(e,r){return this._addCheck({kind:"max",value:e,...$e.errToObj(r)})}length(e,r){return this._addCheck({kind:"length",value:e,...$e.errToObj(r)})}nonempty(e){return this.min(1,$e.errToObj(e))}trim(){return new Na({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new Na({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new Na({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(e=>e.kind==="datetime")}get isDate(){return!!this._def.checks.find(e=>e.kind==="date")}get isTime(){return!!this._def.checks.find(e=>e.kind==="time")}get isDuration(){return!!this._def.checks.find(e=>e.kind==="duration")}get isEmail(){return!!this._def.checks.find(e=>e.kind==="email")}get isURL(){return!!this._def.checks.find(e=>e.kind==="url")}get isEmoji(){return!!this._def.checks.find(e=>e.kind==="emoji")}get isUUID(){return!!this._def.checks.find(e=>e.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(e=>e.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(e=>e.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(e=>e.kind==="cuid2")}get isULID(){return!!this._def.checks.find(e=>e.kind==="ulid")}get isIP(){return!!this._def.checks.find(e=>e.kind==="ip")}get isCIDR(){return!!this._def.checks.find(e=>e.kind==="cidr")}get isBase64(){return!!this._def.checks.find(e=>e.kind==="base64")}get isBase64url(){return!!this._def.checks.find(e=>e.kind==="base64url")}get minLength(){let e=null;for(const r of this._def.checks)r.kind==="min"&&(e===null||r.value>e)&&(e=r.value);return e}get maxLength(){let e=null;for(const r of this._def.checks)r.kind==="max"&&(e===null||r.value<e)&&(e=r.value);return e}}Na.create=t=>new Na({checks:[],typeName:Ze.ZodString,coerce:(t==null?void 0:t.coerce)??!1,...pt(t)});function rK(t,e){const r=(t.toString().split(".")[1]||"").length,n=(e.toString().split(".")[1]||"").length,s=r>n?r:n,i=Number.parseInt(t.toFixed(s).replace(".","")),o=Number.parseInt(e.toFixed(s).replace(".",""));return i%o/10**s}class vh extends St{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==Be.number){const i=this._getOrReturnCtx(e);return De(i,{code:_e.invalid_type,expected:Be.number,received:i.parsedType}),Qe}let n;const s=new ks;for(const i of this._def.checks)i.kind==="int"?Tt.isInteger(e.data)||(n=this._getOrReturnCtx(e,n),De(n,{code:_e.invalid_type,expected:"integer",received:"float",message:i.message}),s.dirty()):i.kind==="min"?(i.inclusive?e.data<i.value:e.data<=i.value)&&(n=this._getOrReturnCtx(e,n),De(n,{code:_e.too_small,minimum:i.value,type:"number",inclusive:i.inclusive,exact:!1,message:i.message}),s.dirty()):i.kind==="max"?(i.inclusive?e.data>i.value:e.data>=i.value)&&(n=this._getOrReturnCtx(e,n),De(n,{code:_e.too_big,maximum:i.value,type:"number",inclusive:i.inclusive,exact:!1,message:i.message}),s.dirty()):i.kind==="multipleOf"?rK(e.data,i.value)!==0&&(n=this._getOrReturnCtx(e,n),De(n,{code:_e.not_multiple_of,multipleOf:i.value,message:i.message}),s.dirty()):i.kind==="finite"?Number.isFinite(e.data)||(n=this._getOrReturnCtx(e,n),De(n,{code:_e.not_finite,message:i.message}),s.dirty()):Tt.assertNever(i);return{status:s.value,value:e.data}}gte(e,r){return this.setLimit("min",e,!0,$e.toString(r))}gt(e,r){return this.setLimit("min",e,!1,$e.toString(r))}lte(e,r){return this.setLimit("max",e,!0,$e.toString(r))}lt(e,r){return this.setLimit("max",e,!1,$e.toString(r))}setLimit(e,r,n,s){return new vh({...this._def,checks:[...this._def.checks,{kind:e,value:r,inclusive:n,message:$e.toString(s)}]})}_addCheck(e){return new vh({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:$e.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:$e.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:$e.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:$e.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:$e.toString(e)})}multipleOf(e,r){return this._addCheck({kind:"multipleOf",value:e,message:$e.toString(r)})}finite(e){return this._addCheck({kind:"finite",message:$e.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:$e.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:$e.toString(e)})}get minValue(){let e=null;for(const r of this._def.checks)r.kind==="min"&&(e===null||r.value>e)&&(e=r.value);return e}get maxValue(){let e=null;for(const r of this._def.checks)r.kind==="max"&&(e===null||r.value<e)&&(e=r.value);return e}get isInt(){return!!this._def.checks.find(e=>e.kind==="int"||e.kind==="multipleOf"&&Tt.isInteger(e.value))}get isFinite(){let e=null,r=null;for(const n of this._def.checks){if(n.kind==="finite"||n.kind==="int"||n.kind==="multipleOf")return!0;n.kind==="min"?(r===null||n.value>r)&&(r=n.value):n.kind==="max"&&(e===null||n.value<e)&&(e=n.value)}return Number.isFinite(r)&&Number.isFinite(e)}}vh.create=t=>new vh({checks:[],typeName:Ze.ZodNumber,coerce:(t==null?void 0:t.coerce)||!1,...pt(t)});class yh extends St{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){if(this._def.coerce)try{e.data=BigInt(e.data)}catch{return this._getInvalidInput(e)}if(this._getType(e)!==Be.bigint)return this._getInvalidInput(e);let n;const s=new ks;for(const i of this._def.checks)i.kind==="min"?(i.inclusive?e.data<i.value:e.data<=i.value)&&(n=this._getOrReturnCtx(e,n),De(n,{code:_e.too_small,type:"bigint",minimum:i.value,inclusive:i.inclusive,message:i.message}),s.dirty()):i.kind==="max"?(i.inclusive?e.data>i.value:e.data>=i.value)&&(n=this._getOrReturnCtx(e,n),De(n,{code:_e.too_big,type:"bigint",maximum:i.value,inclusive:i.inclusive,message:i.message}),s.dirty()):i.kind==="multipleOf"?e.data%i.value!==BigInt(0)&&(n=this._getOrReturnCtx(e,n),De(n,{code:_e.not_multiple_of,multipleOf:i.value,message:i.message}),s.dirty()):Tt.assertNever(i);return{status:s.value,value:e.data}}_getInvalidInput(e){const r=this._getOrReturnCtx(e);return De(r,{code:_e.invalid_type,expected:Be.bigint,received:r.parsedType}),Qe}gte(e,r){return this.setLimit("min",e,!0,$e.toString(r))}gt(e,r){return this.setLimit("min",e,!1,$e.toString(r))}lte(e,r){return this.setLimit("max",e,!0,$e.toString(r))}lt(e,r){return this.setLimit("max",e,!1,$e.toString(r))}setLimit(e,r,n,s){return new yh({...this._def,checks:[...this._def.checks,{kind:e,value:r,inclusive:n,message:$e.toString(s)}]})}_addCheck(e){return new yh({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:$e.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:$e.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:$e.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:$e.toString(e)})}multipleOf(e,r){return this._addCheck({kind:"multipleOf",value:e,message:$e.toString(r)})}get minValue(){let e=null;for(const r of this._def.checks)r.kind==="min"&&(e===null||r.value>e)&&(e=r.value);return e}get maxValue(){let e=null;for(const r of this._def.checks)r.kind==="max"&&(e===null||r.value<e)&&(e=r.value);return e}}yh.create=t=>new yh({checks:[],typeName:Ze.ZodBigInt,coerce:(t==null?void 0:t.coerce)??!1,...pt(t)});class CC extends St{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==Be.boolean){const n=this._getOrReturnCtx(e);return De(n,{code:_e.invalid_type,expected:Be.boolean,received:n.parsedType}),Qe}return oi(e.data)}}CC.create=t=>new CC({typeName:Ze.ZodBoolean,coerce:(t==null?void 0:t.coerce)||!1,...pt(t)});class O0 extends St{_parse(e){if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==Be.date){const i=this._getOrReturnCtx(e);return De(i,{code:_e.invalid_type,expected:Be.date,received:i.parsedType}),Qe}if(Number.isNaN(e.data.getTime())){const i=this._getOrReturnCtx(e);return De(i,{code:_e.invalid_date}),Qe}const n=new ks;let s;for(const i of this._def.checks)i.kind==="min"?e.data.getTime()<i.value&&(s=this._getOrReturnCtx(e,s),De(s,{code:_e.too_small,message:i.message,inclusive:!0,exact:!1,minimum:i.value,type:"date"}),n.dirty()):i.kind==="max"?e.data.getTime()>i.value&&(s=this._getOrReturnCtx(e,s),De(s,{code:_e.too_big,message:i.message,inclusive:!0,exact:!1,maximum:i.value,type:"date"}),n.dirty()):Tt.assertNever(i);return{status:n.value,value:new Date(e.data.getTime())}}_addCheck(e){return new O0({...this._def,checks:[...this._def.checks,e]})}min(e,r){return this._addCheck({kind:"min",value:e.getTime(),message:$e.toString(r)})}max(e,r){return this._addCheck({kind:"max",value:e.getTime(),message:$e.toString(r)})}get minDate(){let e=null;for(const r of this._def.checks)r.kind==="min"&&(e===null||r.value>e)&&(e=r.value);return e!=null?new Date(e):null}get maxDate(){let e=null;for(const r of this._def.checks)r.kind==="max"&&(e===null||r.value<e)&&(e=r.value);return e!=null?new Date(e):null}}O0.create=t=>new O0({checks:[],coerce:(t==null?void 0:t.coerce)||!1,typeName:Ze.ZodDate,...pt(t)});class kC extends St{_parse(e){if(this._getType(e)!==Be.symbol){const n=this._getOrReturnCtx(e);return De(n,{code:_e.invalid_type,expected:Be.symbol,received:n.parsedType}),Qe}return oi(e.data)}}kC.create=t=>new kC({typeName:Ze.ZodSymbol,...pt(t)});class NC extends St{_parse(e){if(this._getType(e)!==Be.undefined){const n=this._getOrReturnCtx(e);return De(n,{code:_e.invalid_type,expected:Be.undefined,received:n.parsedType}),Qe}return oi(e.data)}}NC.create=t=>new NC({typeName:Ze.ZodUndefined,...pt(t)});class AC extends St{_parse(e){if(this._getType(e)!==Be.null){const n=this._getOrReturnCtx(e);return De(n,{code:_e.invalid_type,expected:Be.null,received:n.parsedType}),Qe}return oi(e.data)}}AC.create=t=>new AC({typeName:Ze.ZodNull,...pt(t)});class jC extends St{constructor(){super(...arguments),this._any=!0}_parse(e){return oi(e.data)}}jC.create=t=>new jC({typeName:Ze.ZodAny,...pt(t)});class RC extends St{constructor(){super(...arguments),this._unknown=!0}_parse(e){return oi(e.data)}}RC.create=t=>new RC({typeName:Ze.ZodUnknown,...pt(t)});class tl extends St{_parse(e){const r=this._getOrReturnCtx(e);
vendor: 5,966 bytes, line 657
657return De(r,{code:_e.invalid_type,expected:Be.never,received:r.parsedType}),Qe}}tl.create=t=>new tl({typeName:Ze.ZodNever,...pt(t)});class OC extends St{_parse(e){if(this._getType(e)!==Be.undefined){const n=this._getOrReturnCtx(e);return De(n,{code:_e.invalid_type,expected:Be.void,received:n.parsedType}),Qe}return oi(e.data)}}OC.create=t=>new OC({typeName:Ze.ZodVoid,...pt(t)});class no extends St{_parse(e){const{ctx:r,status:n}=this._processInputParams(e),s=this._def;if(r.parsedType!==Be.array)return De(r,{code:_e.invalid_type,expected:Be.array,received:r.parsedType}),Qe;if(s.exactLength!==null){const o=r.data.length>s.exactLength.value,a=r.data.length<s.exactLength.value;(o||a)&&(De(r,{code:o?_e.too_big:_e.too_small,minimum:a?s.exactLength.value:void 0,maximum:o?s.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:s.exactLength.message}),n.dirty())}if(s.minLength!==null&&r.data.length<s.minLength.value&&(De(r,{code:_e.too_small,minimum:s.minLength.value,type:"array",inclusive:!0,exact:!1,message:s.minLength.message}),n.dirty()),s.maxLength!==null&&r.data.length>s.maxLength.value&&(De(r,{code:_e.too_big,maximum:s.maxLength.value,type:"array",inclusive:!0,exact:!1,message:s.maxLength.message}),n.dirty()),r.common.async)return Promise.all([...r.data].map((o,a)=>s.type._parseAsync(new el(r,o,r.path,a)))).then(o=>ks.mergeArray(n,o));const i=[...r.data].map((o,a)=>s.type._parseSync(new el(r,o,r.path,a)));return ks.mergeArray(n,i)}get element(){return this._def.type}min(e,r){return new no({...this._def,minLength:{value:e,message:$e.toString(r)}})}max(e,r){return new no({...this._def,maxLength:{value:e,message:$e.toString(r)}})}length(e,r){return new no({...this._def,exactLength:{value:e,message:$e.toString(r)}})}nonempty(e){return this.min(1,e)}}no.create=(t,e)=>new no({type:t,minLength:null,maxLength:null,exactLength:null,typeName:Ze.ZodArray,...pt(e)});function Jc(t){if(t instanceof dr){const e={};for(const r in t.shape){const n=t.shape[r];e[r]=Ha.create(Jc(n))}return new dr({...t._def,shape:()=>e})}else return t instanceof no?new no({...t._def,type:Jc(t.element)}):t instanceof Ha?Ha.create(Jc(t.unwrap())):t instanceof sd?sd.create(Jc(t.unwrap())):t instanceof nc?nc.create(t.items.map(e=>Jc(e))):t}class dr extends St{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const e=this._def.shape(),r=Tt.objectKeys(e);return this._cached={shape:e,keys:r},this._cached}_parse(e){if(this._getType(e)!==Be.object){const u=this._getOrReturnCtx(e);return De(u,{code:_e.invalid_type,expected:Be.object,received:u.parsedType}),Qe}const{status:n,ctx:s}=this._processInputParams(e),{shape:i,keys:o}=this._getCached(),a=[];if(!(this._def.catchall instanceof tl&&this._def.unknownKeys==="strip"))for(const u in s.data)o.includes(u)||a.push(u);const l=[];for(const u of o){const d=i[u],f=s.data[u];l.push({key:{status:"valid",value:u},value:d._parse(new el(s,f,s.path,u)),alwaysSet:u in s.data})}if(this._def.catchall instanceof tl){const u=this._def.unknownKeys;if(u==="passthrough")for(const d of a)l.push({key:{status:"valid",value:d},value:{status:"valid",value:s.data[d]}});else if(u==="strict")a.length>0&&(De(s,{code:_e.unrecognized_keys,keys:a}),n.dirty());else if(u!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const u=this._def.catchall;for(const d of a){const f=s.data[d];l.push({key:{status:"valid",value:d},value:u._parse(new el(s,f,s.path,d)),alwaysSet:d in s.data})}}return s.common.async?Promise.resolve().then(async()=>{const u=[];for(const d of l){const f=await d.key,h=await d.value;u.push({key:f,value:h,alwaysSet:d.alwaysSet})}return u}).then(u=>ks.mergeObjectSync(n,u)):ks.mergeObjectSync(n,l)}get shape(){return this._def.shape()}strict(e){return $e.errToObj,new dr({...this._def,unknownKeys:"strict",...e!==void 0?{errorMap:(r,n)=>{var i,o;const s=((o=(i=this._def).errorMap)==null?void 0:o.call(i,r,n).message)??n.defaultError;return r.code==="unrecognized_keys"?{message:$e.errToObj(e).message??s}:{message:s}}}:{}})}strip(){return new dr({...this._def,unknownKeys:"strip"})}passthrough(){return new dr({...this._def,unknownKeys:"passthrough"})}extend(e){return new dr({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new dr({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:Ze.ZodObject})}setKey(e,r){return this.augment({[e]:r})}catchall(e){return new dr({...this._def,catchall:e})}pick(e){const r={};for(const n of Tt.objectKeys(e))e[n]&&this.shape[n]&&(r[n]=this.shape[n]);return new dr({...this._def,shape:()=>r})}omit(e){const r={};for(const n of Tt.objectKeys(this.shape))e[n]||(r[n]=this.shape[n]);return new dr({...this._def,shape:()=>r})}deepPartial(){return Jc(this)}partial(e){const r={};for(const n of Tt.objectKeys(this.shape)){const s=this.shape[n];e&&!e[n]?r[n]=s:r[n]=s.optional()}return new dr({...this._def,shape:()=>r})}required(e){const r={};for(const n of Tt.objectKeys(this.shape))if(e&&!e[n])r[n]=this.shape[n];else{let i=this.shape[n];for(;i instanceof Ha;)i=i._def.innerType;r[n]=i}return new dr({...this._def,shape:()=>r})}keyof(){return $P(Tt.objectKeys(this.shape))}}dr.create=(t,e)=>new dr({shape:()=>t,unknownKeys:"strip",catchall:tl.create(),typeName:Ze.ZodObject,...pt(e)});dr.strictCreate=(t,e)=>new dr({shape:()=>t,unknownKeys:"strict",catchall:tl.create(),typeName:Ze.ZodObject,...pt(e)});dr.lazycreate=(t,e)=>new dr({shape:t,unknownKeys:"strip",catchall:tl.create(),typeName:Ze.ZodObject,...pt(e)});class P0 extends St{_parse(e){const{ctx:r}=this._processInputParams(e),n=this._def.options;function s(i){for(const a of i)if(a.result.status==="valid")return a.result;for(const a of i)if(a.result.status==="dirty")return r.common.issues.push(...a.ctx.common.issues),a.result;const o=i.map(a=>new Ho(a.ctx.common.issues));
vendor: 4,118 bytes, line 657
657return De(r,{code:_e.invalid_union,unionErrors:o}),Qe}if(r.common.async)return Promise.all(n.map(async i=>{const o={...r,common:{...r.common,issues:[]},parent:null};return{result:await i._parseAsync({data:r.data,path:r.path,parent:o}),ctx:o}})).then(s);{let i;const o=[];for(const l of n){const u={...r,common:{...r.common,issues:[]},parent:null},d=l._parseSync({data:r.data,path:r.path,parent:u});if(d.status==="valid")return d;d.status==="dirty"&&!i&&(i={result:d,ctx:u}),u.common.issues.length&&o.push(u.common.issues)}if(i)return r.common.issues.push(...i.ctx.common.issues),i.result;const a=o.map(l=>new Ho(l));return De(r,{code:_e.invalid_union,unionErrors:a}),Qe}}get options(){return this._def.options}}P0.create=(t,e)=>new P0({options:t,typeName:Ze.ZodUnion,...pt(e)});function $w(t,e){const r=ua(t),n=ua(e);if(t===e)return{valid:!0,data:t};if(r===Be.object&&n===Be.object){const s=Tt.objectKeys(e),i=Tt.objectKeys(t).filter(a=>s.indexOf(a)!==-1),o={...t,...e};for(const a of i){const l=$w(t[a],e[a]);if(!l.valid)return{valid:!1};o[a]=l.data}return{valid:!0,data:o}}else if(r===Be.array&&n===Be.array){if(t.length!==e.length)return{valid:!1};const s=[];for(let i=0;i<t.length;i++){const o=t[i],a=e[i],l=$w(o,a);if(!l.valid)return{valid:!1};s.push(l.data)}return{valid:!0,data:s}}else return r===Be.date&&n===Be.date&&+t==+e?{valid:!0,data:t}:{valid:!1}}class M0 extends St{_parse(e){const{status:r,ctx:n}=this._processInputParams(e),s=(i,o)=>{if(_C(i)||_C(o))return Qe;const a=$w(i.value,o.value);return a.valid?((EC(i)||EC(o))&&r.dirty(),{status:r.value,value:a.data}):(De(n,{code:_e.invalid_intersection_types}),Qe)};return n.common.async?Promise.all([this._def.left._parseAsync({data:n.data,path:n.path,parent:n}),this._def.right._parseAsync({data:n.data,path:n.path,parent:n})]).then(([i,o])=>s(i,o)):s(this._def.left._parseSync({data:n.data,path:n.path,parent:n}),this._def.right._parseSync({data:n.data,path:n.path,parent:n}))}}M0.create=(t,e,r)=>new M0({left:t,right:e,typeName:Ze.ZodIntersection,...pt(r)});class nc extends St{_parse(e){const{status:r,ctx:n}=this._processInputParams(e);if(n.parsedType!==Be.array)return De(n,{code:_e.invalid_type,expected:Be.array,received:n.parsedType}),Qe;if(n.data.length<this._def.items.length)return De(n,{code:_e.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),Qe;!this._def.rest&&n.data.length>this._def.items.length&&(De(n,{code:_e.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),r.dirty());const i=[...n.data].map((o,a)=>{const l=this._def.items[a]||this._def.rest;return l?l._parse(new el(n,o,n.path,a)):null}).filter(o=>!!o);return n.common.async?Promise.all(i).then(o=>ks.mergeArray(r,o)):ks.mergeArray(r,i)}get items(){return this._def.items}rest(e){return new nc({...this._def,rest:e})}}nc.create=(t,e)=>{if(!Array.isArray(t))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new nc({items:t,typeName:Ze.ZodTuple,rest:null,...pt(e)})};class PC extends St{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:r,ctx:n}=this._processInputParams(e);if(n.parsedType!==Be.map)return De(n,{code:_e.invalid_type,expected:Be.map,received:n.parsedType}),Qe;const s=this._def.keyType,i=this._def.valueType,o=[...n.data.entries()].map(([a,l],u)=>({key:s._parse(new el(n,a,n.path,[u,"key"])),value:i._parse(new el(n,l,n.path,[u,"value"]))}));if(n.common.async){const a=new Map;return Promise.resolve().then(async()=>{for(const l of o){const u=await l.key,d=await l.value;if(u.status==="aborted"||d.status==="aborted")return Qe;(u.status==="dirty"||d.status==="dirty")&&r.dirty(),a.set(u.value,d.value)}return{status:r.value,value:a}})}else{const a=new Map;for(const l of o){const u=l.key,d=l.value;if(u.status==="aborted"||d.status==="aborted")return Qe;(u.status==="dirty"||d.status==="dirty")&&r.dirty(),a.set(u.value,d.value)}return{status:r.value,value:a}}}}PC.create=(t,e,r)=>new PC({valueType:e,keyType:t,typeName:Ze.ZodMap,...pt(r)});class wh extends St{_parse(e){const{status:r,ctx:n}=this._processInputParams(e);
vendor: 4,483 bytes, line 657
657if(n.parsedType!==Be.set)return De(n,{code:_e.invalid_type,expected:Be.set,received:n.parsedType}),Qe;const s=this._def;s.minSize!==null&&n.data.size<s.minSize.value&&(De(n,{code:_e.too_small,minimum:s.minSize.value,type:"set",inclusive:!0,exact:!1,message:s.minSize.message}),r.dirty()),s.maxSize!==null&&n.data.size>s.maxSize.value&&(De(n,{code:_e.too_big,maximum:s.maxSize.value,type:"set",inclusive:!0,exact:!1,message:s.maxSize.message}),r.dirty());const i=this._def.valueType;function o(l){const u=new Set;for(const d of l){if(d.status==="aborted")return Qe;d.status==="dirty"&&r.dirty(),u.add(d.value)}return{status:r.value,value:u}}const a=[...n.data.values()].map((l,u)=>i._parse(new el(n,l,n.path,u)));return n.common.async?Promise.all(a).then(l=>o(l)):o(a)}min(e,r){return new wh({...this._def,minSize:{value:e,message:$e.toString(r)}})}max(e,r){return new wh({...this._def,maxSize:{value:e,message:$e.toString(r)}})}size(e,r){return this.min(e,r).max(e,r)}nonempty(e){return this.min(1,e)}}wh.create=(t,e)=>new wh({valueType:t,minSize:null,maxSize:null,typeName:Ze.ZodSet,...pt(e)});class MC extends St{get schema(){return this._def.getter()}_parse(e){const{ctx:r}=this._processInputParams(e);return this._def.getter()._parse({data:r.data,path:r.path,parent:r})}}MC.create=(t,e)=>new MC({getter:t,typeName:Ze.ZodLazy,...pt(e)});class zw extends St{_parse(e){if(e.data!==this._def.value){const r=this._getOrReturnCtx(e);return De(r,{received:r.data,code:_e.invalid_literal,expected:this._def.value}),Qe}return{status:"valid",value:e.data}}get value(){return this._def.value}}zw.create=(t,e)=>new zw({value:t,typeName:Ze.ZodLiteral,...pt(e)});function $P(t,e){return new rd({values:t,typeName:Ze.ZodEnum,...pt(e)})}class rd extends St{_parse(e){if(typeof e.data!="string"){const r=this._getOrReturnCtx(e),n=this._def.values;return De(r,{expected:Tt.joinValues(n),received:r.parsedType,code:_e.invalid_type}),Qe}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(e.data)){const r=this._getOrReturnCtx(e),n=this._def.values;return De(r,{received:r.data,code:_e.invalid_enum_value,options:n}),Qe}return oi(e.data)}get options(){return this._def.values}get enum(){const e={};for(const r of this._def.values)e[r]=r;return e}get Values(){const e={};for(const r of this._def.values)e[r]=r;return e}get Enum(){const e={};for(const r of this._def.values)e[r]=r;return e}extract(e,r=this._def){return rd.create(e,{...this._def,...r})}exclude(e,r=this._def){return rd.create(this.options.filter(n=>!e.includes(n)),{...this._def,...r})}}rd.create=$P;class IC extends St{_parse(e){const r=Tt.getValidEnumValues(this._def.values),n=this._getOrReturnCtx(e);if(n.parsedType!==Be.string&&n.parsedType!==Be.number){const s=Tt.objectValues(r);return De(n,{expected:Tt.joinValues(s),received:n.parsedType,code:_e.invalid_type}),Qe}if(this._cache||(this._cache=new Set(Tt.getValidEnumValues(this._def.values))),!this._cache.has(e.data)){const s=Tt.objectValues(r);return De(n,{received:n.data,code:_e.invalid_enum_value,options:s}),Qe}return oi(e.data)}get enum(){return this._def.values}}IC.create=(t,e)=>new IC({values:t,typeName:Ze.ZodNativeEnum,...pt(e)});class I0 extends St{unwrap(){return this._def.type}_parse(e){const{ctx:r}=this._processInputParams(e);if(r.parsedType!==Be.promise&&r.common.async===!1)return De(r,{code:_e.invalid_type,expected:Be.promise,received:r.parsedType}),Qe;const n=r.parsedType===Be.promise?r.data:Promise.resolve(r.data);return oi(n.then(s=>this._def.type.parseAsync(s,{path:r.path,errorMap:r.common.contextualErrorMap})))}}I0.create=(t,e)=>new I0({type:t,typeName:Ze.ZodPromise,...pt(e)});class nd extends St{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===Ze.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){const{status:r,ctx:n}=this._processInputParams(e),s=this._def.effect||null,i={addIssue:o=>{De(n,o),o.fatal?r.abort():r.dirty()},get path(){return n.path}};if(i.addIssue=i.addIssue.bind(i),s.type==="preprocess"){const o=s.transform(n.data,i);if(n.common.async)return Promise.resolve(o).then(async a=>{if(r.value==="aborted")return Qe;const l=await this._def.schema._parseAsync({data:a,path:n.path,parent:n});return l.status==="aborted"?Qe:l.status==="dirty"||r.value==="dirty"?af(l.value):l});{if(r.value==="aborted")return Qe;const a=this._def.schema._parseSync({data:o,path:n.path,parent:n});return a.status==="aborted"?Qe:a.status==="dirty"||r.value==="dirty"?af(
vendor: 4,323 bytes, line 657
657a.value):a}}if(s.type==="refinement"){const o=a=>{const l=s.refinement(a,i);if(n.common.async)return Promise.resolve(l);if(l instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return a};if(n.common.async===!1){const a=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});return a.status==="aborted"?Qe:(a.status==="dirty"&&r.dirty(),o(a.value),{status:r.value,value:a.value})}else return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(a=>a.status==="aborted"?Qe:(a.status==="dirty"&&r.dirty(),o(a.value).then(()=>({status:r.value,value:a.value}))))}if(s.type==="transform")if(n.common.async===!1){const o=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});if(!td(o))return Qe;const a=s.transform(o.value,i);if(a instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:r.value,value:a}}else return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(o=>td(o)?Promise.resolve(s.transform(o.value,i)).then(a=>({status:r.value,value:a})):Qe);Tt.assertNever(s)}}nd.create=(t,e,r)=>new nd({schema:t,typeName:Ze.ZodEffects,effect:e,...pt(r)});nd.createWithPreprocess=(t,e,r)=>new nd({schema:e,effect:{type:"preprocess",transform:t},typeName:Ze.ZodEffects,...pt(r)});class Ha extends St{_parse(e){return this._getType(e)===Be.undefined?oi(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}Ha.create=(t,e)=>new Ha({innerType:t,typeName:Ze.ZodOptional,...pt(e)});class sd extends St{_parse(e){return this._getType(e)===Be.null?oi(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}sd.create=(t,e)=>new sd({innerType:t,typeName:Ze.ZodNullable,...pt(e)});class Uw extends St{_parse(e){const{ctx:r}=this._processInputParams(e);let n=r.data;return r.parsedType===Be.undefined&&(n=this._def.defaultValue()),this._def.innerType._parse({data:n,path:r.path,parent:r})}removeDefault(){return this._def.innerType}}Uw.create=(t,e)=>new Uw({innerType:t,typeName:Ze.ZodDefault,defaultValue:typeof e.default=="function"?e.default:()=>e.default,...pt(e)});class Hw extends St{_parse(e){const{ctx:r}=this._processInputParams(e),n={...r,common:{...r.common,issues:[]}},s=this._def.innerType._parse({data:n.data,path:n.path,parent:{...n}});return R0(s)?s.then(i=>({status:"valid",value:i.status==="valid"?i.value:this._def.catchValue({get error(){return new Ho(n.common.issues)},input:n.data})})):{status:"valid",value:s.status==="valid"?s.value:this._def.catchValue({get error(){return new Ho(n.common.issues)},input:n.data})}}removeCatch(){return this._def.innerType}}Hw.create=(t,e)=>new Hw({innerType:t,typeName:Ze.ZodCatch,catchValue:typeof e.catch=="function"?e.catch:()=>e.catch,...pt(e)});class DC extends St{_parse(e){if(this._getType(e)!==Be.nan){const n=this._getOrReturnCtx(e);return De(n,{code:_e.invalid_type,expected:Be.nan,received:n.parsedType}),Qe}return{status:"valid",value:e.data}}}DC.create=t=>new DC({typeName:Ze.ZodNaN,...pt(t)});class nK extends St{_parse(e){const{ctx:r}=this._processInputParams(e),n=r.data;return this._def.type._parse({data:n,path:r.path,parent:r})}unwrap(){return this._def.type}}class _S extends St{_parse(e){const{status:r,ctx:n}=this._processInputParams(e);if(n.common.async)return(async()=>{const i=await this._def.in._parseAsync({data:n.data,path:n.path,parent:n});return i.status==="aborted"?Qe:i.status==="dirty"?(r.dirty(),af(i.value)):this._def.out._parseAsync({data:i.value,path:n.path,parent:n})})();{const s=this._def.in._parseSync({data:n.data,path:n.path,parent:n});return s.status==="aborted"?Qe:s.status==="dirty"?(r.dirty(),{status:"dirty",value:s.value}):this._def.out._parseSync({data:s.value,path:n.path,parent:n})}}static create(e,r){return new _S({in:e,out:r,typeName:Ze.ZodPipeline})}}class Vw extends St{_parse(e){const r=this._def.innerType._parse(e),n=s=>(td(s)&&(s.value=Object.freeze(s.value)),s);return R0(r)?r.then(s=>n(s)):n(r)}unwrap(){return this._def.innerType}}Vw.create=(t,e)=>new Vw({innerType:t,typeName:Ze.ZodReadonly,...pt(e)});dr.lazycreate;var Ze;(function(t){t.ZodString="ZodString",t.ZodNumber="ZodNumber",t.ZodNaN="ZodNaN",t.ZodBigInt="ZodBigInt",t.ZodBoolean="ZodBoolean",t.ZodD
657ate="ZodDate",t.ZodSymbol="ZodSymbol",t.ZodUndefined="ZodUndefined",t.ZodNull="ZodNull",t.ZodAny="ZodAny",t.ZodUnknown="ZodUnknown",t.ZodNever="ZodNever",t.ZodVoid="ZodVoid",t.ZodArray="ZodArray",t.ZodObject="ZodObject",t.ZodUnion="ZodUnion",t.ZodDiscriminatedUnion="ZodDiscriminatedUnion",t.ZodIntersection="ZodIntersection",t.ZodTuple="ZodTuple",t.ZodRecord="ZodRecord",t.ZodMap="ZodMap",t.ZodSet="ZodSet",t.ZodFunction="ZodFunction",t.ZodLazy="ZodLazy",t.ZodLiteral="ZodLiteral",t.ZodEnum="ZodEnum",t.ZodEffects="ZodEffects",t.ZodNativeEnum="ZodNativeEnum",t.ZodOptional="ZodOptional",t.ZodNullable="ZodNullable",t.ZodDefault="ZodDefault",t.ZodCatch="ZodCatch",t.ZodPromise="ZodPromise",t.ZodBranded="ZodBranded",t.ZodPipeline="ZodPipeline",t.ZodReadonly="ZodReadonly"})(Ze||(Ze={}));const Lc=Na.create;tl.create;no.create;const sK=dr.create;dr.strictCreate;P0.create;M0.create;nc.create;const iK=zw.create;rd.create;I0.create;Ha.create;sd.create;const oK=["mailinator.com","tempmail.com","guerrillamail.com","throwaway.email","10minutemail.com","trashmail.com","temp-mail.org","getairmail.com","fakeinbox.com","maildrop.cc","yopmail.com","temp-mail.io","dispostable.com","mintemail.com","sharklasers.com","guerrillamailblock.com","spam4.me","tempinbox.com","mailnesia.com","emailondeck.com"],Xd=t=>t?t.trim().replace(/<[^>]*>/g,"").replace(/javascript:/gi,"").replace(/on\w+\s*=/gi,"").replace(/\0/g,"").replace(/[\x00-\x08\x0B-\x0C\x0E-\x1F\x7F]/g,"").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;").replace(/\//g,"&#x2F;"):"",aK=/^[a-zA-ZÀ-ÿ\s\-']+$/,lK=/^[0-9\s\-\(\)\+]*$/,cK=sK({name:Lc().trim().min(1,{message:"Nome é obrigatório"}).max(100,{message:"Nome muito longo (máximo 100 caracteres)"}).regex(aK,{message:"Nome deve conter apenas letras"}),email:Lc().trim().min(1,{message:"E-mail é obrigatório"}).email({message:"E-mail inválido"}).max(255,{message:"E-mail muito longo"}).refine(t=>{var r;const e=(r=t.split("@")[1])==null?void 0:r.toLowerCase();return!oK.includes(e)},{message:"E-mails temporários não são permitidos"}),phone:Lc().trim().max(20,{message:"Telefone muito longo"}).regex(lK,{message:"Telefone deve conter apenas números"}).optional().or(iK("")),subject:Lc().trim().min(1,{message:"Assunto é obrigatório"}).max(200,{message:"Assunto muito longo (máximo 200 caracteres)"}),message:Lc().trim().min(1,{message:"Mensagem é obrigatória"}).max(2e3,{message:"Mensagem muito longa (máximo 2000 caracteres)"}),website:Lc().max(0,{message:"Campo inválido"}).optional()}),uK=t=>{const e={name:Xd(t.name),email:Xd(t.email),phone:Xd(t.phone||""),subject:Xd(t.subject),message:Xd(t.message),website:t.website||""};return cK.parse(e)},dK=()=>{const{toast:t}=uo(),[e,r]=w.useState(!1),[n,s]=w.useState(null),[i,o]=w.useState(""),[a,l]=w.useState({num1:0,num2:0,answer:0}),[u,d]=w.useState({name:"",email:"",phone:"",subject:"",message:"",website:""}),[f,h]=w.useState({}),[p,g]=w.useState({userAgent:"",screenSize:"",platform:"",language:""}),[m,x]=w.useState(null);w.useEffect(()=>{v(),g({userAgent:navigator.userAgent,screenSize:`${window.screen.width}x${window.screen.height}`,platform:navigator.platform,language:navigator.language}),navigator.geolocation&&navigator.geolocation.getCurrentPosition(S=>{x({latitude:S.coords.latitude,longitude:S.coords.longitude})},S=>{console.log("Geolocation error:",S.message)})},[]);const v=()=>{const S=Math.floor(Math.random()*10)+1,E=Math.floor(Math.random()*10)+1;l({num1:S,num2:E,answer:S+E})},y=async S=>{var E,C,_;if(S.preventDefault(),h({}),u.website){console.log("Bot detected via honeypot");return}
657if(parseInt(i)!==a.answer){t({title:"Verificação incorreta",description:"Por favor, resolva o cálculo corretamente.",variant:"destructive"}),v(),o("");return}try{const A=uK(u);r(!0);let N=null,D=null;if(n){if(n.size>5*1024*1024){t({title:"Erro ao enviar",description:"Verifique os campos e tente novamente.",variant:"destructive"}),r(!1);return}const U=n.name.split(".").pop(),K=`${Date.now()}_${Math.random().toString(36).substring(7)}.${U}`,{error:te}=await _r.storage.from("contact-attachments").upload(K,n);if(te)throw te;N=K,D=n.name}const{data:V,error:H}=await _r.functions.invoke("send-contact-email",{body:{name:A.name,email:A.email,phone:A.phone||"",subject:A.subject,message:A.message,attachment_url:N,attachment_name:D,user_agent:p.userAgent,screen_size:p.screenSize,device_info:{platform:p.platform,language:p.language,browser:((E=navigator.userAgent.match(/(firefox|msie|chrome|safari|trident)/gi))==null?void 0:E[0])||"unknown",timezone:Intl.DateTimeFormat().resolvedOptions().timeZone},geolocation:m}});if(H){if((C=H.message)!=null&&C.includes("429")||(_=H.message)!=null&&_.includes("rate limit"))t({title:"Limite de envios atingido",description:"Tente novamente em alguns minutos.",variant:"destructive"});else throw H;r(!1);return}t({title:"Mensagem enviada com sucesso!",description:`Protocolo: ${V.protocol}`}),d({name:"",email:"",phone:"",subject:"",message:"",website:""}),s(null),o(""),v()}catch(A){if(A.errors){const N={};A.errors.forEach(D=>{N[D.path[0]]=D.message}),h(N),t({title:"Erro ao enviar",description:"Verifique os campos e tente novamente.",variant:"destructive"})}else t({title:"Erro ao enviar",description:"Verifique os campos e tente novamente.",variant:"destructive"})}finally{r(!1)}},b=S=>{d({...u,[S.target.name]:S.target.value})};return c.jsxs(c.Fragment,{children:[c.jsxs(Un,{children:[c.jsx("title",{children:"Atendimento ao Cliente - CS Finance | Contato e Suporte"}),c.jsx("meta",{name:"description",content:"Entre em contato com o CS Finance. Atendimento personalizado por telefone 0800 591 4353, WhatsApp ou formulário online. Resposta em até 6 horas úteis."}),c.jsx("meta",{name:"keywords",content:"atendimento CS Finance, contato banco digital, suporte cliente, telefone CS Finance, WhatsApp banco, fale conosco"}),c.jsx("link",{rel:"canonical",href:"https://csfinance.app.br/contact"}),c.jsx("meta",{property:"og:title",content:"Atendimento CS Finance - Fale Conosco"}),c.jsx("meta",{property:"og:description",content:"Entre em contato com nossa equipe especializada. Atendimento rápido e personalizado para todas as suas dúvidas."}),c.jsx("meta",{property:"og:url",content:"https://csfinance.app.br/contact"}),c.jsx("meta",{property:"og:type",content:"website"}),c.jsx("meta",{property:"og:image",content:"https://csfinance.app.br/lovable-uploads/corporate-home.jpg"}),c.jsx("script",{type:"application/ld+json",children:JSON.stringify({"@context":"https://schema.org","@type":"ContactPage",name:"Atendimento CS Finance",description:"Entre em contato com o CS Finance através dos nossos canais de atendimento",url:"https://csfinance.app.br/contact",mainEntity:{"@type":"Organization",name:"CS Finance",url:"https://csfinance.app.br",contactPoint:[{"@type":"ContactPoint",telephone:"+55-800-591-4353",contactType:"customer service",availableLanguage:"Portuguese",email:"[email protected]",hoursAvailable:{"@type":"OpeningHoursSpecification",dayOfWeek:["Monday","Tuesday","Wednesday","Thursday","Friday"],opens:"08:00",closes:"18:00"}}],address:[{"@type":"PostalAddress",streetAddress:"R. Dr. Ribeiro da Luz, 570",addressLocality:"São Lourenço",addressRegion:"MG",addressCountry:"BR"},{"@type":"PostalAddress",streetAddress:"Avenida Sagiário, 138, Sala 915, Torre City",addressLocality:"Barueri",addressRegion:"SP",addressCountry:"BR"}]}})}),c.jsx("script",{type:"application/ld+json",children:JSON.stringify({"@context":"https://schema.org","@type":"BreadcrumbList",itemListElement:[{"@type":"ListItem",position:1,name:"Início",item:"https://csfinance.app.br/"},{"@type":"ListItem",position:2,name:"Contato",item:"https://csfinance.app.br/contact"}]})})]}),c.jsxs("div",{className:"min-h-screen bg-background",children:[c.jsx(Go,{}),c.jsx("section",{className:"text-white py-16 md:py-20 pt-28 md:pt-32",style:{background:"var(--gradient-hero)"},children:c.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[c.jsx("div",{className:"mb-6",children:c.jsx(fe,{asChild:!0,variant:"ghost",className:"text-white hover:bg-white/10 mb-4",children:c.jsxs(is,{to:"/",className:"flex items-center gap-2",children:[c.jsx(Os,{className:"w-4 h-4"}),"Voltar ao início"]})})}),c.jsxs("div",{className:"text-center",children:[c.jsx("h1",{className:"text-3xl sm:text-4xl md:text-5xl font-bold mb-4",children:"Atendimento"}),c.jsx("p",{className:"text-lg md:text-xl max-w-2xl mx-auto text-white/80",children:"Fale com a CS Finance pelos nossos canais de atendimento."})]})]})}),c.jsx("main",{className:"cs-section max-w-6xl mx-auto",children:c.jsxs("div",{className:"grid lg:grid-cols-2 gap-12",children:[c.jsxs("div",{className:"space-y-8",children:[c.jsx("h2",{className:"text-2xl font-semibold text-cs-primary",children:"Nossos Canais de Atendimento"}),c.jsxs("div",{className:"space-y-6",children:[c.jsxs("div",{className:"flex items-start gap-4",children:[c.jsx("div",{className:"bg-cs-accent/10 p-3 rounded-full",children:c.jsx(gx,{className:"w-6 h-6 text-cs-accent"})}),c.jsxs("div",{children:[c.jsx("h3",{className:"font-semibold text-cs-primary",children:"Telefone"}),c.jsx("p",{className:"text-muted-foreground",children:"0800 591 4353"}),c.jsx("p",{className:"text-sm text-muted-foreground",children:"Atendimento de segunda a sexta, 8h às 18h"})]})]}),c.jsxs("div",{className:"flex items-start gap-4",children:[c.jsx("div",{className:"bg-cs-accent/10 p-3 rounded-full",children:c.jsx(Ys,{className:"w-6 h-6 text-cs-accent"})}),c.jsxs("div",{children:[c.jsx("h3",{className:"font-semibold text-cs-primary",children:"WhatsApp"}),c.jsx("a",{href:"http://wa.me/558005914353",target:"_blank",rel:"noopener noreferrer",className:"text-cs-secondary hover:underline",children:"0800 591 4353"}),c.jsx("p",{className:"text-sm text-muted-foreground",children:"Atendimento rápido e direto"})]})]}),c.jsxs("div",{className:"flex items-start gap-4",children:[c.jsx("div",{className:"bg-cs-accent/10 p-3 rounded-full",children:c.jsx(Ss,{className:"w-6 h-6 text-cs-accent"})}),c.jsxs("div",{children:[c.jsx("h3",{className:"font-semibold text-cs-primary",children:"E-mail"}),c.jsx("a",{href:"mailto:[email protected]",className:"text-cs-secondary hover:underline",children:"[email protected]"}),c.jsx("p",{className:"text-sm text-muted-foreground",children:"Resposta em até 24h"})]})]}),c.jsxs("div",{className:"flex items-start gap-4",children:[c.jsx("div",{className:"bg-cs-accent/10 p-3 rounded-full",children:c.jsx(IR,{className:"w-6 h-6 text-cs-accent"})}),c.jsxs("div",{children:[c.jsx("h3",{className:"font-semibold text-cs-primary",children:"Endereços"}),c.jsxs("div",{className:"text-muted-foreground text-sm space-y-2",children:[c.jsx("p",{children:"R. Dr. Ribeiro da Luz, 570 – Centro – São Lourenço/MG"}),c.jsx("p",{children:"Avenida Sagiário, 138 – Sala 915 – Torre City – Alphaville – Barueri/SP"})]})]})]})]})]}),c.jsxs("div",{className:"bg-white rounded-2xl p-8 shadow-lg border border-border",children:[c.jsx("h2",{className:"text-2xl font-semibold text-cs-primary mb-6",children:"Envie sua Mensagem"}),c.jsxs("form",{onSubmit:y,className:"space-y-6",children:[c.jsx("input",{type:"text",name:"website",value:u.website,onChange:b,autoComplete:"off",tabIndex:-1,style:{position:"absolute",left:"-9999px",width:"1px",height:"1px"},"aria-hidden":"true"}),c.jsxs("div",{children:[c.jsx("label",{htmlFor:"name",className:"block text-sm font-medium text-cs-primary mb-2",children:"Nome Completo *"}),c.jsx("input",{type:"text",id:"name",name:"name",required:!0,value:u.name,onChange:b,maxLength:100,className:"w-full px-4 py-3 border border-border rounded-lg focus:outline-none focus:ring-2 focus:ring-cs-secondary",placeholder:"Seu nome completo"}),f.name&&c.jsx("p",{className:"text-sm text-red-600 mt-1",children:f.name})]}),c.jsxs("div",{children:[c.jsx("label",{htmlFor:"email",className:"block text-sm font-medium text-cs-primary mb-2",children:"E-mail *"}),c.jsx("input",{type:"email",id:"email",name:"email",required:!0,value:u.email,onChange:b,maxLength:255,className:"w-full px-4 py-3 border border-border rounded-lg focus:outline-none focus:ring-2 focus:ring-cs-secondary",placeholder:"[email protected]"}),f.email&&c.jsx("p",{className:"text-sm text-red-600 mt-1",children:f.email})]}),c.jsxs("div",{children:[c.jsx("label",{htmlFor:"phone",className:"block text-sm font-medium text-cs-primary mb-2",children:"Telefone"}),c.jsx("input",{type:"tel",id:"phone",name:"phone",value:u.phone,onChange:b,maxLength:20,className:"w-full px-4 py-3 border border-border rounded-lg focus:outline-none focus:ring-2 focus:ring-cs-secondary",placeholder:"(11) 99999-9999"}),f.phone&&c.jsx("p",{className:"text-sm text-red-600 mt-1",children:f.phone})]}),c.jsxs("div",{children:[c.jsx("label",{htmlFor:"subject",className:"block text-sm font-medium text-cs-primary mb-2",children:"Assu
657nto *"}),c.jsxs("select",{id:"subject",name:"subject",required:!0,value:u.subject,onChange:b,className:"w-full px-4 py-3 border border-border rounded-lg focus:outline-none focus:ring-2 focus:ring-cs-secondary",children:[c.jsx("option",{value:"",children:"Selecione um assunto"}),c.jsx("option",{value:"Simulação Financiamento de Veículos",children:"Simulação Financiamento de Veículos"}),c.jsx("option",{value:"Simulação Financiamento Imobiliário",children:"Simulação Financiamento Imobiliário"}),c.jsx("option",{value:"Simulação Carro por Assinatura",children:"Simulação Carro por Assinatura"}),c.jsx("option",{value:"Melhores Taxas e Prazos",children:"Melhores Taxas e Prazos"}),c.jsx("option",{value:"Consultoria Financeira",children:"Consultoria Financeira"}),c.jsx("option",{value:"CS Risco Sacado",children:"CS Risco Sacado"}),c.jsx("option",{value:"Dúvidas gerais",children:"Dúvidas gerais"}),c.jsx("option",{value:"Reclamação",children:"Reclamação"}),c.jsx("option",{value:"Sugestão",children:"Sugestão"})]}),f.subject&&c.jsx("p",{className:"text-sm text-red-600 mt-1",children:f.subject})]}),c.jsxs("div",{children:[c.jsx("label",{htmlFor:"message",className:"block text-sm font-medium text-cs-primary mb-2",children:"Mensagem *"}),c.jsx("textarea",{id:"message",name:"message",required:!0,rows:5,value:u.message,onChange:b,maxLength:2e3,className:"w-full px-4 py-3 border border-border rounded-lg focus:outline-none focus:ring-2 focus:ring-cs-secondary resize-none",placeholder:"Descreva sua dúvida ou solicitação..."}),f.message&&c.jsx("p",{className:"text-sm text-red-600 mt-1",children:f.message})]}),c.jsxs("div",{children:[c.jsx("label",{htmlFor:"attachment",className:"block text-sm font-medium text-cs-primary mb-2",children:"Anexo (opcional)"}),c.jsxs("div",{className:"space-y-2",children:[n?c.jsxs("div",{className:"flex items-center gap-2 p-3 bg-muted rounded-lg",children:[c.jsx(Ri,{className:"w-4 h-4 text-muted-foreground"}),c.jsx("span",{className:"text-sm flex-1 truncate",children:n.name}),c.jsx(fe,{type:"button",variant:"ghost",size:"sm",onClick:()=>s(null),children:c.jsx(tc,{className:"w-4 h-4"})})]}):c.jsxs("div",{className:"relative",children:[c.jsx("input",{type:"file",id:"attachment",onChange:S=>{var C;const E=(C=S.target.files)==null?void 0:C[0];if(E){if(E.size>5*1024*1024){t({title:"Arquivo muito grande",description:"O tamanho máximo é 5MB.",variant:"destructive"});return}s(E)}},className:"hidden",accept:"image/*,.pdf,.doc,.docx"}),c.jsxs(fe,{type:"button",variant:"outline",className:"w-full",onClick:()=>{var S;return(S=document.getElementById("attachment"))==null?void 0:S.click()},children:[c.jsx(Ri,{className:"w-4 h-4 mr-2"}),"Selecionar arquivo"]})]}),c.jsx("p",{className:"text-xs text-muted-foreground",children:"Máximo 5MB - Formatos: JPG, PNG, PDF, DOC, DOCX"})]})]}),c.jsxs("div",{children:[c.jsx("label",{htmlFor:"captcha",className:"block text-sm font-medium text-cs-primary mb-2",children:"Verificação de segurança *"}),c.jsxs("div",{className:"space-y-2",children:[c.jsxs("p",{className:"text-sm",children:["Quanto é ",a.num1," + ",a.num2,"?"]}),c.jsx("input",{type:"number",id:"captcha",value:i,onChange:S=>o(S.target.value),required:!0,className:"w-full px-4 py-3 border border-border rounded-lg focus:outline-none focus:ring-2 focus:ring-cs-secondary",placeholder:"Digite a resposta"})]})]}),c.jsx(fe,{type:"submit",disabled:e,className:"w-full bg-cs-accent hover:bg-cs-accent/90 text-white font-semibold py-3 disabled:opacity-50",children:e?"Enviando...":"Enviar Mensagem"})]}),c.jsxs("div",{className:"text-xs text-muted-foreground mt-4 p-4 bg-muted/50 rounded-lg space-y-2",children:[c.jsx("p",{className:"font-semibold text-cs-primary",children:"Após o envio:"}),c.jsxs("p",{children:["Recebemos sua mensagem com sucesso. Nossa equipe responderá em até ",c.jsx("strong",{children:"6 horas úteis"})," com um atendimento personalizado."]})]})]})]})}),c.jsx(Ko,{})]})]})},Qt=w.forwardRef(({className:t,...e},r)=>c.jsx("div",{ref:r,className:Ke("rounded-lg border bg-card text-card-foreground shadow-sm",t),...e}));
657Qt.displayName="Card";const vr=w.forwardRef(({className:t,...e},r)=>c.jsx("div",{ref:r,className:Ke("flex flex-col space-y-1.5 p-6",t),...e}));vr.displayName="CardHeader";const yr=w.forwardRef(({className:t,...e},r)=>c.jsx("h3",{ref:r,className:Ke("text-2xl font-semibold leading-none tracking-tight",t),...e}));yr.displayName="CardTitle";const bh=w.forwardRef(({className:t,...e},r)=>c.jsx("p",{ref:r,className:Ke("text-sm text-muted-foreground",t),...e}));bh.displayName="CardDescription";const hr=w.forwardRef(({className:t,...e},r)=>c.jsx("div",{ref:r,className:Ke("p-6 pt-0",t),...e}));hr.displayName="CardContent";const fK=w.forwardRef(({className:t,...e},r)=>c.jsx("div",{ref:r,className:Ke("flex items-center p-6 pt-0",t),...e}));fK.displayName="CardFooter";const hK=fx("inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function ys({className:t,variant:e,...r}){return c.jsx("div",{className:Ke(hK({variant:e}),t),...r})}const ur=w.forwardRef(({className:t,type:e,...r},n)=>c.jsx("input",{type:e,className:Ke("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",t),ref:n,...r}));ur.displayName="Input";var zP={exports:{}},UP={};/**
658 * @license React
659 * use-sync-external-store-shim.production.js
660 *
661 * Copyright (c) Meta Platforms, Inc. and affiliates.
662 *
663 * This source code is licensed under the MIT license found in the
664 * LICENSE file in the root directory of this source tree.
665 */var id=w;function pK(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var mK=typeof Object.is=="function"?Object.is:pK,gK=id.useState,xK=id.useEffect,vK=id.useLayoutEffect,yK=id.useDebugValue;function wK(t,e){var r=e(),n=gK({inst:{value:r,getSnapshot:e}}),s=n[0].inst,i=n[1];return vK(function(){s.value=r,s.getSnapshot=e,v1(s)&&i({inst:s})},[t,r,e]),xK(function(){return v1(s)&&i({inst:s}),t(function(){v1(s)&&i({inst:s})})},[t]),yK(r),r}function v1(t){var e=t.getSnapshot;t=t.value;try{var r=e();return!mK(t,r)}catch{return!0}}function bK(t,e){return e()}var SK=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?bK:wK;UP.useSyncExternalStore=id.useSyncExternalStore!==void 0?id.useSyncExternalStore:SK;zP.exports=UP;var ES=zP.exports;function sn(t){this.content=t}sn.prototype={constructor:sn,find:function(t){for(var e=0;e<this.content.length;e+=2)if(this.content[e]===t)return e;return-1},get:function(t){var e=this.find(t);return e==-1?void 0:this.content[e+1]},update:function(t,e,r){var n=r&&r!=t?this.remove(r):this,s=n.find(t),i=n.content.slice();return s==-1?i.push(r||t,e):(i[s+1]=e,r&&(i[s]=r)),new sn(i)},remove:function(t){var e=this.find(t);if(e==-1)return this;var r=this.content.slice();return r.splice(e,2),new sn(r)},addToStart:function(t,e){return new sn([t,e].concat(this.remove(t).content))},addToEnd:function(t,e){var r=this.remove(t).content.slice();return r.push(t,e),new sn(r)},addBefore:function(t,e,r){var n=this.remove(e),s=n.content.slice(),i=n.find(t);return s.splice(i==-1?s.length:i,0,e,r),new sn(s)},forEach:function(t){for(var e=0;e<this.content.length;e+=2)t(this.content[e],this.content[e+1])},prepend:function(t){return t=sn.from(t),t.size?new sn(t.content.concat(this.subtract(t).content)):this},append:function(t){return t=sn.from(t),t.size?new sn(this.subtract(t).content.concat(t.content)):this},subtract:function(t){var e=this;t=sn.from(t);for(var r=0;r<t.content.length;r+=2)e=e.remove(t.content[r]);return e},toObject:function(){var t={};return this.forEach(function(e,r){t[e]=r}),t},get size(){return this.content.length>>1}};sn.from=function(t){if(t instanceof sn)return t;var e=[];
vendor: 4,565 bytes, line 665
665if(t)for(var r in t)e.push(r,t[r]);return new sn(e)};function HP(t,e,r){for(let n=0;;n++){if(n==t.childCount||n==e.childCount)return t.childCount==e.childCount?null:r;let s=t.child(n),i=e.child(n);if(s==i){r+=s.nodeSize;continue}if(!s.sameMarkup(i))return r;if(s.isText&&s.text!=i.text){for(let o=0;s.text[o]==i.text[o];o++)r++;return r}if(s.content.size||i.content.size){let o=HP(s.content,i.content,r+1);if(o!=null)return o}r+=s.nodeSize}}function VP(t,e,r,n){for(let s=t.childCount,i=e.childCount;;){if(s==0||i==0)return s==i?null:{a:r,b:n};let o=t.child(--s),a=e.child(--i),l=o.nodeSize;if(o==a){r-=l,n-=l;continue}if(!o.sameMarkup(a))return{a:r,b:n};if(o.isText&&o.text!=a.text){let u=0,d=Math.min(o.text.length,a.text.length);for(;u<d&&o.text[o.text.length-u-1]==a.text[a.text.length-u-1];)u++,r--,n--;return{a:r,b:n}}if(o.content.size||a.content.size){let u=VP(o.content,a.content,r-1,n-1);if(u)return u}r-=l,n-=l}}class xe{constructor(e,r){if(this.content=e,this.size=r||0,r==null)for(let n=0;n<e.length;n++)this.size+=e[n].nodeSize}nodesBetween(e,r,n,s=0,i){for(let o=0,a=0;a<r;o++){let l=this.content[o],u=a+l.nodeSize;if(u>e&&n(l,s+a,i||null,o)!==!1&&l.content.size){let d=a+1;l.nodesBetween(Math.max(0,e-d),Math.min(l.content.size,r-d),n,s+d)}a=u}}descendants(e){this.nodesBetween(0,this.size,e)}textBetween(e,r,n,s){let i="",o=!0;return this.nodesBetween(e,r,(a,l)=>{let u=a.isText?a.text.slice(Math.max(e,l)-l,r-l):a.isLeaf?s?typeof s=="function"?s(a):s:a.type.spec.leafText?a.type.spec.leafText(a):"":"";a.isBlock&&(a.isLeaf&&u||a.isTextblock)&&n&&(o?o=!1:i+=n),i+=u},0),i}append(e){if(!e.size)return this;if(!this.size)return e;let r=this.lastChild,n=e.firstChild,s=this.content.slice(),i=0;for(r.isText&&r.sameMarkup(n)&&(s[s.length-1]=r.withText(r.text+n.text),i=1);i<e.content.length;i++)s.push(e.content[i]);return new xe(s,this.size+e.size)}cut(e,r=this.size){if(e==0&&r==this.size)return this;let n=[],s=0;if(r>e)for(let i=0,o=0;o<r;i++){let a=this.content[i],l=o+a.nodeSize;l>e&&((o<e||l>r)&&(a.isText?a=a.cut(Math.max(0,e-o),Math.min(a.text.length,r-o)):a=a.cut(Math.max(0,e-o-1),Math.min(a.content.size,r-o-1))),n.push(a),s+=a.nodeSize),o=l}return new xe(n,s)}cutByIndex(e,r){return e==r?xe.empty:e==0&&r==this.content.length?this:new xe(this.content.slice(e,r))}replaceChild(e,r){let n=this.content[e];if(n==r)return this;let s=this.content.slice(),i=this.size+r.nodeSize-n.nodeSize;return s[e]=r,new xe(s,i)}addToStart(e){return new xe([e].concat(this.content),this.size+e.nodeSize)}addToEnd(e){return new xe(this.content.concat(e),this.size+e.nodeSize)}eq(e){if(this.content.length!=e.content.length)return!1;for(let r=0;r<this.content.length;r++)if(!this.content[r].eq(e.content[r]))return!1;return!0}get firstChild(){return this.content.length?this.content[0]:null}get lastChild(){return this.content.length?this.content[this.content.length-1]:null}get childCount(){return this.content.length}child(e){let r=this.content[e];if(!r)throw new RangeError("Index "+e+" out of range for "+this);return r}maybeChild(e){return this.content[e]||null}forEach(e){for(let r=0,n=0;r<this.content.length;r++){let s=this.content[r];e(s,n,r),n+=s.nodeSize}}findDiffStart(e,r=0){return HP(this,e,r)}findDiffEnd(e,r=this.size,n=e.size){return VP(this,e,r,n)}findIndex(e){if(e==0)return Jp(0,e);if(e==this.size)return Jp(this.content.length,e);if(e>this.size||e<0)throw new RangeError(`Position ${e} outside of fragment (${this})`);for(let r=0,n=0;;r++){let s=this.child(r),i=n+s.nodeSize;if(i>=e)return i==e?Jp(r+1,i):Jp(r,n);n=i}}toString(){return"<"+this.toStringInner()+">"}toStringInner(){return this.content.join(", ")}toJSON(){return this.content.length?this.content.map(e=>e.toJSON()):null}static fromJSON(e,r){if(!r)return xe.empty;if(!Array.isArray(r))throw new RangeError("Invalid input for Fragment.fromJSON");return xe.fromArray(r.map(e.nodeFromJSON))}static fromArray(e){if(!e.length)return xe.empty;let r,n=0;for(let s=0;s<e.length;s++){let i=e[s];n+=i.nodeSize,s&&i.isText&&e[s-1].sameMarkup(i)?(r||(r=e.slice(0,s)),r[r.length-1]=i.withText(r[r.length-1].text+i.text)):r&&r.push(i)}return new xe(r||e,n)}static from(e){if(!e)return xe.empty;if(e instanceof xe)return e;if(Array.isArray(e))return this.fromArray(e);if(e.attrs)return new xe([e],e.nodeSize);throw new RangeError("Can not convert "+e+" to a Fragment"+(e.nodesBetween?" (looks like multiple versions of prosemirror-model were loaded)":""))}}xe.empty=new xe([],0);const y1={index:0,offset:0};function Jp(t,e){return y1.index=t,y1.offset=e,y1}function D0(t,e){if(t===e)return!0;
vendor: 4,163 bytes, line 665
665if(!(t&&typeof t=="object")||!(e&&typeof e=="object"))return!1;let r=Array.isArray(t);if(Array.isArray(e)!=r)return!1;if(r){if(t.length!=e.length)return!1;for(let n=0;n<t.length;n++)if(!D0(t[n],e[n]))return!1}else{for(let n in t)if(!(n in e)||!D0(t[n],e[n]))return!1;for(let n in e)if(!(n in t))return!1}return!0}let $t=class Ww{constructor(e,r){this.type=e,this.attrs=r}addToSet(e){let r,n=!1;for(let s=0;s<e.length;s++){let i=e[s];if(this.eq(i))return e;if(this.type.excludes(i.type))r||(r=e.slice(0,s));else{if(i.type.excludes(this.type))return e;!n&&i.type.rank>this.type.rank&&(r||(r=e.slice(0,s)),r.push(this),n=!0),r&&r.push(i)}}return r||(r=e.slice()),n||r.push(this),r}removeFromSet(e){for(let r=0;r<e.length;r++)if(this.eq(e[r]))return e.slice(0,r).concat(e.slice(r+1));return e}isInSet(e){for(let r=0;r<e.length;r++)if(this.eq(e[r]))return!0;return!1}eq(e){return this==e||this.type==e.type&&D0(this.attrs,e.attrs)}toJSON(){let e={type:this.type.name};for(let r in this.attrs){e.attrs=this.attrs;break}return e}static fromJSON(e,r){if(!r)throw new RangeError("Invalid input for Mark.fromJSON");let n=e.marks[r.type];if(!n)throw new RangeError(`There is no mark type ${r.type} in this schema`);let s=n.create(r.attrs);return n.checkAttrs(s.attrs),s}static sameSet(e,r){if(e==r)return!0;if(e.length!=r.length)return!1;for(let n=0;n<e.length;n++)if(!e[n].eq(r[n]))return!1;return!0}static setFrom(e){if(!e||Array.isArray(e)&&e.length==0)return Ww.none;if(e instanceof Ww)return[e];let r=e.slice();return r.sort((n,s)=>n.type.rank-s.type.rank),r}};$t.none=[];class L0 extends Error{}class Le{constructor(e,r,n){this.content=e,this.openStart=r,this.openEnd=n}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(e,r){let n=qP(this.content,e+this.openStart,r,this.openStart+1,this.openEnd+1);return n&&new Le(n,this.openStart,this.openEnd)}removeBetween(e,r){return new Le(WP(this.content,e+this.openStart,r+this.openStart),this.openStart,this.openEnd)}eq(e){return this.content.eq(e.content)&&this.openStart==e.openStart&&this.openEnd==e.openEnd}toString(){return this.content+"("+this.openStart+","+this.openEnd+")"}toJSON(){if(!this.content.size)return null;let e={content:this.content.toJSON()};return this.openStart>0&&(e.openStart=this.openStart),this.openEnd>0&&(e.openEnd=this.openEnd),e}static fromJSON(e,r){if(!r)return Le.empty;let n=r.openStart||0,s=r.openEnd||0;if(typeof n!="number"||typeof s!="number")throw new RangeError("Invalid input for Slice.fromJSON");return new Le(xe.fromJSON(e,r.content),n,s)}static maxOpen(e,r=!0){let n=0,s=0;for(let i=e.firstChild;i&&!i.isLeaf&&(r||!i.type.spec.isolating);i=i.firstChild)n++;for(let i=e.lastChild;i&&!i.isLeaf&&(r||!i.type.spec.isolating);i=i.lastChild)s++;return new Le(e,n,s)}}Le.empty=new Le(xe.empty,0,0);function WP(t,e,r){let{index:n,offset:s}=t.findIndex(e),i=t.maybeChild(n),{index:o,offset:a}=t.findIndex(r);if(s==e||i.isText){if(a!=r&&!t.child(o).isText)throw new RangeError("Removing non-flat range");return t.cut(0,e).append(t.cut(r))}if(n!=o)throw new RangeError("Removing non-flat range");return t.replaceChild(n,i.copy(WP(i.content,e-s-1,r-s-1)))}function qP(t,e,r,n,s,i){let{index:o,offset:a}=t.findIndex(e),l=t.maybeChild(o);if(a==e||l.isText)return i&&n<=0&&s<=0&&!i.canReplace(o,o,r)?null:t.cut(0,e).append(r).append(t.cut(e));let u=qP(l.content,e-a-1,r,o==0?n-1:0,o==t.childCount-1?s-1:0,l);return u&&t.replaceChild(o,l.copy(u))}function _K(t,e,r){if(r.openStart>t.depth)throw new L0("Inserted content deeper than insertion position");if(t.depth-r.openStart!=e.depth-r.openEnd)throw new L0("Inconsistent open depths");return GP(t,e,r,0)}function GP(t,e,r,n){let s=t.index(n),i=t.node(n);if(s==e.index(n)&&n<t.depth-r.openStart){let o=GP(t,e,r,n+1);return i.copy(i.content.replaceChild(s,o))}else if(r.content.size)if(!r.openStart&&!r.openEnd&&t.depth==n&&e.depth==n){let o=t.parent,a=o.content;return Vl(o,a.cut(0,t.parentOffset).append(r.content).append(a.cut(e.parentOffset)))}else{let{start:o,end:a}=EK(r,t);return Vl(i,XP(t,o,a,e,n))}else return Vl(i,F0(t,e,n))}function KP(t,e){if(!e.type.compatibleContent(t.type))throw new L0("Cannot join "+e.type.n
vendor: 10,932 bytes, line 665
665ame+" onto "+t.type.name)}function qw(t,e,r){let n=t.node(r);return KP(n,e.node(r)),n}function Hl(t,e){let r=e.length-1;r>=0&&t.isText&&t.sameMarkup(e[r])?e[r]=t.withText(e[r].text+t.text):e.push(t)}function jf(t,e,r,n){let s=(e||t).node(r),i=0,o=e?e.index(r):s.childCount;t&&(i=t.index(r),t.depth>r?i++:t.textOffset&&(Hl(t.nodeAfter,n),i++));for(let a=i;a<o;a++)Hl(s.child(a),n);e&&e.depth==r&&e.textOffset&&Hl(e.nodeBefore,n)}function Vl(t,e){return t.type.checkContent(e),t.copy(e)}function XP(t,e,r,n,s){let i=t.depth>s&&qw(t,e,s+1),o=n.depth>s&&qw(r,n,s+1),a=[];return jf(null,t,s,a),i&&o&&e.index(s)==r.index(s)?(KP(i,o),Hl(Vl(i,XP(t,e,r,n,s+1)),a)):(i&&Hl(Vl(i,F0(t,e,s+1)),a),jf(e,r,s,a),o&&Hl(Vl(o,F0(r,n,s+1)),a)),jf(n,null,s,a),new xe(a)}function F0(t,e,r){let n=[];if(jf(null,t,r,n),t.depth>r){let s=qw(t,e,r+1);Hl(Vl(s,F0(t,e,r+1)),n)}return jf(e,null,r,n),new xe(n)}function EK(t,e){let r=e.depth-t.openStart,s=e.node(r).copy(t.content);for(let i=r-1;i>=0;i--)s=e.node(i).copy(xe.from(s));return{start:s.resolveNoCache(t.openStart+r),end:s.resolveNoCache(s.content.size-t.openEnd-r)}}class Sh{constructor(e,r,n){this.pos=e,this.path=r,this.parentOffset=n,this.depth=r.length/3-1}resolveDepth(e){return e==null?this.depth:e<0?this.depth+e:e}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(e){return this.path[this.resolveDepth(e)*3]}index(e){return this.path[this.resolveDepth(e)*3+1]}indexAfter(e){return e=this.resolveDepth(e),this.index(e)+(e==this.depth&&!this.textOffset?0:1)}start(e){return e=this.resolveDepth(e),e==0?0:this.path[e*3-1]+1}end(e){return e=this.resolveDepth(e),this.start(e)+this.node(e).content.size}before(e){if(e=this.resolveDepth(e),!e)throw new RangeError("There is no position before the top-level node");return e==this.depth+1?this.pos:this.path[e*3-1]}after(e){if(e=this.resolveDepth(e),!e)throw new RangeError("There is no position after the top-level node");return e==this.depth+1?this.pos:this.path[e*3-1]+this.path[e*3].nodeSize}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let e=this.parent,r=this.index(this.depth);if(r==e.childCount)return null;let n=this.pos-this.path[this.path.length-1],s=e.child(r);return n?e.child(r).cut(n):s}get nodeBefore(){let e=this.index(this.depth),r=this.pos-this.path[this.path.length-1];return r?this.parent.child(e).cut(0,r):e==0?null:this.parent.child(e-1)}posAtIndex(e,r){r=this.resolveDepth(r);let n=this.path[r*3],s=r==0?0:this.path[r*3-1]+1;for(let i=0;i<e;i++)s+=n.child(i).nodeSize;return s}marks(){let e=this.parent,r=this.index();if(e.content.size==0)return $t.none;if(this.textOffset)return e.child(r).marks;let n=e.maybeChild(r-1),s=e.maybeChild(r);if(!n){let a=n;n=s,s=a}let i=n.marks;for(var o=0;o<i.length;o++)i[o].type.spec.inclusive===!1&&(!s||!i[o].isInSet(s.marks))&&(i=i[o--].removeFromSet(i));return i}marksAcross(e){let r=this.parent.maybeChild(this.index());if(!r||!r.isInline)return null;let n=r.marks,s=e.parent.maybeChild(e.index());for(var i=0;i<n.length;i++)n[i].type.spec.inclusive===!1&&(!s||!n[i].isInSet(s.marks))&&(n=n[i--].removeFromSet(n));return n}sharedDepth(e){for(let r=this.depth;r>0;r--)if(this.start(r)<=e&&this.end(r)>=e)return r;return 0}blockRange(e=this,r){if(e.pos<this.pos)return e.blockRange(this);for(let n=this.depth-(this.parent.inlineContent||this.pos==e.pos?1:0);n>=0;n--)if(e.pos<=this.end(n)&&(!r||r(this.node(n))))return new B0(this,e,n);return null}sameParent(e){return this.pos-this.parentOffset==e.pos-e.parentOffset}max(e){return e.pos>this.pos?e:this}min(e){return e.pos<this.pos?e:this}toString(){let e="";for(let r=1;r<=this.depth;r++)e+=(e?"/":"")+this.node(r).type.name+"_"+this.index(r-1);return e+":"+this.parentOffset}static resolve(e,r){if(!(r>=0&&r<=e.content.size))throw new RangeError("Position "+r+" out of range");let n=[],s=0,i=r;for(let o=e;;){let{index:a,offset:l}=o.content.findIndex(i),u=i-l;if(n.push(o,a,s+l),!u||(o=o.child(a),o.isText))break;i=u-1,s+=l+1}return new Sh(r,n,i)}static resolveCached(e,r){let n=LC.get(e);if(n)for(let i=0;i<n.elts.length;i++){let o=n.elts[i];if(o.pos==r)return o}else LC.set(e,n=new TK);let s=n.elts[n.i]=Sh.resolve(e,r);return n.i=(n.i+1)%CK,s}}class TK{constructor(){this.elts=[],this.i=0}}const CK=12,LC=new WeakMap;class B0{constructor(e,r,n){this.$from=e,this.$to=r,this.depth=n}get start(){return this.$from.before(this.depth+1)}get end(){return this.$to.after(this.depth+1)}get parent(){return this.$from.node(this.depth)}get startIndex(){return this.$from.index(this.depth)}get endIndex(){return this.$to.indexAfter(this.depth)}}const kK=Object.create(null);let Va=class Gw{constructor(e,r,n,s=$t.none){this.type=e,this.attrs=r,this.marks=s,this.content=n||xe.empty}get children(){return this.content.content}get nodeSize(){return this.isLeaf?1:2+this.content.size}get childCount(){return this.content.childCount}child(e){return this.content.child(e)}maybeChild(e){return this.content.maybeChild(e)}forEach(e){this.content.forEach(e)}nodesBetween(e,r,n,s=0){this.content.nodesBetween(e,r,n,s,this)}descendants(e){this.nodesBetween(0,this.content.size,e)}get textContent(){return this.isLeaf&&this.type.spec.leafText?this.type.spec.leafText(this):this.textBetween(0,this.content.size,"")}textBetween(e,r,n,s){return this.content.textBetween(e,r,n,s)}get firstChild(){return this.content.firstChild}get lastChild(){return this.content.lastChild}eq(e){return this==e||this.sameMarkup(e)&&this.content.eq(e.content)}sameMarkup(e){return this.hasMarkup(e.type,e.attrs,e.marks)}hasMarkup(e,r,n){return this.type==e&&D0(this.attrs,r||e.defaultAttrs||kK)&&$t.sameSet(this.marks,n||$t.none)}copy(e=null){return e==this.content?this:new Gw(this.type,this.attrs,e,this.marks)}mark(e){return e==this.marks?this:new Gw(this.type,this.attrs,this.content,e)}cut(e,r=this.content.size){return e==0&&r==this.content.size?this:this.copy(this.content.cut(e,r))}slice(e,r=this.content.size,n=!1){if(e==r)return Le.empty;let s=this.resolve(e),i=this.resolve(r),o=n?0:s.sharedDepth(r),a=s.start(o),u=s.node(o).content.cut(s.pos-a,i.pos-a);return new Le(u,s.depth-o,i.depth-o)}replace(e,r,n){return _K(this.resolve(e),this.resolve(r),n)}nodeAt(e){for(let r=this;;){let{index:n,offset:s}=r.content.findIndex(e);if(r=r.maybeChild(n),!r)return null;if(s==e||r.isText)return r;e-=s+1}}childAfter(e){let{index:r,offset:n}=this.content.findIndex(e);return{node:this.content.maybeChild(r),index:r,offset:n}}childBefore(e){if(e==0)return{node:null,index:0,offset:0};let{index:r,offset:n}=this.content.findIndex(e);if(n<e)return{node:this.content.child(r),index:r,offset:n};let s=this.content.child(r-1);return{node:s,index:r-1,offset:n-s.nodeSize}}resolve(e){return Sh.resolveCached(this,e)}resolveNoCache(e){return Sh.resolve(this,e)}rangeHasMark(e,r,n){let s=!1;return r>e&&this.nodesBetween(e,r,i=>(n.isInSet(i.marks)&&(s=!0),!s)),s}get isBlock(){return this.type.isBlock}get isTextblock(){return this.type.isTextblock}get inlineContent(){return this.type.inlineContent}get isInline(){return this.type.isInline}get isText(){return this.type.isText}get isLeaf(){return this.type.isLeaf}get isAtom(){return this.type.isAtom}toString(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);let e=this.type.name;return this.content.size&&(e+="("+this.content.toStringInner()+")"),YP(this.marks,e)}contentMatchAt(e){let r=this.type.contentMatch.matchFragment(this.content,0,e);if(!r)throw new Error("Called contentMatchAt on a node with invalid content");return r}canReplace(e,r,n=xe.empty,s=0,i=n.childCount){let o=this.contentMatchAt(e).matchFragment(n,s,i),a=o&&o.matchFragment(this.content,r);if(!a||!a.validEnd)return!1;for(let l=s;l<i;l++)if(!this.type.allowsMarks(n.child(l).marks))return!1;return!0}canReplaceWith(e,r,n,s){if(s&&!this.type.allowsMarks(s))return!1;let i=this.contentMatchAt(e).matchType(n),o=i&&i.matchFragment(this.content,r);return o?o.validEnd:!1}canAppend(e){return e.content.size?this.canReplace(this.childCount,this.childCount,e.content):this.type.compatibleContent(e.type)}check(){this.type.checkContent(this.content),this.type.checkAttrs(this.attrs);let e=$t.none;for(let r=0;r<this.marks.length;r++){let n=this.marks[r];n.type.checkAttrs(n.attrs),e=n.addToSet(e)}if(!$t.sameSet(e,this.marks))throw new RangeError(`Invalid collection of marks for node ${this.type.name}: ${this.marks.map(r=>r.type.name)}`);this.content.forEach(r=>r.check())}toJSON(){let e={type:this.type.name};for(let r in this.attrs){e.attrs=this.attrs;break}return this.content.size&&(e.content=this.content.toJSON()),this.marks.length&&(e.marks=this.marks.map(r=>r.toJSON())),e}static fromJSON(e,r){if(!r)throw new RangeError("Invalid input for Node.fromJSON");let n;if(r.marks){if(!Array.isArray(r.marks))throw new RangeError("Invalid mark data for Node.fromJSON");n=r.marks.map(e.markFromJSON)}if(r.type=="text"){if(typeof r.text!="string")throw new RangeError("Invalid text node in JSON");return e.text(r.text,n)}let s=xe.fromJSON(e,r.content),i=e.nodeType(r.type).create(r.attrs,s,n);return i.type.checkAttrs(i.attrs),i}};Va.prototype.text=void 0;class $0 extends Va{constructor(e,r,n,s){if(super(e,r,null,s),!n)throw new RangeError("Empty text nodes are not allowed");this.text=n}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):YP(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(e,r){return this.text.slice(e,r)}get nodeSize(){return this.text.length}mark(e){return e==this.marks?this:new $0(this.type,this.attrs,this.text,e)}withText(e){return e==this.text?this:new $0(this.type,this.attrs,e,this.marks)}cut(e=0,r=this.text.length){return e==0&&r==this.text.length?this:this.withText(this.text.slice(e,r))}eq(e){return this.sameMarkup(e)&&this.text==e.text}toJSON(){let e=super.toJSON();return e.text=this.text,e}}function YP(t,e){for(let r=t.length-1;r>=0;r--)e=t[r].type.name+"("+e+")";return e}class sc{constructor(e){this.validEnd=e,this.next=[],this.wrapCache=[]}static parse(e,r){let n=new NK(e,r);if(n.next==null)return sc.empty;let s=JP(n);n.next&&n.err("Unexpected trailing text");let i=IK(MK(s));return DK(i,n),i}matchType(e){for(let r=0;r<this.next.length;r++)if(this.next[r].type==e)return this.next[r].next;return null}matchFragment(e,r=0,n=e.childCount){let s=this;for(let i=r;s&&i<n;i++)s=s.matchType(e.child(i).type);return s}get inlineContent(){return this.next.length!=0&&this.next[0].type.isInline}get defaultType(){for(let e=0;e<this.next.length;e++){let{type:r}=this.next[e];if(!(r.isText||r.hasRequiredAttrs()))return r}return null}compatible(e){for(let r=0;r<this.next.length;r++)for(let n=0;n<e.next.length;n++)if(this.next[r].type==e.next[n].type)return!0;return!1}fillBefore(e,r=!1,n=0){let s=[this];function i(o,a){let l=o.matchFragment(e,n);if(l&&(!r||l.validEnd))return xe.from(a.map(u=>u.createAndFill()));for(let u=0;u<o.next.length;u++){let{type:d,next:f}=o.next[u];
vendor: 11,772 bytes, lines 665-666
665if(!(d.isText||d.hasRequiredAttrs())&&s.indexOf(f)==-1){s.push(f);let h=i(f,a.concat(d));if(h)return h}}return null}return i(this,[])}findWrapping(e){for(let n=0;n<this.wrapCache.length;n+=2)if(this.wrapCache[n]==e)return this.wrapCache[n+1];let r=this.computeWrapping(e);return this.wrapCache.push(e,r),r}computeWrapping(e){let r=Object.create(null),n=[{match:this,type:null,via:null}];for(;n.length;){let s=n.shift(),i=s.match;if(i.matchType(e)){let o=[];for(let a=s;a.type;a=a.via)o.push(a.type);return o.reverse()}for(let o=0;o<i.next.length;o++){let{type:a,next:l}=i.next[o];!a.isLeaf&&!a.hasRequiredAttrs()&&!(a.name in r)&&(!s.type||l.validEnd)&&(n.push({match:a.contentMatch,type:a,via:s}),r[a.name]=!0)}}return null}get edgeCount(){return this.next.length}edge(e){if(e>=this.next.length)throw new RangeError(`There's no ${e}th edge in this content match`);return this.next[e]}toString(){let e=[];function r(n){e.push(n);for(let s=0;s<n.next.length;s++)e.indexOf(n.next[s].next)==-1&&r(n.next[s].next)}return r(this),e.map((n,s)=>{let i=s+(n.validEnd?"*":" ")+" ";for(let o=0;o<n.next.length;o++)i+=(o?", ":"")+n.next[o].type.name+"->"+e.indexOf(n.next[o].next);return i}).join(`
666`)}}sc.empty=new sc(!0);class NK{constructor(e,r){this.string=e,this.nodeTypes=r,this.inline=null,this.pos=0,this.tokens=e.split(/\s*(?=\b|\W|$)/),this.tokens[this.tokens.length-1]==""&&this.tokens.pop(),this.tokens[0]==""&&this.tokens.shift()}get next(){return this.tokens[this.pos]}eat(e){return this.next==e&&(this.pos++||!0)}err(e){throw new SyntaxError(e+" (in content expression '"+this.string+"')")}}function JP(t){let e=[];do e.push(AK(t));while(t.eat("|"));return e.length==1?e[0]:{type:"choice",exprs:e}}function AK(t){let e=[];do e.push(jK(t));while(t.next&&t.next!=")"&&t.next!="|");return e.length==1?e[0]:{type:"seq",exprs:e}}function jK(t){let e=PK(t);for(;;)if(t.eat("+"))e={type:"plus",expr:e};else if(t.eat("*"))e={type:"star",expr:e};else if(t.eat("?"))e={type:"opt",expr:e};else if(t.eat("{"))e=RK(t,e);else break;return e}function FC(t){/\D/.test(t.next)&&t.err("Expected number, got '"+t.next+"'");let e=Number(t.next);return t.pos++,e}function RK(t,e){let r=FC(t),n=r;return t.eat(",")&&(t.next!="}"?n=FC(t):n=-1),t.eat("}")||t.err("Unclosed braced range"),{type:"range",min:r,max:n,expr:e}}function OK(t,e){let r=t.nodeTypes,n=r[e];if(n)return[n];let s=[];for(let i in r){let o=r[i];o.isInGroup(e)&&s.push(o)}return s.length==0&&t.err("No node type or group '"+e+"' found"),s}function PK(t){if(t.eat("(")){let e=JP(t);return t.eat(")")||t.err("Missing closing paren"),e}else if(/\W/.test(t.next))t.err("Unexpected token '"+t.next+"'");else{let e=OK(t,t.next).map(r=>(t.inline==null?t.inline=r.isInline:t.inline!=r.isInline&&t.err("Mixing inline and block content"),{type:"name",value:r}));return t.pos++,e.length==1?e[0]:{type:"choice",exprs:e}}}function MK(t){let e=[[]];return s(i(t,0),r()),e;function r(){return e.push([])-1}function n(o,a,l){let u={term:l,to:a};return e[o].push(u),u}function s(o,a){o.forEach(l=>l.to=a)}function i(o,a){if(o.type=="choice")return o.exprs.reduce((l,u)=>l.concat(i(u,a)),[]);if(o.type=="seq")for(let l=0;;l++){let u=i(o.exprs[l],a);if(l==o.exprs.length-1)return u;s(u,a=r())}else if(o.type=="star"){let l=r();return n(a,l),s(i(o.expr,l),l),[n(l)]}else if(o.type=="plus"){let l=r();return s(i(o.expr,a),l),s(i(o.expr,l),l),[n(l)]}else{if(o.type=="opt")return[n(a)].concat(i(o.expr,a));if(o.type=="range"){let l=a;for(let u=0;u<o.min;u++){let d=r();s(i(o.expr,l),d),l=d}if(o.max==-1)s(i(o.expr,l),l);else for(let u=o.min;u<o.max;u++){let d=r();n(l,d),s(i(o.expr,l),d),l=d}return[n(l)]}else{if(o.type=="name")return[n(a,void 0,o.value)];throw new Error("Unknown expr type")}}}}function QP(t,e){return e-t}function BC(t,e){let r=[];return n(e),r.sort(QP);function n(s){let i=t[s];if(i.length==1&&!i[0].term)return n(i[0].to);r.push(s);for(let o=0;o<i.length;o++){let{term:a,to:l}=i[o];!a&&r.indexOf(l)==-1&&n(l)}}}function IK(t){let e=Object.create(null);return r(BC(t,0));function r(n){let s=[];n.forEach(o=>{t[o].forEach(({term:a,to:l})=>{if(!a)return;let u;for(let d=0;d<s.length;d++)s[d][0]==a&&(u=s[d][1]);BC(t,l).forEach(d=>{u||s.push([a,u=[]]),u.indexOf(d)==-1&&u.push(d)})})});let i=e[n.join(",")]=new sc(n.indexOf(t.length-1)>-1);for(let o=0;o<s.length;o++){let a=s[o][1].sort(QP);i.next.push({type:s[o][0],next:e[a.join(",")]||r(a)})}return i}}function DK(t,e){for(let r=0,n=[t];r<n.length;r++){let s=n[r],i=!s.validEnd,o=[];for(let a=0;a<s.next.length;a++){let{type:l,next:u}=s.next[a];o.push(l.name),i&&!(l.isText||l.hasRequiredAttrs())&&(i=!1),n.indexOf(u)==-1&&n.push(u)}i&&e.err("Only non-generatable nodes ("+o.join(", ")+") in a required position (see https://prosemirror.net/docs/guide/#generatable)")}}function ZP(t){let e=Object.create(null);for(let r in t){let n=t[r];if(!n.hasDefault)return null;e[r]=n.default}return e}function eM(t,e){let r=Object.create(null);for(let n in t){let s=e&&e[n];if(s===void 0){let i=t[n];if(i.hasDefault)s=i.default;else throw new RangeError("No value supplied for attribute "+n)}r[n]=s}return r}function tM(t,e,r,n){for(let s in e)if(!(s in t))throw new RangeError(`Unsupported attribute ${s} for ${r} of type ${s}`);for(let s in t){let i=t[s];i.validate&&i.validate(e[s])}}function rM(t,e){let r=Object.create(null);if(e)for(let n in e)r[n]=new FK(t,n,e[n]);return r}let $C=class nM{constructor(e,r,n){this.name=e,this.schema=r,this.spec=n,this.markSet=null,this.groups=n.group?n.group.split(" "):[],this.attrs=rM(e,n.attrs),this.defaultAttrs=ZP(this.attrs),this.contentMatch=null,this.inlineContent=null,this.isBlock=!(n.inline||e=="text"),this.isText=e=="text"}get isInline(){return!this.isBlock}get isTextblock(){return this.isBlock&&this.inlineContent}get isLeaf(){return this.contentMatch==sc.empty}get isAtom(){return this.isLeaf||!!this.spec.atom}isInGroup(e){return this.groups.indexOf(e)>-1}get whitespace(){return this.spec.whitespace||(this.spec.code?"pre":"normal")}hasRequiredAttrs(){for(let e in this.attrs)if(this.attrs[e].isRequired)return!0;return!1}compatibleContent(e){return this==e||this.contentMatch.compatible(e.contentMatch)}computeAttrs(e){return!e&&this.defaultAttrs?this.defaultAttrs:eM(this.attrs,e)}create(e=null,r,n){if(this.isText)throw new Error("NodeType.create can't construct text nodes");return new Va(this,this.computeAttrs(e),xe.from(r),$t.setFrom(n))}createChecked(e=null,r,n){return r=xe.from(r),this.checkContent(r),new Va(this,this.computeAttrs(e),r,$t.setFrom(n))}createAndFill(e=null,r,n){if(e=this.computeAttrs(e),r=xe.from(r),r.size){let o=this.contentMatch.fillBefore(r);if(!o)return null;r=o.append(r)}let s=this.contentMatch.matchFragment(r),i=s&&s.fillBefore(xe.empty,!0);return i?new Va(this,e,r.append(i),$t.setFrom(n)):null}validContent(e){let r=this.contentMatch.matchFragment(e);if(!r||!r.validEnd)return!1;for(let n=0;n<e.childCount;n++)if(!this.allowsMarks(e.child(n).marks))return!1;return!0}checkContent(e){if(!this.validContent(e))throw new RangeError(`Invalid content for node ${this.name}: ${e.toString().slice(0,50)}`)}checkAttrs(e){tM(this.attrs,e,"node",this.name)}allowsMarkType(e){return this.markSet==null||this.markSet.indexOf(e)>-1}allowsMarks(e){if(this.markSet==null)return!0;for(let r=0;r<e.length;r++)if(!this.allowsMarkType(e[r].type))return!1;return!0}allowedMarks(e){if(this.markSet==null)return e;let r;for(let n=0;n<e.length;n++)this.allowsMarkType(e[n].type)?r&&r.push(e[n]):r||(r=e.slice(0,n));return r?r.length?r:$t.none:e}static compile(e,r){let n=Object.create(null);e.forEach((i,o)=>n[i]=new nM(i,r,o));let s=r.spec.topNode||"doc";if(!n[s])throw new RangeError("Schema is missing its top node type ('"+s+"')");if(!n.text)throw new RangeError("Every schema needs a 'text' type");for(let i in n.text.attrs)throw new RangeError("The text node type should not have attributes");return n}};function LK(t,e,r){let n=r.split("|");return s=>{let i=s===null?"null":typeof s;if(n.indexOf(i)<0)throw new RangeError(`Expected value of type ${n} for attribute ${e} on type ${t}, got ${i}`)}}class FK{constructor(e,r,n){this.hasDefault=Object.prototype.hasOwnProperty.call(n,"default"),this.default=n.default,this.validate=typeof n.validate=="string"?LK(e,r,n.validate):n.validate}get isRequired(){return!this.hasDefault}}class zx{constructor(e,r,n,s){this.name=e,this.rank=r,this.schema=n,this.spec=s,this.attrs=rM(e,s.attrs),this.excluded=null;let i=ZP(this.attrs);this.instance=i?new $t(this,i):null}create(e=null){return!e&&this.instance?this.instance:new $t(this,eM(this.attrs,e))}static compile(e,r){let n=Object.create(null),s=0;return e.forEach((i,o)=>n[i]=new zx(i,s++,r,o)),n}removeFromSet(e){for(var r=0;r<e.length;r++)e[r].type==this&&(e=e.slice(0,r).concat(e.slice(r+1)),r--);return e}isInSet(e){for(let r=0;r<e.length;r++)if(e[r].type==this)return e[r]}checkAttrs(e){tM(this.attrs,e,"mark",this.name)}excludes(e){return this.excluded.indexOf(e)>-1}}class sM{constructor(e){this.linebreakReplacement=null,this.cached=Object.create(null);let r=this.spec={};for(let s in e)r[s]=e[s];r.nodes=sn.from(e.nodes),r.marks=sn.from(e.marks||{}),this.nodes=$C.compile(this.spec.nodes,this),this.marks=zx.compile(this.spec.marks,this);let n=Object.create(null);for(let s in this.nodes){if(s in this.marks)throw new RangeError(s+" can not be both a node and a mark");let i=this.nodes[s],o=i.spec.content||"",a=i.spec.marks;if(i.contentMatch=n[o]||(n[o]=sc.parse(o,this.nodes)),i.inlineContent=i.contentMatch.inlineContent,i.spec.linebreakReplacement){if(this.linebreakReplacement)throw new RangeError("Multiple linebreak nodes defined");if(!i.isInline||!i.isLeaf)throw new RangeError("Linebreak replacement nodes must be inline leaf nodes");this.linebreakReplacement=i}i.markSet=a=="_"?null:a?zC(this,a.split(" ")):a==""||!i.inlineContent?[]:null}for(let s in this.marks){let i=this.marks[s],o=i.spec.excludes;i.excluded=o==null?[i]:o==""?[]:zC(this,o.split(" "))}this.nodeFromJSON=s=>Va.fromJSON(this,s),this.markFromJSON=s=>$t.fromJSON(this,s),this.topNodeType=this.nodes[this.spec.topNode||"doc"],this.cached.wrappings=Object.create(null)}node(e,r=null,n,s){if(typeof e=="string")e=this.nodeType(e);else if(e instanceof $C){if(e.schema!=this)throw new RangeError("Node type from different schema used ("+e.name+")")}else throw new RangeError("Invalid node type: "+e);return e.createChecked(r,n,s)}text(e,r){let n=this.nodes.text;return new $0(n,n.defaultAttrs,e,$t.setFrom(r))}mark(e,r){return typeof e=="string"&&(e=this.marks[e]),e.create(r)}nodeType(e){let r=this.nodes[e];if(!r)throw new RangeError("Unknown node type: "+e);return r}}function zC(t,e){let r=[];for(let n=0;n<e.length;n++){let s=e[n],i=t.marks[s],o=i;if(i)r.push(i);else for(let a in t.marks){let l=t.marks[a];(s=="_"||l.spec.group&&l.spec.group.split(" ").indexOf(s)>-1)&&r.push(o=l)}if(!o)throw new SyntaxError("Unknown mark type: '"+e[n]+"'")}return r}function BK(t){return t.tag!=null}function $K(t){return t.style!=null}class Wa{constructor(e,r){this.schema=e,this.rules=r,this.tags=[],this.styles=[];let n=this.matchedStyles=[];r.forEach(s=>{if(BK(s))this.tags.push(s);else if($K(s)){let i=/[^=]*/.exec(s.style)[0];n.indexOf(i)<0&&n.push(i),this.styles.push(s)}}),this.normalizeLists=!this.tags.some(s=>{if(!/^(ul|ol)\b/.test(s.tag)||!s.node)return!1;let i=e.nodes[s.node];return i.contentMatch.matchType(i)})}parse(e,r={}){let n=new HC(this,r,!1);return n.addAll(e,$t.none,r.from,r.to),n.finish()}parseSlice(e,r={}){let n=new HC(this,r,!0);return n.addAll(e,$t.none,r.from,r.to),Le.maxOpen(n.finish())}matchTag(e,r,n){for(let s=n?this.tags.indexOf(n)+1:0;s<this.tags.length;s++){let i=this.tags[s];if(HK(e,i.tag)&&(i.namespace===void 0||e.namespaceURI==i.namespace)&&(!i.context||r.matchesContext(i.context))){if(i.getAttrs
vendor: 5,548 bytes, lines 666-668
666){let o=i.getAttrs(e);if(o===!1)continue;i.attrs=o||void 0}return i}}}matchStyle(e,r,n,s){for(let i=s?this.styles.indexOf(s)+1:0;i<this.styles.length;i++){let o=this.styles[i],a=o.style;if(!(a.indexOf(e)!=0||o.context&&!n.matchesContext(o.context)||a.length>e.length&&(a.charCodeAt(e.length)!=61||a.slice(e.length+1)!=r))){if(o.getAttrs){let l=o.getAttrs(r);if(l===!1)continue;o.attrs=l||void 0}return o}}}static schemaRules(e){let r=[];function n(s){let i=s.priority==null?50:s.priority,o=0;for(;o<r.length;o++){let a=r[o];if((a.priority==null?50:a.priority)<i)break}r.splice(o,0,s)}for(let s in e.marks){let i=e.marks[s].spec.parseDOM;i&&i.forEach(o=>{n(o=VC(o)),o.mark||o.ignore||o.clearMark||(o.mark=s)})}for(let s in e.nodes){let i=e.nodes[s].spec.parseDOM;i&&i.forEach(o=>{n(o=VC(o)),o.node||o.ignore||o.mark||(o.node=s)})}return r}static fromSchema(e){return e.cached.domParser||(e.cached.domParser=new Wa(e,Wa.schemaRules(e)))}}const iM={address:!0,article:!0,aside:!0,blockquote:!0,canvas:!0,dd:!0,div:!0,dl:!0,fieldset:!0,figcaption:!0,figure:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,li:!0,noscript:!0,ol:!0,output:!0,p:!0,pre:!0,section:!0,table:!0,tfoot:!0,ul:!0},zK={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},oM={ol:!0,ul:!0},_h=1,Kw=2,Rf=4;function UC(t,e,r){return e!=null?(e?_h:0)|(e==="full"?Kw:0):t&&t.whitespace=="pre"?_h|Kw:r&~Rf}class Qp{constructor(e,r,n,s,i,o){this.type=e,this.attrs=r,this.marks=n,this.solid=s,this.options=o,this.content=[],this.activeMarks=$t.none,this.match=i||(o&Rf?null:e.contentMatch)}findWrapping(e){if(!this.match){if(!this.type)return[];let r=this.type.contentMatch.fillBefore(xe.from(e));if(r)this.match=this.type.contentMatch.matchFragment(r);else{let n=this.type.contentMatch,s;return(s=n.findWrapping(e.type))?(this.match=n,s):null}}return this.match.findWrapping(e.type)}finish(e){if(!(this.options&_h)){let n=this.content[this.content.length-1],s;if(n&&n.isText&&(s=/[ \t\r\n\u000c]+$/.exec(n.text))){let i=n;n.text.length==s[0].length?this.content.pop():this.content[this.content.length-1]=i.withText(i.text.slice(0,i.text.length-s[0].length))}}let r=xe.from(this.content);return!e&&this.match&&(r=r.append(this.match.fillBefore(xe.empty,!0))),this.type?this.type.create(this.attrs,r,this.marks):r}inlineContext(e){return this.type?this.type.inlineContent:this.content.length?this.content[0].isInline:e.parentNode&&!iM.hasOwnProperty(e.parentNode.nodeName.toLowerCase())}}class HC{constructor(e,r,n){this.parser=e,this.options=r,this.isOpen=n,this.open=0,this.localPreserveWS=!1;let s=r.topNode,i,o=UC(null,r.preserveWhitespace,0)|(n?Rf:0);s?i=new Qp(s.type,s.attrs,$t.none,!0,r.topMatch||s.type.contentMatch,o):n?i=new Qp(null,null,$t.none,!0,null,o):i=new Qp(e.schema.topNodeType,null,$t.none,!0,null,o),this.nodes=[i],this.find=r.findPositions,this.needsBlock=!1}get top(){return this.nodes[this.open]}addDOM(e,r){e.nodeType==3?this.addTextNode(e,r):e.nodeType==1&&this.addElement(e,r)}addTextNode(e,r){let n=e.nodeValue,s=this.top,i=s.options&Kw?"full":this.localPreserveWS||(s.options&_h)>0,{schema:o}=this.parser;if(i==="full"||s.inlineContext(e)||/[^ \t\r\n\u000c]/.test(n)){if(i)if(i==="full")n=n.replace(/\r\n?/g,`
667`);else if(o.linebreakReplacement&&/[\r\n]/.test(n)&&this.top.findWrapping(o.linebreakReplacement.create())){let a=n.split(/\r?\n|\r/);for(let l=0;l<a.length;l++)l&&this.insertNode(o.linebreakReplacement.create(),r,!0),a[l]&&this.insertNode(o.text(a[l]),r,!/\S/.test(a[l]));n=""}else n=n.replace(/\r?\n|\r/g," ");else if(n=n.replace(/[ \t\r\n\u000c]+/g," "),/^[ \t\r\n\u000c]/.test(n)&&this.open==this.nodes.length-1){let a=s.content[s.content.length-1],l=e.previousSibling;(!a||l&&l.nodeName=="BR"||a.isText&&/[ \t\r\n\u000c]$/.test(a.text))&&(n=n.slice(1))}n&&this.insertNode(o.text(n),r,!/\S/.test(n)),this.findInText(e)}else this.findInside(e)}addElement(e,r,n){let s=this.localPreserveWS,i=this.top;(e.tagName=="PRE"||/pre/.test(e.style&&e.style.whiteSpace))&&(this.localPreserveWS=!0);let o=e.nodeName.toLowerCase(),a;oM.hasOwnProperty(o)&&this.parser.normalizeLists&&UK(e);let l=this.options.ruleFromNode&&this.options.ruleFromNode(e)||(a=this.parser.matchTag(e,this,n));e:if(l?l.ignore:zK.hasOwnProperty(o))this.findInside(e),this.ignoreFallback(e,r);else if(!l||l.skip||l.closeParent){l&&l.closeParent?this.open=Math.max(0,this.open-1):l&&l.skip.nodeType&&(e=l.skip);let u,d=this.needsBlock;if(iM.hasOwnProperty(o))i.content.length&&i.content[0].isInline&&this.open&&(this.open--,i=this.top),u=!0,i.type||(this.needsBlock=!0);else if(!e.firstChild){this.leafFallback(e,r);break e}let f=l&&l.skip?r:this.readStyles(e,r);f&&this.addAll(e,f),u&&this.sync(i),this.needsBlock=d}else{let u=this.readStyles(e,r);u&&this.addElementByRule(e,l,u,l.consuming===!1?a:void 0)}this.localPreserveWS=s}leafFallback(e,r){e.nodeName=="BR"&&this.top.type&&this.top.type.inlineContent&&this.addTextNode(e.ownerDocument.createTextNode(`
668`),r)}ignoreFallback(e,r){e.nodeName=="BR"&&(!this.top.type||!this.top.type.inlineContent)&&this.findPlace(this.parser.schema.text("-"),r,!0)}readStyles(e,r){let n=e.style;if(n&&n.length)for(let s=0;s<this.parser.matchedStyles.length;s++){let i=this.parser.matchedStyles[s],o=n.getPropertyValue(i);if(o)for(let a=void 0;;){let l=this.parser.matchStyle(i,o,this,a);if(!l)break;if(l.ignore)return null;if(l.clearMark?r=r.filter(u=>!l.clearMark(u)):r=r.concat(this.parser.schema.marks[l.mark].create(l.attrs)),l.consuming===!1)a=l;else break}}return r}addElementByRule(e,r,n,s){let i,o;
vendor: 4,119 bytes, line 668
668if(r.node)if(o=this.parser.schema.nodes[r.node],o.isLeaf)this.insertNode(o.create(r.attrs),n,e.nodeName=="BR")||this.leafFallback(e,n);else{let l=this.enter(o,r.attrs||null,n,r.preserveWhitespace);l&&(i=!0,n=l)}else{let l=this.parser.schema.marks[r.mark];n=n.concat(l.create(r.attrs))}let a=this.top;if(o&&o.isLeaf)this.findInside(e);else if(s)this.addElement(e,n,s);else if(r.getContent)this.findInside(e),r.getContent(e,this.parser.schema).forEach(l=>this.insertNode(l,n,!1));else{let l=e;typeof r.contentElement=="string"?l=e.querySelector(r.contentElement):typeof r.contentElement=="function"?l=r.contentElement(e):r.contentElement&&(l=r.contentElement),this.findAround(e,l,!0),this.addAll(l,n),this.findAround(e,l,!1)}i&&this.sync(a)&&this.open--}addAll(e,r,n,s){let i=n||0;for(let o=n?e.childNodes[n]:e.firstChild,a=s==null?null:e.childNodes[s];o!=a;o=o.nextSibling,++i)this.findAtPoint(e,i),this.addDOM(o,r);this.findAtPoint(e,i)}findPlace(e,r,n){let s,i;for(let o=this.open,a=0;o>=0;o--){let l=this.nodes[o],u=l.findWrapping(e);if(u&&(!s||s.length>u.length+a)&&(s=u,i=l,!u.length))break;if(l.solid){if(n)break;a+=2}}if(!s)return null;this.sync(i);for(let o=0;o<s.length;o++)r=this.enterInner(s[o],null,r,!1);return r}insertNode(e,r,n){if(e.isInline&&this.needsBlock&&!this.top.type){let i=this.textblockFromContext();i&&(r=this.enterInner(i,null,r))}let s=this.findPlace(e,r,n);if(s){this.closeExtra();let i=this.top;i.match&&(i.match=i.match.matchType(e.type));let o=$t.none;for(let a of s.concat(e.marks))(i.type?i.type.allowsMarkType(a.type):WC(a.type,e.type))&&(o=a.addToSet(o));return i.content.push(e.mark(o)),!0}return!1}enter(e,r,n,s){let i=this.findPlace(e.create(r),n,!1);return i&&(i=this.enterInner(e,r,n,!0,s)),i}enterInner(e,r,n,s=!1,i){this.closeExtra();let o=this.top;o.match=o.match&&o.match.matchType(e);let a=UC(e,i,o.options);o.options&Rf&&o.content.length==0&&(a|=Rf);let l=$t.none;return n=n.filter(u=>(o.type?o.type.allowsMarkType(u.type):WC(u.type,e))?(l=u.addToSet(l),!1):!0),this.nodes.push(new Qp(e,r,l,s,null,a)),this.open++,n}closeExtra(e=!1){let r=this.nodes.length-1;if(r>this.open){for(;r>this.open;r--)this.nodes[r-1].content.push(this.nodes[r].finish(e));this.nodes.length=this.open+1}}finish(){return this.open=0,this.closeExtra(this.isOpen),this.nodes[0].finish(!!(this.isOpen||this.options.topOpen))}sync(e){for(let r=this.open;r>=0;r--){if(this.nodes[r]==e)return this.open=r,!0;this.localPreserveWS&&(this.nodes[r].options|=_h)}return!1}get currentPos(){this.closeExtra();let e=0;for(let r=this.open;r>=0;r--){let n=this.nodes[r].content;for(let s=n.length-1;s>=0;s--)e+=n[s].nodeSize;r&&e++}return e}findAtPoint(e,r){if(this.find)for(let n=0;n<this.find.length;n++)this.find[n].node==e&&this.find[n].offset==r&&(this.find[n].pos=this.currentPos)}findInside(e){if(this.find)for(let r=0;r<this.find.length;r++)this.find[r].pos==null&&e.nodeType==1&&e.contains(this.find[r].node)&&(this.find[r].pos=this.currentPos)}findAround(e,r,n){if(e!=r&&this.find)for(let s=0;s<this.find.length;s++)this.find[s].pos==null&&e.nodeType==1&&e.contains(this.find[s].node)&&r.compareDocumentPosition(this.find[s].node)&(n?2:4)&&(this.find[s].pos=this.currentPos)}findInText(e){if(this.find)for(let r=0;r<this.find.length;r++)this.find[r].node==e&&(this.find[r].pos=this.currentPos-(e.nodeValue.length-this.find[r].offset))}matchesContext(e){if(e.indexOf("|")>-1)return e.split(/\s*\|\s*/).some(this.matchesContext,this);let r=e.split("/"),n=this.options.context,s=!this.isOpen&&(!n||n.parent.type==this.nodes[0].type),i=-(n?n.depth+1:0)+(s?0:1),o=(a,l)=>{for(;a>=0;a--){let u=r[a];if(u==""){if(a==r.length-1||a==0)continue;for(;l>=i;l--)if(o(a-1,l))return!0;return!1}else{let d=l>0||l==0&&s?this.nodes[l].type:n&&l>=i?n.node(l-i).type:null;if(!d||d.name!=u&&!d.isInGroup(u))return!1;l--}}return!0};return o(r.length-1,this.open)}textblockFromContext(){let e=this.options.context;if(e)for(let r=e.depth;r>=0;r--){let n=e.node(r).contentMatchAt(e.indexAfter(r)).defaultType;if(n&&n.isTextblock&&n.defaultAttrs)return n}for(let r in this.parser.schema.nodes){let n=this.parser.schema.nodes[r];
vendor: 4,333 bytes, line 668
668if(n.isTextblock&&n.defaultAttrs)return n}}}function UK(t){for(let e=t.firstChild,r=null;e;e=e.nextSibling){let n=e.nodeType==1?e.nodeName.toLowerCase():null;n&&oM.hasOwnProperty(n)&&r?(r.appendChild(e),e=r):n=="li"?r=e:n&&(r=null)}}function HK(t,e){return(t.matches||t.msMatchesSelector||t.webkitMatchesSelector||t.mozMatchesSelector).call(t,e)}function VC(t){let e={};for(let r in t)e[r]=t[r];return e}function WC(t,e){let r=e.schema.nodes;for(let n in r){let s=r[n];if(!s.allowsMarkType(t))continue;let i=[],o=a=>{i.push(a);for(let l=0;l<a.edgeCount;l++){let{type:u,next:d}=a.edge(l);if(u==e||i.indexOf(d)<0&&o(d))return!0}};if(o(s.contentMatch))return!0}}class bc{constructor(e,r){this.nodes=e,this.marks=r}serializeFragment(e,r={},n){n||(n=Zp(r).createDocumentFragment());let s=n,i=[];return e.forEach(o=>{if(i.length||o.marks.length){let a=0,l=0;for(;a<i.length&&l<o.marks.length;){let u=o.marks[l];if(!this.marks[u.type.name]){l++;continue}if(!u.eq(i[a][0])||u.type.spec.spanning===!1)break;a++,l++}for(;a<i.length;)s=i.pop()[1];for(;l<o.marks.length;){let u=o.marks[l++],d=this.serializeMark(u,o.isInline,r);d&&(i.push([u,s]),s.appendChild(d.dom),s=d.contentDOM||d.dom)}}s.appendChild(this.serializeNodeInner(o,r))}),n}serializeNodeInner(e,r){if(e.isText)return Zp(r).createTextNode(e.text);let{dom:n,contentDOM:s}=zm(Zp(r),this.nodes[e.type.name](e),null,e.attrs);if(s){if(e.isLeaf)throw new RangeError("Content hole not allowed in a leaf node spec");this.serializeFragment(e.content,r,s)}return n}serializeNode(e,r={}){let n=this.serializeNodeInner(e,r);for(let s=e.marks.length-1;s>=0;s--){let i=this.serializeMark(e.marks[s],e.isInline,r);i&&((i.contentDOM||i.dom).appendChild(n),n=i.dom)}return n}serializeMark(e,r,n={}){let s=this.marks[e.type.name];return s&&zm(Zp(n),s(e,r),null,e.attrs)}static renderSpec(e,r,n=null,s){return typeof r=="string"?{dom:e.createTextNode(r)}:zm(e,r,n,s)}static fromSchema(e){return e.cached.domSerializer||(e.cached.domSerializer=new bc(this.nodesFromSchema(e),this.marksFromSchema(e)))}static nodesFromSchema(e){let r=qC(e.nodes);return r.text||(r.text=n=>n.text),r}static marksFromSchema(e){return qC(e.marks)}}function qC(t){let e={};for(let r in t){let n=t[r].spec.toDOM;n&&(e[r]=n)}return e}function Zp(t){return t.document||window.document}const GC=new WeakMap;function VK(t){let e=GC.get(t);return e===void 0&&GC.set(t,e=WK(t)),e}function WK(t){let e=null;function r(n){if(n&&typeof n=="object")if(Array.isArray(n))if(typeof n[0]=="string")e||(e=[]),e.push(n);else for(let s=0;s<n.length;s++)r(n[s]);else for(let s in n)r(n[s])}return r(t),e}function zm(t,e,r,n){if(e.nodeType==1)return{dom:e};if(e.dom&&e.dom.nodeType==1)return e;let s=e[0],i;if(typeof s!="string")throw new RangeError("Invalid array passed to renderSpec");if(n&&(i=VK(n))&&i.indexOf(e)>-1)throw new RangeError("Using an array from an attribute object as a DOM spec. This may be an attempted cross site scripting attack.");let o=s.indexOf(" ");o>0&&(r=s.slice(0,o),s=s.slice(o+1));let a,l=r?t.createElementNS(r,s):t.createElement(s),u=e[1],d=1;if(u&&typeof u=="object"&&u.nodeType==null&&!Array.isArray(u)){d=2;for(let f in u)if(u[f]!=null){let h=f.indexOf(" ");h>0?l.setAttributeNS(f.slice(0,h),f.slice(h+1),u[f]):f=="style"&&l.style?l.style.cssText=u[f]:l.setAttribute(f,u[f])}}for(let f=d;f<e.length;f++){let h=e[f];if(h===0){if(f<e.length-1||f>d)throw new RangeError("Content hole must be the only child of its parent node");return{dom:l,contentDOM:l}}else if(typeof h=="string")l.appendChild(t.createTextNode(h));else{let{dom:p,contentDOM:g}=zm(t,h,r,n);if(l.appendChild(p),g){if(a)throw new RangeError("Multiple content holes");a=g}}}return{dom:l,contentDOM:a}}const aM=65535,lM=Math.pow(2,16);function qK(t,e){return t+e*lM}function KC(t){return t&aM}function GK(t){return(t-(t&aM))/lM}const cM=1,uM=2,Um=4,dM=8;class Xw{constructor(e,r,n){this.pos=e,this.delInfo=r,this.recover=n}get deleted(){return(this.delInfo&dM)>0}get deletedBefore(){return(this.delInfo&(cM|Um))>0}get deletedAfter(){return(this.delInfo&(uM|Um))>0}get deletedAcross(){return(this.delInfo&Um)>0}}class ws{constructor(e,r=!1){if(this.ranges=e,this.inverted=r,!e.length&&ws.empty)return ws.empty}recover(e){let r=0,n=KC(e);if(!this.inverted)for(let s=0;s<n;s++)r+=this.ranges[s*3+2]-this.ranges[s*3+1];return this.ranges[n*3]+r+GK(e)}
vendor: 4,526 bytes, line 668
668mapResult(e,r=1){return this._map(e,r,!1)}map(e,r=1){return this._map(e,r,!0)}_map(e,r,n){let s=0,i=this.inverted?2:1,o=this.inverted?1:2;for(let a=0;a<this.ranges.length;a+=3){let l=this.ranges[a]-(this.inverted?s:0);if(l>e)break;let u=this.ranges[a+i],d=this.ranges[a+o],f=l+u;if(e<=f){let h=u?e==l?-1:e==f?1:r:r,p=l+s+(h<0?0:d);if(n)return p;let g=e==(r<0?l:f)?null:qK(a/3,e-l),m=e==l?uM:e==f?cM:Um;return(r<0?e!=l:e!=f)&&(m|=dM),new Xw(p,m,g)}s+=d-u}return n?e+s:new Xw(e+s,0,null)}touches(e,r){let n=0,s=KC(r),i=this.inverted?2:1,o=this.inverted?1:2;for(let a=0;a<this.ranges.length;a+=3){let l=this.ranges[a]-(this.inverted?n:0);if(l>e)break;let u=this.ranges[a+i],d=l+u;if(e<=d&&a==s*3)return!0;n+=this.ranges[a+o]-u}return!1}forEach(e){let r=this.inverted?2:1,n=this.inverted?1:2;for(let s=0,i=0;s<this.ranges.length;s+=3){let o=this.ranges[s],a=o-(this.inverted?i:0),l=o+(this.inverted?0:i),u=this.ranges[s+r],d=this.ranges[s+n];e(a,a+u,l,l+d),i+=d-u}}invert(){return new ws(this.ranges,!this.inverted)}toString(){return(this.inverted?"-":"")+JSON.stringify(this.ranges)}static offset(e){return e==0?ws.empty:new ws(e<0?[0,-e,0]:[0,0,e])}}ws.empty=new ws([]);class Eh{constructor(e,r,n=0,s=e?e.length:0){this.mirror=r,this.from=n,this.to=s,this._maps=e||[],this.ownData=!(e||r)}get maps(){return this._maps}slice(e=0,r=this.maps.length){return new Eh(this._maps,this.mirror,e,r)}appendMap(e,r){this.ownData||(this._maps=this._maps.slice(),this.mirror=this.mirror&&this.mirror.slice(),this.ownData=!0),this.to=this._maps.push(e),r!=null&&this.setMirror(this._maps.length-1,r)}appendMapping(e){for(let r=0,n=this._maps.length;r<e._maps.length;r++){let s=e.getMirror(r);this.appendMap(e._maps[r],s!=null&&s<r?n+s:void 0)}}getMirror(e){if(this.mirror){for(let r=0;r<this.mirror.length;r++)if(this.mirror[r]==e)return this.mirror[r+(r%2?-1:1)]}}setMirror(e,r){this.mirror||(this.mirror=[]),this.mirror.push(e,r)}appendMappingInverted(e){for(let r=e.maps.length-1,n=this._maps.length+e._maps.length;r>=0;r--){let s=e.getMirror(r);this.appendMap(e._maps[r].invert(),s!=null&&s>r?n-s-1:void 0)}}invert(){let e=new Eh;return e.appendMappingInverted(this),e}map(e,r=1){if(this.mirror)return this._map(e,r,!0);for(let n=this.from;n<this.to;n++)e=this._maps[n].map(e,r);return e}mapResult(e,r=1){return this._map(e,r,!1)}_map(e,r,n){let s=0;for(let i=this.from;i<this.to;i++){let o=this._maps[i],a=o.mapResult(e,r);if(a.recover!=null){let l=this.getMirror(i);if(l!=null&&l>i&&l<this.to){i=l,e=this._maps[l].recover(a.recover);continue}}s|=a.delInfo,e=a.pos}return n?e:new Xw(e,s,null)}}const w1=Object.create(null);class An{getMap(){return ws.empty}merge(e){return null}static fromJSON(e,r){if(!r||!r.stepType)throw new RangeError("Invalid input for Step.fromJSON");let n=w1[r.stepType];if(!n)throw new RangeError(`No step type ${r.stepType} defined`);return n.fromJSON(e,r)}static jsonID(e,r){if(e in w1)throw new RangeError("Duplicate use of step JSON ID "+e);return w1[e]=r,r.prototype.jsonID=e,r}}class Cr{constructor(e,r){this.doc=e,this.failed=r}static ok(e){return new Cr(e,null)}static fail(e){return new Cr(null,e)}static fromReplace(e,r,n,s){try{return Cr.ok(e.replace(r,n,s))}catch(i){if(i instanceof L0)return Cr.fail(i.message);throw i}}}function TS(t,e,r){let n=[];for(let s=0;s<t.childCount;s++){let i=t.child(s);i.content.size&&(i=i.copy(TS(i.content,e,i))),i.isInline&&(i=e(i,r,s)),n.push(i)}return xe.fromArray(n)}class Aa extends An{constructor(e,r,n){super(),this.from=e,this.to=r,this.mark=n}apply(e){let r=e.slice(this.from,this.to),n=e.resolve(this.from),s=n.node(n.sharedDepth(this.to)),i=new Le(TS(r.content,(o,a)=>!o.isAtom||!a.type.allowsMarkType(this.mark.type)?o:o.mark(this.mark.addToSet(o.marks)),s),r.openStart,r.openEnd);return Cr.fromReplace(e,this.from,this.to,i)}invert(){return new ki(this.from,this.to,this.mark)}map(e){let r=e.mapResult(this.from,1),n=e.mapResult(this.to,-1);return r.deleted&&n.deleted||r.pos>=n.pos?null:new Aa(r.pos,n.pos,this.mark)}merge(e){return e instanceof Aa&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new Aa(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark):null}toJSON(){return{stepType:"addMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(e,r){if(typeof r.from!="number"||typeof r.to!="number")throw new RangeError("Invalid input for AddMarkStep.fromJSON");return new Aa(r.from,r.to,e.markFromJSON(r.mark))}}An.jsonID("addMark",Aa);class ki extends An{constructor(e,r,n){super(),this.from=e,this.to=r,this.mark=n}
vendor: 6,541 bytes, line 668
668apply(e){let r=e.slice(this.from,this.to),n=new Le(TS(r.content,s=>s.mark(this.mark.removeFromSet(s.marks)),e),r.openStart,r.openEnd);return Cr.fromReplace(e,this.from,this.to,n)}invert(){return new Aa(this.from,this.to,this.mark)}map(e){let r=e.mapResult(this.from,1),n=e.mapResult(this.to,-1);return r.deleted&&n.deleted||r.pos>=n.pos?null:new ki(r.pos,n.pos,this.mark)}merge(e){return e instanceof ki&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new ki(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark):null}toJSON(){return{stepType:"removeMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(e,r){if(typeof r.from!="number"||typeof r.to!="number")throw new RangeError("Invalid input for RemoveMarkStep.fromJSON");return new ki(r.from,r.to,e.markFromJSON(r.mark))}}An.jsonID("removeMark",ki);class ja extends An{constructor(e,r){super(),this.pos=e,this.mark=r}apply(e){let r=e.nodeAt(this.pos);if(!r)return Cr.fail("No node at mark step's position");let n=r.type.create(r.attrs,null,this.mark.addToSet(r.marks));return Cr.fromReplace(e,this.pos,this.pos+1,new Le(xe.from(n),0,r.isLeaf?0:1))}invert(e){let r=e.nodeAt(this.pos);if(r){let n=this.mark.addToSet(r.marks);if(n.length==r.marks.length){for(let s=0;s<r.marks.length;s++)if(!r.marks[s].isInSet(n))return new ja(this.pos,r.marks[s]);return new ja(this.pos,this.mark)}}return new ic(this.pos,this.mark)}map(e){let r=e.mapResult(this.pos,1);return r.deletedAfter?null:new ja(r.pos,this.mark)}toJSON(){return{stepType:"addNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(e,r){if(typeof r.pos!="number")throw new RangeError("Invalid input for AddNodeMarkStep.fromJSON");return new ja(r.pos,e.markFromJSON(r.mark))}}An.jsonID("addNodeMark",ja);class ic extends An{constructor(e,r){super(),this.pos=e,this.mark=r}apply(e){let r=e.nodeAt(this.pos);if(!r)return Cr.fail("No node at mark step's position");let n=r.type.create(r.attrs,null,this.mark.removeFromSet(r.marks));return Cr.fromReplace(e,this.pos,this.pos+1,new Le(xe.from(n),0,r.isLeaf?0:1))}invert(e){let r=e.nodeAt(this.pos);return!r||!this.mark.isInSet(r.marks)?this:new ja(this.pos,this.mark)}map(e){let r=e.mapResult(this.pos,1);return r.deletedAfter?null:new ic(r.pos,this.mark)}toJSON(){return{stepType:"removeNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(e,r){if(typeof r.pos!="number")throw new RangeError("Invalid input for RemoveNodeMarkStep.fromJSON");return new ic(r.pos,e.markFromJSON(r.mark))}}An.jsonID("removeNodeMark",ic);class Er extends An{constructor(e,r,n,s=!1){super(),this.from=e,this.to=r,this.slice=n,this.structure=s}apply(e){return this.structure&&Yw(e,this.from,this.to)?Cr.fail("Structure replace would overwrite content"):Cr.fromReplace(e,this.from,this.to,this.slice)}getMap(){return new ws([this.from,this.to-this.from,this.slice.size])}invert(e){return new Er(this.from,this.from+this.slice.size,e.slice(this.from,this.to))}map(e){let r=e.mapResult(this.to,-1),n=this.from==this.to&&Er.MAP_BIAS<0?r:e.mapResult(this.from,1);return n.deletedAcross&&r.deletedAcross?null:new Er(n.pos,Math.max(n.pos,r.pos),this.slice,this.structure)}merge(e){if(!(e instanceof Er)||e.structure||this.structure)return null;if(this.from+this.slice.size==e.from&&!this.slice.openEnd&&!e.slice.openStart){let r=this.slice.size+e.slice.size==0?Le.empty:new Le(this.slice.content.append(e.slice.content),this.slice.openStart,e.slice.openEnd);return new Er(this.from,this.to+(e.to-e.from),r,this.structure)}else if(e.to==this.from&&!this.slice.openStart&&!e.slice.openEnd){let r=this.slice.size+e.slice.size==0?Le.empty:new Le(e.slice.content.append(this.slice.content),e.slice.openStart,this.slice.openEnd);return new Er(e.from,this.to,r,this.structure)}else return null}toJSON(){let e={stepType:"replace",from:this.from,to:this.to};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}static fromJSON(e,r){if(typeof r.from!="number"||typeof r.to!="number")throw new RangeError("Invalid input for ReplaceStep.fromJSON");return new Er(r.from,r.to,Le.fromJSON(e,r.slice),!!r.structure)}}Er.MAP_BIAS=1;An.jsonID("replace",Er);class Yr extends An{constructor(e,r,n,s,i,o,a=!1){super(),this.from=e,this.to=r,this.gapFrom=n,this.gapTo=s,this.slice=i,this.insert=o,this.structure=a}apply(e){if(this.structure&&(Yw(e,this.from,this.gapFrom)||Yw(e,this.gapTo,this.to)))return Cr.fail("Structure gap-replace would overwrite content");let r=e.slice(this.gapFrom,this.gapTo);if(r.openStart||r.openEnd)return Cr.fail("Gap is not a flat range");let n=this.slice.insertAt(this.insert,r.content);return n?Cr.fromReplace(e,this.from,this.to,n):Cr.fail("Content does not fit in gap")}getMap(){return new ws([this.from,this.gapFrom-this.from,this.insert,this.gapTo,this.to-this.gapTo,this.slice.size-this.insert])}invert(e){let r=this.gapTo-this.gapFrom;return new Yr(this.from,this.from+this.slice.size+r,this.from+this.insert,this.from+this.insert+r,e.slice(this.from,this.to).removeBetween(this.gapFrom-this.from,this.gapTo-this.from),this.gapFrom-this.from,this.structure)}map(e){let r=e.mapResult(this.from,1),n=e.mapResult(this.to,-1),s=this.from==this.gapFrom?r.pos:e.map(this.gapFrom,-1),i=this.to==this.gapTo?n.pos:e.map(this.gapTo,1);return r.deletedAcross&&n.deletedAcross||s<r.pos||i>n.pos?null:new Yr(r.pos,n.pos,s,i,this.slice,this.insert,this.structure)}toJSON(){let e={stepType:"replaceAround",from:this.from,to:this.to,gapFrom:this.gapFrom,gapTo:this.gapTo,insert:this.insert};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}static fromJSON(e,r){if(typeof r.from!="number"||typeof r.to!="number"||typeof r.gapFrom!="number"||typeof r.gapTo!="number"||typeof r.insert!="number")throw new RangeError("Invalid input for ReplaceAroundStep.fromJSON");return new Yr(r.from,r.to,r.gapFrom,r.gapTo,Le.fromJSON(e,r.slice),r.insert,!!r.structure)}}An.jsonID("replaceAround",Yr);function Yw(t,e,r){let n=t.resolve(e),s=r-e,i=n.depth;for(;s>0&&i>0&&n.indexAfter(i)==n.node(i).childCount;)i--,s--;if(s>0){let o=n.node(i).maybeChild(n.indexAfter(i));for(;s>0;){if(!o||o.isLeaf)return!0;o=o.firstChild,s--}}return!1}function KK(t,e,r,n){let s=[],i=[],o,a;t.doc.nodesBetween(e,r,(l,u,d)=>{if(!l.isInline)return;let f=l.marks;if(!n.isInSet(f)&&d.type.allowsMarkType(n.type)){let h=Math.max(u,e),p=Math.min(u+l.nodeSize,r),g=n.addToSet(f);for(let m=0;m<f.length;m++)f[m].isInSet(g)||(o&&o.to==h&&o.mark.eq(f[m])?o.to=p:s.push(o=new ki(h,p,f[m])));a&&a.to==h?a.to=p:i.push(a=new Aa(h,p,n))}}
vendor: 7,661 bytes, lines 668-669
668),s.forEach(l=>t.step(l)),i.forEach(l=>t.step(l))}function XK(t,e,r,n){let s=[],i=0;t.doc.nodesBetween(e,r,(o,a)=>{if(!o.isInline)return;i++;let l=null;if(n instanceof zx){let u=o.marks,d;for(;d=n.isInSet(u);)(l||(l=[])).push(d),u=d.removeFromSet(u)}else n?n.isInSet(o.marks)&&(l=[n]):l=o.marks;if(l&&l.length){let u=Math.min(a+o.nodeSize,r);for(let d=0;d<l.length;d++){let f=l[d],h;for(let p=0;p<s.length;p++){let g=s[p];g.step==i-1&&f.eq(s[p].style)&&(h=g)}h?(h.to=u,h.step=i):s.push({style:f,from:Math.max(a,e),to:u,step:i})}}}),s.forEach(o=>t.step(new ki(o.from,o.to,o.style)))}function CS(t,e,r,n=r.contentMatch,s=!0){let i=t.doc.nodeAt(e),o=[],a=e+1;for(let l=0;l<i.childCount;l++){let u=i.child(l),d=a+u.nodeSize,f=n.matchType(u.type);if(!f)o.push(new Er(a,d,Le.empty));else{n=f;for(let h=0;h<u.marks.length;h++)r.allowsMarkType(u.marks[h].type)||t.step(new ki(a,d,u.marks[h]));if(s&&u.isText&&r.whitespace!="pre"){let h,p=/\r?\n|\r/g,g;for(;h=p.exec(u.text);)g||(g=new Le(xe.from(r.schema.text(" ",r.allowedMarks(u.marks))),0,0)),o.push(new Er(a+h.index,a+h.index+h[0].length,g))}}a=d}if(!n.validEnd){let l=n.fillBefore(xe.empty,!0);t.replace(a,a,new Le(l,0,0))}for(let l=o.length-1;l>=0;l--)t.step(o[l])}function YK(t,e,r){return(e==0||t.canReplace(e,t.childCount))&&(r==t.childCount||t.canReplace(0,r))}function Nd(t){let r=t.parent.content.cutByIndex(t.startIndex,t.endIndex);for(let n=t.depth,s=0,i=0;;--n){let o=t.$from.node(n),a=t.$from.index(n)+s,l=t.$to.indexAfter(n)-i;if(n<t.depth&&o.canReplace(a,l,r))return n;if(n==0||o.type.spec.isolating||!YK(o,a,l))break;a&&(s=1),l<o.childCount&&(i=1)}return null}function JK(t,e,r){let{$from:n,$to:s,depth:i}=e,o=n.before(i+1),a=s.after(i+1),l=o,u=a,d=xe.empty,f=0;for(let g=i,m=!1;g>r;g--)m||n.index(g)>0?(m=!0,d=xe.from(n.node(g).copy(d)),f++):l--;let h=xe.empty,p=0;for(let g=i,m=!1;g>r;g--)m||s.after(g+1)<s.end(g)?(m=!0,h=xe.from(s.node(g).copy(h)),p++):u++;t.step(new Yr(l,u,o,a,new Le(d.append(h),f,p),d.size-f,!0))}function kS(t,e,r=null,n=t){let s=QK(t,e),i=s&&ZK(n,e);return i?s.map(XC).concat({type:e,attrs:r}).concat(i.map(XC)):null}function XC(t){return{type:t,attrs:null}}function QK(t,e){let{parent:r,startIndex:n,endIndex:s}=t,i=r.contentMatchAt(n).findWrapping(e);if(!i)return null;let o=i.length?i[0]:e;return r.canReplaceWith(n,s,o)?i:null}function ZK(t,e){let{parent:r,startIndex:n,endIndex:s}=t,i=r.child(n),o=e.contentMatch.findWrapping(i.type);if(!o)return null;let l=(o.length?o[o.length-1]:e).contentMatch;for(let u=n;l&&u<s;u++)l=l.matchType(r.child(u).type);return!l||!l.validEnd?null:o}function eX(t,e,r){let n=xe.empty;for(let o=r.length-1;o>=0;o--){if(n.size){let a=r[o].type.contentMatch.matchFragment(n);if(!a||!a.validEnd)throw new RangeError("Wrapper type given to Transform.wrap does not form valid content of its parent wrapper")}n=xe.from(r[o].type.create(r[o].attrs,n))}let s=e.start,i=e.end;t.step(new Yr(s,i,s,i,new Le(n,0,0),r.length,!0))}function tX(t,e,r,n,s){if(!n.isTextblock)throw new RangeError("Type given to setBlockType should be a textblock");let i=t.steps.length;t.doc.nodesBetween(e,r,(o,a)=>{let l=typeof s=="function"?s(o):s;if(o.isTextblock&&!o.hasMarkup(n,l)&&rX(t.doc,t.mapping.slice(i).map(a),n)){let u=null;if(n.schema.linebreakReplacement){let p=n.whitespace=="pre",g=!!n.contentMatch.matchType(n.schema.linebreakReplacement);p&&!g?u=!1:!p&&g&&(u=!0)}u===!1&&hM(t,o,a,i),CS(t,t.mapping.slice(i).map(a,1),n,void 0,u===null);let d=t.mapping.slice(i),f=d.map(a,1),h=d.map(a+o.nodeSize,1);return t.step(new Yr(f,h,f+1,h-1,new Le(xe.from(n.create(l,null,o.marks)),0,0),1,!0)),u===!0&&fM(t,o,a,i),!1}})}function fM(t,e,r,n){e.forEach((s,i)=>{if(s.isText){let o,a=/\r?\n|\r/g;for(;o=a.exec(s.text);){let l=t.mapping.slice(n).map(r+1+i+o.index);t.replaceWith(l,l+1,e.type.schema.linebreakReplacement.create())}}})}function hM(t,e,r,n){e.forEach((s,i)=>{if(s.type==s.type.schema.linebreakReplacement){let o=t.mapping.slice(n).map(r+1+i);t.replaceWith(o,o+1,e.type.schema.text(`
669`))}})}function rX(t,e,r){let n=t.resolve(e),s=n.index();return n.parent.canReplaceWith(s,s+1,r)}function nX(t,e,r,n,s){let i=t.doc.nodeAt(e);if(!i)throw new RangeError("No node at given position");r||(r=i.type);let o=r.create(n,null,s||i.marks);if(i.isLeaf)return t.replaceWith(e,e+i.nodeSize,o);if(!r.validContent(i.content))throw new RangeError("Invalid content for node type "+r.name);t.step(new Yr(e,e+i.nodeSize,e+1,e+i.nodeSize-1,new Le(xe.from(o),0,0),1,!0))}function Nu(t,e,r=1,n){let s=t.resolve(e),i=s.depth-r,o=n&&n[n.length-1]||s.parent;if(i<0||s.parent.type.spec.isolating||!s.parent.canReplace(s.index(),s.parent.childCount)||!o.type.validContent(s.parent.content.cutByIndex(s.index(),s.parent.childCount)))return!1;for(let u=s.depth-1,d=r-2;u>i;u--,d--){let f=s.node(u),h=s.index(u);if(f.type.spec.isolating)return!1;let p=f.content.cutByIndex(h,f.childCount),g=n&&n[d+1];g&&(p=p.replaceChild(0,g.type.create(g.attrs)));let m=n&&n[d]||f;if(!f.canReplace(h+1,f.childCount)||!m.type.validContent(p))return!1}let a=s.indexAfter(i),l=n&&n[0];return s.node(i).canReplaceWith(a,a,l?l.type:s.node(i+1).type)}function sX(t,e,r=1,n){let s=t.doc.resolve(e),i=xe.empty,o=xe.empty;for(let a=s.depth,l=s.depth-r,u=r-1;a>l;a--,u--){i=xe.from(s.node(a).copy(i));let d=n&&n[u];o=xe.from(d?d.type.create(d.attrs,o):s.node(a).copy(o))}t.step(new Er(e,e,new Le(i.append(o),r,r),!0))}function dl(t,e){let r=t.resolve(e),n=r.index();return pM(r.nodeBefore,r.nodeAfter)&&r.parent.canReplace(n,n+1)}function iX(t,e){e.content.size||t.type.compatibleContent(e.type);let r=t.contentMatchAt(t.childCount),{linebreakReplacement:n}=t.type.schema;for(let s=0;s<e.childCount;s++){let i=e.child(s),o=i.type==n?t.type.schema.nodes.text:i.type;if(r=r.matchType(o),!r||!t.type.allowsMarks(i.marks))return!1}return r.validEnd}function pM(t,e){return!!(t&&e&&!t.isLeaf&&iX(t,e))}function Ux(t,e,r=-1){let n=t.resolve(e);for(let s=n.depth;;s--){let i,o,a=n.index(s);if(s==n.depth?(i=n.nodeBefore,o=n.nodeAfter):r>0?(i=n.node(s+1),a++,o=n.node(s).maybeChild(a)):(i=n.node(s).maybeChild(a-1),o=n.node(s+1)),i&&!i.isTextblock&&pM(i,o)&&n.node(s).canReplace(a,a+1))return e;if(s==0)break;e=r<0?n.before(s):n.after(s)}}function oX(t,e,r){let n=null,{linebreakReplacement:s}=t.doc.type.schema,i=t.doc.resolve(e-r),o=i.node().type;if(s&&o.inlineContent){let d=o.whitespace=="pre",f=!!o.contentMatch.matchType(s);d&&!f?n=!1:!d&&f&&(n=!0)}let a=t.steps.length;if(n===!1){let d=t.doc.resolve(e+r);hM(t,d.node(),d.before(),a)}o.inlineContent&&CS(t,e+r-1,o,i.node().contentMatchAt(i.index()),n==null);let l=t.mapping.slice(a),u=l.map(e-r);if(t.step(new Er(u,l.map(e+r,-1),Le.empty,!0)),n===!0){let d=t.doc.resolve(u);fM(t,d.node(),d.before(),t.steps.length)}return t}function aX(t,e,r){let n=t.resolve(e);if(n.parent.canReplaceWith(n.index(),n.index(),r))return e;if(n.parentOffset==0)for(let s=n.depth-1;s>=0;s--){let i=n.index(s);if(n.node(s).canReplaceWith(i,i,r))return n.before(s+1);if(i>0)return null}if(n.parentOffset==n.parent.content.size)for(let s=n.depth-1;s>=0;s--){let i=n.indexAfter(s);if(n.node(s).canReplaceWith(i,i,r))return n.after(s+1);if(i<n.node(s).childCount)return null}return null}function mM(t,e,r){let n=t.resolve(e);if(!r.content.size)return e;let s=r.content;for(let i=0;i<r.openStart;i++)s=s.firstChild.content;for(let i=1;i<=(r.openStart==0&&r.size?2:1);i++)for(let o=n.depth;o>=0;o--){let a=o==n.depth?0:n.pos<=(n.start(o+1)+n.end(o+1))/2?-1:1,l=n.index(o)+(a>0?1:0),u=n.node(o),d=!1;if(i==1)d=u.canReplace(l,l,s);else{let f=u.contentMatchAt(l).findWrapping(s.firstChild.type);d=f&&u.canReplaceWith(l,l,f[0])}if(d)return a==0?n.pos:a<0?n.before(o+1):n.after(o+1)}return null}
vendor: 6,689 bytes, line 669
669function Hx(t,e,r=e,n=Le.empty){if(e==r&&!n.size)return null;let s=t.resolve(e),i=t.resolve(r);return gM(s,i,n)?new Er(e,r,n):new lX(s,i,n).fit()}function gM(t,e,r){return!r.openStart&&!r.openEnd&&t.start()==e.start()&&t.parent.canReplace(t.index(),e.index(),r.content)}class lX{constructor(e,r,n){this.$from=e,this.$to=r,this.unplaced=n,this.frontier=[],this.placed=xe.empty;for(let s=0;s<=e.depth;s++){let i=e.node(s);this.frontier.push({type:i.type,match:i.contentMatchAt(e.indexAfter(s))})}for(let s=e.depth;s>0;s--)this.placed=xe.from(e.node(s).copy(this.placed))}get depth(){return this.frontier.length-1}fit(){for(;this.unplaced.size;){let u=this.findFittable();u?this.placeNodes(u):this.openMore()||this.dropNode()}let e=this.mustMoveInline(),r=this.placed.size-this.depth-this.$from.depth,n=this.$from,s=this.close(e<0?this.$to:n.doc.resolve(e));if(!s)return null;let i=this.placed,o=n.depth,a=s.depth;for(;o&&a&&i.childCount==1;)i=i.firstChild.content,o--,a--;let l=new Le(i,o,a);return e>-1?new Yr(n.pos,e,this.$to.pos,this.$to.end(),l,r):l.size||n.pos!=this.$to.pos?new Er(n.pos,s.pos,l):null}findFittable(){let e=this.unplaced.openStart;for(let r=this.unplaced.content,n=0,s=this.unplaced.openEnd;n<e;n++){let i=r.firstChild;if(r.childCount>1&&(s=0),i.type.spec.isolating&&s<=n){e=n;break}r=i.content}for(let r=1;r<=2;r++)for(let n=r==1?e:this.unplaced.openStart;n>=0;n--){let s,i=null;n?(i=b1(this.unplaced.content,n-1).firstChild,s=i.content):s=this.unplaced.content;let o=s.firstChild;for(let a=this.depth;a>=0;a--){let{type:l,match:u}=this.frontier[a],d,f=null;if(r==1&&(o?u.matchType(o.type)||(f=u.fillBefore(xe.from(o),!1)):i&&l.compatibleContent(i.type)))return{sliceDepth:n,frontierDepth:a,parent:i,inject:f};if(r==2&&o&&(d=u.findWrapping(o.type)))return{sliceDepth:n,frontierDepth:a,parent:i,wrap:d};if(i&&u.matchType(i.type))break}}}openMore(){let{content:e,openStart:r,openEnd:n}=this.unplaced,s=b1(e,r);return!s.childCount||s.firstChild.isLeaf?!1:(this.unplaced=new Le(e,r+1,Math.max(n,s.size+r>=e.size-n?r+1:0)),!0)}dropNode(){let{content:e,openStart:r,openEnd:n}=this.unplaced,s=b1(e,r);if(s.childCount<=1&&r>0){let i=e.size-r<=r+s.size;this.unplaced=new Le(lf(e,r-1,1),r-1,i?r-1:n)}else this.unplaced=new Le(lf(e,r,1),r,n)}placeNodes({sliceDepth:e,frontierDepth:r,parent:n,inject:s,wrap:i}){for(;this.depth>r;)this.closeFrontierNode();if(i)for(let m=0;m<i.length;m++)this.openFrontierNode(i[m]);let o=this.unplaced,a=n?n.content:o.content,l=o.openStart-e,u=0,d=[],{match:f,type:h}=this.frontier[r];if(s){for(let m=0;m<s.childCount;m++)d.push(s.child(m));f=f.matchFragment(s)}let p=a.size+e-(o.content.size-o.openEnd);for(;u<a.childCount;){let m=a.child(u),x=f.matchType(m.type);if(!x)break;u++,(u>1||l==0||m.content.size)&&(f=x,d.push(xM(m.mark(h.allowedMarks(m.marks)),u==1?l:0,u==a.childCount?p:-1)))}let g=u==a.childCount;g||(p=-1),this.placed=cf(this.placed,r,xe.from(d)),this.frontier[r].match=f,g&&p<0&&n&&n.type==this.frontier[this.depth].type&&this.frontier.length>1&&this.closeFrontierNode();for(let m=0,x=a;m<p;m++){let v=x.lastChild;this.frontier.push({type:v.type,match:v.contentMatchAt(v.childCount)}),x=v.content}this.unplaced=g?e==0?Le.empty:new Le(lf(o.content,e-1,1),e-1,p<0?o.openEnd:e-1):new Le(lf(o.content,e,u),o.openStart,o.openEnd)}mustMoveInline(){if(!this.$to.parent.isTextblock)return-1;let e=this.frontier[this.depth],r;if(!e.type.isTextblock||!S1(this.$to,this.$to.depth,e.type,e.match,!1)||this.$to.depth==this.depth&&(r=this.findCloseLevel(this.$to))&&r.depth==this.depth)return-1;let{depth:n}=this.$to,s=this.$to.after(n);for(;n>1&&s==this.$to.end(--n);)++s;return s}findCloseLevel(e){e:for(let r=Math.min(this.depth,e.depth);r>=0;r--){let{match:n,type:s}=this.frontier[r],i=r<e.depth&&e.end(r+1)==e.pos+(e.depth-(r+1)),o=S1(e,r,s,n,i);if(o){for(let a=r-1;a>=0;a--){let{match:l,type:u}=this.frontier[a],d=S1(e,a,u,l,!0);if(!d||d.childCount)continue e}return{depth:r,fit:o,move:i?e.doc.resolve(e.after(r+1)):e}}}}close(e){let r=this.findCloseLevel(e);if(!r)return null;for(;this.depth>r.depth;)this.closeFrontierNode();r.fit.childCount&&(this.placed=cf(this.placed,r.depth,r.fit)),e=r.move;for(let n=r.depth+1;n<=e.depth;n++){let s=e.node(n),i=s.type.contentMatch.fillBefore(s.content,!0,e.index(n));this.openFrontierNode(s.type,s.attrs,i)}return e}openFrontierNode(e,r=null,n){let s=this.frontier[this.depth];s.match=s.match.matchType(e),this.placed=cf(this.placed,this.depth,xe.from(e.create(r,n))),this.frontier.push({type:e,match:e.contentMatch})}closeFrontierNode(){let r=this.frontier.pop().match.fillBefore(xe.empty,!0);r.childCount&&(this.placed=cf(this.placed,this.frontier.length,r))}}function lf(t,e,r){return e==0?t.cutByIndex(r,t.childCount):t.replaceChild(0,t.firstChild.copy(lf(t.firstChild.content,e-1,r)))}function cf(t,e,r){return e==0?t.append(r):t.replaceChild(t.childCount-1,t.lastChild.copy(cf(t.lastChild.content,e-1,r)))}function b1(t,e){for(let r=0;r<e;r++)t=t.firstChild.content;return t}function xM(t,e,r){if(e<=0)return t;let n=t.content;return e>1&&(n=n.replaceChild(0,xM(n.firstChild,e-1,n.childCount==1?r-1:0))),e>0&&(n=t.type.contentMatch.fillBefore(n).append(n),r<=0&&(n=n.append(t.type.contentMatch.matchFragment(n).fillBefore(xe.empty,!0)))),t.copy(n)}function S1(t,e,r,n,s){let i=t.node(e),o=s?t.indexAfter(e):t.index(e);if(o==i.childCount&&!r.compatibleContent(i.type))return null;let a=n.fillBefore(i.content,!0,o);return a&&!cX(r,i.content,o)?a:null}function cX(t,e,r){for(let n=r;n<e.childCount;n++)if(!t.allowsMarks(e.child(n).marks))return!0;return!1}function uX(t){return t.spec.defining||t.spec.definingForContent}function dX(t,e,r,n){if(!n.size)return t.deleteRange(e,r);let s=t.doc.resolve(e),i=t.doc.resolve(r);if(gM(s,i,n))return t.step(new Er(e,r,n));let o=yM(s,i);o[o.length-1]==0&&o.pop();let a=-(s.depth+1);o.unshift(a);for(let h=s.depth,p=s.pos-1;h>0;h--,p--){let g=s.node(h).type.spec;if(g.defining||g.definingAsContext||g.isolating)break;o.indexOf(h)>-1?a=h:s.before(h)==p&&o.splice(1,0,-h)}let l=o.indexOf(a),u=[],d=n.openStart;for(let h=n.content,p=0;;p++){let g=h.firstChild;if(u.push(g),p==n.openStart)break;h=g.content}for(let h=d-1;h>=0;h--){let p=u[h],g=uX(p.type);if(g&&!p.sameMarkup(s.node(Math.abs(a)-1)))d=h;else if(g||!p.type.isTextblock)break}for(let h=n.openStart;h>=0;h--){let p=(h+d+1)%(n.openStart+1),g=u[p];if(g)for(let m=0;m<o.length;m++){let x=o[(m+l)%o.length],v=!0;x<0&&(v=!1,x=-x);let y=s.node(x-1),b=s.index(x-1);if(y.canReplaceWith(b,b,g.type,g.marks))return t.replace(s.before(x),v?i.after(x):r,new Le(vM(n.content,0,n.openStart,p),p,n.openEnd))}}let f=t.steps.length;for(let h=o.length-1;h>=0&&(t.replace(e,r,n),!(t.steps.length>f));h--){let p=o[h];
vendor: 4,567 bytes, line 669
669p<0||(e=s.before(p),r=i.after(p))}}function vM(t,e,r,n,s){if(e<r){let i=t.firstChild;t=t.replaceChild(0,i.copy(vM(i.content,e+1,r,n,i)))}if(e>n){let i=s.contentMatchAt(0),o=i.fillBefore(t).append(t);t=o.append(i.matchFragment(o).fillBefore(xe.empty,!0))}return t}function fX(t,e,r,n){if(!n.isInline&&e==r&&t.doc.resolve(e).parent.content.size){let s=aX(t.doc,e,n.type);s!=null&&(e=r=s)}t.replaceRange(e,r,new Le(xe.from(n),0,0))}function hX(t,e,r){let n=t.doc.resolve(e),s=t.doc.resolve(r);if(n.parent.isTextblock&&s.parent.isTextblock&&n.start()!=s.start()&&n.parentOffset==0&&s.parentOffset==0){let o=n.sharedDepth(r),a=!1;for(let l=n.depth;l>o;l--)n.node(l).type.spec.isolating&&(a=!0);for(let l=s.depth;l>o;l--)s.node(l).type.spec.isolating&&(a=!0);if(!a){for(let l=n.depth;l>0&&e==n.start(l);l--)e=n.before(l);for(let l=s.depth;l>0&&r==s.start(l);l--)r=s.before(l);n=t.doc.resolve(e),s=t.doc.resolve(r)}}let i=yM(n,s);for(let o=0;o<i.length;o++){let a=i[o],l=o==i.length-1;if(l&&a==0||n.node(a).type.contentMatch.validEnd)return t.delete(n.start(a),s.end(a));if(a>0&&(l||n.node(a-1).canReplace(n.index(a-1),s.indexAfter(a-1))))return t.delete(n.before(a),s.after(a))}for(let o=1;o<=n.depth&&o<=s.depth;o++)if(e-n.start(o)==n.depth-o&&r>n.end(o)&&s.end(o)-r!=s.depth-o&&n.start(o-1)==s.start(o-1)&&n.node(o-1).canReplace(n.index(o-1),s.index(o-1)))return t.delete(n.before(o),r);t.delete(e,r)}function yM(t,e){let r=[],n=Math.min(t.depth,e.depth);for(let s=n;s>=0;s--){let i=t.start(s);if(i<t.pos-(t.depth-s)||e.end(s)>e.pos+(e.depth-s)||t.node(s).type.spec.isolating||e.node(s).type.spec.isolating)break;(i==e.start(s)||s==t.depth&&s==e.depth&&t.parent.inlineContent&&e.parent.inlineContent&&s&&e.start(s-1)==i-1)&&r.push(s)}return r}class Au extends An{constructor(e,r,n){super(),this.pos=e,this.attr=r,this.value=n}apply(e){let r=e.nodeAt(this.pos);if(!r)return Cr.fail("No node at attribute step's position");let n=Object.create(null);for(let i in r.attrs)n[i]=r.attrs[i];n[this.attr]=this.value;let s=r.type.create(n,null,r.marks);return Cr.fromReplace(e,this.pos,this.pos+1,new Le(xe.from(s),0,r.isLeaf?0:1))}getMap(){return ws.empty}invert(e){return new Au(this.pos,this.attr,e.nodeAt(this.pos).attrs[this.attr])}map(e){let r=e.mapResult(this.pos,1);return r.deletedAfter?null:new Au(r.pos,this.attr,this.value)}toJSON(){return{stepType:"attr",pos:this.pos,attr:this.attr,value:this.value}}static fromJSON(e,r){if(typeof r.pos!="number"||typeof r.attr!="string")throw new RangeError("Invalid input for AttrStep.fromJSON");return new Au(r.pos,r.attr,r.value)}}An.jsonID("attr",Au);class Th extends An{constructor(e,r){super(),this.attr=e,this.value=r}apply(e){let r=Object.create(null);for(let s in e.attrs)r[s]=e.attrs[s];r[this.attr]=this.value;let n=e.type.create(r,e.content,e.marks);return Cr.ok(n)}getMap(){return ws.empty}invert(e){return new Th(this.attr,e.attrs[this.attr])}map(e){return this}toJSON(){return{stepType:"docAttr",attr:this.attr,value:this.value}}static fromJSON(e,r){if(typeof r.attr!="string")throw new RangeError("Invalid input for DocAttrStep.fromJSON");return new Th(r.attr,r.value)}}An.jsonID("docAttr",Th);let od=class extends Error{};od=function t(e){let r=Error.call(this,e);return r.__proto__=t.prototype,r};od.prototype=Object.create(Error.prototype);od.prototype.constructor=od;od.prototype.name="TransformError";class wM{constructor(e){this.doc=e,this.steps=[],this.docs=[],this.mapping=new Eh}get before(){return this.docs.length?this.docs[0]:this.doc}step(e){let r=this.maybeStep(e);if(r.failed)throw new od(r.failed);return this}maybeStep(e){let r=e.apply(this.doc);return r.failed||this.addStep(e,r.doc),r}get docChanged(){return this.steps.length>0}changedRange(){let e=1e9,r=-1e9;for(let n=0;n<this.mapping.maps.length;n++){let s=this.mapping.maps[n];n&&(e=s.map(e,1),r=s.map(r,-1)),s.forEach((i,o,a,l)=>{e=Math.min(e,a),r=Math.max(r,l)})}return e==1e9?null:{from:e,to:r}}addStep(e,r){this.docs.push(this.doc),this.steps.push(e),this.mapping.appendMap(e.getMap()),this.doc=r}replace(e,r=e,n=Le.empty){let s=Hx(this.doc,e,r,n);return s&&this.step(s),this}replaceWith(e,r,n){return this.replace(e,r,new Le(xe.from(n),0,0))}delete(e,r){return this.replace(e,r,Le.empty)}insert(e,r){return this.replaceWith(e,e,r)}replaceRange(e,r,n){return dX(this,e,r,n),this}replaceRangeWith(e,r,n){return fX(this,e,r,n),this}deleteRange(e,r){return hX(this,e,r),this}lift(e,r){return JK(this,e,r),this}join(e,r=1){return oX(this,e,r),this}wrap(e,r){return eX(this,e,r),this}setBlockType(e,r=e,n,s=null){return tX(this,e,r,n,s),this}
vendor: 2,979 bytes, line 669
669setNodeMarkup(e,r,n=null,s){return nX(this,e,r,n,s),this}setNodeAttribute(e,r,n){return this.step(new Au(e,r,n)),this}setDocAttribute(e,r){return this.step(new Th(e,r)),this}addNodeMark(e,r){return this.step(new ja(e,r)),this}removeNodeMark(e,r){let n=this.doc.nodeAt(e);if(!n)throw new RangeError("No node at position "+e);if(r instanceof $t)r.isInSet(n.marks)&&this.step(new ic(e,r));else{let s=n.marks,i,o=[];for(;i=r.isInSet(s);)o.push(new ic(e,i)),s=i.removeFromSet(s);for(let a=o.length-1;a>=0;a--)this.step(o[a])}return this}split(e,r=1,n){return sX(this,e,r,n),this}addMark(e,r,n){return KK(this,e,r,n),this}removeMark(e,r,n){return XK(this,e,r,n),this}clearIncompatible(e,r,n){return CS(this,e,r,n),this}}const _1=Object.create(null);class ut{constructor(e,r,n){this.$anchor=e,this.$head=r,this.ranges=n||[new pX(e.min(r),e.max(r))]}get anchor(){return this.$anchor.pos}get head(){return this.$head.pos}get from(){return this.$from.pos}get to(){return this.$to.pos}get $from(){return this.ranges[0].$from}get $to(){return this.ranges[0].$to}get empty(){let e=this.ranges;for(let r=0;r<e.length;r++)if(e[r].$from.pos!=e[r].$to.pos)return!1;return!0}content(){return this.$from.doc.slice(this.from,this.to,!0)}replace(e,r=Le.empty){let n=r.content.lastChild,s=null;for(let a=0;a<r.openEnd;a++)s=n,n=n.lastChild;let i=e.steps.length,o=this.ranges;for(let a=0;a<o.length;a++){let{$from:l,$to:u}=o[a],d=e.mapping.slice(i);e.replaceRange(d.map(l.pos),d.map(u.pos),a?Le.empty:r),a==0&&QC(e,i,(n?n.isInline:s&&s.isTextblock)?-1:1)}}replaceWith(e,r){let n=e.steps.length,s=this.ranges;for(let i=0;i<s.length;i++){let{$from:o,$to:a}=s[i],l=e.mapping.slice(n),u=l.map(o.pos),d=l.map(a.pos);i?e.deleteRange(u,d):(e.replaceRangeWith(u,d,r),QC(e,n,r.isInline?-1:1))}}static findFrom(e,r,n=!1){let s=e.parent.inlineContent?new Je(e):Qc(e.node(0),e.parent,e.pos,e.index(),r,n);if(s)return s;for(let i=e.depth-1;i>=0;i--){let o=r<0?Qc(e.node(0),e.node(i),e.before(i+1),e.index(i),r,n):Qc(e.node(0),e.node(i),e.after(i+1),e.index(i)+1,r,n);if(o)return o}return null}static near(e,r=1){return this.findFrom(e,r)||this.findFrom(e,-r)||new Qs(e.node(0))}static atStart(e){return Qc(e,e,0,0,1)||new Qs(e)}static atEnd(e){return Qc(e,e,e.content.size,e.childCount,-1)||new Qs(e)}static fromJSON(e,r){if(!r||!r.type)throw new RangeError("Invalid input for Selection.fromJSON");let n=_1[r.type];if(!n)throw new RangeError(`No selection type ${r.type} defined`);return n.fromJSON(e,r)}static jsonID(e,r){if(e in _1)throw new RangeError("Duplicate use of selection JSON ID "+e);return _1[e]=r,r.prototype.jsonID=e,r}getBookmark(){return Je.between(this.$anchor,this.$head).getBookmark()}}ut.prototype.visible=!0;class pX{constructor(e,r){this.$from=e,this.$to=r}}let YC=!1;function JC(t){!YC&&!t.parent.inlineContent&&(YC=!0,console.warn("TextSelection endpoint not pointing into a node with inline content ("+t.parent.type.name+")"))}class Je extends ut{constructor(e,r=e){JC(e),JC(r),super(e,r)}
vendor: 5,614 bytes, line 669
669get $cursor(){return this.$anchor.pos==this.$head.pos?this.$head:null}map(e,r){let n=e.resolve(r.map(this.head));if(!n.parent.inlineContent)return ut.near(n);let s=e.resolve(r.map(this.anchor));return new Je(s.parent.inlineContent?s:n,n)}replace(e,r=Le.empty){if(super.replace(e,r),r==Le.empty){let n=this.$from.marksAcross(this.$to);n&&e.ensureMarks(n)}}eq(e){return e instanceof Je&&e.anchor==this.anchor&&e.head==this.head}getBookmark(){return new Vx(this.anchor,this.head)}toJSON(){return{type:"text",anchor:this.anchor,head:this.head}}static fromJSON(e,r){if(typeof r.anchor!="number"||typeof r.head!="number")throw new RangeError("Invalid input for TextSelection.fromJSON");return new Je(e.resolve(r.anchor),e.resolve(r.head))}static create(e,r,n=r){let s=e.resolve(r);return new this(s,n==r?s:e.resolve(n))}static between(e,r,n){let s=e.pos-r.pos;if((!n||s)&&(n=s>=0?1:-1),!r.parent.inlineContent){let i=ut.findFrom(r,n,!0)||ut.findFrom(r,-n,!0);if(i)r=i.$head;else return ut.near(r,n)}return e.parent.inlineContent||(s==0?e=r:(e=(ut.findFrom(e,-n,!0)||ut.findFrom(e,n,!0)).$anchor,e.pos<r.pos!=s<0&&(e=r))),new Je(e,r)}}ut.jsonID("text",Je);class Vx{constructor(e,r){this.anchor=e,this.head=r}map(e){return new Vx(e.map(this.anchor),e.map(this.head))}resolve(e){return Je.between(e.resolve(this.anchor),e.resolve(this.head))}}class We extends ut{constructor(e){let r=e.nodeAfter,n=e.node(0).resolve(e.pos+r.nodeSize);super(e,n),this.node=r}map(e,r){let{deleted:n,pos:s}=r.mapResult(this.anchor),i=e.resolve(s);return n?ut.near(i):new We(i)}content(){return new Le(xe.from(this.node),0,0)}eq(e){return e instanceof We&&e.anchor==this.anchor}toJSON(){return{type:"node",anchor:this.anchor}}getBookmark(){return new NS(this.anchor)}static fromJSON(e,r){if(typeof r.anchor!="number")throw new RangeError("Invalid input for NodeSelection.fromJSON");return new We(e.resolve(r.anchor))}static create(e,r){return new We(e.resolve(r))}static isSelectable(e){return!e.isText&&e.type.spec.selectable!==!1}}We.prototype.visible=!1;ut.jsonID("node",We);class NS{constructor(e){this.anchor=e}map(e){let{deleted:r,pos:n}=e.mapResult(this.anchor);return r?new Vx(n,n):new NS(n)}resolve(e){let r=e.resolve(this.anchor),n=r.nodeAfter;return n&&We.isSelectable(n)?new We(r):ut.near(r)}}class Qs extends ut{constructor(e){super(e.resolve(0),e.resolve(e.content.size))}replace(e,r=Le.empty){if(r==Le.empty){e.delete(0,e.doc.content.size);let n=ut.atStart(e.doc);n.eq(e.selection)||e.setSelection(n)}else super.replace(e,r)}toJSON(){return{type:"all"}}static fromJSON(e){return new Qs(e)}map(e){return new Qs(e)}eq(e){return e instanceof Qs}getBookmark(){return mX}}ut.jsonID("all",Qs);const mX={map(){return this},resolve(t){return new Qs(t)}};function Qc(t,e,r,n,s,i=!1){if(e.inlineContent)return Je.create(t,r);for(let o=n-(s>0?0:1);s>0?o<e.childCount:o>=0;o+=s){let a=e.child(o);if(a.isAtom){if(!i&&We.isSelectable(a))return We.create(t,r-(s<0?a.nodeSize:0))}else{let l=Qc(t,a,r+s,s<0?a.childCount:0,s,i);if(l)return l}r+=a.nodeSize*s}return null}function QC(t,e,r){let n=t.steps.length-1;if(n<e)return;let s=t.steps[n];if(!(s instanceof Er||s instanceof Yr))return;let i=t.mapping.maps[n],o;i.forEach((a,l,u,d)=>{o==null&&(o=d)}),t.setSelection(ut.near(t.doc.resolve(o),r))}const ZC=1,em=2,ek=4;class gX extends wM{constructor(e){super(e.doc),this.curSelectionFor=0,this.updated=0,this.meta=Object.create(null),this.time=Date.now(),this.curSelection=e.selection,this.storedMarks=e.storedMarks}get selection(){return this.curSelectionFor<this.steps.length&&(this.curSelection=this.curSelection.map(this.doc,this.mapping.slice(this.curSelectionFor)),this.curSelectionFor=this.steps.length),this.curSelection}setSelection(e){if(e.$from.doc!=this.doc)throw new RangeError("Selection passed to setSelection must point at the current document");return this.curSelection=e,this.curSelectionFor=this.steps.length,this.updated=(this.updated|ZC)&~em,this.storedMarks=null,this}get selectionSet(){return(this.updated&ZC)>0}setStoredMarks(e){return this.storedMarks=e,this.updated|=em,this}ensureMarks(e){return $t.sameSet(this.storedMarks||this.selection.$from.marks(),e)||this.setStoredMarks(e),this}addStoredMark(e){return this.ensureMarks(e.addToSet(this.storedMarks||this.selection.$head.marks()))}removeStoredMark(e){return this.ensureMarks(e.removeFromSet(this.storedMarks||this.selection.$head.marks()))}get storedMarksSet(){return(this.updated&em)>0}addStep(e,r){super.addStep(e,r),this.updated=this.updated&~em,this.storedMarks=null}setTime(e){return this.time=e,this}replaceSelection(e){return this.selection.replace(this,e),this}replaceSelectionWith(e,r=!0){let n=this.selection;return r&&(e=e.mark(this.storedMarks||(n.empty?n.$from.marks():n.$from.marksAcross(n.$to)||$t.none))),n.replaceWith(this,e),this}deleteSelection(){return this.selection.replace(this),this}insertText(e,r,n){let s=this.doc.type.schema;if(r==null)return e?this.replaceSelectionWith(s.text(e),!0):this.deleteSelection();{if(n==null&&(n=r),!e)return this.deleteRange(r,n);let i=this.storedMarks;if(!i){let o=this.doc.resolve(r);i=n==r?o.marks():o.marksAcross(this.doc.resolve(n))}return this.replaceRangeWith(r,n,s.text(e,i)),!this.selection.empty&&this.selection.to==r+e.length&&this.setSelection(ut.near(this.selection.$to)),this}}setMeta(e,r){return this.meta[typeof e=="string"?e:e.key]=r,this}getMeta(e){return this.meta[typeof e=="string"?e:e.key]}get isGeneric(){for(let e in this.meta)return!1;return!0}scrollIntoView(){return this.updated|=ek,this}get scrolledIntoView(){return(this.updated&ek)>0}}function tk(t,e){return!e||!t?t:t.bind(e)}
vendor: 12,989 bytes, lines 669-670
669class uf{constructor(e,r,n){this.name=e,this.init=tk(r.init,n),this.apply=tk(r.apply,n)}}const xX=[new uf("doc",{init(t){return t.doc||t.schema.topNodeType.createAndFill()},apply(t){return t.doc}}),new uf("selection",{init(t,e){return t.selection||ut.atStart(e.doc)},apply(t){return t.selection}}),new uf("storedMarks",{init(t){return t.storedMarks||null},apply(t,e,r,n){return n.selection.$cursor?t.storedMarks:null}}),new uf("scrollToSelection",{init(){return 0},apply(t,e){return t.scrolledIntoView?e+1:e}})];class E1{constructor(e,r){this.schema=e,this.plugins=[],this.pluginsByKey=Object.create(null),this.fields=xX.slice(),r&&r.forEach(n=>{if(this.pluginsByKey[n.key])throw new RangeError("Adding different instances of a keyed plugin ("+n.key+")");this.plugins.push(n),this.pluginsByKey[n.key]=n,n.spec.state&&this.fields.push(new uf(n.key,n.spec.state,n))})}}class mu{constructor(e){this.config=e}get schema(){return this.config.schema}get plugins(){return this.config.plugins}apply(e){return this.applyTransaction(e).state}filterTransaction(e,r=-1){for(let n=0;n<this.config.plugins.length;n++)if(n!=r){let s=this.config.plugins[n];if(s.spec.filterTransaction&&!s.spec.filterTransaction.call(s,e,this))return!1}return!0}applyTransaction(e){if(!this.filterTransaction(e))return{state:this,transactions:[]};let r=[e],n=this.applyInner(e),s=null;for(;;){let i=!1;for(let o=0;o<this.config.plugins.length;o++){let a=this.config.plugins[o];if(a.spec.appendTransaction){let l=s?s[o].n:0,u=s?s[o].state:this,d=l<r.length&&a.spec.appendTransaction.call(a,l?r.slice(l):r,u,n);if(d&&n.filterTransaction(d,o)){if(d.setMeta("appendedTransaction",e),!s){s=[];for(let f=0;f<this.config.plugins.length;f++)s.push(f<o?{state:n,n:r.length}:{state:this,n:0})}r.push(d),n=n.applyInner(d),i=!0}s&&(s[o]={state:n,n:r.length})}}if(!i)return{state:n,transactions:r}}}applyInner(e){if(!e.before.eq(this.doc))throw new RangeError("Applying a mismatched transaction");let r=new mu(this.config),n=this.config.fields;for(let s=0;s<n.length;s++){let i=n[s];r[i.name]=i.apply(e,this[i.name],this,r)}return r}get tr(){return new gX(this)}static create(e){let r=new E1(e.doc?e.doc.type.schema:e.schema,e.plugins),n=new mu(r);for(let s=0;s<r.fields.length;s++)n[r.fields[s].name]=r.fields[s].init(e,n);return n}reconfigure(e){let r=new E1(this.schema,e.plugins),n=r.fields,s=new mu(r);for(let i=0;i<n.length;i++){let o=n[i].name;s[o]=this.hasOwnProperty(o)?this[o]:n[i].init(e,s)}return s}toJSON(e){let r={doc:this.doc.toJSON(),selection:this.selection.toJSON()};if(this.storedMarks&&(r.storedMarks=this.storedMarks.map(n=>n.toJSON())),e&&typeof e=="object")for(let n in e){if(n=="doc"||n=="selection")throw new RangeError("The JSON fields `doc` and `selection` are reserved");let s=e[n],i=s.spec.state;i&&i.toJSON&&(r[n]=i.toJSON.call(s,this[s.key]))}return r}static fromJSON(e,r,n){if(!r)throw new RangeError("Invalid input for EditorState.fromJSON");if(!e.schema)throw new RangeError("Required config field 'schema' missing");let s=new E1(e.schema,e.plugins),i=new mu(s);return s.fields.forEach(o=>{if(o.name=="doc")i.doc=Va.fromJSON(e.schema,r.doc);else if(o.name=="selection")i.selection=ut.fromJSON(i.doc,r.selection);else if(o.name=="storedMarks")r.storedMarks&&(i.storedMarks=r.storedMarks.map(e.schema.markFromJSON));else{if(n)for(let a in n){let l=n[a],u=l.spec.state;if(l.key==o.name&&u&&u.fromJSON&&Object.prototype.hasOwnProperty.call(r,a)){i[o.name]=u.fromJSON.call(l,e,r[a],i);return}}i[o.name]=o.init(e,i)}}),i}}function bM(t,e,r){for(let n in t){let s=t[n];s instanceof Function?s=s.bind(e):n=="handleDOMEvents"&&(s=bM(s,e,{})),r[n]=s}return r}class nr{constructor(e){this.spec=e,this.props={},e.props&&bM(e.props,this,this.props),this.key=e.key?e.key.key:SM("plugin")}getState(e){return e[this.key]}}const T1=Object.create(null);function SM(t){return t in T1?t+"$"+ ++T1[t]:(T1[t]=0,t+"$")}class Ur{constructor(e="key"){this.key=SM(e)}get(e){return e.config.pluginsByKey[this.key]}getState(e){return e[this.key]}}function _M(t,e){let{$cursor:r}=t.selection;return!r||(e?!e.endOfTextblock("backward",t):r.parentOffset>0)?null:r}const vX=(t,e,r)=>{let n=_M(t,r);if(!n)return!1;let s=AS(n);if(!s){let o=n.blockRange(),a=o&&Nd(o);return a==null?!1:(e&&e(t.tr.lift(o,a).scrollIntoView()),!0)}let i=s.nodeBefore;if(kM(t,s,e,-1))return!0;if(n.parent.content.size==0&&(ad(i,"end")||We.isSelectable(i)))for(let o=n.depth;;o--){let a=Hx(t.doc,n.before(o),n.after(o),Le.empty);if(a&&a.slice.size<a.to-a.from){if(e){let l=t.tr.step(a);l.setSelection(ad(i,"end")?ut.findFrom(l.doc.resolve(l.mapping.map(s.pos,-1)),-1):We.create(l.doc,s.pos-i.nodeSize)),e(l.scrollIntoView())}return!0}if(o==1||n.node(o-1).childCount>1)break}return i.isAtom&&s.depth==n.depth-1?(e&&e(t.tr.delete(s.pos-i.nodeSize,s.pos).scrollIntoView()),!0):!1},yX=(t,e,r)=>{let n=_M(t,r);if(!n)return!1;let s=AS(n);return s?EM(t,s,e):!1},wX=(t,e,r)=>{let n=TM(t,r);if(!n)return!1;let s=jS(n);return s?EM(t,s,e):!1};function EM(t,e,r){let n=e.nodeBefore,s=n,i=e.pos-1;for(;!s.isTextblock;i--){if(s.type.spec.isolating)return!1;let d=s.lastChild;if(!d)return!1;s=d}let o=e.nodeAfter,a=o,l=e.pos+1;for(;!a.isTextblock;l++){if(a.type.spec.isolating)return!1;let d=a.firstChild;if(!d)return!1;a=d}let u=Hx(t.doc,i,l,Le.empty);if(!u||u.from!=i||u instanceof Er&&u.slice.size>=l-i)return!1;if(r){let d=t.tr.step(u);d.setSelection(Je.create(d.doc,i)),r(d.scrollIntoView())}return!0}function ad(t,e,r=!1){for(let n=t;n;n=e=="start"?n.firstChild:n.lastChild){if(n.isTextblock)return!0;if(r&&n.childCount!=1)return!1}return!1}const bX=(t,e,r)=>{let{$head:n,empty:s}=t.selection,i=n;if(!s)return!1;if(n.parent.isTextblock){if(r?!r.endOfTextblock("backward",t):n.parentOffset>0)return!1;i=AS(n)}let o=i&&i.nodeBefore;return!o||!We.isSelectable(o)?!1:(e&&e(t.tr.setSelection(We.create(t.doc,i.pos-o.nodeSize)).scrollIntoView()),!0)};function AS(t){if(!t.parent.type.spec.isolating)for(let e=t.depth-1;e>=0;e--){if(t.index(e)>0)return t.doc.resolve(t.before(e+1));if(t.node(e).type.spec.isolating)break}return null}function TM(t,e){let{$cursor:r}=t.selection;return!r||(e?!e.endOfTextblock("forward",t):r.parentOffset<r.parent.content.size)?null:r}const SX=(t,e,r)=>{let n=TM(t,r);if(!n)return!1;let s=jS(n);if(!s)return!1;let i=s.nodeAfter;if(kM(t,s,e,1))return!0;if(n.parent.content.size==0&&(ad(i,"start")||We.isSelectable(i))){let o=Hx(t.doc,n.before(),n.after(),Le.empty);if(o&&o.slice.size<o.to-o.from){if(e){let a=t.tr.step(o);a.setSelection(ad(i,"start")?ut.findFrom(a.doc.resolve(a.mapping.map(s.pos)),1):We.create(a.doc,a.mapping.map(s.pos))),e(a.scrollIntoView())}return!0}}return i.isAtom&&s.depth==n.depth-1?(e&&e(t.tr.delete(s.pos,s.pos+i.nodeSize).scrollIntoView()),!0):!1},_X=(t,e,r)=>{let{$head:n,empty:s}=t.selection,i=n;if(!s)return!1;if(n.parent.isTextblock){if(r?!r.endOfTextblock("forward",t):n.parentOffset<n.parent.content.size)return!1;i=jS(n)}let o=i&&i.nodeAfter;return!o||!We.isSelectable(o)?!1:(e&&e(t.tr.setSelection(We.create(t.doc,i.pos)).scrollIntoView()),!0)};function jS(t){if(!t.parent.type.spec.isolating)for(let e=t.depth-1;e>=0;e--){let r=t.node(e);if(t.index(e)+1<r.childCount)return t.doc.resolve(t.after(e+1));if(r.type.spec.isolating)break}return null}const EX=(t,e)=>{let r=t.selection,n=r instanceof We,s;if(n){if(r.node.isTextblock||!dl(t.doc,r.from))return!1;s=r.from}else if(s=Ux(t.doc,r.from,-1),s==null)return!1;if(e){let i=t.tr.join(s);n&&i.setSelection(We.create(i.doc,s-t.doc.resolve(s).nodeBefore.nodeSize)),e(i.scrollIntoView())}return!0},TX=(t,e)=>{let r=t.selection,n;if(r instanceof We){if(r.node.isTextblock||!dl(t.doc,r.to))return!1;n=r.to}else if(n=Ux(t.doc,r.to,1),n==null)return!1;return e&&e(t.tr.join(n).scrollIntoView()),!0},CX=(t,e)=>{let{$from:r,$to:n}=t.selection,s=r.blockRange(n),i=s&&Nd(s);return i==null?!1:(e&&e(t.tr.lift(s,i).scrollIntoView()),!0)},kX=(t,e)=>{let{$head:r,$anchor:n}=t.selection;return!r.parent.type.spec.code||!r.sameParent(n)?!1:(e&&e(t.tr.insertText(`
670`).scrollIntoView()),!0)};function CM(t){for(let e=0;e<t.edgeCount;e++){let{type:r}=t.edge(e);if(r.isTextblock&&!r.hasRequiredAttrs())return r}return null}const NX=(t,e)=>{let{$head:r,$anchor:n}=t.selection;if(!r.parent.type.spec.code||!r.sameParent(n))return!1;let s=r.node(-1),i=r.indexAfter(-1),o=CM(s.contentMatchAt(i));if(!o||!s.canReplaceWith(i,i,o))return!1;if(e){let a=r.after(),l=t.tr.replaceWith(a,a,o.createAndFill());l.setSelection(ut.near(l.doc.resolve(a),1)),e(l.scrollIntoView())}return!0},AX=(t,e)=>{let r=t.selection,{$from:n,$to:s}=r;if(r instanceof Qs||n.parent.inlineContent||s.parent.inlineContent)return!1;let i=CM(s.parent.contentMatchAt(s.indexAfter()));if(!i||!i.isTextblock)return!1;if(e){let o=(!n.parentOffset&&s.index()<s.parent.childCount?n:s).pos,a=t.tr.insert(o,i.createAndFill());a.setSelection(Je.create(a.doc,o+1)),e(a.scrollIntoView())}return!0},jX=(t,e)=>{let{$cursor:r}=t.selection;if(!r||r.parent.content.size)return!1;if(r.depth>1&&r.after()!=r.end(-1)){let i=r.before();if(Nu(t.doc,i))return e&&e(t.tr.split(i).scrollIntoView()),!0}let n=r.blockRange(),s=n&&Nd(n);return s==null?!1:(e&&e(t.tr.lift(n,s).scrollIntoView()),!0)},RX=(t,e)=>{let{$from:r,to:n}=t.selection,s,i=r.sharedDepth(n);return i==0?!1:(s=r.before(i),e&&e(t.tr.setSelection(We.create(t.doc,s))),!0)};function OX(t,e,r){let n=e.nodeBefore,s=e.nodeAfter,i=e.index();return!n||!s||!n.type.compatibleContent(s.type)?!1:!n.content.size&&e.parent.canReplace(i-1,i)?(r&&r(t.tr.delete(e.pos-n.nodeSize,e.pos).scrollIntoView()),!0):!e.parent.canReplace(i,i+1)||!(s.isTextblock||dl(t.doc,e.pos))?!1:(r&&r(t.tr.join(e.pos).scrollIntoView()),!0)}function kM(t,e,r,n){let s=e.nodeBefore,i=e.nodeAfter,o,a,l=s.type.spec.isolating||i.type.spec.isolating;if(!l&&OX(t,e,r))return!0;let u=!l&&e.parent.canReplace(e.index(),e.index()+1);if(u&&(o=(a=s.contentMatchAt(s.childCount)).findWrapping(i.type))&&a.matchType(o[0]||i.type).validEnd){if(r){let p=e.pos+i.nodeSize,g=xe.empty;for(let v=o.length-1;v>=0;v--)g=xe.from(o[v].create(null,g));g=xe.from(s.copy(g));let m=t.tr.step(new Yr(e.pos-1,p,e.pos,p,new Le(g,1,0),o.length,!0)),x=m.doc.resolve(p+2*o.length);x.nodeAfter&&x.nodeAfter.type==s.type&&dl(m.doc,x.pos)&&m.join(x.pos),r(m.scrollIntoView())}return!0}let d=i.type.spec.isolating||n>0&&l?null:ut.findFrom(e,1),f=d&&d.$from.blockRange(d.$to),h=f&&Nd(f);if(h!=null&&h>=e.depth)return r&&r(t.tr.lift(f,h).scrollIntoView()),!0;if(u&&ad(i,"start",!0)&&ad(s,"end")){let p=s,g=[];for(;g.push(p),!p.isTextblock;)p=p.lastChild;let m=i,x=1;for(;!m.isTextblock;m=m.firstChild)x++;if(p.canReplace(p.childCount,p.childCount,m.content)){if(r){let v=xe.empty;for(let b=g.length-1;b>=0;b--)v=xe.from(g[b].copy(v));let y=t.tr.step(new Yr(e.pos-g.length,e.pos+i.nodeSize,e.pos+x,e.pos+i.nodeSize-x,new Le(v,g.length,0),0,!0));r(y.scrollIntoView())}return!0}}return!1}function NM(t){return function(e,r){let n=e.selection,s=t<0?n.$from:n.$to,i=s.depth;for(;s.node(i).isInline;){if(!i)return!1;i--}return s.node(i).isTextblock?(r&&r(e.tr.setSelection(Je.create(e.doc,t<0?s.start(i):s.end(i)))),!0):!1}}const PX=NM(-1),MX=NM(1);function IX(t,e=null){return function(r,n){let{$from:s,$to:i}=r.selection,o=s.blockRange(i),a=o&&kS(o,t,e);return a?(n&&n(r.tr.wrap(o,a).scrollIntoView()),!0):!1}}function rk(t,e=null){return function(r,n){let s=!1;for(let i=0;i<r.selection.ranges.length&&!s;i++){let{$from:{pos:o},$to:{pos:a}}=r.selection.ranges[i];r.doc.nodesBetween(o,a,(l,u)=>{if(s)return!1;if(!(!l.isTextblock||l.hasMarkup(t,e)))if(l.type==t)s=!0;else{let d=r.doc.resolve(u),f=d.index();s=d.parent.canReplaceWith(f,f+1,t)}})}if(!s)return!1;if(n){let i=r.tr;for(let o=0;o<r.selection.ranges.length;o++){let{$from:{pos:a},$to:{pos:l}}=r.selection.ranges[o];i.setBlockType(a,l,t,e)}n(i.scrollIntoView())}return!0}}typeof navigator<"u"?/Mac|iP(hone|[oa]d)/.test(navigator.platform):typeof os<"u"&&os.platform&&os.platform()=="darwin";function DX(t,e=null){return function(r,n){let{$from:s,$to:i}=r.selection,o=s.blockRange(i);if(!o)return!1;let a=n?r.tr:null;return LX(a,o,t,e)?(n&&n(a.scrollIntoView()),!0):!1}}function LX(t,e,r,n=null){let s=!1,i=e,o=e.$from.doc;if(e.depth>=2&&e.$from.node(e.depth-1).type.compatibleContent(r)&&e.startIndex==0){if(e.$from.index(e.depth-1)==0)return!1;let l=o.resolve(e.start-2);i=new B0(l,l,e.depth),e.endIndex<e.parent.childCount&&(e=new B0(e.$from,o.resolve(e.$to.end(e.depth)),e.depth)),s=!0}let a=kS(i,r,n,e);return a?(t&&FX(t,e,a,s,r),!0):!1}function FX(t,e,r,n,s){let i=xe.empty;for(let d=r.length-1;d>=0;d--)i=xe.from(r[d].type.create(r[d].attrs,i));t.step(new Yr(e.start-(n?2:0),e.end,e.start,e.end,new Le(i,0,0),r.length,!0));let o=0;for(let d=0;d<r.length;d++)r[d].type==s&&(o=d+1);let a=r.length-o,l=e.start+r.length-(n?2:0),u=e.parent;for(let d=e.startIndex,f=e.endIndex,h=!0;d<f;d++,h=!1)!h&&Nu(t.doc,l,a)&&(t.split(l,a),l+=2*a),l+=u.child(d).nodeSize;return t}function BX(t){return function(e,r){let{$from:n,$to:s}=e.selection,i=n.blockRange(s,o=>o.childCount>0&&o.firstChild.type==t);
vendor: 4,297 bytes, line 670
670return i?r?n.node(i.depth-1).type==t?$X(e,r,t,i):zX(e,r,i):!0:!1}}function $X(t,e,r,n){let s=t.tr,i=n.end,o=n.$to.end(n.depth);i<o&&(s.step(new Yr(i-1,o,i,o,new Le(xe.from(r.create(null,n.parent.copy())),1,0),1,!0)),n=new B0(s.doc.resolve(n.$from.pos),s.doc.resolve(o),n.depth));const a=Nd(n);if(a==null)return!1;s.lift(n,a);let l=s.doc.resolve(s.mapping.map(i,-1)-1);return dl(s.doc,l.pos)&&l.nodeBefore.type==l.nodeAfter.type&&s.join(l.pos),e(s.scrollIntoView()),!0}function zX(t,e,r){let n=t.tr,s=r.parent;for(let p=r.end,g=r.endIndex-1,m=r.startIndex;g>m;g--)p-=s.child(g).nodeSize,n.delete(p-1,p+1);let i=n.doc.resolve(r.start),o=i.nodeAfter;if(n.mapping.map(r.end)!=r.start+i.nodeAfter.nodeSize)return!1;let a=r.startIndex==0,l=r.endIndex==s.childCount,u=i.node(-1),d=i.index(-1);if(!u.canReplace(d+(a?0:1),d+1,o.content.append(l?xe.empty:xe.from(s))))return!1;let f=i.pos,h=f+o.nodeSize;return n.step(new Yr(f-(a?1:0),h+(l?1:0),f+1,h-1,new Le((a?xe.empty:xe.from(s.copy(xe.empty))).append(l?xe.empty:xe.from(s.copy(xe.empty))),a?0:1,l?0:1),a?0:1)),e(n.scrollIntoView()),!0}function UX(t){return function(e,r){let{$from:n,$to:s}=e.selection,i=n.blockRange(s,u=>u.childCount>0&&u.firstChild.type==t);if(!i)return!1;let o=i.startIndex;if(o==0)return!1;let a=i.parent,l=a.child(o-1);if(l.type!=t)return!1;if(r){let u=l.lastChild&&l.lastChild.type==a.type,d=xe.from(u?t.create():null),f=new Le(xe.from(t.create(null,xe.from(a.type.create(null,d)))),u?3:1,0),h=i.start,p=i.end;r(e.tr.step(new Yr(h-(u?3:1),p,h,p,f,1,!0)).scrollIntoView())}return!0}}const an=function(t){for(var e=0;;e++)if(t=t.previousSibling,!t)return e},ld=function(t){let e=t.assignedSlot||t.parentNode;return e&&e.nodeType==11?e.host:e};let Jw=null;const To=function(t,e,r){let n=Jw||(Jw=document.createRange());return n.setEnd(t,r??t.nodeValue.length),n.setStart(t,e||0),n},HX=function(){Jw=null},oc=function(t,e,r,n){return r&&(nk(t,e,r,n,-1)||nk(t,e,r,n,1))},VX=/^(img|br|input|textarea|hr)$/i;function nk(t,e,r,n,s){for(var i;;){if(t==r&&e==n)return!0;if(e==(s<0?0:Ks(t))){let o=t.parentNode;if(!o||o.nodeType!=1||lp(t)||VX.test(t.nodeName)||t.contentEditable=="false")return!1;e=an(t)+(s<0?0:1),t=o}else if(t.nodeType==1){let o=t.childNodes[e+(s<0?-1:0)];if(o.nodeType==1&&o.contentEditable=="false")if(!((i=o.pmViewDesc)===null||i===void 0)&&i.ignoreForSelection)e+=s;else return!1;else t=o,e=s<0?Ks(t):0}else return!1}}function Ks(t){return t.nodeType==3?t.nodeValue.length:t.childNodes.length}function WX(t,e){for(;;){if(t.nodeType==3&&e)return t;if(t.nodeType==1&&e>0){if(t.contentEditable=="false")return null;t=t.childNodes[e-1],e=Ks(t)}else if(t.parentNode&&!lp(t))e=an(t),t=t.parentNode;else return null}}function qX(t,e){for(;;){if(t.nodeType==3&&e<t.nodeValue.length)return t;if(t.nodeType==1&&e<t.childNodes.length){if(t.contentEditable=="false")return null;t=t.childNodes[e],e=0}else if(t.parentNode&&!lp(t))e=an(t)+1,t=t.parentNode;else return null}}function GX(t,e,r){for(let n=e==0,s=e==Ks(t);n||s;){if(t==r)return!0;let i=an(t);if(t=t.parentNode,!t)return!1;n=n&&i==0,s=s&&i==Ks(t)}}function lp(t){let e;for(let r=t;r&&!(e=r.pmViewDesc);r=r.parentNode);return e&&e.node&&e.node.isBlock&&(e.dom==t||e.contentDOM==t)}const Wx=function(t){return t.focusNode&&oc(t.focusNode,t.focusOffset,t.anchorNode,t.anchorOffset)};function El(t,e){let r=document.createEvent("Event");return r.initEvent("keydown",!0,!0),r.keyCode=t,r.key=r.code=e,r}function KX(t){let e=t.activeElement;for(;e&&e.shadowRoot;)e=e.shadowRoot.activeElement;return e}function XX(t,e,r){if(t.caretPositionFromPoint)try{let n=t.caretPositionFromPoint(e,r);if(n)return{node:n.offsetNode,offset:Math.min(Ks(n.offsetNode),n.offset)}}catch{}if(t.caretRangeFromPoint){let n=t.caretRangeFromPoint(e,r);if(n)return{node:n.startContainer,offset:Math.min(Ks(n.startContainer),n.startOffset)}}}const ao=typeof navigator<"u"?navigator:null,sk=typeof document<"u"?document:null,fl=ao&&ao.userAgent||"",Qw=/Edge\/(\d+)/.exec(fl),AM=/MSIE \d/.exec(fl),Zw=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(fl),as=!!(AM||Zw||Qw),qa=AM?document.documentMode:Zw?+Zw[1]:Qw?+Qw[1]:0,Zs=!as&&/gecko\/(\d+)/i.test(fl);Zs&&+(/Firefox\/(\d+)/.exec(fl)||[0,0])[1];const eb=!as&&/Chrome\/(\d+)/.exec(fl),dn=!!eb,jM=eb?+eb[1]:0,kn=!as&&!!ao&&/Apple Computer/.test(ao.vendor),
vendor: 17,157 bytes, lines 670-671
670cd=kn&&(/Mobile\/\w+/.test(fl)||!!ao&&ao.maxTouchPoints>2),Vs=cd||(ao?/Mac/.test(ao.platform):!1),RM=ao?/Win/.test(ao.platform):!1,jo=/Android \d/.test(fl),cp=!!sk&&"webkitFontSmoothing"in sk.documentElement.style,YX=cp?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0;function JX(t){let e=t.defaultView&&t.defaultView.visualViewport;return e?{left:0,right:e.width,top:0,bottom:e.height}:{left:0,right:t.documentElement.clientWidth,top:0,bottom:t.documentElement.clientHeight}}function xo(t,e){return typeof t=="number"?t:t[e]}function QX(t){let e=t.getBoundingClientRect(),r=e.width/t.offsetWidth||1,n=e.height/t.offsetHeight||1;return{left:e.left,right:e.left+t.clientWidth*r,top:e.top,bottom:e.top+t.clientHeight*n}}function ik(t,e,r){let n=t.someProp("scrollThreshold")||0,s=t.someProp("scrollMargin")||5,i=t.dom.ownerDocument;for(let o=r||t.dom;o;){if(o.nodeType!=1){o=ld(o);continue}let a=o,l=a==i.body,u=l?JX(i):QX(a),d=0,f=0;if(e.top<u.top+xo(n,"top")?f=-(u.top-e.top+xo(s,"top")):e.bottom>u.bottom-xo(n,"bottom")&&(f=e.bottom-e.top>u.bottom-u.top?e.top+xo(s,"top")-u.top:e.bottom-u.bottom+xo(s,"bottom")),e.left<u.left+xo(n,"left")?d=-(u.left-e.left+xo(s,"left")):e.right>u.right-xo(n,"right")&&(d=e.right-u.right+xo(s,"right")),d||f)if(l)i.defaultView.scrollBy(d,f);else{let p=a.scrollLeft,g=a.scrollTop;f&&(a.scrollTop+=f),d&&(a.scrollLeft+=d);let m=a.scrollLeft-p,x=a.scrollTop-g;e={left:e.left-m,top:e.top-x,right:e.right-m,bottom:e.bottom-x}}let h=l?"fixed":getComputedStyle(o).position;if(/^(fixed|sticky)$/.test(h))break;o=h=="absolute"?o.offsetParent:ld(o)}}function ZX(t){let e=t.dom.getBoundingClientRect(),r=Math.max(0,e.top),n,s;for(let i=(e.left+e.right)/2,o=r+1;o<Math.min(innerHeight,e.bottom);o+=5){let a=t.root.elementFromPoint(i,o);if(!a||a==t.dom||!t.dom.contains(a))continue;let l=a.getBoundingClientRect();if(l.top>=r-20){n=a,s=l.top;break}}return{refDOM:n,refTop:s,stack:OM(t.dom)}}function OM(t){let e=[],r=t.ownerDocument;for(let n=t;n&&(e.push({dom:n,top:n.scrollTop,left:n.scrollLeft}),t!=r);n=ld(n));return e}function eY({refDOM:t,refTop:e,stack:r}){let n=t?t.getBoundingClientRect().top:0;PM(r,n==0?0:n-e)}function PM(t,e){for(let r=0;r<t.length;r++){let{dom:n,top:s,left:i}=t[r];n.scrollTop!=s+e&&(n.scrollTop=s+e),n.scrollLeft!=i&&(n.scrollLeft=i)}}let Fc=null;function tY(t){if(t.setActive)return t.setActive();if(Fc)return t.focus(Fc);let e=OM(t);t.focus(Fc==null?{get preventScroll(){return Fc={preventScroll:!0},!0}}:void 0),Fc||(Fc=!1,PM(e,0))}function MM(t,e){let r,n=2e8,s,i=0,o=e.top,a=e.top,l,u;for(let d=t.firstChild,f=0;d;d=d.nextSibling,f++){let h;if(d.nodeType==1)h=d.getClientRects();else if(d.nodeType==3)h=To(d).getClientRects();else continue;for(let p=0;p<h.length;p++){let g=h[p];if(g.top<=o&&g.bottom>=a){o=Math.max(g.bottom,o),a=Math.min(g.top,a);let m=g.left>e.left?g.left-e.left:g.right<e.left?e.left-g.right:0;if(m<n){r=d,n=m,s=m&&r.nodeType==3?{left:g.right<e.left?g.right:g.left,top:e.top}:e,d.nodeType==1&&m&&(i=f+(e.left>=(g.left+g.right)/2?1:0));continue}}else g.top>e.top&&!l&&g.left<=e.left&&g.right>=e.left&&(l=d,u={left:Math.max(g.left,Math.min(g.right,e.left)),top:g.top});!r&&(e.left>=g.right&&e.top>=g.top||e.left>=g.left&&e.top>=g.bottom)&&(i=f+1)}}return!r&&l&&(r=l,s=u,n=0),r&&r.nodeType==3?rY(r,s):!r||n&&r.nodeType==1?{node:t,offset:i}:MM(r,s)}function rY(t,e){let r=t.nodeValue.length,n=document.createRange(),s;for(let i=0;i<r;i++){n.setEnd(t,i+1),n.setStart(t,i);let o=oa(n,1);if(o.top!=o.bottom&&RS(e,o)){s={node:t,offset:i+(e.left>=(o.left+o.right)/2?1:0)};break}}return n.detach(),s||{node:t,offset:0}}function RS(t,e){return t.left>=e.left-1&&t.left<=e.right+1&&t.top>=e.top-1&&t.top<=e.bottom+1}function nY(t,e){let r=t.parentNode;return r&&/^li$/i.test(r.nodeName)&&e.left<t.getBoundingClientRect().left?r:t}function sY(t,e,r){let{node:n,offset:s}=MM(e,r),i=-1;if(n.nodeType==1&&!n.firstChild){let o=n.getBoundingClientRect();i=o.left!=o.right&&r.left>(o.left+o.right)/2?1:-1}return t.docView.posFromDOM(n,s,i)}function iY(t,e,r,n){let s=-1;for(let i=e,o=!1;i!=t.dom;){let a=t.docView.nearestDesc(i,!0),l;if(!a)return null;if(a.dom.nodeType==1&&(a.node.isBlock&&a.parent||!a.contentDOM)&&((l=a.dom.getBoundingClientRect()).width||l.height)&&(a.node.isBlock&&a.parent&&!/^T(R|BODY|HEAD|FOOT)$/.test(a.dom.nodeName)&&(!o&&l.left>n.left||l.top>n.top?s=a.posBefore:(!o&&l.right<n.left||l.bottom<n.top)&&(s=a.posAfter),o=!0),!a.contentDOM&&s<0&&!a.node.isText))return(a.node.isBlock?n.top<(l.top+l.bottom)/2:n.left<(l.left+l.right)/2)?a.posBefore:a.posAfter;i=a.dom.parentNode}return s>-1?s:t.docView.posFromDOM(e,r,-1)}function IM(t,e,r){let n=t.childNodes.length;if(n&&r.top<r.bottom)for(let s=Math.max(0,Math.min(n-1,Math.floor(n*(e.top-r.top)/(r.bottom-r.top))-2)),i=s;;){let o=t.childNodes[i];if(o.nodeType==1){let a=o.getClientRects();for(let l=0;l<a.length;l++){let u=a[l];if(RS(e,u))return IM(o,e,u)}}if((i=(i+1)%n)==s)break}return t}function oY(t,e){let r=t.dom.ownerDocument,n,s=0,i=XX(r,e.left,e.top);i&&({node:n,offset:s}=i);let o=(t.root.elementFromPoint?t.root:r).elementFromPoint(e.left,e.top),a;if(!o||!t.dom.contains(o.nodeType!=1?o.parentNode:o)){let u=t.dom.getBoundingClientRect();if(!RS(e,u)||(o=IM(t.dom,e,u),!o))return null}if(kn)for(let u=o;n&&u;u=ld(u))u.draggable&&(n=void 0);if(o=nY(o,e),n){if(Zs&&n.nodeType==1&&(s=Math.min(s,n.childNodes.length),s<n.childNodes.length)){let d=n.childNodes[s],f;d.nodeName=="IMG"&&(f=d.getBoundingClientRect()).right<=e.left&&f.bottom>e.top&&s++}let u;cp&&s&&n.nodeType==1&&(u=n.childNodes[s-1]).nodeType==1&&u.contentEditable=="false"&&u.getBoundingClientRect().top>=e.top&&s--,n==t.dom&&s==n.childNodes.length-1&&n.lastChild.nodeType==1&&e.top>n.lastChild.getBoundingClientRect().bottom?a=t.state.doc.content.size:(s==0||n.nodeType!=1||n.childNodes[s-1].nodeName!="BR")&&(a=iY(t,n,s,e))}a==null&&(a=sY(t,o,e));let l=t.docView.nearestDesc(o,!0);return{pos:a,inside:l?l.posAtStart-l.border:-1}}function ok(t){return t.top<t.bottom||t.left<t.right}function oa(t,e){let r=t.getClientRects();if(r.length){let n=r[e<0?0:r.length-1];if(ok(n))return n}return Array.prototype.find.call(r,ok)||t.getBoundingClientRect()}const aY=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/;function DM(t,e,r){let{node:n,offset:s,atom:i}=t.docView.domFromPos(e,r<0?-1:1),o=cp||Zs;if(n.nodeType==3)if(o&&(aY.test(n.nodeValue)||(r<0?!s:s==n.nodeValue.length))){let l=oa(To(n,s,s),r);if(Zs&&s&&/\s/.test(n.nodeValue[s-1])&&s<n.nodeValue.length){let u=oa(To(n,s-1,s-1),-1);if(u.top==l.top){let d=oa(To(n,s,s+1),-1);if(d.top!=l.top)return Yd(d,d.left<u.left)}}return l}else{let l=s,u=s,d=r<0?1:-1;return r<0&&!s?(u++,d=-1):r>=0&&s==n.nodeValue.length?(l--,d=1):r<0?l--:u++,Yd(oa(To(n,l,u),d),d<0)}if(!t.state.doc.resolve(e-(i||0)).parent.inlineContent){if(i==null&&s&&(r<0||s==Ks(n))){let l=n.childNodes[s-1];if(l.nodeType==1)return C1(l.getBoundingClientRect(),!1)}if(i==null&&s<Ks(n)){let l=n.childNodes[s];if(l.nodeType==1)return C1(l.getBoundingClientRect(),!0)}return C1(n.getBoundingClientRect(),r>=0)}if(i==null&&s&&(r<0||s==Ks(n))){let l=n.childNodes[s-1],u=l.nodeType==3?To(l,Ks(l)-(o?0:1)):l.nodeType==1&&(l.nodeName!="BR"||!l.nextSibling)?l:null;if(u)return Yd(oa(u,1),!1)}if(i==null&&s<Ks(n)){let l=n.childNodes[s];for(;l.pmViewDesc&&l.pmViewDesc.ignoreForCoords;)l=l.nextSibling;let u=l?l.nodeType==3?To(l,0,o?0:1):l.nodeType==1?l:null:null;if(u)return Yd(oa(u,-1),!0)}return Yd(oa(n.nodeType==3?To(n):n,-r),r>=0)}function Yd(t,e){if(t.width==0)return t;let r=e?t.left:t.right;return{top:t.top,bottom:t.bottom,left:r,right:r}}function C1(t,e){if(t.height==0)return t;let r=e?t.top:t.bottom;return{top:r,bottom:r,left:t.left,right:t.right}}function LM(t,e,r){let n=t.state,s=t.root.activeElement;n!=e&&t.updateState(e),s!=t.dom&&t.focus();try{return r()}finally{n!=e&&t.updateState(n),s!=t.dom&&s&&s.focus()}}function lY(t,e,r){let n=e.selection,s=r=="up"?n.$from:n.$to;return LM(t,e,()=>{let{node:i}=t.docView.domFromPos(s.pos,r=="up"?-1:1);for(;;){let a=t.docView.nearestDesc(i,!0);if(!a)break;if(a.node.isBlock){i=a.contentDOM||a.dom;break}i=a.dom.parentNode}let o=DM(t,s.pos,1);for(let a=i.firstChild;a;a=a.nextSibling){let l;if(a.nodeType==1)l=a.getClientRects();else if(a.nodeType==3)l=To(a,0,a.nodeValue.length).getClientRects();else continue;for(let u=0;u<l.length;u++){let d=l[u];if(d.bottom>d.top+1&&(r=="up"?o.top-d.top>(d.bottom-o.top)*2:d.bottom-o.bottom>(o.bottom-d.top)*2))return!1}}return!0})}const cY=/[\u0590-\u08ac]/;function uY(t,e,r){let{$head:n}=e.selection;if(!n.parent.isTextblock)return!1;let s=n.parentOffset,i=!s,o=s==n.parent.content.size,a=t.domSelection();return a?!cY.test(n.parent.textContent)||!a.modify?r=="left"||r=="backward"?i:o:LM(t,e,()=>{let{focusNode:l,focusOffset:u,anchorNode:d,anchorOffset:f}=t.domSelectionRange(),h=a.caretBidiLevel;a.modify("move",r,"character");let p=n.depth?t.docView.domAfterPos(n.before()):t.dom,{focusNode:g,focusOffset:m}=t.domSelectionRange(),x=g&&!p.contains(g.nodeType==1?g:g.parentNode)||l==g&&u==m;try{a.collapse(d,f),l&&(l!=d||u!=f)&&a.extend&&a.extend(l,u)}catch{}return h!=null&&(a.caretBidiLevel=h),x}):n.pos==n.start()||n.pos==n.end()}let ak=null,lk=null,ck=!1;function dY(t,e,r){return ak==e&&lk==r?ck:(ak=e,lk=r,ck=r=="up"||r=="down"?lY(t,e,r):uY(t,e,r))}const ei=0,uk=1,jl=2,lo=3;class up{constructor(e,r,n,s){this.parent=e,this.children=r,this.dom=n,this.contentDOM=s,this.dirty=ei,n.pmViewDesc=this}matchesWidget(e){return!1}matchesMark(e){return!1}matchesNode(e,r,n){return!1}matchesHack(e){return!1}parseRule(){return null}stopEvent(e){return!1}get size(){let e=0;for(let r=0;r<this.children.length;r++)e+=this.children[r].size;return e}get border(){return 0}destroy(){this.parent=void 0,this.dom.pmViewDesc==this&&(this.dom.pmViewDesc=void 0);for(let e=0;e<this.children.length;e++)this.children[e].destroy()}posBeforeChild(e){for(let r=0,n=this.posAtStart;;r++){let s=this.children[r];if(s==e)return n;n+=s.size}}get posBefore(){return this.parent.posBeforeChild(this)}get posAtStart(){return this.parent?this.parent.posBeforeChild(this)+this.border:0}get posAfter(){return this.posBefore+this.size}get posAtEnd(){return this.posAtStart+this.size-2*this.border}localPosFromDOM(e,r,n){if(this.contentDOM&&this.contentDOM.contains(e.nodeType==1?e:e.parentNode))if(n<0){let i,o;if(e==this.contentDOM)i=e.childNodes[r-1];else{for(;e.parentNode!=this.contentDOM;)e=e.parentNode;i=e.previousSibling}for(;i&&!((o=i.pmViewDesc)&&o.parent==this);)i=i.previousSibling;return i?this.posBeforeChild(o)+o.size:this.posAtStart}else{let i,o;if(e==this.contentDOM)i=e.childNodes[r];else{for(;e.parentNode!=this.contentDOM;)e=e.parentNode;i=e.nextSibling}for(;i&&!((o=i.pmViewDesc)&&o.parent==this);)i=i.nextSibling;return i?this.posBeforeChild(o):this.posAtEnd}let s;if(e==this.dom&&this.contentDOM)s=r>an(this.contentDOM);else if(this.contentDOM&&this.contentDOM!=this.dom&&this.dom.contains(this.contentDOM))s=e.compareDocumentPosition(this.contentDOM)&2;else if(this.dom.firstChild){if(r==0)for(let i=e;;i=i.parentNode){if(i==this.dom){s=!1;break}if(i.previousSibling)break}if(s==null&&r==e.childNodes.length)for(let i=e;;i=i.parentNode){if(i==this.dom){s=!0;break}if(i.nextSibling)break}}return s??n>0?this.posAtEnd:this.posAtStart}nearestDesc(e,r=!1){for(let n=!0,s=e;s;s=s.parentNode){let i=this.getDesc(s),o;if(i&&(!r||i.node))if(n&&(o=i.nodeDOM)&&!(o.nodeType==1?o.contains(e.nodeType==1?e:e.parentNode):o==e))n=!1;else return i}}getDesc(e){let r=e.pmViewDesc;for(let n=r;n;n=n.parent)if(n==this)return r}posFromDOM(e,r,n){for(let s=e;s;s=s.parentNode){let i=this.getDesc(s);if(i)return i.localPosFromDOM(e,r,n)}return-1}descAt(e){for(let r=0,n=0;r<this.children.length;r++){let s=this.children[r],i=n+s.size;if(n==e&&i!=n){for(;!s.border&&s.children.length;)for(let o=0;o<s.children.length;o++){let a=s.children[o];if(a.size){s=a;break}}return s}if(e<i)return s.descAt(e-n-s.border);n=i}}domFromPos(e,r){if(!this.contentDOM)return{node:this.dom,offset:0,atom:e+1};let n=0,s=0;for(let i=0;n<this.children.length;n++){let o=this.children[n],a=i+o.size;if(a>e||o instanceof BM){s=e-i;break}i=a}if(s)return this.children[n].domFromPos(s-this.children[n].border,r);for(let i;n&&!(i=this.children[n-1]).size&&i instanceof FM&&i.side>=0;n--);if(r<=0){let i,o=!0;for(;i=n?this.children[n-1]:null,!(!i||i.dom.parentNode==this.contentDOM);n--,o=!1);return i&&r&&o&&!i.border&&!i.domAtom?i.domFromPos(i.size,r):{node:this.contentDOM,offset:i?an(i.dom)+1:0}}else{let i,o=!0;for(;i=n<this.children.length?this.children[n]:null,!(!i||i.dom.parentNode==this.contentDOM);n++,o=!1);return i&&o&&!i.border&&!i.domAtom?i.domFromPos(0,r):{node:this.contentDOM,offset:i?an(i.dom):this.contentDOM.childNodes.length}}}parseRange(e,r,n=0){if(this.children.length==0)return{node:this.contentDOM,from:e,to:r,fromOffset:0,toOffset:this.contentDOM.childNodes.length};let s=-1,i=-1;for(let o=n,a=0;;a++){let l=this.children[a],u=o+l.size;if(s==-1&&e<=u){let d=o+l.border;if(e>=d&&r<=u-l.border&&l.node&&l.contentDOM&&this.contentDOM.contains(l.contentDOM))return l.parseRange(e,r,d);e=o;for(let f=a;f>0;f--){let h=this.children[f-1];if(h.size&&h.dom.parentNode==this.contentDOM&&!h.emptyChildAt(1)){s=an(h.dom)+1;break}e-=h.size}s==-1&&(s=0)}if(s>-1&&(u>r||a==this.children.length-1)){r=u;for(let d=a+1;d<this.children.length;d++){let f=this.children[d];if(f.size&&f.dom.parentNode==this.contentDOM&&!f.emptyChildAt(-1)){i=an(f.dom);break}r+=f.size}i==-1&&(i=this.contentDOM.childNodes.length);break}o=u}return{node:this.contentDOM,from:e,to:r,fromOffset:s,toOffset:i}}emptyChildAt(e){if(this.border||!this.contentDOM||!this.children.length)return!1;let r=this.children[e<0?0:this.children.length-1];return r.size==0||r.emptyChildAt(e)}domAfterPos(e){let{node:r,offset:n}=this.domFromPos(e,0);if(r.nodeType!=1||n==r.childNodes.length)throw new RangeError("No node after pos "+e);return r.childNodes[n]}setSelection(e,r,n,s=!1){let i=Math.min(e,r),o=Math.max(e,r);for(let p=0,g=0;p<this.children.length;p++){let m=this.children[p],x=g+m.size;if(i>g&&o<x)return m.setSelection(e-g-m.border,r-g-m.border,n,s);g=x}let a=this.domFromPos(e,e?-1:1),l=r==e?a:this.domFromPos(r,r?-1:1),u=n.root.getSelection(),d=n.domSelectionRange(),f=!1;if((Zs||kn)&&e==r){let{node:p,offset:g}=a;if(p.nodeType==3){if(f=!!(g&&p.nodeValue[g-1]==`
671`),f&&g==p.nodeValue.length)for(let m=p,x;m;m=m.parentNode){if(x=m.nextSibling){x.nodeName=="BR"&&(a=l={node:x.parentNode,offset:an(x)+1});break}let v=m.pmViewDesc;if(v&&v.node&&v.node.isBlock)break}}else{let m=p.childNodes[g-1];f=m&&(m.nodeName=="BR"||m.contentEditable=="false")}}if(Zs&&d.focusNode&&d.focusNode!=l.node&&d.focusNode.nodeType==1){let p=d.focusNode.childNodes[d.focusOffset];p&&p.contentEditable=="false"&&(s=!0)}if(!(s||f&&kn)&&oc(a.node,a.offset,d.anchorNode,d.anchorOffset)&&oc(l.node,l.offset,d.focusNode,d.focusOffset))return;let h=!1;if((u.extend||e==r)&&!(f&&Zs)){u.collapse(a.node,a.offset);try{e!=r&&u.extend(l.node,l.offset),h=!0}catch{}}if(!h){if(e>r){let g=a;a=l,l=g}let p=document.createRange();p.setEnd(l.node,l.offset),p.setStart(a.node,a.offset),u.removeAllRanges(),u.addRange(p)}}ignoreMutation(e){return!this.contentDOM&&e.type!="selection"}get contentLost(){return this.contentDOM&&this.contentDOM!=this.dom&&!this.dom.contains(this.contentDOM)}markDirty(e,r){for(let n=0,s=0;s<this.children.length;s++){let i=this.children[s],o=n+i.size;if(n==o?e<=o&&r>=n:e<o&&r>n){let a=n+i.border,l=o-i.border;if(e>=a&&r<=l){this.dirty=e==n||r==o?jl:uk,e==a&&r==l&&(i.contentLost||i.dom.parentNode!=this.contentDOM)?i.dirty=lo:i.markDirty(e-a,r-a);return}else i.dirty=i.dom==i.contentDOM&&i.dom.parentNode==this.contentDOM&&!i.children.length?jl:lo}n=o}this.dirty=jl}markParentsDirty(){let e=1;for(let r=this.parent;r;r=r.parent,e++){let n=e==1?jl:uk;r.dirty<n&&(r.dirty=n)}}get domAtom(){return!1}get ignoreForCoords(){return!1}get ignoreForSelection(){return!1}isText(e){return!1}}class FM extends up{constructor(e,r,n,s){let i,o=r.type.toDOM;if(typeof o=="function"&&(o=o(n,()=>{if(!i)return s;if(i.parent)return i.parent.posBeforeChild(i)})),!r.type.spec.raw){if(o.nodeType!=1){let a=document.createElement("span");a.appendChild(o),o=a}o.contentEditable="false",o.classList.add("ProseMirror-widget")}super(e,[],o,null),this.widget=r,this.widget=r,i=this}matchesWidget(e){return this.dirty==ei&&e.type.eq(this.widget.type)}parseRule(){return{ignore:!0}}stopEvent(e){let r=this.widget.spec.stopEvent;return r?r(e):!1}ignoreMutation(e){return e.type!="selection"||this.widget.spec.ignoreSelection}destroy(){this.widget.type.destroy(this.dom),super.destroy()}get domAtom(){return!0}get ignoreForSelection(){return!!this.widget.type.spec.relaxedSide}get side(){return this.widget.type.side}}class fY extends up{constructor(e,r,n,s){super(e,[],r,null),this.textDOM=n,this.text=s}get size(){return this.text.length}localPosFromDOM(e,r){return e!=this.textDOM?this.posAtStart+(r?this.size:0):this.posAtStart+r}domFromPos(e){return{node:this.textDOM,offset:e}}ignoreMutation(e){return e.type==="characterData"&&e.target.nodeValue==e.oldValue}}class ac extends up{constructor(e,r,n,s,i){super(e,[],n,s),this.mark=r,this.spec=i}
vendor: 8,572 bytes, line 671
671static create(e,r,n,s){let i=s.nodeViews[r.type.name],o=i&&i(r,s,n);return(!o||!o.dom)&&(o=bc.renderSpec(document,r.type.spec.toDOM(r,n),null,r.attrs)),new ac(e,r,o.dom,o.contentDOM||o.dom,o)}parseRule(){return this.dirty&lo||this.mark.type.spec.reparseInView?null:{mark:this.mark.type.name,attrs:this.mark.attrs,contentElement:this.contentDOM}}matchesMark(e){return this.dirty!=lo&&this.mark.eq(e)}markDirty(e,r){if(super.markDirty(e,r),this.dirty!=ei){let n=this.parent;for(;!n.node;)n=n.parent;n.dirty<this.dirty&&(n.dirty=this.dirty),this.dirty=ei}}slice(e,r,n){let s=ac.create(this.parent,this.mark,!0,n),i=this.children,o=this.size;r<o&&(i=rb(i,r,o,n)),e>0&&(i=rb(i,0,e,n));for(let a=0;a<i.length;a++)i[a].parent=s;return s.children=i,s}ignoreMutation(e){return this.spec.ignoreMutation?this.spec.ignoreMutation(e):super.ignoreMutation(e)}destroy(){this.spec.destroy&&this.spec.destroy(),super.destroy()}}class Ga extends up{constructor(e,r,n,s,i,o,a,l,u){super(e,[],i,o),this.node=r,this.outerDeco=n,this.innerDeco=s,this.nodeDOM=a}static create(e,r,n,s,i,o){let a=i.nodeViews[r.type.name],l,u=a&&a(r,i,()=>{if(!l)return o;if(l.parent)return l.parent.posBeforeChild(l)},n,s),d=u&&u.dom,f=u&&u.contentDOM;if(r.isText){if(!d)d=document.createTextNode(r.text);else if(d.nodeType!=3)throw new RangeError("Text must be rendered as a DOM text node")}else d||({dom:d,contentDOM:f}=bc.renderSpec(document,r.type.spec.toDOM(r),null,r.attrs));!f&&!r.isText&&d.nodeName!="BR"&&(d.hasAttribute("contenteditable")||(d.contentEditable="false"),r.type.spec.draggable&&(d.draggable=!0));let h=d;return d=UM(d,n,r),u?l=new hY(e,r,n,s,d,f||null,h,u,i,o+1):r.isText?new qx(e,r,n,s,d,h,i):new Ga(e,r,n,s,d,f||null,h,i,o+1)}parseRule(){if(this.node.type.spec.reparseInView)return null;let e={node:this.node.type.name,attrs:this.node.attrs};if(this.node.type.whitespace=="pre"&&(e.preserveWhitespace="full"),!this.contentDOM)e.getContent=()=>this.node.content;else if(!this.contentLost)e.contentElement=this.contentDOM;else{for(let r=this.children.length-1;r>=0;r--){let n=this.children[r];if(this.dom.contains(n.dom.parentNode)){e.contentElement=n.dom.parentNode;break}}e.contentElement||(e.getContent=()=>xe.empty)}return e}matchesNode(e,r,n){return this.dirty==ei&&e.eq(this.node)&&z0(r,this.outerDeco)&&n.eq(this.innerDeco)}get size(){return this.node.nodeSize}get border(){return this.node.isLeaf?0:1}updateChildren(e,r){let n=this.node.inlineContent,s=r,i=e.composing?this.localCompositionInfo(e,r):null,o=i&&i.pos>-1?i:null,a=i&&i.pos<0,l=new mY(this,o&&o.node,e);vY(this.node,this.innerDeco,(u,d,f)=>{u.spec.marks?l.syncToMarks(u.spec.marks,n,e,d):u.type.side>=0&&!f&&l.syncToMarks(d==this.node.childCount?$t.none:this.node.child(d).marks,n,e,d),l.placeWidget(u,e,s)},(u,d,f,h)=>{l.syncToMarks(u.marks,n,e,h);let p;l.findNodeMatch(u,d,f,h)||a&&e.state.selection.from>s&&e.state.selection.to<s+u.nodeSize&&(p=l.findIndexWithChild(i.node))>-1&&l.updateNodeAt(u,d,f,p,e)||l.updateNextNode(u,d,f,e,h,s)||l.addNode(u,d,f,e,s),s+=u.nodeSize}),l.syncToMarks([],n,e,0),this.node.isTextblock&&l.addTextblockHacks(),l.destroyRest(),(l.changed||this.dirty==jl)&&(o&&this.protectLocalComposition(e,o),$M(this.contentDOM,this.children,e),cd&&yY(this.dom))}localCompositionInfo(e,r){let{from:n,to:s}=e.state.selection;if(!(e.state.selection instanceof Je)||n<r||s>r+this.node.content.size)return null;let i=e.input.compositionNode;if(!i||!this.dom.contains(i.parentNode))return null;if(this.node.inlineContent){let o=i.nodeValue,a=wY(this.node.content,o,n-r,s-r);return a<0?null:{node:i,pos:a,text:o}}else return{node:i,pos:-1,text:""}}protectLocalComposition(e,{node:r,pos:n,text:s}){if(this.getDesc(r))return;let i=r;for(;i.parentNode!=this.contentDOM;i=i.parentNode){for(;i.previousSibling;)i.parentNode.removeChild(i.previousSibling);for(;i.nextSibling;)i.parentNode.removeChild(i.nextSibling);i.pmViewDesc&&(i.pmViewDesc=void 0)}let o=new fY(this,i,r,s);e.input.compositionNodes.push(o),this.children=rb(this.children,n,n+s.length,e,o)}update(e,r,n,s){return this.dirty==lo||!e.sameMarkup(this.node)?!1:(this.updateInner(e,r,n,s),!0)}updateInner(e,r,n,s){this.updateOuterDeco(r),this.node=e,this.innerDeco=n,this.contentDOM&&this.updateChildren(s,this.posAtStart),this.dirty=ei}updateOuterDeco(e){if(z0(e,this.outerDeco))return;let r=this.nodeDOM.nodeType!=1,n=this.dom;this.dom=zM(this.dom,this.nodeDOM,tb(this.outerDeco,this.node,r),tb(e,this.node,r)),this.dom!=n&&(n.pmViewDesc=void 0,this.dom.pmViewDesc=this),this.outerDeco=e}selectNode(){this.nodeDOM.nodeType==1&&(this.nodeDOM.classList.add("ProseMirror-selectednode"),(this.contentDOM||!this.node.type.spec.draggable)&&(this.nodeDOM.draggable=!0))}deselectNode(){this.nodeDOM.nodeType==1&&(this.nodeDOM.classList.remove("ProseMirror-selectednode"),(this.contentDOM||!this.node.type.spec.draggable)&&this.nodeDOM.removeAttribute("draggable"))}get domAtom(){return this.node.isAtom}}function dk(t,e,r,n,s){UM(n,e,t);let i=new Ga(void 0,t,e,r,n,n,n,s,0);return i.contentDOM&&i.updateChildren(s,0),i}class qx extends Ga{constructor(e,r,n,s,i,o,a){super(e,r,n,s,i,null,o,a,0)}parseRule(){let e=this.nodeDOM.parentNode;for(;e&&e!=this.dom&&!e.pmIsDeco;)e=e.parentNode;return{skip:e||!0}}update(e,r,n,s){return this.dirty==lo||this.dirty!=ei&&!this.inParent()||!e.sameMarkup(this.node)?!1:(this.updateOuterDeco(r),(this.dirty!=ei||e.text!=this.node.text)&&e.text!=this.nodeDOM.nodeValue&&(this.nodeDOM.nodeValue=e.text,s.trackWrites==this.nodeDOM&&(s.trackWrites=null)),this.node=e,this.dirty=ei,!0)}inParent(){let e=this.parent.contentDOM;for(let r=this.nodeDOM;r;r=r.parentNode)if(r==e)return!0;return!1}domFromPos(e){return{node:this.nodeDOM,offset:e}}localPosFromDOM(e,r,n){return e==this.nodeDOM?this.posAtStart+Math.min(r,this.node.text.length):super.localPosFromDOM(e,r,n)}ignoreMutation(e){return e.type!="characterData"&&e.type!="selection"}slice(e,r,n){let s=this.node.cut(e,r),i=document.createTextNode(s.text);return new qx(this.parent,s,this.outerDeco,this.innerDeco,i,i,n)}markDirty(e,r){super.markDirty(e,r),this.dom!=this.nodeDOM&&(e==0||r==this.nodeDOM.nodeValue.length)&&(this.dirty=lo)}get domAtom(){return!1}isText(e){return this.node.text==e}}class BM extends up{parseRule(){return{ignore:!0}}matchesHack(e){return this.dirty==ei&&this.dom.nodeName==e}get domAtom(){return!0}get ignoreForCoords(){return this.dom.nodeName=="IMG"}}class hY extends Ga{constructor(e,r,n,s,i,o,a,l,u,d){super(e,r,n,s,i,o,a,u,d),this.spec=l}update(e,r,n,s){if(this.dirty==lo)return!1;if(this.spec.update&&(this.node.type==e.type||this.spec.multiType)){let i=this.spec.update(e,r,n);return i&&this.updateInner(e,r,n,s),i}else return!this.contentDOM&&!e.isLeaf?!1:super.update(e,r,n,s)}selectNode(){this.spec.selectNode?this.spec.selectNode():super.selectNode()}deselectNode(){this.spec.deselectNode?this.spec.deselectNode():super.deselectNode()}setSelection(e,r,n,s){this.spec.setSelection?this.spec.setSelection(e,r,n.root):super.setSelection(e,r,n,s)}destroy(){this.spec.destroy&&this.spec.destroy(),super.destroy()}stopEvent(e){return this.spec.stopEvent?this.spec.stopEvent(e):!1}ignoreMutation(e){return this.spec.ignoreMutation?this.spec.ignoreMutation(e):super.ignoreMutation(e)}}function $M(t,e,r){let n=t.firstChild,s=!1;for(let i=0;i<e.length;i++){let o=e[i],a=o.dom;if(a.parentNode==t){for(;a!=n;)n=fk(n),s=!0;n=n.nextSibling}else s=!0,t.insertBefore(a,n);if(o instanceof ac){let l=n?n.previousSibling:t.lastChild;$M(o.contentDOM,o.children,r),n=l?l.nextSibling:t.firstChild}}for(;n;)n=fk(n),s=!0;s&&r.trackWrites==t&&(r.trackWrites=null)}const Of=function(t){t&&(this.nodeName=t)};Of.prototype=Object.create(null);const Rl=[new Of];function tb(t,e,r){if(t.length==0)return Rl;let n=r?Rl[0]:new Of,s=[n];for(let i=0;i<t.length;i++){let o=t[i].type.attrs;if(o){o.nodeName&&s.push(n=new Of(o.nodeName));for(let a in o){let l=o[a];l!=null&&(r&&s.length==1&&s.push(n=new Of(e.isInline?"span":"div")),a=="class"?n.class=(n.class?n.class+" ":"")+l:a=="style"?n.style=(n.style?n.style+";":"")+l:a!="nodeName"&&(n[a]=l))}}}return s}function zM(t,e,r,n){if(r==Rl&&n==Rl)return e;let s=e;for(let i=0;i<n.length;i++){let o=n[i],a=r[i];if(i){let l;a&&a.nodeName==o.nodeName&&s!=t&&(l=s.parentNode)&&l.nodeName.toLowerCase()==o.nodeName||(l=document.createElement(o.nodeName),l.pmIsDeco=!0,l.appendChild(s),a=Rl[0]),s=l}pY(s,a||Rl[0],o)}return s}function pY(t,e,r){for(let n in e)n!="class"&&n!="style"&&n!="nodeName"&&!(n in r)&&t.removeAttribute(n);for(let n in r)n!="class"&&n!="style"&&n!="nodeName"&&r[n]!=e[n]&&t.setAttribute(n,r[n]);
vendor: 5,799 bytes, line 671
671if(e.class!=r.class){let n=e.class?e.class.split(" ").filter(Boolean):[],s=r.class?r.class.split(" ").filter(Boolean):[];for(let i=0;i<n.length;i++)s.indexOf(n[i])==-1&&t.classList.remove(n[i]);for(let i=0;i<s.length;i++)n.indexOf(s[i])==-1&&t.classList.add(s[i]);t.classList.length==0&&t.removeAttribute("class")}if(e.style!=r.style){if(e.style){let n=/\s*([\w\-\xa1-\uffff]+)\s*:(?:"(?:\\.|[^"])*"|'(?:\\.|[^'])*'|\(.*?\)|[^;])*/g,s;for(;s=n.exec(e.style);)t.style.removeProperty(s[1])}r.style&&(t.style.cssText+=r.style)}}function UM(t,e,r){return zM(t,t,Rl,tb(e,r,t.nodeType!=1))}function z0(t,e){if(t.length!=e.length)return!1;for(let r=0;r<t.length;r++)if(!t[r].type.eq(e[r].type))return!1;return!0}function fk(t){let e=t.nextSibling;return t.parentNode.removeChild(t),e}class mY{constructor(e,r,n){this.lock=r,this.view=n,this.index=0,this.stack=[],this.changed=!1,this.top=e,this.preMatch=gY(e.node.content,e)}destroyBetween(e,r){if(e!=r){for(let n=e;n<r;n++)this.top.children[n].destroy();this.top.children.splice(e,r-e),this.changed=!0}}destroyRest(){this.destroyBetween(this.index,this.top.children.length)}syncToMarks(e,r,n,s){let i=0,o=this.stack.length>>1,a=Math.min(o,e.length);for(;i<a&&(i==o-1?this.top:this.stack[i+1<<1]).matchesMark(e[i])&&e[i].type.spec.spanning!==!1;)i++;for(;i<o;)this.destroyRest(),this.top.dirty=ei,this.index=this.stack.pop(),this.top=this.stack.pop(),o--;for(;o<e.length;){this.stack.push(this.top,this.index+1);let l=-1,u=this.top.children.length;s<this.preMatch.index&&(u=Math.min(this.index+3,u));for(let d=this.index;d<u;d++){let f=this.top.children[d];if(f.matchesMark(e[o])&&!this.isLocked(f.dom)){l=d;break}}if(l>-1)l>this.index&&(this.changed=!0,this.destroyBetween(this.index,l)),this.top=this.top.children[this.index];else{let d=ac.create(this.top,e[o],r,n);this.top.children.splice(this.index,0,d),this.top=d,this.changed=!0}this.index=0,o++}}findNodeMatch(e,r,n,s){let i=-1,o;if(s>=this.preMatch.index&&(o=this.preMatch.matches[s-this.preMatch.index]).parent==this.top&&o.matchesNode(e,r,n))i=this.top.children.indexOf(o,this.index);else for(let a=this.index,l=Math.min(this.top.children.length,a+5);a<l;a++){let u=this.top.children[a];if(u.matchesNode(e,r,n)&&!this.preMatch.matched.has(u)){i=a;break}}return i<0?!1:(this.destroyBetween(this.index,i),this.index++,!0)}updateNodeAt(e,r,n,s,i){let o=this.top.children[s];return o.dirty==lo&&o.dom==o.contentDOM&&(o.dirty=jl),o.update(e,r,n,i)?(this.destroyBetween(this.index,s),this.index++,!0):!1}findIndexWithChild(e){for(;;){let r=e.parentNode;if(!r)return-1;if(r==this.top.contentDOM){let n=e.pmViewDesc;if(n){for(let s=this.index;s<this.top.children.length;s++)if(this.top.children[s]==n)return s}return-1}e=r}}updateNextNode(e,r,n,s,i,o){for(let a=this.index;a<this.top.children.length;a++){let l=this.top.children[a];if(l instanceof Ga){let u=this.preMatch.matched.get(l);if(u!=null&&u!=i)return!1;let d=l.dom,f,h=this.isLocked(d)&&!(e.isText&&l.node&&l.node.isText&&l.nodeDOM.nodeValue==e.text&&l.dirty!=lo&&z0(r,l.outerDeco));if(!h&&l.update(e,r,n,s))return this.destroyBetween(this.index,a),l.dom!=d&&(this.changed=!0),this.index++,!0;if(!h&&(f=this.recreateWrapper(l,e,r,n,s,o)))return this.destroyBetween(this.index,a),this.top.children[this.index]=f,f.contentDOM&&(f.dirty=jl,f.updateChildren(s,o+1),f.dirty=ei),this.changed=!0,this.index++,!0;break}}return!1}recreateWrapper(e,r,n,s,i,o){if(e.dirty||r.isAtom||!e.children.length||!e.node.content.eq(r.content)||!z0(n,e.outerDeco)||!s.eq(e.innerDeco))return null;let a=Ga.create(this.top,r,n,s,i,o);if(a.contentDOM){a.children=e.children,e.children=[];for(let l of a.children)l.parent=a}return e.destroy(),a}addNode(e,r,n,s,i){let o=Ga.create(this.top,e,r,n,s,i);o.contentDOM&&o.updateChildren(s,i+1),this.top.children.splice(this.index++,0,o),this.changed=!0}placeWidget(e,r,n){let s=this.index<this.top.children.length?this.top.children[this.index]:null;if(s&&s.matchesWidget(e)&&(e==s.widget||!s.widget.type.toDOM.parentNode))this.index++;else{let i=new FM(this.top,e,r,n);this.top.children.splice(this.index++,0,i),this.changed=!0}}addTextblockHacks(){let e=this.top.children[this.index-1],r=this.top;for(;e instanceof ac;)r=e,e=r.children[r.children.length-1];(!e||!(e instanceof qx)||/\n$/.test(e.node.text)||this.view.requiresGeckoHackNode&&/\s$/.test(e.node.text))&&((kn||dn)&&e&&e.dom.contentEditable=="false"&&this.addHackNode("IMG",r),this.addHackNode("BR",this.top))}addHackNode(e,r){if(r==this.top&&this.index<r.children.length&&r.children[this.index].matchesHack(e))this.index++;else{let n=document.createElement(e);e=="IMG"&&(n.className="ProseMirror-separator",n.alt=""),e=="BR"&&(n.className="ProseMirror-trailingBreak");let s=new BM(this.top,[],n,null);r!=this.top?r.children.push(s):r.children.splice(this.index++,0,s),this.changed=!0}}isLocked(e){return this.lock&&(e==this.lock||e.nodeType==1&&e.contains(this.lock.parentNode))}}function gY(t,e){let r=e,n=r.children.length,s=t.childCount,i=new Map,o=[];e:for(;s>0;){let a;for(;;)if(n){let u=r.children[n-1];if(u instanceof ac)r=u,n=u.children.length;else{a=u,n--;break}}else{if(r==e)break e;n=r.parent.children.indexOf(r),r=r.parent}let l=a.node;if(l){if(l!=t.child(s-1))break;--s,i.set(a,s),o.push(a)}}return{index:s,matched:i,matches:o.reverse()}}function xY(t,e){return t.type.side-e.type.side}function vY(t,e,r,n){let s=e.locals(t),i=0;if(s.length==0){for(let u=0;u<t.childCount;u++){let d=t.child(u);n(d,s,e.forChild(i,d),u),i+=d.nodeSize}return}let o=0,a=[],l=null;for(let u=0;;){let d,f;for(;o<s.length&&s[o].to==i;){let x=s[o++];x.widget&&(d?(f||(f=[d])).push(x):d=x)}if(d)if(f){f.sort(xY);for(let x=0;x<f.length;x++)r(f[x],u,!!l)}else r(d,u,!!l);let h,p;if(l)p=-1,h=l,l=null;else if(u<t.childCount)p=u,h=t.child(u++);else break;for(let x=0;x<a.length;
vendor: 9,294 bytes, line 671
671x++)a[x].to<=i&&a.splice(x--,1);for(;o<s.length&&s[o].from<=i&&s[o].to>i;)a.push(s[o++]);let g=i+h.nodeSize;if(h.isText){let x=g;o<s.length&&s[o].from<x&&(x=s[o].from);for(let v=0;v<a.length;v++)a[v].to<x&&(x=a[v].to);x<g&&(l=h.cut(x-i),h=h.cut(0,x-i),g=x,p=-1)}else for(;o<s.length&&s[o].to<g;)o++;let m=h.isInline&&!h.isLeaf?a.filter(x=>!x.inline):a.slice();n(h,m,e.forChild(i,h),p),i=g}}function yY(t){if(t.nodeName=="UL"||t.nodeName=="OL"){let e=t.style.cssText;t.style.cssText=e+"; list-style: square !important",window.getComputedStyle(t).listStyle,t.style.cssText=e}}function wY(t,e,r,n){for(let s=0,i=0;s<t.childCount&&i<=n;){let o=t.child(s++),a=i;if(i+=o.nodeSize,!o.isText)continue;let l=o.text;for(;s<t.childCount;){let u=t.child(s++);if(i+=u.nodeSize,!u.isText)break;l+=u.text}if(i>=r){if(i>=n&&l.slice(n-e.length-a,n-a)==e)return n-e.length;let u=a<n?l.lastIndexOf(e,n-a-1):-1;if(u>=0&&u+e.length+a>=r)return a+u;if(r==n&&l.length>=n+e.length-a&&l.slice(n-a,n-a+e.length)==e)return n}}return-1}function rb(t,e,r,n,s){let i=[];for(let o=0,a=0;o<t.length;o++){let l=t[o],u=a,d=a+=l.size;u>=r||d<=e?i.push(l):(u<e&&i.push(l.slice(0,e-u,n)),s&&(i.push(s),s=void 0),d>r&&i.push(l.slice(r-u,l.size,n)))}return i}function OS(t,e=null){let r=t.domSelectionRange(),n=t.state.doc;if(!r.focusNode)return null;let s=t.docView.nearestDesc(r.focusNode),i=s&&s.size==0,o=t.docView.posFromDOM(r.focusNode,r.focusOffset,1);if(o<0)return null;let a=n.resolve(o),l,u;if(Wx(r)){for(l=o;s&&!s.node;)s=s.parent;let f=s.node;if(s&&f.isAtom&&We.isSelectable(f)&&s.parent&&!(f.isInline&&GX(r.focusNode,r.focusOffset,s.dom))){let h=s.posBefore;u=new We(o==h?a:n.resolve(h))}}else{if(r instanceof t.dom.ownerDocument.defaultView.Selection&&r.rangeCount>1){let f=o,h=o;for(let p=0;p<r.rangeCount;p++){let g=r.getRangeAt(p);f=Math.min(f,t.docView.posFromDOM(g.startContainer,g.startOffset,1)),h=Math.max(h,t.docView.posFromDOM(g.endContainer,g.endOffset,-1))}if(f<0)return null;[l,o]=h==t.state.selection.anchor?[h,f]:[f,h],a=n.resolve(o)}else l=t.docView.posFromDOM(r.anchorNode,r.anchorOffset,1);if(l<0)return null}let d=n.resolve(l);if(!u){let f=e=="pointer"||t.state.selection.head<a.pos&&!i?1:-1;u=PS(t,d,a,f)}return u}function HM(t){return t.editable?t.hasFocus():WM(t)&&document.activeElement&&document.activeElement.contains(t.dom)}function Oo(t,e=!1){let r=t.state.selection;if(VM(t,r),!!HM(t)){if(!e&&t.input.mouseDown&&t.input.mouseDown.allowDefault&&dn){let n=t.domSelectionRange(),s=t.domObserver.currentSelection;if(n.anchorNode&&s.anchorNode&&oc(n.anchorNode,n.anchorOffset,s.anchorNode,s.anchorOffset)){t.input.mouseDown.delayedSelectionSync=!0,t.domObserver.setCurSelection();return}}if(t.domObserver.disconnectSelection(),t.cursorWrapper)SY(t);else{let{anchor:n,head:s}=r,i,o;hk&&!(r instanceof Je)&&(r.$from.parent.inlineContent||(i=pk(t,r.from)),!r.empty&&!r.$from.parent.inlineContent&&(o=pk(t,r.to))),t.docView.setSelection(n,s,t,e),hk&&(i&&mk(i),o&&mk(o)),r.visible?t.dom.classList.remove("ProseMirror-hideselection"):(t.dom.classList.add("ProseMirror-hideselection"),"onselectionchange"in document&&bY(t))}t.domObserver.setCurSelection(),t.domObserver.connectSelection()}}const hk=kn||dn&&jM<63;function pk(t,e){let{node:r,offset:n}=t.docView.domFromPos(e,0),s=n<r.childNodes.length?r.childNodes[n]:null,i=n?r.childNodes[n-1]:null;if(kn&&s&&s.contentEditable=="false")return k1(s);if((!s||s.contentEditable=="false")&&(!i||i.contentEditable=="false")){if(s)return k1(s);if(i)return k1(i)}}function k1(t){return t.contentEditable="true",kn&&t.draggable&&(t.draggable=!1,t.wasDraggable=!0),t}function mk(t){t.contentEditable="false",t.wasDraggable&&(t.draggable=!0,t.wasDraggable=null)}function bY(t){let e=t.dom.ownerDocument;e.removeEventListener("selectionchange",t.input.hideSelectionGuard);let r=t.domSelectionRange(),n=r.anchorNode,s=r.anchorOffset;e.addEventListener("selectionchange",t.input.hideSelectionGuard=()=>{(r.anchorNode!=n||r.anchorOffset!=s)&&(e.removeEventListener("selectionchange",t.input.hideSelectionGuard),setTimeout(()=>{(!HM(t)||t.state.selection.visible)&&t.dom.classList.remove("ProseMirror-hideselection")},20))})}function SY(t){let e=t.domSelection();if(!e)return;let r=t.cursorWrapper.dom,n=r.nodeName=="IMG";n?e.collapse(r.parentNode,an(r)+1):e.collapse(r,0),!n&&!t.state.selection.visible&&as&&qa<=11&&(r.disabled=!0,r.disabled=!1)}function VM(t,e){if(e instanceof We){let r=t.docView.descAt(e.from);r!=t.lastSelectedViewDesc&&(gk(t),r&&r.selectNode(),t.lastSelectedViewDesc=r)}else gk(t)}function gk(t){t.lastSelectedViewDesc&&(t.lastSelectedViewDesc.parent&&t.lastSelectedViewDesc.deselectNode(),t.lastSelectedViewDesc=void 0)}function PS(t,e,r,n){return t.someProp("createSelectionBetween",s=>s(t,e,r))||Je.between(e,r,n)}function xk(t){return t.editable&&!t.hasFocus()?!1:WM(t)}function WM(t){let e=t.domSelectionRange();if(!e.anchorNode)return!1;try{return t.dom.contains(e.anchorNode.nodeType==3?e.anchorNode.parentNode:e.anchorNode)&&(t.editable||t.dom.contains(e.focusNode.nodeType==3?e.focusNode.parentNode:e.focusNode))}catch{return!1}}function _Y(t){let e=t.docView.domFromPos(t.state.selection.anchor,0),r=t.domSelectionRange();return oc(e.node,e.offset,r.anchorNode,r.anchorOffset)}function nb(t,e){let{$anchor:r,$head:n}=t.selection,s=e>0?r.max(n):r.min(n),i=s.parent.inlineContent?s.depth?t.doc.resolve(e>0?s.after():s.before()):null:s;return i&&ut.findFrom(i,e)}function da(t,e){return t.dispatch(t.state.tr.setSelection(e).scrollIntoView()),!0}function vk(t,e,r){let n=t.state.selection;if(n instanceof Je)if(r.indexOf("s")>-1){let{$head:s}=n,i=s.textOffset?null:e<0?s.nodeBefore:s.nodeAfter;if(!i||i.isText||!i.isLeaf)return!1;let o=t.state.doc.resolve(s.pos+i.nodeSize*(e<0?-1:1));return da(t,new Je(n.$anchor,o))}else if(n.empty){if(t.endOfTextblock(e>0?"forward":"backward")){let s=nb(t.state,e);return s&&s instanceof We?da(t,s):!1}else if(!(Vs&&r.indexOf("m")>-1)){let s=n.$head,i=s.textOffset?null:e<0?s.nodeBefore:s.nodeAfter,o;if(!i||i.isText)return!1;let a=e<0?s.pos-i.nodeSize:s.pos;return i.isAtom||(o=t.docView.descAt(a))&&!o.contentDOM?We.isSelectable(i)?da(t,new We(e<0?t.state.doc.resolve(s.pos-i.nodeSize):s)):cp?da(t,new Je(t.state.doc.resolve(e<0?a:a+i.nodeSize))):!1:!1}}else return!1;else{if(n instanceof We&&n.node.isInline)return da(t,new Je(e>0?n.$to:n.$from));{let s=nb(t.state,e);return s?da(t,s):!1}}}function U0(t){return t.nodeType==3?t.nodeValue.length:t.childNodes.length}function Pf(t,e){let r=t.pmViewDesc;return r&&r.size==0&&(e<0||t.nextSibling||t.nodeName!="BR")}function Bc(t,e){return e<0?EY(t):TY(t)}function EY(t){let e=t.domSelectionRange(),r=e.focusNode,n=e.focusOffset;if(!r)return;let s,i,o=!1;for(Zs&&r.nodeType==1&&n<U0(r)&&Pf(r.childNodes[n],-1)&&(o=!0);;)if(n>0){if(r.nodeType!=1)break;{let a=r.childNodes[n-1];if(Pf(a,-1))s=r,i=--n;else if(a.nodeType==3)r=a,n=r.nodeValue.length;else break}}else{if(qM(r))break;{let a=r.previousSibling;for(;a&&Pf(a,-1);)s=r.parentNode,i=an(a),a=a.previousSibling;if(a)r=a,n=U0(r);else{if(r=r.parentNode,r==t.dom)break;n=0}}}o?sb(t,r,n):s&&sb(t,s,i)}function TY(t){let e=t.domSelectionRange(),r=e.focusNode,n=e.focusOffset;if(!r)return;let s=U0(r),i,o;for(;;)if(n<s){if(r.nodeType!=1)break;let a=r.childNodes[n];if(Pf(a,1))i=r,o=++n;else break}else{if(qM(r))break;{let a=r.nextSibling;for(;a&&Pf(a,1);)i=a.parentNode,o=an(a)+1,a=a.nextSibling;if(a)r=a,n=0,s=U0(r);else{if(r=r.parentNode,r==t.dom)break;n=s=0}}}i&&sb(t,i,o)}function qM(t){let e=t.pmViewDesc;return e&&e.node&&e.node.isBlock}function CY(t,e){for(;t&&e==t.childNodes.length&&!lp(t);)e=an(t)+1,t=t.parentNode;for(;t&&e<t.childNodes.length;){let r=t.childNodes[e];if(r.nodeType==3)return r;if(r.nodeType==1&&r.contentEditable=="false")break;t=r,e=0}}function kY(t,e){for(;t&&!e&&!lp(t);)e=an(t),t=t.parentNode;for(;t&&e;){let r=t.childNodes[e-1];if(r.nodeType==3)return r;if(r.nodeType==1&&r.contentEditable=="false")break;t=r,e=t.childNodes.length}}function sb(t,e,r){if(e.nodeType!=3){let i,o;(o=CY(e,r))?(e=o,r=0):(i=kY(e,r))&&(e=i,r=i.nodeValue.length)}let n=t.domSelection();if(!n)return;if(Wx(n)){let i=document.createRange();i.setEnd(e,r),i.setStart(e,r),n.removeAllRanges(),n.addRange(i)}else n.extend&&n.extend(e,r);t.domObserver.setCurSelection();let{state:s}=t;setTimeout(()=>{t.state==s&&Oo(t)},50)}function yk(t,e){let r=t.state.doc.resolve(e);if(!(dn||RM)&&r.parent.inlineContent){let s=t.coordsAtPos(e);if(e>r.start()){let i=t.coordsAtPos(e-1),o=(i.top+i.bottom)/2;if(o>s.top&&o<s.bottom&&Math.abs(i.left-s.left)>1)return i.left<s.left?"ltr":"rtl"}if(e<r.end()){let i=t.coordsAtPos(e+1),o=(i.top+i.bottom)/2;if(o>s.top&&o<s.bottom&&Math.abs(i.left-s.left)>1)return i.left>s.left?"ltr":"rtl"}}return getComputedStyle(t.dom).direction=="rtl"?"rtl":"ltr"}function wk(t,e,r){let n=t.state.selection;if(n instanceof Je&&!n.empty||r.indexOf("s")>-1||Vs&&r.indexOf("m")>-1)return!1;let{$from:s,$to:i}=n;if(!s.parent.inlineContent||t.endOfTextblock(e<0?"up":"down")){let o=nb(t.state,e);if(o&&o instanceof We)return da(t,o)}if(!s.parent.inlineContent){let o=e<0?s:i,a=n instanceof Qs?ut.near(o,e):ut.findFrom(o,e);return a?da(t,a):!1}return!1}function bk(t,e){if(!(t.state.selection instanceof Je))return!0;let{$head:r,$anchor:n,empty:s}=t.state.selection;if(!r.sameParent(n))return!0;
vendor: 4,803 bytes, lines 671-674
671if(!s)return!1;if(t.endOfTextblock(e>0?"forward":"backward"))return!0;let i=!r.textOffset&&(e<0?r.nodeBefore:r.nodeAfter);if(i&&!i.isText){let o=t.state.tr;return e<0?o.delete(r.pos-i.nodeSize,r.pos):o.delete(r.pos,r.pos+i.nodeSize),t.dispatch(o),!0}return!1}function Sk(t,e,r){t.domObserver.stop(),e.contentEditable=r,t.domObserver.start()}function NY(t){if(!kn||t.state.selection.$head.parentOffset>0)return!1;let{focusNode:e,focusOffset:r}=t.domSelectionRange();if(e&&e.nodeType==1&&r==0&&e.firstChild&&e.firstChild.contentEditable=="false"){let n=e.firstChild;Sk(t,n,"true"),setTimeout(()=>Sk(t,n,"false"),20)}return!1}function AY(t){let e="";return t.ctrlKey&&(e+="c"),t.metaKey&&(e+="m"),t.altKey&&(e+="a"),t.shiftKey&&(e+="s"),e}function jY(t,e){let r=e.keyCode,n=AY(e);if(r==8||Vs&&r==72&&n=="c")return bk(t,-1)||Bc(t,-1);if(r==46&&!e.shiftKey||Vs&&r==68&&n=="c")return bk(t,1)||Bc(t,1);if(r==13||r==27)return!0;if(r==37||Vs&&r==66&&n=="c"){let s=r==37?yk(t,t.state.selection.from)=="ltr"?-1:1:-1;return vk(t,s,n)||Bc(t,s)}else if(r==39||Vs&&r==70&&n=="c"){let s=r==39?yk(t,t.state.selection.from)=="ltr"?1:-1:1;return vk(t,s,n)||Bc(t,s)}else{if(r==38||Vs&&r==80&&n=="c")return wk(t,-1,n)||Bc(t,-1);if(r==40||Vs&&r==78&&n=="c")return NY(t)||wk(t,1,n)||Bc(t,1);if(n==(Vs?"m":"c")&&(r==66||r==73||r==89||r==90))return!0}return!1}function MS(t,e){t.someProp("transformCopied",p=>{e=p(e,t)});let r=[],{content:n,openStart:s,openEnd:i}=e;for(;s>1&&i>1&&n.childCount==1&&n.firstChild.childCount==1;){s--,i--;let p=n.firstChild;r.push(p.type.name,p.attrs!=p.type.defaultAttrs?p.attrs:null),n=p.content}let o=t.someProp("clipboardSerializer")||bc.fromSchema(t.state.schema),a=QM(),l=a.createElement("div");l.appendChild(o.serializeFragment(n,{document:a}));let u=l.firstChild,d,f=0;for(;u&&u.nodeType==1&&(d=JM[u.nodeName.toLowerCase()]);){for(let p=d.length-1;p>=0;p--){let g=a.createElement(d[p]);for(;l.firstChild;)g.appendChild(l.firstChild);l.appendChild(g),f++}u=l.firstChild}u&&u.nodeType==1&&u.setAttribute("data-pm-slice",`${s} ${i}${f?` -${f}`:""} ${JSON.stringify(r)}`);let h=t.someProp("clipboardTextSerializer",p=>p(e,t))||e.content.textBetween(0,e.content.size,`
672
673`);return{dom:l,text:h,slice:e}}function GM(t,e,r,n,s){let i=s.parent.type.spec.code,o,a;if(!r&&!e)return null;let l=!!e&&(n||i||!r);if(l){if(t.someProp("transformPastedText",h=>{e=h(e,i||n,t)}),i)return a=new Le(xe.from(t.state.schema.text(e.replace(/\r\n?/g,`
674`))),0,0),t.someProp("transformPasted",h=>{a=h(a,t,!0)}),a;let f=t.someProp("clipboardTextParser",h=>h(e,s,n,t));if(f)a=f;else{let h=s.marks(),{schema:p}=t.state,g=bc.fromSchema(p);o=document.createElement("div"),e.split(/(?:\r\n?|\n)+/).forEach(m=>{let x=o.appendChild(document.createElement("p"));m&&x.appendChild(g.serializeNode(p.text(m,h)))})}}else t.someProp("transformPastedHTML",f=>{r=f(r,t)}),o=MY(r),cp&&IY(o);let u=o&&o.querySelector("[data-pm-slice]"),d=u&&/^(\d+) (\d+)(?: -(\d+))? (.*)/.exec(u.getAttribute("data-pm-slice")||"");if(d&&d[3])for(let f=+d[3];f>0;f--){let h=o.firstChild;for(;h&&h.nodeType!=1;)h=h.nextSibling;if(!h)break;o=h}if(a||(a=(t.someProp("clipboardParser")||t.someProp("domParser")||Wa.fromSchema(t.state.schema)).parseSlice(o,{preserveWhitespace:!!(l||d),context:s,ruleFromNode(h){return h.nodeName=="BR"&&!h.nextSibling&&h.parentNode&&!RY.test(h.parentNode.nodeName)?{ignore:!0}:null}})),d)a=DY(_k(a,+d[1],+d[2]),d[4]);else if(a=Le.maxOpen(OY(a.content,s),!0),a.openStart||a.openEnd){let f=0,h=0;for(let p=a.content.firstChild;f<a.openStart&&!p.type.spec.isolating;f++,p=p.firstChild);for(let p=a.content.lastChild;h<a.openEnd&&!p.type.spec.isolating;h++,p=p.lastChild);a=_k(a,f,h)}return t.someProp("transformPasted",f=>{a=f(a,t,l)}),a}const RY=/^(a|abbr|acronym|b|cite|code|del|em|i|ins|kbd|label|output|q|ruby|s|samp|span|strong|sub|sup|time|u|tt|var)$/i;function OY(t,e){if(t.childCount<2)return t;for(let r=e.depth;r>=0;r--){let s=e.node(r).contentMatchAt(e.index(r)),i,o=[];if(t.forEach(a=>{if(!o)return;let l=s.findWrapping(a.type),u;if(!l)return o=null;if(u=o.length&&i.length&&XM(l,i,a,o[o.length-1],0))o[o.length-1]=u;else{o.length&&(o[o.length-1]=YM(o[o.length-1],i.length));let d=KM(a,l);o.push(d),s=s.matchType(d.type),i=l}}),o)return xe.from(o)}return t}function KM(t,e,r=0){for(let n=e.length-1;n>=r;n--)t=e[n].create(null,xe.from(t));return t}function XM(t,e,r,n,s){if(s<t.length&&s<e.length&&t[s]==e[s]){let i=XM(t,e,r,n.lastChild,s+1);if(i)return n.copy(n.content.replaceChild(n.childCount-1,i));if(n.contentMatchAt(n.childCount).matchType(s==t.length-1?r.type:t[s+1]))return n.copy(n.content.append(xe.from(KM(r,t,s+1))))}}function YM(t,e){if(e==0)return t;let r=t.content.replaceChild(t.childCount-1,YM(t.lastChild,e-1)),n=t.contentMatchAt(t.childCount).fillBefore(xe.empty,!0);return t.copy(r.append(n))}
vendor: 4,992 bytes, line 674
674function ib(t,e,r,n,s,i){let o=e<0?t.firstChild:t.lastChild,a=o.content;return t.childCount>1&&(i=0),s<n-1&&(a=ib(a,e,r,n,s+1,i)),s>=r&&(a=e<0?o.contentMatchAt(0).fillBefore(a,i<=s).append(a):a.append(o.contentMatchAt(o.childCount).fillBefore(xe.empty,!0))),t.replaceChild(e<0?0:t.childCount-1,o.copy(a))}function _k(t,e,r){return e<t.openStart&&(t=new Le(ib(t.content,-1,e,t.openStart,0,t.openEnd),e,t.openEnd)),r<t.openEnd&&(t=new Le(ib(t.content,1,r,t.openEnd,0,0),t.openStart,r)),t}const JM={thead:["table"],tbody:["table"],tfoot:["table"],caption:["table"],colgroup:["table"],col:["table","colgroup"],tr:["table","tbody"],td:["table","tbody","tr"],th:["table","tbody","tr"]};let Ek=null;function QM(){return Ek||(Ek=document.implementation.createHTMLDocument("title"))}let N1=null;function PY(t){let e=window.trustedTypes;return e?(N1||(N1=e.defaultPolicy||e.createPolicy("ProseMirrorClipboard",{createHTML:r=>r})),N1.createHTML(t)):t}function MY(t){let e=/^(\s*<meta [^>]*>)*/.exec(t);e&&(t=t.slice(e[0].length));let r=QM().createElement("div"),n=/<([a-z][^>\s]+)/i.exec(t),s;if((s=n&&JM[n[1].toLowerCase()])&&(t=s.map(i=>"<"+i+">").join("")+t+s.map(i=>"</"+i+">").reverse().join("")),r.innerHTML=PY(t),s)for(let i=0;i<s.length;i++)r=r.querySelector(s[i])||r;return r}function IY(t){let e=t.querySelectorAll(dn?"span:not([class]):not([style])":"span.Apple-converted-space");for(let r=0;r<e.length;r++){let n=e[r];n.childNodes.length==1&&n.textContent==" "&&n.parentNode&&n.parentNode.replaceChild(t.ownerDocument.createTextNode(" "),n)}}function DY(t,e){if(!t.size)return t;let r=t.content.firstChild.type.schema,n;try{n=JSON.parse(e)}catch{return t}let{content:s,openStart:i,openEnd:o}=t;for(let a=n.length-2;a>=0;a-=2){let l=r.nodes[n[a]];if(!l||l.hasRequiredAttrs())break;s=xe.from(l.create(n[a+1],s)),i++,o++}return new Le(s,i,o)}const Hn={},Vn={},LY={touchstart:!0,touchmove:!0};class FY{constructor(){this.shiftKey=!1,this.mouseDown=null,this.lastKeyCode=null,this.lastKeyCodeTime=0,this.lastClick={time:0,x:0,y:0,type:"",button:0},this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastIOSEnter=0,this.lastIOSEnterFallbackTimeout=-1,this.lastFocus=0,this.lastTouch=0,this.lastChromeDelete=0,this.composing=!1,this.compositionNode=null,this.composingTimeout=-1,this.compositionNodes=[],this.compositionEndedAt=-2e8,this.compositionID=1,this.badSafariComposition=!1,this.compositionPendingChanges=0,this.domChangeCount=0,this.eventHandlers=Object.create(null),this.hideSelectionGuard=null}}function BY(t){for(let e in Hn){let r=Hn[e];t.dom.addEventListener(e,t.input.eventHandlers[e]=n=>{zY(t,n)&&!IS(t,n)&&(t.editable||!(n.type in Vn))&&r(t,n)},LY[e]?{passive:!0}:void 0)}kn&&t.dom.addEventListener("input",()=>null),ob(t)}function Ra(t,e){t.input.lastSelectionOrigin=e,t.input.lastSelectionTime=Date.now()}function $Y(t){t.domObserver.stop();for(let e in t.input.eventHandlers)t.dom.removeEventListener(e,t.input.eventHandlers[e]);clearTimeout(t.input.composingTimeout),clearTimeout(t.input.lastIOSEnterFallbackTimeout)}function ob(t){t.someProp("handleDOMEvents",e=>{for(let r in e)t.input.eventHandlers[r]||t.dom.addEventListener(r,t.input.eventHandlers[r]=n=>IS(t,n))})}function IS(t,e){return t.someProp("handleDOMEvents",r=>{let n=r[e.type];return n?n(t,e)||e.defaultPrevented:!1})}function zY(t,e){if(!e.bubbles)return!0;if(e.defaultPrevented)return!1;for(let r=e.target;r!=t.dom;r=r.parentNode)if(!r||r.nodeType==11||r.pmViewDesc&&r.pmViewDesc.stopEvent(e))return!1;return!0}function UY(t,e){!IS(t,e)&&Hn[e.type]&&(t.editable||!(e.type in Vn))&&Hn[e.type](t,e)}Vn.keydown=(t,e)=>{let r=e;if(t.input.shiftKey=r.keyCode==16||r.shiftKey,!e3(t,r)&&(t.input.lastKeyCode=r.keyCode,t.input.lastKeyCodeTime=Date.now(),!(jo&&dn&&r.keyCode==13)))if(r.keyCode!=229&&t.domObserver.forceFlush(),cd&&r.keyCode==13&&!r.ctrlKey&&!r.altKey&&!r.metaKey){let n=Date.now();t.input.lastIOSEnter=n,t.input.lastIOSEnterFallbackTimeout=setTimeout(()=>{t.input.lastIOSEnter==n&&(t.someProp("handleKeyDown",s=>s(t,El(13,"Enter"))),t.input.lastIOSEnter=0)},200)}else t.someProp("handleKeyDown",n=>n(t,r))||jY(t,r)?r.preventDefault():Ra(t,"key")};Vn.keyup=(t,e)=>{e.keyCode==16&&(t.input.shiftKey=!1)};Vn.keypress=(t,e)=>{let r=e;if(e3(t,r)||!r.charCode||r.ctrlKey&&!r.altKey||Vs&&r.metaKey)return;if(t.someProp("handleKeyPress",s=>s(t,r))){r.preventDefault();return}let n=t.state.selection;if(!(n instanceof Je)||!n.$from.sameParent(n.$to)){let s=String.fromCharCode(r.charCode),i=()=>t.state.tr.insertText(s).scrollIntoView();!/[\r\n]/.test(s)&&!t.someProp("handleTextInput",o=>o(t,n.$from.pos,n.$to.pos,s,i))&&t.dispatch(i()),r.preventDefault()}};function Gx(t){return{left:t.clientX,top:t.clientY}}function HY(t,e){let r=e.x-t.clientX,n=e.y-t.clientY;return r*r+n*n<100}function DS(t,e,r,n,s){if(n==-1)return!1;let i=t.state.doc.resolve(n);for(let o=i.depth+1;o>0;o--)if(t.someProp(e,a=>o>i.depth?a(t,r,i.nodeAfter,i.before(o),s,!0):a(t,r,i.node(o),i.before(o),s,!1)))return!0;return!1}
vendor: 5,722 bytes, line 674
674function ju(t,e,r){if(t.focused||t.focus(),t.state.selection.eq(e))return;let n=t.state.tr.setSelection(e);n.setMeta("pointer",!0),t.dispatch(n)}function VY(t,e){if(e==-1)return!1;let r=t.state.doc.resolve(e),n=r.nodeAfter;return n&&n.isAtom&&We.isSelectable(n)?(ju(t,new We(r)),!0):!1}function WY(t,e){if(e==-1)return!1;let r=t.state.selection,n,s;r instanceof We&&(n=r.node);let i=t.state.doc.resolve(e);for(let o=i.depth+1;o>0;o--){let a=o>i.depth?i.nodeAfter:i.node(o);if(We.isSelectable(a)){n&&r.$from.depth>0&&o>=r.$from.depth&&i.before(r.$from.depth+1)==r.$from.pos?s=i.before(r.$from.depth):s=i.before(o);break}}return s!=null?(ju(t,We.create(t.state.doc,s)),!0):!1}function qY(t,e,r,n,s){return DS(t,"handleClickOn",e,r,n)||t.someProp("handleClick",i=>i(t,e,n))||(s?WY(t,r):VY(t,r))}function GY(t,e,r,n){return DS(t,"handleDoubleClickOn",e,r,n)||t.someProp("handleDoubleClick",s=>s(t,e,n))}function KY(t,e,r,n){return DS(t,"handleTripleClickOn",e,r,n)||t.someProp("handleTripleClick",s=>s(t,e,n))||XY(t,r,n)}function XY(t,e,r){if(r.button!=0)return!1;let n=t.state.doc;if(e==-1)return n.inlineContent?(ju(t,Je.create(n,0,n.content.size)),!0):!1;let s=n.resolve(e);for(let i=s.depth+1;i>0;i--){let o=i>s.depth?s.nodeAfter:s.node(i),a=s.before(i);if(o.inlineContent)ju(t,Je.create(n,a+1,a+1+o.content.size));else if(We.isSelectable(o))ju(t,We.create(n,a));else continue;return!0}}function LS(t){return H0(t)}const ZM=Vs?"metaKey":"ctrlKey";Hn.mousedown=(t,e)=>{let r=e;t.input.shiftKey=r.shiftKey;let n=LS(t),s=Date.now(),i="singleClick";s-t.input.lastClick.time<500&&HY(r,t.input.lastClick)&&!r[ZM]&&t.input.lastClick.button==r.button&&(t.input.lastClick.type=="singleClick"?i="doubleClick":t.input.lastClick.type=="doubleClick"&&(i="tripleClick")),t.input.lastClick={time:s,x:r.clientX,y:r.clientY,type:i,button:r.button};let o=t.posAtCoords(Gx(r));o&&(i=="singleClick"?(t.input.mouseDown&&t.input.mouseDown.done(),t.input.mouseDown=new YY(t,o,r,!!n)):(i=="doubleClick"?GY:KY)(t,o.pos,o.inside,r)?r.preventDefault():Ra(t,"pointer"))};class YY{constructor(e,r,n,s){this.view=e,this.pos=r,this.event=n,this.flushed=s,this.delayedSelectionSync=!1,this.mightDrag=null,this.startDoc=e.state.doc,this.selectNode=!!n[ZM],this.allowDefault=n.shiftKey;let i,o;if(r.inside>-1)i=e.state.doc.nodeAt(r.inside),o=r.inside;else{let d=e.state.doc.resolve(r.pos);i=d.parent,o=d.depth?d.before():0}const a=s?null:n.target,l=a?e.docView.nearestDesc(a,!0):null;this.target=l&&l.nodeDOM.nodeType==1?l.nodeDOM:null;let{selection:u}=e.state;n.button==0&&(i.type.spec.draggable&&i.type.spec.selectable!==!1||u instanceof We&&u.from<=o&&u.to>o)&&(this.mightDrag={node:i,pos:o,addAttr:!!(this.target&&!this.target.draggable),setUneditable:!!(this.target&&Zs&&!this.target.hasAttribute("contentEditable"))}),this.target&&this.mightDrag&&(this.mightDrag.addAttr||this.mightDrag.setUneditable)&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&(this.target.draggable=!0),this.mightDrag.setUneditable&&setTimeout(()=>{this.view.input.mouseDown==this&&this.target.setAttribute("contentEditable","false")},20),this.view.domObserver.start()),e.root.addEventListener("mouseup",this.up=this.up.bind(this)),e.root.addEventListener("mousemove",this.move=this.move.bind(this)),Ra(e,"pointer")}done(){this.view.root.removeEventListener("mouseup",this.up),this.view.root.removeEventListener("mousemove",this.move),this.mightDrag&&this.target&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&this.target.removeAttribute("draggable"),this.mightDrag.setUneditable&&this.target.removeAttribute("contentEditable"),this.view.domObserver.start()),this.delayedSelectionSync&&setTimeout(()=>Oo(this.view)),this.view.input.mouseDown=null}up(e){if(this.done(),!this.view.dom.contains(e.target))return;let r=this.pos;this.view.state.doc!=this.startDoc&&(r=this.view.posAtCoords(Gx(e))),this.updateAllowDefault(e),this.allowDefault||!r?Ra(this.view,"pointer"):qY(this.view,r.pos,r.inside,e,this.selectNode)?e.preventDefault():e.button==0&&(this.flushed||kn&&this.mightDrag&&!this.mightDrag.node.isAtom||dn&&!this.view.state.selection.visible&&Math.min(Math.abs(r.pos-this.view.state.selection.from),Math.abs(r.pos-this.view.state.selection.to))<=2)?(ju(this.view,ut.near(this.view.state.doc.resolve(r.pos))),e.preventDefault()):Ra(this.view,"pointer")}move(e){this.updateAllowDefault(e),Ra(this.view,"pointer"),e.buttons==0&&this.done()}updateAllowDefault(e){!this.allowDefault&&(Math.abs(this.event.x-e.clientX)>4||Math.abs(this.event.y-e.clientY)>4)&&(this.allowDefault=!0)}}Hn.touchstart=t=>{t.input.lastTouch=Date.now(),LS(t),Ra(t,"pointer")};Hn.touchmove=t=>{t.input.lastTouch=Date.now(),Ra(t,"pointer")};Hn.contextmenu=t=>LS(t);function e3(t,e){return t.composing?!0:kn&&Math.abs(e.timeStamp-t.input.compositionEndedAt)<500?(t.input.compositionEndedAt=-2e8,!0):!1}const JY=jo?5e3:-1;Vn.compositionstart=Vn.compositionupdate=t=>{if(!t.composing){t.domObserver.flush();let{state:e}=t,r=e.selection.$to;if(e.selection instanceof Je&&(e.storedMarks||!r.textOffset&&r.parentOffset&&r.nodeBefore.marks.some(n=>n.type.spec.inclusive===!1)||dn&&RM&&QY(t)))t.markCursor=t.state.storedMarks||r.marks(),H0(t,!0),t.markCursor=null;else if(H0(t,!e.selection.empty),Zs&&e.selection.empty&&r.parentOffset&&!r.textOffset&&r.nodeBefore.marks.length){let n=t.domSelectionRange();for(let s=n.focusNode,i=n.focusOffset;s&&s.nodeType==1&&i!=0;){let o=i<0?s.lastChild:s.childNodes[i-1];if(!o)break;if(o.nodeType==3){let a=t.domSelection();a&&a.collapse(o,o.nodeValue.length);break}else s=o,i=-1}}t.input.composing=!0}t3(t,JY)};function QY(t){let{focusNode:e,focusOffset:r}=t.domSelectionRange();if(!e||e.nodeType!=1||r>=e.childNodes.length)return!1;let n=e.childNodes[r];
vendor: 4,182 bytes, line 674
674return n.nodeType==1&&n.contentEditable=="false"}Vn.compositionend=(t,e)=>{t.composing&&(t.input.composing=!1,t.input.compositionEndedAt=e.timeStamp,t.input.compositionPendingChanges=t.domObserver.pendingRecords().length?t.input.compositionID:0,t.input.compositionNode=null,t.input.badSafariComposition?t.domObserver.forceFlush():t.input.compositionPendingChanges&&Promise.resolve().then(()=>t.domObserver.flush()),t.input.compositionID++,t3(t,20))};function t3(t,e){clearTimeout(t.input.composingTimeout),e>-1&&(t.input.composingTimeout=setTimeout(()=>H0(t),e))}function r3(t){for(t.composing&&(t.input.composing=!1,t.input.compositionEndedAt=eJ());t.input.compositionNodes.length>0;)t.input.compositionNodes.pop().markParentsDirty()}function ZY(t){let e=t.domSelectionRange();if(!e.focusNode)return null;let r=WX(e.focusNode,e.focusOffset),n=qX(e.focusNode,e.focusOffset);if(r&&n&&r!=n){let s=n.pmViewDesc,i=t.domObserver.lastChangedTextNode;if(r==i||n==i)return i;if(!s||!s.isText(n.nodeValue))return n;if(t.input.compositionNode==n){let o=r.pmViewDesc;if(!(!o||!o.isText(r.nodeValue)))return n}}return r||n}function eJ(){let t=document.createEvent("Event");return t.initEvent("event",!0,!0),t.timeStamp}function H0(t,e=!1){if(!(jo&&t.domObserver.flushingSoon>=0)){if(t.domObserver.forceFlush(),r3(t),e||t.docView&&t.docView.dirty){let r=OS(t),n=t.state.selection;return r&&!r.eq(n)?t.dispatch(t.state.tr.setSelection(r)):(t.markCursor||e)&&!n.$from.node(n.$from.sharedDepth(n.to)).inlineContent?t.dispatch(t.state.tr.deleteSelection()):t.updateState(t.state),!0}return!1}}function tJ(t,e){if(!t.dom.parentNode)return;let r=t.dom.parentNode.appendChild(document.createElement("div"));r.appendChild(e),r.style.cssText="position: fixed; left: -10000px; top: 10px";let n=getSelection(),s=document.createRange();s.selectNodeContents(e),t.dom.blur(),n.removeAllRanges(),n.addRange(s),setTimeout(()=>{r.parentNode&&r.parentNode.removeChild(r),t.focus()},50)}const Ch=as&&qa<15||cd&&YX<604;Hn.copy=Vn.cut=(t,e)=>{let r=e,n=t.state.selection,s=r.type=="cut";if(n.empty)return;let i=Ch?null:r.clipboardData,o=n.content(),{dom:a,text:l}=MS(t,o);i?(r.preventDefault(),i.clearData(),i.setData("text/html",a.innerHTML),i.setData("text/plain",l)):tJ(t,a),s&&t.dispatch(t.state.tr.deleteSelection().scrollIntoView().setMeta("uiEvent","cut"))};function rJ(t){return t.openStart==0&&t.openEnd==0&&t.content.childCount==1?t.content.firstChild:null}function nJ(t,e){if(!t.dom.parentNode)return;let r=t.input.shiftKey||t.state.selection.$from.parent.type.spec.code,n=t.dom.parentNode.appendChild(document.createElement(r?"textarea":"div"));r||(n.contentEditable="true"),n.style.cssText="position: fixed; left: -10000px; top: 10px",n.focus();let s=t.input.shiftKey&&t.input.lastKeyCode!=45;setTimeout(()=>{t.focus(),n.parentNode&&n.parentNode.removeChild(n),r?kh(t,n.value,null,s,e):kh(t,n.textContent,n.innerHTML,s,e)},50)}function kh(t,e,r,n,s){let i=GM(t,e,r,n,t.state.selection.$from);if(t.someProp("handlePaste",l=>l(t,s,i||Le.empty)))return!0;if(!i)return!1;let o=rJ(i),a=o?t.state.tr.replaceSelectionWith(o,n):t.state.tr.replaceSelection(i);return t.dispatch(a.scrollIntoView().setMeta("paste",!0).setMeta("uiEvent","paste")),!0}function n3(t){let e=t.getData("text/plain")||t.getData("Text");if(e)return e;let r=t.getData("text/uri-list");return r?r.replace(/\r?\n/g," "):""}Vn.paste=(t,e)=>{let r=e;if(t.composing&&!jo)return;let n=Ch?null:r.clipboardData,s=t.input.shiftKey&&t.input.lastKeyCode!=45;n&&kh(t,n3(n),n.getData("text/html"),s,r)?r.preventDefault():nJ(t,r)};class s3{constructor(e,r,n){this.slice=e,this.move=r,this.node=n}}const sJ=Vs?"altKey":"ctrlKey";function i3(t,e){let r;return t.someProp("dragCopies",n=>{r=r||n(e)}),r!=null?!r:!e[sJ]}Hn.dragstart=(t,e)=>{let r=e,n=t.input.mouseDown;if(n&&n.done(),!r.dataTransfer)return;let s=t.state.selection,i=s.empty?null:t.posAtCoords(Gx(r)),o;if(!(i&&i.pos>=s.from&&i.pos<=(s instanceof We?s.to-1:s.to))){if(n&&n.mightDrag)o=We.create(t.state.doc,n.mightDrag.pos);else if(r.target&&r.target.nodeType==1){let f=t.docView.nearestDesc(r.target,!0);f&&f.node.type.spec.draggable&&f!=t.docView&&(o=We.create(t.state.doc,f.posBefore))}}
vendor: 8,770 bytes, line 674
674let a=(o||t.state.selection).content(),{dom:l,text:u,slice:d}=MS(t,a);(!r.dataTransfer.files.length||!dn||jM>120)&&r.dataTransfer.clearData(),r.dataTransfer.setData(Ch?"Text":"text/html",l.innerHTML),r.dataTransfer.effectAllowed="copyMove",Ch||r.dataTransfer.setData("text/plain",u),t.dragging=new s3(d,i3(t,r),o)};Hn.dragend=t=>{let e=t.dragging;window.setTimeout(()=>{t.dragging==e&&(t.dragging=null)},50)};Vn.dragover=Vn.dragenter=(t,e)=>e.preventDefault();Vn.drop=(t,e)=>{try{iJ(t,e,t.dragging)}finally{t.dragging=null}};function iJ(t,e,r){if(!e.dataTransfer)return;let n=t.posAtCoords(Gx(e));if(!n)return;let s=t.state.doc.resolve(n.pos),i=r&&r.slice;i?t.someProp("transformPasted",p=>{i=p(i,t,!1)}):i=GM(t,n3(e.dataTransfer),Ch?null:e.dataTransfer.getData("text/html"),!1,s);let o=!!(r&&i3(t,e));if(t.someProp("handleDrop",p=>p(t,e,i||Le.empty,o))){e.preventDefault();return}if(!i)return;e.preventDefault();let a=i?mM(t.state.doc,s.pos,i):s.pos;a==null&&(a=s.pos);let l=t.state.tr;if(o){let{node:p}=r;p?p.replace(l):l.deleteSelection()}let u=l.mapping.map(a),d=i.openStart==0&&i.openEnd==0&&i.content.childCount==1,f=l.doc;if(d?l.replaceRangeWith(u,u,i.content.firstChild):l.replaceRange(u,u,i),l.doc.eq(f))return;let h=l.doc.resolve(u);if(d&&We.isSelectable(i.content.firstChild)&&h.nodeAfter&&h.nodeAfter.sameMarkup(i.content.firstChild))l.setSelection(new We(h));else{let p=l.mapping.map(a);l.mapping.maps[l.mapping.maps.length-1].forEach((g,m,x,v)=>p=v),l.setSelection(PS(t,h,l.doc.resolve(p)))}t.focus(),t.dispatch(l.setMeta("uiEvent","drop"))}Hn.focus=t=>{t.input.lastFocus=Date.now(),t.focused||(t.domObserver.stop(),t.dom.classList.add("ProseMirror-focused"),t.domObserver.start(),t.focused=!0,setTimeout(()=>{t.docView&&t.hasFocus()&&!t.domObserver.currentSelection.eq(t.domSelectionRange())&&Oo(t)},20))};Hn.blur=(t,e)=>{let r=e;t.focused&&(t.domObserver.stop(),t.dom.classList.remove("ProseMirror-focused"),t.domObserver.start(),r.relatedTarget&&t.dom.contains(r.relatedTarget)&&t.domObserver.currentSelection.clear(),t.focused=!1)};Hn.beforeinput=(t,e)=>{if(dn&&jo&&e.inputType=="deleteContentBackward"){t.domObserver.flushSoon();let{domChangeCount:n}=t.input;setTimeout(()=>{if(t.input.domChangeCount!=n||(t.dom.blur(),t.focus(),t.someProp("handleKeyDown",i=>i(t,El(8,"Backspace")))))return;let{$cursor:s}=t.state.selection;s&&s.pos>0&&t.dispatch(t.state.tr.delete(s.pos-1,s.pos).scrollIntoView())},50)}};for(let t in Vn)Hn[t]=Vn[t];function Nh(t,e){if(t==e)return!0;for(let r in t)if(t[r]!==e[r])return!1;for(let r in e)if(!(r in t))return!1;return!0}class V0{constructor(e,r){this.toDOM=e,this.spec=r||Wl,this.side=this.spec.side||0}map(e,r,n,s){let{pos:i,deleted:o}=e.mapResult(r.from+s,this.side<0?-1:1);return o?null:new Bn(i-n,i-n,this)}valid(){return!0}eq(e){return this==e||e instanceof V0&&(this.spec.key&&this.spec.key==e.spec.key||this.toDOM==e.toDOM&&Nh(this.spec,e.spec))}destroy(e){this.spec.destroy&&this.spec.destroy(e)}}class Ka{constructor(e,r){this.attrs=e,this.spec=r||Wl}map(e,r,n,s){let i=e.map(r.from+s,this.spec.inclusiveStart?-1:1)-n,o=e.map(r.to+s,this.spec.inclusiveEnd?1:-1)-n;return i>=o?null:new Bn(i,o,this)}valid(e,r){return r.from<r.to}eq(e){return this==e||e instanceof Ka&&Nh(this.attrs,e.attrs)&&Nh(this.spec,e.spec)}static is(e){return e.type instanceof Ka}destroy(){}}class FS{constructor(e,r){this.attrs=e,this.spec=r||Wl}map(e,r,n,s){let i=e.mapResult(r.from+s,1);if(i.deleted)return null;let o=e.mapResult(r.to+s,-1);return o.deleted||o.pos<=i.pos?null:new Bn(i.pos-n,o.pos-n,this)}valid(e,r){let{index:n,offset:s}=e.content.findIndex(r.from),i;return s==r.from&&!(i=e.child(n)).isText&&s+i.nodeSize==r.to}eq(e){return this==e||e instanceof FS&&Nh(this.attrs,e.attrs)&&Nh(this.spec,e.spec)}destroy(){}}class Bn{constructor(e,r,n){this.from=e,this.to=r,this.type=n}copy(e,r){return new Bn(e,r,this.type)}eq(e,r=0){return this.type.eq(e.type)&&this.from+r==e.from&&this.to+r==e.to}map(e,r,n){return this.type.map(e,this,r,n)}static widget(e,r,n){return new Bn(e,e,new V0(r,n))}static inline(e,r,n,s){return new Bn(e,r,new Ka(n,s))}static node(e,r,n,s){return new Bn(e,r,new FS(n,s))}get spec(){return this.type.spec}get inline(){return this.type instanceof Ka}get widget(){return this.type instanceof V0}}const Zc=[],Wl={};class er{constructor(e,r){this.local=e.length?e:Zc,this.children=r.length?r:Zc}static create(e,r){return r.length?W0(r,e,0,Wl):Sn}find(e,r,n){let s=[];return this.findInner(e??0,r??1e9,s,0,n),s}findInner(e,r,n,s,i){for(let o=0;o<this.local.length;o++){let a=this.local[o];a.from<=r&&a.to>=e&&(!i||i(a.spec))&&n.push(a.copy(a.from+s,a.to+s))}for(let o=0;o<this.children.length;o+=3)if(this.children[o]<r&&this.children[o+1]>e){let a=this.children[o]+1;this.children[o+2].findInner(e-a,r-a,n,s+a,i)}}map(e,r,n){return this==Sn||e.maps.length==0?this:this.mapInner(e,r,0,0,n||Wl)}mapInner(e,r,n,s,i){let o;for(let a=0;a<this.local.length;a++){let l=this.local[a].map(e,n,s);l&&l.type.valid(r,l)?(o||(o=[])).push(l):i.onRemove&&i.onRemove(this.local[a].spec)}return this.children.length?oJ(this.children,o||[],e,r,n,s,i):o?new er(o.sort(ql),Zc):Sn}add(e,r){return r.length?this==Sn?er.create(e,r):this.addInner(e,r,0):this}addInner(e,r,n){let s,i=0;e.forEach((a,l)=>{let u=l+n,d;if(d=a3(r,a,u)){for(s||(s=this.children.slice());i<s.length&&s[i]<l;)i+=3;s[i]==l?s[i+2]=s[i+2].addInner(a,d,u+1):s.splice(i,0,l,l+a.nodeSize,W0(d,a,u+1,Wl)),i+=3}});let o=o3(i?l3(r):r,-n);for(let a=0;a<o.length;a++)o[a].type.valid(e,o[a])||o.splice(a--,1);return new er(o.length?this.local.concat(o).sort(ql):this.local,s||this.children)}remove(e){return e.length==0||this==Sn?this:this.removeInner(e,0)}removeInner(e,r){let n=this.children,s=this.local;for(let i=0;i<n.length;i+=3){let o,a=n[i]+r,l=n[i+1]+r;for(let d=0,f;d<e.length;d++)(f=e[d])&&f.from>a&&f.to<l&&(e[d]=null,(o||(o=[])).push(f));if(!o)continue;n==this.children&&(n=this.children.slice());let u=n[i+2].removeInner(o,a+1);u!=Sn?n[i+2]=u:(n.splice(i,3),i-=3)}if(s.length){for(let i=0,o;i<e.length;i++)if(o=e[i])for(let a=0;a<s.length;a++)s[a].eq(o,r)&&(s==this.local&&(s=this.local.slice()),s.splice(a--,1))}return n==this.children&&s==this.local?this:s.length||n.length?new er(s,n):Sn}forChild(e,r){if(this==Sn)return this;if(r.isLeaf)return er.empty;let n,s;for(let a=0;a<this.children.length;a+=3)if(this.children[a]>=e){this.children[a]==e&&(n=this.children[a+2]);break}let i=e+1,o=i+r.content.size;for(let a=0;a<this.local.length;a++){let l=this.local[a];if(l.from<o&&l.to>i&&l.type instanceof Ka){let u=Math.max(i,l.from)-i,d=Math.min(o,l.to)-i;u<d&&(s||(s=[])).push(l.copy(u,d))}}if(s){let a=new er(s.sort(ql),Zc);return n?new xa([a,n]):a}return n||Sn}eq(e){if(this==e)return!0;if(!(e instanceof er)||this.local.length!=e.local.length||this.children.length!=e.children.length)return!1;for(let r=0;r<this.local.length;r++)if(!this.local[r].eq(e.local[r]))return!1;for(let r=0;r<this.children.length;r+=3)if(this.children[r]!=e.children[r]||this.children[r+1]!=e.children[r+1]||!this.children[r+2].eq(e.children[r+2]))return!1;return!0}locals(e){return BS(this.localsInner(e))}localsInner(e){if(this==Sn)return Zc;if(e.inlineContent||!this.local.some(Ka.is))return this.local;let r=[];for(let n=0;n<this.local.length;n++)this.local[n].type instanceof Ka||r.push(this.local[n]);return r}forEachSet(e){e(this)}}er.empty=new er([],[]);er.removeOverlap=BS;const Sn=er.empty;class xa{constructor(e){this.members=e}map(e,r){const n=this.members.map(s=>s.map(e,r,Wl));return xa.from(n)}forChild(e,r){if(r.isLeaf)return er.empty;let n=[];for(let s=0;s<this.members.length;s++){let i=this.members[s].forChild(e,r);i!=Sn&&(i instanceof xa?n=n.concat(i.members):n.push(i))}return xa.from(n)}eq(e){if(!(e instanceof xa)||e.members.length!=this.members.length)return!1;for(let r=0;r<this.members.length;r++)if(!this.members[r].eq(e.members[r]))return!1;return!0}locals(e){let r,n=!0;for(let s=0;s<this.members.length;s++){let i=this.members[s].localsInner(e);if(i.length)if(!r)r=i;else{n&&(r=r.slice(),n=!1);for(let o=0;o<i.length;o++)r.push(i[o])}}return r?BS(n?r:r.sort(ql)):Zc}static from(e){switch(e.length){case 0:return Sn;case 1:return e[0];default:return new xa(e.every(r=>r instanceof er)?e:e.reduce((r,n)=>r.concat(n instanceof er?n:n.members),[]))}}forEachSet(e){for(let r=0;r<this.members.length;r++)this.members[r].forEachSet(e)}}function oJ(t,e,r,n,s,i,o){let a=t.slice();for(let u=0,d=i;u<r.maps.length;u++){let f=0;r.maps[u].forEach((h,p,g,m)=>{let x=m-g-(p-h);for(let v=0;v<a.length;v+=3){let y=a[v+1];if(y<0||h>y+d-f)continue;let b=a[v]+d-f;p>=b?a[v+1]=h<=b?-2:-1:h>=d&&x&&(a[v]+=x,a[v+1]+=x)}f+=x}),d=r.maps[u].map(d,-1)}let l=!1;for(let u=0;u<a.length;u+=3)if(a[u+1]<0){if(a[u+1]==-2){l=!0,a[u+1]=-1;continue}let d=r.map(t[u]+i),f=d-s;
vendor: 9,884 bytes, line 674
674if(f<0||f>=n.content.size){l=!0;continue}let h=r.map(t[u+1]+i,-1),p=h-s,{index:g,offset:m}=n.content.findIndex(f),x=n.maybeChild(g);if(x&&m==f&&m+x.nodeSize==p){let v=a[u+2].mapInner(r,x,d+1,t[u]+i+1,o);v!=Sn?(a[u]=f,a[u+1]=p,a[u+2]=v):(a[u+1]=-2,l=!0)}else l=!0}if(l){let u=aJ(a,t,e,r,s,i,o),d=W0(u,n,0,o);e=d.local;for(let f=0;f<a.length;f+=3)a[f+1]<0&&(a.splice(f,3),f-=3);for(let f=0,h=0;f<d.children.length;f+=3){let p=d.children[f];for(;h<a.length&&a[h]<p;)h+=3;a.splice(h,0,d.children[f],d.children[f+1],d.children[f+2])}}return new er(e.sort(ql),a)}function o3(t,e){if(!e||!t.length)return t;let r=[];for(let n=0;n<t.length;n++){let s=t[n];r.push(new Bn(s.from+e,s.to+e,s.type))}return r}function aJ(t,e,r,n,s,i,o){function a(l,u){for(let d=0;d<l.local.length;d++){let f=l.local[d].map(n,s,u);f?r.push(f):o.onRemove&&o.onRemove(l.local[d].spec)}for(let d=0;d<l.children.length;d+=3)a(l.children[d+2],l.children[d]+u+1)}for(let l=0;l<t.length;l+=3)t[l+1]==-1&&a(t[l+2],e[l]+i+1);return r}function a3(t,e,r){if(e.isLeaf)return null;let n=r+e.nodeSize,s=null;for(let i=0,o;i<t.length;i++)(o=t[i])&&o.from>r&&o.to<n&&((s||(s=[])).push(o),t[i]=null);return s}function l3(t){let e=[];for(let r=0;r<t.length;r++)t[r]!=null&&e.push(t[r]);return e}function W0(t,e,r,n){let s=[],i=!1;e.forEach((a,l)=>{let u=a3(t,a,l+r);if(u){i=!0;let d=W0(u,a,r+l+1,n);d!=Sn&&s.push(l,l+a.nodeSize,d)}});let o=o3(i?l3(t):t,-r).sort(ql);for(let a=0;a<o.length;a++)o[a].type.valid(e,o[a])||(n.onRemove&&n.onRemove(o[a].spec),o.splice(a--,1));return o.length||s.length?new er(o,s):Sn}function ql(t,e){return t.from-e.from||t.to-e.to}function BS(t){let e=t;for(let r=0;r<e.length-1;r++){let n=e[r];if(n.from!=n.to)for(let s=r+1;s<e.length;s++){let i=e[s];if(i.from==n.from){i.to!=n.to&&(e==t&&(e=t.slice()),e[s]=i.copy(i.from,n.to),Tk(e,s+1,i.copy(n.to,i.to)));continue}else{i.from<n.to&&(e==t&&(e=t.slice()),e[r]=n.copy(n.from,i.from),Tk(e,s,n.copy(i.from,n.to)));break}}}return e}function Tk(t,e,r){for(;e<t.length&&ql(r,t[e])>0;)e++;t.splice(e,0,r)}function A1(t){let e=[];return t.someProp("decorations",r=>{let n=r(t.state);n&&n!=Sn&&e.push(n)}),t.cursorWrapper&&e.push(er.create(t.state.doc,[t.cursorWrapper.deco])),xa.from(e)}const lJ={childList:!0,characterData:!0,characterDataOldValue:!0,attributes:!0,attributeOldValue:!0,subtree:!0},cJ=as&&qa<=11;class uJ{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}set(e){this.anchorNode=e.anchorNode,this.anchorOffset=e.anchorOffset,this.focusNode=e.focusNode,this.focusOffset=e.focusOffset}clear(){this.anchorNode=this.focusNode=null}eq(e){return e.anchorNode==this.anchorNode&&e.anchorOffset==this.anchorOffset&&e.focusNode==this.focusNode&&e.focusOffset==this.focusOffset}}class dJ{constructor(e,r){this.view=e,this.handleDOMChange=r,this.queue=[],this.flushingSoon=-1,this.observer=null,this.currentSelection=new uJ,this.onCharData=null,this.suppressingSelectionUpdates=!1,this.lastChangedTextNode=null,this.observer=window.MutationObserver&&new window.MutationObserver(n=>{for(let s=0;s<n.length;s++)this.queue.push(n[s]);as&&qa<=11&&n.some(s=>s.type=="childList"&&s.removedNodes.length||s.type=="characterData"&&s.oldValue.length>s.target.nodeValue.length)?this.flushSoon():kn&&e.composing&&n.some(s=>s.type=="childList"&&s.target.nodeName=="TR")?(e.input.badSafariComposition=!0,this.flushSoon()):this.flush()}),cJ&&(this.onCharData=n=>{this.queue.push({target:n.target,type:"characterData",oldValue:n.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this)}flushSoon(){this.flushingSoon<0&&(this.flushingSoon=window.setTimeout(()=>{this.flushingSoon=-1,this.flush()},20))}forceFlush(){this.flushingSoon>-1&&(window.clearTimeout(this.flushingSoon),this.flushingSoon=-1,this.flush())}start(){this.observer&&(this.observer.takeRecords(),this.observer.observe(this.view.dom,lJ)),this.onCharData&&this.view.dom.addEventListener("DOMCharacterDataModified",this.onCharData),this.connectSelection()}stop(){if(this.observer){let e=this.observer.takeRecords();if(e.length){for(let r=0;r<e.length;r++)this.queue.push(e[r]);window.setTimeout(()=>this.flush(),20)}this.observer.disconnect()}this.onCharData&&this.view.dom.removeEventListener("DOMCharacterDataModified",this.onCharData),this.disconnectSelection()}connectSelection(){this.view.dom.ownerDocument.addEventListener("selectionchange",this.onSelectionChange)}disconnectSelection(){this.view.dom.ownerDocument.removeEventListener("selectionchange",this.onSelectionChange)}suppressSelectionUpdates(){this.suppressingSelectionUpdates=!0,setTimeout(()=>this.suppressingSelectionUpdates=!1,50)}onSelectionChange(){if(xk(this.view)){if(this.suppressingSelectionUpdates)return Oo(this.view);if(as&&qa<=11&&!this.view.state.selection.empty){let e=this.view.domSelectionRange();if(e.focusNode&&oc(e.focusNode,e.focusOffset,e.anchorNode,e.anchorOffset))return this.flushSoon()}this.flush()}}setCurSelection(){this.currentSelection.set(this.view.domSelectionRange())}ignoreSelectionChange(e){if(!e.focusNode)return!0;let r=new Set,n;for(let i=e.focusNode;i;i=ld(i))r.add(i);for(let i=e.anchorNode;i;i=ld(i))if(r.has(i)){n=i;break}let s=n&&this.view.docView.nearestDesc(n);if(s&&s.ignoreMutation({type:"selection",target:n.nodeType==3?n.parentNode:n}))return this.setCurSelection(),!0}pendingRecords(){if(this.observer)for(let e of this.observer.takeRecords())this.queue.push(e);return this.queue}flush(){let{view:e}=this;if(!e.docView||this.flushingSoon>-1)return;let r=this.pendingRecords();r.length&&(this.queue=[]);let n=e.domSelectionRange(),s=!this.suppressingSelectionUpdates&&!this.currentSelection.eq(n)&&xk(e)&&!this.ignoreSelectionChange(n),i=-1,o=-1,a=!1,l=[];if(e.editable)for(let d=0;d<r.length;d++){let f=this.registerMutation(r[d],l);f&&(i=i<0?f.from:Math.min(f.from,i),o=o<0?f.to:Math.max(f.to,o),f.typeOver&&(a=!0))}if(l.some(d=>d.nodeName=="BR")&&(e.input.lastKeyCode==8||e.input.lastKeyCode==46)){for(let d of l)if(d.nodeName=="BR"&&d.parentNode){let f=d.nextSibling;for(;f&&f.nodeType==1;){if(f.contentEditable=="false"){d.parentNode.removeChild(d);break}f=f.firstChild}}}else if(Zs&&l.length){let d=l.filter(f=>f.nodeName=="BR");if(d.length==2){let[f,h]=d;f.parentNode&&f.parentNode.parentNode==h.parentNode?h.remove():f.remove()}else{let{focusNode:f}=this.currentSelection;for(let h of d){let p=h.parentNode;p&&p.nodeName=="LI"&&(!f||pJ(e,f)!=p)&&h.remove()}}}let u=null;i<0&&s&&e.input.lastFocus>Date.now()-200&&Math.max(e.input.lastTouch,e.input.lastClick.time)<Date.now()-300&&Wx(n)&&(u=OS(e))&&u.eq(ut.near(e.state.doc.resolve(0),1))?(e.input.lastFocus=0,Oo(e),this.currentSelection.set(n),e.scrollToSelection()):(i>-1||s)&&(i>-1&&(e.docView.markDirty(i,o),fJ(e)),e.input.badSafariComposition&&(e.input.badSafariComposition=!1,mJ(e,l)),this.handleDOMChange(i,o,a,l),e.docView&&e.docView.dirty?e.updateState(e.state):this.currentSelection.eq(n)||Oo(e),this.currentSelection.set(n))}registerMutation(e,r){if(r.indexOf(e.target)>-1)return null;let n=this.view.docView.nearestDesc(e.target);if(e.type=="attributes"&&(n==this.view.docView||e.attributeName=="contenteditable"||e.attributeName=="style"&&!e.oldValue&&!e.target.getAttribute("style"))||!n||n.ignoreMutation(e))return null;if(e.type=="childList"){for(let d=0;d<e.addedNodes.length;d++){let f=e.addedNodes[d];r.push(f),f.nodeType==3&&(this.lastChangedTextNode=f)}if(n.contentDOM&&n.contentDOM!=n.dom&&!n.contentDOM.contains(e.target))return{from:n.posBefore,to:n.posAfter};let s=e.previousSibling,i=e.nextSibling;if(as&&qa<=11&&e.addedNodes.length)for(let d=0;d<e.addedNodes.length;d++){let{previousSibling:f,nextSibling:h}=e.addedNodes[d];(!f||Array.prototype.indexOf.call(e.addedNodes,f)<0)&&(s=f),(!h||Array.prototype.indexOf.call(e.addedNodes,h)<0)&&(i=h)}let o=s&&s.parentNode==e.target?an(s)+1:0,a=n.localPosFromDOM(e.target,o,-1),l=i&&i.parentNode==e.target?an(i):e.target.childNodes.length,u=n.localPosFromDOM(e.target,l,1);return{from:a,to:u}}else return e.type=="attributes"?{from:n.posAtStart-n.border,to:n.posAtEnd+n.border}:(this.lastChangedTextNode=e.target,{from:n.posAtStart,to:n.posAtEnd,typeOver:e.target.nodeValue==e.oldValue})}}let Ck=new WeakMap,kk=!1;function fJ(t){if(!Ck.has(t)&&(Ck.set(t,null),["normal","nowrap","pre-line"].indexOf(getComputedStyle(t.dom).whiteSpace)!==-1)){if(t.requiresGeckoHackNode=Zs,kk)return;console.warn("ProseMirror expects the CSS white-space property to be set, preferably to 'pre-wrap'. It is recommended to load style/prosemirror.css from the prosemirror-view package."),kk=!0}}function Nk(t,e){let r=e.startContainer,n=e.startOffset,s=e.endContainer,i=e.endOffset,o=t.domAtPos(t.state.selection.anchor);return oc(o.node,o.offset,s,i)&&([r,n,s,i]=[s,i,r,n]),{anchorNode:r,anchorOffset:n,focusNode:s,focusOffset:i}}function hJ(t,e){if(e.getComposedRanges){let s=e.getComposedRanges(t.root)[0];if(s)return Nk(t,s)}let r;function n(s){s.preventDefault(),s.stopImmediatePropagation(),r=s.getTargetRanges()[0]}return t.dom.addEventListener("beforeinput",n,!0),document.execCommand("indent"),t.dom.removeEventListener("beforeinput",n,!0),r?Nk(t,r):null}function pJ(t,e){for(let r=e.parentNode;r&&r!=t.dom;r=r.parentNode){let n=t.docView.nearestDesc(r,!0);if(n&&n.node.isBlock)return r}return null}function mJ(t,e){var r;let{focusNode:n,focusOffset:s}=t.domSelectionRange();for(let i of e)if(((r=i.parentNode)===null||r===void 0?void 0:r.nodeName)=="TR"){let o=i.nextSibling;for(;o&&o.nodeName!="TD"&&o.nodeName!="TH";)o=o.nextSibling;if(o){let a=o;for(;;){let l=a.firstChild;if(!l||l.nodeType!=1||l.contentEditable=="false"||/^(BR|IMG)$/.test(l.nodeName))break;a=l}a.insertBefore(i,a.firstChild),n==i&&t.domSelection().collapse(i,s)}else i.parentNode.removeChild(i)}}function gJ(t,e,r){let{node:n,fromOffset:s,toOffset:i,from:o,to:a}=t.docView.parseRange(e,r),l=t.domSelectionRange(),u,d=l.anchorNode;
vendor: 9,832 bytes, line 674
674if(d&&t.dom.contains(d.nodeType==1?d:d.parentNode)&&(u=[{node:d,offset:l.anchorOffset}],Wx(l)||u.push({node:l.focusNode,offset:l.focusOffset})),dn&&t.input.lastKeyCode===8)for(let x=i;x>s;x--){let v=n.childNodes[x-1],y=v.pmViewDesc;if(v.nodeName=="BR"&&!y){i=x;break}if(!y||y.size)break}let f=t.state.doc,h=t.someProp("domParser")||Wa.fromSchema(t.state.schema),p=f.resolve(o),g=null,m=h.parse(n,{topNode:p.parent,topMatch:p.parent.contentMatchAt(p.index()),topOpen:!0,from:s,to:i,preserveWhitespace:p.parent.type.whitespace=="pre"?"full":!0,findPositions:u,ruleFromNode:xJ,context:p});if(u&&u[0].pos!=null){let x=u[0].pos,v=u[1]&&u[1].pos;v==null&&(v=x),g={anchor:x+o,head:v+o}}return{doc:m,sel:g,from:o,to:a}}function xJ(t){let e=t.pmViewDesc;if(e)return e.parseRule();if(t.nodeName=="BR"&&t.parentNode){if(kn&&/^(ul|ol)$/i.test(t.parentNode.nodeName)){let r=document.createElement("div");return r.appendChild(document.createElement("li")),{skip:r}}else if(t.parentNode.lastChild==t||kn&&/^(tr|table)$/i.test(t.parentNode.nodeName))return{ignore:!0}}else if(t.nodeName=="IMG"&&t.getAttribute("mark-placeholder"))return{ignore:!0};return null}const vJ=/^(a|abbr|acronym|b|bd[io]|big|br|button|cite|code|data(list)?|del|dfn|em|i|img|ins|kbd|label|map|mark|meter|output|q|ruby|s|samp|small|span|strong|su[bp]|time|u|tt|var)$/i;function yJ(t,e,r,n,s){let i=t.input.compositionPendingChanges||(t.composing?t.input.compositionID:0);if(t.input.compositionPendingChanges=0,e<0){let _=t.input.lastSelectionTime>Date.now()-50?t.input.lastSelectionOrigin:null,A=OS(t,_);if(A&&!t.state.selection.eq(A)){if(dn&&jo&&t.input.lastKeyCode===13&&Date.now()-100<t.input.lastKeyCodeTime&&t.someProp("handleKeyDown",D=>D(t,El(13,"Enter"))))return;let N=t.state.tr.setSelection(A);_=="pointer"?N.setMeta("pointer",!0):_=="key"&&N.scrollIntoView(),i&&N.setMeta("composition",i),t.dispatch(N)}return}let o=t.state.doc.resolve(e),a=o.sharedDepth(r);e=o.before(a+1),r=t.state.doc.resolve(r).after(a+1);let l=t.state.selection,u=gJ(t,e,r),d=t.state.doc,f=d.slice(u.from,u.to),h,p;t.input.lastKeyCode===8&&Date.now()-100<t.input.lastKeyCodeTime?(h=t.state.selection.to,p="end"):(h=t.state.selection.from,p="start"),t.input.lastKeyCode=null;let g=SJ(f.content,u.doc.content,u.from,h,p);if(g&&t.input.domChangeCount++,(cd&&t.input.lastIOSEnter>Date.now()-225||jo)&&s.some(_=>_.nodeType==1&&!vJ.test(_.nodeName))&&(!g||g.endA>=g.endB)&&t.someProp("handleKeyDown",_=>_(t,El(13,"Enter")))){t.input.lastIOSEnter=0;return}if(!g)if(n&&l instanceof Je&&!l.empty&&l.$head.sameParent(l.$anchor)&&!t.composing&&!(u.sel&&u.sel.anchor!=u.sel.head))g={start:l.from,endA:l.to,endB:l.to};else{if(u.sel){let _=Ak(t,t.state.doc,u.sel);if(_&&!_.eq(t.state.selection)){let A=t.state.tr.setSelection(_);i&&A.setMeta("composition",i),t.dispatch(A)}}return}t.state.selection.from<t.state.selection.to&&g.start==g.endB&&t.state.selection instanceof Je&&(g.start>t.state.selection.from&&g.start<=t.state.selection.from+2&&t.state.selection.from>=u.from?g.start=t.state.selection.from:g.endA<t.state.selection.to&&g.endA>=t.state.selection.to-2&&t.state.selection.to<=u.to&&(g.endB+=t.state.selection.to-g.endA,g.endA=t.state.selection.to)),as&&qa<=11&&g.endB==g.start+1&&g.endA==g.start&&g.start>u.from&&u.doc.textBetween(g.start-u.from-1,g.start-u.from+1)=="  "&&(g.start--,g.endA--,g.endB--);let m=u.doc.resolveNoCache(g.start-u.from),x=u.doc.resolveNoCache(g.endB-u.from),v=d.resolve(g.start),y=m.sameParent(x)&&m.parent.inlineContent&&v.end()>=g.endA;if((cd&&t.input.lastIOSEnter>Date.now()-225&&(!y||s.some(_=>_.nodeName=="DIV"||_.nodeName=="P"))||!y&&m.pos<u.doc.content.size&&(!m.sameParent(x)||!m.parent.inlineContent)&&m.pos<x.pos&&!/\S/.test(u.doc.textBetween(m.pos,x.pos,"","")))&&t.someProp("handleKeyDown",_=>_(t,El(13,"Enter")))){t.input.lastIOSEnter=0;return}if(t.state.selection.anchor>g.start&&bJ(d,g.start,g.endA,m,x)&&t.someProp("handleKeyDown",_=>_(t,El(8,"Backspace")))){jo&&dn&&t.domObserver.suppressSelectionUpdates();return}dn&&g.endB==g.start&&(t.input.lastChromeDelete=Date.now()),jo&&!y&&m.start()!=x.start()&&x.parentOffset==0&&m.depth==x.depth&&u.sel&&u.sel.anchor==u.sel.head&&u.sel.head==g.endA&&(g.endB-=2,x=u.doc.resolveNoCache(g.endB-u.from),setTimeout(()=>{t.someProp("handleKeyDown",function(_){return _(t,El(13,"Enter"))})},20));let b=g.start,S=g.endA,E=_=>{let A=_||t.state.tr.replace(b,S,u.doc.slice(g.start-u.from,g.endB-u.from));if(u.sel){let N=Ak(t,A.doc,u.sel);N&&!(dn&&t.composing&&N.empty&&(g.start!=g.endB||t.input.lastChromeDelete<Date.now()-100)&&(N.head==b||N.head==A.mapping.map(S)-1)||as&&N.empty&&N.head==b)&&A.setSelection(N)}return i&&A.setMeta("composition",i),A.scrollIntoView()},C;if(y)if(m.pos==x.pos){as&&qa<=11&&m.parentOffset==0&&(t.domObserver.suppressSelectionUpdates(),setTimeout(()=>Oo(t),20));let _=E(t.state.tr.delete(b,S)),A=d.resolve(g.start).marksAcross(d.resolve(g.endA));A&&_.ensureMarks(A),t.dispatch(_)}else if(g.endA==g.endB&&(C=wJ(m.parent.content.cut(m.parentOffset,x.parentOffset),v.parent.content.cut(v.parentOffset,g.endA-v.start())))){let _=E(t.state.tr);C.type=="add"?_.addMark(b,S,C.mark):_.removeMark(b,S,C.mark),t.dispatch(_)}else if(m.parent.child(m.index()).isText&&m.index()==x.index()-(x.textOffset?0:1)){let _=m.parent.textBetween(m.parentOffset,x.parentOffset),A=()=>E(t.state.tr.insertText(_,b,S));t.someProp("handleTextInput",N=>N(t,b,S,_,A))||t.dispatch(A())}else t.dispatch(E());else t.dispatch(E())}function Ak(t,e,r){return Math.max(r.anchor,r.head)>e.content.size?null:PS(t,e.resolve(r.anchor),e.resolve(r.head))}function wJ(t,e){let r=t.firstChild.marks,n=e.firstChild.marks,s=r,i=n,o,a,l;for(let d=0;d<n.length;d++)s=n[d].removeFromSet(s);for(let d=0;d<r.length;d++)i=r[d].removeFromSet(i);if(s.length==1&&i.length==0)a=s[0],o="add",l=d=>d.mark(a.addToSet(d.marks));else if(s.length==0&&i.length==1)a=i[0],o="remove",l=d=>d.mark(a.removeFromSet(d.marks));else return null;let u=[];for(let d=0;d<e.childCount;d++)u.push(l(e.child(d)));if(xe.from(u).eq(t))return{mark:a,type:o}}function bJ(t,e,r,n,s){if(r-e<=s.pos-n.pos||j1(n,!0,!1)<s.pos)return!1;let i=t.resolve(e);if(!n.parent.isTextblock){let a=i.nodeAfter;return a!=null&&r==e+a.nodeSize}if(i.parentOffset<i.parent.content.size||!i.parent.isTextblock)return!1;let o=t.resolve(j1(i,!0,!0));return!o.parent.isTextblock||o.pos>r||j1(o,!0,!1)<r?!1:n.parent.content.cut(n.parentOffset).eq(o.parent.content)}function j1(t,e,r){let n=t.depth,s=e?t.end():t.pos;for(;n>0&&(e||t.indexAfter(n)==t.node(n).childCount);)n--,s++,e=!1;if(r){let i=t.node(n).maybeChild(t.indexAfter(n));for(;i&&!i.isLeaf;)i=i.firstChild,s++}return s}function SJ(t,e,r,n,s){let i=t.findDiffStart(e,r);if(i==null)return null;let{a:o,b:a}=t.findDiffEnd(e,r+t.size,r+e.size);if(s=="end"){let l=Math.max(0,i-Math.min(o,a));n-=o+l-i}if(o<i&&t.size<e.size){let l=n<=i&&n>=o?i-n:0;i-=l,i&&i<e.size&&jk(e.textBetween(i-1,i+1))&&(i+=l?1:-1),a=i+(a-o),o=i}else if(a<i){let l=n<=i&&n>=a?i-n:0;i-=l,i&&i<t.size&&jk(t.textBetween(i-1,i+1))&&(i+=l?1:-1),o=i+(o-a),a=i}return{start:i,endA:o,endB:a}}function jk(t){if(t.length!=2)return!1;let e=t.charCodeAt(0),r=t.charCodeAt(1);return e>=56320&&e<=57343&&r>=55296&&r<=56319}class c3{constructor(e,r){this._root=null,this.focused=!1,this.trackWrites=null,this.mounted=!1,this.markCursor=null,this.cursorWrapper=null,this.lastSelectedViewDesc=void 0,this.input=new FY,this.prevDirectPlugins=[],this.pluginViews=[],this.requiresGeckoHackNode=!1,this.dragging=null,this._props=r,this.state=r.state,this.directPlugins=r.plugins||[],this.directPlugins.forEach(Ik),this.dispatch=this.dispatch.bind(this),this.dom=e&&e.mount||document.createElement("div"),e&&(e.appendChild?e.appendChild(this.dom):typeof e=="function"?e(this.dom):e.mount&&(this.mounted=!0)),this.editable=Pk(this),Ok(this),this.nodeViews=Mk(this),this.docView=dk(this.state.doc,Rk(this),A1(this),this.dom,this),this.domObserver=new dJ(this,(n,s,i,o)=>yJ(this,n,s,i,o)),this.domObserver.start(),BY(this),this.updatePluginViews()}get composing(){return this.input.composing}get props(){if(this._props.state!=this.state){let e=this._props;this._props={};for(let r in e)this._props[r]=e[r];this._props.state=this.state}return this._props}update(e){e.handleDOMEvents!=this._props.handleDOMEvents&&ob(this);let r=this._props;this._props=e,e.plugins&&(e.plugins.forEach(Ik),this.directPlugins=e.plugins),this.updateStateInner(e.state,r)}setProps(e){let r={};for(let n in this._props)r[n]=this._props[n];r.state=this.state;for(let n in e)r[n]=e[n];this.update(r)}updateState(e){this.updateStateInner(e,this._props)}updateStateInner(e,r){var n;let s=this.state,i=!1,o=!1;e.storedMarks&&this.composing&&(r3(this),o=!0),this.state=e;let a=s.plugins!=e.plugins||this._props.plugins!=r.plugins;if(a||this._props.plugins!=r.plugins||this._props.nodeViews!=r.nodeViews){let p=Mk(this);EJ(p,this.nodeViews)&&(this.nodeViews=p,i=!0)}(a||r.handleDOMEvents!=this._props.handleDOMEvents)&&ob(this),this.editable=Pk(this),Ok(this);let l=A1(this),u=Rk(this),d=s.plugins!=e.plugins&&!s.doc.eq(e.doc)?"reset":e.scrollToSelection>s.scrollToSelection?"to selection":"preserve",f=i||!this.docView.matchesNode(e.doc,u,l);(f||!e.selection.eq(s.selection))&&(o=!0);let h=d=="preserve"&&o&&this.dom.style.overflowAnchor==null&&ZX(this);if(o){this.domObserver.stop();let p=f&&(as||dn)&&!this.composing&&!s.selection.empty&&!e.selection.empty&&_J(s.selection,e.selection);if(f){let g=dn?this.trackWrites=this.domSelectionRange().focusNode:null;this.composing&&(this.input.compositionNode=ZY(this)),(i||!this.docView.update(e.doc,u,l,this))&&(this.docView.updateOuterDeco(u),this.docView.destroy(),this.docView=dk(e.doc,u,l,this.dom,this)),g&&(!this.trackWrites||!this.dom.contains(this.trackWrites))&&(p=!0)}p||!(this.input.mouseDown&&this.domObserver.currentSelection.eq(this.domSelectionRange())&&_Y
vendor: 4,229 bytes, line 674
674(this))?Oo(this,p):(VM(this,e.selection),this.domObserver.setCurSelection()),this.domObserver.start()}this.updatePluginViews(s),!((n=this.dragging)===null||n===void 0)&&n.node&&!s.doc.eq(e.doc)&&this.updateDraggedNode(this.dragging,s),d=="reset"?this.dom.scrollTop=0:d=="to selection"?this.scrollToSelection():h&&eY(h)}scrollToSelection(){let e=this.domSelectionRange().focusNode;if(!(!e||!this.dom.contains(e.nodeType==1?e:e.parentNode))){if(!this.someProp("handleScrollToSelection",r=>r(this)))if(this.state.selection instanceof We){let r=this.docView.domAfterPos(this.state.selection.from);r.nodeType==1&&ik(this,r.getBoundingClientRect(),e)}else ik(this,this.coordsAtPos(this.state.selection.head,1),e)}}destroyPluginViews(){let e;for(;e=this.pluginViews.pop();)e.destroy&&e.destroy()}updatePluginViews(e){if(!e||e.plugins!=this.state.plugins||this.directPlugins!=this.prevDirectPlugins){this.prevDirectPlugins=this.directPlugins,this.destroyPluginViews();for(let r=0;r<this.directPlugins.length;r++){let n=this.directPlugins[r];n.spec.view&&this.pluginViews.push(n.spec.view(this))}for(let r=0;r<this.state.plugins.length;r++){let n=this.state.plugins[r];n.spec.view&&this.pluginViews.push(n.spec.view(this))}}else for(let r=0;r<this.pluginViews.length;r++){let n=this.pluginViews[r];n.update&&n.update(this,e)}}updateDraggedNode(e,r){let n=e.node,s=-1;if(n.from<this.state.doc.content.size&&this.state.doc.nodeAt(n.from)==n.node)s=n.from;else{let i=n.from+(this.state.doc.content.size-r.doc.content.size);(i>0&&i<this.state.doc.content.size&&this.state.doc.nodeAt(i))==n.node&&(s=i)}this.dragging=new s3(e.slice,e.move,s<0?void 0:We.create(this.state.doc,s))}someProp(e,r){let n=this._props&&this._props[e],s;if(n!=null&&(s=r?r(n):n))return s;for(let o=0;o<this.directPlugins.length;o++){let a=this.directPlugins[o].props[e];if(a!=null&&(s=r?r(a):a))return s}let i=this.state.plugins;if(i)for(let o=0;o<i.length;o++){let a=i[o].props[e];if(a!=null&&(s=r?r(a):a))return s}}hasFocus(){if(as){let e=this.root.activeElement;if(e==this.dom)return!0;if(!e||!this.dom.contains(e))return!1;for(;e&&this.dom!=e&&this.dom.contains(e);){if(e.contentEditable=="false")return!1;e=e.parentElement}return!0}return this.root.activeElement==this.dom}focus(){this.domObserver.stop(),this.editable&&tY(this.dom),Oo(this),this.domObserver.start()}get root(){let e=this._root;if(e==null){for(let r=this.dom.parentNode;r;r=r.parentNode)if(r.nodeType==9||r.nodeType==11&&r.host)return r.getSelection||(Object.getPrototypeOf(r).getSelection=()=>r.ownerDocument.getSelection()),this._root=r}return e||document}updateRoot(){this._root=null}posAtCoords(e){return oY(this,e)}coordsAtPos(e,r=1){return DM(this,e,r)}domAtPos(e,r=0){return this.docView.domFromPos(e,r)}nodeDOM(e){let r=this.docView.descAt(e);return r?r.nodeDOM:null}posAtDOM(e,r,n=-1){let s=this.docView.posFromDOM(e,r,n);if(s==null)throw new RangeError("DOM position not inside the editor");return s}endOfTextblock(e,r){return dY(this,r||this.state,e)}pasteHTML(e,r){return kh(this,"",e,!1,r||new ClipboardEvent("paste"))}pasteText(e,r){return kh(this,e,null,!0,r||new ClipboardEvent("paste"))}serializeForClipboard(e){return MS(this,e)}destroy(){this.docView&&($Y(this),this.destroyPluginViews(),this.mounted?(this.docView.update(this.state.doc,[],A1(this),this),this.dom.textContent=""):this.dom.parentNode&&this.dom.parentNode.removeChild(this.dom),this.docView.destroy(),this.docView=null,HX())}get isDestroyed(){return this.docView==null}dispatchEvent(e){return UY(this,e)}domSelectionRange(){let e=this.domSelection();return e?kn&&this.root.nodeType===11&&KX(this.dom.ownerDocument)==this.dom&&hJ(this,e)||e:{focusNode:null,focusOffset:0,anchorNode:null,anchorOffset:0}}domSelection(){return this.root.getSelection()}}c3.prototype.dispatch=function(t){let e=this._props.dispatchTransaction;e?e.call(this,t):this.updateState(this.state.apply(t))};function Rk(t){let e=Object.create(null);return e.class="ProseMirror",e.contenteditable=String(t.editable),t.someProp("attributes",r=>{if(typeof r=="function"&&(r=r(t.state)),r)for(let n in r)n=="class"?e.class+=" "+r[n]:n=="style"?e.style=(e.style?e.style+";":"")+r[n]:!e[n]&&n!="contenteditable"&&n!="nodeName"&&(e[n]=String(r[n]))}
vendor: 6,789 bytes, line 674
674),e.translate||(e.translate="no"),[Bn.node(0,t.state.doc.content.size,e)]}function Ok(t){if(t.markCursor){let e=document.createElement("img");e.className="ProseMirror-separator",e.setAttribute("mark-placeholder","true"),e.setAttribute("alt",""),t.cursorWrapper={dom:e,deco:Bn.widget(t.state.selection.from,e,{raw:!0,marks:t.markCursor})}}else t.cursorWrapper=null}function Pk(t){return!t.someProp("editable",e=>e(t.state)===!1)}function _J(t,e){let r=Math.min(t.$anchor.sharedDepth(t.head),e.$anchor.sharedDepth(e.head));return t.$anchor.start(r)!=e.$anchor.start(r)}function Mk(t){let e=Object.create(null);function r(n){for(let s in n)Object.prototype.hasOwnProperty.call(e,s)||(e[s]=n[s])}return t.someProp("nodeViews",r),t.someProp("markViews",r),e}function EJ(t,e){let r=0,n=0;for(let s in t){if(t[s]!=e[s])return!0;r++}for(let s in e)n++;return r!=n}function Ik(t){if(t.spec.state||t.spec.filterTransaction||t.spec.appendTransaction)throw new RangeError("Plugins passed directly to the view must not have a state component")}var rl={8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},q0={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},TJ=typeof navigator<"u"&&/Mac/.test(navigator.platform),CJ=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);for(var ln=0;ln<10;ln++)rl[48+ln]=rl[96+ln]=String(ln);for(var ln=1;ln<=24;ln++)rl[ln+111]="F"+ln;for(var ln=65;ln<=90;ln++)rl[ln]=String.fromCharCode(ln+32),q0[ln]=String.fromCharCode(ln);for(var R1 in rl)q0.hasOwnProperty(R1)||(q0[R1]=rl[R1]);function kJ(t){var e=TJ&&t.metaKey&&t.shiftKey&&!t.ctrlKey&&!t.altKey||CJ&&t.shiftKey&&t.key&&t.key.length==1||t.key=="Unidentified",r=!e&&t.key||(t.shiftKey?q0:rl)[t.keyCode]||t.key||"Unidentified";return r=="Esc"&&(r="Escape"),r=="Del"&&(r="Delete"),r=="Left"&&(r="ArrowLeft"),r=="Up"&&(r="ArrowUp"),r=="Right"&&(r="ArrowRight"),r=="Down"&&(r="ArrowDown"),r}const NJ=typeof navigator<"u"&&/Mac|iP(hone|[oa]d)/.test(navigator.platform),AJ=typeof navigator<"u"&&/Win/.test(navigator.platform);function jJ(t){let e=t.split(/-(?!$)/),r=e[e.length-1];r=="Space"&&(r=" ");let n,s,i,o;for(let a=0;a<e.length-1;a++){let l=e[a];if(/^(cmd|meta|m)$/i.test(l))o=!0;else if(/^a(lt)?$/i.test(l))n=!0;else if(/^(c|ctrl|control)$/i.test(l))s=!0;else if(/^s(hift)?$/i.test(l))i=!0;else if(/^mod$/i.test(l))NJ?o=!0:s=!0;else throw new Error("Unrecognized modifier name: "+l)}return n&&(r="Alt-"+r),s&&(r="Ctrl-"+r),o&&(r="Meta-"+r),i&&(r="Shift-"+r),r}function RJ(t){let e=Object.create(null);for(let r in t)e[jJ(r)]=t[r];return e}function O1(t,e,r=!0){return e.altKey&&(t="Alt-"+t),e.ctrlKey&&(t="Ctrl-"+t),e.metaKey&&(t="Meta-"+t),r&&e.shiftKey&&(t="Shift-"+t),t}function OJ(t){return new nr({props:{handleKeyDown:u3(t)}})}function u3(t){let e=RJ(t);return function(r,n){let s=kJ(n),i,o=e[O1(s,n)];if(o&&o(r.state,r.dispatch,r))return!0;if(s.length==1&&s!=" "){if(n.shiftKey){let a=e[O1(s,n,!1)];if(a&&a(r.state,r.dispatch,r))return!0}if((n.altKey||n.metaKey||n.ctrlKey)&&!(AJ&&n.ctrlKey&&n.altKey)&&(i=rl[n.keyCode])&&i!=s){let a=e[O1(i,n)];if(a&&a(r.state,r.dispatch,r))return!0}}return!1}}var PJ=Object.defineProperty,$S=(t,e)=>{for(var r in e)PJ(t,r,{get:e[r],enumerable:!0})};function Kx(t){const{state:e,transaction:r}=t;let{selection:n}=r,{doc:s}=r,{storedMarks:i}=r;return{...e,apply:e.apply.bind(e),applyTransaction:e.applyTransaction.bind(e),plugins:e.plugins,schema:e.schema,reconfigure:e.reconfigure.bind(e),toJSON:e.toJSON.bind(e),get storedMarks(){return i},get selection(){return n},get doc(){return s},get tr(){return n=r.selection,s=r.doc,i=r.storedMarks,r}}}var Xx=class{constructor(t){this.editor=t.editor,this.rawCommands=this.editor.extensionManager.commands,this.customState=t.state}get hasCustomState(){return!!this.customState}get state(){return this.customState||this.editor.state}get commands(){const{rawCommands:t,editor:e,state:r}=this,{view:n}=e,{tr:s}=r,i=this.buildProps(s);return Object.fromEntries(Object.entries(t).map(([o,a])=>[o,(...u)=>{const d=a(...u)(i);return!s.getMeta("preventDispatch")&&!this.hasCustomState&&n.dispatch(s),d}]))}get chain(){return()=>this.createChain()}get can(){return()=>this.createCan()}createChain(t,e=!0){const{rawCommands:r,editor:n,state:s}=this,{view:i}=n,o=[],a=!!t,l=t||s.tr,u=()=>(!a&&e&&!l.getMeta("preventDispatch")&&!this.hasCustomState&&i.dispatch(l),o.every(f=>f===!0)),d={...Object.fromEntries(Object.entries(r).map(([f,h])=>[f,(...g)=>{const m=this.buildProps(l,e),x=h(...g)(m);return o.push(x),d}])),run:u};return d}createCan(t){const{rawCommands:e,state:r}=this,n=!1,s=t||r.tr,i=this.buildProps(s,n);return{...Object.fromEntries(Object.entries(e).map(([a,l])=>[a,(...u)=>l(...u)({...i,dispatch:void 0})])),chain:()=>this.createChain(s,n)}}buildProps(t,e=!0){const{rawCommands:r,editor:n,state:s}=this,{view:i}=n,o={tr:t,editor:n,view:i,state:Kx({state:s,transaction:t}),dispatch:e?()=>{}:void 0,chain:()=>this.createChain(t,e),can:()=>this.createCan(t),get commands(){return Object.fromEntries(Object.entries(r).map(([a,l])=>[a,(...u)=>l(...u)(o)]))}};return o}},d3={};$S(d3,{blur:()=>MJ,clearContent:()=>IJ,clearNodes:()=>DJ,command:()=>LJ,createParagraphNear:()=>FJ,cut:()=>BJ,deleteCurrentNode:()=>$J,deleteNode:()=>zJ,deleteRange:()=>UJ,deleteSelection:()=>WJ,enter:()=>qJ,exitCode:()=>GJ,extendMarkRange:()=>KJ,first:()=>XJ,focus:()=>JJ,forEach:()=>QJ,insertContent:()=>ZJ,insertContentAt:()=>rQ,joinBackward:()=>iQ,joinDown:()=>sQ,joinForward:()=>oQ,joinItemBackward:()=>aQ,joinItemForward:()=>lQ,joinTextblockBackward:()=>cQ,joinTextblockForward:()=>uQ,joinUp:()=>nQ,keyboardShortcut:()=>fQ,lift:()=>hQ,liftEmptyBlock:()=>pQ,liftListItem:()=>mQ,newlineInCode:()=>gQ,resetAttributes:()=>xQ,scrollIntoView:()=>vQ,selectAll:()=>yQ,selectNodeBackward:()=>wQ,selectNodeForward:()=>bQ,selectParentNode:()=>SQ,selectTextblockEnd:()=>_Q,selectTextblockStart:()=>EQ,setContent:()=>TQ,setMark:()=>qQ,setMeta:()=>GQ,setNode:()=>KQ,setNodeSelection:()=>XQ,setTextDirection:()=>YQ,setTextSelection:()=>JQ,sinkListItem:()=>QQ,splitBlock:()=>ZQ,splitListItem:()=>eZ,toggleList:()=>rZ,toggleMark:()=>nZ,toggleNode:()=>sZ,toggleWrap:()=>iZ,undoInputRule:()=>
vendor: 6,546 bytes, line 674
674oZ,unsetAllMarks:()=>aZ,unsetMark:()=>lZ,unsetTextDirection:()=>cZ,updateAttributes:()=>uZ,wrapIn:()=>dZ,wrapInList:()=>fZ});var MJ=()=>({editor:t,view:e})=>(requestAnimationFrame(()=>{var r;t.isDestroyed||(e.dom.blur(),(r=window==null?void 0:window.getSelection())==null||r.removeAllRanges())}),!0),IJ=(t=!0)=>({commands:e})=>e.setContent("",{emitUpdate:t}),DJ=()=>({state:t,tr:e,dispatch:r})=>{const{selection:n}=e,{ranges:s}=n;return r&&s.forEach(({$from:i,$to:o})=>{t.doc.nodesBetween(i.pos,o.pos,(a,l)=>{if(a.type.isText)return;const{doc:u,mapping:d}=e,f=u.resolve(d.map(l)),h=u.resolve(d.map(l+a.nodeSize)),p=f.blockRange(h);if(!p)return;const g=Nd(p);if(a.type.isTextblock){const{defaultType:m}=f.parent.contentMatchAt(f.index());e.setNodeMarkup(p.start,m)}(g||g===0)&&e.lift(p,g)})}),!0},LJ=t=>e=>t(e),FJ=()=>({state:t,dispatch:e})=>AX(t,e),BJ=(t,e)=>({editor:r,tr:n})=>{const{state:s}=r,i=s.doc.slice(t.from,t.to);n.deleteRange(t.from,t.to);const o=n.mapping.map(e);return n.insert(o,i.content),n.setSelection(new Je(n.doc.resolve(Math.max(o-1,0)))),!0},$J=()=>({tr:t,dispatch:e})=>{const{selection:r}=t,n=r.$anchor.node();if(n.content.size>0)return!1;const s=t.selection.$anchor;for(let i=s.depth;i>0;i-=1)if(s.node(i).type===n.type){if(e){const a=s.before(i),l=s.after(i);t.delete(a,l).scrollIntoView()}return!0}return!1};function Ar(t,e){if(typeof t=="string"){if(!e.nodes[t])throw Error(`There is no node type named '${t}'. Maybe you forgot to add the extension?`);return e.nodes[t]}return t}var zJ=t=>({tr:e,state:r,dispatch:n})=>{const s=Ar(t,r.schema),i=e.selection.$anchor;for(let o=i.depth;o>0;o-=1)if(i.node(o).type===s){if(n){const l=i.before(o),u=i.after(o);e.delete(l,u).scrollIntoView()}return!0}return!1},UJ=t=>({tr:e,dispatch:r})=>{const{from:n,to:s}=t;return r&&e.delete(n,s),!0},HJ=t=>t.content?/^text(\*|\+)/.test(t.content):!1,Dk=(t,e,r)=>{if(!t.parent.isInline||r==="left"&&t.pos>t.start()||r==="right"&&t.pos<t.end())return t.pos;const n=e.nodes[t.parent.type.name].spec;return HJ(n)?r==="left"?t.start()-1:t.end()+1:t.pos},VJ=(t,e,r)=>{const n=Dk(t,r,"left"),s=Dk(e,r,"right");return{from:n,to:s}},WJ=()=>({state:t,dispatch:e})=>{const{$from:r,$to:n}=t.selection;if(t.selection.empty)return!1;const{from:s,to:i}=VJ(r,n,t.schema);return e&&(t.tr.deleteRange(s,i).scrollIntoView(),e(t.tr)),!0},qJ=()=>({commands:t})=>t.keyboardShortcut("Enter"),GJ=()=>({state:t,dispatch:e})=>NX(t,e);function zS(t){return Object.prototype.toString.call(t)==="[object RegExp]"}function G0(t,e,r={strict:!0}){const n=Object.keys(e);return n.length?n.every(s=>r.strict?e[s]===t[s]:zS(e[s])?e[s].test(t[s]):e[s]===t[s]):!0}function f3(t,e,r={}){return t.find(n=>n.type===e&&G0(Object.fromEntries(Object.keys(r).map(s=>[s,n.attrs[s]])),r))}function Lk(t,e,r={}){return!!f3(t,e,r)}function US(t,e,r){if(!t||!e)return;let n=t.parent.childAfter(t.parentOffset);if((!n.node||!n.node.marks.some(u=>u.type===e))&&(n=t.parent.childBefore(t.parentOffset)),!n.node||!n.node.marks.some(u=>u.type===e))return;if(!r){const u=n.node.marks.find(d=>d.type===e);u&&(r=u.attrs)}if(!f3([...n.node.marks],e,r))return;let i=n.index,o=t.start()+n.offset,a=i+1,l=o+n.node.nodeSize;for(;i>0&&Lk([...t.parent.child(i-1).marks],e,r);)i-=1,o-=t.parent.child(i).nodeSize;for(;a<t.parent.childCount&&Lk([...t.parent.child(a).marks],e,r);)l+=t.parent.child(a).nodeSize,a+=1;return{from:o,to:l}}function Xo(t,e){if(typeof t=="string"){if(!e.marks[t])throw Error(`There is no mark type named '${t}'. Maybe you forgot to add the extension?`);return e.marks[t]}return t}var KJ=(t,e)=>({tr:r,state:n,dispatch:s})=>{const i=Xo(t,n.schema),{doc:o,selection:a}=r,{$from:l,from:u,to:d}=a;if(s){const f=US(l,i,e);if(f&&f.from<=u&&f.to>=d){const h=Je.create(o,f.from,f.to);r.setSelection(h)}}return!0},XJ=t=>e=>{const r=typeof t=="function"?t(e):t;for(let n=0;n<r.length;n+=1)if(r[n](e))return!0;return!1};function h3(t){return t instanceof Je}function Ol(t=0,e=0,r=0){return Math.min(Math.max(t,e),r)}function p3(t,e=null){if(!e)return null;const r=ut.atStart(t),n=ut.atEnd(t);if(e==="start"||e===!0)return r;if(e==="end")return n;const s=r.from,i=n.to;return e==="all"?Je.create(t,Ol(0,s,i),Ol(t.content.size,s,i)):Je.create(t,Ol(e,s,i),Ol(e,s,i))}function Fk(){return navigator.platform==="Android"||/android/i.test(navigator.userAgent)}function K0(){return["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].includes(navigator.platform)||navigator.userAgent.includes("Mac")&&"ontouchend"in document}function YJ(){return typeof navigator<"u"?/^((?!chrome|android).)*safari/i.test(navigator.userAgent):!1}var JJ=(t=null,e={})=>({editor:r,view:n,tr:s,dispatch:i})=>{e={scrollIntoView:!0,...e};const o=()=>{(K0()||Fk())&&n.dom.focus(),YJ()&&!K0()&&!Fk()&&n.dom.focus({preventScroll:!0}),requestAnimationFrame(()=>{r.isDestroyed||(n.focus(),e!=null&&e.scrollIntoView&&r.commands.scrollIntoView())})};try{if(n.hasFocus()&&t===null||t===!1)return!0}catch{return!1}if(i&&t===null&&!h3(r.state.selection))return o(),!0;const a=p3(s.doc,t)||r.state.selection,l=r.state.selection.eq(a);return i&&(l||s.setSelection(a),l&&s.storedMarks&&s.setStoredMarks(s.storedMarks),o()),!0},QJ=(t,e)=>r=>t.every((n,s)=>e(n,{...r,index:s})),ZJ=(t,e)=>({tr:r,commands:n})=>n.insertContentAt({from:r.selection.from,to:r.selection.to},t,e),m3=t=>{const e=t.childNodes;for(let r=e.length-1;r>=0;r-=1){const n=e[r];n.nodeType===3&&n.nodeValue&&/^(\n\s\s|\n)$/.test(n.nodeValue)?t.removeChild(n):n.nodeType===1&&m3(n)}return t};function tm(t){if(typeof window>"u")throw new Error("[tiptap error]: there is no window object available, so this function cannot be used");const e=`<body>${t}</body>`,r=new window.DOMParser().parseFromString(e,"text/html").body;return m3(r)}function Ah(t,e,r){if(t instanceof Va||t instanceof xe)return t;r={slice:!0,parseOptions:{},...r};const n=typeof t=="object"&&t!==null,s=typeof t=="string";if(n)try{if(Array.isArray(t)&&t.length>0)return xe.fromArray(t.map(a=>e.nodeFromJSON(a)));const o=e.nodeFromJSON(t);return r.errorOnInvalidContent&&o.check(),o}catch(i){if(r.errorOnInvalidContent)throw new Error("[tiptap error]: Invalid JSON content",{cause:i});return console.warn("[tiptap warn]: Invalid content.","Passed value:",t,"Error:",i),Ah("",e,r)}if(s){if(r.errorOnInvalidContent){let o=!1,a="";const l=new sM({topNode:e.spec.topNode,marks:e.spec.marks,nodes:e.spec.nodes.append({__tiptap__private__unknown__catch__all__node:{content:"inline*",group:"block",parseDOM:[{tag:"*",getAttrs:u=>(o=!0,a=typeof u=="string"?u:u.outerHTML,null)}]}})});
vendor: 8,001 bytes, line 674
674if(r.slice?Wa.fromSchema(l).parseSlice(tm(t),r.parseOptions):Wa.fromSchema(l).parse(tm(t),r.parseOptions),r.errorOnInvalidContent&&o)throw new Error("[tiptap error]: Invalid HTML content",{cause:new Error(`Invalid element found: ${a}`)})}const i=Wa.fromSchema(e);return r.slice?i.parseSlice(tm(t),r.parseOptions).content:i.parse(tm(t),r.parseOptions)}return Ah("",e,r)}function eQ(t,e,r){const n=t.steps.length-1;if(n<e)return;const s=t.steps[n];if(!(s instanceof Er||s instanceof Yr))return;const i=t.mapping.maps[n];let o=0;i.forEach((a,l,u,d)=>{o===0&&(o=d)}),t.setSelection(ut.near(t.doc.resolve(o),r))}var tQ=t=>!("type"in t),rQ=(t,e,r)=>({tr:n,dispatch:s,editor:i})=>{var o;if(s){r={parseOptions:i.options.parseOptions,updateSelection:!0,applyInputRules:!1,applyPasteRules:!1,...r};let a;const l=x=>{i.emit("contentError",{editor:i,error:x,disableCollaboration:()=>{"collaboration"in i.storage&&typeof i.storage.collaboration=="object"&&i.storage.collaboration&&(i.storage.collaboration.isDisabled=!0)}})},u={preserveWhitespace:"full",...r.parseOptions};if(!r.errorOnInvalidContent&&!i.options.enableContentCheck&&i.options.emitContentError)try{Ah(e,i.schema,{parseOptions:u,errorOnInvalidContent:!0})}catch(x){l(x)}try{a=Ah(e,i.schema,{parseOptions:u,errorOnInvalidContent:(o=r.errorOnInvalidContent)!=null?o:i.options.enableContentCheck})}catch(x){return l(x),!1}let{from:d,to:f}=typeof t=="number"?{from:t,to:t}:{from:t.from,to:t.to},h=!0,p=!0;if((tQ(a)?a:[a]).forEach(x=>{x.check(),h=h?x.isText&&x.marks.length===0:!1,p=p?x.isBlock:!1}),d===f&&p){const{parent:x}=n.doc.resolve(d);x.isTextblock&&!x.type.spec.code&&!x.childCount&&(d-=1,f+=1)}let m;if(h){if(Array.isArray(e))m=e.map(x=>x.text||"").join("");else if(e instanceof xe){let x="";e.forEach(v=>{v.text&&(x+=v.text)}),m=x}else typeof e=="object"&&e&&e.text?m=e.text:m=e;n.insertText(m,d,f)}else{m=a;const x=n.doc.resolve(d),v=x.node(),y=x.parentOffset===0,b=v.isText||v.isTextblock,S=v.content.size>0;y&&b&&S&&p&&(d=Math.max(0,d-1)),n.replaceWith(d,f,m)}r.updateSelection&&eQ(n,n.steps.length-1,-1),r.applyInputRules&&n.setMeta("applyInputRules",{from:d,text:m}),r.applyPasteRules&&n.setMeta("applyPasteRules",{from:d,text:m})}return!0},nQ=()=>({state:t,dispatch:e})=>EX(t,e),sQ=()=>({state:t,dispatch:e})=>TX(t,e),iQ=()=>({state:t,dispatch:e})=>vX(t,e),oQ=()=>({state:t,dispatch:e})=>SX(t,e),aQ=()=>({state:t,dispatch:e,tr:r})=>{try{const n=Ux(t.doc,t.selection.$from.pos,-1);return n==null?!1:(r.join(n,2),e&&e(r),!0)}catch{return!1}},lQ=()=>({state:t,dispatch:e,tr:r})=>{try{const n=Ux(t.doc,t.selection.$from.pos,1);return n==null?!1:(r.join(n,2),e&&e(r),!0)}catch{return!1}},cQ=()=>({state:t,dispatch:e})=>yX(t,e),uQ=()=>({state:t,dispatch:e})=>wX(t,e);function g3(){return typeof navigator<"u"?/Mac/.test(navigator.platform):!1}function dQ(t){const e=t.split(/-(?!$)/);let r=e[e.length-1];r==="Space"&&(r=" ");let n,s,i,o;for(let a=0;a<e.length-1;a+=1){const l=e[a];if(/^(cmd|meta|m)$/i.test(l))o=!0;else if(/^a(lt)?$/i.test(l))n=!0;else if(/^(c|ctrl|control)$/i.test(l))s=!0;else if(/^s(hift)?$/i.test(l))i=!0;else if(/^mod$/i.test(l))K0()||g3()?o=!0:s=!0;else throw new Error(`Unrecognized modifier name: ${l}`)}return n&&(r=`Alt-${r}`),s&&(r=`Ctrl-${r}`),o&&(r=`Meta-${r}`),i&&(r=`Shift-${r}`),r}var fQ=t=>({editor:e,view:r,tr:n,dispatch:s})=>{const i=dQ(t).split(/-(?!$)/),o=i.find(u=>!["Alt","Ctrl","Meta","Shift"].includes(u)),a=new KeyboardEvent("keydown",{key:o==="Space"?" ":o,altKey:i.includes("Alt"),ctrlKey:i.includes("Ctrl"),metaKey:i.includes("Meta"),shiftKey:i.includes("Shift"),bubbles:!0,cancelable:!0}),l=e.captureTransaction(()=>{r.someProp("handleKeyDown",u=>u(r,a))});return l==null||l.steps.forEach(u=>{const d=u.map(n.mapping);d&&s&&n.maybeStep(d)}),!0};function nl(t,e,r={}){const{from:n,to:s,empty:i}=t.selection,o=e?Ar(e,t.schema):null,a=[];t.doc.nodesBetween(n,s,(f,h)=>{if(f.isText)return;const p=Math.max(n,h),g=Math.min(s,h+f.nodeSize);a.push({node:f,from:p,to:g})});const l=s-n,u=a.filter(f=>o?o.name===f.node.type.name:!0).filter(f=>G0(f.node.attrs,r,{strict:!1}));return i?!!u.length:u.reduce((f,h)=>f+h.to-h.from,0)>=l}var hQ=(t,e={})=>({state:r,dispatch:n})=>{const s=Ar(t,r.schema);return nl(r,s,e)?CX(r,n):!1},pQ=()=>({state:t,dispatch:e})=>jX(t,e),mQ=t=>({state:e,dispatch:r})=>{const n=Ar(t,e.schema);return BX(n)(e,r)},gQ=()=>({state:t,dispatch:e})=>kX(t,e);function Yx(t,e){return e.nodes[t]?"node":e.marks[t]?"mark":null}function Bk(t,e){const r=typeof e=="string"?[e]:e;return Object.keys(t).reduce((n,s)=>(r.includes(s)||(n[s]=t[s]),n),{})}var xQ=(t,e)=>({tr:r,state:n,dispatch:s})=>{let i=null,o=null;const a=Yx(typeof t=="string"?t:t.name,n.schema);if(!a)return!1;a==="node"&&(i=Ar(t,n.schema)),a==="mark"&&(o=Xo(t,n.schema));let l=!1;return r.selection.ranges.forEach(u=>{n.doc.nodesBetween(u.$from.pos,u.$to.pos,(d,f)=>{i&&i===d.type&&(l=!0,s&&r.setNodeMarkup(f,void 0,Bk(d.attrs,e))),o&&d.marks.length&&d.marks.forEach(h=>{o===h.type&&(l=!0,s&&r.addMark(f,f+d.nodeSize,o.create(Bk(h.attrs,e))))})})}),l},vQ=()=>({tr:t,dispatch:e})=>(e&&t.scrollIntoView(),!0),yQ=()=>({tr:t,dispatch:e})=>{if(e){const r=new Qs(t.doc);t.setSelection(r)}return!0},wQ=()=>({state:t,dispatch:e})=>bX(t,e),bQ=()=>({state:t,dispatch:e})=>_X(t,e),SQ=()=>({state:t,dispatch:e})=>RX(t,e),_Q=()=>({state:t,dispatch:e})=>MX(t,e),EQ=()=>({state:t,dispatch:e})=>PX(t,e);function ab(t,e,r={},n={}){return Ah(t,e,{slice:!1,parseOptions:r,errorOnInvalidContent:n.errorOnInvalidContent})}var TQ=(t,{errorOnInvalidContent:e,emitUpdate:r=!0,parseOptions:n={}}={})=>({editor:s,tr:i,dispatch:o,commands:a})=>{const{doc:l}=i;if(n.preserveWhitespace!=="full"){const u=ab(t,s.schema,n,{errorOnInvalidContent:e??s.options.enableContentCheck});return o&&i.replaceWith(0,l.content.size,u).setMeta("preventUpdate",!r),!0}return o&&i.setMeta("preventUpdate",!r),a.insertContentAt({from:0,to:l.content.size},t,{parseOptions:n,errorOnInvalidContent:e??s.options.enableContentCheck})};function x3(t,e){const r=Xo(e,t.schema),{from:n,to:s,empty:i}=t.selection,o=[];i?(t.storedMarks&&o.push(...t.storedMarks),o.push(...t.selection.$head.marks())):t.doc.nodesBetween(n,s,l=>{o.push(...l.marks)});const a=o.find(l=>l.type.name===r.name);return a?{...a.attrs}:{}}function v3(t,e){const r=new wM(t);return e.forEach(n=>{n.steps.forEach(s=>{r.step(s)})}),r}function CQ(t){for(let e=0;e<t.edgeCount;e+=1){const{type:r}=t.edge(e);if(r.isTextblock&&!r.hasRequiredAttrs())return r}return null}function kQ(t,e,r){const n=[];return t.nodesBetween(e.from,e.to,(s,i)=>{r(s)&&n.push({node:s,pos:i})}),n}function NQ(t,e){for(let r=t.depth;r>0;r-=1){const n=t.node(r);if(e(n))return{pos:r>0?t.before(r):0,start:t.start(r),depth:r,node:n}}}function Jx(t){return e=>NQ(e.$from,t)}function ze(t,e,r){return t.config[e]===void 0&&t.parent?ze(t.parent,e,r):typeof t.config[e]=="function"?t.config[e].bind({...r,parent:t.parent?ze(t.parent,e,r):null}):t.config[e]}function HS(t){return t.map(e=>{const r={name:e.name,options:e.options,storage:e.storage},n=ze(e,"addExtensions",r);return n?[e,...HS(n())]:e}).flat(10)}function VS(t,e){const r=bc.fromSchema(e).serializeFragment(t),s=document.implementation.createHTMLDocument().createElement("div");return s.appendChild(r),s.innerHTML}function y3(t){return typeof t=="function"}function Rt(t,e=void 0,...r){return y3(t)?e?t.bind(e)(...r):t(...r):t}function AQ(t={}){return Object.keys(t).length===0&&t.constructor===Object}function ud(t){const e=t.filter(s=>s.type==="extension"),r=t.filter(s=>s.type==="node"),n=t.filter(s=>s.type==="mark");return{baseExtensions:e,nodeExtensions:r,markExtensions:n}}function w3(t){const e=[],{nodeExtensions:r,markExtensions:n}=ud(t),s=[...r,...n],i={default:null,validate:void 0,rendered:!0,renderHTML:null,parseHTML:null,keepOnSplit:!0,isRequired:!1},o=r.filter(u=>u.name!=="text").map(u=>u.name),a=n.map(u=>u.name),l=[...o,...a];return t.forEach(u=>{const d={name:u.name,options:u.options,storage:u.storage,extensions:s},f=ze(u,"addGlobalAttributes",d);if(!f)return;
674f().forEach(p=>{let g;Array.isArray(p.types)?g=p.types:p.types==="*"?g=l:p.types==="nodes"?g=o:p.types==="marks"?g=a:g=[],g.forEach(m=>{Object.entries(p.attributes).forEach(([x,v])=>{e.push({type:m,name:x,attribute:{...i,...v}})})})})}),s.forEach(u=>{const d={name:u.name,options:u.options,storage:u.storage},f=ze(u,"addAttributes",d);if(!f)return;const h=f();Object.entries(h).forEach(([p,g])=>{const m={...i,...g};typeof(m==null?void 0:m.default)=="function"&&(m.default=m.default()),m!=null&&m.isRequired&&(m==null?void 0:m.default)===void 0&&delete m.default,e.push({type:u.name,name:p,attribute:m})})}),e}function jQ(t){const e=[];let r="",n=!1,s=!1,i=0;const o=t.length;for(let a=0;a<o;a+=1){const l=t[a];if(l==="'"&&!s){n=!n,r+=l;continue}if(l==='"'&&!n){s=!s,r+=l;continue}if(!n&&!s){if(l==="("){i+=1,r+=l;continue}if(l===")"&&i>0){i-=1,r+=l;continue}if(l===";"&&i===0){e.push(r),r="";continue}}r+=l}return r&&e.push(r),e}function $k(t){const e=[],r=jQ(t||""),n=r.length;for(let s=0;s<n;s+=1){const i=r[s],o=i.indexOf(":");if(o===-1)continue;const a=i.slice(0,o).trim(),l=i.slice(o+1).trim();a&&l&&e.push([a,l])}return e}function jr(...t){return t.filter(e=>!!e).reduce((e,r)=>{const n={...e};return Object.entries(r).forEach(([s,i])=>{if(!n[s]){n[s]=i;return}if(s==="class"){const a=i?String(i).split(" "):[],l=n[s]?n[s].split(" "):[],u=a.filter(d=>!l.includes(d));n[s]=[...l,...u].join(" ")}else if(s==="style"){const a=new Map([...$k(n[s]),...$k(i)]);n[s]=Array.from(a.entries()).map(([l,u])=>`${l}: ${u}`).join("; ")}else n[s]=i}),n},{})}function X0(t,e){return e.filter(r=>r.type===t.type.name).filter(r=>r.attribute.rendered).map(r=>r.attribute.renderHTML?r.attribute.renderHTML(t.attrs)||{}:{[r.name]:t.attrs[r.name]}).reduce((r,n)=>jr(r,n),{})}function RQ(t){return typeof t!="string"?t:t.match(/^[+-]?(?:\d*\.)?\d+$/)?Number(t):t==="true"?!0:t==="false"?!1:t}function zk(t,e){return"style"in t?t:{...t,getAttrs:r=>{const n=t.getAttrs?t.getAttrs(r):t.attrs;if(n===!1)return!1;const s=e.reduce((i,o)=>{const a=o.attribute.parseHTML?o.attribute.parseHTML(r):RQ(r.getAttribute(o.name));return a==null?i:{...i,[o.name]:a}},{});return{...n,...s}}}}function Uk(t){return Object.fromEntries(Object.entries(t).filter(([e,r])=>e==="attrs"&&AQ(r)?!1:r!=null))}function Hk(t){var e,r;const n={};return!((e=t==null?void 0:t.attribute)!=null&&e.isRequired)&&"default"in((t==null?void 0:t.attribute)||{})&&(n.default=t.attribute.default),((r=t==null?void 0:t.attribute)==null?void 0:r.validate)!==void 0&&(n.validate=t.attribute.validate),[t.name,n]}function OQ(t,e){var r;const n=w3(t),{nodeExtensions:s,markExtensions:i}=ud(t),o=(r=s.find(u=>ze(u,"topNode")))==null?void 0:r.name,a=Object.fromEntries(s.map(u=>{const d=n.filter(v=>v.type===u.name),f={name:u.name,options:u.options,storage:u.storage,editor:e},h=t.reduce((v,y)=>{const b=ze(y,"extendNodeSchema",f);return{...v,...b?b(u):{}}},{}),p=Uk({...h,content:Rt(ze(u,"content",f)),marks:Rt(ze(u,"marks",f)),group:Rt(ze(u,"group",f)),inline:Rt(ze(u,"inline",f)),atom:Rt(ze(u,"atom",f)),selectable:Rt(ze(u,"selectable",f)),draggable:Rt(ze(u,"draggable",f)),code:Rt(ze(u,"code",f)),whitespace:Rt(ze(u,"whitespace",f)),linebreakReplacement:Rt(ze(u,"linebreakReplacement",f)),defining:Rt(ze(u,"defining",f)),isolating:Rt(ze(u,"isolating",f)),attrs:Object.fromEntries(d.map(Hk))}),g=Rt(ze(u,"parseHTML",f));g&&(p.parseDOM=g.map(v=>zk(v,d)));const m=ze(u,"renderHTML",f);m&&(p.toDOM=v=>m({node:v,HTMLAttributes:X0(v,d)}));const x=ze(u,"renderText",f);return x&&(p.toText=x),[u.name,p]})),l=Object.fromEntries(i.map(u=>{const d=n.filter(x=>x.type===u.name),f={name:u.name,options:u.options,storage:u.storage,editor:e},h=t.reduce((x,v)=>{const y=ze(v,"extendMarkSchema",f);return{...x,...y?y(u):{}}},{}),p=Uk({...h,inclusive:Rt(ze(u,"inclusive",f)),excludes:Rt(ze(u,"excludes",f)),group:Rt(ze(u,"group",f)),spanning:Rt(ze(u,"spanning",f)),code:Rt(ze(u,"code",f)),attrs:Object.fromEntries(d.map(Hk))}),g=Rt(ze(u,"parseHTML",f));g&&(p.parseDOM=g.map(x=>zk(x,d)));const m=ze(u,"renderHTML",f);return m&&(p.toDOM=x=>m({mark:x,HTMLAttributes:X0(x,d)})),[u.name,p]}));return new sM({topNode:o,nodes:a,marks:l})}function PQ(t){const e=t.filter((r,n)=>t.indexOf(r)!==n);return Array.from(new Set(e))}function Mf(t){return t.sort((r,n)=>{const s=ze(r,"priority")||100,i=ze(n,"priority")||100;return s>i?-1:s<i?1:0})}function b3(t){const e=Mf(HS(t)),r=PQ(e.map(n=>n.name));return r.length&&console.warn(`[tiptap warn]: Duplicate extension names found: [${r.map(n=>`'${n}'`).join(", ")}]. This can lead to issues.`),e}function S3(t,e,r){const{from:n,to:s}=e,{blockSeparator:i=`
675
676`,textSerializers:o={}}=r||{};let a="";return t.nodesBetween(n,s,(l,u,d,f)=>{var h;l.isBlock&&u>n&&(a+=i);const p=o==null?void 0:o[l.type.name];if(p)return d&&(a+=p({node:l,pos:u,parent:d,index:f,range:e})),!1;l.isText&&(a+=(h=l==null?void 0:l.text)==null?void 0:h.slice(Math.max(n,u)-u,s-u))}),a}function MQ(t,e){const r={from:0,to:t.content.size};return S3(t,r,e)}function _3(t){return Object.fromEntries(Object.entries(t.nodes).filter(([,e])=>e.spec.toText).map(([e,r])=>[e,r.spec.toText]))}function IQ(t,e){const r=Ar(e,t.schema),{from:n,to:s}=t.selection,i=[];t.doc.nodesBetween(n,s,a=>{i.push(a)});const o=i.reverse().find(a=>a.type.name===r.name);return o?{...o.attrs}:{}}function E3(t,e){const r=Yx(typeof e=="string"?e:e.name,t.schema);return r==="node"?IQ(t,e):r==="mark"?x3(t,e):{}}function DQ(t,e=JSON.stringify){const r={};return t.filter(n=>{const s=e(n);return Object.prototype.hasOwnProperty.call(r,s)?!1:r[s]=!0})}function LQ(t){const e=DQ(t);return e.length===1?e:e.filter((r,n)=>!e.filter((i,o)=>o!==n).some(i=>r.oldRange.from>=i.oldRange.from&&r.oldRange.to<=i.oldRange.to&&r.newRange.from>=i.newRange.from&&r.newRange.to<=i.newRange.to))}function T3(t){const{mapping:e,steps:r}=t,n=[];return e.maps.forEach((s,i)=>{const o=[];if(s.ranges.length)s.forEach((a,l)=>{o.push({from:a,to:l})});else{const{from:a,to:l}=r[i];if(a===void 0||l===void 0)return;o.push({from:a,to:l})}o.forEach(({from:a,to:l})=>{const u=e.slice(i).map(a,-1),d=e.slice(i).map(l),f=e.invert().map(u,-1),h=e.invert().map(d);n.push({oldRange:{from:f,to:h},newRange:{from:u,to:d}})})}),LQ(n)}function WS(t,e,r){const n=[];return t===e?r.resolve(t).marks().forEach(s=>{const i=r.resolve(t),o=US(i,s.type);o&&n.push({mark:s,...o})}):r.nodesBetween(t,e,(s,i)=>{!s||(s==null?void 0:s.nodeSize)===void 0||n.push(...s.marks.map(o=>({from:i,to:i+s.nodeSize,mark:o})))}),n}var FQ=(t,e,r,n=20)=>{const s=t.doc.resolve(r);let i=n,o=null;for(;i>0&&o===null;){const a=s.node(i);(a==null?void 0:a.type.name)===e?o=a:i-=1}return[o,i]};function Jd(t,e){return e.nodes[t]||e.marks[t]||null}function Hm(t,e,r){return Object.fromEntries(Object.entries(r).filter(([n])=>{const s=t.find(i=>i.type===e&&i.name===n);return s?s.attribute.keepOnSplit:!1}))}var BQ=(t,e=500)=>{let r="";const n=t.parentOffset;return t.parent.nodesBetween(Math.max(0,n-e),n,(s,i,o,a)=>{var l,u;const d=((u=(l=s.type.spec).toText)==null?void 0:u.call(l,{node:s,pos:i,parent:o,index:a}))||s.textContent||"%leaf%";r+=s.isAtom&&!s.isText?d:d.slice(0,Math.max(0,n-i))}),r};function lb(t,e,r={}){const{empty:n,ranges:s}=t.selection,i=e?Xo(e,t.schema):null;if(n)return!!(t.storedMarks||t.selection.$from.marks()).filter(f=>i?i.name===f.type.name:!0).find(f=>G0(f.attrs,r,{strict:!1}));let o=0;const a=[];if(s.forEach(({$from:f,$to:h})=>{const p=f.pos,g=h.pos;t.doc.nodesBetween(p,g,(m,x)=>{if(i&&m.inlineContent&&!m.type.allowsMarkType(i))return!1;if(!m.isText&&!m.marks.length)return;const v=Math.max(p,x),y=Math.min(g,x+m.nodeSize),b=y-v;o+=b,a.push(...m.marks.map(S=>({mark:S,from:v,to:y})))})}),o===0)return!1;const l=a.filter(f=>i?i.name===f.mark.type.name:!0).filter(f=>G0(f.mark.attrs,r,{strict:!1})).reduce((f,h)=>f+h.to-h.from,0),u=a.filter(f=>i?f.mark.type!==i&&f.mark.type.excludes(i):!0).reduce((f,h)=>f+h.to-h.from,0);return(l>0?l+u:l)>=o}function $Q(t,e,r={}){if(!e)return nl(t,null,r)||lb(t,null,r);const n=Yx(e,t.schema);return n==="node"?nl(t,e,r):n==="mark"?lb(t,e,r):!1}var zQ=(t,e)=>{const{$from:r,$to:n,$anchor:s}=t.selection;if(e){const i=Jx(a=>a.type.name===e)(t.selection);if(!i)return!1;const o=t.doc.resolve(i.pos+1);return s.pos+1===o.end()}return!(n.parentOffset<n.parent.nodeSize-2||r.pos!==n.pos)},UQ=t=>{const{$from:e,$to:r}=t.selection;return!(e.parentOffset>0||e.pos!==r.pos)};function Vk(t,e){return Array.isArray(e)?e.some(r=>(typeof r=="string"?r:r.name)===t.name):e}function P1(t,e){const{nodeExtensions:r}=ud(e),n=r.find(o=>o.name===t);if(!n)return!1;const s={name:n.name,options:n.options,storage:n.storage},i=Rt(ze(n,"group",s));return typeof i!="string"?!1:i.split(" ").includes("list")}function Qx(t,{checkChildren:e=!0,ignoreWhitespace:r=!1}={}){var n;if(r){if(t.type.name==="hardBreak")return!0;
vendor: 4,192 bytes, line 676
676if(t.isText)return!/\S/.test((n=t.text)!=null?n:"")}if(t.isText)return!t.text;if(t.isAtom||t.isLeaf)return!1;if(t.content.childCount===0)return!0;if(e){let s=!0;return t.content.forEach(i=>{s!==!1&&(Qx(i,{ignoreWhitespace:r,checkChildren:e})||(s=!1))}),s}return!1}function C3(t){return t instanceof We}var k3=class N3{constructor(e){this.position=e}static fromJSON(e){return new N3(e.position)}toJSON(){return{position:this.position}}};function HQ(t,e){const r=e.mapping.mapResult(t.position);return{position:new k3(r.pos),mapResult:r}}function VQ(t){return new k3(t)}function WQ(t,e,r){var n;const{selection:s}=e;let i=null;if(h3(s)&&(i=s.$cursor),i){const a=(n=t.storedMarks)!=null?n:i.marks();return i.parent.type.allowsMarkType(r)&&(!!r.isInSet(a)||!a.some(u=>u.type.excludes(r)))}const{ranges:o}=s;return o.some(({$from:a,$to:l})=>{let u=a.depth===0?t.doc.inlineContent&&t.doc.type.allowsMarkType(r):!1;return t.doc.nodesBetween(a.pos,l.pos,(d,f,h)=>{if(u)return!1;if(d.isInline){const p=!h||h.type.allowsMarkType(r),g=!!r.isInSet(d.marks)||!d.marks.some(m=>m.type.excludes(r));u=p&&g}return!u}),u})}var qQ=(t,e={})=>({tr:r,state:n,dispatch:s})=>{const{selection:i}=r,{empty:o,ranges:a}=i,l=Xo(t,n.schema);if(s)if(o){const u=x3(n,l);r.addStoredMark(l.create({...u,...e}))}else a.forEach(u=>{const d=u.$from.pos,f=u.$to.pos;n.doc.nodesBetween(d,f,(h,p)=>{const g=Math.max(p,d),m=Math.min(p+h.nodeSize,f);h.marks.find(v=>v.type===l)?h.marks.forEach(v=>{l===v.type&&r.addMark(g,m,l.create({...v.attrs,...e}))}):r.addMark(g,m,l.create(e))})});return WQ(n,r,l)},GQ=(t,e)=>({tr:r})=>(r.setMeta(t,e),!0),KQ=(t,e={})=>({state:r,dispatch:n,chain:s})=>{const i=Ar(t,r.schema);let o;return r.selection.$anchor.sameParent(r.selection.$head)&&(o=r.selection.$anchor.parent.attrs),i.isTextblock?s().command(({commands:a})=>rk(i,{...o,...e})(r)?!0:a.clearNodes()).command(({state:a})=>rk(i,{...o,...e})(a,n)).run():(console.warn('[tiptap warn]: Currently "setNode()" only supports text block nodes.'),!1)},XQ=t=>({tr:e,dispatch:r})=>{if(r){const{doc:n}=e,s=Ol(t,0,n.content.size),i=We.create(n,s);e.setSelection(i)}return!0},YQ=(t,e)=>({tr:r,state:n,dispatch:s})=>{const{selection:i}=n;let o,a;return typeof e=="number"?(o=e,a=e):e&&"from"in e&&"to"in e?(o=e.from,a=e.to):(o=i.from,a=i.to),s&&r.doc.nodesBetween(o,a,(l,u)=>{l.isText||r.setNodeMarkup(u,void 0,{...l.attrs,dir:t})}),!0},JQ=t=>({tr:e,dispatch:r})=>{if(r){const{doc:n}=e,{from:s,to:i}=typeof t=="number"?{from:t,to:t}:t,o=Je.atStart(n).from,a=Je.atEnd(n).to,l=Ol(s,o,a),u=Ol(i,o,a),d=Je.create(n,l,u);e.setSelection(d)}return!0},QQ=t=>({state:e,dispatch:r})=>{const n=Ar(t,e.schema);return UX(n)(e,r)};function Wk(t,e){const r=t.storedMarks||t.selection.$to.parentOffset&&t.selection.$from.marks();if(r){const n=r.filter(s=>e==null?void 0:e.includes(s.type.name));t.tr.ensureMarks(n)}}var ZQ=({keepMarks:t=!0}={})=>({tr:e,state:r,dispatch:n,editor:s})=>{const{selection:i,doc:o}=e,{$from:a,$to:l}=i,u=s.extensionManager.attributes,d=Hm(u,a.node().type.name,a.node().attrs);if(i instanceof We&&i.node.isBlock)return!a.parentOffset||!Nu(o,a.pos)?!1:(n&&(t&&Wk(r,s.extensionManager.splittableMarks),e.split(a.pos).scrollIntoView()),!0);if(!a.parent.isBlock)return!1;const f=l.parentOffset===l.parent.content.size,h=a.depth===0?void 0:CQ(a.node(-1).contentMatchAt(a.indexAfter(-1)));let p=f&&h?[{type:h,attrs:d}]:void 0,g=Nu(e.doc,e.mapping.map(a.pos),1,p);if(!p&&!g&&Nu(e.doc,e.mapping.map(a.pos),1,h?[{type:h}]:void 0)&&(g=!0,p=h?[{type:h,attrs:d}]:void 0),n){if(g&&(i instanceof Je&&e.deleteSelection(),e.split(e.mapping.map(a.pos),1,p),h&&!f&&!a.parentOffset&&a.parent.type!==h)){const m=e.mapping.map(a.before()),x=e.doc.resolve(m);a.node(-1).canReplaceWith(x.index(),x.index()+1,h)&&e.setNodeMarkup(e.mapping.map(a.before()),h)}t&&Wk(r,s.extensionManager.splittableMarks),e.scrollIntoView()}return g},eZ=(t,e={})=>({tr:r,state:n,dispatch:s,editor:i})=>{var o;const a=Ar(t,n.schema),{$from:l,$to:u}=n.selection,d=n.selection.node;if(d&&d.isBlock||l.depth<2||!l.sameParent(u))return!1;const f=l.node(-1);if(f.type!==a)return!1;const h=i.extensionManager.attributes;if(l.parent.content.size===0&&l.node(-1).childCount===l.indexAfter(-1)){if
676(l.depth===2||l.node(-3).type!==a||l.index(-2)!==l.node(-2).childCount-1)return!1;if(s){let v=xe.empty;const y=l.index(-1)?1:l.index(-2)?2:3;for(let A=l.depth-y;A>=l.depth-3;A-=1)v=xe.from(l.node(A).copy(v));const b=l.indexAfter(-1)<l.node(-2).childCount?1:l.indexAfter(-2)<l.node(-3).childCount?2:3,S={...Hm(h,l.node().type.name,l.node().attrs),...e},E=((o=a.contentMatch.defaultType)==null?void 0:o.createAndFill(S))||void 0;v=v.append(xe.from(a.createAndFill(null,E)||void 0));const C=l.before(l.depth-(y-1));r.replace(C,l.after(-b),new Le(v,4-y,0));let _=-1;r.doc.nodesBetween(C,r.doc.content.size,(A,N)=>{if(_>-1)return!1;A.isTextblock&&A.content.size===0&&(_=N+1)}),_>-1&&r.setSelection(Je.near(r.doc.resolve(_))),r.scrollIntoView()}return!0}const p=u.pos===l.end()?f.contentMatchAt(0).defaultType:null,g={...Hm(h,f.type.name,f.attrs),...e},m={...Hm(h,l.node().type.name,l.node().attrs),...e};r.delete(l.pos,u.pos);const x=p?[{type:a,attrs:g},{type:p,attrs:m}]:[{type:a,attrs:g}];if(!Nu(r.doc,l.pos,2))return!1;if(s){const{selection:v,storedMarks:y}=n,{splittableMarks:b}=i.extensionManager,S=y||v.$to.parentOffset&&v.$from.marks();if(r.split(l.pos,2,x).scrollIntoView(),!S||!s)return!0;const E=S.filter(C=>b.includes(C.type.name));r.ensureMarks(E)}return!0},M1=(t,e)=>{const r=Jx(o=>o.type===e)(t.selection);if(!r)return!0;const n=t.doc.resolve(Math.max(0,r.pos-1)).before(r.depth);if(n===void 0)return!0;const s=t.doc.nodeAt(n);return r.node.type===(s==null?void 0:s.type)&&dl(t.doc,r.pos)&&t.join(r.pos),!0},I1=(t,e)=>{const r=Jx(o=>o.type===e)(t.selection);if(!r)return!0;const n=t.doc.resolve(r.start).after(r.depth);if(n===void 0)return!0;const s=t.doc.nodeAt(n);return r.node.type===(s==null?void 0:s.type)&&dl(t.doc,n)&&t.join(n),!0};function tZ(t){const e=t.doc,r=e.firstChild;if(!r)return null;const n=e.resolve(1),s=e.resolve(r.nodeSize-1);return Je.between(n,s)}var rZ=(t,e,r,n={})=>({editor:s,tr:i,state:o,dispatch:a,chain:l,commands:u,can:d})=>{const{extensions:f,splittableMarks:h}=s.extensionManager,p=Ar(t,o.schema),g=Ar(e,o.schema),{selection:m,storedMarks:x}=o,{$from:v,$to:y}=m,b=v.blockRange(y),S=x||m.$to.parentOffset&&m.$from.marks();if(!b)return!1;const E=Jx(U=>P1(U.type.name,f))(m),C=m.from===0&&m.to===o.doc.content.size,_=o.doc.content.content,A=_.length===1?_[0]:null,N=C&&A&&P1(A.type.name,f)?{node:A,pos:0,depth:0}:null,D=E??N,V=!!E&&b.depth>=1&&b.depth-E.depth<=1,H=!!N;if((V||H)&&D){if(D.node.type===p)return C&&H?l().command(({tr:U,dispatch:K})=>{const te=tZ(U);return te?(U.setSelection(te),K&&K(U),!0):!1}).liftListItem(g).run():u.liftListItem(g);if(P1(D.node.type.name,f)&&p.validContent(D.node.content))return l().command(()=>(i.setNodeMarkup(D.pos,p),!0)).command(()=>M1(i,p)).command(()=>I1(i,p)).run()}return!r||!S||!a?l().command(()=>d().wrapInList(p,n)?!0:u.clearNodes()).wrapInList(p,n).command(()=>M1(i,p)).command(()=>I1(i,p)).run():l().command(()=>{const U=d().wrapInList(p,n),K=S.filter(te=>h.includes(te.type.name));return i.ensureMarks(K),U?!0:u.clearNodes()}).wrapInList(p,n).command(()=>M1(i,p)).command(()=>I1(i,p)).run()},nZ=(t,e={},r={})=>({state:n,commands:s})=>{const{extendEmptyMarkRange:i=!1}=r,o=Xo(t,n.schema);return lb(n,o,e)?s.unsetMark(o,{extendEmptyMarkRange:i}):s.setMark(o,e)},sZ=(t,e,r={})=>({state:n,commands:s})=>{const i=Ar(t,n.schema),o=Ar(e,n.schema),a=nl(n,i,r);let l;return n.selection.$anchor.sameParent(n.selection.$head)&&(l=n.selection.$anchor.parent.attrs),a?s.setNode(o,l):s.setNode(i,{...l,...r})},iZ=(t,e={})=>({state:r,commands:n})=>{const s=Ar(t,r.schema);return nl(r,s,e)?n.lift(s):n.wrapIn(s,e)},oZ=()=>({state:t,dispatch:e})=>{const r=t.plugins;for(let n=0;n<r.length;n+=1){const s=r[n];let i;if(s.spec.isInputRules&&(i=s.getState(t))){if(e){const o=t.tr,a=i.transform;for(let l=a.steps.length-1;l>=0;l-=1)o.step(a.steps[l].invert(a.docs[l]));if(i.text){const l=o.doc.resolve(i.from).marks();o.replaceWith(i.from,i.to,t.schema.text(i.text,l))}else o.delete(i.from,i.to)}return!0}}return!1},aZ=(t={})=>({tr:e,dispatch:r,editor:n})=>{const{ignoreClearable:s=!1}=t,{selection:i}=e,{empty:o,ranges:a}=i;if(o)return!0;const{nonClearableMarks:l}=n.extensionManager;if(r){const u=Object.values(n.schema.marks).filter(d=>s||!l.includes(d.name));a.forEach(d=>{for(const f of u)e.removeMark(d.$from.pos,d.$to.pos,f)}
vendor: 10,614 bytes, lines 676-677
676)}return!0},lZ=(t,e={})=>({tr:r,state:n,dispatch:s})=>{var i;const{extendEmptyMarkRange:o=!1}=e,{selection:a}=r,l=Xo(t,n.schema),{$from:u,empty:d,ranges:f}=a;if(!s)return!0;if(d&&o){let{from:h,to:p}=a;const g=(i=u.marks().find(x=>x.type===l))==null?void 0:i.attrs,m=US(u,l,g);m&&(h=m.from,p=m.to),r.removeMark(h,p,l)}else f.forEach(h=>{r.removeMark(h.$from.pos,h.$to.pos,l)});return r.removeStoredMark(l),!0},cZ=t=>({tr:e,state:r,dispatch:n})=>{const{selection:s}=r;let i,o;return typeof t=="number"?(i=t,o=t):t&&"from"in t&&"to"in t?(i=t.from,o=t.to):(i=s.from,o=s.to),n&&e.doc.nodesBetween(i,o,(a,l)=>{if(a.isText)return;const u={...a.attrs};delete u.dir,e.setNodeMarkup(l,void 0,u)}),!0},uZ=(t,e={})=>({tr:r,state:n,dispatch:s})=>{let i=null,o=null;const a=Yx(typeof t=="string"?t:t.name,n.schema);if(!a)return!1;a==="node"&&(i=Ar(t,n.schema)),a==="mark"&&(o=Xo(t,n.schema));let l=!1;return r.selection.ranges.forEach(u=>{const d=u.$from.pos,f=u.$to.pos;let h,p,g,m;r.selection.empty?n.doc.nodesBetween(d,f,(x,v)=>{i&&i===x.type&&(l=!0,g=Math.max(v,d),m=Math.min(v+x.nodeSize,f),h=v,p=x)}):n.doc.nodesBetween(d,f,(x,v)=>{v<d&&i&&i===x.type&&(l=!0,g=Math.max(v,d),m=Math.min(v+x.nodeSize,f),h=v,p=x),v>=d&&v<=f&&(i&&i===x.type&&(l=!0,s&&r.setNodeMarkup(v,void 0,{...x.attrs,...e})),o&&x.marks.length&&x.marks.forEach(y=>{if(o===y.type&&(l=!0,s)){const b=Math.max(v,d),S=Math.min(v+x.nodeSize,f);r.addMark(b,S,o.create({...y.attrs,...e}))}}))}),p&&(h!==void 0&&s&&r.setNodeMarkup(h,void 0,{...p.attrs,...e}),o&&p.marks.length&&p.marks.forEach(x=>{o===x.type&&s&&r.addMark(g,m,o.create({...x.attrs,...e}))}))}),l},dZ=(t,e={})=>({state:r,dispatch:n})=>{const s=Ar(t,r.schema);return IX(s,e)(r,n)},fZ=(t,e={})=>({state:r,dispatch:n})=>{const s=Ar(t,r.schema);return DX(s,e)(r,n)},hZ=class{constructor(){this.callbacks={}}on(t,e){return this.callbacks[t]||(this.callbacks[t]=[]),this.callbacks[t].push(e),this}emit(t,...e){const r=this.callbacks[t];return r&&r.forEach(n=>n.apply(this,e)),this}off(t,e){const r=this.callbacks[t];return r&&(e?this.callbacks[t]=r.filter(n=>n!==e):delete this.callbacks[t]),this}once(t,e){const r=(...n)=>{this.off(t,r),e.apply(this,n)};return this.on(t,r)}removeAllListeners(){this.callbacks={}}},Zx=class{constructor(t){var e;this.find=t.find,this.handler=t.handler,this.undoable=(e=t.undoable)!=null?e:!0}},pZ=(t,e)=>{if(zS(e))return e.exec(t);const r=e(t);if(!r)return null;const n=[r.text];return n.index=r.index,n.input=t,n.data=r.data,r.replaceWith&&(r.text.includes(r.replaceWith)||console.warn('[tiptap warn]: "inputRuleMatch.replaceWith" must be part of "inputRuleMatch.text".'),n.push(r.replaceWith)),n};function rm(t){var e;const{editor:r,from:n,to:s,text:i,rules:o,plugin:a}=t,{view:l}=r;if(l.composing)return!1;const u=l.state.doc.resolve(n);if(u.parent.type.spec.code||(e=u.nodeBefore||u.nodeAfter)!=null&&e.marks.find(h=>h.type.spec.code))return!1;let d=!1;const f=BQ(u)+i;return o.forEach(h=>{if(d)return;const p=pZ(f,h.find);if(!p)return;const g=l.state.tr,m=Kx({state:l.state,transaction:g}),x={from:n-(p[0].length-i.length),to:s},{commands:v,chain:y,can:b}=new Xx({editor:r,state:m});h.handler({state:m,range:x,match:p,commands:v,chain:y,can:b})===null||!g.steps.length||(h.undoable&&g.setMeta(a,{transform:g,from:n,to:s,text:i}),l.dispatch(g),d=!0)}),d}function mZ(t){const{editor:e,rules:r}=t,n=new nr({state:{init(){return null},apply(s,i,o){const a=s.getMeta(n);if(a)return a;const l=s.getMeta("applyInputRules");return!!l&&setTimeout(()=>{let{text:d}=l;typeof d=="string"?d=d:d=VS(xe.from(d),o.schema);const{from:f}=l,h=f+d.length;rm({editor:e,from:f,to:h,text:d,rules:r,plugin:n})}),s.selectionSet||s.docChanged?null:i}},props:{handleTextInput(s,i,o,a){return rm({editor:e,from:i,to:o,text:a,rules:r,plugin:n})},handleDOMEvents:{compositionend:s=>(setTimeout(()=>{const{$cursor:i}=s.state.selection;i&&rm({editor:e,from:i.pos,to:i.pos,text:"",rules:r,plugin:n})}),!1)},handleKeyDown(s,i){if(i.key!=="Enter")return!1;const{$cursor:o}=s.state.selection;return o?rm({editor:e,from:o.pos,to:o.pos,text:`
677`,rules:r,plugin:n}):!1}},isInputRules:!0});return n}function gZ(t){return Object.prototype.toString.call(t).slice(8,-1)}function nm(t){return gZ(t)!=="Object"?!1:t.constructor===Object&&Object.getPrototypeOf(t)===Object.prototype}function A3(t,e){const r={...t};return nm(t)&&nm(e)&&Object.keys(e).forEach(n=>{nm(e[n])&&nm(t[n])?r[n]=A3(t[n],e[n]):r[n]=e[n]}),r}var qS=class{constructor(t={}){this.type="extendable",this.parent=null,this.child=null,this.name="",this.config={name:this.name},this.config={...this.config,...t},this.name=this.config.name}get options(){return{...Rt(ze(this,"addOptions",{name:this.name}))}}get storage(){return{...Rt(ze(this,"addStorage",{name:this.name,options:this.options}))}}configure(t={}){const e=this.extend({...this.config,addOptions:()=>A3(this.options,t)});return e.name=this.name,e.parent=this.parent,this.child=null,e}extend(t={}){const e=new this.constructor({...this.config,...t});return e.parent=this,this.child=e,e.name="name"in t?t.name:e.parent.name,e}},Sc=class j3 extends qS{constructor(){super(...arguments),this.type="mark"}static create(e={}){const r=typeof e=="function"?e():e;return new j3(r)}static handleExit({editor:e,mark:r}){const{tr:n}=e.state,s=e.state.selection.$from;if(s.pos===s.end()){const o=s.marks();if(!!!o.find(u=>(u==null?void 0:u.type.name)===r.name))return!1;const l=o.find(u=>(u==null?void 0:u.type.name)===r.name);return l&&n.removeStoredMark(l),n.insertText(" ",s.pos),e.view.dispatch(n),!0}return!1}configure(e){return super.configure(e)}extend(e){const r=typeof e=="function"?e():e;return super.extend(r)}};function xZ(t){return typeof t=="number"}var vZ=class{constructor(t){this.find=t.find,this.handler=t.handler}},yZ=(t,e,r)=>{if(zS(e))return[...t.matchAll(e)];const n=e(t,r);return n?n.map(s=>{const i=[s.text];return i.index=s.index,i.input=t,i.data=s.data,s.replaceWith&&(s.text.includes(s.replaceWith)||console.warn('[tiptap warn]: "pasteRuleMatch.replaceWith" must be part of "pasteRuleMatch.text".'),i.push(s.replaceWith)),i}):[]};function wZ(t){const{editor:e,state:r,from:n,to:s,rule:i,pasteEvent:o,dropEvent:a}=t,{commands:l,chain:u,can:d}=new Xx({editor:e,state:r}),f=[];return r.doc.nodesBetween(n,s,(p,g)=>{var m,x,v,y,b;if((x=(m=p.type)==null?void 0:m.spec)!=null&&x.code||!(p.isText||p.isTextblock||p.isInline))return;const S=(b=(y=(v=p.content)==null?void 0:v.size)!=null?y:p.nodeSize)!=null?b:0,E=Math.max(n,g),C=Math.min(s,g+S);if(E>=C)return;const _=p.isText?p.text||"":p.textBetween(E-g,C-g,void 0,"");yZ(_,i.find,o).forEach(N=>{if(N.index===void 0)return;const D=E+N.index+1,V=D+N[0].length,H={from:r.tr.mapping.map(D),to:r.tr.mapping.map(V)},U=i.handler({state:r,range:H,match:N,commands:l,chain:u,can:d,pasteEvent:o,dropEvent:a});f.push(U)})}),f.every(p=>p!==null)}var sm=null,bZ=t=>{var e;const r=new ClipboardEvent("paste",{clipboardData:new DataTransfer});return(e=r.clipboardData)==null||e.setData("text/html",t),r};function SZ(t){const{editor:e,rules:r}=t;let n=null,s=!1,i=!1,o=typeof ClipboardEvent<"u"?new ClipboardEvent("paste"):null,a;try{a=typeof DragEvent<"u"?new DragEvent("drop"):null}catch{a=null}const l=({state:d,from:f,to:h,rule:p,pasteEvt:g})=>{const m=d.tr,x=Kx({state:d,transaction:m});if(!(!wZ({editor:e,state:x,from:Math.max(f-1,0),to:h.b-1,rule:p,pasteEvent:g,dropEvent:a})||!m.steps.length)){try{a=typeof DragEvent<"u"?new DragEvent("drop"):null}catch{a=null}return o=typeof ClipboardEvent<"u"?new ClipboardEvent("paste"):null,m}};return r.map(d=>new nr({view(f){const h=g=>{var m;n=(m=f.dom.parentElement)!=null&&m.contains(g.target)?f.dom.parentElement:null,n&&(sm=e)},p=()=>{sm&&(sm=null)};return window.addEventListener("dragstart",h),window.addEventListener("dragend",p),{destroy(){window.removeEventListener("dragstart",h),window.removeEventListener("dragend",p)}}},props:{handleDOMEvents:{drop:(f,h)=>{if(i=n===f.dom.parentElement,a=h,!i){const p=sm;p!=null&&p.isEditable&&setTimeout(()=>{const g=p.state.selection;g&&p.commands.deleteRange({from:g.from,to:g.to})},10)}return!1},paste:(f,h)=>{var p;const g=(p=h.clipboardData)==null?void 0:p.getData("text/html");return o=h,s=!!(g!=null&&g.includes("data-pm-slice")),!1}}},appendTransaction:(f,h,p)=>{const g=f[0],m=g.getMeta("uiEvent")==="paste"&&!s,x=g.getMeta("uiEvent")==="drop"&&!i,v=g.getMeta("applyPasteRules"),y=!!v;if(!m&&!x&&!y)return;if(y){let{text:E}=v;typeof E=="string"?E=E:E=VS(xe.from(E),p.schema);const{from:C}=v,_=C+E.length,A=bZ(E);return l({rule:d,state:p,from:C,to:{b:_},pasteEvt:A})}const b=h.doc.content.findDiffStart(p.doc.content),S=h.doc.content.findDiffEnd(p.doc.content);if(!(!xZ(b)||!S||b===S.b))return l({rule:d,state:p,from:b,to:S,pasteEvt:o})}}))}var ev=class{constructor(t,e){this.splittableMarks=[],this.nonClearableMarks=[],this.editor=e,this.baseExtensions=t,this.extensions=b3(t),this.schema=OQ(this.extensions,e),this.setupExtensions()}get commands(){return this.extensions.reduce((t,e)=>{const r={name:e.name,options:e.options,storage:this.editor.extensionStorage[e.name],editor:this.editor,type:Jd(e.name,this.schema)},n=ze(e,"addCommands",r);return n?{...t,...n()}:t},{})}get plugins(){const{editor:t}=this;return Mf([...this.extensions].reverse()).flatMap(n=>{const s={name:n.name,options:n.options,storage:this.editor.extensionStorage[n.name],editor:t,type:Jd(n.name,this.schema)},i=[],o=ze(n,"addKeyboardShortcuts",s);let a={};if(n.type==="mark"&&ze(n,"exitable",s)&&(a.ArrowRight=()=>Sc.handleExit({editor:t,mark:n})),o){const h=Object.fromEntries(Object.entries(o()).map(([p,g])=>[p,()=>g({editor:t})]));a={...a,...h}}const l=OJ(a);i.push(l);const u=ze(n,"addInputRules",s);if(Vk(n,t.options.enableInputRules)&&u){const h=u();if(h&&h.length){const p=mZ({editor:t,rules:h}),g=Array.isArray(p)?p:[p];i.push(...g)}}const d=ze(n,"addPasteRules",s);if(Vk(n,t.options.enablePasteRules)&&d){const h=d();if(h&&h.length){const p=SZ({editor:t,rules:h});i.push(...p)}}const f=ze(n,"addProseMirrorPlugins",s);if(f){const h=f();i.push(...h)}return i})}get attributes(){return w3(this.extensions)}get nodeViews(){const{editor:t}=this,{nodeExtensions:e}=ud(this.extensions);return Object.fromEntries(e.filter(r=>!!ze(r,"addNodeView")).map(r=>{const n=this.attributes.filter(l=>l.type===r.name),s={name:r.name,options:r.options,storage:this.editor.extensionStorage[r.name],editor:t,type:Ar(r.name,this.schema)},i=ze(r,"addNodeView",s);if(!i)return[];const o=i();if(!o)return[];const a=(l,u,d,f,h)=>{const p=X0(l,n);return o({node:l,view:u,getPos:d,decorations:f,innerDecorations:h,editor:t,extension:r,HTMLAttributes:p})};return[r.name,a]}
677))}dispatchTransaction(t){const{editor:e}=this;return Mf([...this.extensions].reverse()).reduceRight((n,s)=>{const i={name:s.name,options:s.options,storage:this.editor.extensionStorage[s.name],editor:e,type:Jd(s.name,this.schema)},o=ze(s,"dispatchTransaction",i);return o?a=>{o.call(i,{transaction:a,next:n})}:n},t)}transformPastedHTML(t){const{editor:e}=this;return Mf([...this.extensions]).reduce((n,s)=>{const i={name:s.name,options:s.options,storage:this.editor.extensionStorage[s.name],editor:e,type:Jd(s.name,this.schema)},o=ze(s,"transformPastedHTML",i);return o?(a,l)=>{const u=n(a,l);return o.call(i,u)}:n},t||(n=>n))}get markViews(){const{editor:t}=this,{markExtensions:e}=ud(this.extensions);return Object.fromEntries(e.filter(r=>!!ze(r,"addMarkView")).map(r=>{const n=this.attributes.filter(a=>a.type===r.name),s={name:r.name,options:r.options,storage:this.editor.extensionStorage[r.name],editor:t,type:Xo(r.name,this.schema)},i=ze(r,"addMarkView",s);if(!i)return[];const o=(a,l,u)=>{const d=X0(a,n);return i()({mark:a,view:l,inline:u,editor:t,extension:r,HTMLAttributes:d,updateAttributes:f=>{FZ(a,t,f)}})};return[r.name,o]}))}destroy(){this.extensions.forEach(t=>{let e=t;for(;e.parent;){const r=e.parent;r.child===e&&(r.child=null),e=r}}),this.extensions=[],this.baseExtensions=[],this.schema=null,this.editor=null}setupExtensions(){const t=this.extensions;this.editor.extensionStorage=Object.fromEntries(t.map(e=>[e.name,e.storage])),t.forEach(e=>{var r,n;const s={name:e.name,options:e.options,storage:this.editor.extensionStorage[e.name],editor:this.editor,type:Jd(e.name,this.schema)};e.type==="mark"&&(((r=Rt(ze(e,"keepOnSplit",s)))==null||r)&&this.splittableMarks.push(e.name),(n=Rt(ze(e,"clearable",s)))==null||n||this.nonClearableMarks.push(e.name));const i=ze(e,"onBeforeCreate",s),o=ze(e,"onCreate",s),a=ze(e,"onUpdate",s),l=ze(e,"onSelectionUpdate",s),u=ze(e,"onTransaction",s),d=ze(e,"onFocus",s),f=ze(e,"onBlur",s),h=ze(e,"onDestroy",s);i&&this.editor.on("beforeCreate",i),o&&this.editor.on("create",o),a&&this.editor.on("update",a),l&&this.editor.on("selectionUpdate",l),u&&this.editor.on("transaction",u),d&&this.editor.on("focus",d),f&&this.editor.on("blur",f),h&&this.editor.on("destroy",h)})}};ev.resolve=b3;ev.sort=Mf;ev.flatten=HS;var _Z={};$S(_Z,{ClipboardTextSerializer:()=>O3,Commands:()=>P3,Delete:()=>M3,Drop:()=>I3,Editable:()=>D3,FocusEvents:()=>F3,Keymap:()=>B3,Paste:()=>$3,Tabindex:()=>z3,TextDirection:()=>U3,focusEventsPluginKey:()=>L3});var xr=class R3 extends qS{constructor(){super(...arguments),this.type="extension"}static create(e={}){const r=typeof e=="function"?e():e;return new R3(r)}configure(e){return super.configure(e)}extend(e){const r=typeof e=="function"?e():e;return super.extend(r)}},O3=xr.create({name:"clipboardTextSerializer",addOptions(){return{blockSeparator:void 0}},addProseMirrorPlugins(){return[new nr({key:new Ur("clipboardTextSerializer"),props:{clipboardTextSerializer:()=>{const{editor:t}=this,{state:e,schema:r}=t,{doc:n,selection:s}=e,i=_3(r),{blockSeparator:o}=this.options,a={...o!==void 0?{blockSeparator:o}:{},textSerializers:i};return[...s.ranges].sort((u,d)=>u.$from.pos-d.$from.pos).map(({$from:u,$to:d})=>S3(n,{from:u.pos,to:d.pos},a)).join(o??`
678
679`)}}})]}}),P3=xr.create({name:"commands",addCommands(){return{...d3}}}),M3=xr.create({name:"delete",onUpdate({transaction:t,appendedTransactions:e}){var r,n,s;const i=()=>{var o,a,l,u;if((u=(l=(a=(o=this.editor.options.coreExtensionOptions)==null?void 0:o.delete)==null?void 0:a.filterTransaction)==null?void 0:l.call(a,t))!=null?u:t.getMeta("y-sync$"))return;const d=v3(t.before,[t,...e]);T3(d).forEach(p=>{d.mapping.mapResult(p.oldRange.from).deletedAfter&&d.mapping.mapResult(p.oldRange.to).deletedBefore&&d.before.nodesBetween(p.oldRange.from,p.oldRange.to,(g,m)=>{const x=m+g.nodeSize-2,v=p.oldRange.from<=m&&x<=p.oldRange.to;this.editor.emit("delete",{type:"node",node:g,from:m,to:x,newFrom:d.mapping.map(m),newTo:d.mapping.map(x),deletedRange:p.oldRange,newRange:p.newRange,partial:!v,editor:this.editor,transaction:t,combinedTransform:d})})});const h=d.mapping;d.steps.forEach((p,g)=>{var m,x;if(p instanceof ki){const v=h.slice(g).map(p.from,-1),y=h.slice(g).map(p.to),b=h.invert().map(v,-1),S=h.invert().map(y),E=v>0?(m=d.doc.nodeAt(v-1))==null?void 0:m.marks.some(_=>_.eq(p.mark)):!1,C=(x=d.doc.nodeAt(y))==null?void 0:x.marks.some(_=>_.eq(p.mark));this.editor.emit("delete",{type:"mark",mark:p.mark,from:p.from,to:p.to,deletedRange:{from:b,to:S},newRange:{from:v,to:y},partial:!!(C||E),editor:this.editor,transaction:t,combinedTransform:d})}})};(s=(n=(r=this.editor.options.coreExtensionOptions)==null?void 0:r.delete)==null?void 0:n.async)==null||s?setTimeout(i,0):i()}}),I3=xr.create({name:"drop",addProseMirrorPlugins(){return[new nr({key:new Ur("tiptapDrop"),props:{handleDrop:(t,e,r,n)=>
vendor: 20,087 bytes, lines 679-751
679{this.editor.emit("drop",{editor:this.editor,event:e,slice:r,moved:n})}}})]}}),D3=xr.create({name:"editable",addProseMirrorPlugins(){return[new nr({key:new Ur("editable"),props:{editable:()=>this.editor.options.editable}})]}}),L3=new Ur("focusEvents"),F3=xr.create({name:"focusEvents",addProseMirrorPlugins(){const{editor:t}=this;return[new nr({key:L3,props:{handleDOMEvents:{focus:(e,r)=>{t.isFocused=!0;const n=t.state.tr.setMeta("focus",{event:r}).setMeta("addToHistory",!1);return e.dispatch(n),!1},blur:(e,r)=>{t.isFocused=!1;const n=t.state.tr.setMeta("blur",{event:r}).setMeta("addToHistory",!1);return e.dispatch(n),!1}}}})]}}),B3=xr.create({name:"keymap",addKeyboardShortcuts(){const t=()=>this.editor.commands.first(({commands:o})=>[()=>o.undoInputRule(),()=>o.command(({tr:a})=>{const{selection:l,doc:u}=a,{empty:d,$anchor:f}=l,{pos:h,parent:p}=f,g=f.parent.isTextblock&&h>0?a.doc.resolve(h-1):f,m=g.parent.type.spec.isolating,x=f.pos-f.parentOffset,v=m&&g.parent.childCount===1?x===f.pos:ut.atStart(u).from===h;return!d||!p.type.isTextblock||p.textContent.length||!v||v&&f.parent.type.name==="paragraph"?!1:o.clearNodes()}),()=>o.deleteSelection(),()=>o.joinBackward(),()=>o.selectNodeBackward()]),e=()=>this.editor.commands.first(({commands:o})=>[()=>o.deleteSelection(),()=>o.deleteCurrentNode(),()=>o.joinForward(),()=>o.selectNodeForward()]),n={Enter:()=>this.editor.commands.first(({commands:o})=>[()=>o.newlineInCode(),()=>o.createParagraphNear(),()=>o.liftEmptyBlock(),()=>o.splitBlock()]),"Mod-Enter":()=>this.editor.commands.exitCode(),Backspace:t,"Mod-Backspace":t,"Shift-Backspace":t,Delete:e,"Mod-Delete":e,"Mod-a":()=>this.editor.commands.selectAll()},s={...n},i={...n,"Ctrl-h":t,"Alt-Backspace":t,"Ctrl-d":e,"Ctrl-Alt-Backspace":e,"Alt-Delete":e,"Alt-d":e,"Ctrl-a":()=>this.editor.commands.selectTextblockStart(),"Ctrl-e":()=>this.editor.commands.selectTextblockEnd()};return K0()||g3()?i:s},addProseMirrorPlugins(){return[new nr({key:new Ur("clearDocument"),appendTransaction:(t,e,r)=>{if(t.some(m=>m.getMeta("composition")))return;const n=t.some(m=>m.docChanged)&&!e.doc.eq(r.doc),s=t.some(m=>m.getMeta("preventClearDocument"));if(!n||s)return;const{empty:i,from:o,to:a}=e.selection,l=ut.atStart(e.doc).from,u=ut.atEnd(e.doc).to;if(i||!(o===l&&a===u)||!Qx(r.doc))return;const h=r.tr,p=Kx({state:r,transaction:h}),{commands:g}=new Xx({editor:this.editor,state:p});if(g.clearNodes(),!!h.steps.length)return h}})]}}),$3=xr.create({name:"paste",addProseMirrorPlugins(){return[new nr({key:new Ur("tiptapPaste"),props:{handlePaste:(t,e,r)=>{this.editor.emit("paste",{editor:this.editor,event:e,slice:r})}}})]}}),z3=xr.create({name:"tabindex",addOptions(){return{value:void 0}},addProseMirrorPlugins(){return[new nr({key:new Ur("tabindex"),props:{attributes:()=>{var t;return!this.editor.isEditable&&this.options.value===void 0?{}:{tabindex:(t=this.options.value)!=null?t:"0"}}}})]}}),U3=xr.create({name:"textDirection",addOptions(){return{direction:void 0}},addGlobalAttributes(){if(!this.options.direction)return[];const{nodeExtensions:t}=ud(this.extensions);return[{types:t.filter(e=>e.name!=="text").map(e=>e.name),attributes:{dir:{default:this.options.direction,parseHTML:e=>{const r=e.getAttribute("dir");return r&&(r==="ltr"||r==="rtl"||r==="auto")?r:this.options.direction},renderHTML:e=>e.dir?{dir:e.dir}:{}}}}]},addProseMirrorPlugins(){return[new nr({key:new Ur("textDirection"),props:{attributes:()=>{const t=this.options.direction;return t?{dir:t}:{}}}})]}}),EZ=class df{constructor(e,r,n=!1,s=null){this.currentNode=null,this.actualDepth=null,this.isBlock=n,this.resolvedPos=e,this.editor=r,this.currentNode=s}get name(){return this.node.type.name}get node(){return this.currentNode||this.resolvedPos.node()}get element(){return this.editor.view.domAtPos(this.pos).node}get depth(){var e;return(e=this.actualDepth)!=null?e:this.resolvedPos.depth}get pos(){return this.resolvedPos.pos}get content(){return this.node.content}set content(e){let r=this.from,n=this.to;if(this.isBlock){if(this.content.size===0){console.error(`You can’t set content on a block node. Tried to set content on ${this.name} at ${this.pos}`);return}r=this.from+1,n=this.to-1}this.editor.commands.insertContentAt({from:r,to:n},e)}get attributes(){return this.node.attrs}get textContent(){return this.node.textContent}get size(){return this.node.nodeSize}get from(){return this.isBlock?this.pos:this.resolvedPos.start(this.resolvedPos.depth)}get range(){return{from:this.from,to:this.to}}get to(){return this.isBlock?this.pos+this.size:this.resolvedPos.end(this.resolvedPos.depth)+(this.node.isText?0:1)}get parent(){if(this.depth===0)return null;const e=this.resolvedPos.start(this.resolvedPos.depth-1),r=this.resolvedPos.doc.resolve(e);return new df(r,this.editor)}get before(){let e=this.resolvedPos.doc.resolve(this.from-(this.isBlock?1:2));return e.depth!==this.depth&&(e=this.resolvedPos.doc.resolve(this.from-3)),new df(e,this.editor)}get after(){let e=this.resolvedPos.doc.resolve(this.to+(this.isBlock?2:1));return e.depth!==this.depth&&(e=this.resolvedPos.doc.resolve(this.to+3)),new df(e,this.editor)}get children(){const e=[];return this.node.content.forEach((r,n)=>{const s=r.isBlock&&!r.isTextblock,i=r.isAtom&&!r.isText,o=r.isInline,a=this.pos+n+(i?0:1);if(a<0||a>this.resolvedPos.doc.nodeSize-2)return;const l=this.resolvedPos.doc.resolve(a);if(!s&&!o&&l.depth<=this.depth)return;const u=new df(l,this.editor,s,s||o?r:null);s&&(u.actualDepth=this.depth+1),e.push(u)}),e}get firstChild(){return this.children[0]||null}get lastChild(){const e=this.children;return e[e.length-1]||null}closest(e,r={}){let n=null,s=this.parent;for(;s&&!n;){if(s.node.type.name===e)if(Object.keys(r).length>0){const i=s.node.attrs,o=Object.keys(r);for(let a=0;a<o.length;a+=1){const l=o[a];if(i[l]!==r[l])break}}else n=s;s=s.parent}return n}querySelector(e,r={}){return this.querySelectorAll(e,r,!0)[0]||null}querySelectorAll(e,r={},n=!1){let s=[];if(!this.children||this.children.length===0)return s;const i=Object.keys(r);return this.children.forEach(o=>{n&&s.length>0||(o.node.type.name===e&&i.every(l=>r[l]===o.node.attrs[l])&&s.push(o),!(n&&s.length>0)&&(s=s.concat(o.querySelectorAll(e,r,n))))}),s}setAttribute(e){const{tr:r}=this.editor.state;r.setNodeMarkup(this.from,void 0,{...this.node.attrs,...e}),this.editor.view.dispatch(r)}},TZ=`.ProseMirror {
680  position: relative;
681}
682
683.ProseMirror {
684  word-wrap: break-word;
685  white-space: pre-wrap;
686  white-space: break-spaces;
687  -webkit-font-variant-ligatures: none;
688  font-variant-ligatures: none;
689  font-feature-settings: "liga" 0; /* the above doesn't seem to work in Edge */
690}
691
692.ProseMirror [contenteditable="false"] {
693  white-space: normal;
694}
695
696.ProseMirror [contenteditable="false"] [contenteditable="true"] {
697  white-space: pre-wrap;
698}
699
700.ProseMirror pre {
701  white-space: pre-wrap;
702}
703
704img.ProseMirror-separator {
705  display: inline !important;
706  border: none !important;
707  margin: 0 !important;
708  width: 0 !important;
709  height: 0 !important;
710}
711
712.ProseMirror-gapcursor {
713  display: none;
714  pointer-events: none;
715  position: absolute;
716  margin: 0;
717}
718
719.ProseMirror-gapcursor:after {
720  content: "";
721  display: block;
722  position: absolute;
723  top: -2px;
724  width: 20px;
725  border-top: 1px solid black;
726  animation: ProseMirror-cursor-blink 1.1s steps(2, start) infinite;
727}
728
729@keyframes ProseMirror-cursor-blink {
730  to {
731    visibility: hidden;
732  }
733}
734
735.ProseMirror-hideselection *::selection {
736  background: transparent;
737}
738
739.ProseMirror-hideselection *::-moz-selection {
740  background: transparent;
741}
742
743.ProseMirror-hideselection * {
744  caret-color: transparent;
745}
746
747.ProseMirror-focused .ProseMirror-gapcursor {
748  display: block;
749}`;function CZ(t,e,r){const n=document.querySelector("style[data-tiptap-style]");if(n!==null)return n;const s=document.createElement("style");return e&&s.setAttribute("nonce",e),s.setAttribute("data-tiptap-style",""),s.innerHTML=t,document.getElementsByTagName("head")[0].appendChild(s),s}var kZ=class extends hZ{constructor(t={}){super(),this.css=null,this.className="tiptap",this.editorView=null,this.isFocused=!1,this.destroyed=!1,this.isInitialized=!1,this.extensionStorage={},this.instanceId=Math.random().toString(36).slice(2,9),this.options={element:typeof document<"u"?document.createElement("div"):null,content:"",injectCSS:!0,injectNonce:void 0,extensions:[],autofocus:!1,editable:!0,textDirection:void 0,editorProps:{},parseOptions:{},coreExtensionOptions:{},enableInputRules:!0,enablePasteRules:!0,enableCoreExtensions:!0,enableContentCheck:!1,emitContentError:!1,onBeforeCreate:()=>null,onCreate:()=>null,onMount:()=>null,onUnmount:()=>null,onUpdate:()=>null,onSelectionUpdate:()=>null,onTransaction:()=>null,onFocus:()=>null,onBlur:()=>null,onDestroy:()=>null,onContentError:({error:n})=>{throw n},onPaste:()=>null,onDrop:()=>null,onDelete:()=>null,enableExtensionDispatchTransaction:!0},this.isCapturingTransaction=!1,this.capturedTransaction=null,this.utils={getUpdatedPosition:HQ,createMappablePosition:VQ},this.setOptions(t),this.createExtensionManager(),this.createCommandManager(),this.createSchema(),this.on("beforeCreate",this.options.onBeforeCreate),this.emit("beforeCreate",{editor:this}),this.on("mount",this.options.onMount),this.on("unmount",this.options.onUnmount),this.on("contentError",this.options.onContentError),this.on("create",this.options.onCreate),this.on("update",this.options.onUpdate),this.on("selectionUpdate",this.options.onSelectionUpdate),this.on("transaction",this.options.onTransaction),this.on("focus",this.options.onFocus),this.on("blur",this.options.onBlur),this.on("destroy",this.options.onDestroy),this.on("drop",({event:n,slice:s,moved:i})=>this.options.onDrop(n,s,i)),this.on("paste",({event:n,slice:s})=>this.options.onPaste(n,s)),this.on("delete",this.options.onDelete);const e=this.createDoc(),r=p3(e,this.options.autofocus);this.editorState=mu.create({doc:e,schema:this.schema,selection:r||void 0}),this.options.element&&this.mount(this.options.element)}mount(t){if(typeof document>"u")throw new Error("[tiptap error]: The editor cannot be mounted because there is no 'document' defined in this environment.");this.createView(t),this.emit("mount",{editor:this}),this.css&&!document.head.contains(this.css)&&document.head.appendChild(this.css),window.setTimeout(()=>{this.isDestroyed||(this.options.autofocus!==!1&&this.options.autofocus!==null&&this.commands.focus(this.options.autofocus),this.emit("create",{editor:this}),this.isInitialized=!0)},0)}unmount(){if(this.editorView){const t=this.editorView.dom;t!=null&&t.editor&&delete t.editor,this.editorView.destroy()}if(this.editorView=null,this.isInitialized=!1,this.css&&!document.querySelectorAll(`.${this.className}`).length)try{typeof this.css.remove=="function"?this.css.remove():this.css.parentNode&&this.css.parentNode.removeChild(this.css)}catch(t){console.warn("Failed to remove CSS element:",t)}this.css=null,this.emit("unmount",{editor:this})}get storage(){return this.extensionStorage}get commands(){return this.commandManager.commands}chain(){return this.commandManager.chain()}can(){return this.commandManager.can()}injectCSS(){this.options.injectCSS&&typeof document<"u"&&(this.css=CZ(TZ,this.options.injectNonce))}setOptions(t={}){this.options={...this.options,...t},!(!this.editorView||!this.state||this.isDestroyed)&&(this.options.editorProps&&this.view.setProps(this.options.editorProps),this.view.updateState(this.state))}setEditable(t,e=!0){this.setOptions({editable:t}),e&&this.emit("update",{editor:this,transaction:this.state.tr,appendedTransactions:[]})}get isEditable(){return this.options.editable&&this.view&&this.view.editable}get view(){return this.editorView?this.editorView:new Proxy({state:this.editorState,updateState:t=>{this.editorState=t},dispatch:t=>{this.dispatchTransaction(t)},composing:!1,dragging:null,editable:!0,isDestroyed:!1},{get:(t,e)=>{if(this.editorView)return this.editorView[e];if(e==="state")return this.editorState;if(e in t)return Reflect.get(t,e);throw new Error(`[tiptap error]: The editor view is not available. Cannot access view['${e}']. The editor may not be mounted yet.`)}})}get state(){return this.editorView&&(this.editorState=this.view.state),this.editorState}registerPlugin(t,e){const r=y3(e)?e(t,[...this.state.plugins]):[...this.state.plugins,t],n=this.state.reconfigure({plugins:r});return this.view.updateState(n),n}unregisterPlugin(t){if(this.isDestroyed)return;const e=this.state.plugins;let r=e;if([].concat(t).forEach(s=>{const i=typeof s=="string"?`${s}$`:s.key;r=r.filter(o=>!o.key.startsWith(i))}),e.length===r.length)return;const n=this.state.reconfigure({plugins:r});return this.view.updateState(n),n}createExtensionManager(){var t,e,r,n;const i=[...this.options.enableCoreExtensions?[D3,O3.configure({blockSeparator:(e=(t=this.options.coreExtensionOptions)==null?void 0:t.clipboardTextSerializer)==null?void 0:e.blockSeparator}),P3,F3,B3,z3.configure({value:(n=(r=this.options.coreExtensionOptions)==null?void 0:r.tabindex)==null?void 0:n.value}),I3,$3,M3,U3.configure({direction:this.options.textDirection})].filter(o=>typeof this.options.enableCoreExtensions=="object"?this.options.enableCoreExtensions[o.name]!==!1:!0):[],...this.options.extensions].filter(o=>["extension","node","mark"].includes(o==null?void 0:o.type));this.extensionManager=new ev(i,this)}createCommandManager(){this.commandManager=new Xx({editor:this})}createSchema(){this.schema=this.extensionManager.schema}createDoc(){let t;try{t=ab(this.options.content,this.schema,this.options.parseOptions,{errorOnInvalidContent:this.options.enableContentCheck})}catch(e){if(!(e instanceof Error)||!["[tiptap error]: Invalid JSON content","[tiptap error]: Invalid HTML content"].includes(e.message))throw e;this.emit("contentError",{editor:this,error:e,disableCollaboration:()=>{"collaboration"in this.storage&&typeof this.storage.collaboration=="object"&&this.storage.collaboration&&(this.storage.collaboration.isDisabled=!0),this.options.extensions=this.options.extensions.filter(r=>r.name!=="collaboration"),this.createExtensionManager()}}),t=ab(this.options.content,this.schema,this.options.parseOptions,{errorOnInvalidContent:!1})}return t}createView(t){const{editorProps:e,enableExtensionDispatchTransaction:r}=this.options,n=e.dispatchTransaction||this.dispatchTransaction.bind(this),s=r?this.extensionManager.dispatchTransaction(n):n,i=e.transformPastedHTML,o=this.extensionManager.transformPastedHTML(i);this.editorView=new c3(t,{...e,attributes:{role:"textbox",...e==null?void 0:e.attributes},dispatchTransaction:s,transformPastedHTML:o,state:this.editorState,markViews:this.extensionManager.markViews,nodeViews:this.extensionManager.nodeViews});const a=this.state.reconfigure({plugins:this.extensionManager.plugins});this.view.updateState(a),this.prependClass(),this.injectCSS();const l=this.view.dom;l.editor=this}createNodeViews(){this.view.isDestroyed||this.view.setProps({markViews:this.extensionManager.markViews,nodeViews:this.extensionManager.nodeViews})}prependClass(){this.view.dom.className=`${this.className} ${this.view.dom.className}`}captureTransaction(t){this.isCapturingTransaction=!0,t(),this.isCapturingTransaction=!1;const e=this.capturedTransaction;return this.capturedTransaction=null,e}dispatchTransaction(t){if(this.view.isDestroyed)return;if(this.isCapturingTransaction){if(!this.capturedTransaction){this.capturedTransaction=t;return}t.steps.forEach(u=>{var d;return(d=this.capturedTransaction)==null?void 0:d.step(u)});return}const{state:e,transactions:r}=this.state.applyTransaction(t),n=!this.state.selection.eq(e.selection),s=r.includes(t),i=this.state;if(this.emit("beforeTransaction",{editor:this,transaction:t,nextState:e}),!s)return;this.view.updateState(e),this.emit("transaction",{editor:this,transaction:t,appendedTransactions:r.slice(1)}),n&&this.emit("selectionUpdate",{editor:this,transaction:t});const o=r.findLast(u=>u.getMeta("focus")||u.getMeta("blur")),a=o==null?void 0:o.getMeta("focus"),l=o==null?void 0:o.getMeta("blur");a&&this.emit("focus",{editor:this,event:a.event,transaction:o}),l&&this.emit("blur",{editor:this,event:l.event,transaction:o}),!(t.getMeta("preventUpdate")||!r.some(u=>u.docChanged)||i.doc.eq(e.doc))&&this.emit("update",{editor:this,transaction:t,appendedTransactions:r.slice(1)})}getAttributes(t){return E3(this.state,t)}isActive(t,e){const r=typeof t=="string"?t:null,n=typeof t=="string"?e:t;return $Q(this.state,r,n)}getJSON(){return this.state.doc.toJSON()}getHTML(){return VS(this.state.doc.content,this.schema)}getText(t){const{blockSeparator:e=`
750
751`,textSerializers:r={}}=t||{};return MQ(this.state.doc,{blockSeparator:e,textSerializers:{..._3(this.schema),...r}})}get isEmpty(){return Qx(this.state.doc)}destroy(){this.destroyed||(this.destroyed=!0,this.emit("destroy"),this.unmount(),this.removeAllListeners(),this.extensionManager.destroy(),this.extensionManager=null,this.schema=null,this.commandManager=null,this.extensionStorage={})}get isDestroyed(){var t,e;return(e=(t=this.editorView)==null?void 0:t.isDestroyed)!=null?e:!0}$node(t,e){var r;return((r=this.$doc)==null?void 0:r.querySelector(t,e))||null}$nodes(t,e){var r;return((r=this.$doc)==null?void 0:r.querySelectorAll(t,e))||null}$pos(t){const e=this.state.doc.resolve(t),r=t>0&&e.nodeAfter&&!e.nodeAfter.isText?e.nodeAfter:null;return new EZ(e,this,!1,r)}get $doc(){return this.$pos(0)}};function dd(t){return new Zx({find:t.find,handler:({state:e,range:r,match:n})=>{const s=Rt(t.getAttributes,void 0,n);if(s===!1||s===null)return null;const{tr:i}=e,o=n[n.length-1],a=n[0];if(o){const l=a.search(/\S/),u=r.from+a.indexOf(o),d=u+o.length;if(WS(r.from,r.to,e.doc).filter(p=>p.mark.type.excluded.find(m=>m===t.type&&m!==p.mark.type)).filter(p=>p.to>u).length)return null;d<r.to&&i.delete(d,r.to),u>r.from&&i.delete(r.from+l,u);const h=r.from+l+o.length;i.addMark(r.from+l,h,t.type.create(s||{})),i.removeStoredMark(t.type)}},undoable:t.undoable})}function NZ(t){return new Zx({find:t.find,handler:({state:e,range:r,match:n})=>{const s=Rt(t.getAttributes,void 0,n)||{},{tr:i}=e,o=r.from;let a=r.to;const l=t.type.create(s);if(n[1]){const u=n[0].lastIndexOf(n[1]);let d=o+u;d>a?d=a:a=d+n[1].length;const f=n[0][n[0].length-1];i.insertText(f,o+n[0].length-1),i.replaceWith(d,a,l)}else if(n[0]){const u=t.type.isInline?o:o-1;i.insert(u,t.type.create(s)).delete(i.mapping.map(o),i.mapping.map(a))}i.scrollIntoView()},undoable:t.undoable})}function cb(t){return new Zx({find:t.find,handler:({state:e,range:r,match:n})=>{const s=e.doc.resolve(r.from),i=Rt(t.getAttributes,void 0,n)||{};if(!s.node(-1).canReplaceWith(s.index(-1),s.indexAfter(-1),t.type))return null;e.tr.delete(r.from,r.to).setBlockType(r.from,r.from,t.type,i)},undoable:t.undoable})}function fd(t){return new Zx({find:t.find,handler:({state:e,range:r,match:n,chain:s})=>{const i=Rt(t.getAttributes,void 0,n)||{},o=e.tr.delete(r.from,r.to),l=o.doc.resolve(r.from).blockRange(),u=l&&kS(l,t.type,i);if(!u)return null;if(o.wrap(l,u),t.keepMarks&&t.editor){const{selection:f,storedMarks:h}=e,{splittableMarks:p}=t.editor.extensionManager,g=h||f.$to.parentOffset&&f.$from.marks();if(g){const m=g.filter(x=>p.includes(x.type.name));o.ensureMarks(m)}}if(t.keepAttributes){const f=t.type.name==="bulletList"||t.type.name==="orderedList"?"listItem":"taskList";s().updateAttributes(f,i).run()}const d=o.doc.resolve(r.from-1).nodeBefore;d&&d.type===t.type&&dl(o.doc,r.from-1)&&(!t.joinPredicate||t.joinPredicate(n,d))&&o.join(r.from-1)},undoable:t.undoable})}function AZ(t,e){const{selection:r}=t,{$from:n}=r;if(r instanceof We){const i=n.index();return n.parent.canReplaceWith(i,i+1,e)}let s=n.depth;for(;s>=0;){const i=n.index(s);if(n.node(s).contentMatchAt(i).matchType(e))return!0;s-=1}return!1}var jZ={};$S(jZ,{createAtomBlockMarkdownSpec:()=>RZ,createBlockMarkdownSpec:()=>OZ,createInlineMarkdownSpec:()=>IZ,parseAttributes:()=>GS,parseIndentedBlocks:()=>DZ,renderNestedMarkdownContent:()=>LZ,serializeAttributes:()=>KS});function GS(t){if(!(t!=null&&t.trim()))return{};const e={},r=[],n=t.replace(/["']([^"']*)["']/g,u=>(r.push(u),`__QUOTED_${r.length-1}
751__`)),s=n.match(/(?:^|\s)\.([a-zA-Z][\w-]*)/g);if(s){const u=s.map(d=>d.trim().slice(1));e.class=u.join(" ")}const i=n.match(/(?:^|\s)#([a-zA-Z][\w-]*)/);i&&(e.id=i[1]);const o=/([a-zA-Z][\w-]*)\s*=\s*(__QUOTED_\d+__)/g;Array.from(n.matchAll(o)).forEach(([,u,d])=>{var f;const h=parseInt(((f=d.match(/__QUOTED_(\d+)__/))==null?void 0:f[1])||"0",10),p=r[h];p&&(e[u]=p.slice(1,-1))});const l=n.replace(/(?:^|\s)\.([a-zA-Z][\w-]*)/g,"").replace(/(?:^|\s)#([a-zA-Z][\w-]*)/g,"").replace(/([a-zA-Z][\w-]*)\s*=\s*__QUOTED_\d+__/g,"").trim();return l&&l.split(/\s+/).filter(Boolean).forEach(d=>{d.match(/^[a-zA-Z][\w-]*$/)&&(e[d]=!0)}),e}function KS(t){if(!t||Object.keys(t).length===0)return"";const e=[];return t.class&&String(t.class).split(/\s+/).filter(Boolean).forEach(n=>e.push(`.${n}`)),t.id&&e.push(`#${t.id}`),Object.entries(t).forEach(([r,n])=>{r==="class"||r==="id"||(n===!0?e.push(r):n!==!1&&n!=null&&e.push(`${r}="${String(n)}"`))}),e.join(" ")}function RZ(t){const{nodeName:e,name:r,parseAttributes:n=GS,serializeAttributes:s=KS,defaultAttributes:i={},requiredAttributes:o=[],allowedAttributes:a}=t,l=r||e,u=d=>{if(!a)return d;const f={};return a.forEach(h=>{h in d&&(f[h]=d[h])}),f};return{parseMarkdown:(d,f)=>{const h={...i,...d.attributes};return f.createNode(e,h,[])},markdownTokenizer:{name:e,level:"block",start(d){var f;const h=new RegExp(`^:::${l}(?:\\s|$)`,"m"),p=(f=d.match(h))==null?void 0:f.index;return p!==void 0?p:-1},tokenize(d,f,h){const p=new RegExp(`^:::${l}(?:\\s+\\{([^}]*)\\})?\\s*:::(?:\\n|$)`),g=d.match(p);if(!g)return;const m=g[1]||"",x=n(m);if(!o.find(y=>!(y in x)))return{type:e,raw:g[0],attributes:x}}},renderMarkdown:d=>{const f=u(d.attrs||{}),h=s(f),p=h?` {${h}}`:"";return`:::${l}${p} :::`}}}function OZ(t){const{nodeName:e,name:r,getContent:n,parseAttributes:s=GS,serializeAttributes:i=KS,defaultAttributes:o={},content:a="block",allowedAttributes:l}=t,u=r||e,d=f=>{if(!l)return f;const h={};return l.forEach(p=>{p in f&&(h[p]=f[p])}),h};return{parseMarkdown:(f,h)=>{let p;if(n){const m=n(f);p=typeof m=="string"?[{type:"text",text:m}]:m}else a==="block"?p=h.parseChildren(f.tokens||[]):p=h.parseInline(f.tokens||[]);const g={...o,...f.attributes};return h.createNode(e,g,p)},markdownTokenizer:{name:e,level:"block",start(f){var h;const p=new RegExp(`^:::${u}`,"m"),g=(h=f.match(p))==null?void 0:h.index;return g!==void 0?g:-1},tokenize(f,h,p){var g;const m=new RegExp(`^:::${u}(?:\\s+\\{([^}]*)\\})?\\s*\\n`),x=f.match(m);if(!x)return;const[v,y=""]=x,b=s(y);let S=1;const E=v.length;let C="";const _=/^:::([\w-]*)(\s.*)?/gm,A=f.slice(E);for(_.lastIndex=0;;){const N=_.exec(A);if(N===null)break;const D=N.index,V=N[1];if(!((g=N[2])!=null&&g.endsWith(":::"))){if(V)S+=1;else if(S-=1,S===0){const H=A.slice(0,D);C=H.trim();const U=f.slice(0,E+D+N[0].length);let K=[];if(C)if(a==="block")for(K=p.blockTokens(H),K.forEach(te=>{te.text&&(!te.tokens||te.tokens.length===0)&&(te.tokens=p.inlineTokens(te.text))});K.length>0;){const te=K[K.length-1];if(te.type==="paragraph"&&(!te.text||te.text.trim()===""))K.pop();else break}else K=p.inlineTokens(C);return{type:e,raw:U,attributes:b,content:C,tokens:K}}}}}},renderMarkdown:(f,h)=>{const p=d(f.attrs||{}),g=i(p),m=g?` {${g}}`:"",x=h.renderChildren(f.content||[],`
752
753`);return`:::${u}${m}
754
755${x}
756
757:::`}}}function PZ(t){if(!t.trim())return{};const e={},r=/(\w+)=(?:"([^"]*)"|'([^']*)')/g;let n=r.exec(t);for(;n!==null;){const[,s,i,o]=n;e[s]=i||o,n=r.exec(t)}return e}function MZ(t){return Object.entries(t).filter(([,e])=>e!=null).map(([e,r])=>`${e}="${r}"`).join(" ")}function IZ(t){const{nodeName:e,name:r,getContent:n,parseAttributes:s=PZ,serializeAttributes:i=MZ,defaultAttributes:o={},selfClosing:a=!1,allowedAttributes:l}=t,u=r||e,d=h=>{if(!l)return h;const p={};return l.forEach(g=>{const m=typeof g=="string"?g:g.name,x=typeof g=="string"?void 0:g.skipIfDefault;if(m in h){const v=h[m];if(x!==void 0&&v===x)return;p[m]=v}}),p},f=u.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return{parseMarkdown:(h,p)=>{const g={...o,...h.attributes};if(a)return p.createNode(e,g);const m=n?n(h):h.content||"";return m?p.createNode(e,g,[p.createTextNode(m)]):p.createNode(e,g,[])},markdownTokenizer:{name:e,level:"inline",start(h){const p=a?new RegExp(`\\[${f}\\s*[^\\]]*\\]`):new RegExp(`\\[${f}\\s*[^\\]]*\\][\\s\\S]*?\\[\\/${f}\\]`),g=h.match(p),m=g==null?void 0:g.index;return m!==void 0?m:-1},tokenize(h,p,g){const m=a?new RegExp(`^\\[${f}\\s*([^\\]]*)\\]`):new RegExp(`^\\[${f}\\s*([^\\]]*)\\]([\\s\\S]*?)\\[\\/${f}\\]`),x=h.match(m);if(!x)return;let v="",y="";if(a){const[,S]=x;y=S}else{const[,S,E]=x;y=S,v=E||""}const b=s(y.trim());return{type:e,raw:x[0],content:v.trim(),attributes:b}}},renderMarkdown:h=>{let p="";n?p=n(h):h.content&&h.content.length>0&&(p=h.content.filter(v=>v.type==="text").map(v=>v.text).join(""));const g=d(h.attrs||{}),m=i(g),x=m?` ${m}`:"";return a?`[${u}${x}]`:`[${u}${x}]${p}[/${u}]`}}
757}function DZ(t,e,r){var n,s,i,o;const a=t.split(`
758`),l=[];let u="",d=0;const f=e.baseIndentSize||2;for(;d<a.length;){const h=a[d],p=h.match(e.itemPattern);if(!p){if(l.length>0)break;if(h.trim()===""){d+=1,u=`${u}${h}
759`;continue}else return}const g=e.extractItemData(p),{indentLevel:m,mainContent:x}=g;u=`${u}${h}
760`;const v=[x];for(d+=1;d<a.length;){const E=a[d];if(E.trim()===""){const _=a.slice(d+1).findIndex(D=>D.trim()!=="");if(_===-1)break;if((((s=(n=a[d+1+_].match(/^(\s*)/))==null?void 0:n[1])==null?void 0:s.length)||0)>m){v.push(E),u=`${u}${E}
761`,d+=1;continue}else break}if((((o=(i=E.match(/^(\s*)/))==null?void 0:i[1])==null?void 0:o.length)||0)>m)v.push(E),u=`${u}${E}
762`,d+=1;else break}let y;const b=v.slice(1);if(b.length>0){const E=b.map(C=>C.slice(m+f)).join(`
763`);E.trim()&&(e.customNestedParser?y=e.customNestedParser(E):y=r.blockTokens(E))}const S=e.createToken(g,y);l.push(S)}if(l.length!==0)return{items:l,raw:u}}function LZ(t,e,r,n){if(!t||!Array.isArray(t.content))return"";const s=typeof r=="function"?r(n):r,[i,...o]=t.content,a=e.renderChildren([i]);let l=`${s}${a}`;return o&&o.length>0&&o.forEach((u,d)=>{var f,h;const p=(h=(f=e.renderChild)==null?void 0:f.call(e,u,d+1))!=null?h:e.renderChildren([u]);if(p!=null){const g=p.split(`
764`).map(m=>m?e.indent(m):e.indent("")).join(`
765`);l+=u.type==="paragraph"?`
766
767${g}`:`
768${g}`}}),l}function FZ(t,e,r={}){const{state:n}=e,{doc:s,tr:i}=n,o=t;s.descendants((a,l)=>{const u=i.mapping.map(l),d=i.mapping.map(l)+a.nodeSize;let f=null;if(a.marks.forEach(p=>{if(p!==o)return!1;f=p}),!f)return;let h=!1;if(Object.keys(r).forEach(p=>{r[p]!==f.attrs[p]&&(h=!0)}),h){const p=t.type.create({...t.attrs,...r});i.removeMark(u,d,t.type),i.addMark(u,d,p)}}),i.docChanged&&e.view.dispatch(i)}var Ps=class H3 extends qS{constructor(){super(...arguments),this.type="node"}static create(e={}){const r=typeof e=="function"?e():e;return new H3(r)}configure(e){return super.configure(e)}extend(e){const r=typeof e=="function"?e():e;return super.extend(r)}};function lc(t){return new vZ({find:t.find,handler:({state:e,range:r,match:n,pasteEvent:s})=>{const i=Rt(t.getAttributes,void 0,n,s);if(i===!1||i===null)return null;const{tr:o}=e,a=n[n.length-1],l=n[0];let u=r.to;if(a){const d=l.search(/\S/),f=r.from+l.indexOf(a),h=f+a.length;if(WS(r.from,r.to,e.doc).filter(m=>m.mark.type.excluded.find(v=>v===t.type&&v!==m.mark.type)).filter(m=>m.to>f).length)return null;h<r.to&&o.delete(h,r.to),f>r.from&&o.delete(r.from+d,f),u=r.from+d+a.length,o.addMark(r.from+d,u,t.type.create(i||{})),n.index!==void 0&&n.input!==void 0&&n.index+n[0].length>=n.input.length||o.removeStoredMark(t.type)}}})}var BZ=function t(e,r){if(e===r)return!0;if(e&&r&&typeof e=="object"&&typeof r=="object"){if(e.constructor!==r.constructor)return!1;var n,s,i;if(Array.isArray(e)){if(n=e.length,n!=r.length)return!1;for(s=n;s--!==0;)if(!t(e[s],r[s]))return!1;return!0}if(e instanceof Map&&r instanceof Map){if(e.size!==r.size)return!1;for(s of e.entries())if(!r.has(s[0]))return!1;for(s of e.entries())if(!t(s[1],r.get(s[0])))return!1;return!0}if(e instanceof Set&&r instanceof Set){if(e.size!==r.size)return!1;for(s of e.entries())if(!r.has(s[0]))return!1;return!0}if(ArrayBuffer.isView(e)&&ArrayBuffer.isView(r)){if(n=e.length,n!=r.length)return!1;for(s=n;s--!==0;)if(e[s]!==r[s])return!1;return!0}if(e.constructor===RegExp)return e.source===r.source&&e.flags===r.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===r.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===r.toString();if(i=Object.keys(e),n=i.length,n!==Object.keys(r).length)return!1;for(s=n;s--!==0;)if(!Object.prototype.hasOwnProperty.call(r,i[s]))return!1;for(s=n;s--!==0;){var o=i[s];if(!(o==="_owner"&&e.$$typeof)&&!t(e[o],r[o]))return!1}return!0}return e!==e&&r!==r};const $Z=md(BZ);var V3={exports:{}},W3={};/**
769 * @license React
770 * use-sync-external-store-shim/with-selector.production.js
771 *
772 * Copyright (c) Meta Platforms, Inc. and affiliates.
773 *
774 * This source code is licensed under the MIT license found in the
775 * LICENSE file in the root directory of this source tree.
776 */var tv=w,zZ=ES;function UZ(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var HZ=typeof Object.is=="function"?Object.is:UZ,VZ=zZ.useSyncExternalStore,WZ=tv.useRef,qZ=tv.useEffect,GZ=tv.useMemo,KZ=tv.useDebugValue;W3.useSyncExternalStoreWithSelector=function(t,e,r,n,s){var i=WZ(null);if(i.current===null){var o={hasValue:!1,value:null};i.current=o}else o=i.current;i=GZ(function(){function l(p){if(!u){if(u=!0,d=p,p=n(p),s!==void 0&&o.hasValue){var g=o.value;if(s(g,p))return f=g}return f=p}if(g=f,HZ(d,p))return g;var m=n(p);return s!==void 0&&s(g,m)?(d=p,g):(d=p,f=m)}var u=!1,d,f,h=r===void 0?null:r;return[function(){return l(e())},h===null?void 0:function(){return l(h())}]},[e,r,n,s]);var a=VZ(t,i[0],i[1]);return qZ(function(){o.hasValue=!0,o.value=a},[a]),KZ(a),a};V3.exports=W3;var XZ=V3.exports,YZ=(...t)=>e=>{t.forEach(r=>{typeof r=="function"?r(e):r&&(r.current=e)})},JZ=({contentComponent:t})=>{const e=ES.useSyncExternalStore(t.subscribe,t.getSnapshot,t.getServerSnapshot);return c.jsx(c.Fragment,{children:Object.values(e)})};function QZ(){const t=new Set;let e={};return{subscribe(r){return t.add(r),()=>{t.delete(r)}},getSnapshot(){return e},getServerSnapshot(){return e},setRenderer(r,n){e={...e,[r]:P2.createPortal(n.reactElement,n.element,r)},t.forEach(s=>s())},removeRenderer(r){const n={...e};delete n[r],e=n,t.forEach(s=>s())}}}var ZZ=class extends de.Component{constructor(t){var e;super(t),this.editorContentRef=de.createRef(),this.initialized=!1,this.state={hasContentComponentInitialized:!!((e=t.editor)!=null&&e.contentComponent)}}componentDidMount(){this.init()}componentDidUpdate(){this.init()}init(){const t=this.props.editor;if(t&&!t.isDestroyed&&t.options.element){if(t.contentComponent)return;const e=this.editorContentRef.current;e.append(t.view.dom),t.setOptions({element:e}),t.contentComponent=QZ(),this.state.hasContentComponentInitialized||(this.unsubscribeToContentComponent=t.contentComponent.subscribe(()=>{this.setState(r=>r.hasContentComponentInitialized?r:{hasContentComponentInitialized:!0}),this.unsubscribeToContentComponent&&this.unsubscribeToContentComponent()})),t.createNodeViews(),this.initialized=!0}}componentWillUnmount(){var t;const e=this.props.editor;if(e){this.initialized=!1,e.isDestroyed||e.view.setProps({nodeViews:{}}),this.unsubscribeToContentComponent&&this.unsubscribeToContentComponent(),e.contentComponent=null;try{if(!((t=e.view.dom)!=null&&t.firstChild))return;const r=document.createElement("div");r.append(e.view.dom),e.setOptions({element:r})}catch{}}}render(){const{editor:t,innerRef:e,...r}=this.props;return c.jsxs(c.Fragment,{children:[c.jsx("div",{ref:YZ(e,this.editorContentRef),...r}),(t==null?void 0:t.contentComponent)&&c.jsx(JZ,{contentComponent:t.contentComponent})]})}},eee=w.forwardRef((t,e)=>{const r=de.useMemo(()=>Math.floor(Math.random()*4294967295).toString(),[t.editor]);return de.createElement(ZZ,{key:r,innerRef:e,...t})}),q3=de.memo(eee),tee=typeof window<"u"?w.useLayoutEffect:w.useEffect,ree=class{constructor(t){this.transactionNumber=0,this.lastTransactionNumber=0,this.subscribers=new Set,this.editor=t,this.lastSnapshot={editor:t,transactionNumber:0}
776,this.getSnapshot=this.getSnapshot.bind(this),this.getServerSnapshot=this.getServerSnapshot.bind(this),this.watch=this.watch.bind(this),this.subscribe=this.subscribe.bind(this)}getSnapshot(){return this.transactionNumber===this.lastTransactionNumber?this.lastSnapshot:(this.lastTransactionNumber=this.transactionNumber,this.lastSnapshot={editor:this.editor,transactionNumber:this.transactionNumber},this.lastSnapshot)}getServerSnapshot(){return{editor:null,transactionNumber:0}}subscribe(t){return this.subscribers.add(t),()=>{this.subscribers.delete(t)}}watch(t){if(this.editor=t,this.editor){const e=()=>{this.transactionNumber+=1,this.subscribers.forEach(n=>n())},r=this.editor;return r.on("transaction",e),()=>{r.off("transaction",e)}}}};function nee(t){var e;const[r]=w.useState(()=>new ree(t.editor)),n=XZ.useSyncExternalStoreWithSelector(r.subscribe,r.getSnapshot,r.getServerSnapshot,t.selector,(e=t.equalityFn)!=null?e:$Z);return tee(()=>r.watch(t.editor),[t.editor,r]),w.useDebugValue(n),n}var see=!1,ub=typeof window>"u",iee=ub||!!(typeof window<"u"&&window.next),oee=class G3{constructor(e){this.editor=null,this.subscriptions=new Set,this.isComponentMounted=!1,this.previousDeps=null,this.instanceId="",this.options=e,this.subscriptions=new Set,this.setEditor(this.getInitialEditor()),this.scheduleDestroy(),this.getEditor=this.getEditor.bind(this),this.getServerSnapshot=this.getServerSnapshot.bind(this),this.subscribe=this.subscribe.bind(this),this.refreshEditorInstance=this.refreshEditorInstance.bind(this),this.scheduleDestroy=this.scheduleDestroy.bind(this),this.onRender=this.onRender.bind(this),this.createEditor=this.createEditor.bind(this)}setEditor(e){this.editor=e,this.instanceId=Math.random().toString(36).slice(2,9),this.subscriptions.forEach(r=>r())}getInitialEditor(){if(this.options.current.immediatelyRender===void 0)return ub||iee?null:this.createEditor();if(this.options.current.immediatelyRender&&ub&&see)throw new Error("Tiptap Error: SSR has been detected, and `immediatelyRender` has been set to `true` this is an unsupported configuration that may result in errors, explicitly set `immediatelyRender` to `false` to avoid hydration mismatches.");return this.options.current.immediatelyRender?this.createEditor():null}createEditor(){const e={...this.options.current,onBeforeCreate:(...n)=>{var s,i;return(i=(s=this.options.current).onBeforeCreate)==null?void 0:i.call(s,...n)},onBlur:(...n)=>{var s,i;return(i=(s=this.options.current).onBlur)==null?void 0:i.call(s,...n)},onCreate:(...n)=>{var s,i;return(i=(s=this.options.current).onCreate)==null?void 0:i.call(s,...n)},onDestroy:(...n)=>{var s,i;return(i=(s=this.options.current).onDestroy)==null?void 0:i.call(s,...n)},onFocus:(...n)=>{var s,i;return(i=(s=this.options.current).onFocus)==null?void 0:i.call(s,...n)},onSelectionUpdate:(...n)=>{var s,i;return(i=(s=this.options.current).onSelectionUpdate)==null?void 0:i.call(s,...n)},onTransaction:(...n)=>{var s,i;return(i=(s=this.options.current).onTransaction)==null?void 0:i.call(s,...n)},onUpdate:(...n)=>{var s,i;return(i=(s=this.options.current).onUpdate)==null?void 0:i.call(s,...n)},onContentError:(...n)=>{var s,i;return(i=(s=this.options.current).onContentError)==null?void 0:i.call(s,...n)},onDrop:(...n)=>{var s,i;return(i=(s=this.options.current).onDrop)==null?void 0:i.call(s,...n)},onPaste:(...n)=>{var s,i;return(i=(s=this.options.current).onPaste)==null?void 0:i.call(s,...n)},onDelete:(...n)=>{var s,i;return(i=(s=this.options.current).onDelete)==null?void 0:i.call(s,...n)}};return new kZ(e)}getEditor(){return this.editor}getServerSnapshot(){return null}subscribe(e){return this.subscriptions.add(e),()=>{this.subscriptions.delete(e)}}static compareOptions(e,r){return Object.keys(e).every(n=>["onCreate","onBeforeCreate","onDestroy","onUpdate","onTransaction","onFocus","onBlur","onSelectionUpdate","onContentError","onDrop","onPaste"].includes(n)?!0:n==="extensions"&&e.extensions&&r.extensions?e.extensions.length!==r.extensions.length?!1:e.extensions.every((s,i)=>{var o;return s===((o=r.extensions)==null?void 0:o[i])}):e[n]===r[n])}onRender(e){return()=>(this.isComponentMounted=!0,clearTimeout(this.scheduledDestructionTimeout),this.editor&&!this.editor.isDestroyed&&e.length===0?G3.compareOptions(this.options.current,this.editor.options)||this.editor.setOptions({...this.options.current,editable:this.editor.isEditable}
776):this.refreshEditorInstance(e),()=>{this.isComponentMounted=!1,this.scheduleDestroy()})}refreshEditorInstance(e){if(this.editor&&!this.editor.isDestroyed){if(this.previousDeps===null){this.previousDeps=e;return}if(this.previousDeps.length===e.length&&this.previousDeps.every((n,s)=>n===e[s]))return}this.editor&&!this.editor.isDestroyed&&this.editor.destroy(),this.setEditor(this.createEditor()),this.previousDeps=e}scheduleDestroy(){const e=this.instanceId,r=this.editor;this.scheduledDestructionTimeout=setTimeout(()=>{if(this.isComponentMounted&&this.instanceId===e){r&&r.setOptions(this.options.current);return}r&&!r.isDestroyed&&(r.destroy(),this.instanceId===e&&this.setEditor(null))},1)}};function K3(t={},e=[]){const r=w.useRef(t);r.current=t;const[n]=w.useState(()=>new oee(r)),s=ES.useSyncExternalStore(n.subscribe,n.getEditor,n.getServerSnapshot);return w.useDebugValue(s),w.useEffect(n.onRender(e)),nee({editor:s,selector:({transactionNumber:i})=>t.shouldRerenderOnTransaction===!1||t.shouldRerenderOnTransaction===void 0?null:t.immediatelyRender&&i===0?0:i+1}),s}var aee=w.createContext({editor:null});aee.Consumer;var lee=w.createContext({onDragStart:()=>{},nodeViewContentChildren:void 0,nodeViewContentRef:()=>{}}),cee=()=>w.useContext(lee);de.forwardRef((t,e)=>{const{onDragStart:r}=cee(),n=t.as||"div";return c.jsx(n,{...t,ref:e,"data-node-view-wrapper":"",onDragStart:r,style:{whiteSpace:"normal",...t.style}})});de.createContext({markViewContentRef:()=>{}});var Y0=(t,e)=>{if(t==="slot")return 0;if(t instanceof Function)return t(e);const{children:r,...n}=e??{};if(t==="svg")throw new Error("SVG elements are not supported in the JSX syntax, use the array syntax instead");return[t,n,r]},uee=/^\s*>\s$/,dee=Ps.create({name:"blockquote",addOptions(){return{HTMLAttributes:{}}},content:"block+",group:"block",defining:!0,parseHTML(){return[{tag:"blockquote"}]},renderHTML({HTMLAttributes:t}){return Y0("blockquote",{...jr(this.options.HTMLAttributes,t),children:Y0("slot",{})})},addCommands(){return{setBlockquote:()=>({commands:t})=>t.wrapIn(this.name),toggleBlockquote:()=>({commands:t})=>t.toggleWrap(this.name),unsetBlockquote:()=>({commands:t})=>t.lift(this.name)}},addKeyboardShortcuts(){return{"Mod-Shift-b":()=>this.editor.commands.toggleBlockquote()}},addInputRules(){return[fd({find:uee,type:this.type})]}}),fee=/(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))$/,hee=/(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))/g,pee=/(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))$/,mee=/(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))/g,gee=Sc.create({name:"bold",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"strong"},{tag:"b",getAttrs:t=>t.style.fontWeight!=="normal"&&null},{style:"font-weight=400",clearMark:t=>t.type.name===this.name},{style:"font-weight",getAttrs:t=>/^(bold(er)?|[5-9]\d{2,})$/.test(t)&&null}]},renderHTML({HTMLAttributes:t}){return Y0("strong",{...jr(this.options.HTMLAttributes,t),children:Y0("slot",{})})},addCommands(){return{setBold:()=>({commands:t})=>t.setMark(this.name),toggleBold:()=>({commands:t})=>t.toggleMark(this.name),unsetBold:()=>({commands:t})=>t.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-b":()=>this.editor.commands.toggleBold(),"Mod-B":()=>this.editor.commands.toggleBold()}},addInputRules(){return[dd({find:fee,type:this.type}),dd({find:pee,type:this.type})]},addPasteRules(){return[lc({find:hee,type:this.type}),lc({find:mee,type:this.type})]}}),xee=/(^|[^`])`([^`]+)`(?!`)$/,vee=/(^|[^`])`([^`]+)`(?!`)/g,yee=Sc.create({name:"code",addOptions(){return{HTMLAttributes:{}}},excludes:"_",code:!0,exitable:!0,parseHTML(){return[{tag:"code"}]},renderHTML({HTMLAttributes:t}){return["code",jr(this.options.HTMLAttributes,t),0]},addCommands(){return{setCode:()=>({commands:t})=>t.setMark(this.name),toggleCode:()=>({commands:t})=>t.toggleMark(this.name),unsetCode:()=>({commands:t})=>t.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-e":()=>this.editor.commands.toggleCode()}},addInputRules(){return[dd({find:xee,type:this.type})]},addPasteRules(){return[lc({find:vee,type:this.type})]}}),D1=4,wee=/^```([a-z]+)?[\s\n]$/,bee=/^~~~([a-z]+)?[\s\n]$/,See=Ps.create({name:"codeBlock",addOptions(){return{languageClassPrefix:"language-",exitOnTripleEnter:!0,exitOnArrowDown:!0,defaultLanguage:null,enableTabIndentation:!1,tabSize:D1,HTMLAttributes:{}}},content:"text*",marks:"",group:"block",code:!0,defining:!0,addAttributes(){return{language:{default:this.options.defaultLanguage,parseHTML:t=>{var e;const{languageClassPrefix:r}=this.options;if(!r)return null;const i=[...((e=t.firstElementChild)==null?void 0:e.classList)||[]].filter(o=>o.startsWith(r)).map(o=>o.replace(r,""))[0];return i||null},rendered:!1}}},parseHTML(){return[{tag:"pre",preserveWhitespace:"full"}]},renderHTML({node:t,HTMLAttributes:e}){return["pre",jr(this.options.HTMLAttributes,e),["code",{class:t.attrs.language?this.options.languageClassPrefix+t.attrs.language:null},0]]},addCommands(){return{setCodeBlock:t=>({commands:e})=>e.setNode(this.name,t),toggleCodeBlock:t=>({commands:e})=>e.toggleNode(this.name,"paragraph",t)}},addKeyboardShortcuts(){return{"Mod-Alt-c":()=>this.editor.commands.toggleCodeBlock(),Backspace:()=>{const{empty:t,$anchor:e}=this.editor.state.selection,r=e.pos===1;return!t||e.parent.type.name!==this.name?!1:r||!e.parent.textContent.length?this.editor.commands.clearNodes():!1},Tab:({editor:t})=>{var e;if(!this.options.enableTabIndentation)return!1;const r=(e=this.options.tabSize)!=null?e:D1,{state:n}=t,{selection:s}=n,{$from:i,empty:o}=s;if(i.parent.type!==this.type)return!1;const a=" ".repeat(r);return o?t.commands.insertContent(a):t.commands.command(({tr:l})=>{const{from:u,to:d}=s,p=n.doc.textBetween(u,d,`
777`,`
778`).split(`
779`).map(g=>a+g).join(`
780`);return l.replaceWith(u,d,n.schema.text(p)),!0})}
vendor: 4,268 bytes, lines 780-791
780,"Shift-Tab":({editor:t})=>{var e;if(!this.options.enableTabIndentation)return!1;const r=(e=this.options.tabSize)!=null?e:D1,{state:n}=t,{selection:s}=n,{$from:i,empty:o}=s;return i.parent.type!==this.type?!1:o?t.commands.command(({tr:a})=>{var l;const{pos:u}=i,d=i.start(),f=i.end(),p=n.doc.textBetween(d,f,`
781`,`
782`).split(`
783`);let g=0,m=0;const x=u-d;for(let C=0;C<p.length;C+=1){if(m+p[C].length>=x){g=C;break}m+=p[C].length+1}const y=((l=p[g].match(/^ */))==null?void 0:l[0])||"",b=Math.min(y.length,r);if(b===0)return!0;let S=d;for(let C=0;C<g;C+=1)S+=p[C].length+1;return a.delete(S,S+b),u-S<=b&&a.setSelection(Je.create(a.doc,S)),!0}):t.commands.command(({tr:a})=>{const{from:l,to:u}=s,h=n.doc.textBetween(l,u,`
784`,`
785`).split(`
786`).map(p=>{var g;const m=((g=p.match(/^ */))==null?void 0:g[0])||"",x=Math.min(m.length,r);return p.slice(x)}).join(`
787`);return a.replaceWith(l,u,n.schema.text(h)),!0})},Enter:({editor:t})=>{if(!this.options.exitOnTripleEnter)return!1;const{state:e}=t,{selection:r}=e,{$from:n,empty:s}=r;if(!s||n.parent.type!==this.type)return!1;const i=n.parentOffset===n.parent.nodeSize-2,o=n.parent.textContent.endsWith(`
788
789`);return!i||!o?!1:t.chain().command(({tr:a})=>(a.delete(n.pos-2,n.pos),!0)).exitCode().run()},ArrowDown:({editor:t})=>{if(!this.options.exitOnArrowDown)return!1;const{state:e}=t,{selection:r,doc:n}=e,{$from:s,empty:i}=r;if(!i||s.parent.type!==this.type||!(s.parentOffset===s.parent.nodeSize-2))return!1;const a=s.after();return a===void 0?!1:n.nodeAt(a)?t.commands.command(({tr:u})=>(u.setSelection(ut.near(n.resolve(a))),!0)):t.commands.exitCode()}}},addInputRules(){return[cb({find:wee,type:this.type,getAttributes:t=>({language:t[1]})}),cb({find:bee,type:this.type,getAttributes:t=>({language:t[1]})})]},addProseMirrorPlugins(){return[new nr({key:new Ur("codeBlockVSCodeHandler"),props:{handlePaste:(t,e)=>{if(!e.clipboardData||this.editor.isActive(this.type.name))return!1;const r=e.clipboardData.getData("text/plain"),n=e.clipboardData.getData("vscode-editor-data"),s=n?JSON.parse(n):void 0,i=s==null?void 0:s.mode;if(!r||!i)return!1;const{tr:o,schema:a}=t.state,l=a.text(r.replace(/\r\n?/g,`
790`));return o.replaceSelectionWith(this.type.create({language:i},l)),o.selection.$from.parent.type!==this.type&&o.setSelection(Je.near(o.doc.resolve(Math.max(0,o.selection.from-2)))),o.setMeta("paste",!0),t.dispatch(o),!0}}})]}}),_ee=Ps.create({name:"doc",topNode:!0,content:"block+"}),Eee=Ps.create({name:"hardBreak",addOptions(){return{keepMarks:!0,HTMLAttributes:{}}},inline:!0,group:"inline",selectable:!1,linebreakReplacement:!0,parseHTML(){return[{tag:"br"}]},renderHTML({HTMLAttributes:t}){return["br",jr(this.options.HTMLAttributes,t)]},renderText(){return`
791`},addCommands(){return{setHardBreak:()=>({commands:t,chain:e,state:r,editor:n})=>t.first([()=>t.exitCode(),()=>t.command(()=>{const{selection:s,storedMarks:i}=r;if(s.$from.parent.type.spec.isolating)return!1;const{keepMarks:o}=this.options,{splittableMarks:a}=n.extensionManager,l=i||s.$to.parentOffset&&s.$from.marks();return e().insertContent({type:this.name}).command(({tr:u,dispatch:d})=>{if(d&&l&&o){const f=l.filter(h=>a.includes(h.type.name));u.ensureMarks(f)}return!0}).run()})])}},addKeyboardShortcuts(){return{"Mod-Enter":()=>this.editor.commands.setHardBreak(),"Shift-Enter":()=>this.editor.commands.setHardBreak()}}}),Tee=Ps.create({name:"heading",addOptions(){return{levels:[1,2,3,4,5,6],HTMLAttributes:{}}},content:"inline*",group:"block",defining:!0,addAttributes(){return{level:{default:1,rendered:!1}}},parseHTML(){return this.options.levels.map(t=>({tag:`h${t}`,attrs:{level:t}}))},renderHTML({node:t,HTMLAttributes:e}){return[`h${this.options.levels.includes(t.attrs.level)?t.attrs.level:this.options.levels[0]}`,jr(this.options.HTMLAttributes,e),0]},addCommands(){return{setHeading:t=>({commands:e})=>this.options.levels.includes(t.level)?e.setNode(this.name,t):!1,toggleHeading:t=>({commands:e})=>this.options.levels.includes(t.level)?e.toggleNode(this.name,"paragraph",t):!1}},addKeyboardShortcuts(){return this.options.levels.reduce((t,e)=>({...t,[`Mod-Alt-${e}`]:()=>this.editor.commands.toggleHeading({level:e})}),{})},addInputRules(){return this.options.levels.map(t=>cb({find:new RegExp(`^(#{${Math.min(...this.options.levels)},${t}}
791)\\s$`),type:this.type,getAttributes:{level:t}}))}}),Cee=Ps.create({name:"horizontalRule",addOptions(){return{HTMLAttributes:{},nextNodeType:"paragraph"}},group:"block",parseHTML(){return[{tag:"hr"}]},renderHTML({HTMLAttributes:t}){return["hr",jr(this.options.HTMLAttributes,t)]},addCommands(){return{setHorizontalRule:()=>({chain:t,state:e})=>{if(!AZ(e,e.schema.nodes[this.name]))return!1;const{selection:r}=e,{$to:n}=r,s=t();return C3(r)?s.insertContentAt(n.pos,{type:this.name}):s.insertContent({type:this.name}),s.command(({state:i,tr:o,dispatch:a})=>{if(a){const{$to:l}=o.selection,u=l.end();if(l.nodeAfter)l.nodeAfter.isTextblock?o.setSelection(Je.create(o.doc,l.pos+1)):l.nodeAfter.isBlock?o.setSelection(We.create(o.doc,l.pos)):o.setSelection(Je.create(o.doc,l.pos));else{const d=i.schema.nodes[this.options.nextNodeType]||l.parent.type.contentMatch.defaultType,f=d==null?void 0:d.create();f&&(o.insert(u,f),o.setSelection(Je.create(o.doc,u+1)))}o.scrollIntoView()}return!0}).run()}}},addInputRules(){return[NZ({find:/^(?:---|—-|___\s|\*\*\*\s)$/,type:this.t
vendor: 4,320 bytes, line 791
791ype})]}}),kee=/(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))$/,Nee=/(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))/g,Aee=/(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))$/,jee=/(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))/g,Ree=Sc.create({name:"italic",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"em"},{tag:"i",getAttrs:t=>t.style.fontStyle!=="normal"&&null},{style:"font-style=normal",clearMark:t=>t.type.name===this.name},{style:"font-style=italic"}]},renderHTML({HTMLAttributes:t}){return["em",jr(this.options.HTMLAttributes,t),0]},addCommands(){return{setItalic:()=>({commands:t})=>t.setMark(this.name),toggleItalic:()=>({commands:t})=>t.toggleMark(this.name),unsetItalic:()=>({commands:t})=>t.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-i":()=>this.editor.commands.toggleItalic(),"Mod-I":()=>this.editor.commands.toggleItalic()}},addInputRules(){return[dd({find:kee,type:this.type}),dd({find:Aee,type:this.type})]},addPasteRules(){return[lc({find:Nee,type:this.type}),lc({find:jee,type:this.type})]}});const Oee="aaa1rp3bb0ott3vie4c1le2ogado5udhabi7c0ademy5centure6ountant0s9o1tor4d0s1ult4e0g1ro2tna4f0l1rica5g0akhan5ency5i0g1rbus3force5tel5kdn3l0ibaba4pay4lfinanz6state5y2sace3tom5m0azon4ericanexpress7family11x2fam3ica3sterdam8nalytics7droid5quan4z2o0l2partments8p0le4q0uarelle8r0ab1mco4chi3my2pa2t0e3s0da2ia2sociates9t0hleta5torney7u0ction5di0ble3o3spost5thor3o0s4w0s2x0a2z0ure5ba0by2idu3namex4d1k2r0celona5laycard4s5efoot5gains6seball5ketball8uhaus5yern5b0c1t1va3cg1n2d1e0ats2uty4er2rlin4st0buy5t2f1g1h0arti5i0ble3d1ke2ng0o3o1z2j1lack0friday9ockbuster8g1omberg7ue3m0s1w2n0pparibas9o0ats3ehringer8fa2m1nd2o0k0ing5sch2tik2on4t1utique6x2r0adesco6idgestone9oadway5ker3ther5ussels7s1t1uild0ers6siness6y1zz3v1w1y1z0h3ca0b1fe2l0l1vinklein9m0era3p2non3petown5ital0one8r0avan4ds2e0er0s4s2sa1e1h1ino4t0ering5holic7ba1n1re3c1d1enter4o1rn3f0a1d2g1h0anel2nel4rity4se2t2eap3intai5ristmas6ome4urch5i0priani6rcle4sco3tadel4i0c2y3k1l0aims4eaning6ick2nic1que6othing5ud3ub0med6m1n1o0ach3des3ffee4llege4ogne5m0mbank4unity6pany2re3uter5sec4ndos3struction8ulting7tact3ractors9oking4l1p2rsica5untry4pon0s4rses6pa2r0edit0card4union9icket5own3s1uise0s6u0isinella9v1w1x1y0mru3ou3z2dad1nce3ta1e1ing3sun4y2clk3ds2e0al0er2s3gree4livery5l1oitte5ta3mocrat6ntal2ist5si0gn4v2hl2iamonds6et2gital5rect0ory7scount3ver5h2y2j1k1m1np2o0cs1tor4g1mains5t1wnload7rive4tv2ubai3nlop4pont4rban5vag2r2z2earth3t2c0o2deka3u0cation8e1g1mail3erck5nergy4gineer0ing9terprises10pson4quipment8r0icsson6ni3s0q1tate5t1u0rovision8s2vents5xchange6pert3osed4ress5traspace10fage2il1rwinds6th3mily4n0s2rm0ers5shion4t3edex3edback6rrari3ero6i0delity5o2lm2nal1nce1ial7re0stone6mdale6sh0ing5t0ness6j1k1lickr3ghts4r2orist4wers5y2m1o0o0d1tball6rd1ex2sale4um3undation8x2r0ee1senius7l1ogans4ntier7tr2ujitsu5n0d2rniture7tbol5yi3ga0l0lery3o1up4me0s3p1rden4y2b0iz3d0n2e0a1nt0ing5orge5f1g0ee3h1i0ft0s3ves2ing5l0ass3e1obal2o4m0ail3bh2o1x2n1odaddy5ld0point6f2o0dyear5g0le4p1t1v2p1q1r0ainger5phics5tis4een3ipe3ocery4up4s1t1u0cci3ge2ide2tars5ru3w1y2hair2mburg5ngout5us3bo2dfc0bank7ealth0care8lp1sinki6re1mes5iphop4samitsu7tachi5v2k0t2m1n1ockey4ldings5iday5medepot5goods5s0ense7nda3rse3spital5t0ing5t0els3mail5use3w2r1sbc3t1u0ghes5yatt3undai7ibm2cbc2e1u2d1e0ee3fm2kano4l1m0amat4db2mo0bilien9n0c1dustries8finiti5o2g1k1stitute6urance4e4t0ernational10uit4vestments10o1piranga7q1r0ish4s0maili5t0anbul7t0au2v3jaguar4va3cb2e0ep2tzt3welry6io2ll2m0p2nj2o0bs1urg4t1y2p0morgan6rs3uegos4niper7kaufen5ddi3e0rryhotels6properties14fh2g1h1i0a1ds2m1ndle4tchen5wi3m1n1oeln3matsu5sher5p0mg2n2r0d1ed3uokgroup8w1y0oto4z2la0caixa5mborghini8er3nd0rover6xess5salle5t0ino3robe5w0yer5b1c1ds2ease3clerc5frak4gal2o2xus4gbt3i0dl2fe0insurance9style7ghting6ke2lly3mited4o2ncoln4k2ve1ing5k1lc1p2oan0s3cker3us3l1ndon4tte1o3ve3pl0financial11r1s1t0d0a3u0ndbeck6xe1ury5v1y2ma0drid4if1son4keup4n0agement7go3p1rket0ing3s4riott5shalls7ttel5ba2c0kinsey7d1e0d0ia3et2lbourne7me1orial6n0u2rckmsd7g1h1iami3crosoft7l1ni1t2t0subishi9k1l0b1s2m0a2n1o0bi0le4da2e1i1m1nash3ey2ster5rmon3tgage6scow4to0rcycles9v0ie4p1q1r1s0d2t0n1r2u0seum3ic4v1w1x1y1z2na0b1goya4me2vy3ba2c1e0c1t0bank4flix4work5ustar5w0s2xt0direct7us4f0l2g0o2hk2i0co2ke1on3nja3ssan1y5l1o0kia3rton4w0ruz3tv4p1r0a1w2tt2u1yc2z2obi1server7ffice5kinawa6layan0group9lo3m0ega4ne1g1l0ine5oo2pen3racle3nge4g0anic5igins6saka4tsuka4t2vh3pa0ge2nasonic7ris2s1tners4s1y3y2
791ccw3e0t2f0izer5g1h0armacy6d1ilips5one2to0graphy6s4ysio5ics1tet2ures6d1n0g1k2oneer5zza4k1l0ace2y0station9umbing5s3m1n0c2ohl2ker3litie5rn2st3r0axi3ess3ime3o0d0uctions8f1gressive8mo2perties3y5tection8u0dential9s1t1ub2w0c2y2qa1pon3uebec3st5racing4dio4e0ad1lestate6tor2y4cipes5d0stone5umbrella9hab3ise0n3t2liance6n0t0als5pair3ort3ublican8st0aurant8view0s5xroth6ich0ardli6oh3l1o1p2o0cks3deo3gers4om3s0vp3u0gby3hr2n2w0e2yukyu6sa0arland6fe0ty4kura4le1on3msclub4ung5ndvik0coromant12ofi4p1rl2s1ve2xo3b0i1s2c0b1haeffler7midt4olarships8ol3ule3warz5ience5ot3d1e0arch3t2cure1ity6ek2lect4ner3rvices6ven3w1x0y3fr2g1h0angrila6rp3ell3ia1ksha5oes2p0ping5uji3w3i0lk2na1gles5te3j1k0i0n2y0pe4l0ing4m0art3ile4n0cf3o0ccer3ial4ftbank4ware6hu2lar2utions7ng1y2y2pa0ce3ort2t3r0l2s1t0ada2ples4r1tebank4farm7c0group6ockholm6rage3e3ream4udio2y3yle4u0cks3pplies3y2ort5rf1gery5zuki5v1watch4iss4x1y0dney4stems6z2tab1ipei4lk2obao4rget4tamotors6r2too4x0i3c0i2d0k2eam2ch0nology8l1masek5nnis4va3f1g1h0d1eater2re6iaa2ckets5enda4ps2res2ol4j0maxx4x2k0maxx5l1m0all4n1o0day3kyo3ols3p1ray3shiba5tal3urs3wn2yota3s3r0ade1ing4ining5vel0ers0insurance16ust3v2t1ube2i1nes3shu4v0s2w1z2ua1bank3s2g1k1nicom3versity8o2ol2ps2s1y1z2va0cations7na1guard7c1e0gas3ntures6risign5mögensberater2ung14sicherung10t2g1i0ajes4deo3g1king4llas4n1p1rgin4sa1ion4va1o3laanderen9n1odka3lvo3te1ing3o2yage5u2wales2mart4ter4ng0gou5tch0es6eather0channel12bcam3er2site5d0ding5ibo2r3f1hoswho6ien2ki2lliamhill9n0dows4e1ners6me2olterskluwer11odside6rk0s2ld3w2s1tc1f3xbox3erox4ihuan4n2xx2yz3yachts4hoo3maxun5ndex5e1odobashi7ga2kohama6u0tube6t1un3za0ppos4ra3ero3ip2m1one3uerich6w2",Pee="ελ1υ2бг1ел3дети4ею2католик6ом3мÐ
791ºÐ´2он1сква6онлайн5рг3рус2ф2сайт3рб3укр3қаз3Õ°Õ¡Õµ3ישראל5קום3ابوظبي5رامكو5لاردن4بحرين5جزائر5سعودية6عليان5مغرب5مارات5یران5بارت2زار4يتك3ھارت5تونس4سودان3رية5شبكة4عراق2ب2مان4فلسطين6قطر3كاثوليك6وم3مصر2ليسيا5وريتانيا7قع4همراه5پاکستان7ڀارت4कॉम3नेट3भारत0म्3ोत5संगठन5বাংলা5ভারত2ৰত4ਭਾਰਤ4ભારત4ଭାରତ4இந்தியா6லங்கை6சிங்கப்பூர்11భారత్5ಭಾರತ4ഭാരതം5ලංකා4คอม3ไทย3ລາວ3გე2みんな3アマゾン4クラウド4グーグル4コム2ストア3セール3ファッション6ポイント4世界2中信1国1國1文网3亚马逊3企业2佛山2信息2健康2八卦2公司1益2台湾1灣2商城1店1标2嘉里0大酒店5在线2大拿2天主教3娱乐2家電2广东2微博2慈善2我爱你3手机2招聘2政务1府2新加坡2闻2时尚2書籍2机构2淡马锡3游戏2澳門2点看2移动2组织机构4网址1店1站1络2联通2谷歌2购物2通販2集团2電訊盈科4飞利浦3食品2餐厅2香格里拉3港2닷넷1ì»´2삼성2한국2",db="numeric",fb="ascii",hb="alpha",If="asciinumeric",ff="alphanumeric",pb="domain",X3="emoji",Mee="scheme",Iee="slashscheme",L1="whitespace";function Dee(t,e){return t in e||(e[t]=[]),e[t]}function Pl(t,e,r){e[db]&&(e[If]=!0,e[ff]=!0),e[fb]&&(e[If]=!0,e[hb]=!0),e[If]&&(e[ff]=!0),e[hb]&&(e[ff]=!0),e[ff]&&(e[pb]=!0),e[X3]&&(e[pb]=!0);for(const n in e){const s=Dee(n,r);s.indexOf(t)<0&&s.push(t)}}function Lee(t,e){const r={};for(const n in e)e[n].indexOf(t)>=0&&(r[n]=!0);return r}function es(t=null){this.j={},this.jr=[],this.jd=null,this.t=t}es.groups={};es.prototype={accepts(){return!!this.t},go(t){const e=this,r=e.j[t];if(r)return r;for(let n=0;n<e.jr.length;n++){const s=e.jr[n][0],i=e.jr[n][1];if(i&&s.test(t))return i}return e.jd},has(t,e=!1){return e?t in this.j:!!this.go(t)},ta(t,e,r,n){for(let s=0;s<t.length;s++)this.tt(t[s],e,r,n)},tr(t,e,r,n){n=n||es.groups;let s;return e&&e.j?s=e:(s=new es(e),r&&n&&Pl(e,r,n)),this.jr.push([t,s]),s},ts(t,e,r,n){let s=this;const i=t.length;if(!i)return s;for(let o=0;o<i-1;o++)s=s.tt(t[o]);return s.tt(t[i-1],e,r,n)},tt(t,e,r,n){n=n||es.groups;const s=this;if(e&&e.j)return s.j[t]=e,e;const i=e;let o,a=s.go(t);if(a?(o=new es,Object.assign(o.j,a.j),o.jr.push.apply(o.jr,a.jr),o.jd=a.jd,o.t=a.t):o=new es,i){if(n)if(o.t&&typeof o.t=="string"){const l=Object.assign(Lee(o.t,n),r);Pl(i,l,n)}else r&&Pl(i,r,n);o.t=i}return s.j[t]=o,o}};const lt=(t,e,r,n,s)=>t.ta(e,r,n,s),ar=(t,e,r,n,s)=>t.tr(e,r,n,s),qk=(t,e,r,n,s)=>t.ts(e,r,n,s),ye=(t,e,r,n,s)=>t.tt(e,r,n,s),So="WORD",mb="UWORD",Y3="ASCIINUMERICAL",J3="ALPHANUMERICAL",jh="LOCALHOST",gb="TLD",xb="UTLD",Vm="SCHEME",eu="SLASH_SCHEME",XS="NUM",vb="WS",YS="NL",Df="OPENBRACE",Lf="CLOSEBRACE",J0="OPENBRACKET",Q0="CLOSEBRACKET",Z0="OPENPAREN",eg="CLOSEPAREN",tg="OPENANGLEBRACKET",rg="CLOSEANGLEBRACKET",ng="FULLWIDTHLEFTPAREN",sg="FULLWIDTHRIGHTPAREN",ig="LEFTCORNERBRACKET",og="RIGHTCORNERBRACKET",ag="LEFTWHITECORNERBRACKET",lg="RIGHTWHITECORNERBRACKET",cg="FULLWIDTHLESSTHAN",ug="FULLWIDTHGREATERTHAN",dg="AMPERSAND",fg="APOSTROPHE",hg="ASTERISK",fa="AT",pg="BACKSLASH",mg="BACKTICK",gg="CARET",va="COLON",JS="COMMA",xg="DOLLAR",qi="DOT",vg="EQUALS",QS="EXCLAMATION",$s="HYPHEN",Ff="PERCENT",yg="PIPE",wg="PLUS",bg="POUND",Bf="QUERY",ZS="QUOTE",Q3="FULLWIDTHMIDDLEDOT",e_="SEMI",Gi="SLASH",$f="TILDE",Sg="UNDERSCORE",Z3="EMOJI",_g="SYM";var eI=Object.freeze({__proto__:null,ALPHANUMERICAL:J3,AMPERSAND:dg,APOSTROPHE:fg,ASCIINUMERICAL:Y3,ASTERISK:hg,AT:fa,BACKSLASH:pg,BACKTICK:mg,CARET:gg,CLOSEANGLEBRACKET:rg,CLOSEBRACE:Lf,CLOSEBRACKET:Q0,CLOSEPAREN:eg,COLON:va,COMMA:JS,DOLLAR:xg,DOT:qi,EMOJI:Z3,EQUALS:vg,EXCLAMATION:QS,FULLWIDTHGREATERTHAN:ug,FULLWIDTHLEFTPAREN:ng,FULLWIDTHLESSTHAN:cg,FULLWIDTHMIDDLEDOT:Q3,FULLWIDTHRIGHTPAREN:sg,HYPHEN:$s,LEFTCORNERBRACKET:ig,LEFTWHITECORNERBRACKET:ag,LOCALHOST:jh,NL:YS,NUM:XS,OPENANGLEBRACKET:tg,OPENBRACE:Df,OPENBRACKET:J0,OPENPAREN:Z0,PERCENT:Ff,PIPE:yg,PLUS:wg,POUND:bg,QUERY:Bf,QUOTE:ZS,RIGHTCORNERBRACKET:og,RIGHTWHITECORNERBRACKET:lg,SCHEME:Vm,SEMI:e_,SLASH:Gi,SLASH_SCHEME:eu,SYM:_g,TILDE:$f,TLD:gb,UNDERSCORE:Sg,UTLD:xb,UWORD:mb,WORD:So,WS:vb});const vo=/[a-z]/,Qd=new RegExp("\\p{L}","u"),F1=new RegExp("\\p{Emoji}","u"),yo=/\d/,B1=/\s/,Gk="\r",$1=`
792`,Fee="️",Bee="‍",z1="";let im=null,om=null;function $ee(t=[]){const e={};es.groups=e;const r=new es;im==null&&(im=Kk(Oee)),om==null&&(om=Kk(Pee)),ye(r,"'",fg),ye(r,"{",Df),ye(r,"}",Lf),ye(r,"[",J0),ye(r,"]",Q0),ye(r,"(",Z0),ye(r,")",eg),ye(r,"<",tg),ye(r,">",rg),ye(r,"(",ng),ye(r,")",sg),ye(r,"「",ig),ye(r,"」",og),ye(r,"『",ag),ye(r,"』",lg),ye(r,"<",cg),ye(r,">",ug),ye(r,"&",dg),ye(r,"*",hg),ye(r,"@",fa),ye(r,"`",mg),ye(r,"^",gg),ye(r,":",va),ye(r,",",JS),ye(r,"$",xg),ye(r,".",qi),ye(r,"=",vg),ye(r,"!",QS),ye(r,"-",$s),ye(r,"%",Ff),ye(r,"|",yg),ye(r,"+",wg),ye(r,"#",bg),ye(r,"?",Bf),ye(r,'"',ZS),ye(r,"/",Gi),ye(r,";",e_),ye(r,"~",$f),ye(r,"_",Sg),ye(r,"\\",pg),ye(r,"・",Q3);const n=ar(r,yo,XS,{[db]:!0});ar(n,yo,n);const s=ar(n,vo,Y3,{[If]:!0}),i=ar(n,Qd,J3,{[ff]:!0}
vendor: 7,268 bytes, line 792
792),o=ar(r,vo,So,{[fb]:!0});ar(o,yo,s),ar(o,vo,o),ar(s,yo,s),ar(s,vo,s);const a=ar(r,Qd,mb,{[hb]:!0});ar(a,vo),ar(a,yo,i),ar(a,Qd,a),ar(i,yo,i),ar(i,vo),ar(i,Qd,i);const l=ye(r,$1,YS,{[L1]:!0}),u=ye(r,Gk,vb,{[L1]:!0}),d=ar(r,B1,vb,{[L1]:!0});ye(r,z1,d),ye(u,$1,l),ye(u,z1,d),ar(u,B1,d),ye(d,Gk),ye(d,$1),ar(d,B1,d),ye(d,z1,d);const f=ar(r,F1,Z3,{[X3]:!0});ye(f,"#"),ar(f,F1,f),ye(f,Fee,f);const h=ye(f,Bee);ye(h,"#"),ar(h,F1,f);const p=[[vo,o],[yo,s]],g=[[vo,null],[Qd,a],[yo,i]];for(let m=0;m<im.length;m++)ta(r,im[m],gb,So,p);for(let m=0;m<om.length;m++)ta(r,om[m],xb,mb,g);Pl(gb,{tld:!0,ascii:!0},e),Pl(xb,{utld:!0,alpha:!0},e),ta(r,"file",Vm,So,p),ta(r,"mailto",Vm,So,p),ta(r,"http",eu,So,p),ta(r,"https",eu,So,p),ta(r,"ftp",eu,So,p),ta(r,"ftps",eu,So,p),Pl(Vm,{scheme:!0,ascii:!0},e),Pl(eu,{slashscheme:!0,ascii:!0},e),t=t.sort((m,x)=>m[0]>x[0]?1:-1);for(let m=0;m<t.length;m++){const x=t[m][0],y=t[m][1]?{[Mee]:!0}:{[Iee]:!0};x.indexOf("-")>=0?y[pb]=!0:vo.test(x)?yo.test(x)?y[If]=!0:y[fb]=!0:y[db]=!0,qk(r,x,x,y)}return qk(r,"localhost",jh,{ascii:!0}),r.jd=new es(_g),{start:r,tokens:Object.assign({groups:e},eI)}}function tI(t,e){const r=zee(e.replace(/[A-Z]/g,a=>a.toLowerCase())),n=r.length,s=[];let i=0,o=0;for(;o<n;){let a=t,l=null,u=0,d=null,f=-1,h=-1;for(;o<n&&(l=a.go(r[o]));)a=l,a.accepts()?(f=0,h=0,d=a):f>=0&&(f+=r[o].length,h++),u+=r[o].length,i+=r[o].length,o++;i-=f,o-=h,u-=f,s.push({t:d.t,v:e.slice(i-u,i),s:i-u,e:i})}return s}function zee(t){const e=[],r=t.length;let n=0;for(;n<r;){let s=t.charCodeAt(n),i,o=s<55296||s>56319||n+1===r||(i=t.charCodeAt(n+1))<56320||i>57343?t[n]:t.slice(n,n+2);e.push(o),n+=o.length}return e}function ta(t,e,r,n,s){let i;const o=e.length;for(let a=0;a<o-1;a++){const l=e[a];t.j[l]?i=t.j[l]:(i=new es(n),i.jr=s.slice(),t.j[l]=i),t=i}return i=new es(r),i.jr=s.slice(),t.j[e[o-1]]=i,i}function Kk(t){const e=[],r=[];let n=0,s="0123456789";for(;n<t.length;){let i=0;for(;s.indexOf(t[n+i])>=0;)i++;if(i>0){e.push(r.join(""));for(let o=parseInt(t.substring(n,n+i),10);o>0;o--)r.pop();n+=i}else r.push(t[n]),n++}return e}const Rh={defaultProtocol:"http",events:null,format:Xk,formatHref:Xk,nl2br:!1,tagName:"a",target:null,rel:null,validate:!0,truncate:1/0,className:null,attributes:null,ignoreTags:[],render:null};function t_(t,e=null){let r=Object.assign({},Rh);t&&(r=Object.assign(r,t instanceof t_?t.o:t));const n=r.ignoreTags,s=[];for(let i=0;i<n.length;i++)s.push(n[i].toUpperCase());this.o=r,e&&(this.defaultRender=e),this.ignoreTags=s}t_.prototype={o:Rh,ignoreTags:[],defaultRender(t){return t},check(t){return this.get("validate",t.toString(),t)},get(t,e,r){const n=e!=null;let s=this.o[t];return s&&(typeof s=="object"?(s=r.t in s?s[r.t]:Rh[t],typeof s=="function"&&n&&(s=s(e,r))):typeof s=="function"&&n&&(s=s(e,r.t,r)),s)},getObj(t,e,r){let n=this.o[t];return typeof n=="function"&&e!=null&&(n=n(e,r.t,r)),n},render(t){const e=t.render(this);return(this.get("render",null,t)||this.defaultRender)(e,t.t,t)}};function Xk(t){return t}function rI(t,e){this.t="token",this.v=t,this.tk=e}rI.prototype={isLink:!1,toString(){return this.v},toHref(t){return this.toString()},toFormattedString(t){const e=this.toString(),r=t.get("truncate",e,this),n=t.get("format",e,this);return r&&n.length>r?n.substring(0,r)+"…":n},toFormattedHref(t){return t.get("formatHref",this.toHref(t.get("defaultProtocol")),this)},startIndex(){return this.tk[0].s},endIndex(){return this.tk[this.tk.length-1].e},toObject(t=Rh.defaultProtocol){return{type:this.t,value:this.toString(),isLink:this.isLink,href:this.toHref(t),start:this.startIndex(),end:this.endIndex()}},toFormattedObject(t){return{type:this.t,value:this.toFormattedString(t),isLink:this.isLink,href:this.toFormattedHref(t),start:this.startIndex(),end:this.endIndex()}},validate(t){return t.get("validate",this.toString(),this)},render(t){const e=this,r=this.toHref(t.get("defaultProtocol")),n=t.get("formatHref",r,this),s=t.get("tagName",r,e),i=this.toFormattedString(t),o={},a=t.get("className",r,e),l=t.get("target",r,e),u=t.get("rel",r,e),d=t.getObj("attributes",r,e),f=t.getObj("events",r,e);return o.href=n,a&&(o.class=a),l&&(o.target=l),u&&(o.rel=u),d&&Object.assign(o,d),{tagName:s,attributes:o,content:i,eventListeners:f}}};function rv(t,e){class r extends rI{constructor(s,i){super(s,i),this.t=t}}for(const n in e)r.prototype[n]=e[n];return r.t=t,r}const Yk=rv("email",{isLink:!0,toHref(){return"mailto:"+this.toString()}}),Jk=rv("text"),Uee=rv("nl"),am=rv("url",{isLink:!0,toHref(t=Rh.defaultProtocol){return this.hasProtocol()?this.v:`${t}://${this.v}`},hasProtocol(){const t=this.tk;return t.length>=2&&t[0].t!==jh&&t[1].t===va}}),Fs=t=>new es(t);function Hee({groups:t}){const e=t.domain.concat([dg,hg,fa,pg,mg,gg,xg,vg,$s,XS,Ff,yg,wg,bg,Gi,_g,$f,Sg]),r=[fg,va,JS,qi,QS,Ff,Bf,ZS,e_,tg,rg,Df,Lf,Q0,J0,Z0,eg,ng,sg,ig,og,ag,lg,cg,ug],n=[dg,fg,hg,pg,mg,gg,xg,vg,$s,Df,Lf,Ff,yg,wg,bg,Bf,Gi,_g,$f,Sg],s=Fs(),i=ye(s,$f);lt(i,n,i),lt(i,t.domain,i);const o=Fs(),a=Fs(),l=Fs();lt(s,t.domain,o),lt(s,t.scheme,a),lt(s,t.slashscheme,l),lt(o,n,i),lt(o,t.domain,o);const u=ye(o,fa);ye(i,fa,u),ye(a,fa,u),ye(l,fa,u);const d=ye(i,qi);lt(d,n,i),lt(d,t.domain,i);const f=Fs();lt(u,t.domain,f),lt(f,t.domain,f);const h=ye(f,qi);lt(h,t.domain,f);const p=Fs(Yk);lt(h,t.tld,p),lt(h,t.utld,p),ye(u,jh,p);const g=ye(f,$s);ye(g,$s,g),lt(g,t.domain,f),lt(p,t.domain,f),ye(p,qi,h),ye(p,$s,g);const m=ye(p,va);lt(m,t.numeric,Yk);const x=ye(o,$s),v=ye(o,qi);ye(x,$s,x),lt(x,t.domain,o),lt(v,n,i),lt(v,t.domain,o);const y=Fs(am);lt(v,t.tld,y),lt(v,t.utld,y),lt(y,t.domain,o),lt(y,n,i),ye(y,qi,v),ye(y,$s,x),ye(y,fa,u);const b=ye(y,va),S=Fs(am);lt(b,t.numeric,S);const E=Fs(am),C=Fs();lt(E,e,E),lt(E,r,C),lt(C,e,E),lt(C,r,C),ye(y,Gi,E),ye(S,Gi,E);const _=ye(a,va),A=ye(l,va),N=ye(A,Gi),D=ye(N,Gi);lt(a,t.domain,o),ye(a,qi,v),ye(a,$s,x),lt(l,t.domain,o),ye(l,qi,v),ye(l,$s,x),lt(_,t.domain,E),ye(_,Gi,E),ye(_,Bf,E),lt(D,t.domain,E),lt(D,e,E),ye(D,Gi,E);const V=[[Df,Lf],[J0,Q0],[Z0,eg],[tg,rg],[ng,sg],[ig,og],[ag,lg],[cg,ug]];for(let H=0;H<V.length;H++){const[U,K]=V[H],te=ye(E,U);ye(C,U,te),ye(te,K,E);const se=Fs(am);lt(te,e,se);const he=Fs();lt(te,r),lt(se,e,se),lt(se,r,he),lt(he,e,se),lt(he,r,he),ye(se,K,E),ye(he,K,E)}return ye(s,jh,y),ye(s,YS,Uee),{start:s,tokens:eI}}function Vee(t,e,r){let n=r.length,s=0,i=[],o=[];for(;s<n;){let a=t,l=null,u=null,d=0,f=null,h=-1;for(;s<n&&!(l=a.go(r[s].t));)o.push(r[s++]);for(;s<n&&(u=l||a.go(r[s].t));)l=null,a=u,a.accepts()?(h=0,f=a):h>=0&&h++,s++,d++;if(h<0)s-=d,s<n&&(o.push(r[s]),s++);else{o.length>0&&(i.push(U1(Jk,e,o)),o=[]),s-=h,d-=h;const p=f.t,g=r.slice(s-d,s);i.push(U1(p,e,g))}}return o.length>0&&i.push(U1(Jk,e,o)),i}function U1(t,e,r){const n=r[0].s,s=r[r.length-1].e,i=e.slice(n,s);return new t(i,r)}const Wee=typeof console<"u"&&console&&console.warn||(()=>{}),qee="until manual call of linkify.init(). Register all schemes and plugins before invoking linkify the first time.",Wt={scanner:null,parser:null,tokenQueue:[],pluginQueue:[],customSchemes:[],initialized:!1};function Gee(){return es.groups={},Wt.scanner=null,Wt.parser=null,Wt.tokenQueue=[],Wt.pluginQueue=[],Wt.customSchemes=[],Wt.initialized=!1,Wt}function Qk(t,e=!1){if(Wt.initialized&&Wee(`linkifyjs: already initialized - will not register custom scheme "${t}" ${qee}
792`),!/^[0-9a-z]+(-[0-9a-z]+)*$/.test(t))throw new Error(`linkifyjs: incorrect scheme format.
7931. Must only contain digits, lowercase ASCII letters or "-"
7942. Cannot start or end with "-"
7953. "-" cannot repeat`);Wt.customSchemes.push([t,e])}function Kee(){Wt.scanner=$ee(Wt.customSchemes);for(let t=0;t<Wt.tokenQueue.length;t++)Wt.tokenQueue[t][1]({scanner:Wt.scanner});Wt.parser=Hee(Wt.scanner.tokens);for(let t=0;t<Wt.pluginQueue.length;t++)Wt.pluginQueue[t][1]({scanner:Wt.scanner,parser:Wt.parser});return Wt.initialized=!0,Wt}function r_(t){return Wt.initialized||Kee(),Vee(Wt.parser.start,t,tI(Wt.scanner.start,t))}r_.scan=tI;function nI(t,e=null,r=null){if(e&&typeof e=="object"){if(r)throw Error(`linkifyjs: Invalid link type ${e}; must be a string`);r=e,e=null}const n=new t_(r),s=r_(t),i=[];for(let o=0;o<s.length;o++){const a=s[o];a.isLink&&(!e||a.t===e)&&n.check(a)&&i.push(a.toFormattedObject(n))}return i}var n_="[\0-   ᠎ -\u2029  ]",Xee=new RegExp(n_),Yee=new RegExp(`${n_}$`),Jee=new RegExp(n_,"g");function Qee(t){return t.length===1?t[0].isLink:t.length===3&&t[1].isLink?["()","[]"].includes(t[0].value+t[2].value):!1}function Zee(t){return new nr({key:new Ur("autolink"),appendTransaction:(e,r,n)=>{const s=e.some(u=>u.docChanged)&&!r.doc.eq(n.doc),i=e.some(u=>u.getMeta("preventAutolink"));if(!s||i)return;const{tr:o}=n,a=v3(r.doc,[...e]);if(T3(a).forEach(({newRange:u})=>{const d=kQ(n.doc,u,p=>p.isTextblock);let f,h;if(d.length>1)f=d[0],h=n.doc.textBetween(f.pos,f.pos+f.node.nodeSize,void 0," ");else if(d.length){const p=n.doc.textBetween(u.from,u.to," "," ");if(!Yee.test(p))return;f=d[0],h=n.doc.textBetween(f.pos,u.to,void 0," ")}if(f&&h){const p=h.split(Xee).filter(Boolean);if(p.length<=0)return!1;const g=p[p.length-1],m=f.pos+h.lastIndexOf(g);if(!g)return!1;const x=r_(g).map(v=>v.toObject(t.defaultProtocol));if(!Qee(x))return!1;x.filter(v=>v.isLink).map(v=>({...v,from:m+v.start+1,to:m+v.end+1})).filter(v=>n.schema.marks.code?!n.doc.rangeHasMark(v.from,v.to,n.schema.marks.code):!0).filter(v=>t.validate(v.value)).filter(v=>t.shouldAutoLink(v.value)).forEach(v=>{WS(v.from,v.to,n.doc).some(y=>y.mark.type===t.type)||o.addMark(v.from,v.to,t.type.create({href:v.href}))})}}),!!o.steps.length)return o}})}function ete(t){return new nr({key:new Ur("handleClickLink"),props:{handleClick:(e,r,n)=>{var s,i;if(n.button!==0||!e.editable)return!1;let o=null;if(n.target instanceof HTMLAnchorElement)o=n.target;else{let d=n.target;const f=[];for(;d.nodeName!=="DIV";)f.push(d),d=d.parentNode;o=f.find(h=>h.nodeName==="A")}if(!o)return!1;const a=E3(e.state,t.type.name),l=(s=o==null?void 0:o.href)!=null?s:a.href,u=(i=o==null?void 0:o.target)!=null?i:a.target;return t.enableClickSelection&&t.editor.commands.extendMarkRange(t.type.name),o&&l?(window.open(l,u),!0):!1}}})}function tte(t){return new nr({key:new Ur("handlePasteLink"),props:{handlePaste:(e,r,n)=>{const{state:s}=e,{selection:i}=s,{empty:o}=i;if(o)return!1;let a="";n.content.forEach(u=>{a+=u.textContent});const l=nI(a,{defaultProtocol:t.defaultProtocol}).find(u=>u.isLink&&u.value===a);return!a||!l?!1:t.editor.commands.setMark(t.type,{href:l.href})}}})}function vl(t,e){const r=["http","https","ftp","ftps","mailto","tel","callto","sms","cid","xmpp"];return e&&e.forEach(n=>{const s=typeof n=="string"?n:n.scheme;s&&r.push(s)}),!t||t.replace(Jee,"").match(new RegExp(`^(?:(?:${r.join("|")}):|[^a-z]|[a-z0-9+.-]+(?:[^a-z+.-:]|$))`,"i"))}var sI=Sc.create({name:"link",priority:1e3,keepOnSplit:!1,exitable:!0,onCreate(){this.options.validate&&!this.options.shouldAutoLink&&(this.options.shouldAutoLink=this.options.validate,console.warn("The `validate` option is deprecated. Rename to the `shouldAutoLink` option instead.")),this.options.protocols.forEach(t=>{if(typeof t=="string"){Qk(t);return}Qk(t.scheme,t.optionalSlashes)})},onDestroy(){Gee()},inclusive(){return this.options.autolink},addOptions(){return{openOnClick:!0,enableClickSelection:!1,linkOnPaste:!0,autolink:!0,protocols:[],defaultProtocol:"http",HTMLAttributes:{target:"_blank",rel:"noopener noreferrer nofollow",class:null},isAllowedUri:(t,e)=>
vendor: 13,168 bytes, line 795
795!!vl(t,e.protocols),validate:t=>!!t,shouldAutoLink:t=>!!t}},addAttributes(){return{href:{default:null,parseHTML(t){return t.getAttribute("href")}},target:{default:this.options.HTMLAttributes.target},rel:{default:this.options.HTMLAttributes.rel},class:{default:this.options.HTMLAttributes.class}}},parseHTML(){return[{tag:"a[href]",getAttrs:t=>{const e=t.getAttribute("href");return!e||!this.options.isAllowedUri(e,{defaultValidate:r=>!!vl(r,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?!1:null}}]},renderHTML({HTMLAttributes:t}){return this.options.isAllowedUri(t.href,{defaultValidate:e=>!!vl(e,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?["a",jr(this.options.HTMLAttributes,t),0]:["a",jr(this.options.HTMLAttributes,{...t,href:""}),0]},addCommands(){return{setLink:t=>({chain:e})=>{const{href:r}=t;return this.options.isAllowedUri(r,{defaultValidate:n=>!!vl(n,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?e().setMark(this.name,t).setMeta("preventAutolink",!0).run():!1},toggleLink:t=>({chain:e})=>{const{href:r}=t||{};return r&&!this.options.isAllowedUri(r,{defaultValidate:n=>!!vl(n,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?!1:e().toggleMark(this.name,t,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run()},unsetLink:()=>({chain:t})=>t().unsetMark(this.name,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run()}},addPasteRules(){return[lc({find:t=>{const e=[];if(t){const{protocols:r,defaultProtocol:n}=this.options,s=nI(t).filter(i=>i.isLink&&this.options.isAllowedUri(i.value,{defaultValidate:o=>!!vl(o,r),protocols:r,defaultProtocol:n}));s.length&&s.forEach(i=>e.push({text:i.value,data:{href:i.href},index:i.start}))}return e},type:this.type,getAttributes:t=>{var e;return{href:(e=t.data)==null?void 0:e.href}}})]},addProseMirrorPlugins(){const t=[],{protocols:e,defaultProtocol:r}=this.options;return this.options.autolink&&t.push(Zee({type:this.type,defaultProtocol:this.options.defaultProtocol,validate:n=>this.options.isAllowedUri(n,{defaultValidate:s=>!!vl(s,e),protocols:e,defaultProtocol:r}),shouldAutoLink:this.options.shouldAutoLink})),this.options.openOnClick===!0&&t.push(ete({type:this.type,editor:this.editor,enableClickSelection:this.options.enableClickSelection})),this.options.linkOnPaste&&t.push(tte({editor:this.editor,defaultProtocol:this.options.defaultProtocol,type:this.type})),t}}),rte=sI,nte=Object.defineProperty,ste=(t,e)=>{for(var r in e)nte(t,r,{get:e[r],enumerable:!0})},ite="listItem",Zk="textStyle",eN=/^\s*([-+*])\s$/,iI=Ps.create({name:"bulletList",addOptions(){return{itemTypeName:"listItem",HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}},group:"block list",content(){return`${this.options.itemTypeName}+`},parseHTML(){return[{tag:"ul"}]},renderHTML({HTMLAttributes:t}){return["ul",jr(this.options.HTMLAttributes,t),0]},addCommands(){return{toggleBulletList:()=>({commands:t,chain:e})=>this.options.keepAttributes?e().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes(ite,this.editor.getAttributes(Zk)).run():t.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-8":()=>this.editor.commands.toggleBulletList()}},addInputRules(){let t=fd({find:eN,type:this.type});return(this.options.keepMarks||this.options.keepAttributes)&&(t=fd({find:eN,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:()=>this.editor.getAttributes(Zk),editor:this.editor})),[t]}}),oI=Ps.create({name:"listItem",addOptions(){return{HTMLAttributes:{},bulletListTypeName:"bulletList",orderedListTypeName:"orderedList"}},content:"paragraph block*",defining:!0,parseHTML(){return[{tag:"li"}]},renderHTML({HTMLAttributes:t}){return["li",jr(this.options.HTMLAttributes,t),0]},addKeyboardShortcuts(){return{Enter:()=>this.editor.commands.splitListItem(this.name),Tab:()=>this.editor.commands.sinkListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)}}}),ote={};ste(ote,{findListItemPos:()=>dp,getNextListDepth:()=>s_,handleBackspace:()=>yb,handleDelete:()=>wb,hasListBefore:()=>aI,hasListItemAfter:()=>ate,hasListItemBefore:()=>lI,listItemHasSubList:()=>cI,nextListIsDeeper:()=>uI,nextListIsHigher:()=>dI});var dp=(t,e)=>{const{$from:r}=e.selection,n=Ar(t,e.schema);let s=null,i=r.depth,o=r.pos,a=null;for(;i>0&&a===null;)s=r.node(i),s.type===n?a=i:(i-=1,o-=1);return a===null?null:{$pos:e.doc.resolve(o),depth:a}},s_=(t,e)=>{const r=dp(t,e);if(!r)return!1;const[,n]=FQ(e,t,r.$pos.pos+4);return n},aI=(t,e,r)=>{const{$anchor:n}=t.selection,s=Math.max(0,n.pos-2),i=t.doc.resolve(s).node();return!(!i||!r.includes(i.type.name))},lI=(t,e)=>{var r;const{$anchor:n}=e.selection,s=e.doc.resolve(n.pos-2);return!(s.index()===0||((r=s.nodeBefore)==null?void 0:r.type.name)!==t)},cI=(t,e,r)=>{if(!r)return!1;const n=Ar(t,e.schema);let s=!1;return r.descendants(i=>{i.type===n&&(s=!0)}),s},yb=(t,e,r)=>{if(t.commands.undoInputRule())return!0;if(t.state.selection.from!==t.state.selection.to)return!1;if(!nl(t.state,e)&&aI(t.state,e,r)){const{$anchor:a}=t.state.selection,l=t.state.doc.resolve(a.before()-1),u=[];l.node().descendants((h,p)=>{h.type.name===e&&u.push({node:h,pos:p})});const d=u.at(-1);if(!d)return!1;const f=t.state.doc.resolve(l.start()+d.pos+1);return t.chain().cut({from:a.start()-1,to:a.end()+1},f.end()).joinForward().run()}if(!nl(t.state,e)||!UQ(t.state))return!1;const n=dp(e,t.state);if(!n)return!1;const i=t.state.doc.resolve(n.$pos.pos-2).node(n.depth),o=cI(e,t.state,i);return lI(e,t.state)&&!o?t.commands.joinItemBackward():t.chain().liftListItem(e).run()},uI=(t,e)=>{const r=s_(t,e),n=dp(t,e);return!n||!r?!1:r>n.depth},dI=(t,e)=>{const r=s_(t,e),n=dp(t,e);return!n||!r?!1:r<n.depth},wb=(t,e)=>{if(!nl(t.state,e)||!zQ(t.state,e))return!1;const{selection:r}=t.state,{$from:n,$to:s}=r;return!r.empty&&n.sameParent(s)?!1:uI(e,t.state)?t.chain().focus(t.state.selection.from+4).lift(e).joinBackward().run():dI(e,t.state)?t.chain().joinForward().joinBackward().run():t.commands.joinItemForward()},ate=(t,e)=>{var r;const{$anchor:n}=e.selection,s=e.doc.resolve(n.pos-n.parentOffset-2);return!(s.index()===s.parent.childCount-1||((r=s.nodeAfter)==null?void 0:r.type.name)!==t)},fI=xr.create({name:"listKeymap",addOptions(){return{listTypes:[{itemName:"listItem",wrapperNames:["bulletList","orderedList"]},{itemName:"taskItem",wrapperNames:["taskList"]}]}},addKeyboardShortcuts(){return{Delete:({editor:t})=>{let e=!1;return this.options.listTypes.forEach(({itemName:r})=>{t.state.schema.nodes[r]!==void 0&&wb(t,r)&&(e=!0)}),e},"Mod-Delete":({editor:t})=>{let e=!1;return this.options.listTypes.forEach(({itemName:r})=>{t.state.schema.nodes[r]!==void 0&&wb(t,r)&&(e=!0)}),e},Backspace:({editor:t})=>{let e=!1;return this.options.listTypes.forEach(({itemName:r,wrapperNames:n})=>{t.state.schema.nodes[r]!==void 0&&yb(t,r,n)&&(e=!0)}),e},"Mod-Backspace":({editor:t})=>{let e=!1;return this.options.listTypes.forEach(({itemName:r,wrapperNames:n})=>{t.state.schema.nodes[r]!==void 0&&yb(t,r,n)&&(e=!0)}),e}}}}),lte="listItem",tN="textStyle",rN=/^(\d+)\.\s$/,hI=Ps.create({name:"orderedList",addOptions(){return{itemTypeName:"listItem",HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}},group:"block list",content(){return`${this.options.itemTypeName}+`},addAttributes(){return{start:{default:1,parseHTML:t=>t.hasAttribute("start")?parseInt(t.getAttribute("start")||"",10):1},type:{default:null,parseHTML:t=>t.getAttribute("type")}}},parseHTML(){return[{tag:"ol"}]},renderHTML({HTMLAttributes:t}){const{start:e,...r}=t;return e===1?["ol",jr(this.options.HTMLAttributes,r),0]:["ol",jr(this.options.HTMLAttributes,t),0]},addCommands(){return{toggleOrderedList:()=>({commands:t,chain:e})=>this.options.keepAttributes?e().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes(lte,this.editor.getAttributes(tN)).run():t.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-7":()=>this.editor.commands.toggleOrderedList()}},addInputRules(){let t=fd({find:rN,type:this.type,getAttributes:e=>({start:+e[1]}),joinPredicate:(e,r)=>r.childCount+r.attrs.start===+e[1]});return(this.options.keepMarks||this.options.keepAttributes)&&(t=fd({find:rN,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:e=>({start:+e[1],...this.editor.getAttributes(tN)}),joinPredicate:(e,r)=>r.childCount+r.attrs.start===+e[1],editor:this.editor})),[t]}}),cte=/^\s*(\[([( |x])?\])\s$/,ute=Ps.create({name:"taskItem",addOptions(){return{nested:!1,HTMLAttributes:{},taskListTypeName:"taskList",a11y:void 0}},content(){return this.options.nested?"paragraph block*":"paragraph+"},defining:!0,addAttributes(){return{checked:{default:!1,keepOnSplit:!1,parseHTML:t=>{const e=t.getAttribute("data-checked");return e===""||e==="true"},renderHTML:t=>({"data-checked":t.checked})}}},parseHTML(){return[{tag:`li[data-type="${this.name}"]`,priority:51}]},renderHTML({node:t,HTMLAttributes:e}){return["li",jr(this.options.HTMLAttributes,e,{"data-type":this.name}),["label",["input",{type:"checkbox",checked:t.attrs.checked?"checked":null}],["span"]],["div",0]]},addKeyboardShortcuts(){const t={Enter:()=>this.editor.commands.splitListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)};return this.options.nested?{...t,Tab:()=>this.editor.commands.sinkListItem(this.name)}:t},addNodeView(){return({node:t,HTMLAttributes:e,getPos:r,editor:n})=>{const s=document.createElement("li"),i=document.createElement("label"),o=document.createElement("span"),a=document.createElement("input"),l=document.createElement("div"),u=d=>{var f,h;a.ariaLabel=((h=(f=this.options.a11y)==null?void 0:f.checkboxLabel)==null?void 0:h.call(f,d,a.checked))||`Task item checkbox for ${d.textContent||"empty task item"}`};return u(t),i.contentEditable="false",a.type="checkbox",a.addEventListener("mousedown",d=>d.preventDefault()),a.addEventListener("change",d=>{if(!n.isEditable&&!this.options.onReadOnlyChecked){a.checked=!a.checked;return}const{checked:f}=d.target;n.isEditable&&typeof r=="function"&&n.chain().focus(void 0,{scrollIntoView:!1}).command(({tr:h})=>{const p=r();if(typeof p!="number")return!1;const g=h.doc.nodeAt(p);return h.setNodeMarkup(p,void 0,{...g==null?void 0:g.attrs,checked:f}),!0}).run(),!n.isEditable&&this.options.onReadOnlyChecked&&(this.options.onReadOnlyChecked(t,f)||(a.checked=!a.checked))}),Object.entries(this.options.HTMLAttributes).forEach(([d,f])=>{s.setAttribute(d,f)}),s.dataset.checked=t.attrs.checked,a.checked=t.attrs.checked,i.append(a,o),s.append(i,l),Object.entries(e).forEach(([d,f])=>{s.setAttribute(d,f)}),{dom:s,contentDOM:l,update:d=>d.type!==this.type?!1:(s.dataset.checked=d.attrs.checked,a.checked=d.attrs.checked,u(d),!0)}}},addInputRules(){return[fd({find:cte,type:this.type,getAttributes:t=>({checked:t[t.length-1]==="x"})})]}}),dte=Ps.create({name:"taskList",addOptions(){return{itemTypeName:"taskItem",HTMLAttributes:{}}},group:"block list",content(){return`${this.options.itemTypeName}+`},parseHTML(){return[{tag:`ul[data-type="${this.name}"]`,priority:51}]},renderHTML({HTMLAttributes:t}){return["ul",jr(this.options.HTMLAttributes,t,{"data-type":this.name}),0]},addCommands(){return{toggleTaskList:()=>({commands:t})=>t.toggleList(this.name,this.options.itemTypeName)}},addKeyboardShortcuts(){return{"Mod-Shift-9":()=>this.editor.commands.toggleTaskList()}}});xr.create({name:"listKit",addExtensions(){const t=[];return this.options.bulletList!==!1&&t.push(iI.configure(this.options.bulletList)),this.options.listItem!==!1&&t.push(oI.configure(this.options.listItem)),this.options.listKeymap!==!1&&t.push(fI.configure(this.options.listKeymap)),this.options.orderedList!==!1&&t.push(hI.configure(this.options.orderedList)),this.options.taskItem!==!1&&t.push(ute.configure(this.options.taskItem)),this.options.taskList!==!1&&t.push(dte.configure(this.options.taskList)),t}});var fte=Ps.create({name:"paragraph",priority:1e3,addOptions(){return{HTMLAttributes:{}}},group:"block",content:"inline*",parseHTML(){return[{tag:"p"}]},renderHTML({HTMLAttributes:t}){return["p",jr(this.options.HTMLAttributes,t),0]},addCommands(){return{setParagraph:()=>({commands:t})=>t.setNode(this.name)}},addKeyboardShortcuts(){return{"Mod-Alt-0":()=>this.editor.commands.setParagraph()}}}),hte=/(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))$/,pte=/(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))/g,mte=Sc.create({name:"strike",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"s"},{tag:"del"},{tag:"strike"},{style:"text-decoration",consuming:!1,getAttrs:t=>t.includes("line-through")?{}:!1}]},renderHTML({HTMLAttributes:t}){return["s",jr(this.options.HTMLAttributes,t),0]},addCommands(){return{setStrike:()=>({commands:t})=>t.setMark(this.name),toggleStrike:()=>({commands:t})=>t.toggleMark(this.name),unsetStrike:()=>({commands:t})=>t.unsetMark(this.name)}}
vendor: 4,649 bytes, line 795
795,addKeyboardShortcuts(){return{"Mod-Shift-s":()=>this.editor.commands.toggleStrike()}},addInputRules(){return[dd({find:hte,type:this.type})]},addPasteRules(){return[lc({find:pte,type:this.type})]}}),gte=Ps.create({name:"text",group:"inline"}),pI=Sc.create({name:"underline",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"u"},{style:"text-decoration",consuming:!1,getAttrs:t=>t.includes("underline")?{}:!1}]},renderHTML({HTMLAttributes:t}){return["u",jr(this.options.HTMLAttributes,t),0]},addCommands(){return{setUnderline:()=>({commands:t})=>t.setMark(this.name),toggleUnderline:()=>({commands:t})=>t.toggleMark(this.name),unsetUnderline:()=>({commands:t})=>t.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-u":()=>this.editor.commands.toggleUnderline(),"Mod-U":()=>this.editor.commands.toggleUnderline()}}}),xte=pI;function vte(t={}){return new nr({view(e){return new yte(e,t)}})}class yte{constructor(e,r){var n;this.editorView=e,this.cursorPos=null,this.element=null,this.timeout=-1,this.width=(n=r.width)!==null&&n!==void 0?n:1,this.color=r.color===!1?void 0:r.color||"black",this.class=r.class,this.handlers=["dragover","dragend","drop","dragleave"].map(s=>{let i=o=>{this[s](o)};return e.dom.addEventListener(s,i),{name:s,handler:i}})}destroy(){this.handlers.forEach(({name:e,handler:r})=>this.editorView.dom.removeEventListener(e,r))}update(e,r){this.cursorPos!=null&&r.doc!=e.state.doc&&(this.cursorPos>e.state.doc.content.size?this.setCursor(null):this.updateOverlay())}setCursor(e){e!=this.cursorPos&&(this.cursorPos=e,e==null?(this.element.parentNode.removeChild(this.element),this.element=null):this.updateOverlay())}updateOverlay(){let e=this.editorView.state.doc.resolve(this.cursorPos),r=!e.parent.inlineContent,n,s=this.editorView.dom,i=s.getBoundingClientRect(),o=i.width/s.offsetWidth,a=i.height/s.offsetHeight;if(r){let f=e.nodeBefore,h=e.nodeAfter;if(f||h){let p=this.editorView.nodeDOM(this.cursorPos-(f?f.nodeSize:0));if(p){let g=p.getBoundingClientRect(),m=f?g.bottom:g.top;f&&h&&(m=(m+this.editorView.nodeDOM(this.cursorPos).getBoundingClientRect().top)/2);let x=this.width/2*a;n={left:g.left,right:g.right,top:m-x,bottom:m+x}}}}if(!n){let f=this.editorView.coordsAtPos(this.cursorPos),h=this.width/2*o;n={left:f.left-h,right:f.left+h,top:f.top,bottom:f.bottom}}let l=this.editorView.dom.offsetParent;this.element||(this.element=l.appendChild(document.createElement("div")),this.class&&(this.element.className=this.class),this.element.style.cssText="position: absolute; z-index: 50; pointer-events: none;",this.color&&(this.element.style.backgroundColor=this.color)),this.element.classList.toggle("prosemirror-dropcursor-block",r),this.element.classList.toggle("prosemirror-dropcursor-inline",!r);let u,d;if(!l||l==document.body&&getComputedStyle(l).position=="static")u=-pageXOffset,d=-pageYOffset;else{let f=l.getBoundingClientRect(),h=f.width/l.offsetWidth,p=f.height/l.offsetHeight;u=f.left-l.scrollLeft*h,d=f.top-l.scrollTop*p}this.element.style.left=(n.left-u)/o+"px",this.element.style.top=(n.top-d)/a+"px",this.element.style.width=(n.right-n.left)/o+"px",this.element.style.height=(n.bottom-n.top)/a+"px"}scheduleRemoval(e){clearTimeout(this.timeout),this.timeout=setTimeout(()=>this.setCursor(null),e)}dragover(e){if(!this.editorView.editable)return;let r=this.editorView.posAtCoords({left:e.clientX,top:e.clientY}),n=r&&r.inside>=0&&this.editorView.state.doc.nodeAt(r.inside),s=n&&n.type.spec.disableDropCursor,i=typeof s=="function"?s(this.editorView,r,e):s;if(r&&!i){let o=r.pos;if(this.editorView.dragging&&this.editorView.dragging.slice){let a=mM(this.editorView.state.doc,o,this.editorView.dragging.slice);a!=null&&(o=a)}this.setCursor(o),this.scheduleRemoval(5e3)}}dragend(){this.scheduleRemoval(20)}drop(){this.scheduleRemoval(20)}dragleave(e){this.editorView.dom.contains(e.relatedTarget)||this.setCursor(null)}}class mr extends ut{constructor(e){super(e,e)}map(e,r){let n=e.resolve(r.map(this.head));return mr.valid(n)?new mr(n):ut.near(n)}content(){return Le.empty}eq(e){return e instanceof mr&&e.head==this.head}toJSON(){return{type:"gapcursor",pos:this.head}}static fromJSON(e,r){if(typeof r.pos!="number")throw new RangeError("Invalid input for GapCursor.fromJSON");return new mr(e.resolve(r.pos))}getBookmark(){return new i_(this.anchor)}static valid(e){let r=e.parent;if(r.isTextblock||!wte(e)||!bte(e))return!1;let n=r.type.spec.allowGapCursor;if(n!=null)return n;let s=r.contentMatchAt(e.index()).defaultType;return s&&s.isTextblock}static findGapCursorFrom(e,r,n=!1){e:for(;;){if(!n&&mr.valid(e))return e;let s=e.pos,i=null;for(let o=e.depth;;o--){let a=e.node(o);if(r>
vendor: 15,708 bytes, line 795
7950?e.indexAfter(o)<a.childCount:e.index(o)>0){i=a.child(r>0?e.indexAfter(o):e.index(o)-1);break}else if(o==0)return null;s+=r;let l=e.doc.resolve(s);if(mr.valid(l))return l}for(;;){let o=r>0?i.firstChild:i.lastChild;if(!o){if(i.isAtom&&!i.isText&&!We.isSelectable(i)){e=e.doc.resolve(s+i.nodeSize*r),n=!1;continue e}break}i=o,s+=r;let a=e.doc.resolve(s);if(mr.valid(a))return a}return null}}}mr.prototype.visible=!1;mr.findFrom=mr.findGapCursorFrom;ut.jsonID("gapcursor",mr);class i_{constructor(e){this.pos=e}map(e){return new i_(e.map(this.pos))}resolve(e){let r=e.resolve(this.pos);return mr.valid(r)?new mr(r):ut.near(r)}}function wte(t){for(let e=t.depth;e>=0;e--){let r=t.index(e),n=t.node(e);if(r==0){if(n.type.spec.isolating)return!0;continue}for(let s=n.child(r-1);;s=s.lastChild){if(s.childCount==0&&!s.inlineContent||s.isAtom||s.type.spec.isolating)return!0;if(s.inlineContent)return!1}}return!0}function bte(t){for(let e=t.depth;e>=0;e--){let r=t.indexAfter(e),n=t.node(e);if(r==n.childCount){if(n.type.spec.isolating)return!0;continue}for(let s=n.child(r);;s=s.firstChild){if(s.childCount==0&&!s.inlineContent||s.isAtom||s.type.spec.isolating)return!0;if(s.inlineContent)return!1}}return!0}function Ste(){return new nr({props:{decorations:Cte,createSelectionBetween(t,e,r){return e.pos==r.pos&&mr.valid(r)?new mr(r):null},handleClick:Ete,handleKeyDown:_te,handleDOMEvents:{beforeinput:Tte}}})}const _te=u3({ArrowLeft:lm("horiz",-1),ArrowRight:lm("horiz",1),ArrowUp:lm("vert",-1),ArrowDown:lm("vert",1)});function lm(t,e){const r=t=="vert"?e>0?"down":"up":e>0?"right":"left";return function(n,s,i){let o=n.selection,a=e>0?o.$to:o.$from,l=o.empty;if(o instanceof Je){if(!i.endOfTextblock(r)||a.depth==0)return!1;l=!1,a=n.doc.resolve(e>0?a.after():a.before())}let u=mr.findGapCursorFrom(a,e,l);return u?(s&&s(n.tr.setSelection(new mr(u))),!0):!1}}function Ete(t,e,r){if(!t||!t.editable)return!1;let n=t.state.doc.resolve(e);if(!mr.valid(n))return!1;let s=t.posAtCoords({left:r.clientX,top:r.clientY});return s&&s.inside>-1&&We.isSelectable(t.state.doc.nodeAt(s.inside))?!1:(t.dispatch(t.state.tr.setSelection(new mr(n))),!0)}function Tte(t,e){if(e.inputType!="insertCompositionText"||!(t.state.selection instanceof mr))return!1;let{$from:r}=t.state.selection,n=r.parent.contentMatchAt(r.index()).findWrapping(t.state.schema.nodes.text);if(!n)return!1;let s=xe.empty;for(let o=n.length-1;o>=0;o--)s=xe.from(n[o].createAndFill(null,s));let i=t.state.tr.replace(r.pos,r.pos,new Le(s,0,0));return i.setSelection(Je.near(i.doc.resolve(r.pos+1))),t.dispatch(i),!1}function Cte(t){if(!(t.selection instanceof mr))return null;let e=document.createElement("div");return e.className="ProseMirror-gapcursor",er.create(t.doc,[Bn.widget(t.selection.head,e,{key:"gapcursor"})])}var Eg=200,Jr=function(){};Jr.prototype.append=function(e){return e.length?(e=Jr.from(e),!this.length&&e||e.length<Eg&&this.leafAppend(e)||this.length<Eg&&e.leafPrepend(this)||this.appendInner(e)):this};Jr.prototype.prepend=function(e){return e.length?Jr.from(e).append(this):this};Jr.prototype.appendInner=function(e){return new kte(this,e)};Jr.prototype.slice=function(e,r){return e===void 0&&(e=0),r===void 0&&(r=this.length),e>=r?Jr.empty:this.sliceInner(Math.max(0,e),Math.min(this.length,r))};Jr.prototype.get=function(e){if(!(e<0||e>=this.length))return this.getInner(e)};Jr.prototype.forEach=function(e,r,n){r===void 0&&(r=0),n===void 0&&(n=this.length),r<=n?this.forEachInner(e,r,n,0):this.forEachInvertedInner(e,r,n,0)};Jr.prototype.map=function(e,r,n){r===void 0&&(r=0),n===void 0&&(n=this.length);var s=[];return this.forEach(function(i,o){return s.push(e(i,o))},r,n),s};Jr.from=function(e){return e instanceof Jr?e:e&&e.length?new mI(e):Jr.empty};var mI=function(t){function e(n){t.call(this),this.values=n}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var r={length:{configurable:!0},depth:{configurable:!0}};return e.prototype.flatten=function(){return this.values},e.prototype.sliceInner=function(s,i){return s==0&&i==this.length?this:new e(this.values.slice(s,i))},e.prototype.getInner=function(s){return this.values[s]},e.prototype.forEachInner=function(s,i,o,a){for(var l=i;l<o;l++)if(s(this.values[l],a+l)===!1)return!1},e.prototype.forEachInvertedInner=function(s,i,o,a){for(var l=i-1;l>=o;l--)if(s(this.values[l],a+l)===!1)return!1},e.prototype.leafAppend=function(s){if(this.length+s.length<=Eg)return new e(this.values.concat(s.flatten()))},e.prototype.leafPrepend=function(s){if(this.length+s.length<=Eg)return new e(s.flatten().concat(this.values))},r.length.get=function(){return this.values.length},r.depth.get=function(){return 0},Object.defineProperties(e.prototype,r),e}(Jr);Jr.empty=new mI([]);var kte=function(t){function e(r,n){t.call(this),this.left=r,this.right=n,this.length=r.length+n.length,this.depth=Math.max(r.depth,n.depth)+1}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.flatten=function(){return this.left.flatten().concat(this.right.flatten())},e.prototype.getInner=function(n){return n<this.left.length?this.left.get(n):this.right.get(n-this.left.length)},e.prototype.forEachInner=function(n,s,i,o){var a=this.left.length;if(s<a&&this.left.forEachInner(n,s,Math.min(i,a),o)===!1||i>a&&this.right.forEachInner(n,Math.max(s-a,0),Math.min(this.length,i)-a,o+a)===!1)return!1},e.prototype.forEachInvertedInner=function(n,s,i,o){var a=this.left.length;if(s>a&&this.right.forEachInvertedInner(n,s-a,Math.max(i,a)-a,o+a)===!1||i<a&&this.left.forEachInvertedInner(n,Math.min(s,a),i,o)===!1)return!1},e.prototype.sliceInner=function(n,s){if(n==0&&s==this.length)return this;var i=this.left.length;return s<=i?this.left.slice(n,s):n>=i?this.right.slice(n-i,s-i):this.left.slice(n,i).append(this.right.slice(0,s-i))},e.prototype.leafAppend=function(n){var s=this.right.leafAppend(n);if(s)return new e(this.left,s)},e.prototype.leafPrepend=function(n){var s=this.left.leafPrepend(n);if(s)return new e(s,this.right)},e.prototype.appendInner=function(n){return this.left.depth>=Math.max(this.right.depth,n.depth)+1?new e(this.left,new e(this.right,n)):new e(this,n)},e}(Jr);const Nte=500;class Ei{constructor(e,r){this.items=e,this.eventCount=r}popEvent(e,r){if(this.eventCount==0)return null;let n=this.items.length;for(;;n--)if(this.items.get(n-1).selection){--n;break}let s,i;r&&(s=this.remapping(n,this.items.length),i=s.maps.length);let o=e.tr,a,l,u=[],d=[];return this.items.forEach((f,h)=>{if(!f.step){s||(s=this.remapping(n,h+1),i=s.maps.length),i--,d.push(f);return}if(s){d.push(new ra(f.map));let p=f.step.map(s.slice(i)),g;p&&o.maybeStep(p).doc&&(g=o.mapping.maps[o.mapping.maps.length-1],u.push(new ra(g,void 0,void 0,u.length+d.length))),i--,g&&s.appendMap(g,i)}else o.maybeStep(f.step);if(f.selection)return a=s?f.selection.map(s.slice(i)):f.selection,l=new Ei(this.items.slice(0,n).append(d.reverse().concat(u)),this.eventCount-1),!1},this.items.length,0),{remaining:l,transform:o,selection:a}}addTransform(e,r,n,s){let i=[],o=this.eventCount,a=this.items,l=!s&&a.length?a.get(a.length-1):null;for(let d=0;d<e.steps.length;d++){let f=e.steps[d].invert(e.docs[d]),h=new ra(e.mapping.maps[d],f,r),p;(p=l&&l.merge(h))&&(h=p,d?i.pop():a=a.slice(0,a.length-1)),i.push(h),r&&(o++,r=void 0),s||(l=h)}let u=o-n.depth;return u>jte&&(a=Ate(a,u),o-=u),new Ei(a.append(i),o)}remapping(e,r){let n=new Eh;return this.items.forEach((s,i)=>{let o=s.mirrorOffset!=null&&i-s.mirrorOffset>=e?n.maps.length-s.mirrorOffset:void 0;n.appendMap(s.map,o)},e,r),n}addMaps(e){return this.eventCount==0?this:new Ei(this.items.append(e.map(r=>new ra(r))),this.eventCount)}rebased(e,r){if(!this.eventCount)return this;let n=[],s=Math.max(0,this.items.length-r),i=e.mapping,o=e.steps.length,a=this.eventCount;this.items.forEach(h=>{h.selection&&a--},s);let l=r;this.items.forEach(h=>{let p=i.getMirror(--l);if(p==null)return;o=Math.min(o,p);let g=i.maps[p];if(h.step){let m=e.steps[p].invert(e.docs[p]),x=h.selection&&h.selection.map(i.slice(l+1,p));x&&a++,n.push(new ra(g,m,x))}else n.push(new ra(g))},s);let u=[];for(let h=r;h<o;h++)u.push(new ra(i.maps[h]));let d=this.items.slice(0,s).append(u).append(n),f=new Ei(d,a);return f.emptyItemCount()>Nte&&(f=f.compress(this.items.length-n.length)),f}emptyItemCount(){let e=0;return this.items.forEach(r=>{r.step||e++}),e}compress(e=this.items.length){let r=this.remapping(0,e),n=r.maps.length,s=[],i=0;return this.items.forEach((o,a)=>{if(a>=e)s.push(o),o.selection&&i++;else if(o.step){let l=o.step.map(r.slice(n)),u=l&&l.getMap();if(n--,u&&r.appendMap(u,n),l){let d=o.selection&&o.selection.map(r.slice(n));d&&i++;let f=new ra(u.invert(),l,d),h,p=s.length-1;(h=s.length&&s[p].merge(f))?s[p]=h:s.push(f)}}else o.map&&n--},this.items.length,0),new Ei(Jr.from(s.reverse()),i)}}Ei.empty=new Ei(Jr.empty,0);function Ate(t,e){let r;return t.forEach((n,s)=>{if(n.selection&&e--==0)return r=s,!1}),t.slice(r)}let ra=class gI{constructor(e,r,n,s){this.map=e,this.step=r,this.selection=n,this.mirrorOffset=s}merge(e){if(this.step&&e.step&&!e.selection){let r=e.step.merge(this.step);if(r)return new gI(r.getMap().invert(),r,this.selection)}}};class ha{constructor(e,r,n,s,i){this.done=e,this.undone=r,this.prevRanges=n,this.prevTime=s,this.prevComposition=i}}const jte=20;function Rte(t,e,r,n){let s=r.getMeta(Gl),i;if(s)return s.historyState;r.getMeta(Mte)&&(t=new ha(t.done,t.undone,null,0,-1));let o=r.getMeta("appendedTransaction");if(r.steps.length==0)return t;if(o&&o.getMeta(Gl))return o.getMeta(Gl).redo?new ha(t.done.addTransform(r,void 0,n,Wm(e)),t.undone,nN(r.mapping.maps),t.prevTime,t.prevComposition):new ha(t.done,t.undone.addTransform(r,void 0,n,Wm(e)),null,t.prevTime,t.prevComposition);if(r.getMeta("addToHistory")!==!1&&!(o&&o.getMeta("addToHistory")===!1)){let a=r.getMeta("composition"),l=t.prevTime==0||!o&&t.prevComposition!=a&&(t.prevTime<(r.time||0)-n.newGroupDelay||!Ote(r,t.prevRanges)),u=o?H1(t.prevRanges,r.mapping):nN(r.mapping.maps);return new ha(t.done.addTransform(r,l?e.selection.getBookmark():void 0,n,Wm(e)),Ei.empty,u,r.time,a??t.prevComposition)}else return(i=r.getMeta("rebased"))?new ha(t.done.rebased(r,i),t.undone.rebased(r,i),H1(t.prevRanges,r.mapping),t.prevTime,t.prevComposition):new ha(t.done.addMaps(r.mapping.maps),t.undone.addMaps(r.mapping.maps),H1(t.prevRanges,r.mapping),t.prevTime,t.prevComposition)}function Ote(t,e){if(!e)return!1;if(!t.docChanged)return!0;let r=!1;return t.mapping.maps[0].forEach((n,s)=>{for(let i=0;i<e.length;i+=2)n<=e[i+1]&&s>=e[i]&&(r=!0)}),r}function nN(t){let e=[];for(let r=t.length-1;r>=0&&e.length==0;r--)t[r].forEach((n,s,i,o)=>e.push(i,o));return e}function H1(t,e){if(!t)return null;let r=[];for(let n=0;n<t.length;n+=2){let s=e.map(t[n],1),i=e.map(t[n+1],-1);s<=i&&r.push(s,i)}return r}function Pte(t,e,r){let n=Wm(e),s=Gl.get(e).spec.config,i=(r?t.undone:t.done).popEvent(e,n);if(!i)return null;let o=i.selection.resolve(i.transform.doc),a=(r?t.done:t.undone).addTransform(i.transform,e.selection.getBookmark(),s,n),l=new ha(r?a:i.remaining,r?i.remaining:a,null,0,-1);return i.transform.setSelection(o).setMeta(Gl,{redo:r,historyState:l})}let V1=!1,sN=null;function Wm(t){let e=t.plugins;if(sN!=e){V1=!1,sN=e;for(let r=0;r<e.length;r++)if(e[r].spec.historyPreserveItems){V1=!0;break}}return V1}const Gl=new Ur("history"),Mte=new Ur("closeHistory");function Ite(t={}){return t={depth:t.depth||100,newGroupDelay:t.newGroupDelay||500},new nr({key:Gl,state:{init(){return new ha(Ei.empty,Ei.empty,null,0,-1)},apply(e,r,n){return Rte(r,n,e,t)}},config:t,props:{handleDOMEvents:{beforeinput(e,r){let n=r.inputType,s=n=="historyUndo"?vI:n=="historyRedo"?yI:null;return!s||!e.editable?!1:(r.preventDefault(),s(e.state,e.dispatch))}}}})}function xI(t,e){return(r,n)=>{let s=Gl.getState(r);if(!s||(t?s.undone:s.done).eventCount==0)return!1;if(n){let i=Pte(s,r,t);i&&n(e?i.scrollIntoView():i)}return!0}}const vI=xI(!1,!0),yI=xI(!0,!0);xr.create({name:"characterCount",addOptions(){return{limit:null,mode:"textSize",textCounter:t=>t.length,wordCounter:t=>t.split(" ").filter(e=>e!=="").length}},addStorage(){return{characters:()=>0,words:()=>0}},onBeforeCreate(){this.storage.characters=t=>{const e=(t==null?void 0:t.node)||this.editor.state.doc;if(((t==null?void 0:t.mode)||this.options.mode)==="textSize"){const n=e.textBetween(0,e.content.size,void 0," ");return this.options.textCounter(n)}return e.nodeSize},this.storage.words=t=>{const e=(t==null?void 0:t.node)||this.editor.state.doc,r=e.textBetween(0,e.content.size," "," ");return this.options.wordCounter(r)}},addProseMirrorPlugins(){let t=!1;return[new nr({key:new Ur("characterCount"),appendTransaction:(e,r,n)=>{if(t)return;const s=this.options.limit;if(s==null||s===0){t=!0;return}const i=this.storage.characters({node:n.doc});if(i>s){const o=i-s,a=0,l=o;console.warn(`[CharacterCount] Initial content exceeded limit of ${s} characters. Content was automatically trimmed.`);const u=n.tr.deleteRange(a,l);return t=!0,u}t=!0},filterTransaction:(e,r)=>{const n=this.options.limit;if(!e.docChanged||n===0||n===null||n===void 0)return!0;const s=this.storage.characters({node:r.doc}),i=this.storage.characters({node:e.doc});if(i<=n||s>n&&i>n&&i<=s)return!0;if(s>n&&i>n&&i>s||!e.getMeta("paste"))return!1;const a=e.selection.$head.pos,l=i-n,u=a-l,d=a;return e.deleteRange(u,d),!(this.storage.characters({node:e.doc})>n)}})]}});var Dte=xr.create({name:"dropCursor",addOptions(){return{color:"currentColor",width:1,class:void 0}},addProseMirrorPlugins(){return[vte(this.options)]}});xr.create({name:"focus",addOptions(){return{className:"has-focus",mode:"all"}},addProseMirrorPlugins(){return[new nr({key:new Ur("focus"),props:{decorations:({doc:t,selection:e})=>{const{isEditable:r,isFocused:n}=this.editor,{anchor:s}=e,i=[];if(!r||!n)return er.create(t,[]);let o=0;this.options.mode==="deepest"&&t.descendants((l,u)=>{if(l.isText)return;if(!(s>=u&&s<=u+l.nodeSize-1))return!1;o+=1});let a=0;return t.descendants((l,u)=>{if(l.isText||!(s>=u&&s<=u+l.nodeSize-1))return!1;if(a+=1,this.options.mode==="deepest"&&o-a>0||this.options.mode==="shallowest"&&a>1)return this.options.mode==="deepest";i.push(Bn.node(u,u+l.nodeSize,{class:this.options.className}))}),er.create(t,i)}}})]}});var Lte=xr.create({name:"gapCursor",addProseMirrorPlugins(){return[Ste()]},extendNodeSchema(t){var e;const r={name:t.name,options:t.options,storage:t.storage};return{allowGapCursor:(e=Rt(ze(t,"allowGapCursor",r)))!=null?e:null}}});xr.create({name:"placeholder",addOptions(){return{emptyEditorClass:"is-editor-empty",emptyNodeClass:"is-empty",placeholder:"Write something …",showOnlyWhenEditable:!0,showOnlyCurrent:!0,includeChildren:!1}},addProseMirrorPlugins(){return[new nr({key:new Ur("placeholder"),props:{decorations:({doc:t,selection:e})=>{const r=this.editor.isEditable||!this.options.showOnlyWhenEditable,{anchor:n}=e,s=[];if(!r)return null;const i=this.editor.isEmpty;return t.descendants((o,a)=>{const l=n>=a&&n<=a+o.nodeSize,u=!o.isLeaf&&Qx(o);if((l||!this.options.showOnlyCurrent)&&u){const d=[this.options.emptyNodeClass];i&&d.push(this.options.emptyEditorClass);const f=Bn.node(a,a+o.nodeSize,{class:d.join(" "),"data-placeholder":typeof this.options.placeholder=="function"?this.options.placeholder({editor:this.editor,node:o,pos:a,hasAnchor:l}):this.options.placeholder});s.push(f)}return this.options.includeChildren}),er.create(t,s)}}})]}});xr.create({name:"selection",addOptions(){return{className:"selection"}},addProseMirrorPlugins(){const{editor:t,options:e}=this;return[new nr({key:new Ur("selection"),props:{decorations(r){return r.selection.empty||t.isFocused||!t.isEditable||C3(r.selection)||t.view.dragging?null:er.create(r.doc,[Bn.inl
795ine(r.selection.from,r.selection.to,{class:e.className})])}}})]}});function iN({types:t,node:e}){return e&&Array.isArray(t)&&t.includes(e.type)||(e==null?void 0:e.type)===t}var Fte=xr.create({name:"trailingNode",addOptions(){return{node:"paragraph",notAfter:[]}},addProseMirrorPlugins(){const t=new Ur(this.name),e=Object.entries(this.editor.schema.nodes).map(([,r])=>r).filter(r=>(this.options.notAfter||[]).concat(this.options.node).includes(r.name));return[new nr({key:t,appendTransaction:(r,n,s)=>{const{doc:i,tr:o,schema:a}=s,l=t.getState(s),u=i.content.size,d=a.nodes[this.options.node];if(l)return o.insert(u,d.create())},state:{init:(r,n)=>{const s=n.tr.doc.lastChild;return!iN({node:s,types:e})},apply:(r,n)=>{if(!r.docChanged)return n;const s=r.doc.lastChild;return!iN({node:s,types:e})}}})]}}),Bte=xr.create({name:"undoRedo",addOptions(){return{depth:100,newGroupDelay:500}},addCommands(){return{undo:()=>({state:t,dispatch:e})=>vI(t,e),redo:()=>({state:t,dispatch:e})=>yI(t,e)}},addProseMirrorPlugins(){return[Ite(this.options)]},addKeyboardShortcuts(){return{"Mod-z":()=>this.editor.commands.undo(),"Shift-Mod-z":()=>this.editor.commands.redo(),"Mod-y":()=>this.editor.commands.redo(),"Mod-я":()=>this.editor.commands.undo(),"Shift-Mod-я":()=>this.editor.commands.redo()}}}),$te=xr.create({name:"starterKit",addExtensions(){var t,e,r,n;const s=[];return this.options.bold!==!1&&s.push(gee.configure(this.options.bold)),this.options.blockquote!==!1&&s.push(dee.configure(this.options.blockquote)),this.options.bulletList!==!1&&s.push(iI.configure(this.options.bulletList)),this.options.code!==!1&&s.push(yee.configure(this.options.code)),this.options.codeBlock!==!1&&s.push(See.configure(this.options.codeBlock)),this.options.document!==!1&&s.push(_ee.configure(this.options.document)),this.options.dropcursor!==!1&&s.push(Dte.configure(this.options.dropcursor)),this.options.gapcursor!==!1&&s.push(Lte.configure(this.options.gapcursor)),this.options.hardBreak!==!1&&s.push(Eee.configure(this.options.hardBreak)),this.options.heading!==!1&&s.push(Tee.configure(this.options.heading)),this.options.undoRedo!==!1&&s.push(Bte.configure(this.options.undoRedo)),this.options.horizontalRule!==!1&&s.push(Cee.configure(this.options.horizontalRule)),this.options.italic!==!1&&s.push(Ree.configure(this.options.italic)),this.options.listItem!==!1&&s.push(oI.configure(this.options.listItem)),this.options.listKeymap!==!1&&s.push(fI.configure((t=this.options)==null?void 0:t.listKeymap)),this.options.link!==!1&&s.push(sI.configure((e=this.options)==null?void 0:e.link)),this.options.orderedList!==!1&&s.push(hI.configure(this.options.orderedList)),this.options.paragraph!==!1&&s.push(fte.configure(this.options.paragraph)),this.options.strike!==!1&&s.push(mte.configure(this.options.strike)),this.options.text!==!1&&s.push(gte.configure(this.options.text)),this.options.underline!==!1&&s.push(pI.configure((r=this.options)==null?void 0:r.underline)),this.options.trailingNode!==!1&&s.push(Fte.configure((n=this.options)==null?void 0:n.trailingNode)),s}}),wI=$te;const zte=({content:t,onChange:e})=>{const r=K3({extensions:[wI],content:t,onUpdate:({editor:n})=>{e(n.getHTML())}});return r?c.jsxs("div",{className:"border border-border rounded-lg overflow-hidden",children:[c.jsxs("div",{className:"bg-muted p-2 border-b border-border flex gap-2",children:[c.jsx(fe,{type:"button",variant:"ghost",size:"sm",onClick:()=>r.chain().focus().toggleBold().run(),className:r.isActive("bold")?"bg-accent":"",children:c.jsx(vR,{className:"w-4 h-4"})}),c.jsx(fe,{type:"button",variant:"ghost",size:"sm",onClick:()=>r.chain().focus().toggleItalic().run(),className:r.isActive("italic")?"bg-accent":"",children:c.jsx(jR,{className:"w-4 h-4"})}),c.jsx(fe,{type:"button",variant:"ghost",size:"sm",onClick:()=>r.chain().focus().toggleBulletList().run(),className:r.isActive("bulletList")?"bg-accent":"",children:c.jsx(PR,{className:"w-4 h-4"})}),c.jsx(fe,{type:"button",variant:"ghost",size:"sm",onClick:()=>r.chain().focus().toggleOrderedList().run(),className:r.isActive("orderedList")?"bg-accent":"",children:c.jsx(OR,{className:"w-4 h-4"})})]}),c.jsx(q3,{editor:r,className:"prose prose-sm max-w-none p-4 min-h-[200px] focus:outline-none"})]}):null};/*! xlsx.js (C) 2013-present SheetJS -- http://sheetjs.com */var Tg={};Tg.version="0.18.5";var bI=1252,Ute=[874,932,936,949,950,1250,1251,1252,1253,1254,1255,1256,1257,1258,1e4],SI=function(t){Ute.indexOf(t)!=-1&&(bI=t)};function Hte(){SI(1252)}var Oh=function(t){SI(t)};function Vte(){Oh(1200),Hte()}var cm=function(e){return String.fromCharCode(e)},oN=function(e){return String.fromCharCode(e)},Tl,Oa="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
795+/=";function Ph(t){for(var e="",r=0,n=0,s=0,i=0,o=0,a=0,l=0,u=0;u<t.length;)r=t.charCodeAt(u++),i=r>>2,n=t.charCodeAt(u++),o=(r&3)<<4|n>>4,s=t.charCodeAt(u++),a=(n&15)<<2|s>>6,l=s&63,isNaN(n)?a=l=64:isNaN(s)&&(l=64),e+=Oa.charAt(i)+Oa.charAt(o)+Oa.charAt(a)+Oa.charAt(l);return e}function Vo(t){var e="",r=0,n=0,s=0,i=0,o=0,a=0,l=0;t=t.replace(/[^\w\+\/\=]/g,"");for(var u=0;u<t.length;)i=Oa.indexOf(t.charAt(u++)),o=Oa.indexOf(t.charAt(u++)),r=i<<2|o>>4,e+=String.fromCharCode(r),a=Oa.indexOf(t.charAt(u++)),n=(o&15)<<4|a>>2,a!==64&&(e+=String.fromCharCode(n)),l=Oa.indexOf(t.charAt(u++)),s=(a&3)<<6|l,l!==64&&(e+=String.fromCharCode(s));return e}var Nt=function(){return typeof Buffer<"u"&&typeof process<"u"&&typeof process.versions<"u"&&!!process.versions.node}(),Yo=function(){if(typeof Buffer<"u"){var t=!Buffer.from;if(!t)try{Buffer.from("foo","utf8")}catch{t=!0}return t?function(e,r){return r?new Buffer(e,r):new Buffer(e)}:Buffer.from.bind(Buffer)}return function(){}}();function cc(t){return Nt?Buffer.alloc?Buffer.alloc(t):new Buffer(t):typeof Uint8Array<"u"?new Uint8Array(t):new Array(t)}function aN(t){return Nt?Buffer.allocUnsafe?Buffer.allocUnsafe(t):new Buffer(t):typeof Uint8Array<"u"?new Uint8Array(t):new Array(t)}var Ti=function(e){return Nt?Yo(e,"binary"):e.split("").map(function(r){return r.charCodeAt(0)&255})};function nv(t){if(typeof ArrayBuffer>"u")return Ti(t);
795for(var e=new ArrayBuffer(t.length),r=new Uint8Array(e),n=0;n!=t.length;++n)r[n]=t.charCodeAt(n)&255;return e}function fp(t){if(Array.isArray(t))return t.map(function(n){return String.fromCharCode(n)}).join("");for(var e=[],r=0;r<t.length;++r)e[r]=String.fromCharCode(t[r]);return e.join("")}function Wte(t){if(typeof Uint8Array>"u")throw new Error("Unsupported");return new Uint8Array(t)}var cn=Nt?function(t){return Buffer.concat(t.map(function(e){return Buffer.isBuffer(e)?e:Yo(e)}))}:function(t){if(typeof Uint8Array<"u"){var e=0,r=0;for(e=0;e<t.length;++e)r+=t[e].length;var n=new Uint8Array(r),s=0;for(e=0,r=0;e<t.length;r+=s,++e)if(s=t[e].length,t[e]instanceof Uint8Array)n.set(t[e],r);else{if(typeof t[e]=="string")throw"wtf";n.set(new Uint8Array(t[e]),r)}return n}return[].concat.apply([],t.map(function(i){return Array.isArray(i)?i:[].slice.call(i)}))};function qte(t){for(var e=[],r=0,n=t.length+250,s=cc(t.length+255),i=0;i<t.length;++i){var o=t.charCodeAt(i);if(o<128)s[r++]=o;else if(o<2048)s[r++]=192|o>>6&31,s[r++]=128|o&63;else if(o>=55296&&o<57344){o=(o&1023)+64;var a=t.charCodeAt(++i)&1023;s[r++]=240|o>>8&7,s[r++]=128|o>>2&63,s[r++]=128|a>>6&15|(o&3)<<4,s[r++]=128|a&63}else s[r++]=224|o>>12&15,s[r++]=128|o>>6&63,s[r++]=128|o&63;r>n&&(e.push(s.slice(0,r)),r=0,s=cc(65535),n=65530)}return e.push(s.slice(0,r)),cn(e)}var zf=/\u0000/g,um=/[\u0001-\u0006]/g;function Ru(t){for(var e="",r=t.length-1;r>=0;)e+=t.charAt(r--);return e}function Ni(t,e){var r=""+t;return r.length>=e?r:pr("0",e-r.length)+r}function o_(t,e){var r=""+t;return r.length>=e?r:pr(" ",e-r.length)+r}function Cg(t,e){var r=""+t;return r.length>=e?r:r+pr(" ",e-r.length)}function Gte(t,e){var r=""+Math.round(t);return r.length>=e?r:pr("0",e-r.length)+r}function Kte(t,e){var r=""+t;return r.length>=e?r:pr("0",e-r.length)+r}var lN=Math.pow(2,32);function $c(t,e){if(t>lN||t<-lN)return Gte(t,e);var r=Math.round(t);return Kte(r,e)}function kg(t,e){return e=e||0,t.length>=7+e&&(t.charCodeAt(e)|32)===103&&(t.charCodeAt(e+1)|32)===101&&(t.charCodeAt(e+2)|32)===110&&(t.charCodeAt(e+3)|32)===101&&(t.charCodeAt(e+4)|32)===114&&(t.charCodeAt(e+5)|32)===97&&(t.charCodeAt(e+6)|32)===108}var cN=[["Sun","Sunday"],["Mon","Monday"],["Tue","Tuesday"],["Wed","Wednesday"],["Thu","Thursday"],["Fri","Friday"],["Sat","Saturday"]],W1=[["J","Jan","January"],["F","Feb","February"],["M","Mar","March"],["A","Apr","April"],["M","May","May"],["J","Jun","June"],["J","Jul","July"],["A","Aug","August"],["S","Sep","September"],["O","Oct","October"],["N","Nov","November"],["D","Dec","December"]];function Xte(t){return t||(t={}),t[0]="General",t[1]="0",t[2]="0.00",t[3]="#,##0",t[4]="#,##0.00",t[9]="0%",t[10]="0.00%",t[11]="0.00E+00",t[12]="# ?/?",t[13]="# ??/??",t[14]="m/d/yy",t[15]="d-mmm-yy",t[16]="d-mmm",t[17]="mmm-yy",t[18]="h:mm AM/PM",t[19]="h:mm:ss AM/PM",t[20]="h:mm",t[21]="h:mm:ss",t[22]="m/d/yy h:mm",t[37]="#,##0 ;(#,##0)",t[38]="#,##0 ;[Red](#,##0)",t[39]="#,##0.00;(#,##0.00)",t[40]="#,##0.00;[Red](#,##0.00)",t[45]="mm:ss",t[46]="[h]:mm:ss",t[47]="mmss.0",t[48]="##0.0E+0",t[49]="@",t[56]='"上午/下午 "hh"時"mm"分"ss"秒 "',t}var gr={0:"General",1:"0",2:"0.00",3:"#,##0",4:"#,##0.00",9:"0%",10:"0.00%",11:"0.00E+00",12:"# ?/?",13:"# ??/??",14:"m/d/yy",15:"d-mmm-yy",16:"d-mmm",17:"mmm-yy",18:"h:mm AM/PM",19:"h:mm:ss AM/PM",20:"h:mm",21:"h:mm:ss",22:"m/d/yy h:mm",37:"#,##0 ;(#,##0)",38:"#,##0 ;[Red](#,##0)",39:"#,##0.00;(#,##0.00)",40:"#,##0.00;[Red](#,##0.00)",45:"mm:ss",46:"[h]:mm:ss",47:"mmss.0",48:"##0.0E+0",49:"@",56:'"上午/下午 "hh"時"mm"分"ss"秒 "'},uN={5:37,6:38,7:39,8:40,23:0,24:0,25:0,26:0,27:14,28:14,29:14,30:14,31:14,50:14,51:14,52:14,53:14,54:14,55:14,56:14,57:14,58:14,59:1,60:2,61:3,62:4,67:9,68:10,69:12,70:13,71:14,72:14,73:15,74:16,75:17,76:20,77:21,78:22,79:45,80:46,81:47,82:0},Yte={5:'"$"#,##0_);\\("$"#,##0\\)',63:'"$"#,##0_);\\("$"#,##0\\)',6:'"$"#,##0_);[Red]\\("$"#,##0\\)',64:'"$"#,##0_);[Red]\\("$"#,##0\\)',7:'"$"#,##0.00_);\\("$"#,##0.00\\)',65:'"$"#,##0.00_);\\("$"#,##0.00\\)',8:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',66:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',41:'_(* #,##0_);_(* \\(#,##0\\);
795_(* "-"_);_(@_)',42:'_("$"* #,##0_);_("$"* \\(#,##0\\);_("$"* "-"_);_(@_)',43:'_(* #,##0.00_);_(* \\(#,##0.00\\);_(* "-"??_);_(@_)',44:'_("$"* #,##0.00_);_("$"* \\(#,##0.00\\);_("$"* "-"??_);_(@_)'};function Ng(t,e,r){for(var n=t<0?-1:1,s=t*n,i=0,o=1,a=0,l=1,u=0,d=0,f=Math.floor(s);u<e&&(f=Math.floor(s),a=f*o+i,d=f*u+l,!(s-f<5e-8));)s=1/(s-f),i=o,o=a,l=u,u=d;if(d>e&&(u>e?(d=l,a=i):(d=u,a=o)),!r)return[0,n*a,d];var h=Math.floor(n*a/d);return[h,n*a-h*d,d]}function dm(t,e,r){if(t>2958465||t<0)return null;var n=t|0,s=Math.floor(86400*(t-n)),i=0,o=[],a={D:n,T:s,u:86400*(t-n)-s,y:0,m:0,d:0,H:0,M:0,S:0,q:0};if(Math.abs(a.u)<1e-6&&(a.u=0),e&&e.date1904&&(n+=1462),a.u>.9999&&(a.u=0,++s==86400&&(a.T=s=0,++n,++a.D)),n===60)o=r?[1317,10,29]:[1900,2,29],i=3;else if(n===0)o=r?[1317,8,29]:[1900,1,0],i=6;else{n>60&&--n;var l=new Date(1900,0,1);l.setDate(l.getDate()+n-1),o=[l.getFullYear(),l.getMonth()+1,l.getDate()],i=l.getDay(),n<60&&(i=(i+6)%7),r&&(i=nre(l,o))}return a.y=o[0],a.m=o[1],a.d=o[2],a.S=s%60,s=Math.floor(s/60),a.M=s%60,s=Math.floor(s/60),a.H=s,a.q=i,a}var _I=new Date(1899,11,31,0,0,0),Jte=_I.getTime(),Qte=new Date(1900,2,1,0,0,0);function EI(t,e){var r=t.getTime();return e?r-=1461*24*60*60*1e3:t>=Qte&&(r+=24*60*60*1e3),(r-(Jte+(t.getTimezoneOffset()-_I.getTimezoneOffset())*6e4))/(24*60*60*1e3)}function a_(t){return t.indexOf(".")==-1?t:t.replace(/(?:\.0*|(\.\d*[1-9])0+)$/,"$1")}function Zte(t){return t.indexOf("E")==-1?t:t.replace(/(?:\.0*|(\.\d*[1-9])0+)[Ee]/,"$1E").replace(/(E[+-])(\d)$/,"$10$2")}function ere(t){var e=t<0?12:11,r=a_(t.toFixed(12));return r.length<=e||(r=t.toPrecision(10),r.length<=e)?r:t.toExponential(5)}function tre(t){var e=a_(t.toFixed(11));return e.length>(t<0?12:11)||e==="0"||e==="-0"?t.toPrecision(6):e}function rre(t){var e=Math.floor(Math.log(Math.abs(t))*Math.LOG10E),r;return e>=-4&&e<=-1?r=t.toPrecision(10+e):Math.abs(e)<=9?r=ere(t):e===10?r=t.toFixed(10).substr(0,12):r=tre(t),a_(Zte(r.toUpperCase()))}function bb(t,e){switch(typeof t){case"string":return t;case"boolean":return t?"TRUE":"FALSE";case"number":return(t|0)===t?t.toString(10):rre(t);case"undefined":return"";case"object":if(t==null)return"";if(t instanceof Date)return sl(14,EI(t,e&&e.date1904),e)}throw new Error("unsupported value in General format: "+t)}function nre(t,e){e[0]-=581;var r=t.getDay();return t<60&&(r=(r+6)%7),r}function sre(t,e,r,n){var s="",i=0,o=0,a=r.y,l,u=0;switch(t){case 98:a=r.y+543;case 121:switch(e.length){case 1:case 2:l=a%100,u=2;break;default:l=a%1e4,u=4;break}break;case 109:switch(e.length){case 1:case 2:l=r.m,u=e.length;break;case 3:return W1[r.m-1][1];case 5:return W1[r.m-1][0];default:return W1[r.m-1][2]}break;case 100:switch(e.length){case 1:case 2:l=r.d,u=e.length;break;case 3:return cN[r.q][0];default:return cN[r.q][1]}break;case 104:switch(e.length){case 1:case 2:l=1+(r.H+11)%12,u=e.length;break;default:throw"bad hour format: "+e}break;case 72:switch(e.length){case 1:case 2:l=r.H,u=e.length;break;default:throw"bad hour format: "+e}break;case 77:switch(e.length){case 1:case 2:l=r.M,u=e.length;break;default:throw"bad minute format: "+e}break;case 115:if(e!="s"&&e!="ss"&&e!=".0"&&e!=".00"&&e!=".000")throw"bad second format: "+e;return r.u===0&&(e=="s"||e=="ss")?Ni(r.S,e.length):(n>=2?o=n===3?1e3:100:o=n===1?10:1,i=Math.round(o*(r.S+r.u)),i>=60*o&&(i=0),e==="s"?i===0?"0":""+i/o:(s=Ni(i,2+n),e==="ss"?s.substr(0,2):"."+s.substr(2,e.length-1)));case 90:switch(e){case"[h]":case"[hh]":l=r.D*24+r.H;break;case"[m]":case"[mm]":l=(r.D*24+r.H)*60+r.M;break;case"[s]":case"[ss]":l=((r.D*24+r.H)*60+r.M)*60+Math.round(r.S+r.u);break;default:throw"bad abstime format: "+e}u=e.length===3?1:2;break;case 101:l=a,u=1;break}var d=u>0?Ni(l,u):"";return d}function Pa(t){var e=3;if(t.length<=e)return t;for(var r=t.length%e,n=t.substr(0,r);r!=t.length;r+=e)n+=(n.length>0?",":"")+t.substr(r,e);return n}var TI=/%/g;function ire(t,e,r){var n=e.replace(TI,""),s=e.length-n.length;return Po(t,n,r*Math.pow(10,2*s))+pr("%",s)}function ore(t,e,r){for(var n=e.length-1;e.charCodeAt(n-1)===44;)--n;return Po(t,e.substr(0,n),r/Math.pow(10,3*(e.length-n)))}function CI(t,e){var r,n=t.indexOf("E")-t.indexOf(".")-1;if(t.match(/^#+0.0E\+0$/)){if(e==0)return"0.0E+0";if(e<0)return"-"+CI(t,-e);var s=t.indexOf(".");
vendor: 5,040 bytes, line 795
795s===-1&&(s=t.indexOf("E"));var i=Math.floor(Math.log(e)*Math.LOG10E)%s;if(i<0&&(i+=s),r=(e/Math.pow(10,i)).toPrecision(n+1+(s+i)%s),r.indexOf("e")===-1){var o=Math.floor(Math.log(e)*Math.LOG10E);for(r.indexOf(".")===-1?r=r.charAt(0)+"."+r.substr(1)+"E+"+(o-r.length+i):r+="E+"+(o-i);r.substr(0,2)==="0.";)r=r.charAt(0)+r.substr(2,s)+"."+r.substr(2+s),r=r.replace(/^0+([1-9])/,"$1").replace(/^0+\./,"0.");r=r.replace(/\+-/,"-")}r=r.replace(/^([+-]?)(\d*)\.(\d*)[Ee]/,function(a,l,u,d){return l+u+d.substr(0,(s+i)%s)+"."+d.substr(i)+"E"})}else r=e.toExponential(n);return t.match(/E\+00$/)&&r.match(/e[+-]\d$/)&&(r=r.substr(0,r.length-1)+"0"+r.charAt(r.length-1)),t.match(/E\-/)&&r.match(/e\+/)&&(r=r.replace(/e\+/,"e")),r.replace("e","E")}var kI=/# (\?+)( ?)\/( ?)(\d+)/;function are(t,e,r){var n=parseInt(t[4],10),s=Math.round(e*n),i=Math.floor(s/n),o=s-i*n,a=n;return r+(i===0?"":""+i)+" "+(o===0?pr(" ",t[1].length+1+t[4].length):o_(o,t[1].length)+t[2]+"/"+t[3]+Ni(a,t[4].length))}function lre(t,e,r){return r+(e===0?"":""+e)+pr(" ",t[1].length+2+t[4].length)}var NI=/^#*0*\.([0#]+)/,AI=/\).*[0#]/,jI=/\(###\) ###\\?-####/;function Dn(t){for(var e="",r,n=0;n!=t.length;++n)switch(r=t.charCodeAt(n)){case 35:break;case 63:e+=" ";break;case 48:e+="0";break;default:e+=String.fromCharCode(r)}return e}function dN(t,e){var r=Math.pow(10,e);return""+Math.round(t*r)/r}function fN(t,e){var r=t-Math.floor(t),n=Math.pow(10,e);return e<(""+Math.round(r*n)).length?0:Math.round(r*n)}function cre(t,e){return e<(""+Math.round((t-Math.floor(t))*Math.pow(10,e))).length?1:0}function ure(t){return t<2147483647&&t>-2147483648?""+(t>=0?t|0:t-1|0):""+Math.floor(t)}function Bs(t,e,r){if(t.charCodeAt(0)===40&&!e.match(AI)){var n=e.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,"");return r>=0?Bs("n",n,r):"("+Bs("n",n,-r)+")"}if(e.charCodeAt(e.length-1)===44)return ore(t,e,r);if(e.indexOf("%")!==-1)return ire(t,e,r);if(e.indexOf("E")!==-1)return CI(e,r);if(e.charCodeAt(0)===36)return"$"+Bs(t,e.substr(e.charAt(1)==" "?2:1),r);var s,i,o,a,l=Math.abs(r),u=r<0?"-":"";if(e.match(/^00+$/))return u+$c(l,e.length);if(e.match(/^[#?]+$/))return s=$c(r,0),s==="0"&&(s=""),s.length>e.length?s:Dn(e.substr(0,e.length-s.length))+s;if(i=e.match(kI))return are(i,l,u);if(e.match(/^#+0+$/))return u+$c(l,e.length-e.indexOf("0"));if(i=e.match(NI))return s=dN(r,i[1].length).replace(/^([^\.]+)$/,"$1."+Dn(i[1])).replace(/\.$/,"."+Dn(i[1])).replace(/\.(\d*)$/,function(g,m){return"."+m+pr("0",Dn(i[1]).length-m.length)}),e.indexOf("0.")!==-1?s:s.replace(/^0\./,".");if(e=e.replace(/^#+([0.])/,"$1"),i=e.match(/^(0*)\.(#*)$/))return u+dN(l,i[2].length).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,i[1].length?"0.":".");if(i=e.match(/^#{1,3},##0(\.?)$/))return u+Pa($c(l,0));if(i=e.match(/^#,##0\.([#0]*0)$/))return r<0?"-"+Bs(t,e,-r):Pa(""+(Math.floor(r)+cre(r,i[1].length)))+"."+Ni(fN(r,i[1].length),i[1].length);if(i=e.match(/^#,#*,#0/))return Bs(t,e.replace(/^#,#*,/,""),r);if(i=e.match(/^([0#]+)(\\?-([0#]+))+$/))return s=Ru(Bs(t,e.replace(/[\\-]/g,""),r)),o=0,Ru(Ru(e.replace(/\\/g,"")).replace(/[0#]/g,function(g){return o<s.length?s.charAt(o++):g==="0"?"0":""}));if(e.match(jI))return s=Bs(t,"##########",r),"("+s.substr(0,3)+") "+s.substr(3,3)+"-"+s.substr(6);var d="";if(i=e.match(/^([#0?]+)( ?)\/( ?)([#0?]+)/))return o=Math.min(i[4].length,7),a=Ng(l,Math.pow(10,o)-1,!1),s=""+u,d=Po("n",i[1],a[1]),d.charAt(d.length-1)==" "&&(d=d.substr(0,d.length-1)+"0"),s+=d+i[2]+"/"+i[3],d=Cg(a[2],o),d.length<i[4].length&&(d=Dn(i[4].substr(i[4].length-d.length))+d),s+=d,s;if(i=e.match(/^# ([#0?]+)( ?)\/( ?)([#0?]+)/))return o=Math.min(Math.max(i[1].length,i[4].length),7),a=Ng(l,Math.pow(10,o)-1,!0),u+(a[0]||(a[1]?"":"0"))+" "+(a[1]?o_(a[1],o)+i[2]+"/"+i[3]+Cg(a[2],o):pr(" ",2*o+1+i[2].length+i[3].length));if(i=e.match(/^[#0?]+$/))return s=$c(r,0),e.length<=s.length?s:Dn(e.substr(0,e.length-s.length))+s;if(i=e.match(/^([#0?]+)\.([#0]+)$/)){s=""+r.toFixed(Math.min(i[2].length,10)).replace(/([^0])0+$/,"$1"),o=s.indexOf(".");var f=e.indexOf(".")-o,h=e.length-s.length-f;return Dn(e.substr(0,f)+s+e.substr(e.length-h))}if(i=e.match(/^00,000\.([#0]*0)$/))return o=fN(r,i[1].length),r<0?"-"+Bs(t,e,-r):Pa(ure(r)).replace(/^\d,\d{3}$/,"0$&").replace(/^\d*$/,function(g){return"00,"+(g.length<3?Ni(0,3-g.length):"")+g})+"."+Ni(o,i[1].length);switch(e){case"###,##0.00":return Bs(t,"#,##0.00",r);case"###,###":case"##,###":case"#,###":var p=Pa($c(l,0));return p!=="0"?u+p:"";case"###,###.00":return Bs(t,"###,##0.00",r).replace(/^0\./,".");case"#,###.00":return Bs(t,"#,##0.00",r).replace(/^0\./,".")}throw new Error("unsupported format |"+e+"|")}function dre(t,e,r){for(var n=e.length-1;e.charCodeAt(n-1)===44;)--n;return Po(t,e.substr(0,n),r/Math.pow(10,3*(e.length-n)))}function fre(t,e,r){var n=e.replace(TI,""),s=e.length-n.length;return Po(t,n,r*Math.pow(10,2*s))+pr("%",s)}function RI(t,e){var r,n=t.indexOf("E")-t.indexOf(".")-1;if(t.match(/^#+0.0E\+0$/)){if(e==0)return"0.0E+0";if(e<0)return"-"+RI(t,-e);var s=t.indexOf(".");
vendor: 6,250 bytes, line 795
795s===-1&&(s=t.indexOf("E"));var i=Math.floor(Math.log(e)*Math.LOG10E)%s;if(i<0&&(i+=s),r=(e/Math.pow(10,i)).toPrecision(n+1+(s+i)%s),!r.match(/[Ee]/)){var o=Math.floor(Math.log(e)*Math.LOG10E);r.indexOf(".")===-1?r=r.charAt(0)+"."+r.substr(1)+"E+"+(o-r.length+i):r+="E+"+(o-i),r=r.replace(/\+-/,"-")}r=r.replace(/^([+-]?)(\d*)\.(\d*)[Ee]/,function(a,l,u,d){return l+u+d.substr(0,(s+i)%s)+"."+d.substr(i)+"E"})}else r=e.toExponential(n);return t.match(/E\+00$/)&&r.match(/e[+-]\d$/)&&(r=r.substr(0,r.length-1)+"0"+r.charAt(r.length-1)),t.match(/E\-/)&&r.match(/e\+/)&&(r=r.replace(/e\+/,"e")),r.replace("e","E")}function zi(t,e,r){if(t.charCodeAt(0)===40&&!e.match(AI)){var n=e.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,"");return r>=0?zi("n",n,r):"("+zi("n",n,-r)+")"}if(e.charCodeAt(e.length-1)===44)return dre(t,e,r);if(e.indexOf("%")!==-1)return fre(t,e,r);if(e.indexOf("E")!==-1)return RI(e,r);if(e.charCodeAt(0)===36)return"$"+zi(t,e.substr(e.charAt(1)==" "?2:1),r);var s,i,o,a,l=Math.abs(r),u=r<0?"-":"";if(e.match(/^00+$/))return u+Ni(l,e.length);if(e.match(/^[#?]+$/))return s=""+r,r===0&&(s=""),s.length>e.length?s:Dn(e.substr(0,e.length-s.length))+s;if(i=e.match(kI))return lre(i,l,u);if(e.match(/^#+0+$/))return u+Ni(l,e.length-e.indexOf("0"));if(i=e.match(NI))return s=(""+r).replace(/^([^\.]+)$/,"$1."+Dn(i[1])).replace(/\.$/,"."+Dn(i[1])),s=s.replace(/\.(\d*)$/,function(g,m){return"."+m+pr("0",Dn(i[1]).length-m.length)}),e.indexOf("0.")!==-1?s:s.replace(/^0\./,".");if(e=e.replace(/^#+([0.])/,"$1"),i=e.match(/^(0*)\.(#*)$/))return u+(""+l).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,i[1].length?"0.":".");if(i=e.match(/^#{1,3},##0(\.?)$/))return u+Pa(""+l);if(i=e.match(/^#,##0\.([#0]*0)$/))return r<0?"-"+zi(t,e,-r):Pa(""+r)+"."+pr("0",i[1].length);if(i=e.match(/^#,#*,#0/))return zi(t,e.replace(/^#,#*,/,""),r);if(i=e.match(/^([0#]+)(\\?-([0#]+))+$/))return s=Ru(zi(t,e.replace(/[\\-]/g,""),r)),o=0,Ru(Ru(e.replace(/\\/g,"")).replace(/[0#]/g,function(g){return o<s.length?s.charAt(o++):g==="0"?"0":""}));if(e.match(jI))return s=zi(t,"##########",r),"("+s.substr(0,3)+") "+s.substr(3,3)+"-"+s.substr(6);var d="";if(i=e.match(/^([#0?]+)( ?)\/( ?)([#0?]+)/))return o=Math.min(i[4].length,7),a=Ng(l,Math.pow(10,o)-1,!1),s=""+u,d=Po("n",i[1],a[1]),d.charAt(d.length-1)==" "&&(d=d.substr(0,d.length-1)+"0"),s+=d+i[2]+"/"+i[3],d=Cg(a[2],o),d.length<i[4].length&&(d=Dn(i[4].substr(i[4].length-d.length))+d),s+=d,s;if(i=e.match(/^# ([#0?]+)( ?)\/( ?)([#0?]+)/))return o=Math.min(Math.max(i[1].length,i[4].length),7),a=Ng(l,Math.pow(10,o)-1,!0),u+(a[0]||(a[1]?"":"0"))+" "+(a[1]?o_(a[1],o)+i[2]+"/"+i[3]+Cg(a[2],o):pr(" ",2*o+1+i[2].length+i[3].length));if(i=e.match(/^[#0?]+$/))return s=""+r,e.length<=s.length?s:Dn(e.substr(0,e.length-s.length))+s;if(i=e.match(/^([#0]+)\.([#0]+)$/)){s=""+r.toFixed(Math.min(i[2].length,10)).replace(/([^0])0+$/,"$1"),o=s.indexOf(".");var f=e.indexOf(".")-o,h=e.length-s.length-f;return Dn(e.substr(0,f)+s+e.substr(e.length-h))}if(i=e.match(/^00,000\.([#0]*0)$/))return r<0?"-"+zi(t,e,-r):Pa(""+r).replace(/^\d,\d{3}$/,"0$&").replace(/^\d*$/,function(g){return"00,"+(g.length<3?Ni(0,3-g.length):"")+g})+"."+Ni(0,i[1].length);switch(e){case"###,###":case"##,###":case"#,###":var p=Pa(""+l);return p!=="0"?u+p:"";default:if(e.match(/\.[0#?]*$/))return zi(t,e.slice(0,e.lastIndexOf(".")),r)+Dn(e.slice(e.lastIndexOf(".")))}throw new Error("unsupported format |"+e+"|")}function Po(t,e,r){return(r|0)===r?zi(t,e,r):Bs(t,e,r)}function hre(t){for(var e=[],r=!1,n=0,s=0;n<t.length;++n)switch(t.charCodeAt(n)){case 34:r=!r;break;case 95:case 42:case 92:++n;break;case 59:e[e.length]=t.substr(s,n-s),s=n+1}if(e[e.length]=t.substr(s),r===!0)throw new Error("Format |"+t+"| unterminated string ");return e}var OI=/\[[HhMmSs\u0E0A\u0E19\u0E17]*\]/;function PI(t){for(var e=0,r="",n="";e<t.length;)switch(r=t.charAt(e)){case"G":kg(t,e)&&(e+=6),e++;break;case'"':for(;t.charCodeAt(++e)!==34&&e<t.length;);++e;break;case"\\":e+=2;break;case"_":e+=2;break;case"@":++e;break;case"B":case"b":if(t.charAt(e+1)==="1"||t.charAt(e+1)==="2")return!0;case"M":case"D":case"Y":case"H":case"S":case"E":case"m":case"d":case"y":case"h":case"s":case"e":case"g":return!0;case"A":case"a":case"上":if(t.substr(e,3).toUpperCase()==="A/P"||t.substr(e,5).toUpperCase()==="AM/PM"||t.substr(e,5).toUpperCase()==="上午/下午")return!0;++e;break;case"[":for(n=r;t.charAt(e++)!=="]"&&e<t.length;)n+=t.charAt(e);if(n.match(OI))return!0;break;case".":case"0":case"#":for(;e<t.length&&("0#?.,E+-%".indexOf(r=t.charAt(++e))>-1||r=="\\"&&t.charAt(e+1)=="-"&&"0#".indexOf(t.charAt(e+2))>-1););break;case"?":for(;t.charAt(++e)===r;);break;case"*":++e,(t.charAt(e)==" "||t.charAt(e)=="*")&&++e;break;case"(":case")":++e;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":for(;e<t.length&&"0123456789".indexOf(t.charAt(++e))>-1;);break;case" ":++e;break;default:++e;break}return!1}function pre(t,e,r,n){for(var s=[],i="",o=0,a="",l="t",u,d,f,h="H";o<t.length;)switch(a=t.charAt(o)){case"G":if(!kg(t,o))throw new Error("unrecognized character "+a+" in "+t);s[s.length]={t:"G",v:"General"},o+=7;break;case'"':for(i="";(f=t.charCodeAt(++o))!==34&&o<t.length;)i+=String.fromCharCode(f);s[s.length]={t:"t",v:i},++o;break;case"\\":var p=t.charAt(++o),g=p==="("||p===")"?p:"t";s[s.length]={t:g,v:p},++o;break;case"_":s[s.length]={t:"t",v:" "},o+=2;break;case"@":s[s.length]={t:"T",v:e},++o;break;case"B":case"b":if(t.charAt(o+1)==="1"||t.charAt(o+1)==="2"){if(u==null&&(u=dm(e,r,t.charAt(o+1)==="2"),u==null))return"";s[s.length]={t:"X",v:t.substr(o,2)},l=a,o+=2;break}case"M":case"D":case"Y":case"H":case"S":case"E":a=a.toLowerCase();case"m":case"d":case"y":case"h":case"s":case"e":case"g":if(e<0||u==null&&(u=dm(e,r),u==null))return"";for(i=a;++o<t.length&&t.charAt(o).toLowerCase()===a;)i+=a;a==="m"&&l.toLowerCase()==="h"&&(a="M"),a==="h"&&(a=h),s[s.length]={t:a,v:i},l=a;break;case"A":case"a":case"上":var m={t:a,v:a};if(u==null&&(u=dm(e,r)),t.substr(o,3).toUpperCase()==="A/P"?(u!=null&&(m.v=u.H>=12?"P":"A"),m.t="T",h="h",o+=3):t.substr(o,5).toUpperCase()==="AM/PM"?(u!=null&&(m.v=u.H>=12?"PM":"AM"),m.t="T",o+=5,h="h"):t.substr(o,5).toUpperCase()==="上午/下午"?(u!=null&&(m.v=u.H>
vendor: 5,862 bytes, line 795
795=12?"下午":"上午"),m.t="T",o+=5,h="h"):(m.t="t",++o),u==null&&m.t==="T")return"";s[s.length]=m,l=a;break;case"[":for(i=a;t.charAt(o++)!=="]"&&o<t.length;)i+=t.charAt(o);if(i.slice(-1)!=="]")throw'unterminated "[" block: |'+i+"|";if(i.match(OI)){if(u==null&&(u=dm(e,r),u==null))return"";s[s.length]={t:"Z",v:i.toLowerCase()},l=i.charAt(1)}else i.indexOf("$")>-1&&(i=(i.match(/\$([^-\[\]]*)/)||[])[1]||"$",PI(t)||(s[s.length]={t:"t",v:i}));break;case".":if(u!=null){for(i=a;++o<t.length&&(a=t.charAt(o))==="0";)i+=a;s[s.length]={t:"s",v:i};break}case"0":case"#":for(i=a;++o<t.length&&"0#?.,E+-%".indexOf(a=t.charAt(o))>-1;)i+=a;s[s.length]={t:"n",v:i};break;case"?":for(i=a;t.charAt(++o)===a;)i+=a;s[s.length]={t:a,v:i},l=a;break;case"*":++o,(t.charAt(o)==" "||t.charAt(o)=="*")&&++o;break;case"(":case")":s[s.length]={t:n===1?"t":a,v:a},++o;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":for(i=a;o<t.length&&"0123456789".indexOf(t.charAt(++o))>-1;)i+=t.charAt(o);s[s.length]={t:"D",v:i};break;case" ":s[s.length]={t:a,v:a},++o;break;case"$":s[s.length]={t:"t",v:"$"},++o;break;default:if(",$-+/():!^&'~{}<>=€acfijklopqrtuvwxzP".indexOf(a)===-1)throw new Error("unrecognized character "+a+" in "+t);s[s.length]={t:"t",v:a},++o;break}var x=0,v=0,y;for(o=s.length-1,l="t";o>=0;--o)switch(s[o].t){case"h":case"H":s[o].t=h,l="h",x<1&&(x=1);break;case"s":(y=s[o].v.match(/\.0+$/))&&(v=Math.max(v,y[0].length-1)),x<3&&(x=3);case"d":case"y":case"M":case"e":l=s[o].t;break;case"m":l==="s"&&(s[o].t="M",x<2&&(x=2));break;case"X":break;case"Z":x<1&&s[o].v.match(/[Hh]/)&&(x=1),x<2&&s[o].v.match(/[Mm]/)&&(x=2),x<3&&s[o].v.match(/[Ss]/)&&(x=3)}switch(x){case 0:break;case 1:u.u>=.5&&(u.u=0,++u.S),u.S>=60&&(u.S=0,++u.M),u.M>=60&&(u.M=0,++u.H);break;case 2:u.u>=.5&&(u.u=0,++u.S),u.S>=60&&(u.S=0,++u.M);break}var b="",S;for(o=0;o<s.length;++o)switch(s[o].t){case"t":case"T":case" ":case"D":break;case"X":s[o].v="",s[o].t=";";break;case"d":case"m":case"y":case"h":case"H":case"M":case"s":case"e":case"b":case"Z":s[o].v=sre(s[o].t.charCodeAt(0),s[o].v,u,v),s[o].t="t";break;case"n":case"?":for(S=o+1;s[S]!=null&&((a=s[S].t)==="?"||a==="D"||(a===" "||a==="t")&&s[S+1]!=null&&(s[S+1].t==="?"||s[S+1].t==="t"&&s[S+1].v==="/")||s[o].t==="("&&(a===" "||a==="n"||a===")")||a==="t"&&(s[S].v==="/"||s[S].v===" "&&s[S+1]!=null&&s[S+1].t=="?"));)s[o].v+=s[S].v,s[S]={v:"",t:";"},++S;b+=s[o].v,o=S-1;break;case"G":s[o].t="t",s[o].v=bb(e,r);break}var E="",C,_;if(b.length>0){b.charCodeAt(0)==40?(C=e<0&&b.charCodeAt(0)===45?-e:e,_=Po("n",b,C)):(C=e<0&&n>1?-e:e,_=Po("n",b,C),C<0&&s[0]&&s[0].t=="t"&&(_=_.substr(1),s[0].v="-"+s[0].v)),S=_.length-1;var A=s.length;for(o=0;o<s.length;++o)if(s[o]!=null&&s[o].t!="t"&&s[o].v.indexOf(".")>-1){A=o;break}var N=s.length;if(A===s.length&&_.indexOf("E")===-1){for(o=s.length-1;o>=0;--o)s[o]==null||"n?".indexOf(s[o].t)===-1||(S>=s[o].v.length-1?(S-=s[o].v.length,s[o].v=_.substr(S+1,s[o].v.length)):S<0?s[o].v="":(s[o].v=_.substr(0,S+1),S=-1),s[o].t="t",N=o);S>=0&&N<s.length&&(s[N].v=_.substr(0,S+1)+s[N].v)}else if(A!==s.length&&_.indexOf("E")===-1){for(S=_.indexOf(".")-1,o=A;o>=0;--o)if(!(s[o]==null||"n?".indexOf(s[o].t)===-1)){for(d=s[o].v.indexOf(".")>-1&&o===A?s[o].v.indexOf(".")-1:s[o].v.length-1,E=s[o].v.substr(d+1);d>=0;--d)S>=0&&(s[o].v.charAt(d)==="0"||s[o].v.charAt(d)==="#")&&(E=_.charAt(S--)+E);s[o].v=E,s[o].t="t",N=o}for(S>=0&&N<s.length&&(s[N].v=_.substr(0,S+1)+s[N].v),S=_.indexOf(".")+1,o=A;o<s.length;++o)if(!(s[o]==null||"n?(".indexOf(s[o].t)===-1&&o!==A)){for(d=s[o].v.indexOf(".")>-1&&o===A?s[o].v.indexOf(".")+1:0,E=s[o].v.substr(0,d);d<s[o].v.length;++d)S<_.length&&(E+=_.charAt(S++));s[o].v=E,s[o].t="t",N=o}}}for(o=0;o<s.length;++o)s[o]!=null&&"n?".indexOf(s[o].t)>-1&&(C=n>1&&e<0&&o>0&&s[o-1].v==="-"?-e:e,s[o].v=Po(s[o].t,s[o].v,C),s[o].t="t");var D="";for(o=0;o!==s.length;++o)s[o]!=null&&(D+=s[o].v);return D}var hN=/\[(=|>[=]?|<[>=]?)(-?\d+(?:\.\d*)?)\]/;function pN(t,e){if(e==null)return!1;var r=parseFloat(e[2]);switch(e[1]){case"=":if(t==r)return!0;break;case">":if(t>r)return!0;break;case"<":if(t<r)return!0;break;case"<>":if(t!=r)return!0;break;case">=":if(t>=r)return!0;break;case"<=":if(t<=r)return!0;break}return!1}function mre(t,e){var r=hre(t),n=r.length,s=r[n-1].indexOf("@");if(n<4&&s>-1&&--n,r.length>4)throw new Error("cannot find right format for |"+r.join("|")+"|");if(typeof e!="number")return[4,r.length===4||s>-1?r[r.length-1]:"@"];switch(r.length){case 1:r=s>-1?["General","General","General",r[0]]:[r[0],r[0],r[0],"@"];break;case 2:r=s>-1?[r[0],r[0],r[0],r[1]]:[r[0],r[1],r[0],"@"];break;case 3:r=s>-1?[r[0],r[1],r[0],r[2]]:[r[0],r[1],r[2],"@"];break}var i=e>0?r[0]:e<0?r[1]:r[2];if(r[0].indexOf("[")===-1&&r[1].indexOf("[")===-1)return[n,i];if(r[0].match(/\[[=<>]/)!=null||r[1].match(/\[[=<>]/)!=null){var o=r[0].match(hN),a=r[1].match(hN);return pN(e,o)?[n,r[0]]:pN(e,a)?[n,r[1]]:[n,r[o!=null&&a!=null?2:1]]}return[n,i]}function sl(t,e,r){r==null&&(r={});var n="";switch(typeof t){case"string":t=="m/d/yy"&&r.dateNF?n=r.dateNF:n=t;break;case"number":t==14&&r.dateNF?n=r.dateNF:n=(r.table!=null?r.table:gr)[t],n==null&&(n=r.table&&r.table[uN[t]]||gr[uN[t]]),n==null&&(n=Yte[t]||"General");break}if(kg(n,0))return bb(e,r);e instanceof Date&&(e=EI(e,r.date1904));var s=mre(n,e);if(kg(s[1]))return bb(e,r);if(e===!0)e="TRUE";else if(e===!1)e="FALSE";else if(e===""||e==null)return"";return pre(s[1],e,r,s[0])}function MI(t,e){if(typeof e!="number"){e=+e||-1;for(var r=0;r<392;++r){if(gr[r]==null){e<0&&(e=r);continue}if(gr[r]==t){e=r;break}}e<0&&(e=391)}return gr[e]=t,e}function sv(t){for(var e=0;e!=392;++e)t[e]!==void 0&&MI(t[e],e)}function iv(){gr=Xte()}var II=/[dD]+|[mM]+|[yYeE]+|[Hh]+|[Ss]+/g;function gre(t){var e=typeof t=="number"?gr[t]:t;return e=e.replace(II,"(\\d+)"),new RegExp("^"+e+"$")}function xre(t,e,r){var n=-1,s=-1,i=-1,o=-1,a=-1,l=-1;
vendor: 5,802 bytes, line 795
795(e.match(II)||[]).forEach(function(f,h){var p=parseInt(r[h+1],10);switch(f.toLowerCase().charAt(0)){case"y":n=p;break;case"d":i=p;break;case"h":o=p;break;case"s":l=p;break;case"m":o>=0?a=p:s=p;break}}),l>=0&&a==-1&&s>=0&&(a=s,s=-1);var u=(""+(n>=0?n:new Date().getFullYear())).slice(-4)+"-"+("00"+(s>=1?s:1)).slice(-2)+"-"+("00"+(i>=1?i:1)).slice(-2);u.length==7&&(u="0"+u),u.length==8&&(u="20"+u);var d=("00"+(o>=0?o:0)).slice(-2)+":"+("00"+(a>=0?a:0)).slice(-2)+":"+("00"+(l>=0?l:0)).slice(-2);return o==-1&&a==-1&&l==-1?u:n==-1&&s==-1&&i==-1?d:u+"T"+d}var vre=function(){var t={};t.version="1.2.0";function e(){for(var _=0,A=new Array(256),N=0;N!=256;++N)_=N,_=_&1?-306674912^_>>>1:_>>>1,_=_&1?-306674912^_>>>1:_>>>1,_=_&1?-306674912^_>>>1:_>>>1,_=_&1?-306674912^_>>>1:_>>>1,_=_&1?-306674912^_>>>1:_>>>1,_=_&1?-306674912^_>>>1:_>>>1,_=_&1?-306674912^_>>>1:_>>>1,_=_&1?-306674912^_>>>1:_>>>1,A[N]=_;return typeof Int32Array<"u"?new Int32Array(A):A}var r=e();function n(_){var A=0,N=0,D=0,V=typeof Int32Array<"u"?new Int32Array(4096):new Array(4096);for(D=0;D!=256;++D)V[D]=_[D];for(D=0;D!=256;++D)for(N=_[D],A=256+D;A<4096;A+=256)N=V[A]=N>>>8^_[N&255];var H=[];for(D=1;D!=16;++D)H[D-1]=typeof Int32Array<"u"?V.subarray(D*256,D*256+256):V.slice(D*256,D*256+256);return H}var s=n(r),i=s[0],o=s[1],a=s[2],l=s[3],u=s[4],d=s[5],f=s[6],h=s[7],p=s[8],g=s[9],m=s[10],x=s[11],v=s[12],y=s[13],b=s[14];function S(_,A){for(var N=A^-1,D=0,V=_.length;D<V;)N=N>>>8^r[(N^_.charCodeAt(D++))&255];return~N}function E(_,A){for(var N=A^-1,D=_.length-15,V=0;V<D;)N=b[_[V++]^N&255]^y[_[V++]^N>>8&255]^v[_[V++]^N>>16&255]^x[_[V++]^N>>>24]^m[_[V++]]^g[_[V++]]^p[_[V++]]^h[_[V++]]^f[_[V++]]^d[_[V++]]^u[_[V++]]^l[_[V++]]^a[_[V++]]^o[_[V++]]^i[_[V++]]^r[_[V++]];for(D+=15;V<D;)N=N>>>8^r[(N^_[V++])&255];return~N}function C(_,A){for(var N=A^-1,D=0,V=_.length,H=0,U=0;D<V;)H=_.charCodeAt(D++),H<128?N=N>>>8^r[(N^H)&255]:H<2048?(N=N>>>8^r[(N^(192|H>>6&31))&255],N=N>>>8^r[(N^(128|H&63))&255]):H>=55296&&H<57344?(H=(H&1023)+64,U=_.charCodeAt(D++)&1023,N=N>>>8^r[(N^(240|H>>8&7))&255],N=N>>>8^r[(N^(128|H>>2&63))&255],N=N>>>8^r[(N^(128|U>>6&15|(H&3)<<4))&255],N=N>>>8^r[(N^(128|U&63))&255]):(N=N>>>8^r[(N^(224|H>>12&15))&255],N=N>>>8^r[(N^(128|H>>6&63))&255],N=N>>>8^r[(N^(128|H&63))&255]);return~N}return t.table=r,t.bstr=S,t.buf=E,t.str=C,t}(),Bt=function(){var e={};e.version="1.2.1";function r(T,M){for(var j=T.split("/"),R=M.split("/"),P=0,L=0,Q=Math.min(j.length,R.length);P<Q;++P){if(L=j[P].length-R[P].length)return L;if(j[P]!=R[P])return j[P]<R[P]?-1:1}return j.length-R.length}function n(T){if(T.charAt(T.length-1)=="/")return T.slice(0,-1).indexOf("/")===-1?T:n(T.slice(0,-1));var M=T.lastIndexOf("/");return M===-1?T:T.slice(0,M+1)}function s(T){if(T.charAt(T.length-1)=="/")return s(T.slice(0,-1));var M=T.lastIndexOf("/");return M===-1?T:T.slice(M+1)}function i(T,M){typeof M=="string"&&(M=new Date(M));var j=M.getHours();j=j<<6|M.getMinutes(),j=j<<5|M.getSeconds()>>>1,T.write_shift(2,j);var R=M.getFullYear()-1980;R=R<<4|M.getMonth()+1,R=R<<5|M.getDate(),T.write_shift(2,R)}function o(T){var M=T.read_shift(2)&65535,j=T.read_shift(2)&65535,R=new Date,P=j&31;j>>>=5;var L=j&15;j>>>=4,R.setMilliseconds(0),R.setFullYear(j+1980),R.setMonth(L-1),R.setDate(P);var Q=M&31;M>>>=5;var oe=M&63;return M>>>=6,R.setHours(M),R.setMinutes(oe),R.setSeconds(Q<<1),R}function a(T){ms(T,0);for(var M={},j=0;T.l<=T.length-4;){var R=T.read_shift(2),P=T.read_shift(2),L=T.l+P,Q={};switch(R){case 21589:j=T.read_shift(1),j&1&&(Q.mtime=T.read_shift(4)),P>5&&(j&2&&(Q.atime=T.read_shift(4)),j&4&&(Q.ctime=T.read_shift(4))),Q.mtime&&(Q.mt=new Date(Q.mtime*1e3));break}T.l=L,M[R]=Q}return M}var l;function u(){return l||(l={})}function d(T,M){if(T[0]==80&&T[1]==75)return Pr(T,M);if((T[0]|32)==109&&(T[1]|32)==105)return jn(T,M);if(T.length<512)throw new Error("CFB file size "+T.length+" < 512");var j=3,R=512,P=0,L=0,Q=0,oe=0,Y=0,J=[],Z=T.slice(0,512);ms(Z,0);var ge=f(Z);switch(j=ge[0],j){case 3:R=512;break;case 4:R=4096;break;case 0:if(ge[1]==0)return Pr(T,M);default:throw new Error("Major Version: Expected 3 or 4 saw "+j)}R!==512&&(Z=T.slice(0,R),ms(Z,28));var ke=T.slice(0,R);h(Z,j);var Ie=Z.read_shift(4,"i");if(j===3&&Ie!==0)throw new Error("# Directory Sectors: Expected 0 saw "+Ie);Z.l+=4,Q=Z.read_shift(4,"i"),Z.l+=4,Z.chk("00100000","Mini Stream Cutoff Size: "),oe=Z.read_shift(4,"i"),P=Z.read_shift(4,"i"),Y=Z.read_shift(4,"i"),L=Z.read_shift(4,"i");for(var be=-1,Oe=0;Oe<109&&(be=Z.read_shift(4,"i"),!(be<0));++Oe)J[Oe]=be;var Ye=p(T,R);x(Y,L,Ye,R,J);var Ft=y(Ye,Q,J,R);Ft[Q].name="!Directory",P>0&&oe!==U&&(Ft[oe].name="!MiniFAT"),Ft[J[0]].name="!FAT",Ft.fat_addrs=J,Ft.ssz=R;var jt={},Re=[],F=[],le=[];b(Q,Ft,Ye,Re,P,jt,F,oe),g(F,le,Re),Re.shift();var Ne={FileIndex:F,FullPaths:le};return M&&M.raw&&(Ne.raw={header:ke,sectors:Ye}),Ne}function f(T){if(T[T.l]==80&&T[T.l+1]==75)return[0,0];T.chk(K,"Header Signature: "),T.l+=16;var M=T.read_shift(2,"u");return[T.read_shift(2,"u"),M]}function h(T,M){var j=9;switch(T.l+=2,j=T.read_shift(2)){case 9:if(M!=3)throw new Error("Sector Shift: Expected 9 saw "+j);break;case 12:if(M!=4)throw new Error("Sector Shift: Expected 12 saw "+j);break;default:throw new Error("Sector Shift: Expected 9 or 12 saw "+j)}T.chk("0600","Mini Sector Shift: "),T.chk("000000000000","Reserved: ")}function p(T,M){for(var j=Math.ceil(T.length/M)-1,R=[],P=1;P<j;++P)R[P-1]=T.slice(P*M,(P+1)*M);return R[j-1]=T.slice(j*M),R}function g(T,M,j){for(var R=0,P=0,L=0,Q=0,oe=0,Y=j.length,J=[],Z=[];R<Y;++R)J[R]=Z[R]=R,M[R]=j[R];for(;oe<Z.length;++oe)R=Z[oe],P=T[R].L,L=T[R].R,Q=T[R].C,J[R]===R&&(P!==-1&&J[P]!==P&&(J[R]=J[P]),L!==-1&&J[L]!==L&&(J[R]=J[L])),Q!==-1&&(J[Q]=R),P!==-1&&R!=J[R]&&(J[P]=J[R],Z.lastIndexOf(P)<oe&&Z.push(P)),L!==-1&&R!=J[R]&&(J[L]=J[R],Z.lastIndexOf(L)<oe&&Z.push(L));for(R=1;R<Y;
vendor: 5,889 bytes, line 795
795++R)J[R]===R&&(L!==-1&&J[L]!==L?J[R]=J[L]:P!==-1&&J[P]!==P&&(J[R]=J[P]));for(R=1;R<Y;++R)if(T[R].type!==0){if(oe=R,oe!=J[oe])do oe=J[oe],M[R]=M[oe]+"/"+M[R];while(oe!==0&&J[oe]!==-1&&oe!=J[oe]);J[R]=-1}for(M[0]+="/",R=1;R<Y;++R)T[R].type!==2&&(M[R]+="/")}function m(T,M,j){for(var R=T.start,P=T.size,L=[],Q=R;j&&P>0&&Q>=0;)L.push(M.slice(Q*H,Q*H+H)),P-=H,Q=Cl(j,Q*4);return L.length===0?ie(0):cn(L).slice(0,T.size)}function x(T,M,j,R,P){var L=U;if(T===U){if(M!==0)throw new Error("DIFAT chain shorter than expected")}else if(T!==-1){var Q=j[T],oe=(R>>>2)-1;if(!Q)return;for(var Y=0;Y<oe&&(L=Cl(Q,Y*4))!==U;++Y)P.push(L);x(Cl(Q,R-4),M-1,j,R,P)}}function v(T,M,j,R,P){var L=[],Q=[];P||(P=[]);var oe=R-1,Y=0,J=0;for(Y=M;Y>=0;){P[Y]=!0,L[L.length]=Y,Q.push(T[Y]);var Z=j[Math.floor(Y*4/R)];if(J=Y*4&oe,R<4+J)throw new Error("FAT boundary crossed: "+Y+" 4 "+R);if(!T[Z])break;Y=Cl(T[Z],J)}return{nodes:L,data:SN([Q])}}function y(T,M,j,R){var P=T.length,L=[],Q=[],oe=[],Y=[],J=R-1,Z=0,ge=0,ke=0,Ie=0;for(Z=0;Z<P;++Z)if(oe=[],ke=Z+M,ke>=P&&(ke-=P),!Q[ke]){Y=[];var be=[];for(ge=ke;ge>=0;){be[ge]=!0,Q[ge]=!0,oe[oe.length]=ge,Y.push(T[ge]);var Oe=j[Math.floor(ge*4/R)];if(Ie=ge*4&J,R<4+Ie)throw new Error("FAT boundary crossed: "+ge+" 4 "+R);if(!T[Oe]||(ge=Cl(T[Oe],Ie),be[ge]))break}L[ke]={nodes:oe,data:SN([Y])}}return L}function b(T,M,j,R,P,L,Q,oe){for(var Y=0,J=R.length?2:0,Z=M[T].data,ge=0,ke=0,Ie;ge<Z.length;ge+=128){var be=Z.slice(ge,ge+128);ms(be,64),ke=be.read_shift(2),Ie=f_(be,0,ke-J),R.push(Ie);var Oe={name:Ie,type:be.read_shift(1),color:be.read_shift(1),L:be.read_shift(4,"i"),R:be.read_shift(4,"i"),C:be.read_shift(4,"i"),clsid:be.read_shift(16),state:be.read_shift(4,"i"),start:0,size:0},Ye=be.read_shift(2)+be.read_shift(2)+be.read_shift(2)+be.read_shift(2);Ye!==0&&(Oe.ct=S(be,be.l-8));var Ft=be.read_shift(2)+be.read_shift(2)+be.read_shift(2)+be.read_shift(2);Ft!==0&&(Oe.mt=S(be,be.l-8)),Oe.start=be.read_shift(4,"i"),Oe.size=be.read_shift(4,"i"),Oe.size<0&&Oe.start<0&&(Oe.size=Oe.type=0,Oe.start=U,Oe.name=""),Oe.type===5?(Y=Oe.start,P>0&&Y!==U&&(M[Y].name="!StreamData")):Oe.size>=4096?(Oe.storage="fat",M[Oe.start]===void 0&&(M[Oe.start]=v(j,Oe.start,M.fat_addrs,M.ssz)),M[Oe.start].name=Oe.name,Oe.content=M[Oe.start].data.slice(0,Oe.size)):(Oe.storage="minifat",Oe.size<0?Oe.size=0:Y!==U&&Oe.start!==U&&M[Y]&&(Oe.content=m(Oe,M[Y].data,(M[oe]||{}).data))),Oe.content&&ms(Oe.content,0),L[Ie]=Oe,Q.push(Oe)}}function S(T,M){return new Date((vs(T,M+4)/1e7*Math.pow(2,32)+vs(T,M)/1e7-11644473600)*1e3)}function E(T,M){return u(),d(l.readFileSync(T),M)}function C(T,M){var j=M&&M.type;switch(j||Nt&&Buffer.isBuffer(T)&&(j="buffer"),j||"base64"){case"file":return E(T,M);case"base64":return d(Ti(Vo(T)),M);case"binary":return d(Ti(T),M)}return d(T,M)}function _(T,M){var j=M||{},R=j.root||"Root Entry";if(T.FullPaths||(T.FullPaths=[]),T.FileIndex||(T.FileIndex=[]),T.FullPaths.length!==T.FileIndex.length)throw new Error("inconsistent CFB structure");T.FullPaths.length===0&&(T.FullPaths[0]=R+"/",T.FileIndex[0]={name:R,type:5}),j.CLSID&&(T.FileIndex[0].clsid=j.CLSID),A(T)}function A(T){var M="�Sh33tJ5";if(!Bt.find(T,"/"+M)){var j=ie(4);j[0]=55,j[1]=j[3]=50,j[2]=54,T.FileIndex.push({name:M,type:2,content:j,size:4,L:69,R:69,C:69}),T.FullPaths.push(T.FullPaths[0]+M),N(T)}}function N(T,M){_(T);for(var j=!1,R=!1,P=T.FullPaths.length-1;P>=0;--P){var L=T.FileIndex[P];switch(L.type){case 0:R?j=!0:(T.FileIndex.pop(),T.FullPaths.pop());break;case 1:case 2:case 5:R=!0,isNaN(L.R*L.L*L.C)&&(j=!0),L.R>-1&&L.L>-1&&L.R==L.L&&(j=!0);break;default:j=!0;break}}if(!(!j&&!M)){var Q=new Date(1987,1,19),oe=0,Y=Object.create?Object.create(null):{},J=[];for(P=0;P<T.FullPaths.length;++P)Y[T.FullPaths[P]]=!0,T.FileIndex[P].type!==0&&J.push([T.FullPaths[P],T.FileIndex[P]]);for(P=0;P<J.length;++P){var Z=n(J[P][0]);R=Y[Z],R||(J.push([Z,{name:s(Z).replace("/",""),type:1,clsid:se,ct:Q,mt:Q,content:null}]),Y[Z]=!0)}for(J.sort(function(Ie,be){return r(Ie[0],be[0])}),T.FullPaths=[],T.FileIndex=[],P=0;P<J.length;++P)T.FullPaths[P]=J[P][0],T.FileIndex[P]=J[P][1];for(P=0;P<J.length;++P){var ge=T.FileIndex[P],ke=T.FullPaths[P];if(ge.name=s(ke).replace("/",""),ge.L=ge.R=ge.C=-(ge.color=1),ge.size=ge.content?ge.content.length:0,ge.start=0,ge.clsid=ge.clsid||se,P===0)ge.C=J.length>1?1:-1,ge.size=0,ge.type=5;else if(ke.slice(-1)=="/"){for(oe=P+1;oe<J.length&&n(T.FullPaths[oe])!=ke;++oe);for(ge.C=oe>=J.length?-1:oe,oe=P+1;oe<J.length&&n(T.FullPaths[oe])!=n(ke);++oe);ge.R=oe>=J.length?-1:oe,ge.type=1}else n(T.FullPaths[P+1]||"")==n(ke)&&(ge.R=P+1),ge.type=2}}}function D(T,M){var j=M||{};if(j.fileType=="mad")return Is(T,j);switch(N(T),j.fileType){case"zip":return po(T,j)}var R=function(Ie){for(var be=0,Oe=0,Ye=0;Ye<Ie.FileIndex.length;++Ye){var Ft=Ie.FileIndex[Ye];if(Ft.content){var jt=Ft.content.length;jt>0&&(jt<4096?be+=jt+63>>6:Oe+=jt+511>>9)}}for(var Re=Ie.FullPaths.length+3>>2,F=be+7>>3,le=be+127>>7,Ne=F+Oe+Re+le,ft=Ne+127>>7,et=ft<=109?0:Math.ceil((ft-109)/127);Ne+ft+et+127>>7>ft;)et=++ft<=109?0:Math.ceil((ft-109)/127);var gt=[1,et,ft,le,Re,Oe,be,0];return Ie.FileIndex[0].size=be<<6,gt[7]=(Ie.FileIndex[0].start=gt[0]+gt[1]+gt[2]+gt[3]+gt[4]+gt[5])+(gt[6]+7>>3),gt}(T),P=ie(R[7]<<9),L=0,Q=0;{for(L=0;L<8;++L)P.write_shift(1,te[L]);for(L=0;L<8;++L)P.write_shift(2,0);for(P.write_shift(2,62),P.write_shift(2,3),P.write_shift(2,65534),P.write_shift(2,9),P.write_shift(2,6),L=0;L<3;++L)P.write_shift(2,0);for(P.write_shift(4,0),P.write_shift(4,R[2]),P.write_shift(4,R[0]+R[1]+R[2]+R[3]-1),P.write_shift(4,0),P.write_shift(4,4096),P.write_shift(4,R[3]?R[0]+R[1]+R[2]-1:U),P.write_shift(4,R[3]),P.write_shift(-4,R[1]?R[0]-1:U),P.write_shift(4,R[1]),L=0;L<109;++L)P.write_shift(-4,L<R[2]?R[1]+L:-1)}if(R[1])for(Q=0;Q<R[1];++Q){for(;L<236+Q*127;++L)P.write_shift(-4,L<R[2]?R[1]+L:-1);P.write_shift(-4,Q===R[1]-1?U:Q+1)}var oe=function(Ie){for(Q+=Ie;L<Q-1;++L)P.write_shift(-4,L+1);
vendor: 15,729 bytes, lines 795-803
795Ie&&(++L,P.write_shift(-4,U))};for(Q=L=0,Q+=R[1];L<Q;++L)P.write_shift(-4,he.DIFSECT);for(Q+=R[2];L<Q;++L)P.write_shift(-4,he.FATSECT);oe(R[3]),oe(R[4]);for(var Y=0,J=0,Z=T.FileIndex[0];Y<T.FileIndex.length;++Y)Z=T.FileIndex[Y],Z.content&&(J=Z.content.length,!(J<4096)&&(Z.start=Q,oe(J+511>>9)));for(oe(R[6]+7>>3);P.l&511;)P.write_shift(-4,he.ENDOFCHAIN);for(Q=L=0,Y=0;Y<T.FileIndex.length;++Y)Z=T.FileIndex[Y],Z.content&&(J=Z.content.length,!(!J||J>=4096)&&(Z.start=Q,oe(J+63>>6)));for(;P.l&511;)P.write_shift(-4,he.ENDOFCHAIN);for(L=0;L<R[4]<<2;++L){var ge=T.FullPaths[L];if(!ge||ge.length===0){for(Y=0;Y<17;++Y)P.write_shift(4,0);for(Y=0;Y<3;++Y)P.write_shift(4,-1);for(Y=0;Y<12;++Y)P.write_shift(4,0);continue}Z=T.FileIndex[L],L===0&&(Z.start=Z.size?Z.start-1:U);var ke=L===0&&j.root||Z.name;if(J=2*(ke.length+1),P.write_shift(64,ke,"utf16le"),P.write_shift(2,J),P.write_shift(1,Z.type),P.write_shift(1,Z.color),P.write_shift(-4,Z.L),P.write_shift(-4,Z.R),P.write_shift(-4,Z.C),Z.clsid)P.write_shift(16,Z.clsid,"hex");else for(Y=0;Y<4;++Y)P.write_shift(4,0);P.write_shift(4,Z.state||0),P.write_shift(4,0),P.write_shift(4,0),P.write_shift(4,0),P.write_shift(4,0),P.write_shift(4,Z.start),P.write_shift(4,Z.size),P.write_shift(4,0)}for(L=1;L<T.FileIndex.length;++L)if(Z=T.FileIndex[L],Z.size>=4096)if(P.l=Z.start+1<<9,Nt&&Buffer.isBuffer(Z.content))Z.content.copy(P,P.l,0,Z.size),P.l+=Z.size+511&-512;else{for(Y=0;Y<Z.size;++Y)P.write_shift(1,Z.content[Y]);for(;Y&511;++Y)P.write_shift(1,0)}for(L=1;L<T.FileIndex.length;++L)if(Z=T.FileIndex[L],Z.size>0&&Z.size<4096)if(Nt&&Buffer.isBuffer(Z.content))Z.content.copy(P,P.l,0,Z.size),P.l+=Z.size+63&-64;else{for(Y=0;Y<Z.size;++Y)P.write_shift(1,Z.content[Y]);for(;Y&63;++Y)P.write_shift(1,0)}if(Nt)P.l=P.length;else for(;P.l<P.length;)P.write_shift(1,0);return P}function V(T,M){var j=T.FullPaths.map(function(Y){return Y.toUpperCase()}),R=j.map(function(Y){var J=Y.split("/");return J[J.length-(Y.slice(-1)=="/"?2:1)]}),P=!1;M.charCodeAt(0)===47?(P=!0,M=j[0].slice(0,-1)+M):P=M.indexOf("/")!==-1;var L=M.toUpperCase(),Q=P===!0?j.indexOf(L):R.indexOf(L);if(Q!==-1)return T.FileIndex[Q];var oe=!L.match(um);for(L=L.replace(zf,""),oe&&(L=L.replace(um,"!")),Q=0;Q<j.length;++Q)if((oe?j[Q].replace(um,"!"):j[Q]).replace(zf,"")==L||(oe?R[Q].replace(um,"!"):R[Q]).replace(zf,"")==L)return T.FileIndex[Q];return null}var H=64,U=-2,K="d0cf11e0a1b11ae1",te=[208,207,17,224,161,177,26,225],se="00000000000000000000000000000000",he={MAXREGSECT:-6,DIFSECT:-4,FATSECT:-3,ENDOFCHAIN:U,FREESECT:-1,HEADER_SIGNATURE:K,HEADER_MINOR_VERSION:"3e00",MAXREGSID:-6,NOSTREAM:-1,HEADER_CLSID:se,EntryTypes:["unknown","storage","stream","lockbytes","property","root"]};function G(T,M,j){u();var R=D(T,j);l.writeFileSync(M,R)}function O(T){for(var M=new Array(T.length),j=0;j<T.length;++j)M[j]=String.fromCharCode(T[j]);return M.join("")}function W(T,M){var j=D(T,M);switch(M&&M.type||"buffer"){case"file":return u(),l.writeFileSync(M.filename,j),j;case"binary":return typeof j=="string"?j:O(j);case"base64":return Ph(typeof j=="string"?j:O(j));case"buffer":if(Nt)return Buffer.isBuffer(j)?j:Yo(j);case"array":return typeof j=="string"?Ti(j):j}return j}var ee;function k(T){try{var M=T.InflateRaw,j=new M;if(j._processChunk(new Uint8Array([3,0]),j._finishFlushFlag),j.bytesRead)ee=T;else throw new Error("zlib does not expose bytesRead")}catch(R){console.error("cannot use native zlib: "+(R.message||R))}}function z(T,M){if(!ee)return Xt(T,M);var j=ee.InflateRaw,R=new j,P=R._processChunk(T.slice(T.l),R._finishFlushFlag);return T.l+=R.bytesRead,P}function I(T){return ee?ee.deflateRawSync(T):Zr(T)}var B=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],q=[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],X=[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];function ae(T){var M=(T<<1|T<<11)&139536|(T<<5|T<<15)&558144;return(M>>16|M>>8|M)&255}for(var ce=typeof Uint8Array<"u",ne=ce?new Uint8Array(256):[],Ae=0;Ae<256;++Ae)ne[Ae]=ae(Ae);function je(T,M){var j=ne[T&255];return M<=8?j>>>8-M:(j=j<<8|ne[T>>8&255],M<=16?j>>>16-M:(j=j<<8|ne[T>>16&255],j>>>24-M))}function Xe(T,M){var j=M&7,R=M>>>3;return(T[R]|(j<=6?0:T[R+1]<<8))>>>j&3}function Ve(T,M){var j=M&7,R=M>>>3;return(T[R]|(j<=5?0:T[R+1]<<8))>>>j&7}function re(T,M){var j=M&7,R=M>>>3;return(T[R]|(j<=4?0:T[R+1]<<8))>>>j&15}function Se(T,M){var j=M&7,R=M>>>3;return(T[R]|(j<=3?0:T[R+1]<<8))>>>j&31}function ve(T,M){var j=M&7,R=M>>>3;return(T[R]|(j<=1?0:T[R+1]<<8))>>>j&127}function yt(T,M,j){var R=M&7,P=M>>>3,L=(1<<j)-1,Q=T[P]>>>R;return j<8-R||(Q|=T[P+1]<<8-R,j<16-R)||(Q|=T[P+2]<<16-R,j<24-R)||(Q|=T[P+3]<<24-R),Q&L}function mt(T,M,j){var R=M&7,P=M>>>3;return R<=5?T[P]|=(j&7)<<R:(T[P]|=j<<R&255,T[P+1]=(j&7)>>8-R),M+3}function Kt(T,M,j){var R=M&7,P=M>>>3;return j=(j&1)<<R,T[P]|=j,M+1}function sr(T,M,j){var R=M&7,P=M>>>3;return j<<=R,T[P]|=j&255,j>>>=8,T[P+1]=j,M+8}function Pe(T,M,j){var R=M&7,P=M>>>3;return j<<=R,T[P]|=j&255,j>>>=8,T[P+1]=j&255,T[P+2]=j>>>8,M+16}function qe(T,M){var j=T.length,R=2*j>M?2*j:M+5,P=0;if(j>=M)return T;if(Nt){var L=aN(R);if(T.copy)T.copy(L);else for(;P<T.length;++P)L[P]=T[P];return L}else if(ce){var Q=new Uint8Array(R);if(Q.set)Q.set(T);else for(;P<j;++P)Q[P]=T[P];return Q}return T.length=R,T}function rt(T){for(var M=new Array(T),j=0;j<T;++j)M[j]=0;return M}function At(T,M,j){var R=1,P=0,L=0,Q=0,oe=0,Y=T.length,J=ce?new Uint16Array(32):rt(32);for(L=0;L<32;++L)J[L]=0;for(L=Y;L<j;++L)T[L]=0;Y=T.length;var Z=ce?new Uint16Array(Y):rt(Y);for(L=0;L<Y;++L)J[P=T[L]]++,R<P&&(R=P),Z[L]=0;for(J[0]=0,L=1;L<=R;++L)J[L+16]=oe=oe+J[L-1]<<1;for(L=0;L<Y;++L)oe=T[L],oe!=0&&(Z[L]=J[oe+16]++);var ge=0;for(L=0;L<Y;++L)if(ge=T[L],ge!=0)for(oe=je(Z[L],R)>>R-ge,Q=(1<<R+4-ge)-1;Q>=0;--Q)M[oe|Q<<ge]=ge&15|L<<4;return R}var dt=ce?new Uint16Array(512):rt(512),ir=ce?new Uint16Array(32):rt(32);if(!ce){for(var Qr=0;Qr<512;++Qr)dt[Qr]=0;for(Qr=0;Qr<32;++Qr)ir[Qr]=0}(function(){for(var T=[],M=0;M<32;M++)T.push(5);At(T,ir,32);var j=[];for(M=0;M<=143;M++)j.push(8);for(;M<=255;M++)j.push(9);for(;M<=279;M++)j.push(7);for(;M<=287;M++)j.push(8);At(j,dt,288)})();var Xn=function(){for(var M=ce?new Uint8Array(32768):[],j=0,R=0;j<X.length-1;++j)for(;R<X[j+1];++R)M[R]=j;for(;R<32768;++R)M[R]=29;var P=ce?new Uint8Array(259):[];for(j=0,R=0;j<q.length-1;++j)for(;R<q[j+1];++R)P[R]=j;function L(oe,Y){for(var J=0;J<oe.length;){var Z=Math.min(65535,oe.length-J),ge=J+Z==oe.length;for(Y.write_shift(1,+ge),Y.write_shift(2,Z),Y.write_shift(2,~Z&65535);Z-- >0;)Y[Y.l++]=oe[J++]}return Y.l}function Q(oe,Y){for(var J=0,Z=0,ge=ce?new Uint16Array(32768):[];Z<oe.length;){var ke=Math.min(65535,oe.length-Z);if(ke<10){for(J=mt(Y,J,+(Z+ke==oe.length)),J&7&&(J+=8-(J&7)),Y.l=J/8|0,Y.write_shift(2,ke),Y.write_shift(2,~ke&65535);ke-- >0;)Y[Y.l++]=oe[Z++];J=Y.l*8;continue}J=mt(Y,J,+(Z+ke==oe.length)+2);for(var Ie=0;ke-- >0;){var be=oe[Z];Ie=(Ie<<5^be)&32767;var Oe=-1,Ye=0;if((Oe=ge[Ie])&&(Oe|=Z&-32768,Oe>Z&&(Oe-=32768),Oe<Z))for(;oe[Oe+Ye]==oe[Z+Ye]&&Ye<250;)++Ye;if(Ye>2){be=P[Ye],be<=22?J=sr(Y,J,ne[be+1]>>1)-1:(sr(Y,J,3),J+=5,sr(Y,J,ne[be-23]>>5),J+=3);var Ft=be<8?0:be-4>>2;Ft>0&&(Pe(Y,J,Ye-q[be]),J+=Ft),be=M[Z-Oe],J=sr(Y,J,ne[be]>>3),J-=3;var jt=be<4?0:be-2>>1;jt>0&&(Pe(Y,J,Z-Oe-X[be]),J+=jt);for(var Re=0;Re<Ye;++Re)ge[Ie]=Z&32767,Ie=(Ie<<5^oe[Z])&32767,++Z;ke-=Ye-1}else be<=143?be=be+48:J=Kt(Y,J,1),J=sr(Y,J,ne[be]),ge[Ie]=Z&32767,++Z}J=sr(Y,J,0)-1}return Y.l=(J+7)/8|0,Y.l}return function(Y,J){return Y.length<8?L(Y,J):Q(Y,J)}}();function Zr(T){var M=ie(50+Math.floor(T.length*1.1)),j=Xn(T,M);return M.slice(0,j)}var ds=ce?new Uint16Array(32768):rt(32768),Hr=ce?new Uint16Array(32768):rt(32768),fs=ce?new Uint16Array(128):rt(128),Yn=1,Me=1;function He(T,M){var j=Se(T,M)+257;M+=5;var R=Se(T,M)+1;M+=5;var P=re(T,M)+4;M+=4;for(var L=0,Q=ce?new Uint8Array(19):rt(19),oe=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],Y=1,J=ce?new Uint8Array(8):rt(8),Z=ce?new Uint8Array(8):rt(8),ge=Q.length,ke=0;ke<P;++ke)Q[B[ke]]=L=Ve(T,M),Y<L&&(Y=L),J[L]++,M+=3;var Ie=0;for(J[0]=0,ke=1;ke<=Y;++ke)Z[ke]=Ie=Ie+J[ke-1]<<1;for(ke=0;ke<ge;++ke)(Ie=Q[ke])!=0&&(oe[ke]=Z[Ie]++);var be=0;for(ke=0;ke<ge;++ke)if(be=Q[ke],be!=0){Ie=ne[oe[ke]]>>8-be;for(var Oe=(1<<7-be)-1;Oe>=0;--Oe)fs[Ie|Oe<<be]=be&7|ke<<3}var Ye=[];for(Y=1;Ye.length<j+R;)switch(Ie=fs[ve(T,M)],M+=Ie&7,Ie>>>=3){case 16:for(L=3+Xe(T,M),M+=2,Ie=Ye[Ye.length-1];L-- >0;)Ye.push(Ie);break;case 17:for(L=3+Ve(T,M),M+=3;L-- >0;)Ye.push(0);break;case 18:for(L=11+ve(T,M),M+=7;L-- >0;)Ye.push(0);break;default:Ye.push(Ie),Y<Ie&&(Y=Ie);break}var Ft=Ye.slice(0,j),jt=Ye.slice(j);for(ke=j;ke<286;++ke)Ft[ke]=0;for(ke=R;ke<30;++ke)jt[ke]=0;return Yn=At(Ft,ds,286),Me=At(jt,Hr,30),M}function at(T,M){if(T[0]==3&&!(T[1]&3))return[cc(M),2];for(var j=0,R=0,P=aN(M||1<<18),L=0,Q=P.length>>>0,oe=0,Y=0;!(R&1);){if(R=Ve(T,j),j+=3,R>>>1)R>>1==1?(oe=9,Y=5):(j=He(T,j),oe=Yn,Y=Me);else{j&7&&(j+=8-(j&7));var J=T[j>>>3]|T[(j>>>3)+1]<<8;if(j+=32,J>0)for(!M&&Q<L+J&&(P=qe(P,L+J),Q=P.length);J-- >0;)P[L++]=T[j>>>3],j+=8;continue}for(;;){!M&&Q<L+32767&&(P=qe(P,L+32767),Q=P.length);var Z=yt(T,j,oe),ge=R>>>1==1?dt[Z]:ds[Z];if(j+=ge&15,ge>>>=4,!(ge>>>8&255))P[L++]=ge;else{if(ge==256)break;ge-=257;var ke=ge<8?0:ge-4>>2;ke>5&&(ke=0);var Ie=L+q[ge];ke>0&&(Ie+=yt(T,j,ke),j+=ke),Z=yt(T,j,Y),ge=R>>>1==1?ir[Z]:Hr[Z],j+=ge&15,ge>>>=4;var be=ge<4?0:ge-2>>1,Oe=X[ge];for(be>0&&(Oe+=yt(T,j,be),j+=be),!M&&Q<Ie&&(P=qe(P,Ie+100),Q=P.length);L<Ie;)P[L]=P[L-Oe],++L}}}return M?[P,j+7>>>3]:[P.slice(0,L),j+7>>>3]}function Xt(T,M){var j=T.slice(T.l||0),R=at(j,M);return T.l+=R[1],R[0]}function Ms(T,M){if(T)typeof console<"u"&&console.error(M);else throw new Error(M)}function Pr(T,M){var j=T;ms(j,0);var R=[],P=[],L={FileIndex:R,FullPaths:P};_(L,{root:M.root});for(var Q=j.length-4;(j[Q]!=80||j[Q+1]!=75||j[Q+2]!=5||j[Q+3]!=6)&&Q>=0;)--Q;j.l=Q+4,j.l+=4;var oe=j.read_shift(2);j.l+=6;var Y=j.read_shift(4);for(j.l=Y,Q=0;Q<oe;++Q){j.l+=20;var J=j.read_shift(4),Z=j.read_shift(4),ge=j.read_shift(2),ke=j.read_shift(2),Ie=j.read_shift(2);j.l+=8;var be=j.read_shift(4),Oe=a(j.slice(j.l+ge,j.l+ge+ke));j.l+=ge+ke+Ie;var Ye=j.l;j.l=be+4,gn(j,J,Z,L,Oe),j.l=Ye}return L}function gn(T,M,j,R,P){T.l+=2;var L=T.read_shift(2),Q=T.read_shift(2),oe=o(T);if(L&8257)throw new Error("Unsupported ZIP encryption");for(var Y=T.read_shift(4),J=T.read_shift(4),Z=T.read_shift(4),ge=T.read_shift(2),ke=T.read_shift(2),Ie="",be=0;be<ge;++be)Ie+=String.fromCharCode(T[T.l++]);if(ke){var Oe=a(T.slice(T.l,T.l+ke));(Oe[21589]||{}).mt&&(oe=Oe[21589].mt),((P||{})[21589]||{}).mt&&(oe=P[21589].mt)}T.l+=ke;var Ye=T.slice(T.l,T.l+J);switch(Q){case 8:Ye=z(T,Z);break;case 0:break;default:throw new Error("Unsupported ZIP Compression method "+Q)}var Ft=!1;L&8&&(Y=T.read_shift(4),Y==134695760&&(Y=T.read_shift(4),Ft=!0),J=T.read_shift(4),Z=T.read_shift(4)),J!=M&&Ms(Ft,"Bad compressed size: "+M+" != "+J),Z!=j&&Ms(Ft,"Bad uncompressed size: "+j+" != "+Z),or(R,Ie,Ye,{unsafe:!0,mt:oe})}function po(T,M){var j=M||{},R=[],P=[],L=ie(1),Q=j.compression?8:0,oe=0,Y=0,J=0,Z=0,ge=0,ke=T.FullPaths[0],Ie=ke,be=T.FileIndex[0],Oe=[],Ye=0;for(Y=1;Y<T.FullPaths.length;++Y)if(Ie=T.FullPaths[Y].slice(ke.length),be=T.FileIndex[Y],!(!be.size||!be.content||Ie=="�Sh33tJ5")){var Ft=Z,jt=ie(Ie.length);for(J=0;J<Ie.length;++J)jt.write_shift(1,Ie.charCodeAt(J)&127);jt=jt.slice(0,jt.l),Oe[ge]=vre.buf(be.content,0);var Re=be.content;Q==8&&(Re=I(Re)),L=ie(30),L.write_shift(4,67324752),L.write_shift(2,20),L.write_shift(2,oe),L.write_shift(2,Q),be.mt?i(L,be.mt):L.write_shift(4,0),L.write_shift(-4,Oe[ge]),L.write_shift(4,Re.length),L.write_shift(4,be.content.length),L.write_shift(2,jt.length),L.write_shift(2,0),Z+=L.length,R.push(L),Z+=jt.length,R.push(jt),Z+=Re.length,R.push(Re),L=ie(46),L.write_shift(4,33639248),L.write_shift(2,0),L.write_shift(2,20),L.write_shift(2,oe),L.write_shift(2,Q),L.write_shift(4,0),L.write_shift(-4,Oe[ge]),L.write_shift(4,Re.length),L.write_shift(4,be.content.length),L.write_shift(2,jt.length),L.write_shift(2,0),L.write_shift(2,0),L.write_shift(2,0),L.write_shift(2,0),L.write_shift(4,0),L.write_shift(4,Ft),Ye+=L.l,P.push(L),Ye+=jt.length,P.push(jt),++ge}return L=ie(22),L.write_shift(4,101010256),L.write_shift(2,0),L.write_shift(2,0),L.write_shift(2,ge),L.write_shift(2,ge),L.write_shift(4,Ye),L.write_shift(4,Z),L.write_shift(2,0),cn([cn(R),cn(P),L])}var en={htm:"text/html",xml:"text/xml",gif:"image/gif",jpg:"image/jpeg",png:"image/png",mso:"application/x-mso",thmx:"application/vnd.ms-officetheme",sh33tj5:"application/octet-stream"};function Md(T,M){if(T.ctype)return T.ctype;var j=T.name||"",R=j.match(/\.([^\.]+)$/);return R&&en[R[1]]||M&&(R=(j=M).match(/[\.\\]([^\.\\])+$/),R&&en[R[1]])?en[R[1]]:"application/octet-stream"}function Ge(T){for(var M=Ph(T),j=[],R=0;R<M.length;R+=76)j.push(M.slice(R,R+76));return j.join(`\r
796`)+`\r
797`}function wt(T){var M=T.replace(/[\x00-\x08\x0B\x0C\x0E-\x1F\x7E-\xFF=]/g,function(J){var Z=J.charCodeAt(0).toString(16).toUpperCase();return"="+(Z.length==1?"0"+Z:Z)});M=M.replace(/ $/mg,"=20").replace(/\t$/mg,"=09"),M.charAt(0)==`
798`&&(M="=0D"+M.slice(1)),M=M.replace(/\r(?!\n)/mg,"=0D").replace(/\n\n/mg,`
799=0A`).replace(/([^\r\n])\n/mg,"$1=0A");for(var j=[],R=M.split(`\r
800`),P=0;P<R.length;++P){var L=R[P];if(L.length==0){j.push("");continue}for(var Q=0;Q<L.length;){var oe=76,Y=L.slice(Q,Q+oe);Y.charAt(oe-1)=="="?oe--:Y.charAt(oe-2)=="="?oe-=2:Y.charAt(oe-3)=="="&&(oe-=3),Y=L.slice(Q,Q+oe),Q+=oe,Q<L.length&&(Y+="="),j.push(Y)}}return j.join(`\r
801`)}function Lt(T){for(var M=[],j=0;j<T.length;++j){for(var R=T[j];j<=T.length&&R.charAt(R.length-1)=="=";)R=R.slice(0,R.length-1)+T[++j];M.push(R)}for(var P=0;P<M.length;++P)M[P]=M[P].replace(/[=][0-9A-Fa-f]{2}/g,function(L){return String.fromCharCode(parseInt(L.slice(1),16))});return Ti(M.join(`\r
802`))}function Mr(T,M,j){for(var R="",P="",L="",Q,oe=0;oe<10;++oe){var Y=M[oe];if(!Y||Y.match(/^\s*$/))break;var J=Y.match(/^(.*?):\s*([^\s].*)$/);if(J)switch(J[1].toLowerCase()){case"content-location":R=J[2].trim();break;case"content-type":L=J[2].trim();break;case"content-transfer-encoding":P=J[2].trim();break}}switch(++oe,P.toLowerCase()){case"base64":Q=Ti(Vo(M.slice(oe).join("")));break;case"quoted-printable":Q=Lt(M.slice(oe));break;default:throw new Error("Unsupported Content-Transfer-Encoding "+P)}var Z=or(T,R.slice(j.length),Q,{unsafe:!0});L&&(Z.ctype=L)}function jn(T,M){if(O(T.slice(0,13)).toLowerCase()!="mime-version:")throw new Error("Unsupported MAD header");var j=M&&M.root||"",R=(Nt&&Buffer.isBuffer(T)?T.toString("binary"):O(T)).split(`\r
803`),P=0,L="";for(P=0;P<R.length;++P)if(L=R[P],!!/^Content-Location:/i.test(L)&&(L=L.slice(L.indexOf("file")),j||(j=L.slice(0,L.lastIndexOf("/")+1)),L.slice(0,j.length)!=j))for(;j.length>0&&(j=j.slice(0,j.length-1),j=j.slice(0,j.lastIndexOf("/")+1),L.slice(0,j.length)!=j););var Q=(R[1]||"").match(/boundary="(.*?)"/);if(!Q)throw new Error("MAD cannot find boundary");var oe="--"+(Q[1]||""),Y=[],J=[],Z={FileIndex:Y,FullPaths:J};_(Z);var ge,ke=0;for(P=0;P<R.length;++P){var Ie=R[P];Ie!==oe&&Ie!==oe+"--"||(ke++&&Mr(Z,R.slice(ge,P),j),ge=P)}return Z}function Is(T,M){var j=M||{},R=j.boundary||"SheetJS";R="------="+R;for(var P=["MIME-Version: 1.0",'Content-Type: multipart/related; boundary="'+R.slice(2)+'"',"","",""],L=T.FullPaths[0],Q=L,oe=T.FileIndex[0],Y=1;Y<T.FullPaths.length;++Y)if(Q=T.FullPaths[Y].slice(L.length),oe=T.FileIndex[Y],!(!oe.size||!oe.content||Q=="�Sh33tJ5")){Q=Q.replace(/[\x00-\x08\x0B\x0C\x0E-\x1F\x7E-\xFF]/g,function(Ye){return"_x"+Ye.charCodeAt(0).toString(16)+"_"}).replace(/[\u0080-\uFFFF]/g,function(Ye){return"_u"+Ye.charCodeAt(0).toString(16)+"_"});for(var J=oe.content,Z=Nt&&Buffer.isBuffer(J)?J.toString("binary"):O(J),ge=0,ke=Math.min(1024,Z.length),Ie=0,be=0;be<=ke;
vendor: 10,191 bytes, lines 803-807
803++be)(Ie=Z.charCodeAt(be))>=32&&Ie<128&&++ge;var Oe=ge>=ke*4/5;P.push(R),P.push("Content-Location: "+(j.root||"file:///C:/SheetJS/")+Q),P.push("Content-Transfer-Encoding: "+(Oe?"quoted-printable":"base64")),P.push("Content-Type: "+Md(oe,Q)),P.push(""),P.push(Oe?wt(Z):Ge(Z))}return P.push(R+`--\r
804`),P.join(`\r
805`)}function Ct(T){var M={};return _(M,T),M}function or(T,M,j,R){var P=R&&R.unsafe;P||_(T);var L=!P&&Bt.find(T,M);if(!L){var Q=T.FullPaths[0];M.slice(0,Q.length)==Q?Q=M:(Q.slice(-1)!="/"&&(Q+="/"),Q=(Q+M).replace("//","/")),L={name:s(M),type:2},T.FileIndex.push(L),T.FullPaths.push(Q),P||Bt.utils.cfb_gc(T)}return L.content=j,L.size=j?j.length:0,R&&(R.CLSID&&(L.clsid=R.CLSID),R.mt&&(L.mt=R.mt),R.ct&&(L.ct=R.ct)),L}function Ds(T,M){_(T);var j=Bt.find(T,M);if(j){for(var R=0;R<T.FileIndex.length;++R)if(T.FileIndex[R]==j)return T.FileIndex.splice(R,1),T.FullPaths.splice(R,1),!0}return!1}function Sp(T,M,j){_(T);var R=Bt.find(T,M);if(R){for(var P=0;P<T.FileIndex.length;++P)if(T.FileIndex[P]==R)return T.FileIndex[P].name=s(j),T.FullPaths[P]=j,!0}return!1}function Id(T){N(T,!0)}return e.find=V,e.read=C,e.parse=d,e.write=W,e.writeFile=G,e.utils={cfb_new:Ct,cfb_add:or,cfb_del:Ds,cfb_mov:Sp,cfb_gc:Id,ReadShift:Hf,CheckField:ZI,prep_blob:ms,bconcat:cn,use_zlib:k,_deflateRaw:Zr,_inflateRaw:Xt,consts:he},e}();function yre(t){return typeof t=="string"?nv(t):Array.isArray(t)?Wte(t):t}function hp(t,e,r){if(typeof Deno<"u"){if(r&&typeof e=="string")switch(r){case"utf8":e=new TextEncoder(r).encode(e);break;case"binary":e=nv(e);break;default:throw new Error("Unsupported encoding "+r)}return Deno.writeFileSync(t,e)}var n=r=="utf8"?Ih(e):e;if(typeof IE_SaveFile<"u")return IE_SaveFile(n,t);if(typeof Blob<"u"){var s=new Blob([yre(n)],{type:"application/octet-stream"});if(typeof navigator<"u"&&navigator.msSaveBlob)return navigator.msSaveBlob(s,t);if(typeof saveAs<"u")return saveAs(s,t);if(typeof URL<"u"&&typeof document<"u"&&document.createElement&&URL.createObjectURL){var i=URL.createObjectURL(s);if(typeof chrome=="object"&&typeof(chrome.downloads||{}).download=="function")return URL.revokeObjectURL&&typeof setTimeout<"u"&&setTimeout(function(){URL.revokeObjectURL(i)},6e4),chrome.downloads.download({url:i,filename:t,saveAs:!0});var o=document.createElement("a");if(o.download!=null)return o.download=t,o.href=i,document.body.appendChild(o),o.click(),document.body.removeChild(o),URL.revokeObjectURL&&typeof setTimeout<"u"&&setTimeout(function(){URL.revokeObjectURL(i)},6e4),i}}if(typeof $<"u"&&typeof File<"u"&&typeof Folder<"u")try{var a=File(t);return a.open("w"),a.encoding="binary",Array.isArray(e)&&(e=fp(e)),a.write(e),a.close(),e}catch(l){if(!l.message||!l.message.match(/onstruct/))throw l}throw new Error("cannot save file "+t)}function mn(t){for(var e=Object.keys(t),r=[],n=0;n<e.length;++n)Object.prototype.hasOwnProperty.call(t,e[n])&&r.push(e[n]);return r}function mN(t,e){for(var r=[],n=mn(t),s=0;s!==n.length;++s)r[t[n[s]][e]]==null&&(r[t[n[s]][e]]=n[s]);return r}function l_(t){for(var e=[],r=mn(t),n=0;n!==r.length;++n)e[t[r[n]]]=r[n];return e}function ov(t){for(var e=[],r=mn(t),n=0;n!==r.length;++n)e[t[r[n]]]=parseInt(r[n],10);return e}function wre(t){for(var e=[],r=mn(t),n=0;n!==r.length;++n)e[t[r[n]]]==null&&(e[t[r[n]]]=[]),e[t[r[n]]].push(r[n]);return e}var Ag=new Date(1899,11,30,0,0,0);function cs(t,e){var r=t.getTime(),n=Ag.getTime()+(t.getTimezoneOffset()-Ag.getTimezoneOffset())*6e4;return(r-n)/(24*60*60*1e3)}var DI=new Date,bre=Ag.getTime()+(DI.getTimezoneOffset()-Ag.getTimezoneOffset())*6e4,gN=DI.getTimezoneOffset();function LI(t){var e=new Date;return e.setTime(t*24*60*60*1e3+bre),e.getTimezoneOffset()!==gN&&e.setTime(e.getTime()+(e.getTimezoneOffset()-gN)*6e4),e}var xN=new Date("2017-02-19T19:06:09.000Z"),FI=isNaN(xN.getFullYear())?new Date("2/19/17"):xN,Sre=FI.getFullYear()==2017;function zn(t,e){var r=new Date(t);if(Sre)return e>0?r.setTime(r.getTime()+r.getTimezoneOffset()*60*1e3):e<0&&r.setTime(r.getTime()-r.getTimezoneOffset()*60*1e3),r;if(t instanceof Date)return t;if(FI.getFullYear()==1917&&!isNaN(r.getFullYear())){var n=r.getFullYear();return t.indexOf(""+n)>-1||r.setFullYear(r.getFullYear()+100),r}var s=t.match(/\d+/g)||["2017","2","19","0","0","0"],i=new Date(+s[0],+s[1]-1,+s[2],+s[3]||0,+s[4]||0,+s[5]||0);return t.indexOf("Z")>-1&&(i=new Date(i.getTime()-i.getTimezoneOffset()*60*1e3)),i}function av(t,e){if(Nt&&Buffer.isBuffer(t))return t.toString("binary");if(typeof TextDecoder<"u")try{var r={"€":"€","‚":"‚",ƒ:"ƒ","„":"„","…":"…","†":"†","‡":"‡","ˆ":"ˆ","‰":"‰",Š:"Š","‹":"‹",Œ:"Œ",Ž:"Ž","‘":"‘","’":"’","“":"“","”":"”","•":"•","–":"–","—":"—","˜":"˜","™":"™",š:"š","›":"›",œ:"œ",ž:"ž",Ÿ:"Ÿ"};return Array.isArray(t)&&(t=new Uint8Array(t)),new TextDecoder("latin1").decode(t).replace(/[€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ]/g,function(i){return r[i]||i})}catch{}for(var n=[],s=0;s!=t.length;++s)n.push(String.fromCharCode(t[s]));return n.join("")}function us(t){if(typeof JSON<"u"&&!Array.isArray(t))return JSON.parse(JSON.stringify(t));if(typeof t!="object"||t==null)return t;if(t instanceof Date)return new Date(t.getTime());var e={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=us(t[r]));return e}function pr(t,e){for(var r="";r.length<e;)r+=t;return r}function Mo(t){var e=Number(t);if(!isNaN(e))return isFinite(e)?e:NaN;if(!/\d/.test(t))return e;var r=1,n=t.replace(/([\d]),([\d])/g,"$1$2").replace(/[$]/g,"").replace(/[%]/g,function(){return r*=100,""});return!isNaN(e=Number(n))||(n=n.replace(/[(](.*)[)]/,function(s,i){return r=-r,i}),!isNaN(e=Number(n)))?e/r:e}var _re=["january","february","march","april","may","june","july","august","september","october","november","december"];function Mh(t){var e=new Date(t),r=new Date(NaN),n=e.getYear(),s=e.getMonth(),i=e.getDate();if(isNaN(i))return r;var o=t.toLowerCase();if(o.match(/jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec/)){if(o=o.replace(/[^a-z]/g,"").replace(/([^a-z]|^)[ap]m?([^a-z]|$)/,""),o.length>3&&_re.indexOf(o)==-1)return r}else if(o.match(/[a-z]/))return r;return n<0||n>8099?r:(s>0||i>1)&&n!=101?e:t.match(/[^-0-9:,\/\\]/)?r:e}function ct(t,e,r){if(t.FullPaths){if(typeof r=="string"){var n;return Nt?n=Yo(r):n=qte(r),Bt.utils.cfb_add(t,e,n)}Bt.utils.cfb_add(t,e,r)}else t.file(e,r)}function c_(){return Bt.utils.cfb_new()}var Or=`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\r
806`,Ere={"&quot;":'"',"&apos;":"'","&gt;":">","&lt;":"<","&amp;":"&"},u_=l_(Ere),d_=/[&<>'"]/g,Tre=/[\u0000-\u0008\u000b-\u001f]/g;function Mt(t){var e=t+"";return e.replace(d_,function(r){return u_[r]}).replace(Tre,function(r){return"_x"+("000"+r.charCodeAt(0).toString(16)).slice(-4)+"_"})}function vN(t){return Mt(t).replace(/ /g,"_x0020_")}var BI=/[\u0000-\u001f]/g;function Cre(t){var e=t+"";return e.replace(d_,function(r){return u_[r]}).replace(/\n/g,"<br/>").replace(BI,function(r){return"&#x"+("000"+r.charCodeAt(0).toString(16)).slice(-4)+";"})}function kre(t){var e=t+"";return e.replace(d_,function(r){return u_[r]}).replace(BI,function(r){return"&#x"+r.charCodeAt(0).toString(16).toUpperCase()+";"})}function Nre(t){return t.replace(/(\r\n|[\r\n])/g,"&#10;")}function Are(t){switch(t){case 1:case!0:case"1":case"true":case"TRUE":return!0;default:return!1}}function q1(t){for(var e="",r=0,n=0,s=0,i=0,o=0,a=0;r<t.length;){if(n=t.charCodeAt(r++),n<128){e+=String.fromCharCode(n);continue}if(s=t.charCodeAt(r++),n>191&&n<224){o=(n&31)<<6,o|=s&63,e+=String.fromCharCode(o);continue}if(i=t.charCodeAt(r++),n<240){e+=String.fromCharCode((n&15)<<12|(s&63)<<6|i&63);continue}o=t.charCodeAt(r++),a=((n&7)<<18|(s&63)<<12|(i&63)<<6|o&63)-65536,e+=String.fromCharCode(55296+(a>>>10&1023)),e+=String.fromCharCode(56320+(a&1023))}return e}function yN(t){var e=cc(2*t.length),r,n,s=1,i=0,o=0,a;for(n=0;n<t.length;n+=s)s=1,(a=t.charCodeAt(n))<128?r=a:a<224?(r=(a&31)*64+(t.charCodeAt(n+1)&63),s=2):a<240?(r=(a&15)*4096+(t.charCodeAt(n+1)&63)*64+(t.charCodeAt(n+2)&63),s=3):(s=4,r=(a&7)*262144+(t.charCodeAt(n+1)&63)*4096+(t.charCodeAt(n+2)&63)*64+(t.charCodeAt(n+3)&63),r-=65536,o=55296+(r>>>10&1023),r=56320+(r&1023)),o!==0&&(e[i++]=o&255,e[i++]=o>>>8,o=0),e[i++]=r%256,e[i++]=r>>>8;return e.slice(0,i).toString("ucs2")}function wN(t){return Yo(t,"binary").toString("utf8")}var fm="foo bar baz☃🍣",Uf=Nt&&(wN(fm)==q1(fm)&&wN||yN(fm)==q1(fm)&&yN)||q1,Ih=Nt?function(t){return Yo(t,"utf8").toString("binary")}:function(t){for(var e=[],r=0,n=0,s=0;r<t.length;)switch(n=t.charCodeAt(r++),!0){case n<128:e.push(String.fromCharCode(n));break;case n<2048:e.push(String.fromCharCode(192+(n>>6))),e.push(String.fromCharCode(128+(n&63)));break;case(n>=55296&&n<57344):n-=55296,s=t.charCodeAt(r++)-56320+(n<<10),e.push(String.fromCharCode(240+(s>>18&7))),e.push(String.fromCharCode(144+(s>>12&63))),e.push(String.fromCharCode(128+(s>>6&63))),e.push(String.fromCharCode(128+(s&63)));break;default:e.push(String.fromCharCode(224+(n>>12))),e.push(String.fromCharCode(128+(n>>6&63))),e.push(String.fromCharCode(128+(n&63)))}return e.join("")},jre=function(){var t=[["nbsp"," "],["middot","·"],["quot",'"'],["apos","'"],["gt",">"],["lt","<"],["amp","&"]].map(function(e){return[new RegExp("&"+e[0]+";","ig"),e[1]]});return function(r){for(var n=r.replace(/^[\t\n\r ]+/,"").replace(/[\t\n\r ]+$/,"").replace(/>\s+/g,">").replace(/\s+</g,"<").replace(/[\t\n\r ]+/g," ").replace(/<\s*[bB][rR]\s*\/?>/g,`
807`).replace(/<[^>]*>/g,""),s=0;s<t.length;++s)n=n.replace(t[s][0],t[s][1]);return n}}(),$I=/(^\s|\s$|\n)/;function un(t,e){return"<"+t+(e.match($I)?' xml:space="preserve"':"")+">"+e+"</"+t+">"}function Dh(t){return mn(t).map(function(e){return" "+e+'="'+t[e]+'"'}).join("")}function Ee(t,e,r){return"<"+t+(r!=null?Dh(r):"")+(e!=null?(e.match($I)?' xml:space="preserve"':"")+">"+e+"</"+t:"/")+">"}function Sb(t,e){try{return t.toISOString().replace(/\.\d*/,"")}catch(r){if(e)throw r}return""}function Rre(t,e){switch(typeof t){case"string":var r=Ee("vt:lpwstr",Mt(t));return r=r.replace(/&quot;/g,"_x0022_"),r;case"number":return Ee((t|0)==t?"vt:i4":"vt:r8",Mt(String(t)));case"boolean":return Ee("vt:bool",t?"true":"false")}
vendor: 9,870 bytes, line 807
807if(t instanceof Date)return Ee("vt:filetime",Sb(t));throw new Error("Unable to serialize "+t)}var qr={CORE_PROPS:"http://schemas.openxmlformats.org/package/2006/metadata/core-properties",CUST_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/custom-properties",EXT_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/extended-properties",CT:"http://schemas.openxmlformats.org/package/2006/content-types",RELS:"http://schemas.openxmlformats.org/package/2006/relationships",TCMNT:"http://schemas.microsoft.com/office/spreadsheetml/2018/threadedcomments",dc:"http://purl.org/dc/elements/1.1/",dcterms:"http://purl.org/dc/terms/",dcmitype:"http://purl.org/dc/dcmitype/",mx:"http://schemas.microsoft.com/office/mac/excel/2008/main",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",sjs:"http://schemas.openxmlformats.org/package/2006/sheetjs/core-properties",vt:"http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes",xsi:"http://www.w3.org/2001/XMLSchema-instance",xsd:"http://www.w3.org/2001/XMLSchema"},Ad=["http://schemas.openxmlformats.org/spreadsheetml/2006/main","http://purl.oclc.org/ooxml/spreadsheetml/main","http://schemas.microsoft.com/office/excel/2006/main","http://schemas.microsoft.com/office/excel/2006/2"],xs={o:"urn:schemas-microsoft-com:office:office",x:"urn:schemas-microsoft-com:office:excel",ss:"urn:schemas-microsoft-com:office:spreadsheet",dt:"uuid:C2F41010-65B3-11d1-A29F-00AA00C14882",mv:"http://macVmlSchemaUri",v:"urn:schemas-microsoft-com:vml",html:"http://www.w3.org/TR/REC-html40"};function Ore(t,e){for(var r=1-2*(t[e+7]>>>7),n=((t[e+7]&127)<<4)+(t[e+6]>>>4&15),s=t[e+6]&15,i=5;i>=0;--i)s=s*256+t[e+i];return n==2047?s==0?r*(1/0):NaN:(n==0?n=-1022:(n-=1023,s+=Math.pow(2,52)),r*Math.pow(2,n-52)*s)}function Pre(t,e,r){var n=(e<0||1/e==-1/0?1:0)<<7,s=0,i=0,o=n?-e:e;isFinite(o)?o==0?s=i=0:(s=Math.floor(Math.log(o)/Math.LN2),i=o*Math.pow(2,52-s),s<=-1023&&(!isFinite(i)||i<Math.pow(2,52))?s=-1022:(i-=Math.pow(2,52),s+=1023)):(s=2047,i=isNaN(e)?26985:0);for(var a=0;a<=5;++a,i/=256)t[r+a]=i&255;t[r+6]=(s&15)<<4|i&15,t[r+7]=s>>4|n}var bN=function(t){for(var e=[],r=10240,n=0;n<t[0].length;++n)if(t[0][n])for(var s=0,i=t[0][n].length;s<i;s+=r)e.push.apply(e,t[0][n].slice(s,s+r));return e},SN=Nt?function(t){return t[0].length>0&&Buffer.isBuffer(t[0][0])?Buffer.concat(t[0].map(function(e){return Buffer.isBuffer(e)?e:Yo(e)})):bN(t)}:bN,_N=function(t,e,r){for(var n=[],s=e;s<r;s+=2)n.push(String.fromCharCode(hf(t,s)));return n.join("").replace(zf,"")},f_=Nt?function(t,e,r){return Buffer.isBuffer(t)?t.toString("utf16le",e,r).replace(zf,""):_N(t,e,r)}:_N,EN=function(t,e,r){for(var n=[],s=e;s<e+r;++s)n.push(("0"+t[s].toString(16)).slice(-2));return n.join("")},zI=Nt?function(t,e,r){return Buffer.isBuffer(t)?t.toString("hex",e,e+r):EN(t,e,r)}:EN,TN=function(t,e,r){for(var n=[],s=e;s<r;s++)n.push(String.fromCharCode(tu(t,s)));return n.join("")},pp=Nt?function(e,r,n){return Buffer.isBuffer(e)?e.toString("utf8",r,n):TN(e,r,n)}:TN,UI=function(t,e){var r=vs(t,e);return r>0?pp(t,e+4,e+4+r-1):""},HI=UI,VI=function(t,e){var r=vs(t,e);return r>0?pp(t,e+4,e+4+r-1):""},WI=VI,qI=function(t,e){var r=2*vs(t,e);return r>0?pp(t,e+4,e+4+r-1):""},GI=qI,KI=function(e,r){var n=vs(e,r);return n>0?f_(e,r+4,r+4+n):""},XI=KI,YI=function(t,e){var r=vs(t,e);return r>0?pp(t,e+4,e+4+r):""},JI=YI,QI=function(t,e){return Ore(t,e)},jg=QI,h_=function(e){return Array.isArray(e)||typeof Uint8Array<"u"&&e instanceof Uint8Array};Nt&&(HI=function(e,r){if(!Buffer.isBuffer(e))return UI(e,r);var n=e.readUInt32LE(r);return n>0?e.toString("utf8",r+4,r+4+n-1):""},WI=function(e,r){if(!Buffer.isBuffer(e))return VI(e,r);var n=e.readUInt32LE(r);return n>0?e.toString("utf8",r+4,r+4+n-1):""},GI=function(e,r){if(!Buffer.isBuffer(e))return qI(e,r);var n=2*e.readUInt32LE(r);return e.toString("utf16le",r+4,r+4+n-1)},XI=function(e,r){if(!Buffer.isBuffer(e))return KI(e,r);var n=e.readUInt32LE(r);return e.toString("utf16le",r+4,r+4+n)},JI=function(e,r){if(!Buffer.isBuffer(e))return YI(e,r);var n=e.readUInt32LE(r);return e.toString("utf8",r+4,r+4+n)},jg=function(e,r){return Buffer.isBuffer(e)?e.readDoubleLE(r):QI(e,r)},h_=function(e){return Buffer.isBuffer(e)||Array.isArray(e)||typeof Uint8Array<"u"&&e instanceof Uint8Array});var tu=function(t,e){return t[e]},hf=function(t,e){return t[e+1]*256+t[e]},Mre=function(t,e){var r=t[e+1]*256+t[e];return r<32768?r:(65535-r+1)*-1},vs=function(t,e){return t[e+3]*(1<<24)+(t[e+2]<<16)+(t[e+1]<<8)+t[e]},Cl=function(t,e){return t[e+3]<<24|t[e+2]<<16|t[e+1]<<8|t[e]},Ire=function(t,e){return t[e]<<24|t[e+1]<<16|t[e+2]<<8|t[e+3]};function Hf(t,e){var r="",n,s,i=[],o,a,l,u;switch(e){case"dbcs":if(u=this.l,Nt&&Buffer.isBuffer(this))r=this.slice(this.l,this.l+2*t).toString("utf16le");else for(l=0;l<t;++l)r+=String.fromCharCode(hf(this,u)),u+=2;t*=2;break;case"utf8":r=pp(this,this.l,this.l+t);break;case"utf16le":t*=2,r=f_(this,this.l,this.l+t);break;case"wstr":return Hf.call(this,t,"dbcs");case"lpstr-ansi":r=HI(this,this.l),t=4+vs(this,this.l);break;case"lpstr-cp":r=WI(this,this.l),t=4+vs(this,this.l);break;case"lpwstr":r=GI(this,this.l),t=4+2*vs(this,this.l);break;case"lpp4":t=4+vs(this,this.l),r=XI(this,this.l),t&2&&(t+=2);break;case"8lpp4":t=4+vs(this,this.l),r=JI(this,this.l),t&3&&(t+=4-(t&3));break;case"cstr":for(t=0,r="";(o=tu(this,this.l+t++))!==0;)i.push(cm(o));r=i.join("");break;case"_wstr":for(t=0,r="";(o=hf(this,this.l+t))!==0;)i.push(cm(o)),t+=2;t+=2,r=i.join("");break;case"dbcs-cont":for(r="",u=this.l,l=0;l<t;++l){if(this.lens&&this.lens.indexOf(u)!==-1)return o=tu(this,u),this.l=u+1,a=Hf.call(this,t-l,o?"dbcs-cont":"sbcs-cont"),i.join("")+a;i.push(cm(hf(this,u))),u+=2}r=i.join(""),t*=2;break;case"cpstr":case"sbcs-cont":for(r="",u=this.l,l=0;l!=t;++l){if(this.lens&&this.lens.indexOf(u)!==-1)return o=tu(this,u),this.l=u+1,a=Hf.call(this,t-l,o?"dbcs-cont":"sbcs-cont"),i.join("")+a;i.push(cm(tu(this,u))),u+=1}r=i.join("");break;default:switch(t){case 1:return n=tu(this,this.l),this.l++,n;case 2:return n=(e==="i"?Mre:hf)(this,this.l),this.l+=2,n;case 4:case-4:return e==="i"||!(this[this.l+3]&128)?(n=(t>0?Cl:Ire)(this,this.l),this.l+=4,n):(s=vs(this,this.l),this.l+=4,s);case 8:case-8:if(e==="f")return t==8?s=jg(this,this.l):s=jg([this[this.l+7],this[this.l+6],this[this.l+5],this[this.l+4],this[this.l+3],this[this.l+2],this[this.l+1],this[this.l+0]],0),this.l+=8,s;t=8;case 16:r=zI(this,this.l,t);break}}return this.l+=t,r}var Dre=function(t,e,r){t[r]=e&255,t[r+1]=e>>>8&255,t[r+2]=e>>>16&255,t[r+3]=e>>>24&255},Lre=function(t,e,r){t[r]=e&255,t[r+1]=e>>8&255,t[r+2]=e>>16&255,t[r+3]=e>>24&255},Fre=function(t,e,r){t[r]=e&255,t[r+1]=e>>>8&255};function Bre(t,e,r){var n=0,s=0;if(r==="dbcs"){for(s=0;s!=e.length;++s)Fre(this,e.charCodeAt(s),this.l+2*s);n=2*e.length}else if(r==="sbcs"){for(e=e.replace(/[^\x00-\x7F]/g,"_"),s=0;s!=e.length;++s)this[this.l+s]=e.charCodeAt(s)&255;n=e.length}else if(r==="hex"){for(;s<t;++s)this[this.l++]=parseInt(e.slice(2*s,2*s+2),16)||0;return this}else if(r==="utf16le"){var i=Math.min(this.l+t,this.length);for(s=0;s<Math.min(e.length,t);++s){var o=e.charCodeAt(s);this[this.l++]=o&255,this[this.l++]=o>>8}for(;this.l<i;)this[this.l++]=0;return this}else switch(t){case 1:n=1,this[this.l]=e&255;break;case 2:n=2,this[this.l]=e&255,e>>>=8,this[this.l+1]=e&255;break;case 3:n=3,this[this.l]=e&255,e>>>=8,this[this.l+1]=e&255,e>>>=8,this[this.l+2]=e&255;break;case 4:n=4,Dre(this,e,this.l);break;case 8:if(n=8,r==="f"){Pre(this,e,this.l);break}case 16:break;case-4:n=4,Lre(this,e,this.l);break}return this.l+=n,this}function ZI(t,e){var r=zI(this,this.l,t.length>>1);if(r!==t)throw new Error(e+"Expected "+t+" saw "+r);this.l+=t.length>>1}function ms(t,e){t.l=e,t.read_shift=Hf,t.chk=ZI,t.write_shift=Bre}function co(t,e){t.l+=e}function ie(t){var e=cc(t);return ms(e,0),e}function ls(){var t=[],e=Nt?256:2048,r=function(u){var d=ie(u);return ms(d,0),d},n=r(e),s=function(){n&&(n.length>n.l&&(n=n.slice(0,n.l),n.l=n.length),n.length>0&&t.push(n),n=null)},i=function(u){return n&&u<n.length-n.l?n:(s(),n=r(Math.max(u+1,e)))},o=function(){return s(),cn(t)},a=function(u){s(),n=u,n.l==null&&(n.l=n.length),i(e)};return{next:i,push:a,end:o,_bufs:t}}function me(t,e,r,n){var s=+e,i;if(!isNaN(s)){n||(n=Ole[s].p||(r||[]).length||0),i=1+(s>=128?1:0)+1,n>=128&&++i,n>=16384&&++i,n>=2097152&&++i;var o=t.next(i);s<=127?o.write_shift(1,s):(o.write_shift(1,(s&127)+128),o.write_shift(1,s>>7));for(var a=0;a!=4;++a)if(n>=128)o.write_shift(1,(n&127)+128),n>>=7;else{o.write_shift(1,n);break}n>0&&h_(r)&&t.push(r)}}function Vf(t,e,r){var n=us(t);if(e.s?(n.cRel&&(n.c+=e.s.c),n.rRel&&(n.r+=e.s.r)):(n.cRel&&(n.c+=e.c),n.rRel&&(n.r+=e.r)),!r||r.biff<12){for(;n.c>=256;)n.c-=256;for(;n.r>=65536;)n.r-=65536}return n}function CN(t,e,r){var n=us(t);return n.s=Vf(n.s,e.s,r),n.e=Vf(n.e,e.s,r),n}function Wf(t,e){if(t.cRel&&t.c<0)for(t=us(t);t.c<0;)t.c+=e>8?16384:256;if(t.rRel&&t.r<0)for(t=us(t);t.r<0;)t.r+=e>8?1048576:e>5?65536:16384;var r=Dt(t);return!t.cRel&&t.cRel!=null&&(r=Ure(r)),!t.rRel&&t.rRel!=null&&(r=$re(r)),r}function G1(t,e){return t.s.r==0&&!t.s.rRel&&t.e.r==(e.biff>=12?1048575:e.biff>=8?65536:16384)&&!t.e.rRel?(t.s.cRel?"":"$")+En(t.s.c)+":"+(t.e.cRel?"":"$")+En(t.e.c):t.s.c==0&&!t.s.cRel&&t.e.c==(e.biff>=12?16383:255)&&!t.e.cRel?(t.s.rRel?"":"$")+hn(t.s.r)+":"+(t.e.rRel?"":"$")+hn(t.e.r):Wf(t.s,e.biff)+":"+Wf(t.e,e.biff)}function p_(t){return parseInt(zre(t),10)-1}function hn(t){return""+(t+1)}function $re(t){return t.replace(/([A-Z]|^)(\d+)$/,"$1$$$2")}function zre(t){return t.replace(/\$(\d+)$/,"$1")}function m_(t){for(var e=Hre(t),r=0,n=0;n!==e.length;++n)r=26*r+e.charCodeAt(n)-64;return r-1}function En(t){if(t<0)throw new Error("invalid column "+t);var e="";for(++t;t;t=Math.floor((t-1)/26))e=String.fromCharCode((t-1)%26+65)+e;return e}function Ure(t){return t.replace(/^([A-Z])/,"$$$1")}
vendor: 14,963 bytes, line 807
807function Hre(t){return t.replace(/^\$([A-Z])/,"$1")}function Vre(t){return t.replace(/(\$?[A-Z]*)(\$?\d*)/,"$1,$2").split(",")}function Gr(t){for(var e=0,r=0,n=0;n<t.length;++n){var s=t.charCodeAt(n);s>=48&&s<=57?e=10*e+(s-48):s>=65&&s<=90&&(r=26*r+(s-64))}return{c:r-1,r:e-1}}function Dt(t){for(var e=t.c+1,r="";e;e=(e-1)/26|0)r=String.fromCharCode((e-1)%26+65)+r;return r+(t.r+1)}function Ns(t){var e=t.indexOf(":");return e==-1?{s:Gr(t),e:Gr(t)}:{s:Gr(t.slice(0,e)),e:Gr(t.slice(e+1))}}function Nr(t,e){return typeof e>"u"||typeof e=="number"?Nr(t.s,t.e):(typeof t!="string"&&(t=Dt(t)),typeof e!="string"&&(e=Dt(e)),t==e?t:t+":"+e)}function Gt(t){var e={s:{c:0,r:0},e:{c:0,r:0}},r=0,n=0,s=0,i=t.length;for(r=0;n<i&&!((s=t.charCodeAt(n)-64)<1||s>26);++n)r=26*r+s;for(e.s.c=--r,r=0;n<i&&!((s=t.charCodeAt(n)-48)<0||s>9);++n)r=10*r+s;if(e.s.r=--r,n===i||s!=10)return e.e.c=e.s.c,e.e.r=e.s.r,e;for(++n,r=0;n!=i&&!((s=t.charCodeAt(n)-64)<1||s>26);++n)r=26*r+s;for(e.e.c=--r,r=0;n!=i&&!((s=t.charCodeAt(n)-48)<0||s>9);++n)r=10*r+s;return e.e.r=--r,e}function kN(t,e){var r=t.t=="d"&&e instanceof Date;if(t.z!=null)try{return t.w=sl(t.z,r?cs(e):e)}catch{}try{return t.w=sl((t.XF||{}).numFmtId||(r?14:0),r?cs(e):e)}catch{return""+e}}function Wo(t,e,r){return t==null||t.t==null||t.t=="z"?"":t.w!==void 0?t.w:(t.t=="d"&&!t.z&&r&&r.dateNF&&(t.z=r.dateNF),t.t=="e"?mp[t.v]||t.v:e==null?kN(t,t.v):kN(t,e))}function _c(t,e){var r=e&&e.sheet?e.sheet:"Sheet1",n={};return n[r]=t,{SheetNames:[r],Sheets:n}}function eD(t,e,r){var n=r||{},s=t?Array.isArray(t):n.dense,i=t||(s?[]:{}),o=0,a=0;if(i&&n.origin!=null){if(typeof n.origin=="number")o=n.origin;else{var l=typeof n.origin=="string"?Gr(n.origin):n.origin;o=l.r,a=l.c}i["!ref"]||(i["!ref"]="A1:A1")}var u={s:{c:1e7,r:1e7},e:{c:0,r:0}};if(i["!ref"]){var d=Gt(i["!ref"]);u.s.c=d.s.c,u.s.r=d.s.r,u.e.c=Math.max(u.e.c,d.e.c),u.e.r=Math.max(u.e.r,d.e.r),o==-1&&(u.e.r=o=d.e.r+1)}for(var f=0;f!=e.length;++f)if(e[f]){if(!Array.isArray(e[f]))throw new Error("aoa_to_sheet expects an array of arrays");for(var h=0;h!=e[f].length;++h)if(!(typeof e[f][h]>"u")){var p={v:e[f][h]},g=o+f,m=a+h;if(u.s.r>g&&(u.s.r=g),u.s.c>m&&(u.s.c=m),u.e.r<g&&(u.e.r=g),u.e.c<m&&(u.e.c=m),e[f][h]&&typeof e[f][h]=="object"&&!Array.isArray(e[f][h])&&!(e[f][h]instanceof Date))p=e[f][h];else if(Array.isArray(p.v)&&(p.f=e[f][h][1],p.v=p.v[0]),p.v===null)if(p.f)p.t="n";else if(n.nullError)p.t="e",p.v=0;else if(n.sheetStubs)p.t="z";else continue;else typeof p.v=="number"?p.t="n":typeof p.v=="boolean"?p.t="b":p.v instanceof Date?(p.z=n.dateNF||gr[14],n.cellDates?(p.t="d",p.w=sl(p.z,cs(p.v))):(p.t="n",p.v=cs(p.v),p.w=sl(p.z,p.v))):p.t="s";if(s)i[g]||(i[g]=[]),i[g][m]&&i[g][m].z&&(p.z=i[g][m].z),i[g][m]=p;else{var x=Dt({c:m,r:g});i[x]&&i[x].z&&(p.z=i[x].z),i[x]=p}}}return u.s.c<1e7&&(i["!ref"]=Nr(u)),i}function jd(t,e){return eD(null,t,e)}function Wre(t){return t.read_shift(4,"i")}function Pi(t,e){return e||(e=ie(4)),e.write_shift(4,t),e}function Tn(t){var e=t.read_shift(4);return e===0?"":t.read_shift(e,"dbcs")}function Kr(t,e){var r=!1;return e==null&&(r=!0,e=ie(4+2*t.length)),e.write_shift(4,t.length),t.length>0&&e.write_shift(0,t,"dbcs"),r?e.slice(0,e.l):e}function qre(t){return{ich:t.read_shift(2),ifnt:t.read_shift(2)}}function Gre(t,e){return e||(e=ie(4)),e.write_shift(2,0),e.write_shift(2,0),e}function g_(t,e){var r=t.l,n=t.read_shift(1),s=Tn(t),i=[],o={t:s,h:s};if(n&1){for(var a=t.read_shift(4),l=0;l!=a;++l)i.push(qre(t));o.r=i}else o.r=[{ich:0,ifnt:0}];return t.l=r+e,o}function Kre(t,e){var r=!1;return e==null&&(r=!0,e=ie(15+4*t.t.length)),e.write_shift(1,0),Kr(t.t,e),r?e.slice(0,e.l):e}var Xre=g_;function Yre(t,e){var r=!1;return e==null&&(r=!0,e=ie(23+4*t.t.length)),e.write_shift(1,1),Kr(t.t,e),e.write_shift(4,1),Gre({ich:0,ifnt:0},e),r?e.slice(0,e.l):e}function ai(t){var e=t.read_shift(4),r=t.read_shift(2);return r+=t.read_shift(1)<<16,t.l++,{c:e,iStyleRef:r}}function Ec(t,e){return e==null&&(e=ie(8)),e.write_shift(-4,t.c),e.write_shift(3,t.iStyleRef||t.s),e.write_shift(1,0),e}function Tc(t){var e=t.read_shift(2);return e+=t.read_shift(1)<<16,t.l++,{c:-1,iStyleRef:e}}function Cc(t,e){return e==null&&(e=ie(4)),e.write_shift(3,t.iStyleRef||t.s),e.write_shift(1,0),e}var Jre=Tn,tD=Kr;function x_(t){var e=t.read_shift(4);return e===0||e===4294967295?"":t.read_shift(e,"dbcs")}function Rg(t,e){var r=!1;return e==null&&(r=!0,e=ie(127)),e.write_shift(4,t.length>0?t.length:4294967295),t.length>0&&e.write_shift(0,t,"dbcs"),r?e.slice(0,e.l):e}var Qre=Tn,_b=x_,v_=Rg;function rD(t){var e=t.slice(t.l,t.l+4),r=e[0]&1,n=e[0]&2;t.l+=4;var s=n===0?jg([0,0,0,0,e[0]&252,e[1],e[2],e[3]],0):Cl(e,0)>>2;return r?s/100:s}function nD(t,e){e==null&&(e=ie(4));var r=0,n=0,s=t*100;if(t==(t|0)&&t>=-(1<<29)&&t<1<<29?n=1:s==(s|0)&&s>=-(1<<29)&&s<1<<29&&(n=1,r=1),n)e.write_shift(-4,((r?s:t)<<2)+(r+2));else throw new Error("unsupported RkNumber "+t)}function sD(t){var e={s:{},e:{}};return e.s.r=t.read_shift(4),e.e.r=t.read_shift(4),e.s.c=t.read_shift(4),e.e.c=t.read_shift(4),e}function Zre(t,e){return e||(e=ie(16)),e.write_shift(4,t.s.r),e.write_shift(4,t.e.r),e.write_shift(4,t.s.c),e.write_shift(4,t.e.c),e}var kc=sD,Rd=Zre;function Od(t){if(t.length-t.l<8)throw"XLS Xnum Buffer underflow";return t.read_shift(8,"f")}function uc(t,e){return(e||ie(8)).write_shift(8,t,"f")}function ene(t){var e={},r=t.read_shift(1),n=r>>>1,s=t.read_shift(1),i=t.read_shift(2,"i"),o=t.read_shift(1),a=t.read_shift(1),l=t.read_shift(1);switch(t.l++,n){case 0:e.auto=1;break;case 1:e.index=s;var u=cne[s];u&&(e.rgb=FN(u));break;case 2:e.rgb=FN([o,a,l]);break;case 3:e.theme=s;break}return i!=0&&(e.tint=i>0?i/32767:i/32768),e}function Og(t,e){if(e||(e=ie(8)),!t||t.auto)return e.write_shift(4,0),e.write_shift(4,0),e;t.index!=null?(e.write_shift(1,2),e.write_shift(1,t.index)):t.theme!=null?(e.write_shift(1,6),e.write_shift(1,t.theme)):(e.write_shift(1,5),e.write_shift(1,0));var r=t.tint||0;if(r>0?r*=32767:r<0&&(r*=32768),e.write_shift(2,r),!t.rgb||t.theme!=null)e.write_shift(2,0),e.write_shift(1,0),e.write_shift(1,0);else{var n=t.rgb||"FFFFFF";typeof n=="number"&&(n=("000000"+n.toString(16)).slice(-6)),e.write_shift(1,parseInt(n.slice(0,2),16)),e.write_shift(1,parseInt(n.slice(2,4),16)),e.write_shift(1,parseInt(n.slice(4,6),16)),e.write_shift(1,255)}return e}function tne(t){var e=t.read_shift(1);t.l++;var r={fBold:e&1,fItalic:e&2,fUnderline:e&4,fStrikeout:e&8,fOutline:e&16,fShadow:e&32,fCondense:e&64,fExtend:e&128};return r}function rne(t,e){e||(e=ie(2));var r=(t.italic?2:0)|(t.strike?8:0)|(t.outline?16:0)|(t.shadow?32:0)|(t.condense?64:0)|(t.extend?128:0);return e.write_shift(1,r),e.write_shift(1,0),e}var iD=2,hs=3,hm=11,Pg=19,pm=64,nne=65,sne=71,ine=4108,one=4126,on=80,NN={1:{n:"CodePage",t:iD},2:{n:"Category",t:on},3:{n:"PresentationFormat",t:on},4:{n:"ByteCount",t:hs},5:{n:"LineCount",t:hs},6:{n:"ParagraphCount",t:hs},7:{n:"SlideCount",t:hs},8:{n:"NoteCount",t:hs},9:{n:"HiddenCount",t:hs},10:{n:"MultimediaClipCount",t:hs},11:{n:"ScaleCrop",t:hm},12:{n:"HeadingPairs",t:ine},13:{n:"TitlesOfParts",t:one},14:{n:"Manager",t:on},15:{n:"Company",t:on},16:{n:"LinksUpToDate",t:hm},17:{n:"CharacterCount",t:hs},19:{n:"SharedDoc",t:hm},22:{n:"HyperlinksChanged",t:hm},23:{n:"AppVersion",t:hs,p:"version"},24:{n:"DigSig",t:nne},26:{n:"ContentType",t:on},27:{n:"ContentStatus",t:on},28:{n:"Language",t:on},29:{n:"Version",t:on},255:{},2147483648:{n:"Locale",t:Pg},2147483651:{n:"Behavior",t:Pg},1919054434:{}},AN={1:{n:"CodePage",t:iD},2:{n:"Title",t:on},3:{n:"Subject",t:on},4:{n:"Author",t:on},5:{n:"Keywords",t:on},6:{n:"Comments",t:on},7:{n:"Template",t:on},8:{n:"LastAuthor",t:on},9:{n:"RevNumber",t:on},10:{n:"EditTime",t:pm},11:{n:"LastPrinted",t:pm},12:{n:"CreatedDate",t:pm},13:{n:"ModifiedDate",t:pm},14:{n:"PageCount",t:hs},15:{n:"WordCount",t:hs},16:{n:"CharCount",t:hs},17:{n:"Thumbnail",t:sne},18:{n:"Application",t:on},19:{n:"DocSecurity",t:hs},255:{},2147483648:{n:"Locale",t:Pg},2147483651:{n:"Behavior",t:Pg},1919054434:{}};function ane(t){return t.map(function(e){return[e>>16&255,e>>8&255,e&255]})}var lne=ane([0,16777215,16711680,65280,255,16776960,16711935,65535,0,16777215,16711680,65280,255,16776960,16711935,65535,8388608,32768,128,8421376,8388736,32896,12632256,8421504,10066431,10040166,16777164,13434879,6684774,16744576,26316,13421823,128,16711935,16776960,65535,8388736,8388608,32896,255,52479,13434879,13434828,16777113,10079487,16751052,13408767,16764057,3368703,3394764,10079232,16763904,16750848,16737792,6710937,9868950,13158,3381606,13056,3355392,10040064,10040166,3355545,3355443,16777215,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),cne=us(lne),mp={0:"#NULL!",7:"#DIV/0!",15:"#VALUE!",23:"#REF!",29:"#NAME?",36:"#NUM!",42:"#N/A",43:"#GETTING_DATA",255:"#WTF?"},une={"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml":"workbooks","application/vnd.ms-excel.sheet.macroEnabled.main+xml":"workbooks","application/vnd.ms-excel.sheet.binary.macroEnabled.main":"workbooks","application/vnd.ms-excel.addin.macroEnabled.main+xml":"workbooks","application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml":"workbooks","application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml":"sheets","application/vnd.ms-excel.worksheet":"sheets","application/vnd.ms-excel.binIndexWs":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml":"charts","application/vnd.ms-excel.chartsheet":"charts","application/vnd.ms-excel.macrosheet+xml":"macros","application/vnd.ms-excel.macrosheet":"macros","application/vnd.ms-excel.intlmacrosheet":"TODO","application/vnd.ms-excel.binIndexMs":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml":"dialogs","application/vnd.ms-excel.dialogsheet":"dialogs","application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml":"strs","application/vnd.ms-excel.sharedStrings":"strs","application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml":"styles","application/vnd.ms-excel.styles":"styles","application/vnd.openxmlformats-package.core-properties+xml":"coreprops","application/vnd.openxmlformats-officedocument.custom-properties+xml":"custprops","application/vnd.openxmlformats-officedocument.extended-properties+xml":"extprops","application/vnd.openxmlformats-officedocument.customXmlProperties+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.customProperty":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml":"comments","application/vnd.ms-excel.comments":"comments","application/vnd.ms-excel.threadedcomments+xml":"threadedcomments","application/vnd.ms-excel.person+xml":"people","application/vnd.openxmlformats-officedocument.spreadsheetml.sheetMetadata+xml":"metadata","application/vnd.ms-excel.sheetMetadata":"metadata","application/vnd.ms-excel.pivotTable":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotTable+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.chart+xml":"TODO","application/vnd.ms-office.chartcolorstyle+xml":"TODO","application/vnd.ms-office.chartstyle+xml":"TODO","application/vnd.ms-office.chartex+xml":"TODO","application/vnd.ms-excel.calcChain":"calcchains","application/vnd.openxmlformats-officedocument.spreadsheetml.calcChain+xml":"calcchains","application/vnd.openxmlformats-officedocument.spreadsheetml.printerSettings":"TODO","application/vnd.ms-office.activeX":"TODO","application/vnd.ms-office.activeX+xml":"TODO","application/vnd.ms-excel.attachedToolbars":"TODO","application/vnd.ms-excel.connections":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml":"TODO","application/vnd.ms-excel.externalLink":"links","application/vnd.openxmlformats-officedocument.spreadsheetml.externalLink+xml":"links","application/vnd.ms-excel.pivotCacheDefinition":"TODO","application/vnd.ms-excel.pivotCacheRecords":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotCacheDefinition+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotCacheRecords+xml":"TODO","application/vnd.ms-excel.queryTable":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.queryTable+xml":"TODO","application/vnd.ms-excel.userNames":"TODO","application/vnd.ms-excel.revisionHeaders":"TODO","application/vnd.ms-excel.revisionLog":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.revisionHeaders+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.revisionLog+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.userNames+xml":"TODO","application/vnd.ms-excel.tableSingleCells":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.tableSingleCells+xml":"TODO","application/vnd.ms-excel.slicer":"TODO","application/vnd.ms-excel.slicerCache":"TODO","application/vnd.ms-excel.slicer+xml":"TODO","application/vnd.ms-excel.slicerCache+xml":"TODO","application/vnd.ms-excel.wsSortMap":"TODO","application/vnd.ms-excel.table":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml":"TODO","application/vnd.openxmlformats-officedocument.theme+xml":"themes","application/vnd.openxmlformats-officedocument.themeOverride+xml":"TODO","application/vnd.ms-excel.Timeline+xml":"TODO","application/vnd.ms-excel.TimelineCache+xml":"TODO","application/vnd.ms-office.vbaProject":"vba","application/vnd.ms-office.vbaProjectSignature":"TODO","application/vnd.ms-office.volatileDependencies":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.volatileDependencies+xml":"TODO","application/vnd.ms-excel.controlproperties+xml":"TODO","application/vnd.openxmlformats-officedocument.model+data":"TODO","application/vnd.ms-excel.Survey+xml":"TODO","application/vnd.openxmlformats-officedocument.drawing+xml":"drawings","application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramColors+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramData+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramLayout+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramStyle+xml":"TODO","application/vnd.openxmlformats-officedocument.vmlDrawing":"TODO","application/vnd.openxmlformats-package.relationships+xml":"rels","application/vnd.openxmlformats-officedocument.oleObject":"TODO","image/png":"TODO",sheet:"js"},mm={workbooks:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml",xlsm:"application/vnd.ms-excel.sheet.macroEnabled.main+xml",xlsb:"application/vnd.ms-excel.sheet.binary.macroEnabled.main",xlam:"application/vnd.ms-excel.addin.macroEnabled.main+xml",xltx:"application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml"},strs:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml",xlsb:"application/vnd.ms-excel.sharedStrings"}
807,comments:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml",xlsb:"application/vnd.ms-excel.comments"},sheets:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml",xlsb:"application/vnd.ms-excel.worksheet"},charts:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml",xlsb:"application/vnd.ms-excel.chartsheet"},dialogs:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml",xlsb:"application/vnd.ms-excel.dialogsheet"},macros:{xlsx:"application/vnd.ms-excel.macrosheet+xml",xlsb:"application/vnd.ms-excel.macrosheet"},metadata:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheetMetadata+xml",xlsb:"application/vnd.ms-excel.sheetMetadata"},styles:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml",xlsb:"application/vnd.ms-excel.styles"}};function oD(){return{workbooks:[],sheets:[],charts:[],dialogs:[],macros:[],rels:[],strs:[],comments:[],threadedcomments:[],links:[],coreprops:[],extprops:[],custprops:[],themes:[],styles:[],calcchains:[],vba:[],drawings:[],metadata:[],people:[],TODO:[],xmlns:""}}function aD(t,e){var r=wre(une),n=[],s;n[n.length]=Or,n[n.length]=Ee("Types",null,{xmlns:qr.CT,"xmlns:xsd":qr.xsd,"xmlns:xsi":qr.xsi}),n=n.concat([["xml","application/xml"],["bin","application/vnd.ms-excel.sheet.binary.macroEnabled.main"],["vml","application/vnd.openxmlformats-officedocument.vmlDrawing"],["data","application/vnd.openxmlformats-officedocument.model+data"],["bmp","image/bmp"],["png","image/png"],["gif","image/gif"],["emf","image/x-emf"],["wmf","image/x-wmf"],["jpg","image/jpeg"],["jpeg","image/jpeg"],["t
807if","image/tiff"],["tiff","image/tiff"],["pdf","application/pdf"],["rels","application/vnd.openxmlformats-package.relationships+xml"]].map(function(l){return Ee("Default",null,{Extension:l[0],ContentType:l[1]})}));var i=function(l){t[l]&&t[l].length>0&&(s=t[l][0],n[n.length]=Ee("Override",null,{PartName:(s[0]=="/"?"":"/")+s,ContentType:mm[l][e.bookType]||mm[l].xlsx}))},o=function(l){(t[l]||[]).forEach(function(u){n[n.length]=Ee("Override",null,{PartName:(u[0]=="/"?"":"/")+u,ContentType:mm[l][e.bookType]||mm[l].xlsx})})},a=function(l){(t[l]||[]).forEach(function(u){n[n.length]=Ee("Override",null,{PartName:(u[0]=="/"?"":"/")+u,ContentType:r[l][0]})})};return i("workbooks"),o("sheets"),o("charts"),a("themes"),["strs","styles"].forEach(i),["coreprops","extprops","custprops"].forEach(a),a("vba"),a("comments"),a("threadedcomments"),a("drawings"),o("metadata"),a("people"),n.length>2&&(n[n.length]="</Types>",n[1]=n[1].replace("/>",">")),n.join("")}var Et
vendor: 2,399 bytes, line 807
807={WB:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument",SHEET:"http://sheetjs.openxmlformats.org/officeDocument/2006/relationships/officeDocument",HLINK:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink",VML:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/vmlDrawing",XPATH:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/externalLinkPath",XMISS:"http://schemas.microsoft.com/office/2006/relationships/xlExternalLinkPath/xlPathMissing",XLINK:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/externalLink",CXML:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/customXml",CXMLP:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/customXmlProps",CMNT:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments",CORE_PROPS:"http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties",EXT_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties",CUST_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/custom-properties",SST:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings",STY:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles",THEME:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme",CHART:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/chart",CHARTEX:"http://schemas.microsoft.com/office/2014/relationships/chartEx",CS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/chartsheet",WS:["http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet","http://purl.oclc.org/ooxml/officeDocument/relationships/worksheet"],DS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/dialogsheet",MS:"http://schemas.microsoft.com/office/2006/relationships/xlMacrosheet",IMG:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",DRAW:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/drawing",XLMETA:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/sheetMetadata",TCMNT:"http://schemas.microsoft.com/office/2017/10/relationships/threadedComment",PEOPLE:"http://schemas.microsoft.com/office/2017/10/relationships/person",
vendor: 4,598 bytes, lines 807-817
807VBA:"http://schemas.microsoft.com/office/2006/relationships/vbaProject"};function lD(t){var e=t.lastIndexOf("/");return t.slice(0,e+1)+"_rels/"+t.slice(e+1)+".rels"}function Ou(t){var e=[Or,Ee("Relationships",null,{xmlns:qr.RELS})];return mn(t["!id"]).forEach(function(r){e[e.length]=Ee("Relationship",null,t["!id"][r])}),e.length>2&&(e[e.length]="</Relationships>",e[1]=e[1].replace("/>",">")),e.join("")}function Pt(t,e,r,n,s,i){if(s||(s={}),t["!id"]||(t["!id"]={}),t["!idx"]||(t["!idx"]=1),e<0)for(e=t["!idx"];t["!id"]["rId"+e];++e);if(t["!idx"]=e+1,s.Id="rId"+e,s.Type=n,s.Target=r,[Et.HLINK,Et.XPATH,Et.XMISS].indexOf(s.Type)>-1&&(s.TargetMode="External"),t["!id"][s.Id])throw new Error("Cannot rewrite rId "+e);return t["!id"][s.Id]=s,t[("/"+s.Target).replace("//","/")]=s,e}function dne(t){var e=[Or];e.push(`<manifest:manifest xmlns:manifest="urn:oasis:names:tc:opendocument:xmlns:manifest:1.0" manifest:version="1.2">
808`),e.push(`  <manifest:file-entry manifest:full-path="/" manifest:version="1.2" manifest:media-type="application/vnd.oasis.opendocument.spreadsheet"/>
809`);for(var r=0;r<t.length;++r)e.push('  <manifest:file-entry manifest:full-path="'+t[r][0]+'" manifest:media-type="'+t[r][1]+`"/>
810`);return e.push("</manifest:manifest>"),e.join("")}function jN(t,e,r){return['  <rdf:Description rdf:about="'+t+`">
811`,'    <rdf:type rdf:resource="http://docs.oasis-open.org/ns/office/1.2/meta/'+(r||"odf")+"#"+e+`"/>
812`,`  </rdf:Description>
813`].join("")}function fne(t,e){return['  <rdf:Description rdf:about="'+t+`">
814`,'    <ns0:hasPart xmlns:ns0="http://docs.oasis-open.org/ns/office/1.2/meta/pkg#" rdf:resource="'+e+`"/>
815`,`  </rdf:Description>
816`].join("")}function hne(t){var e=[Or];e.push(`<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
817`);for(var r=0;r!=t.length;++r)e.push(jN(t[r][0],t[r][1])),e.push(fne("",t[r][0]));return e.push(jN("","Document","pkg")),e.push("</rdf:RDF>"),e.join("")}function cD(){return'<office:document-meta xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:xlink="http://www.w3.org/1999/xlink" office:version="1.2"><office:meta><meta:generator>SheetJS '+Tg.version+"</meta:generator></office:meta></office:document-meta>"}var Kl=[["cp:category","Category"],["cp:contentStatus","ContentStatus"],["cp:keywords","Keywords"],["cp:lastModifiedBy","LastAuthor"],["cp:lastPrinted","LastPrinted"],["cp:revision","RevNumber"],["cp:version","Version"],["dc:creator","Author"],["dc:description","Comments"],["dc:identifier","Identifier"],["dc:language","Language"],["dc:subject","Subject"],["dc:title","Title"],["dcterms:created","CreatedDate","date"],["dcterms:modified","ModifiedDate","date"]];function K1(t,e,r,n,s){s[t]!=null||e==null||e===""||(s[t]=e,e=Mt(e),n[n.length]=r?Ee(t,e,r):un(t,e))}function uD(t,e){var r=e||{},n=[Or,Ee("cp:coreProperties",null,{"xmlns:cp":qr.CORE_PROPS,"xmlns:dc":qr.dc,"xmlns:dcterms":qr.dcterms,"xmlns:dcmitype":qr.dcmitype,"xmlns:xsi":qr.xsi})],s={};if(!t&&!r.Props)return n.join("");t&&(t.CreatedDate!=null&&K1("dcterms:created",typeof t.CreatedDate=="string"?t.CreatedDate:Sb(t.CreatedDate,r.WTF),{"xsi:type":"dcterms:W3CDTF"},n,s),t.ModifiedDate!=null&&K1("dcterms:modified",typeof t.ModifiedDate=="string"?t.ModifiedDate:Sb(t.ModifiedDate,r.WTF),{"xsi:type":"dcterms:W3CDTF"},n,s));for(var i=0;i!=Kl.length;++i){var o=Kl[i],a=r.Props&&r.Props[o[1]]!=null?r.Props[o[1]]:t?t[o[1]]:null;a===!0?a="1":a===!1?a="0":typeof a=="number"&&(a=String(a)),a!=null&&K1(o[0],a,null,n,s)}return n.length>2&&(n[n.length]="</cp:coreProperties>",n[1]=n[1].replace("/>",">")),n.join("")}var Pu=[["Application","Application","string"],["AppVersion","AppVersion","string"],["Company","Company","string"],["DocSecurity","DocSecurity","string"],["Manager","Manager","string"],["HyperlinksChanged","HyperlinksChanged","bool"],["SharedDoc","SharedDoc","bool"],["LinksUpToDate","LinksUpToDate","bool"],["ScaleCrop","ScaleCrop","bool"],["HeadingPairs","HeadingPairs","raw"],["TitlesOfParts","TitlesOfParts","raw"]],dD=["Worksheets","SheetNames","NamedRanges","DefinedNames","Chartsheets","ChartNames"];function fD(t){var e=[],r=Ee;return t||(t={}),t.Application="SheetJS",e[e.length]=Or,e[e.length]=Ee("Properties",null,{xmlns:qr.EXT_PROPS,"xmlns:vt":qr.vt}),Pu.forEach(function(n){if(t[n[1]]!==void 0){var s;switch(n[2]){case"string":s=Mt(String(t[n[1]]));break;case"bool":s=t[n[1]]?"true":"false";break}s!==void 0&&(e[e.length]=r(n[0],s))}}),e[e.length]=r("HeadingPairs",r("vt:vector",r("vt:variant","<vt:lpstr>
817Worksheets</vt:lpstr>")+r("vt:variant",r("vt:i4",String(t.Worksheets))),{size:2,baseType:"variant"})),e[e.length]=r("TitlesOfParts",r("vt:vector",t.SheetNames.map(function(n){return"<vt:lpstr>"+Mt(n)+"</vt:lpstr>"}).join(""),{size:t.Worksheets,baseType:"lpstr"})),e.length>2&&(e[e.length]="</Properties>",e[1]=e[1].replace("/>",">")),e.join("")}function hD(t){var e=[Or,Ee("Properties",null,{xmlns:qr.CUST_PROPS,"xmlns:vt":qr.vt})];if(!t)return e.join("");var r=1;return mn(t).forEach(function(s){++r,e[e.length]=Ee("property",Rre(t[s]),{fmtid:"{D5CDD505-2E9C-101B-9397-08002B2CF9AE}",pid:r,name:Mt(s)})}),e.length>2&&(e[e.length]="</Properties>",e[1]=e[1].replace("/>",">")),e.join("")}var RN={Title:"Title",Subject:"Subject",Author:"Author",Keywords:"Keywords",Comments:"Description",LastAuthor:"LastAuthor",RevNumber:"Revision",Application:"AppName",LastPrinted:"LastPrinted",CreatedDate:"Created",ModifiedDate:"LastSaved",Category:"Category",Manager:"Manager",Company:"Company",AppVersion:"Version",ContentStatus:"ContentStatus",Identifier:"Identifier",Language:"Language"};function pne(t,e){var r=[];return mn(RN).map(function(n){for(var s=0;s<Kl.length;++s)if(Kl[s][1]==n)return Kl[s];for(s=0;s<Pu.length;++s)if(Pu[s][1]==n)return Pu[s];throw n}).forEach(function(n){if(t[n[1]]!=null){var s=e&&e.Props&&e.Props[n[1]]!=null?e.Props[n[1]]:t[n[1]];switch(n[2]){case"date":s=new Date(s).toISOString().replace(/\.\d*Z/,"Z");break}typeof s=="number"?s=String(s):s===!0||s===!1?s=s?"1":"0":s instanceof Date&&(s=new Date(s).toISOString().replace(/\.\d*Z/,"")),r.push(un(RN[n[1]]||n[1],s))}}),Ee("DocumentProperties",r.join(""),{xmlns:xs.o})}function mne(t,e){var r=["Worksheets","SheetNames"],n="CustomDocumentProperties",s=[];return t&&mn(t).forEach(function(i){if(Object.prototype.hasOwnProperty.call(t,i)){for(var o=0;o<Kl.length;++o)if(i==Kl[o][1])return;for(o=0;o<Pu.length;++o)if(i==Pu[o][1])return;for(o=0;o<r.length;++o)if(i==r[o])return;var a=t[i],l="string";typeof a=="number"?(l="float",a=String(a)):a===!0||a===!1?(l="boolean",a=a?"1":"0"):a=String(a),s.push(Ee(vN(i),a,{"dt:dt":l}))}}),e&&mn(e).forEach(function(i){if(Object.prototype.hasOwnProperty.call(e,i)&&!(t&&Object.prototype.hasOwnProperty.call(t,i))){var o=e[i],a="string";typeof o=="number"?(a="float",o=String(o)):o===!0||o===!1?(a="boolean",o=o?"1":"0"):o instanceof Date?(a="dateTime.tz",o=o.toISOString()):o=String(o),s.push(Ee(vN(i),o,{"dt:dt":a}))}}),"<"+n+' xmlns="'+xs.o+'">'+s.join("")+"</"+n+">"}function gne(t){var e=typeof t=="string"?new Date(Date.parse(t)):t,r=e.getTime()/1e3+11644473600,n=r%Math.pow(2,32),s=(r-n)/Math.pow(2,32);n*=1e7,s*=1e7;var i=n/Math.pow(2,32)|0;i>0&&(n=n%Math.pow(2,32),s+=i);var o=ie(8);return o.write_shift(4,n),o.write_shift(4,s),o}function ON(t,e){var r=ie(4),n=ie(4);switch(r.write_shift(4,t==80?31:t),t){case 3:n.write_shift(-4,e);break;case 5:n=ie(8),n.write_shift(8,e,"f");break;case 11:n.write_shift(4,e?1:0);break;case 64:n=gne(e);break;case 31:case 80:for(n=ie(4+2*(e.length+1)+(e.length%2?0:2)),n.write_shift(4,e.length+1),n.write_shift(0,e,"dbcs");n.l!=n.length;)n.write_shift(1,0);break;default:throw new Error("TypedPropertyValue unrecognized type "+t+" "+e)}return cn([r,n])}var pD=["CodePage","Thumbnail","_PID_LINKBASE","_PID_HLINKS","SystemIdentifier","FMTID"];function xne(t){switch(typeof t){case"boolean":return 11;case"number":return(t|0)==t?3:5;case"string":return 31;case"object":if(t instanceof Date)return 64;break}return-1}function PN(t,e,r){var n=ie(8),s=[],i=[],o=8,a=0,l=ie(8),u=ie(8);if(l.write_shift(4,2),l.write_shift(4,1200),u.write_shift(4,1),i.push(l),s.push(u),o+=8+l.length,!e){u=ie(8),u.write_shift(4,0),s.unshift(u);var d=[ie(4)];for(d[0].write_shift(4,t.length),a=0;a<t.length;++a){var f=t[a][0];for(l=ie(8+2*(f.length+1)+(f.length%2?0:2)),l.write_shift(4,a+2),l.write_shift(4,f.length+1),l.write_shift(0,f,"dbcs");l.l!=l.length;)l.write_shift(1,0);d.push(l)}l=cn(d),i.unshift(l),o+=8+l.length}for(a=0;a<t.length;++a)if(!(e&&!e[t[a][0]])&&!(pD.indexOf(t[a][0])>-1||dD.indexOf(t[a][0])>-1)&&t[a][1]!=null){var h=t[a][1],p=0;if(e){p=+e[t[a][0]];var g=r[p];if(g.p=="version"&&typeof h=="string"){var m=h.split(".");h=(+m[0]<<16)+(+m[1]||0)}l=ON(g.t,h)}else{var x=xne(h);x==-1&&(x=31,h=String(h)),l=ON(x,h)}i.push(l),u=ie(8),u.write_shift(4,e?p:2+a),s.push(u),o+=8+l.length}var v=8*(i.length+1);for(a=0;a<i.length;++a)s[a].write_shift(4,v),v+=i[a].length;return n.write_shift(4,o),n.write_shift(4,i.length),cn([n].concat(s).concat(i))}function MN(t,e,r,n,s,i){var o=ie(s?68:48),a=[o];o.write_shift(2,65534),o.write_shift(2,0),o.write_shift(4,842412599),o.write_shift(16,Bt.utils.consts.HEADER_CLSID,"hex"),o.write_shift(4,s?2:1),o.write_shift(16,e,"hex"),o.write_shift(4,s?68:48);var l=PN(t,r,n);if(a.push(l),s){var u=PN(s,null,null);o.write_shift(16,i,"hex"),o.write_shift(4,68+l.length),a.push(u)}return cn(a)}function vne(t,e){e||(e=ie(t));for(var r=0;r<t;++r)e.write_shift(1,0);return e}function yne(t,e){return t.read_shift(e)===1}function Ln(t,e){return e||(e=ie(2)),e.write_shift(2,+!!t),e}function mD(t){return t.read_shift(2,"u")}function Hs(t,e){return e||(e=ie(2)),e.write_shift(2,t),e}function gD(t,e,r){return r||(r=ie(2)),r.write_shift(1,e=="e"?+t:+!!t),r.write_shift(1,e=="e"?1:0),r}function xD(t,e,r){var n=t.read_shift(r&&r.biff>=12?2:1),s="sbcs-cont";if(r&&r.biff>=8,!r||r.biff==8){var i=t.read_shift(1);i&&(s="dbcs-cont")}else r.biff==12&&(s="wstr");r.biff>=2&&r.biff<=5&&(s="cpstr");var o=n?t.read_shift(n,s):"";return o}function wne(t){var e=t.t||"",r=ie(3);r.write_shift(2,e.length),r.write_shift(1,1);var n=ie(2*e.length);n.write_shift(2*e.length,e,"utf16le");var s=[r,n];return cn(s)}function bne(t,e,r){var n;if(r){if(r.biff>=2&&r.biff<=5)return t.read_shift(e,"cpstr");if(r.biff>=12)return t.read_shift(e,"dbcs-cont")}var s=t.read_shift(1);return s===0?n=t.read_shift(e,"sbcs-cont"):n=t.read_shift(e,"dbcs-cont"),n}function Sne(t,e,r){var n=t.read_shift(r&&r.biff==2?1:2);return n===0?(t.l++,""):bne(t,n,r)}function _ne(t,e,r){if(r.biff>5)return Sne(t,e,r);var n=t.read_shift(1);return n===0?(t.l++,""):t.read_shift(n,r.biff<=4||!t.lens?"cpstr":"sbcs-cont")}function vD(t,e,r){return r||(r=ie(3+2*t.length)),r.write_shift(2,t.length),r.write_shift(1,1),r.write_shift(31,t,"utf16le"),r}function IN(t,e){e||(e=ie(6+t.length*2)),e.write_shift(4,1+t.length);for(var r=0;r<t.length;++r)e.write_shift(2,t.charCodeAt(r));return e.write_shift(2,0),e}function Ene(t){var e=ie(512),r=0,n=t.Target;n.slice(0,7)=="file://"&&(n=n.slice(7));var s=n.indexOf("#"),i=s>-1?31:23;switch(n.charAt(0)){case"#":i=28;break;case".":i&=-3;break}e.write_shift(4,2),e.write_shift(4,i);var o=[8,6815827,6619237,4849780,83];for(r=0;r<o.length;++r)e.write_shift(4,o[r]);if(i==28)n=n.slice(1),IN(n,e);else if(i&2){for(o="e0 c9 ea 79 f9 ba ce 11 8c 82 00 aa 00 4b a9 0b".split(" "),r=0;r<o.length;++r)e.write_shift(1,parseInt(o[r],16));var a=s>-1?n.slice(0,s):n;for(e.write_shift(4,2*(a.length+1)),r=0;r<a.length;++r)e.write_shift(2,a.charCodeAt(r));e.write_shift(2,0),i&8&&IN(s>-1?n.slice(s+1):"",e)}else{for(o="03 03 00 00 00 00 00 00 c0 00 00 00 00 00 00 46".split(" "),r=0;r<o.length;++r)e.write_shift(1,parseInt(o[r],16));for(var l=0;n.slice(l*3,l*3+3)=="../"||n.slice(l*3,l*3+3)=="..\\";)++l;for(e.write_shift(2,l),e.write_shift(4,n.length-3*l+1),r=0;r<n.length-3*l;
vendor: 1,596 bytes, line 817
817++r)e.write_shift(1,n.charCodeAt(r+3*l)&255);for(e.write_shift(1,0),e.write_shift(2,65535),e.write_shift(2,57005),r=0;r<6;++r)e.write_shift(4,0)}return e.slice(0,e.l)}function dc(t,e,r,n){return n||(n=ie(6)),n.write_shift(2,t),n.write_shift(2,e),n.write_shift(2,r||0),n}function Tne(t,e,r){var n=r.biff>8?4:2,s=t.read_shift(n),i=t.read_shift(n,"i"),o=t.read_shift(n,"i");return[s,i,o]}function Cne(t){var e=t.read_shift(2),r=t.read_shift(2),n=t.read_shift(2),s=t.read_shift(2);return{s:{c:n,r:e},e:{c:s,r}}}function yD(t,e){return e||(e=ie(8)),e.write_shift(2,t.s.r),e.write_shift(2,t.e.r),e.write_shift(2,t.s.c),e.write_shift(2,t.e.c),e}function y_(t,e,r){var n=1536,s=16;switch(r.bookType){case"biff8":break;case"biff5":n=1280,s=8;break;case"biff4":n=4,s=6;break;case"biff3":n=3,s=6;break;case"biff2":n=2,s=4;break;case"xla":break;default:throw new Error("unsupported BIFF version")}var i=ie(s);return i.write_shift(2,n),i.write_shift(2,e),s>4&&i.write_shift(2,29282),s>6&&i.write_shift(2,1997),s>8&&(i.write_shift(2,49161),i.write_shift(2,1),i.write_shift(2,1798),i.write_shift(2,0)),i}function kne(t,e){var r=!e||e.biff==8,n=ie(r?112:54);for(n.write_shift(e.biff==8?2:1,7),r&&n.write_shift(1,0),n.write_shift(4,859007059),n.write_shift(4,5458548|(r?0:536870912));n.l<n.length;)n.write_shift(1,r?0:32);return n}function Nne(t,e){var r=!e||e.biff>=8?2:1,n=ie(8+r*t.name.length);n.write_shift(4,t.pos),n.write_shift(1,t.hs||0),n.write_shift(1,t.dt),n.write_shift(1,t.name.length),e.biff>=8&&n.write_shift(1,1),n.write_shift(r*t.name.length,t.name,e.biff<8?"sbcs":"utf16le");var s=n.slice(0,n.l);
vendor: 9,248 bytes, line 817
817return s.l=n.l,s}function Ane(t,e){var r=ie(8);r.write_shift(4,t.Count),r.write_shift(4,t.Unique);for(var n=[],s=0;s<t.length;++s)n[s]=wne(t[s]);var i=cn([r].concat(n));return i.parts=[r.length].concat(n.map(function(o){return o.length})),i}function jne(){var t=ie(18);return t.write_shift(2,0),t.write_shift(2,0),t.write_shift(2,29280),t.write_shift(2,17600),t.write_shift(2,56),t.write_shift(2,0),t.write_shift(2,0),t.write_shift(2,1),t.write_shift(2,500),t}function Rne(t){var e=ie(18),r=1718;return t&&t.RTL&&(r|=64),e.write_shift(2,r),e.write_shift(4,0),e.write_shift(4,64),e.write_shift(4,0),e.write_shift(4,0),e}function One(t,e){var r=t.name||"Arial",n=e&&e.biff==5,s=n?15+r.length:16+2*r.length,i=ie(s);return i.write_shift(2,(t.sz||12)*20),i.write_shift(4,0),i.write_shift(2,400),i.write_shift(4,0),i.write_shift(2,0),i.write_shift(1,r.length),n||i.write_shift(1,1),i.write_shift((n?1:2)*r.length,r,n?"sbcs":"utf16le"),i}function Pne(t,e,r,n){var s=ie(10);return dc(t,e,n,s),s.write_shift(4,r),s}function Mne(t,e,r,n,s){var i=!s||s.biff==8,o=ie(8+ +i+(1+i)*r.length);return dc(t,e,n,o),o.write_shift(2,r.length),i&&o.write_shift(1,1),o.write_shift((1+i)*r.length,r,i?"utf16le":"sbcs"),o}function Ine(t,e,r,n){var s=r&&r.biff==5;n||(n=ie(s?3+e.length:5+2*e.length)),n.write_shift(2,t),n.write_shift(s?1:2,e.length),s||n.write_shift(1,1),n.write_shift((s?1:2)*e.length,e,s?"sbcs":"utf16le");var i=n.length>n.l?n.slice(0,n.l):n;return i.l==null&&(i.l=i.length),i}function Dne(t,e){var r=e.biff==8||!e.biff?4:2,n=ie(2*r+6);return n.write_shift(r,t.s.r),n.write_shift(r,t.e.r+1),n.write_shift(2,t.s.c),n.write_shift(2,t.e.c+1),n.write_shift(2,0),n}function DN(t,e,r,n){var s=r&&r.biff==5;n||(n=ie(s?16:20)),n.write_shift(2,0),t.style?(n.write_shift(2,t.numFmtId||0),n.write_shift(2,65524)):(n.write_shift(2,t.numFmtId||0),n.write_shift(2,e<<4));var i=0;return t.numFmtId>0&&s&&(i|=1024),n.write_shift(4,i),n.write_shift(4,0),s||n.write_shift(4,0),n.write_shift(2,0),n}function Lne(t){var e=ie(8);return e.write_shift(4,0),e.write_shift(2,0),e.write_shift(2,0),e}function Fne(t,e,r,n,s,i){var o=ie(8);return dc(t,e,n,o),gD(r,i,o),o}function Bne(t,e,r,n){var s=ie(14);return dc(t,e,n,s),uc(r,s),s}function $ne(t,e,r){if(r.biff<8)return zne(t,e,r);for(var n=[],s=t.l+e,i=t.read_shift(r.biff>8?4:2);i--!==0;)n.push(Tne(t,r.biff>8?12:6,r));if(t.l!=s)throw new Error("Bad ExternSheet: "+t.l+" != "+s);return n}function zne(t,e,r){t[t.l+1]==3&&t[t.l]++;var n=xD(t,e,r);return n.charCodeAt(0)==3?n.slice(1):n}function Une(t){var e=ie(2+t.length*8);e.write_shift(2,t.length);for(var r=0;r<t.length;++r)yD(t[r],e);return e}function Hne(t){var e=ie(24),r=Gr(t[0]);e.write_shift(2,r.r),e.write_shift(2,r.r),e.write_shift(2,r.c),e.write_shift(2,r.c);for(var n="d0 c9 ea 79 f9 ba ce 11 8c 82 00 aa 00 4b a9 0b".split(" "),s=0;s<16;++s)e.write_shift(1,parseInt(n[s],16));return cn([e,Ene(t[1])])}function Vne(t){var e=t[1].Tooltip,r=ie(10+2*(e.length+1));r.write_shift(2,2048);var n=Gr(t[0]);r.write_shift(2,n.r),r.write_shift(2,n.r),r.write_shift(2,n.c),r.write_shift(2,n.c);for(var s=0;s<e.length;++s)r.write_shift(2,e.charCodeAt(s));return r.write_shift(2,0),r}function Wne(t){return t||(t=ie(4)),t.write_shift(2,1),t.write_shift(2,1),t}function qne(t,e,r){if(!r.cellStyles)return co(t,e);var n=r&&r.biff>=12?4:2,s=t.read_shift(n),i=t.read_shift(n),o=t.read_shift(n),a=t.read_shift(n),l=t.read_shift(2);n==2&&(t.l+=2);var u={s,e:i,w:o,ixfe:a,flags:l};return(r.biff>=5||!r.biff)&&(u.level=l>>8&7),u}function Gne(t,e){var r=ie(12);r.write_shift(2,e),r.write_shift(2,e),r.write_shift(2,t.width*256),r.write_shift(2,0);var n=0;return t.hidden&&(n|=1),r.write_shift(1,n),n=t.level||0,r.write_shift(1,n),r.write_shift(2,0),r}function Kne(t){for(var e=ie(2*t),r=0;r<t;++r)e.write_shift(2,r+1);return e}function Xne(t,e,r){var n=ie(15);return xp(n,t,e),n.write_shift(8,r,"f"),n}function Yne(t,e,r){var n=ie(9);return xp(n,t,e),n.write_shift(2,r),n}var Jne=function(){var t={1:437,2:850,3:1252,4:1e4,100:852,101:866,102:865,103:861,104:895,105:620,106:737,107:857,120:950,121:949,122:936,123:932,124:874,125:1255,126:1256,150:10007,151:10029,152:10006,200:1250,201:1251,202:1254,203:1253,0:20127,8:865,9:437,10:850,11:437,13:437,14:850,15:437,16:850,17:437,18:850,19:932,20:850,21:437,22:850,23:865,24:437,25:437,26:850,27:437,28:863,29:850,31:852,34:852,35:852,36:860,37:850,38:866,55:850,64:852,77:936,78:949,79:950,80:874,87:1252,88:1252,89:1252,108:863,134:737,135:852,136:857,204:1257,255:16969},e=l_({1:437,2:850,3:1252,4:1e4,100:852,101:866,102:865,103:861,104:895,105:620,106:737,107:857,120:950,121:949,122:936,123:932,124:874,125:1255,126:1256,150:10007,151:10029,152:10006,200:1250,201:1251,202:1254,203:1253,0:20127});function r(a,l){var u=[],d=cc(1);switch(l.type){case"base64":d=Ti(Vo(a));break;case"binary":d=Ti(a);break;case"buffer":case"array":d=a;break}ms(d,0);var f=d.read_shift(1),h=!!(f&136),p=!1,g=!1;switch(f){case 2:break;case 3:break;case 48:p=!0,h=!0;break;case 49:p=!0,h=!0;break;case 131:break;case 139:break;case 140:g=!0;break;case 245:break;default:throw new Error("DBF Unsupported Version: "+f.toString(16))}var m=0,x=521;f==2&&(m=d.read_shift(2)),d.l+=3,f!=2&&(m=d.read_shift(4)),m>1048576&&(m=1e6),f!=2&&(x=d.read_shift(2));var v=d.read_shift(2),y=l.codepage||1252;f!=2&&(d.l+=16,d.read_shift(1),d[d.l]!==0&&(y=t[d[d.l]]),d.l+=1,d.l+=2),g&&(d.l+=36);for(var b=[],S={},E=Math.min(d.length,f==2?521:x-10-(p?264:0)),C=g?32:11;d.l<E&&d[d.l]!=13;)switch(S={},S.name=Tl.utils.decode(y,d.slice(d.l,d.l+C)).replace(/[\u0000\r\n].*$/g,""),d.l+=C,S.type=String.fromCharCode(d.read_shift(1)),f!=2&&!g&&(S.offset=d.read_shift(4)),S.len=d.read_shift(1),f==2&&(S.offset=d.read_shift(2)),S.dec=d.read_shift(1),S.name.length&&b.push(S),f!=2&&(d.l+=g?13:14),S.type){case"B":(!p||S.len!=8)&&l.WTF&&console.log("Skipping "+S.name+":"+S.type);break;case"G":case"P":l.WTF&&console.log("Skipping "+S.name+":"+S.type);break;case"+":case"0":case"@":case"C":case"D":case"F":case"I":case"L":case"M":case"N":case"O":case"T":case"Y":break;default:throw new Error("Unknown Field Type: "+S.type)}if(d[d.l]!==13&&(d.l=x-1),d.read_shift(1)!==13)throw new Error("DBF Terminator not found "+d.l+" "+d[d.l]);d.l=x;var _=0,A=0;for(u[0]=[],A=0;A!=b.length;++A)u[0][A]=b[A].name;for(;m-- >0;){if(d[d.l]===42){d.l+=v;continue}for(++d.l,u[++_]=[],A=0,A=0;A!=b.length;++A){var N=d.slice(d.l,d.l+b[A].len);d.l+=b[A].len,ms(N,0);var D=Tl.utils.decode(y,N);switch(b[A].type){case"C":D.trim().length&&(u[_][A]=D.replace(/\s+$/,""));break;case"D":D.length===8?u[_][A]=new Date(+D.slice(0,4),+D.slice(4,6)-1,+D.slice(6,8)):u[_][A]=D;break;case"F":u[_][A]=parseFloat(D.trim());break;case"+":case"I":u[_][A]=g?N.read_shift(-4,"i")^2147483648:N.read_shift(4,"i");break;case"L":switch(D.trim().toUpperCase()){case"Y":case"T":u[_][A]=!0;break;case"N":case"F":u[_][A]=!1;break;case"":case"?":break;default:throw new Error("DBF Unrecognized L:|"+D+"|")}break;case"M":if(!h)throw new Error("DBF Unexpected MEMO for type "+f.toString(16));u[_][A]="##MEMO##"+(g?parseInt(D.trim(),10):N.read_shift(4));break;case"N":D=D.replace(/\u0000/g,"").trim(),D&&D!="."&&(u[_][A]=+D||0);break;case"@":u[_][A]=new Date(N.read_shift(-8,"f")-621356832e5);break;case"T":u[_][A]=new Date((N.read_shift(4)-2440588)*864e5+N.read_shift(4));break;case"Y":u[_][A]=N.read_shift(4,"i")/1e4+N.read_shift(4,"i")/1e4*Math.pow(2,32);break;case"O":u[_][A]=-N.read_shift(-8,"f");break;case"B":if(p&&b[A].len==8){u[_][A]=N.read_shift(8,"f");break}case"G":case"P":N.l+=b[A].len;break;case"0":if(b[A].name==="_NullFlags")break;default:throw new Error("DBF Unsupported data type "+b[A].type)}}}if(f!=2&&d.l<d.length&&d[d.l++]!=26)throw new Error("DBF EOF Marker missing "+(d.l-1)+" of "+d.length+" "+d[d.l-1].toString(16));return l&&l.sheetRows&&(u=u.slice(0,l.sheetRows)),l.DBF=b,u}function n(a,l){var u=l||{};u.dateNF||(u.dateNF="yyyymmdd");var d=jd(r(a,u),u);return d["!cols"]=u.DBF.map(function(f){return{wch:f.len,DBF:f}}),delete u.DBF,d}function s(a,l){try{return _c(n(a,l),l)}catch(u){if(l&&l.WTF)throw u}return{SheetNames:[],Sheets:{}}}var i={B:8,C:250,L:1,D:8,"?":0,"":0};function o(a,l){var u=l||{};if(+u.codepage>=0&&Oh(+u.codepage),u.type=="string")throw new Error("Cannot write DBF to JS string");var d=ls(),f=Fg(a,{header:1,raw:!0,cellDates:!0}),h=f[0],p=f.slice(1),g=a["!cols"]||[],m=0,x=0,v=0,y=1;for(m=0;m<h.length;++m){if(((g[m]||{}).DBF||{}).name){h[m]=g[m].DBF.name,++v;continue}if(h[m]!=null){if(++v,typeof h[m]=="number"&&(h[m]=h[m].toString(10)),typeof h[m]!="string")throw new Error("DBF Invalid column name "+h[m]+" |"+typeof h[m]+"|");if(h.indexOf(h[m])!==m){for(x=0;x<1024;++x)if(h.indexOf(h[m]+"_"+x)==-1){h[m]+="_"+x;break}}}}var b=Gt(a["!ref"]),S=[],E=[],C=[];for(m=0;m<=b.e.c-b.s.c;++m){var _="",A="",N=0,D=[];for(x=0;x<p.length;++x)p[x][m]!=null&&D.push(p[x][m]);if(D.length==0||h[m]==null){S[m]="?";continue}for(x=0;x<D.length;++x){switch(typeof D[x]){case"number":A="B";break;case"string":A="C";break;case"boolean":A="L";break;case"object":A=D[x]instanceof Date?"D":"C";break;default:A="C"}N=Math.max(N,String(D[x]).length),_=_&&_!=A?"C":A}N>250&&(N=250),A=((g[m]||{}).DBF||{}).type,A=="C"&&g[m].DBF.len>N&&(N=g[m].DBF.len),_=="B"&&A=="N"&&(_="N",C[m]=g[m].DBF.dec,N=g[m].DBF.len),E[m]=_
vendor: 12,736 bytes, lines 817-830
817=="C"||A=="N"?N:i[_]||0,y+=E[m],S[m]=_}var V=d.next(32);for(V.write_shift(4,318902576),V.write_shift(4,p.length),V.write_shift(2,296+32*v),V.write_shift(2,y),m=0;m<4;++m)V.write_shift(4,0);for(V.write_shift(4,0|(+e[bI]||3)<<8),m=0,x=0;m<h.length;++m)if(h[m]!=null){var H=d.next(32),U=(h[m].slice(-10)+"\0\0\0\0\0\0\0\0\0\0\0").slice(0,11);H.write_shift(1,U,"sbcs"),H.write_shift(1,S[m]=="?"?"C":S[m],"sbcs"),H.write_shift(4,x),H.write_shift(1,E[m]||i[S[m]]||0),H.write_shift(1,C[m]||0),H.write_shift(1,2),H.write_shift(4,0),H.write_shift(1,0),H.write_shift(4,0),H.write_shift(4,0),x+=E[m]||i[S[m]]||0}var K=d.next(264);for(K.write_shift(4,13),m=0;m<65;++m)K.write_shift(4,0);for(m=0;m<p.length;++m){var te=d.next(y);for(te.write_shift(1,0),x=0;x<h.length;++x)if(h[x]!=null)switch(S[x]){case"L":te.write_shift(1,p[m][x]==null?63:p[m][x]?84:70);break;case"B":te.write_shift(8,p[m][x]||0,"f");break;case"N":var se="0";for(typeof p[m][x]=="number"&&(se=p[m][x].toFixed(C[x]||0)),v=0;v<E[x]-se.length;++v)te.write_shift(1,32);te.write_shift(1,se,"sbcs");break;case"D":p[m][x]?(te.write_shift(4,("0000"+p[m][x].getFullYear()).slice(-4),"sbcs"),te.write_shift(2,("00"+(p[m][x].getMonth()+1)).slice(-2),"sbcs"),te.write_shift(2,("00"+p[m][x].getDate()).slice(-2),"sbcs")):te.write_shift(8,"00000000","sbcs");break;case"C":var he=String(p[m][x]!=null?p[m][x]:"").slice(0,E[x]);for(te.write_shift(1,he,"sbcs"),v=0;v<E[x]-he.length;++v)te.write_shift(1,32);break}}return d.next(1).write_shift(1,26),d.end()}return{to_workbook:s,to_sheet:n,from_sheet:o}}(),Qne=function(){var t={AA:"À",BA:"Á",CA:"Â",DA:195,HA:"Ä",JA:197,AE:"È",BE:"É",CE:"Ê",HE:"Ë",AI:"Ì",BI:"Í",CI:"Î",HI:"Ï",AO:"Ò",BO:"Ó",CO:"Ô",DO:213,HO:"Ö",AU:"Ù",BU:"Ú",CU:"Û",HU:"Ü",Aa:"à",Ba:"á",Ca:"â",Da:227,Ha:"ä",Ja:229,Ae:"è",Be:"é",Ce:"ê",He:"ë",Ai:"ì",Bi:"í",Ci:"î",Hi:"ï",Ao:"ò",Bo:"ó",Co:"ô",Do:245,Ho:"ö",Au:"ù",Bu:"ú",Cu:"û",Hu:"ü",KC:"Ç",Kc:"ç",q:"æ",z:"œ",a:"Æ",j:"Œ",DN:209,Dn:241,Hy:255,S:169,c:170,R:174,"B ":180,0:176,1:177,2:178,3:179,5:181,6:182,7:183,Q:185,k:186,b:208,i:216,l:222,s:240,y:248,"!":161,'"':162,"#":163,"(":164,"%":165,"'":167,"H ":168,"+":171,";":187,"<":188,"=":189,">":190,"?":191,"{":223},e=new RegExp("\x1BN("+mn(t).join("|").replace(/\|\|\|/,"|\\||").replace(/([?()+])/g,"\\$1")+"|\\|)","gm"),r=function(h,p){var g=t[p];return typeof g=="number"?oN(g):g},n=function(h,p,g){var m=p.charCodeAt(0)-32<<4|g.charCodeAt(0)-48;return m==59?h:oN(m)};t["|"]=254;function s(h,p){switch(p.type){case"base64":return i(Vo(h),p);case"binary":return i(h,p);case"buffer":return i(Nt&&Buffer.isBuffer(h)?h.toString("binary"):fp(h),p);case"array":return i(av(h),p)}throw new Error("Unrecognized type "+p.type)}function i(h,p){var g=h.split(/[\n\r]+/),m=-1,x=-1,v=0,y=0,b=[],S=[],E=null,C={},_=[],A=[],N=[],D=0,V;for(+p.codepage>=0&&Oh(+p.codepage);v!==g.length;++v){D=0;var H=g[v].trim().replace(/\x1B([\x20-\x2F])([\x30-\x3F])/g,n).replace(e,r),U=H.replace(/;;/g,"\0").split(";").map(function(B){return B.replace(/\u0000/g,";")}),K=U[0],te;if(H.length>0)switch(K){case"ID":break;case"E":break;case"B":break;case"O":break;case"W":break;case"P":U[1].charAt(0)=="P"&&S.push(H.slice(3).replace(/;;/g,";"));break;case"C":var se=!1,he=!1,G=!1,O=!1,W=-1,ee=-1;for(y=1;y<U.length;++y)switch(U[y].charAt(0)){case"A":break;case"X":x=parseInt(U[y].slice(1))-1,he=!0;break;case"Y":for(m=parseInt(U[y].slice(1))-1,he||(x=0),V=b.length;V<=m;++V)b[V]=[];break;case"K":te=U[y].slice(1),te.charAt(0)==='"'?te=te.slice(1,te.length-1):te==="TRUE"?te=!0:te==="FALSE"?te=!1:isNaN(Mo(te))?isNaN(Mh(te).getDate())||(te=zn(te)):(te=Mo(te),E!==null&&PI(E)&&(te=LI(te))),se=!0;break;case"E":O=!0;var k=Yse(U[y].slice(1),{r:m,c:x});b[m][x]=[b[m][x],k];break;case"S":G=!0,b[m][x]=[b[m][x],"S5S"];break;case"G":break;case"R":W=parseInt(U[y].slice(1))-1;break;case"C":ee=parseInt(U[y].slice(1))-1;break;default:if(p&&p.WTF)throw new Error("SYLK bad record "+H)}if(se&&(b[m][x]&&b[m][x].length==2?b[m][x][0]=te:b[m][x]=te,E=null),G){if(O)throw new Error("SYLK shared formula cannot have own formula");var z=W>-1&&b[W][ee];if(!z||!z[1])throw new Error("SYLK shared formula cannot find base");b[m][x][1]=Jse(z[1],{r:m-W,c:x-ee})}break;case"F":var I=0;for(y=1;y<U.length;++y)switch(U[y].charAt(0)){case"X":x=parseInt(U[y].slice(1))-1,++I;break;case"Y":for(m=parseInt(U[y].slice(1))-1,V=b.length;V<=m;++V)b[V]=[];break;case"M":D=parseInt(U[y].slice(1))/20;break;case"F":break;case"G":break;case"P":E=S[parseInt(U[y].slice(1))];break;case"S":break;case"D":break;case"N":break;case"W":for(N=U[y].slice(1).split(" "),V=parseInt(N[0],10);V<=parseInt(N[1],10);++V)D=parseInt(N[2],10),A[V-1]=D===0?{hidden:!0}:{wch:D},w_(A[V-1]);break;case"C":x=parseInt(U[y].slice(1))-1,A[x]||(A[x]={});break;case"R":m=parseInt(U[y].slice(1))-1,_[m]||(_[m]={}),D>0?(_[m].hpt=D,_[m].hpx=ED(D)):D===0&&(_[m].hidden=!0);break;default:if(p&&p.WTF)throw new Error("SYLK bad record "+H)}I<1&&(E=null);break;default:if(p&&p.WTF)throw new Error("SYLK bad record "+H)}}return _.length>0&&(C["!rows"]=_),A.length>0&&(C["!cols"]=A),p&&p.sheetRows&&(b=b.slice(0,p.sheetRows)),[b,C]}function o(h,p){var g=s(h,p),m=g[0],x=g[1],v=jd(m,p);return mn(x).forEach(function(y){v[y]=x[y]}),v}function a(h,p){return _c(o(h,p),p)}function l(h,p,g,m){var x="C;Y"+(g+1)+";X"+(m+1)+";K";switch(h.t){case"n":x+=h.v||0,h.f&&!h.F&&(x+=";E"+S_(h.f,{r:g,c:m}));break;case"b":x+=h.v?"TRUE":"FALSE";break;case"e":x+=h.w||h.v;break;case"d":x+='"'+(h.w||h.v)+'"';break;case"s":x+='"'+h.v.replace(/"/g,"").replace(/;/g,";;")+'"';break}return x}function u(h,p){p.forEach(function(g,m){var x="F;W"+(m+1)+" "+(m+1)+" ";g.hidden?x+="0":(typeof g.width=="number"&&!g.wpx&&(g.wpx=Mg(g.width)),typeof g.wpx=="number"&&!g.wch&&(g.wch=Ig(g.wpx)),typeof g.wch=="number"&&(x+=Math.round(g.wch))),x.charAt(x.length-1)!=" "&&h.push(x)})}function d(h,p){p.forEach(function(g,m){var x="F;";g.hidden?x+="M0;":g.hpt?x+="M"+20*g.hpt+";":g.hpx&&(x+="M"+20*Dg(g.hpx)+";"),x.length>2&&h.push(x+"R"+(m+1))})}function f(h,p){var g=["ID;PWXL;N;E"],m=[],x=Gt(h["!ref"]),v,y=Array.isArray(h),b=`\r
818`;g.push("P;PGeneral"),g.push("F;P0;DG0G8;M255"),h["!cols"]&&u(g,h["!cols"]),h["!rows"]&&d(g,h["!rows"]),g.push("B;Y"+(x.e.r-x.s.r+1)+";X"+(x.e.c-x.s.c+1)+";D"+[x.s.c,x.s.r,x.e.c,x.e.r].join(" "));for(var S=x.s.r;S<=x.e.r;++S)for(var E=x.s.c;E<=x.e.c;++E){var C=Dt({r:S,c:E});v=y?(h[S]||[])[E]:h[C],!(!v||v.v==null&&(!v.f||v.F))&&m.push(l(v,h,S,E))}return g.join(b)+b+m.join(b)+b+"E"+b}return{to_workbook:a,to_sheet:o,from_sheet:f}}(),Zne=function(){function t(i,o){switch(o.type){case"base64":return e(Vo(i),o);case"binary":return e(i,o);case"buffer":return e(Nt&&Buffer.isBuffer(i)?i.toString("binary"):fp(i),o);case"array":return e(av(i),o)}throw new Error("Unrecognized type "+o.type)}function e(i,o){for(var a=i.split(`
819`),l=-1,u=-1,d=0,f=[];d!==a.length;++d){if(a[d].trim()==="BOT"){f[++l]=[],u=0;continue}if(!(l<0)){var h=a[d].trim().split(","),p=h[0],g=h[1];++d;for(var m=a[d]||"";(m.match(/["]/g)||[]).length&1&&d<a.length-1;)m+=`
820`+a[++d];switch(m=m.trim(),+p){case-1:if(m==="BOT"){f[++l]=[],u=0;continue}else if(m!=="EOD")throw new Error("Unrecognized DIF special command "+m);break;case 0:m==="TRUE"?f[l][u]=!0:m==="FALSE"?f[l][u]=!1:isNaN(Mo(g))?isNaN(Mh(g).getDate())?f[l][u]=g:f[l][u]=zn(g):f[l][u]=Mo(g),++u;break;case 1:m=m.slice(1,m.length-1),m=m.replace(/""/g,'"'),m&&m.match(/^=".*"$/)&&(m=m.slice(2,-1)),f[l][u++]=m!==""?m:null;break}if(m==="EOD")break}}return o&&o.sheetRows&&(f=f.slice(0,o.sheetRows)),f}function r(i,o){return jd(t(i,o),o)}function n(i,o){return _c(r(i,o),o)}var s=function(){var i=function(l,u,d,f,h){l.push(u),l.push(d+","+f),l.push('"'+h.replace(/"/g,'""')+'"')},o=function(l,u,d,f){l.push(u+","+d),l.push(u==1?'"'+f.replace(/"/g,'""')+'"':f)};return function(l){var u=[],d=Gt(l["!ref"]),f,h=Array.isArray(l);i(u,"TABLE",0,1,"sheetjs"),i(u,"VECTORS",0,d.e.r-d.s.r+1,""),i(u,"TUPLES",0,d.e.c-d.s.c+1,""),i(u,"DATA",0,0,"");for(var p=d.s.r;p<=d.e.r;++p){o(u,-1,0,"BOT");for(var g=d.s.c;g<=d.e.c;++g){var m=Dt({r:p,c:g});if(f=h?(l[p]||[])[g]:l[m],!f){o(u,1,0,"");continue}switch(f.t){case"n":var x=f.w;!x&&f.v!=null&&(x=f.v),x==null?f.f&&!f.F?o(u,1,0,"="+f.f):o(u,1,0,""):o(u,0,x,"V");break;case"b":o(u,0,f.v?1:0,f.v?"TRUE":"FALSE");break;case"s":o(u,1,0,isNaN(f.v)?f.v:'="'+f.v+'"');break;case"d":f.w||(f.w=sl(f.z||gr[14],cs(zn(f.v)))),o(u,0,f.w,"V");break;default:o(u,1,0,"")}}}o(u,-1,0,"EOD");var v=`\r
821`,y=u.join(v);return y}}();return{to_workbook:n,to_sheet:r,from_sheet:s}}(),wD=function(){function t(f){return f.replace(/\\b/g,"\\").replace(/\\c/g,":").replace(/\\n/g,`
822`)}function e(f){return f.replace(/\\/g,"\\b").replace(/:/g,"\\c").replace(/\n/g,"\\n")}function r(f,h){for(var p=f.split(`
823`),g=-1,m=-1,x=0,v=[];x!==p.length;++x){var y=p[x].trim().split(":");if(y[0]==="cell"){var b=Gr(y[1]);if(v.length<=b.r)for(g=v.length;g<=b.r;++g)v[g]||(v[g]=[]);switch(g=b.r,m=b.c,y[2]){case"t":v[g][m]=t(y[3]);break;case"v":v[g][m]=+y[3];break;case"vtf":var S=y[y.length-1];case"vtc":switch(y[3]){case"nl":v[g][m]=!!+y[4];break;default:v[g][m]=+y[4];break}y[2]=="vtf"&&(v[g][m]=[v[g][m],S])}}}return h&&h.sheetRows&&(v=v.slice(0,h.sheetRows)),v}function n(f,h){return jd(r(f,h),h)}function s(f,h){return _c(n(f,h),h)}var i=["socialcalc:version:1.5","MIME-Version: 1.0","Content-Type: multipart/mixed; boundary=SocialCalcSpreadsheetControlSave"].join(`
824`),o=["--SocialCalcSpreadsheetControlSave","Content-type: text/plain; charset=UTF-8"].join(`
825`)+`
826`,a=["# SocialCalc Spreadsheet Control Save","part:sheet"].join(`
827`),l="--SocialCalcSpreadsheetControlSave--";function u(f){if(!f||!f["!ref"])return"";for(var h=[],p=[],g,m="",x=Ns(f["!ref"]),v=Array.isArray(f),y=x.s.r;y<=x.e.r;++y)for(var b=x.s.c;b<=x.e.c;++b)if(m=Dt({r:y,c:b}),g=v?(f[y]||[])[b]:f[m],!(!g||g.v==null||g.t==="z")){switch(p=["cell",m,"t"],g.t){case"s":case"str":p.push(e(g.v));break;case"n":g.f?(p[2]="vtf",p[3]="n",p[4]=g.v,p[5]=e(g.f)):(p[2]="v",p[3]=g.v);break;case"b":p[2]="vt"+(g.f?"f":"c"),p[3]="nl",p[4]=g.v?"1":"0",p[5]=e(g.f||(g.v?"TRUE":"FALSE"));break;case"d":var S=cs(zn(g.v));p[2]="vtc",p[3]="nd",p[4]=""+S,p[5]=g.w||sl(g.z||gr[14],S);break;case"e":continue}h.push(p.join(":"))}return h.push("sheet:c:"+(x.e.c-x.s.c+1)+":r:"+(x.e.r-x.s.r+1)+":tvf:1"),h.push("valueformat:1:text-wiki"),h.join(`
828`)}function d(f){return[i,o,a,o,u(f),l].join(`
829`)}return{to_workbook:s,to_sheet:n,from_sheet:d}}(),ese=function(){function t(d,f,h,p,g){g.raw?f[h][p]=d:d===""||(d==="TRUE"?f[h][p]=!0:d==="FALSE"?f[h][p]=!1:isNaN(Mo(d))?isNaN(Mh(d).getDate())?f[h][p]=d:f[h][p]=zn(d):f[h][p]=Mo(d))}function e(d,f){var h=f||{},p=[];if(!d||d.length===0)return p;for(var g=d.split(/[\r\n]/),m=g.length-1;m>=0&&g[m].length===0;)--m;for(var x=10,v=0,y=0;y<=m;++y)v=g[y].indexOf(" "),v==-1?v=g[y].length:v++,x=Math.max(x,v);for(y=0;y<=m;++y){p[y]=[];var b=0;for(t(g[y].slice(0,x).trim(),p,y,b,h),b=1;b<=(g[y].length-x)/10+1;++b)t(g[y].slice(x+(b-1)*10,x+b*10).trim(),p,y,b,h)}return h.sheetRows&&(p=p.slice(0,h.sheetRows)),p}var r={44:",",9:"	",59:";",124:"|"},n={44:3,9:2,59:1,124:0};function s(d){for(var f={},h=!1,p=0,g=0;p<d.length;++p)(g=d.charCodeAt(p))==34?h=!h:!h&&g in r&&(f[g]=(f[g]||0)+1);g=[];for(p in f)Object.prototype.hasOwnProperty.call(f,p)&&g.push([f[p],p]);if(!g.length){f=n;for(p in f)Object.prototype.hasOwnProperty.call(f,p)&&g.push([f[p],p])}return g.sort(function(m,x){return m[0]-x[0]||n[m[1]]-n[x[1]]}),r[g.pop()[1]]||44}function i(d,f){var h=f||{},p="",g=h.dense?[]:{},m={s:{c:0,r:0},e:{c:0,r:0}};d.slice(0,4)=="sep="?d.charCodeAt(5)==13&&d.charCodeAt(6)==10?(p=d.charAt(4),d=d.slice(7)):d.charCodeAt(5)==13||d.charCodeAt(5)==10?(p=d.charAt(4),d=d.slice(6)):p=s(d.slice(0,1024)):h&&h.FS?p=h.FS:p=s(d.slice(0,1024));var x=0,v=0,y=0,b=0,S=0,E=p.charCodeAt(0),C=!1,_=0,A=d.charCodeAt(0);d=d.replace(/\r\n/mg,`
830`);var N=h.dateNF!=null?gre(h.dateNF):null;function D(){var V=d.slice(b,S),H={};if(V.charAt(0)=='"'&&V.charAt(V.length-1)=='"'&&(V=V.slice(1,-1).replace(/""/g,'"')),V.length===0)H.t="z";else if(h.raw)H.t="s",H.v=V;else if(V.trim().length===0)H.t="s",H.v=V;else if(V.charCodeAt(0)==61)V.charCodeAt(1)==34&&V.charCodeAt(V.length-1)==34?(H.t="s",H.v=V.slice(2,-1).replace(/""/g,'"')):Qse(V)?(H.t="n",H.f=V.slice(1)):(H.t="s",H.v=V);else if(V=="TRUE")H.t="b",H.v=!0;else if(V=="FALSE")H.t="b",H.v=!1;else if(!isNaN(y=Mo(V)))H.t="n",h.cellText!==!1&&(H.w=V),H.v=y;else if(!isNaN(Mh(V).getDate())||N&&V.match(N)){H.z=h.dateNF||gr[14];var U=0;N&&V.match(N)&&(V=xre(V,h.dateNF,V.match(N)||[]),U=1),h.cellDates?(H.t="d",H.v=zn(V,U)):(H.t="n",H.v=cs(zn(V,U))),h.cellText!==!1&&(H.w=sl(H.z,H.v instanceof Date?cs(H.v):H.v)),h.cellNF||delete H.z}else H.t="s",H.v=V;if(H.t=="z"||(h.dense?(g[x]||(g[x]=[]),g[x][v]=H):g[Dt({c:v,r:x}
vendor: 6,766 bytes, lines 830-831
830)]=H),b=S+1,A=d.charCodeAt(b),m.e.c<v&&(m.e.c=v),m.e.r<x&&(m.e.r=x),_==E)++v;else if(v=0,++x,h.sheetRows&&h.sheetRows<=x)return!0}e:for(;S<d.length;++S)switch(_=d.charCodeAt(S)){case 34:A===34&&(C=!C);break;case E:case 10:case 13:if(!C&&D())break e;break}return S-b>0&&D(),g["!ref"]=Nr(m),g}function o(d,f){return!(f&&f.PRN)||f.FS||d.slice(0,4)=="sep="||d.indexOf("	")>=0||d.indexOf(",")>=0||d.indexOf(";")>=0?i(d,f):jd(e(d,f),f)}function a(d,f){var h="",p=f.type=="string"?[0,0,0,0]:fce(d,f);switch(f.type){case"base64":h=Vo(d);break;case"binary":h=d;break;case"buffer":f.codepage==65001?h=d.toString("utf8"):f.codepage&&typeof Tl<"u"?h=Tl.utils.decode(f.codepage,d):h=Nt&&Buffer.isBuffer(d)?d.toString("binary"):fp(d);break;case"array":h=av(d);break;case"string":h=d;break;default:throw new Error("Unrecognized type "+f.type)}return p[0]==239&&p[1]==187&&p[2]==191?h=Uf(h.slice(3)):f.type!="string"&&f.type!="buffer"&&f.codepage==65001?h=Uf(h):f.type=="binary"&&typeof Tl<"u"&&f.codepage&&(h=Tl.utils.decode(f.codepage,Tl.utils.encode(28591,h))),h.slice(0,19)=="socialcalc:version:"?wD.to_sheet(f.type=="string"?h:Uf(h),f):o(h,f)}function l(d,f){return _c(a(d,f),f)}function u(d){for(var f=[],h=Gt(d["!ref"]),p,g=Array.isArray(d),m=h.s.r;m<=h.e.r;++m){for(var x=[],v=h.s.c;v<=h.e.c;++v){var y=Dt({r:m,c:v});if(p=g?(d[m]||[])[v]:d[y],!p||p.v==null){x.push("          ");continue}for(var b=(p.w||(Wo(p),p.w)||"").slice(0,10);b.length<10;)b+=" ";x.push(b+(v===0?" ":""))}f.push(x.join(""))}return f.join(`
831`)}return{to_workbook:l,to_sheet:a,from_sheet:u}}(),LN=function(){function t(k,z,I){if(k){ms(k,k.l||0);for(var B=I.Enum||W;k.l<k.length;){var q=k.read_shift(2),X=B[q]||B[65535],ae=k.read_shift(2),ce=k.l+ae,ne=X.f&&X.f(k,ae,I);if(k.l=ce,z(ne,X,q))return}}}function e(k,z){switch(z.type){case"base64":return r(Ti(Vo(k)),z);case"binary":return r(Ti(k),z);case"buffer":case"array":return r(k,z)}throw"Unsupported type "+z.type}function r(k,z){if(!k)return k;var I=z||{},B=I.dense?[]:{},q="Sheet1",X="",ae=0,ce={},ne=[],Ae=[],je={s:{r:0,c:0},e:{r:0,c:0}},Xe=I.sheetRows||0;if(k[2]==0&&(k[3]==8||k[3]==9)&&k.length>=16&&k[14]==5&&k[15]===108)throw new Error("Unsupported Works 3 for Mac file");if(k[2]==2)I.Enum=W,t(k,function(ve,yt,mt){switch(mt){case 0:I.vers=ve,ve>=4096&&(I.qpro=!0);break;case 6:je=ve;break;case 204:ve&&(X=ve);break;case 222:X=ve;break;case 15:case 51:I.qpro||(ve[1].v=ve[1].v.slice(1));case 13:case 14:case 16:mt==14&&(ve[2]&112)==112&&(ve[2]&15)>1&&(ve[2]&15)<15&&(ve[1].z=I.dateNF||gr[14],I.cellDates&&(ve[1].t="d",ve[1].v=LI(ve[1].v))),I.qpro&&ve[3]>ae&&(B["!ref"]=Nr(je),ce[q]=B,ne.push(q),B=I.dense?[]:{},je={s:{r:0,c:0},e:{r:0,c:0}},ae=ve[3],q=X||"Sheet"+(ae+1),X="");var Kt=I.dense?(B[ve[0].r]||[])[ve[0].c]:B[Dt(ve[0])];if(Kt){Kt.t=ve[1].t,Kt.v=ve[1].v,ve[1].z!=null&&(Kt.z=ve[1].z),ve[1].f!=null&&(Kt.f=ve[1].f);break}I.dense?(B[ve[0].r]||(B[ve[0].r]=[]),B[ve[0].r][ve[0].c]=ve[1]):B[Dt(ve[0])]=ve[1];break}},I);else if(k[2]==26||k[2]==14)I.Enum=ee,k[2]==14&&(I.qpro=!0,k.l=0),t(k,function(ve,yt,mt){switch(mt){case 204:q=ve;break;case 22:ve[1].v=ve[1].v.slice(1);case 23:case 24:case 25:case 37:case 39:case 40:if(ve[3]>ae&&(B["!ref"]=Nr(je),ce[q]=B,ne.push(q),B=I.dense?[]:{},je={s:{r:0,c:0},e:{r:0,c:0}},ae=ve[3],q="Sheet"+(ae+1)),Xe>0&&ve[0].r>=Xe)break;I.dense?(B[ve[0].r]||(B[ve[0].r]=[]),B[ve[0].r][ve[0].c]=ve[1]):B[Dt(ve[0])]=ve[1],je.e.c<ve[0].c&&(je.e.c=ve[0].c),je.e.r<ve[0].r&&(je.e.r=ve[0].r);break;case 27:ve[14e3]&&(Ae[ve[14e3][0]]=ve[14e3][1]);break;case 1537:Ae[ve[0]]=ve[1],ve[0]==ae&&(q=ve[1]);break}},I);else throw new Error("Unrecognized LOTUS BOF "+k[2]);if(B["!ref"]=Nr(je),ce[X||q]=B,ne.push(X||q),!Ae.length)return{SheetNames:ne,Sheets:ce};for(var Ve={},re=[],Se=0;Se<Ae.length;++Se)ce[ne[Se]]?(re.push(Ae[Se]||ne[Se]),Ve[Ae[Se]]=ce[Ae[Se]]||ce[ne[Se]]):(re.push(Ae[Se]),Ve[Ae[Se]]={"!ref":"A1"});return{SheetNames:re,Sheets:Ve}}function n(k,z){var I=z||{};if(+I.codepage>=0&&Oh(+I.codepage),I.type=="string")throw new Error("Cannot write WK1 to JS string");var B=ls(),q=Gt(k["!ref"]),X=Array.isArray(k),ae=[];Te(B,0,i(1030)),Te(B,6,l(q));for(var ce=Math.min(q.e.r,8191),ne=q.s.r;ne<=ce;++ne)for(var Ae=hn(ne),je=q.s.c;je<=q.e.c;++je){ne===q.s.r&&(ae[je]=En(je));var Xe=ae[je]+Ae,Ve=X?(k[ne]||[])[je]:k[Xe];if(!(!Ve||Ve.t=="z"))if(Ve.t=="n")(Ve.v|0)==Ve.v&&Ve.v>=-32768&&Ve.v<=32767?Te(B,13,p(ne,je,Ve.v)):Te(B,14,m(ne,je,Ve.v));else{var re=Wo(Ve);Te(B,15,f(ne,je,re.slice(0,239)))}}return Te(B,1),B.end()}function s(k,z){var I=z||{};if(+I.codepage>=0&&Oh(+I.codepage),I.type=="string")throw new Error("Cannot write WK3 to JS string");var B=ls();Te(B,0,o(k));for(var q=0,X=0;q<k.SheetNames.length;++q)(k.Sheets[k.SheetNames[q]]||{})["!ref"]&&Te(B,27,O(k.SheetNames[q],X++));var ae=0;for(q=0;q<k.SheetNames.length;++q){var ce=k.Sheets[k.SheetNames[q]];if(!(!ce||!ce["!ref"])){for(var ne=Gt(ce["!ref"]),Ae=Array.isArray(ce),je=[],Xe=Math.min(ne.e.r,8191),Ve=ne.s.r;Ve<=Xe;++Ve)for(var re=hn(Ve),Se=ne.s.c;Se<=ne.e.c;++Se){Ve===ne.s.r&&(je[Se]=En(Se));var ve=je[Se]+re,yt=Ae?(ce[Ve]||[])[Se]:ce[ve];if(!(!yt||yt.t=="z"))if(yt.t=="n")Te(B,23,D(Ve,Se,ae,yt.v));else{var mt=Wo(yt);Te(B,22,_(Ve,Se,ae,mt.slice(0,239)))}}++ae}}return Te(B,1),B.end()}function i(k){var z=ie(2);return z.write_shift(2,k),z}function o(k){var z=ie(26);z.write_shift(2,4096),z.write_shift(2,4),z.write_shift(4,0);for(var I=0,B=0,q=0,X=0;X<k.SheetNames.length;++X){var ae=k.SheetNames[X],ce=k.Sheets[ae];if(!(!ce||!ce["!ref"])){++q;var ne=Ns(ce["!ref"]);I<ne.e.r&&(I=ne.e.r),B<ne.e.c&&(B=ne.e.c)}}return I>8191&&(I=8191),z.write_shift(2,I),z.write_shift(1,q),z.write_shift(1,B),z.write_shift(2,0),z.write_shift(2,0),z.write_shift(1,1),z.write_shift(1,2),z.write_shift(4,0),z.write_shift(4,0),z}function a(k,z,I){var B={s:{c:0,r:0},e:{c:0,r:0}};return z==8&&I.qpro?(B.s.c=k.read_shift(1),k.l++,B.s.r=k.read_shift(2),B.e.c=k.read_shift(1),k.l++,B.e.r=k.read_shift(2),B):(B.s.c=k.read_shift(2),B.s.r=k.read_shift(2),z==12&&I.qpro&&(k.l+=2),B.e.c=k.read_shift(2),B.e.r=k.read_shift(2),z==12&&I.qpro&&(k.l+=2),B.s.c==65535&&(B.s.c=B.e.c=B.s.r=B.e.r=0),B)}function l(k){var z=ie(8);return z.write_shift(2,k.s.c),z.write_shift(2,k.s.r),z.write_shift(2,k.e.c),z.write_shift(2,k.e.r),z}function u(k,z,I){var B=[{c:0,r:0},{t:"n",v:0},0,0];return I.qpro&&I.vers!=20768?(B[0].c=k.read_shift(1),B[3]=k.read_shift(1),B[0].r=k.read_shift(2),k.l+=2):(B[2]=k.read_shift(1),B[0].c=k.read_shift(2),B[0].r=k.read_shift(2)),B}function d(k,z,I){var B=k.l+z,q=u(k,z,I);if(q[1].t="s",I.vers==20768){k.l++;var X=k.read_shift(1);return q[1].v=k.read_shift(X,"utf8"),q}return I.qpro&&k.l++,q[1].v=k.read_shift(B-k.l,"cstr"),q}function f(k,z,I){var B=ie(7+I.length);B.write_shift(1,255),B.write_shift(2,z),B.write_shift(2,k),B.write_shift(1,39);for(var q=0;q<B.length;
vendor: 8,657 bytes, line 831
831++q){var X=I.charCodeAt(q);B.write_shift(1,X>=128?95:X)}return B.write_shift(1,0),B}function h(k,z,I){var B=u(k,z,I);return B[1].v=k.read_shift(2,"i"),B}function p(k,z,I){var B=ie(7);return B.write_shift(1,255),B.write_shift(2,z),B.write_shift(2,k),B.write_shift(2,I,"i"),B}function g(k,z,I){var B=u(k,z,I);return B[1].v=k.read_shift(8,"f"),B}function m(k,z,I){var B=ie(13);return B.write_shift(1,255),B.write_shift(2,z),B.write_shift(2,k),B.write_shift(8,I,"f"),B}function x(k,z,I){var B=k.l+z,q=u(k,z,I);if(q[1].v=k.read_shift(8,"f"),I.qpro)k.l=B;else{var X=k.read_shift(2);S(k.slice(k.l,k.l+X),q),k.l+=X}return q}function v(k,z,I){var B=z&32768;return z&=-32769,z=(B?k:0)+(z>=8192?z-16384:z),(B?"":"$")+(I?En(z):hn(z))}var y={51:["FALSE",0],52:["TRUE",0],70:["LEN",1],80:["SUM",69],81:["AVERAGEA",69],82:["COUNTA",69],83:["MINA",69],84:["MAXA",69],111:["T",1]},b=["","","","","","","","","","+","-","*","/","^","=","<>","<=",">=","<",">","","","","","&","","","","","","",""];function S(k,z){ms(k,0);for(var I=[],B=0,q="",X="",ae="",ce="";k.l<k.length;){var ne=k[k.l++];switch(ne){case 0:I.push(k.read_shift(8,"f"));break;case 1:X=v(z[0].c,k.read_shift(2),!0),q=v(z[0].r,k.read_shift(2),!1),I.push(X+q);break;case 2:{var Ae=v(z[0].c,k.read_shift(2),!0),je=v(z[0].r,k.read_shift(2),!1);X=v(z[0].c,k.read_shift(2),!0),q=v(z[0].r,k.read_shift(2),!1),I.push(Ae+je+":"+X+q)}break;case 3:if(k.l<k.length){console.error("WK1 premature formula end");return}break;case 4:I.push("("+I.pop()+")");break;case 5:I.push(k.read_shift(2));break;case 6:{for(var Xe="";ne=k[k.l++];)Xe+=String.fromCharCode(ne);I.push('"'+Xe.replace(/"/g,'""')+'"')}break;case 8:I.push("-"+I.pop());break;case 23:I.push("+"+I.pop());break;case 22:I.push("NOT("+I.pop()+")");break;case 20:case 21:ce=I.pop(),ae=I.pop(),I.push(["AND","OR"][ne-20]+"("+ae+","+ce+")");break;default:if(ne<32&&b[ne])ce=I.pop(),ae=I.pop(),I.push(ae+b[ne]+ce);else if(y[ne]){if(B=y[ne][1],B==69&&(B=k[k.l++]),B>I.length){console.error("WK1 bad formula parse 0x"+ne.toString(16)+":|"+I.join("|")+"|");return}var Ve=I.slice(-B);I.length-=B,I.push(y[ne][0]+"("+Ve.join(",")+")")}else return ne<=7?console.error("WK1 invalid opcode "+ne.toString(16)):ne<=24?console.error("WK1 unsupported op "+ne.toString(16)):ne<=30?console.error("WK1 invalid opcode "+ne.toString(16)):ne<=115?console.error("WK1 unsupported function opcode "+ne.toString(16)):console.error("WK1 unrecognized opcode "+ne.toString(16))}}I.length==1?z[1].f=""+I[0]:console.error("WK1 bad formula parse |"+I.join("|")+"|")}function E(k){var z=[{c:0,r:0},{t:"n",v:0},0];return z[0].r=k.read_shift(2),z[3]=k[k.l++],z[0].c=k[k.l++],z}function C(k,z){var I=E(k);return I[1].t="s",I[1].v=k.read_shift(z-4,"cstr"),I}function _(k,z,I,B){var q=ie(6+B.length);q.write_shift(2,k),q.write_shift(1,I),q.write_shift(1,z),q.write_shift(1,39);for(var X=0;X<B.length;++X){var ae=B.charCodeAt(X);q.write_shift(1,ae>=128?95:ae)}return q.write_shift(1,0),q}function A(k,z){var I=E(k);I[1].v=k.read_shift(2);var B=I[1].v>>1;if(I[1].v&1)switch(B&7){case 0:B=(B>>3)*5e3;break;case 1:B=(B>>3)*500;break;case 2:B=(B>>3)/20;break;case 3:B=(B>>3)/200;break;case 4:B=(B>>3)/2e3;break;case 5:B=(B>>3)/2e4;break;case 6:B=(B>>3)/16;break;case 7:B=(B>>3)/64;break}return I[1].v=B,I}function N(k,z){var I=E(k),B=k.read_shift(4),q=k.read_shift(4),X=k.read_shift(2);if(X==65535)return B===0&&q===3221225472?(I[1].t="e",I[1].v=15):B===0&&q===3489660928?(I[1].t="e",I[1].v=42):I[1].v=0,I;var ae=X&32768;return X=(X&32767)-16446,I[1].v=(1-ae*2)*(q*Math.pow(2,X+32)+B*Math.pow(2,X)),I}function D(k,z,I,B){var q=ie(14);if(q.write_shift(2,k),q.write_shift(1,I),q.write_shift(1,z),B==0)return q.write_shift(4,0),q.write_shift(4,0),q.write_shift(2,65535),q;var X=0,ae=0,ce=0,ne=0;return B<0&&(X=1,B=-B),ae=Math.log2(B)|0,B/=Math.pow(2,ae-31),ne=B>>>0,ne&2147483648||(B/=2,++ae,ne=B>>>0),B-=ne,ne|=2147483648,ne>>>=0,B*=Math.pow(2,32),ce=B>>>0,q.write_shift(4,ce),q.write_shift(4,ne),ae+=16383+(X?32768:0),q.write_shift(2,ae),q}function V(k,z){var I=N(k);return k.l+=z-14,I}function H(k,z){var I=E(k),B=k.read_shift(4);return I[1].v=B>>6,I}function U(k,z){var I=E(k),B=k.read_shift(8,"f");return I[1].v=B,I}function K(k,z){var I=U(k);return k.l+=z-10,I}function te(k,z){return k[k.l+z-1]==0?k.read_shift(z,"cstr"):""}function se(k,z){var I=k[k.l++];I>z-1&&(I=z-1);for(var B="";B.length<I;)B+=String.fromCharCode(k[k.l++]);return B}function he(k,z,I){if(!(!I.qpro||z<21)){var B=k.read_shift(1);k.l+=17,k.l+=1,k.l+=2;var q=k.read_shift(z-21,"cstr");return[B,q]}}function G(k,z){for(var I={},B=k.l+z;k.l<B;){var q=k.read_shift(2);if(q==14e3){for(I[q]=[0,""],I[q][0]=k.read_shift(2);k[k.l];)I[q][1]+=String.fromCharCode(k[k.l]),k.l++;k.l++}}return I}function O(k,z){var I=ie(5+k.length);I.write_shift(2,14e3),I.write_shift(2,z);for(var B=0;B<k.length;++B){var q=k.charCodeAt(B);I[I.l++]=q>127?95:q}return I[I.l++]=0,I}var W={0:{n:"BOF",f:mD},1:{n:"EOF"},2:{n:"CALCMODE"},3:{n:"CALCORDER"},4:{n:"SPLIT"},5:{n:"SYNC"},6:{n:"RANGE",f:a},7:{n:"WINDOW1"},8:{n:"COLW1"},9:{n:"WINTWO"},10:{n:"COLW2"},11:{n:"NAME"},12:{n:"BLANK"},13:{n:"INTEGER",f:h},14:{n:"NUMBER",f:g},15:{n:"LABEL",f:d},16:{n:"FORMULA",f:x},24:{n:"TABLE"},25:{n:"ORANGE"},26:{n:"PRANGE"},27:{n:"SRANGE"},28:{n:"FRANGE"},29:{n:"KRANGE1"},32:{n:"HRANGE"},35:{n:"KRANGE2"},36:{n:"PROTEC"},37:{n:"FOOTER"},38:{n:"HEADER"},39:{n:"SETUP"},40:{n:"MARGINS"},41:{n:"LABELFMT"},42:{n:"TITLES"},43:{n:"SHEETJS"},45:{n:"GRAPH"},46:{n:"NGRAPH"},47:{n:"CALCCOUNT"},48:{n:"UNFORMATTED"},49:{n:"CURSORW12"},50:{n:"WINDOW"},51:{n:"STRING",f:d},55:{n:"PASSWORD"},56:{n:"LOCKED"},60:{n:"QUERY"},61:{n:"QUERYNAME"},62:{n:"PRINT"},63:{n:"PRINTNAME"},64:{n:"GRAPH2"},65:{n:"GRAPHNAME"},66:{n:"ZOOM"},67:{n:"SYMSPLIT"},68:{n:"NSROWS"},69:{n:"NSCOLS"},70:{n:"RULER"},71:{n:"NNAME"},72:{n:"ACOMM"},73:{n:"AMACRO"},74:{n:"PARSE"},102:{n:"PRANGES??"},103:{n:"RRANGES??"},104:{n:"FNAME??"},105:{n:"MRANGES??"},204:{n:"SHEETNAMECS",f:te},222:{n:"SHEETNAMELP",f:se},65535:{n:""}},ee={0:{n:"BOF"},1:{n:"EOF"},2:{n:"PASSWORD"},3:{n:"CALCSET"},4:{n:"WINDOWSET"},5:{n:"SHEETCELLPTR"},6:{n:"SHEETLAYOUT"},7:{n:"COLUMNWIDTH"},8:{n:"HIDDENCOLUMN"},9:{n:"USERRANGE"},10:{n:"SYSTEMRANGE"},11:{n:"ZEROFORCE"},12:{n:"SORTKEYDIR"},13:{n:"FILESEAL"},14:{n:"DATAFILLNUMS"},15:{n:"PRINTMAIN"},16:{n:"PRINTSTRING"},17:{n:"GRAPHMAIN"},18:{n:"GRAPHSTRING"},19:{n:"??"},20:{n:"ERRCELL"},21:{n:"NACELL"},22:{n:"LABEL16",f:C},23:{n:"NUMBER17",f:N},24:{n:"NUMBER18",f:A},25:{n:"FORMULA19",f:V},26:{n:"FORMULA1A"},27:{n:"XFORMAT",f:G},28:{n:"DTLABELMISC"},29:{n:"DTLABELCELL"},30:{n:"GRAPHWINDOW"},31:{n:"CPA"},32:{n:"LPLAUTO"},33:{n:"QUERY"},34:{n:"HIDDENSHEET"},35:{n:"??"},37:{n:"NUMBER25",f:H},38:{n:"??"},39:{n:"NUMBER27",f:U},40:{n:"FORMULA28",f:K},142:{n:"??"},147:{n:"??"},150:{n:"??"},151:{n:"??"},152:{n:"??"},153:{n:"??"},154:{n:"??"},155:{n:"??"},156:{n:"??"},163:{n:"??"},174:{n:"??"},175:{n:"??"},176:{n:"??"},177:{n:"??"},184:{n:"??"},185:{n:"??"},186:{n:"??"},187:{n:"??"},188:{n:"??"},195:{n:"??"},201:{n:"??"},204:{n:"SHEETNAMECS",f:te},205:{n:"??"},206:{n:"??"},207:{n:"??"},208:{n:"??"},256:{n:"??"},259:{n:"??"},260:{n:"??"},261:{n:"??"},262:{n:"??"},263:{n:"??"},265:{n:"??"},266:{n:"??"},267:{n:"??"},268:{n:"??"},270:{n:"??"},271:{n:"??"},384:{n:"??"},389:{n:"??"},390:{n:"??"},393:{n:"??"},396:{n:"??"},512:{n:"??"},514:{n:"??"},513:{n:"??"},516:{n:"??"},517:{n:"??"},640:{n:"??"},641:{n:"??"},642:{n:"??"},643:{n:"??"},644:{n:"??"},645:{n:"??"},646:{n:"??"},647:{n:"??"},648:{n:"??"},658:{n:"??"},659:{n:"??"},660:{n:"??"},661:{n:"??"},662:{n:"??"},665:{n:"??"},666:{n:"??"},768:{n:"??"},772:{n:"??"},1537:{n:"SHEETINFOQP",f:he},1600:{n:"??"},1602:{n:"??"},1793:{n:"??"},1794:{n:"??"},1795:{n:"??"},1796:{n:"??"},1920:{n:"??"},2048:{n:"??"},2049:{n:"??"},2052:{n:"??"},2688:{n:"??"},10998:{n:"??"},12849:{n:"??"},28233:{n:"??"},28484:{n:"??"},65535:{n:""}};return{sheet_to_wk1:n,book_to_wk3:s,to_workbook:e}}(),tse=/^\s|\s$|[\t\n\r]/;function bD(t,e){if(!e.bookSST)return"";var r=[Or];r[r.length]=Ee("sst",null,{xmlns:Ad[0],count:t.Count,uniqueCount:t.Unique});for(var n=0;n!=t.length;++n)if(t[n]!=null){var s=t[n],i="<si>";s.r?i+=s.r:(i+="<t",s.t||(s.t=""),s.t.match(tse)&&(i+=' xml:space="preserve"'),i+=">"+Mt(s.t)+"</t>"),i+="</si>",r[r.length]=i}return r.length>2&&(r[r.length]="</sst>",r[1]=r[1].replace("/>",">")),r.join("")}function rse(t){return[t.read_shift(4),t.read_shift(4)]}function nse(t,e){return e||(e=ie(8)),e.write_shift(4,t.Count),e.write_shift(4,t.Unique),e}var sse=Kre;function ise(t){var e=ls();me(e,159,nse(t));for(var r=0;r<t.length;++r)me(e,19,sse(t[r]));return me(e,160),e.end()}function ose(t){for(var e=[],r=t.split(""),n=0;n<r.length;
vendor: 4,969 bytes, line 831
831++n)e[n]=r[n].charCodeAt(0);return e}function SD(t){var e=0,r,n=ose(t),s=n.length+1,i,o,a,l,u;for(r=cc(s),r[0]=n.length,i=1;i!=s;++i)r[i]=n[i-1];for(i=s-1;i>=0;--i)o=r[i],a=e&16384?1:0,l=e<<1&32767,u=a|l,e=u^o;return e^52811}var ase=function(){function t(s,i){switch(i.type){case"base64":return e(Vo(s),i);case"binary":return e(s,i);case"buffer":return e(Nt&&Buffer.isBuffer(s)?s.toString("binary"):fp(s),i);case"array":return e(av(s),i)}throw new Error("Unrecognized type "+i.type)}function e(s,i){var o=i||{},a=o.dense?[]:{},l=s.match(/\\trowd.*?\\row\b/g);if(!l.length)throw new Error("RTF missing table");var u={s:{c:0,r:0},e:{c:0,r:l.length-1}};return l.forEach(function(d,f){Array.isArray(a)&&(a[f]=[]);for(var h=/\\\w+\b/g,p=0,g,m=-1;g=h.exec(d);){switch(g[0]){case"\\cell":var x=d.slice(p,h.lastIndex-g[0].length);if(x[0]==" "&&(x=x.slice(1)),++m,x.length){var v={v:x,t:"s"};Array.isArray(a)?a[f][m]=v:a[Dt({r:f,c:m})]=v}break}p=h.lastIndex}m>u.e.c&&(u.e.c=m)}),a["!ref"]=Nr(u),a}function r(s,i){return _c(t(s,i),i)}function n(s){for(var i=["{\\rtf1\\ansi"],o=Gt(s["!ref"]),a,l=Array.isArray(s),u=o.s.r;u<=o.e.r;++u){i.push("\\trowd\\trautofit1");for(var d=o.s.c;d<=o.e.c;++d)i.push("\\cellx"+(d+1));for(i.push("\\pard\\intbl"),d=o.s.c;d<=o.e.c;++d){var f=Dt({r:u,c:d});a=l?(s[u]||[])[d]:s[f],!(!a||a.v==null&&(!a.f||a.F))&&(i.push(" "+(a.w||(Wo(a),a.w))),i.push("\\cell"))}i.push("\\pard\\intbl\\row")}return i.join("")+"}"}return{to_workbook:r,to_sheet:t,from_sheet:n}}();function FN(t){for(var e=0,r=1;e!=3;++e)r=r*256+(t[e]>255?255:t[e]<0?0:t[e]);return r.toString(16).toUpperCase().slice(1)}var lse=6,Io=lse;function Mg(t){return Math.floor((t+Math.round(128/Io)/256)*Io)}function Ig(t){return Math.floor((t-5)/Io*100+.5)/100}function Eb(t){return Math.round((t*Io+5)/Io*256)/256}function w_(t){t.width?(t.wpx=Mg(t.width),t.wch=Ig(t.wpx),t.MDW=Io):t.wpx?(t.wch=Ig(t.wpx),t.width=Eb(t.wch),t.MDW=Io):typeof t.wch=="number"&&(t.width=Eb(t.wch),t.wpx=Mg(t.width),t.MDW=Io),t.customWidth&&delete t.customWidth}var cse=96,_D=cse;function Dg(t){return t*96/_D}function ED(t){return t*_D/96}function use(t){var e=["<numFmts>"];return[[5,8],[23,26],[41,44],[50,392]].forEach(function(r){for(var n=r[0];n<=r[1];++n)t[n]!=null&&(e[e.length]=Ee("numFmt",null,{numFmtId:n,formatCode:Mt(t[n])}))}),e.length===1?"":(e[e.length]="</numFmts>",e[0]=Ee("numFmts",null,{count:e.length-2}).replace("/>",">"),e.join(""))}function dse(t){var e=[];return e[e.length]=Ee("cellXfs",null),t.forEach(function(r){e[e.length]=Ee("xf",null,r)}),e[e.length]="</cellXfs>",e.length===2?"":(e[0]=Ee("cellXfs",null,{count:e.length-2}).replace("/>",">"),e.join(""))}function TD(t,e){var r=[Or,Ee("styleSheet",null,{xmlns:Ad[0],"xmlns:vt":qr.vt})],n;return t.SSF&&(n=use(t.SSF))!=null&&(r[r.length]=n),r[r.length]='<fonts count="1"><font><sz val="12"/><color theme="1"/><name val="Calibri"/><family val="2"/><scheme val="minor"/></font></fonts>',r[r.length]='<fills count="2"><fill><patternFill patternType="none"/></fill><fill><patternFill patternType="gray125"/></fill></fills>',r[r.length]='<borders count="1"><border><left/><right/><top/><bottom/><diagonal/></border></borders>',r[r.length]='<cellStyleXfs count="1"><xf numFmtId="0" fontId="0" fillId="0" borderId="0"/></cellStyleXfs>',(n=dse(e.cellXfs))&&(r[r.length]=n),r[r.length]='<cellStyles count="1"><cellStyle name="Normal" xfId="0" builtinId="0"/></cellStyles>',r[r.length]='<dxfs count="0"/>',r[r.length]='<tableStyles count="0" defaultTableStyle="TableStyleMedium9" defaultPivotStyle="PivotStyleMedium4"/>',r.length>2&&(r[r.length]="</styleSheet>",r[1]=r[1].replace("/>",">")),r.join("")}function fse(t,e){var r=t.read_shift(2),n=Tn(t);return[r,n]}function hse(t,e,r){r||(r=ie(6+4*e.length)),r.write_shift(2,t),Kr(e,r);var n=r.length>r.l?r.slice(0,r.l):r;return r.l==null&&(r.l=r.length),n}function pse(t,e,r){var n={};n.sz=t.read_shift(2)/20;var s=tne(t);s.fItalic&&(n.italic=1),s.fCondense&&(n.condense=1),s.fExtend&&(n.extend=1),s.fShadow&&(n.shadow=1),s.fOutline&&(n.outline=1),s.fStrikeout&&(n.strike=1);var i=t.read_shift(2);switch(i===700&&(n.bold=1),t.read_shift(2)){case 1:n.vertAlign="superscript";break;case 2:n.vertAlign="subscript";break}var o=t.read_shift(1);o!=0&&(n.underline=o);var a=t.read_shift(1);a>0&&(n.family=a);var l=t.read_shift(1);switch(l>0&&(n.charset=l),t.l++,n.color=ene(t),t.read_shift(1)){case 1:n.scheme="major";break;case 2:n.scheme="minor";break}return n.name=Tn(t),n}function mse(t,e){e||(e=ie(25+4*32)),e.write_shift(2,t.sz*20),rne(t,e),e.write_shift(2,t.bold?700:400);var r=0;t.vertAlign=="superscript"?r=1:t.vertAlign=="subscript"&&(r=2),e.write_shift(2,r),e.write_shift(1,t.underline||0),e.write_shift(1,t.family||0),e.write_shift(1,t.charset||0),e.write_shift(1,0),Og(t.color,e);var n=0;return t.scheme=="major"&&(n=1),t.scheme=="minor"&&(n=2),e.write_shift(1,n),Kr(t.name,e),e.length>e.l?e.slice(0,e.l):e}var gse=["none","solid","mediumGray","darkGray","lightGray","darkHorizontal","dar
831kVertical","darkDown","darkUp","darkGrid","darkTrellis","lightHorizontal","lightVertical","lightDown","lightUp","lightGrid","lightTrellis","gray125","gray0625"],X1,xse=co;function BN(t,e){e||(e=ie(4*3+8*7+16*1)),X1||(X1=l_(gse));var r=X1[t.patternType];r==null&&(r=40),e.write_shift(4,r);var n=0;if(r!=40)for(Og({auto:1},e),Og({auto:1},e);n<12;++n)e.write_shift(4,0);else{for(;n<4;++n)e.write_shift(4,0);for(;n<12;++n)e.write_shift(4,0)}return e.length>e.l?e.slice(0,e.l):e}function vse(t,e){var r=t.l+e,n=t.read_shift(2),s=t.read_shift(2);return t.l=r,{ixfe:n,numFmtId:s}}function CD(t,e,r){r||(r=ie(16)),r.write_shift(2,e||0),r.write_shift(2,t.numFmtId||0),r.write_shift(2,0),r.write_shift(2,0),r.write_shift(2,0),r.write_shift(1,0),r.write_shift(1,0);var n=0;return r.write_shift(1,n),r.write_shift(1,0),r.write_shift(1,0),r.write_shift(1,0),r}function Zd(t,e){return e||(e=ie(10)),e.write_shift(1,0),e.write_shift(1,0),e.write_shift(4,0),e.write_shift(4,0),e}var yse=co;function wse(t,e){return e||(e=ie(51)),e.write_shift(1,0),Zd(null,e),Zd(null,e),Zd(null,e),Zd(null,e),Zd(null,e),e.length>e.l?e.slice(0,e.l):e}function bse(t,e){return e||(e=ie(12+4*10)),e.write_shift(4,t.xfId),e.write_shift(2,1),e.write_shift(1,+t.builtinId),e.write_shift(1,0),Rg(t.name||"",e),e.length>e.l?e.slice(0,e.l):e}function Sse(t,e,r){var n=ie(2052);return n.write_shift(4,t),Rg(e,n),Rg(r,n),n.length>n.l?n.slice(0,n.l):n}function _se(t,e){if(e){var r=0;[[5,8],[23,26],[41,44],[50,392]].forEach(function(n){for(var s=n[0];s<=n[1];++s)e[s]!=null&&++r}),r!=0&&(me(t,615,Pi(r)),[[5,8],[23,26],[41,44],[50,392]].forEach(function(n){for(var s=n[0];s<=n[1];++s)e[s]!=null&&me(t,44,hse(s,e[s]))}),me(t,616))}}function Ese(t){var e=1;me(t,611,Pi(e)),me(t,43,mse({sz:12,color:{theme:1},name:"Calibri",family:2,scheme:"minor"})),me(t,612)}function Tse(t){var e=2;me(t,603,Pi(e)),me(t,45,BN({patternType:"none"})),me(t,45,BN({patternType:"gray125"})),me(t,604)}function Cse(t){var e=1;me(t,613,Pi(e)),me(t,46,wse()),me(t,614)}function kse(t){var e=1;me(t,626,Pi(e)),me(t,47,CD({numFmtId:0,fontId:0,fillId:0,borderId:0},65535)),me(t,627)}function Nse(t,e){me(t,617,Pi(e.length)),e.forEach(function(r){me(t,47,CD(r,0))}),me(t,618)}function Ase(t){var e=1;me(t,619,Pi(e)),me(t,48,bse({xfId:0,builtinId:0,name:"Normal"})),me(t,620)}function jse(t){var e=0;me(t,505,Pi(e)),me(t,506)}function Rse(t){var e=0;me(t,508,Sse(e,"TableStyleMedium9","PivotStyleMedium4")),me(t,509)}function Ose(t,e){var r=ls();return me(r,278),_se(r,t.SSF),Ese(r),Tse(r),Cse(r),kse(r),Nse(r,e.cellXfs),Ase(r),jse(r),Rse(r),me(r,279),r.end()}function kD(t,e){if(e&&e.themeXLSX)return e.themeXLSX;if(t&&typeof t.raw=="string")return t.raw;var r=[Or];return r[r.length]='<a:theme xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" name="Office Theme">',r[r.length]="<a:themeElements>",r[r.length]='<a:clrScheme name="Office">',r[r.length]='<a:dk1><a:sysClr val="windowText" lastClr="000000"/></a:dk1>',r[r.length]='<a:lt1><a:sysClr val="window" lastClr="FFFFFF"/></a:lt1>',r[r.length]='<a:dk2><a:srgbClr val="1F497D"/></a:dk2>',r[r.length]='<a:lt2><a:srgbClr val="EEECE1"/></a:lt2>',r[r.length]='<a:accent1><a:srgbClr val="4F81BD"/></a:accent1>',r[r.length]='<a:accent2><a:srgbClr val="C0504D"/></a:accent2>',r[r.length]='<a:accent3><a:srgbClr val="9BBB59"/></a:accent3>',r[r.length]='<a:accent4><a:srgbClr val="8064A2"/></a:accent4>',r[r.length]='<a:accent5><a:srgbClr val="4BACC6"/></a:accent5>',r[r.length]='<a:accent6><a:srgbClr val="F79646"/></a:accent6>',r[r.length]='<a:hlink><a:srgbClr val="0000FF"/></a:hlink>',r[r.length]='<a:folHlink><a:srgbClr val="800080"/></a:folHlink>',r[r.length]="</a:clrScheme>",r[r.length]='<a:fontScheme name="Office">',r[r.length]="<a:majorFont>",r[r.length]='<a:latin typeface="Cambria"/>',r[r.length]='<a:ea typeface=""/>',r[r.length]='<a:cs typeface=""/>',r[r.length]='<a:font script="Jpan" typeface="MS Pゴシック"/>',r[r.length]='<a:font script="Hang" typeface="맑은 고딕"/>',r[r.length]='<a:font script="Hans" typeface="宋体"/>',r[r.length]='<a:font script="Hant" typeface="新細明體"/>
831',r[r.length]='<a:font script="Arab" typeface="Times New Roman"/>',r[r.length]='<a:font script="Hebr" typeface="Times New Roman"/>',r[r.length]='<a:font script="Thai" typeface="Tahoma"/>',r[r.length]='<a:font script="Ethi" typeface="Nyala"/>',r[r.length]='<a:font script="Beng" typeface="Vrinda"/>',r[r.length]='<a:font script="Gujr" typeface="Shruti"/>',r[r.length]='<a:font script="Khmr" typeface="MoolBoran"/>',r[r.length]='<a:font script="Knda" typeface="Tunga"/>',r[r.length]='<a:font script="Guru" typeface="Raavi"/>',r[r.length]='<a:font script="Cans" typeface="Euphemia"/>',r[r.length]='<a:font script="Cher" typeface="Plantagenet Cherokee"/>',r[r.length]='<a:font script="Yiii" typeface="Microsoft Yi Baiti"/>',r[r.length]='<a:font script="Tibt" typeface="Microsoft Himalaya"/>',r[r.length]='<a:font script="Thaa" typeface="MV Boli"/>',r[r.length]='<a:font script="Deva" typeface="Mangal"/>',r[r.length]='<a:font script="Telu" typeface="Gautami"/>',r[r.length]='<a:font script="Taml" typeface="Latha"/>',r[r.length]='<a:font script="Syrc" typeface="Estrangelo Edessa"/>',r[r.length]='<a:font script="Orya" typeface="Kalinga"/>',r[r.length]='<a:font script="Mlym" typeface="Kartika"/>',r[r.length]='<a:font script="Laoo" typeface="DokChampa"/>',r[r.length]='<a:font script="Sinh" typeface="Iskoola Pota"/>',r[r.length]='<a:font script="Mong" typeface="Mongolian Baiti"/>',r[r.length]='<a:font script="Viet" typeface="Times New Roman"/>',r[r.length]='<a:font script="Uigh" typeface="Microsoft Uighur"/>',r[r.length]='<a:font script="Geor" typeface="Sylfaen"/>',r[r.length]="</a:majorFont>",r[r.length]="<a:minorFont>",r[r.length]='<a:latin typeface="Calibri"/>',r[r.length]='<a:ea typeface=""/>',r[r.length]='<a:cs typeface=""/>',r[r.length]='<a:font script="Jpan" typeface="MS Pゴシック"/>',r[r.length]='<a:font script="Hang" typeface="맑은 고딕"/>',r[r.length]='<a:font script="Hans" typeface="宋体"/>',r[r.length]='<a:font script="Hant" typeface="新細明體"/>',r[r.length]='<a:font script="Arab" typeface="Arial"/>',r[r.length]='<a:font script="Hebr" typeface="Arial"/>',r[r.length]='<a:font script="Thai" typeface="Tahoma"/>',r[r.length]='<a:font script="Ethi" typeface="Nyala"/>',r[r.length]='<a:font script="Beng" typeface="Vrinda"/>',r[r.length]='<a:font script="Gujr" typeface="Shruti"/>',r[r.length]='<a:font script="Khmr" typeface="DaunPenh"/>',r[r.length]='<a:font script="Knda" typeface="Tunga"/>',r[r.length]='<a:font script="Guru" typeface="Raavi"/>',r[r.length]='<a:font script="Cans" typeface="Euphemia"/>',r[r.length]='<a:font script="Cher" typeface="Plantagenet Cherokee"/>',r[r.length]='<a:font script="Yiii" typeface="Microsoft Yi Baiti"/>',r[r.length]='<a:font script="Tibt" typeface="Microsoft Himalaya"/>',r[r.length]='<a:font script="Thaa" typeface="MV Boli"/>',r[r.length]='<a:font script="Deva" typeface="Mangal"/>',r[r.length]='<a:font script="Telu" typeface="Gautami"/>',r[r.length]='<a:font script="Taml" typeface="Latha"/>',r[r.length]='<a:font script="Syrc" typeface="Estrangelo Edessa"/>',r[r.length]='<a:font script="Orya" typeface="Kalinga"/>',r[r.length]='<a:font script="Mlym" typeface="Kartika"/>',r[r.length]='<a:font script="Laoo" typeface="DokChampa"/>',r[r.length]='<a:font script="Sinh" typeface="Iskoola Pota"/>',r[r.length]='<a:font script="Mong" typeface="Mongolian Baiti"/>',r[r.length]='<a:font script="Viet" typeface="Arial"/>',r[r.length]='<a:font script="Uigh" typeface="Microsoft Uighur"/>',r[r.length]='<a:font script="Geor" typeface="Sylfaen"/>',r[r.length]="</a:minorFont>",r[r.length]="</a:fontScheme>",r[r.length]='<a:fmtScheme name="Office">',r[r.length]="<a:fillStyleLst>",r[r.length]='<a:solidFill><a:schemeClr val="phClr"/></a:solidFill>',r[r.length]='<a:gradFill rotWithShape="1">',r[r.length]="<a:gsLst>",r[r.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="50000"/><a:satMod val="300000"/></a:schemeClr></a:gs>',r[r.length]='<a:gs pos="35000"><a:schemeClr val="phClr"><a:tint val="37000"/><a:satMod val="300000"/></a:schemeClr></a:gs>',r[r.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:tint val="15000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',r[r.length]="</a:gsLst>
831",r[r.length]='<a:lin ang="16200000" scaled="1"/>',r[r.length]="</a:gradFill>",r[r.length]='<a:gradFill rotWithShape="1">',r[r.length]="<a:gsLst>",r[r.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="100000"/><a:shade val="100000"/><a:satMod val="130000"/></a:schemeClr></a:gs>',r[r.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:tint val="50000"/><a:shade val="100000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',r[r.length]="</a:gsLst>",r[r.length]='<a:lin ang="16200000" scaled="0"/>',r[r.length]="</a:gradFill>",r[r.length]="</a:fillStyleLst>",r[r.length]="<a:lnStyleLst>",r[r.length]='<a:ln w="9525" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"><a:shade val="95000"/><a:satMod val="105000"/></a:schemeClr></a:solidFill><a:prstDash val="solid"/></a:ln>',r[r.length]='<a:ln w="25400" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/></a:ln>',r[r.length]='<a:ln w="38100" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/></a:ln>',r[r.length]="</a:lnStyleLst>",r[r.length]="<a:effectStyleLst>",r[r.length]="<a:effectStyle>",r[r.length]="<a:effectLst>",r[r.length]='<a:outerShdw blurRad="40000" dist="20000" dir="5400000" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="38000"/></a:srgbClr></a:outerShdw>',r[r.length]="</a:effectLst>",r[r.length]="</a:effectStyle>",r[r.length]="<a:effectStyle>",r[r.length]="<a:effectLst>",r[r.length]='<a:outerShdw blurRad="40000" dist="23000" dir="5400000" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="35000"/></a:srgbClr></a:outerShdw>',r[r.length]="</a:effectLst>",r[r.length]="</a:effectStyle>",r[r.length]="<a:effectStyle>",r[r.length]="<a:effectLst>",r[r.length]='<a:outerShdw blurRad="40000" dist="23000" dir="5400000" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="35000"/></a:srgbClr></a:outerShdw>',r[r.length]="</a:effectLst>",r[r.length]='<a:scene3d><a:camera prst="orthographicFront"><a:rot lat="0" lon="0" rev="0"/></a:camera><a:lightRig rig="threePt" dir="t"><a:rot lat="0" lon="0" rev="1200000"/></a:lightRig></a:scene3d>',r[r.length]='<a:sp3d><a:bevelT w="63500" h="25400"/></a:sp3d>',r[r.length]="</a:effectStyle>",r[r.length]="</a:effectStyleLst>",r[r.length]="<a:bgFillStyleLst>",r[r.length]='<a:solidFill><a:schemeClr val="phClr"/></a:solidFill>',r[r.length]='<a:gradFill rotWithShape="1">',r[r.length]="<a:gsLst>",r[r.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="40000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',r[r.length]='<a:gs pos="40000"><a:schemeClr val="phClr"><a:tint val="45000"/><a:shade val="99000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',r[r.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:shade val="20000"/><a:satMod val="255000"/></a:schemeClr></a:gs>',r[r.length]="</a:gsLst>",r[r.length]='<a:path path="circle"><a:fillToRect l="50000" t="-80000" r="50000" b="180000"/></a:path>',r[r.length]="</a:gradFill>",r[r.length]='<a:gradFill rotWithShape="1">',r[r.length]="<a:gsLst>",r[r.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="80000"/><a:satMod val="300000"/></a:schemeClr></a:gs>',r[r.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:shade val="30000"/><a:satMod val="200000"/></a:schemeClr></a:gs>',r[r.length]="</a:gsLst>",r[r.length]='<a:path path="circle"><a:fillToRect l="50000" t="50000" r="50000" b="50000"/></a:path>',r[r.length]="</a:gradFill>",r[r.length]="</a:bgFillStyleLst>",r[r.length]="</a:fmtScheme>",r[r.length]="</a:themeElements>",r[r.length]="<a:objectDefaults>",r[r.length]="<a:spDef>",r[r.length]='<a:spPr/><a:bodyPr/><a:lstStyle/><a:style><a:lnRef idx="1"><a:schemeClr val="accent1"/></a:lnRef><a:fillRef idx="3"><a:schemeClr val="accent1"/></a:fillRef><a:effectRef idx="2"><a:schemeClr val="accent1"/></a:effectRef><a:fontRef idx="minor"><a:schemeClr val="lt1"/></a:fontRef></a:style>',r[r.length]="</a:spDef>",r[r.length]="<a:lnDef>",r[r.length]='<a:spPr/><a:bodyPr/><a:lstStyle/><a:style><a:lnRef idx="2"><a:schemeClr val="accent1"/></a:lnRef><a:fillRef idx="0"><a:schemeClr val="accent1"/></a:fillRef><a:effectRef idx="1"><a:schemeClr val="accent1"/></a:effectRef><a:fontRef idx="minor"><a:schemeClr val="tx1"/></a:fontRef></a:style>',r[r.length]="</a:lnDef>",r[r.length]="</a:objectDefaults>",r[r.length]="<a:extraClrSchemeLst/>",r[r.length]="</a:theme>",r.join("")}function Pse(t,e){return{flags:t.read_shift(4),version:t.read_shift(4),name:Tn(t)}}function Mse(t){var e=ie(12+2*t.name.length);return e.write_shift(4,t.flags),e.write_shift(4,t.version),Kr(t.name,e),e.slice(0,e.l)}function Ise(t){for(var e=[],r=t.read_shift(4);r-- >0;)e.push([t.read_shift(4),t.read_shift(4)]);return e}function Dse(t){var e=ie(4+8*t.length);e.write_shift(4,t.length);for(var r=0;r<t.length;++r)e.write_shift(4,t[r][0]),e.write_shift(4,t[r][1]);return e}function Lse(t,e){var r=ie(8+2*e.length);return r.write_shift(4,t),Kr(e,r),r.slice(0,r.l)}
vendor: 5,075 bytes, lines 831-853
831function Fse(t){return t.l+=4,t.read_shift(4)!=0}function Bse(t,e){var r=ie(8);return r.write_shift(4,t),r.write_shift(4,1),r}function $se(){var t=ls();return me(t,332),me(t,334,Pi(1)),me(t,335,Mse({name:"XLDAPR",version:12e4,flags:3496657072})),me(t,336),me(t,339,Lse(1,"XLDAPR")),me(t,52),me(t,35,Pi(514)),me(t,4096,Pi(0)),me(t,4097,Hs(1)),me(t,36),me(t,53),me(t,340),me(t,337,Bse(1)),me(t,51,Dse([[1,0]])),me(t,338),me(t,333),t.end()}function ND(){var t=[Or];return t.push(`<metadata xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:xlrd="http://schemas.microsoft.com/office/spreadsheetml/2017/richdata" xmlns:xda="http://schemas.microsoft.com/office/spreadsheetml/2017/dynamicarray">
832  <metadataTypes count="1">
833    <metadataType name="XLDAPR" minSupportedVersion="120000" copy="1" pasteAll="1" pasteValues="1" merge="1" splitFirst="1" rowColShift="1" clearFormats="1" clearComments="1" assign="1" coerce="1" cellMeta="1"/>
834  </metadataTypes>
835  <futureMetadata name="XLDAPR" count="1">
836    <bk>
837      <extLst>
838        <ext uri="{bdbb8cdc-fa1e-496e-a857-3c3f30c029c3}">
839          <xda:dynamicArrayProperties fDynamic="1" fCollapsed="0"/>
840        </ext>
841      </extLst>
842    </bk>
843  </futureMetadata>
844  <cellMetadata count="1">
845    <bk>
846      <rc t="1" v="0"/>
847    </bk>
848  </cellMetadata>
849</metadata>`),t.join("")}function zse(t){var e={};e.i=t.read_shift(4);var r={};r.r=t.read_shift(4),r.c=t.read_shift(4),e.r=Dt(r);var n=t.read_shift(1);return n&2&&(e.l="1"),n&8&&(e.a="1"),e}var gu=1024;function AD(t,e){for(var r=[21600,21600],n=["m0,0l0",r[1],r[0],r[1],r[0],"0xe"].join(","),s=[Ee("xml",null,{"xmlns:v":xs.v,"xmlns:o":xs.o,"xmlns:x":xs.x,"xmlns:mv":xs.mv}).replace(/\/>/,">"),Ee("o:shapelayout",Ee("o:idmap",null,{"v:ext":"edit",data:t}),{"v:ext":"edit"}),Ee("v:shapetype",[Ee("v:stroke",null,{joinstyle:"miter"}),Ee("v:path",null,{gradientshapeok:"t","o:connecttype":"rect"})].join(""),{id:"_x0000_t202","o:spt":202,coordsize:r.join(","),path:n})];gu<t*1e3;)gu+=1e3;return e.forEach(function(i){var o=Gr(i[0]),a={color2:"#BEFF82",type:"gradient"};a.type=="gradient"&&(a.angle="-180");var l=a.type=="gradient"?Ee("o:fill",null,{type:"gradientUnscaled","v:ext":"view"}):null,u=Ee("v:fill",l,a),d={on:"t",obscured:"t"};++gu,s=s.concat(["<v:shape"+Dh({id:"_x0000_s"+gu,type:"#_x0000_t202",style:"position:absolute; margin-left:80pt;margin-top:5pt;width:104pt;height:64pt;z-index:10"+(i[1].hidden?";visibility:hidden":""),fillcolor:"#ECFAD4",strokecolor:"#edeaa1"})+">",u,Ee("v:shadow",null,d),Ee("v:path",null,{"o:connecttype":"none"}),'<v:textbox><div style="text-align:left"></div></v:textbox>','<x:ClientData ObjectType="Note">',"<x:MoveWithCells/>","<x:SizeWithCells/>",un("x:Anchor",[o.c+1,0,o.r+1,0,o.c+3,20,o.r+5,20].join(",")),un("x:AutoFill","False"),un("x:Row",String(o.r)),un("x:Column",String(o.c)),i[1].hidden?"":"<x:Visible/>","</x:ClientData>","</v:shape>"])}),s.push("</xml>"),s.join("")}function jD(t){var e=[Or,Ee("comments",null,{xmlns:Ad[0]})],r=[];return e.push("<authors>"),t.forEach(function(n){n[1].forEach(function(s){var i=Mt(s.a);r.indexOf(i)==-1&&(r.push(i),e.push("<author>"+i+"</author>")),s.T&&s.ID&&r.indexOf("tc="+s.ID)==-1&&(r.push("tc="+s.ID),e.push("<author>tc="+s.ID+"</author>"))})}),r.length==0&&(r.push("SheetJ5"),e.push("<author>SheetJ5</author>")),e.push("</authors>"),e.push("<commentList>"),t.forEach(function(n){var s=0,i=[];if(n[1][0]&&n[1][0].T&&n[1][0].ID?s=r.indexOf("tc="+n[1][0].ID):n[1].forEach(function(l){l.a&&(s=r.indexOf(Mt(l.a))),i.push(l.t||"")}),e.push('<comment ref="'+n[0]+'" authorId="'+s+'"><text>'),i.length<=1)e.push(un("t",Mt(i[0]||"")));else{for(var o=`Comment:
850    `+i[0]+`
851`,a=1;a<i.length;++a)o+=`Reply:
852    `+i[a]+`
853`;e.push(un("t",Mt(o)))}e.push("</text></comment>")}),e.push("</commentList>"),e.length>2&&(e[e.length]="</comments>",e[1]=e[1].replace("/>",">")),e.join("")}function Use(t,e,r){var n=[Or,Ee("ThreadedComments",null,{xmlns:qr.TCMNT}).replace(/[\/]>/,">")];return t.forEach(function(s){var i="";(s[1]||[]).forEach(function(o,a){if(!o.T){delete o.ID;return}o.a&&e.indexOf(o.a)==-1&&e.push(o.a);var l={ref:s[0],id:"{54EE7951-7262-4200-6969-"+("000000000000"+r.tcid++).slice(-12)+"}"};a==0?i=l.id:l.parentId=i,o.ID=l.id,o.a&&(l.personId="{54EE7950-7262-4200-6969-"+("000000000000"+e.indexOf(o.a)).slice(-12)+"}"),n.push(Ee("threadedComment",un("text",o.t||""),l))})}),n.push("</ThreadedComments>"),n.join("")}function Hse(t){var e=[Or,Ee("personList",null,{xmlns:qr.TCMNT,"xmlns:x":Ad[0]}).replace(/[\/]>/,">")];return t.forEach(function(r,n){e.push(Ee("person",null,{displayName:r,id:"{54EE7950-7262-4200-6969-"+("000000000000"+n).slice(-12)+"}",userId:r,providerId:"None"}))}),e.push("</personList>"),e.join("")}function Vse(t){var e={};e.iauthor=t.read_shift(4);var r=kc(t);return e.rfx=r.s,e.ref=Dt(r.s),t.l+=16,e}function Wse(t,e){return e==null&&(e=ie(36)),e.write_shift(4,t[1].iauthor),Rd(t[0],e),e.write_shift(4,0),e.write_shift(4,0),e.write_shift(4,0),e.write_shift(4,0),e}var qse=Tn;function Gse(t){return Kr(t.slice(0,54))}function Kse(t){var e=ls(),r=[];
853return me(e,628),me(e,630),t.forEach(function(n){n[1].forEach(function(s){r.indexOf(s.a)>-1||(r.push(s.a.slice(0,54)),me(e,632,Gse(s.a)))})}),me(e,631),me(e,633),t.forEach(function(n){n[1].forEach(function(s){s.iauthor=r.indexOf(s.a);var i={s:Gr(n[0]),e:Gr(n[0])};me(e,635,Wse([i,s])),s.t&&s.t.length>0&&me(e,637,Yre(s)),me(e,636),delete s.iauthor})}),me(e,634),me(e,629),e.end()}function Xse(t,e){e.FullPaths.forEach(function(r,n){if(n!=0){var s=r.replace(/[^\/]*[\/]/,"/_VBA_PROJECT_CUR/");s.slice(-1)!=="/"&&Bt.utils.cfb_add(t,s,e.FileIndex[n].content)}})}var RD=["xlsb","xlsm","xlam","biff8","xla"],Yse=function(){var t=/(^|[^A-Za-z_])R(\[?-?\d+\]|[1-9]\d*|)C(\[?-?\d+\]|[1-9]\d*|)(?![A-Za-z0-9_])/g,e={r:0,c:0};function r(n,s,i,o){var a=!1,l=!1;i.length==0?l=!0:i.charAt(0)=="["&&(l=!0,i=i.slice(1,-1)),o.length==0?a=!0:o.charAt(0)=="["&&(a=!0,o=o.slice(1,-1));var u=i.length>0?parseInt(i,10)|0:0,d=o.length>0?parseInt(o,10)|0:0;return a?d+=e.c:--d,l?u+=e.r:--u,s+(a?"":"$")+En(d)+(l?"":"$")+hn(u)}return function(s,i){return e=i,s.replace(t,r)}}(),b_=/(^|[^._A-Z0-9])([$]?)([A-Z]{1,2}|[A-W][A-Z]{2}|X[A-E][A-Z]|XF[A-D])([$]?)(10[0-3]\d{4}|104[0-7]\d{3}|1048[0-4]\d{2}|10485[0-6]\d|104857[0-6]|[1-9]\d{0,5})(?![_.\(A-Za-z0-9])/g,S_=function(){return function(e,r){return e.replace(b_,function(n,s,i,o,a,l){var u=m_(o)-(i?0:r.c),d=p_(l)-(a?0:r.r),f=d==0?"":a?d+1:"["+d+"]",h=u==0?"":i?u+1:"["+u+"]";return s+"R"+f+"C"+h})}}();function Jse(t,e){return t.replace(b_,function(r,n,s,i,o,a){return n+(s=="$"?s+i:En(m_(i)+e.c))+(o=="$"?o+a:hn(p_(a)+e.r))})}function Qse(t){return t.length!=1}function Sr(t){t.l+=1}function il(t,e){var r=t.read_shift(2);return[r&16383,r>>14&1,r>>15&1]}function OD(t,e,r){var n=2;if(r){if(r.biff>=2&&r.biff<=5)return PD(t);r.biff==12&&(n=4)}var s=t.read_shift(n),i=t.read_shift(n),o=il(t),a=il(t);return{s:{r:s,c:o[0],cRel:o[1],rRel:o[2]},e:{r:i,c:a[0],cRel:a[1],rRel:a[2]}}}function PD(t){var e=il(t),r=il(t),n=t.read_shift(1),s=t.read_shift(1);return{s:{r:e[0],c:n,cRel:e[1],rRel:e[2]},e:{r:r[0],c:s,cRel:r[1],rRel:r[2]}}}function Zse(t,e,r){if(r.biff<8)return PD(t);var n=t.read_shift(r.biff==12?4:2),s=t.read_shift(r.biff==12?4:2),i=il(t),o=il(t);return{s:{r:n,c:i[0],cRel:i[1],rRel:i[2]},e:{r:s,c:o[0],cRel:o[1],rRel:o[2]}}}function MD(t,e,r){if(r&&r.biff>=2&&r.biff<=5)return eie(t);var n=t.read_shift(r&&r.biff==12?4:2),s=il(t);return{r:n,c:s[0],cRel:s[1],rRel:s[2]}}function eie(t){var e=il(t),r=t.read_shift(1);return{r:e[0],c:r,cRel:e[1],rRel:e[2]}}function tie(t){var e=t.read_shift(2),r=t.read_shift(2);return{r:e,c:r&255,fQuoted:!!(r&16384),cRel:r>>15,rRel:r>>15}}function rie(t,e,r){var n=r&&r.biff?r.biff:8;if(n>=2&&n<=5)return nie(t);var s=t.read_shift(n>=12?4:2),i=t.read_shift(2),o=(i&16384)>>14,a=(i&32768)>>15;if(i&=16383,a==1)for(;s>524287;)s-=1048576;if(o==1)for(;i>8191;)i=i-16384;return{r:s,c:i,cRel:o,rRel:a}}function nie(t){var e=t.read_shift(2),r=t.read_shift(1),n=(e&32768)>>15,s=(e&16384)>>14;return e&=16383,n==1&&e>=8192&&(e=e-16384),s==1&&r>=128&&(r=r-256),{r:e,c:r,cRel:s,rRel:n}}function sie(t,e,r){var n=(t[t.l++]&96)>>5,s=OD(t,r.biff>=2&&r.biff<=5?6:8,r);return[n,s]}function iie(t,e,r){var n=(t[t.l++]&96)>>5,s=t.read_shift(2,"i"),i=8;if(r)switch(r.biff){case 5:t.l+=12,i=6;break;case 12:i=12;break}var o=OD(t,i,r);return[n,s,o]}function oie(t,e,r){var n=(t[t.l++]&96)>>5;return t.l+=r&&r.biff>8?12:r.biff<8?6:8,[n]}function aie(t,e,r){var n=(t[t.l++]&96)>>5,s=t.read_shift(2),i=8;if(r)switch(r.biff){case 5:t.l+=12,i=6;break;case 12:i=12;break}return t.l+=i,[n,s]}function lie(t,e,r){var n=(t[t.l++]&96)>>5,s=Zse(t,e-1,r);return[n,s]}function cie(t,e,r){var n=(t[t.l++]&96)>>5;return t.l+=r.biff==2?6:r.biff==12?14:7,[n]}function $N(t){var e=t[t.l+1]&1,r=1;return t.l+=4,[e,r]}function uie(t,e,r){t.l+=2;for(var n=t.read_shift(r&&r.biff==2?1:2),s=[],i=0;i<=n;++i)s.push(t.read_shift(r&&r.biff==2?1:2));return s}function die(t,e,r){var n=t[t.l+1]&255?1:0;return t.l+=2,[n,t.read_shift(r&&r.biff==2?1:2)]}function fie(t,e,r){var n=t[t.l+1]&255?1:0;return t.l+=2,[n,t.read_shift(r&&r.biff==2?1:2)]}function hie(t){var e=t[t.l+1]&255?1:0;return t.l+=2,[e,t.read_shift(2)]}function pie(t,e,r){var n=t[t.l+1]&255?1:0;return t.l+=r&&r.biff==2?3:4,[n]}function ID(t){var e=t.read_shift(1),r=t.read_shift(1);return[e,r]}function mie(t){return t.read_shift(2),ID(t)}function gie(t){return t.read_shift(2),ID(t)}function xie(t,e,r){var n=(t[t.l]&96)>>5;t.l+=1;var s=MD(t,0,r);return[n,s]}function vie(t,e,r){var n=(t[t.l]&96)>>5;t.l+=1;var s=rie(t,0,r);return[n,s]}function yie(t,e,r){var n=(t[t.l]&96)>>5;t.l+=1;var s=t.read_shift(2);
853r&&r.biff==5&&(t.l+=12);var i=MD(t,0,r);return[n,s,i]}function wie(t,e,r){var n=(t[t.l]&96)>>5;t.l+=1;var s=t.read_shift(r&&r.biff<=3?1:2);return[woe[s],FD[s],n]}function bie(t,e,r){var n=t[t.l++],s=t.read_shift(1),i=r&&r.biff<=3?[n==88?-1:0,t.read_shift(1)]:Sie(t);return[s,(i[0]===0?FD:yoe)[i[1]]]}function Sie(t){return[t[t.l+1]>>7,t.read_shift(2)&32767]}function _ie(t,e,r){t.l+=r&&r.biff==2?3:4}function Eie(t,e,r){if(t.l++,r&&r.biff==12)return[t.read_shift(4,"i"),0];var n=t.read_shift(2),s=t.read_shift(r&&r.biff==2?1:2);return[n,s]}function Tie(t){return t.l++,mp[t.read_shift(1)]}function Cie(t){return t.l++,t.read_shift(2)}function kie(t){return t.l++,t.read_shift(1)!==0}function Nie(t){return t.l++,Od(t)}function Aie(t,e,r){return t.l++,xD(t,e-1,r)}function jie(t,e){var r=[t.read_shift(1)];if(e==12)switch(r[0]){case 2:r[0]=4;break;case 4:r[0]=16;break;case 0:r[0]=1;break;case 1:r[0]=2;break}switch(r[0]){case 4:r[1]=yne(t,1)?"TRUE":"FALSE",e!=12&&(t.l+=7);break;case 37:case 16:r[1]=mp[t[t.l]],t.l+=e==12?4:8;break;case 0:t.l+=8;break;case 1:r[1]=Od(t);break;case 2:r[1]=_ne(t,0,{biff:e>0&&e<8?2:e});break;default:throw new Error("Bad SerAr: "+r[0])}return r}function Rie(t,e,r){for(var n=t.read_shift(r.biff==12?4:2),s=[],i=0;i!=n;++i)s.push((r.biff==12?kc:Cne)(t));return s}function Oie(t,e,r){var n=0,s=0;r.biff==12?(n=t.read_shift(4),s=t.read_shift(4)):(s=1+t.read_shift(1),n=1+t.read_shift(2)),r.biff>=2&&r.biff<8&&(--n,--s==0&&(s=256));for(var i=0,o=[];i!=n&&(o[i]=[]);++i)for(var a=0;a!=s;++a)o[i][a]=jie(t,r.biff);return o}function Pie(t,e,r){var n=t.read_shift(1)>>>5&3,s=!r||r.biff>=8?4:2,i=t.read_shift(s);switch(r.biff){case 2:t.l+=5;break;case 3:case 4:t.l+=8;break;case 5:t.l+=12;break}return[n,0,i]}function Mie(t,e,r){if(r.biff==5)return Iie(t);var n=t.read_shift(1)>>>5&3,s=t.read_shift(2),i=t.read_shift(4);return[n,s,i]}function Iie(t){var e=t.read_shift(1)>>>5&3,r=t.read_shift(2,"i");t.l+=8;var n=t.read_shift(2);return t.l+=12,[e,r,n]}function Die(t,e,r){var n=t.read_shift(1)>>>5&3;t.l+=r&&r.biff==2?3:4;var s=t.read_shift(r&&r.biff==2?1:2);return[n,s]}function Lie(t,e,r){var n=t.read_shift(1)>>>5&3,s=t.read_shift(r&&r.biff==2?1:2);return[n,s]}function Fie(t,e,r){var n=t.read_shift(1)>>>5&3;return t.l+=4,r.biff<8&&t.l--,r.biff==12&&(t.l+=2),[n]}function Bie(t,e,r){var n=(t[t.l++]&96)>>5,s=t.read_shift(2),i=4;if(r)switch(r.biff){case 5:i=15;break;case 12:i=6;break}return t.l+=i,[n,s]}var $ie=co,zie=co,Uie=co;function gp(t,e,r){return t.l+=2,[tie(t)]}function __(t){return t.l+=6,[]}var Hie=gp,Vie=__,Wie=__,qie=gp;function DD(t){return t.l+=2,[mD(t),t.read_shift(2)&1]}var Gie=gp,Kie=DD,Xie=__,Yie=gp,Jie=gp,Qie=["Data","All","Headers","??","?Data2","??","?DataHeaders","??","Totals","??","??","??","?DataTotals","??","??","??","?Current"];function Zie(t){t.l+=2;var e=t.read_shift(2),r=t.read_shift(2),n=t.read_shift(4),s=t.read_shift(2),i=t.read_shift(2),o=Qie[r>>2&31];return{ixti:e,coltype:r&3,rt:o,idx:n,c:s,C:i}}function eoe(t){return t.l+=2,[t.read_shift(4)]}function toe(t,e,r){return t.l+=5,t.l+=2,t.l+=r.biff==2?1:4,["PTGSHEET"]}function roe(t,e,r){return t.l+=r.biff==2?4:5,["PTGENDSHEET"]}function noe(t){var e=t.read_shift(1)>>>5&3,r=t.read_shift(2);return[e,r]}function soe(t){var e=t.read_shift(1)>>>5&3,r=t.read_shift(2);return[e,r]}function ioe(t){return t.l+=4,[0,0]}var zN={1:{n:"PtgExp",f:Eie},2:{n:"PtgTbl",f:Uie},3:{n:"PtgAdd",f:Sr},4:{n:"PtgSub",f:Sr},5:{n:"PtgMul",f:Sr},6:{n:"PtgDiv",f:Sr},7:{n:"PtgPower",f:Sr},8:{n:"PtgConcat",f:Sr},9:{n:"PtgLt",f:Sr},10:{n:"PtgLe",f:Sr},11:{n:"PtgEq",f:Sr},12:{n:"PtgGe",f:Sr},13:{n:"PtgGt",f:Sr},14:{n:"PtgNe",f:Sr},15:{n:"PtgIsect",f:Sr},16:{n:"PtgUnion",f:Sr},17:{n:"PtgRange",f:Sr},18:{n:"PtgUplus",f:Sr},19:{n:"PtgUminus",f:Sr},20:{n:"PtgPercent",f:Sr},21:{n:"PtgParen",f:Sr},22:{n:"PtgMissArg",f:Sr},23:{n:"PtgStr",f:Aie},26:{n:"PtgSheet",f:toe},27:{n:"PtgEndSheet",f:roe},28:{n:"PtgErr",f:Tie},29:{n:"PtgBool",f:kie},30:{n:"PtgInt",f:Cie},31:{n:"PtgNum",f:Nie},32:{n:"PtgArray",f:cie},33:{n:"PtgFunc",f:wie},34:{n:"PtgFuncVar",f:bie},35:{n:"PtgName",f:Pie},36:{n:"PtgRef",f:xie},37:{n:"PtgArea",f:sie},38:{n:"PtgMemArea",f:Die},39:{n:"PtgMemErr",f:$ie},40:{n:"PtgMemNoMem",f:zie},41:{n:"PtgMemFunc",f:Lie},42:{n:"PtgRefErr",f:Fie},43:{n:"PtgAreaErr",f:oie},44:{n:"PtgRefN",f:vie},45:{n:"PtgAreaN",f:lie},46:{n:"PtgMemAreaN",f:noe},47:{n:"PtgMemNoMemN",f:soe},57:{n:"PtgNameX",f:Mie},58:{n:"PtgRef3d",f:yie}
vendor: 1,506 bytes, line 853
853,59:{n:"PtgArea3d",f:iie},60:{n:"PtgRefErr3d",f:Bie},61:{n:"PtgAreaErr3d",f:aie},255:{}},ooe={64:32,96:32,65:33,97:33,66:34,98:34,67:35,99:35,68:36,100:36,69:37,101:37,70:38,102:38,71:39,103:39,72:40,104:40,73:41,105:41,74:42,106:42,75:43,107:43,76:44,108:44,77:45,109:45,78:46,110:46,79:47,111:47,88:34,120:34,89:57,121:57,90:58,122:58,91:59,123:59,92:60,124:60,93:61,125:61},aoe={1:{n:"PtgElfLel",f:DD},2:{n:"PtgElfRw",f:Yie},3:{n:"PtgElfCol",f:Hie},6:{n:"PtgElfRwV",f:Jie},7:{n:"PtgElfColV",f:qie},10:{n:"PtgElfRadical",f:Gie},11:{n:"PtgElfRadicalS",f:Xie},13:{n:"PtgElfColS",f:Vie},15:{n:"PtgElfColSV",f:Wie},16:{n:"PtgElfRadicalLel",f:Kie},25:{n:"PtgList",f:Zie},29:{n:"PtgSxName",f:eoe},255:{}},loe={0:{n:"PtgAttrNoop",f:ioe},1:{n:"PtgAttrSemi",f:pie},2:{n:"PtgAttrIf",f:fie},4:{n:"PtgAttrChoose",f:uie},8:{n:"PtgAttrGoto",f:die},16:{n:"PtgAttrSum",f:_ie},32:{n:"PtgAttrBaxcel",f:$N},33:{n:"PtgAttrBaxcel",f:$N},64:{n:"PtgAttrSpace",f:mie},65:{n:"PtgAttrSpaceSemi",f:gie},128:{n:"PtgAttrIfError",f:hie},255:{}};function coe(t,e,r,n){if(n.biff<8)return co(t,e);for(var s=t.l+e,i=[],o=0;o!==r.length;++o)switch(r[o][0]){case"PtgArray":r[o][1]=Oie(t,0,n),i.push(r[o][1]);break;case"PtgMemArea":r[o][2]=Rie(t,r[o][1],n),i.push(r[o][2]);break;case"PtgExp":n&&n.biff==12&&(r[o][1][1]=t.read_shift(4),i.push(r[o][1]));break;case"PtgList":case"PtgElfRadicalS":case"PtgElfColS":case"PtgElfColSV":throw"Unsupported "+r[o][0]}return e=s-t.l,e!==0&&i.push(co(t,e)),i}function uoe(t,e,r){for(var n=t.l+e,s,i,o=[];
vendor: 6,581 bytes, line 853
853n!=t.l;)e=n-t.l,i=t[t.l],s=zN[i]||zN[ooe[i]],(i===24||i===25)&&(s=(i===24?aoe:loe)[t[t.l+1]]),!s||!s.f?co(t,e):o.push([s.n,s.f(t,e,r)]);return o}function doe(t){for(var e=[],r=0;r<t.length;++r){for(var n=t[r],s=[],i=0;i<n.length;++i){var o=n[i];if(o)switch(o[0]){case 2:s.push('"'+o[1].replace(/"/g,'""')+'"');break;default:s.push(o[1])}else s.push("")}e.push(s.join(","))}return e.join(";")}var foe={PtgAdd:"+",PtgConcat:"&",PtgDiv:"/",PtgEq:"=",PtgGe:">=",PtgGt:">",PtgLe:"<=",PtgLt:"<",PtgMul:"*",PtgNe:"<>",PtgPower:"^",PtgSub:"-"};function hoe(t,e){if(!t&&!(e&&e.biff<=5&&e.biff>=2))throw new Error("empty sheet name");return/[^\w\u4E00-\u9FFF\u3040-\u30FF]/.test(t)?"'"+t+"'":t}function LD(t,e,r){if(!t)return"SH33TJSERR0";if(r.biff>8&&(!t.XTI||!t.XTI[e]))return t.SheetNames[e];if(!t.XTI)return"SH33TJSERR6";var n=t.XTI[e];if(r.biff<8)return e>1e4&&(e-=65536),e<0&&(e=-e),e==0?"":t.XTI[e-1];if(!n)return"SH33TJSERR1";var s="";if(r.biff>8)switch(t[n[0]][0]){case 357:return s=n[1]==-1?"#REF":t.SheetNames[n[1]],n[1]==n[2]?s:s+":"+t.SheetNames[n[2]];case 358:return r.SID!=null?t.SheetNames[r.SID]:"SH33TJSSAME"+t[n[0]][0];case 355:default:return"SH33TJSSRC"+t[n[0]][0]}switch(t[n[0]][0][0]){case 1025:return s=n[1]==-1?"#REF":t.SheetNames[n[1]]||"SH33TJSERR3",n[1]==n[2]?s:s+":"+t.SheetNames[n[2]];case 14849:return t[n[0]].slice(1).map(function(i){return i.Name}).join(";;");default:return t[n[0]][0][3]?(s=n[1]==-1?"#REF":t[n[0]][0][3][n[1]]||"SH33TJSERR4",n[1]==n[2]?s:s+":"+t[n[0]][0][3][n[2]]):"SH33TJSERR2"}}function UN(t,e,r){var n=LD(t,e,r);return n=="#REF"?n:hoe(n,r)}function hd(t,e,r,n,s){var i=s&&s.biff||8,o={s:{c:0,r:0},e:{c:0,r:0}},a=[],l,u,d,f=0,h=0,p,g="";if(!t[0]||!t[0][0])return"";for(var m=-1,x="",v=0,y=t[0].length;v<y;++v){var b=t[0][v];switch(b[0]){case"PtgUminus":a.push("-"+a.pop());break;case"PtgUplus":a.push("+"+a.pop());break;case"PtgPercent":a.push(a.pop()+"%");break;case"PtgAdd":case"PtgConcat":case"PtgDiv":case"PtgEq":case"PtgGe":case"PtgGt":case"PtgLe":case"PtgLt":case"PtgMul":case"PtgNe":case"PtgPower":case"PtgSub":if(l=a.pop(),u=a.pop(),m>=0){switch(t[0][m][1][0]){case 0:x=pr(" ",t[0][m][1][1]);break;case 1:x=pr("\r",t[0][m][1][1]);break;default:if(x="",s.WTF)throw new Error("Unexpected PtgAttrSpaceType "+t[0][m][1][0])}u=u+x,m=-1}a.push(u+foe[b[0]]+l);break;case"PtgIsect":l=a.pop(),u=a.pop(),a.push(u+" "+l);break;case"PtgUnion":l=a.pop(),u=a.pop(),a.push(u+","+l);break;case"PtgRange":l=a.pop(),u=a.pop(),a.push(u+":"+l);break;case"PtgAttrChoose":break;case"PtgAttrGoto":break;case"PtgAttrIf":break;case"PtgAttrIfError":break;case"PtgRef":d=Vf(b[1][1],o,s),a.push(Wf(d,i));break;case"PtgRefN":d=r?Vf(b[1][1],r,s):b[1][1],a.push(Wf(d,i));break;case"PtgRef3d":f=b[1][1],d=Vf(b[1][2],o,s),g=UN(n,f,s),a.push(g+"!"+Wf(d,i));break;case"PtgFunc":case"PtgFuncVar":var S=b[1][0],E=b[1][1];S||(S=0),S&=127;var C=S==0?[]:a.slice(-S);a.length-=S,E==="User"&&(E=C.shift()),a.push(E+"("+C.join(",")+")");break;case"PtgBool":a.push(b[1]?"TRUE":"FALSE");break;case"PtgInt":a.push(b[1]);break;case"PtgNum":a.push(String(b[1]));break;case"PtgStr":a.push('"'+b[1].replace(/"/g,'""')+'"');break;case"PtgErr":a.push(b[1]);break;case"PtgAreaN":p=CN(b[1][1],r?{s:r}:o,s),a.push(G1(p,s));break;case"PtgArea":p=CN(b[1][1],o,s),a.push(G1(p,s));break;case"PtgArea3d":f=b[1][1],p=b[1][2],g=UN(n,f,s),a.push(g+"!"+G1(p,s));break;case"PtgAttrSum":a.push("SUM("+a.pop()+")");break;case"PtgAttrBaxcel":case"PtgAttrSemi":break;case"PtgName":h=b[1][2];var _=(n.names||[])[h-1]||(n[0]||[])[h],A=_?_.Name:"SH33TJSNAME"+String(h);A&&A.slice(0,6)=="_xlfn."&&!s.xlfn&&(A=A.slice(6)),a.push(A);break;case"PtgNameX":var N=b[1][1];h=b[1][2];var D;if(s.biff<=5)N<0&&(N=-N),n[N]&&(D=n[N][h]);else{var V="";if(((n[N]||[])[0]||[])[0]==14849||(((n[N]||[])[0]||[])[0]==1025?n[N][h]&&n[N][h].itab>0&&(V=n.SheetNames[n[N][h].itab-1]+"!"):V=n.SheetNames[h-1]+"!"),n[N]&&n[N][h])V+=n[N][h].Name;else if(n[0]&&n[0][h])V+=n[0][h].Name;else{var H=(LD(n,N,s)||"").split(";;");H[h-1]?V=H[h-1]:V+="SH33TJSERRX"}a.push(V);break}D||(D={Name:"SH33TJSERRY"}),a.push(D.Name);break;case"PtgParen":var U="(",K=")";if(m>=0){switch(x="",t[0][m][1][0]){case 2:U=pr(" ",t[0][m][1][1])+U;break;case 3:U=pr("\r",t[0][m][1][1])+U;break;case 4:K=pr(" ",t[0][m][1][1])+K;break;case 5:K=pr("\r",t[0][m][1][1])+K;break;default:if(s.WTF)throw new Error("Unexpected PtgAttrSpaceType "+t[0][m][1][0])}m=-1}a.push(U+a.pop()+K);break;case"PtgRefErr":a.push("#REF!");break;case"PtgRefErr3d":a.push("#REF!");break;case"PtgExp":d={c:b[1][1],r:b[1][0]};var te={c:r.c,r:r.r};if(n.sharedf[Dt(d)]){var se=n.sharedf[Dt(d)];a.push(hd(se,o,te,n,s))}else{var he=!1;for(l=0;l!=n.arrayf.length;++l)if(u=n.arrayf[l],!(d.c<u[0].s.c||d.c>u[0].e.c)&&!(d.r<u[0].s.r||d.r>u[0].e.r)){a.push(hd(u[1],o,te,n,s)),he=!0;break}he||a.push(b[1])}break;case"PtgArray":a.push("{"+doe(b[1])+"}");break;case"PtgMemArea":break;case"PtgAttrSpace":case"PtgAttrSpaceSemi":m=v;break;case"PtgTbl":break;case"PtgMemErr":break;case"PtgMissArg":a.push("");break;case"PtgAreaErr":a.push("#REF!");break;case"PtgAreaErr3d":a.push("#REF!");break;case"PtgList":a.push("Table"+b[1].idx+"[#"+b[1].rt+"]");break;case"PtgMemAreaN":case"PtgMemNoMemN":case"PtgAttrNoop":case"PtgSheet":case"PtgEndSheet":break;case"PtgMemFunc":break;case"PtgMemNoMem":break;case"PtgElfCol":case"PtgElfColS":case"PtgElfColSV":case"PtgElfColV":case"PtgElfLel":case"PtgElfRadical":case"PtgElfRadicalLel":case"PtgElfRadicalS":case"PtgElfRw":case"PtgElfRwV":throw new Error("Unsupported ELFs");case"PtgSxName":throw new Error("Unrecognized Formula Token: "+String(b));default:throw new Error("Unrecognized Formula Token: "+String(b))}var G=["PtgAttrSpace","PtgAttrSpaceSemi","PtgAttrGoto"];if(s.biff!=3&&m>=0&&G.indexOf(t[0][v][0])==-1){b=t[0][m];var O=!0;switch(b[1][0]){case 4:O=!1;case 0:x=pr(" ",b[1][1]);break;case 5:O=!1;case 1:x=pr("\r",b[1][1]);break;default:if(x="",s.WTF)throw new Error("Unexpected PtgAttrSpaceType "+b[1][0])}a.push((O?x:"")+a.pop()+(O?"":x)),m=-1}}if(a.length>1&&s.WTF)throw new Error("bad formula stack");return a[0]}function poe(t){if(t==null){var e=ie(8);return e.write_shift(1,3),e.write_shift(1,0),e.write_shift(2,0),e.write_shift(2,0),e.write_shift(2,65535),e}else if(typeof t=="number")return uc(t);return uc(0)}function moe(t,e,r,n,s){var i=dc(e,r,s),o=poe(t.v),a=ie(6),l=33;a.write_shift(2,l),a.write_shift(4,0);for(var u=ie(t.bf.length),d=0;d<t.bf.length;++d)u[d]=t.bf[d];var f=cn([i,o,a,u]);return f}function lv(t,e,r){var n=t.read_shift(4),s=uoe(t,n,r),i=t.read_shift(4),o=i>0?coe(t,i,s,r):null;return[s,o]}var goe=lv,cv=lv,xoe=lv,voe=lv,yoe
vendor: 7,369 bytes, line 853
853={0:"BEEP",1:"OPEN",2:"OPEN.LINKS",3:"CLOSE.ALL",4:"SAVE",5:"SAVE.AS",6:"FILE.DELETE",7:"PAGE.SETUP",8:"PRINT",9:"PRINTER.SETUP",10:"QUIT",11:"NEW.WINDOW",12:"ARRANGE.ALL",13:"WINDOW.SIZE",14:"WINDOW.MOVE",15:"FULL",16:"CLOSE",17:"RUN",22:"SET.PRINT.AREA",23:"SET.PRINT.TITLES",24:"SET.PAGE.BREAK",25:"REMOVE.PAGE.BREAK",26:"FONT",27:"DISPLAY",28:"PROTECT.DOCUMENT",29:"PRECISION",30:"A1.R1C1",31:"CALCULATE.NOW",32:"CALCULATION",34:"DATA.FIND",35:"EXTRACT",36:"DATA.DELETE",37:"SET.DATABASE",38:"SET.CRITERIA",39:"SORT",40:"DATA.SERIES",41:"TABLE",42:"FORMAT.NUMBER",43:"ALIGNMENT",44:"STYLE",45:"BORDER",46:"CELL.PROTECTION",47:"COLUMN.WIDTH",48:"UNDO",49:"CUT",50:"COPY",51:"PASTE",52:"CLEAR",53:"PASTE.SPECIAL",54:"EDIT.DELETE",55:"INSERT",56:"FILL.RIGHT",57:"FILL.DOWN",61:"DEFINE.NAME",62:"CREATE.NAMES",63:"FORMULA.GOTO",64:"FORMULA.FIND",65:"SELECT.LAST.CELL",66:"SHOW.ACTIVE.CELL",67:"GALLERY.AREA",68:"GALLERY.BAR",69:"GALLERY.COLUMN",70:"GALLERY.LINE",71:"GALLERY.PIE",72:"GALLERY.SCATTER",73:"COMBINATION",74:"PREFERRED",75:"ADD.OVERLAY",76:"GRIDLINES",77:"SET.PREFERRED",78:"AXES",79:"LEGEND",80:"ATTACH.TEXT",81:"ADD.ARROW",82:"SELECT.CHART",83:"SELECT.PLOT.AREA",84:"PATTERNS",85:"MAIN.CHART",86:"OVERLAY",87:"SCALE",88:"FORMAT.LEGEND",89:"FORMAT.TEXT",90:"EDIT.REPEAT",91:"PARSE",92:"JUSTIFY",93:"HIDE",94:"UNHIDE",95:"WORKSPACE",96:"FORMULA",97:"FORMULA.FILL",98:"FORMULA.ARRAY",99:"DATA.FIND.NEXT",100:"DATA.FIND.PREV",101:"FORMULA.FIND.NEXT",102:"FORMULA.FIND.PREV",103:"ACTIVATE",104:"ACTIVATE.NEXT",105:"ACTIVATE.PREV",106:"UNLOCKED.NEXT",107:"UNLOCKED.PREV",108:"COPY.PICTURE",109:"SELECT",110:"DELETE.NAME",111:"DELETE.FORMAT",112:"VLINE",113:"HLINE",114:"VPAGE",115:"HPAGE",116:"VSCROLL",117:"HSCROLL",118:"ALERT",119:"NEW",120:"CANCEL.COPY",121:"SHOW.CLIPBOARD",122:"MESSAGE",124:"PASTE.LINK",125:"APP.ACTIVATE",126:"DELETE.ARROW",127:"ROW.HEIGHT",128:"FORMAT.MOVE",129:"FORMAT.SIZE",130:"FORMULA.REPLACE",131:"SEND.KEYS",132:"SELECT.SPECIAL",133:"APPLY.NAMES",134:"REPLACE.FONT",135:"FREEZE.PANES",136:"SHOW.INFO",137:"SPLIT",138:"ON.WINDOW",139:"ON.DATA",140:"DISABLE.INPUT",142:"OUTLINE",143:"LIST.NAMES",144:"FILE.CLOSE",145:"SAVE.WORKBOOK",146:"DATA.FORM",147:"COPY.CHART",148:"ON.TIME",149:"WAIT",150:"FORMAT.FONT",151:"FILL.UP",152:"FILL.LEFT",153:"DELETE.OVERLAY",155:"SHORT.MENUS",159:"SET.UPDATE.STATUS",161:"COLOR.PALETTE",162:"DELETE.STYLE",163:"WINDOW.RESTORE",164:"WINDOW.MAXIMIZE",166:"CHANGE.LINK",167:"CALCULATE.DOCUMENT",168:"ON.KEY",169:"APP.RESTORE",170:"APP.MOVE",171:"APP.SIZE",172:"APP.MINIMIZE",173:"APP.MAXIMIZE",174:"BRING.TO.FRONT",175:"SEND.TO.BACK",185:"MAIN.CHART.TYPE",186:"OVERLAY.CHART.TYPE",187:"SELECT.END",188:"OPEN.MAIL",189:"SEND.MAIL",190:"STANDARD.FONT",191:"CONSOLIDATE",192:"SORT.SPECIAL",193:"GALLERY.3D.AREA",194:"GALLERY.3D.COLUMN",195:"GALLERY.3D.LINE",196:"GALLERY.3D.PIE",197:"VIEW.3D",198:"GOAL.SEEK",199:"WORKGROUP",200:"FILL.GROUP",201:"UPDATE.LINK",202:"PROMOTE",203:"DEMOTE",204:"SHOW.DETAIL",206:"UNGROUP",207:"OBJECT.PROPERTIES",208:"SAVE.NEW.OBJECT",209:"SHARE",210:"SHARE.NAME",211:"DUPLICATE",212:"APPLY.STYLE",213:"ASSIGN.TO.OBJECT",214:"OBJECT.PROTECTION",215:"HIDE.OBJECT",216:"SET.EXTRACT",217:"CREATE.PUBLISHER",218:"SUBSCRIBE.TO",219:"ATTRIBUTES",220:"SHOW.TOOLBAR",222:"PRINT.PREVIEW",223:"EDIT.COLOR",224:"SHOW.LEVELS",225:"FORMAT.MAIN",226:"FORMAT.OVERLAY",227:"ON.RECALC",228:"EDIT.SERIES",229:"DEFINE.STYLE",240:"LINE.PRINT",243:"ENTER.DATA",249:"GALLERY.RADAR",250:"MERGE.STYLES",251:"EDITION.OPTIONS",252:"PASTE.PICTURE",253:"PASTE.PICTURE.LINK",254:"SPELLING",256:"ZOOM",259:"INSERT.OBJECT",260:"WINDOW.MINIMIZE",265:"SOUND.NOTE",266:"SOUND.PLAY",267:"FORMAT.SHAPE",268:"EXTEND.POLYGON",269:"FORMAT.AUTO",272:"GALLERY.3D.BAR",273:"GALLERY.3D.SURFACE",274:"FILL.AUTO",276:"CUSTOMIZE.TOOLBAR",277:"ADD.TOOL",278:"EDIT.OBJECT",279:"ON.DOUBLECLICK",280:"ON.ENTRY",281:"WORKBOOK.ADD",282:"WORKBOOK.MOVE",283:"WORKBOOK.COPY",284:"WORKBOOK.OPTIONS",285:"SAVE.WORKSPACE",288:"CHART.WIZARD",289:"DELETE.TOOL",290:"MOVE.TOOL",291:"WORKBOOK.SELECT",292:"WORKBOOK.ACTIVATE",293:"ASSIGN.TO.TOOL",295:"COPY.TOOL",296:"RESET.TOOL",297:"CONSTRAIN.NUMERIC",298:"PASTE.TOOL",302:"WORKBOOK.NEW",305:"SCENARIO.CELLS",306:"SCENARIO.DELETE",307:"SCENARIO.ADD",308:"SCENARIO.EDIT",309:"SCENARIO.SHOW",310:"SCENARIO.SHOW.NEXT",311:"SCENARIO.SUMMARY",312:"PIVOT.TABLE.WIZARD",313:"PIVOT.FIELD.PROPERTIES",314:"PIVOT.FIELD",315:"PIVOT.ITEM",316:"PIVOT.ADD.FIELDS",318:"OPTIONS.CALCULATION",319:"OPTIONS.EDIT",320:"OPTIONS.VIEW",321:"ADDIN.MANAGER",322:"MENU.EDITOR",323:"ATTACH.TOOLBARS",324:"VBAActivate",325:"OPTIONS.CHART",328:"VBA.INSERT.FILE",330:"VBA.PROCEDURE.DEFINITION",336:"ROUTING.SLIP",338:"ROUTE.DOCUMENT",339:"MAIL.LOGON",342:"INSERT.PICTURE",343:"EDIT.TOOL",344:"GALLERY.DOUGHNUT",350:"CHART.TREND",352:"PIVOT.ITEM.PROPERTIES",354:"WORKBOOK.INSERT",355:"OPTIONS.TRANSITION",356:"OPTIONS.GENERAL",370:"FILTER.ADVANCED",373:"MAIL.ADD.MAILER",374:"MAIL.DELETE.MAILER",375:"MAIL.REPLY",376:"MAIL.REPLY.ALL",377:"MAIL.FORWARD",378:"MAIL.NEXT.LETTER",379:"DATA.LABEL",380:"INSERT.TITLE",381:"FONT.PROPERTIES",382:"MACRO.OPTIONS",383:"WORKBOOK.HIDE",384:"WORKBOOK.UNHIDE",385:"WORKBOOK.DELETE",386:"WORKBOOK.NAME",388:"GALLERY.CUSTOM",390:"ADD.CHART.AUTOFORMAT",391:"DELETE.CHART.AUTOFORMAT",392:"CHART.ADD.DATA",393:"AUTO.OUTLINE",394:"TAB.ORDER",395:"SHOW.DIALOG",396:"SELECT.ALL",397:"UNGROUP.SHEETS",398:"SUBTOTAL.CREATE",399:"SUBTOTAL.REMOVE",400:"RENAME.OBJECT",412:"WORKBOOK.SCROLL",413:"WORKBOOK.NEXT",414:"WORKBOOK.PREV",415:"WORKBOOK.TAB.SPLIT",416:"FULL.SCREEN",417:"WORKBOOK.PROTECT",420:"SCROLLBAR.PROPERTIES",421:"PIVOT.SHOW.PAGES",422:"TEXT.TO.COLUMNS",423:"FORMAT.CHARTTYPE",424:"LINK.FORMAT",425:"TRACER.DISPLAY",430:"TRACER.NAVIGATE",431:"TRACER.CLEAR",432:"TRACER.ERROR",433:"PIVOT.FIELD.GROUP",434:"PIVOT.FIELD.UNGROUP",435:"CHECKBOX.PROPERTIES",436:"LABEL.PROPERTIES",437:"LISTBOX.PROPERTIES",438:"EDITBOX.PROPERTIES",439:"PIVOT.REFRESH",440:"LINK.COMBO",441:"OPEN.TEXT",442:"HIDE.DIALOG",443:"SET.DIALOG.FOCUS",444:"ENABLE.OBJECT",445:"PUSHBUTTON.PROPERTIES",446:"SET.DIALOG.DEFAULT",447:"FILTER",448:"FILTER.SHOW.ALL",449:"CLEAR.OUTLINE",450:"FUNCTION.WIZARD",451:"ADD.LIST.ITEM",452:"SET.LIST.ITEM",453:"REMOVE.LIST.ITEM",454:"SELECT.LIST.ITEM",455:"SET.CONTROL.VALUE",456:"SAVE.COPY.AS",458:"OPTIONS.LISTS.ADD",459:"OPTIONS.LISTS.DELETE",460:"SERIES.AXES",461:"SERIES.X",462:"SERIES.Y",463:"ERRORBAR.X",464:"ERRORBAR.Y",465:"FORMAT.CHART",466:"SERIES.ORDER",467:"MAIL.LOGOFF",468:"CLEAR.ROUTING.SLIP",469:"APP.ACTIVATE.MICROSOFT",470:"MAIL.EDIT.MAILER",471:"ON.SHEET",472:"STANDARD.WIDTH",473:"SCENARIO.MERGE",474:"SUMMARY.INFO",475:"FIND.FILE",476:"ACTIVE.CELL.FONT",477:"ENABLE.TIPWIZARD",478:"VBA.MAKE.ADDIN",480:"INSERTDATATABLE",481:"WORKGROUP.OPTIONS",482:"MAIL.SEND.MAILER",485:"AUTOCORRECT",489:"POST.DOCUMENT",491:"PICKLIST",493:"VIEW.SHOW",494:"VIEW.DEFINE",495:"VIEW.DELETE",509:"SHEET.BACKGROUND",510:"INSERT.MAP.OBJECT",511:"OPTIONS.MENONO",517:"MSOCHECKS",518:"NORMAL",519:"LAYOUT",520:"RM.PRINT.AREA",521:"CLEAR.PRINT.AREA",522:"ADD.PRINT.AREA",523:"MOVE.BRK",545:"HIDECURR.NOTE",546:"HIDEALL.NOTES",547:"DELETE.NOTE",548:"TRAVERSE.NOTES",549:"ACTIVATE.NOTES",620:"PROTECT.REVISIONS",621:"UNPROTECT.REVISIONS",647:"OPTIONS.ME",653:"WEB.PUBLISH",667:"NEWWEBQUERY",673:"PIVOT.TABLE.CHART",753:"OPTIONS.SAVE",755:"OPTIONS.SPELL",808:"HIDEALL.INKANNOTS"}
853,FD={0:"COUNT",1:"IF",2:"ISNA",3:"ISERROR",4:"SUM",5:"AVERAGE",6:"MIN",7:"MAX",8:"ROW",9:"COLUMN",10:"NA",11:"NPV",12:"STDEV",13:"DOLLAR",14:"FIXED",15:"SIN",16:"COS",17:"TAN",18:"ATAN",19:"PI",20:"SQRT",21:"EXP",22:"LN",23:"LOG10",24:"ABS",25:"INT",26:"SIGN",27:"ROUND",28:"LOOKUP",29:"INDEX",30:"REPT",31:"MID",32:"LEN",33:"VALUE",34:"TRUE",35:"FALSE",36:"AND",37:"OR",38:"NOT",39:"MOD",40:"DCOUNT",41:"DSUM",42:"DAVERAGE",43:"DMIN",44:"DMAX",45:"DSTDEV",46:"VAR",47:"DVAR",48:"TEXT",49:"LINEST",50:"TREND",51:"LOGEST",52:"GROWTH",53:"GOTO",54:"HALT",55:"RETURN",56:"PV",57:"FV",58:"NPER",59:"PMT",60:"RATE",61:"MIRR",62:"IRR",63:"RAND",64:"MATCH",65:"DATE",66:"TIME",67:"DAY",68:"MONTH",69:"YEAR",70:"WEEKDAY",71:"HOUR",72:"MINUTE",73:"SECOND",74:"NOW",75:"AREAS",76:"ROWS",77:"COLUMNS",78:"OFFSET",79:"ABSREF",80:"RELREF",81:"ARGUMENT",82:"SEARCH",83:"TRANSPOSE",84:"ERROR",85:"STEP",86:"TYPE",87:"ECHO",88:"SET.NAME",89:"CALLER",90:"DEREF",91:"WINDOWS",92:"SERIES",93:"DOCUMENTS",94:"ACTIVE.CELL",95:"SELECTION",96:"RESULT",97:"ATAN2",98:"ASIN",99:"ACOS",100:"CHOOSE",101:"HLOOKUP",102:"VLOOKUP",103:"LINKS",104:"INPUT",105:"ISREF",106:"GET.FORMULA",107:"GET.NAME",108:"SET.VALUE",109:"LOG",110:"EXEC",111:"CHAR",112:"LOWER",113:"UPPER",114:"PROPER",115:"LEFT",116:"RIGHT",117:"EXACT",118:"TRIM",119:"REPLACE",120:"SUBSTITUTE",121:"CODE",122:"NAMES",123:"DIRECTORY",124:"FIND",125:"CELL",126:"ISERR",127:"ISTEXT",128:"ISNUMBER",129:"ISBLANK",130:"T",131:"N",132:"FOPEN",133:"FCLOSE",134:"FSIZE",135:"FREADLN",136:"FREAD",137:"FWRITELN",138:"FWRITE",139:"FPOS",140:"DATEVALUE",141:"TIMEVALUE",142:"SLN",143:"SYD",144:"DDB",145:"GET.DEF",146:"REFTEXT",147:"TEXTREF",148:"INDIRECT",149:"REGISTER",150:"CALL",151:"ADD.BAR",152:"ADD.MENU",153:"ADD.COMMAND",154:"ENABLE.COMMAND",155:"CHECK.COMMAND",156:"RENAME.COMMAND",157:"SHOW.BAR",158:"DELETE.MENU",159:"DELETE.COMMAND",160:"GET.CHART.ITEM",161:"DIALOG.BOX",162:"CLEAN",163:"MDETERM",164:"MINVERSE",165:"MMULT",166:"FILES",167:"IPMT",168:"PPMT",169:"COUNTA",170:"CANCEL.KEY",171:"FOR",172:"WHILE",173:"BREAK",174:"NEXT",175:"INITIATE",176:"REQUEST",177:"POKE",178:"EXECUTE",179:"TERMINATE",180:"RESTART",181:"HELP",182:"GET.BAR",183:"PRODUCT",184:"FACT",185:"GET.CELL",186:"GET.WORKSPACE",187:"GET.WINDOW",188:"GET.DOCUMENT",189:"DPRODUCT",190:"ISNONTEXT",191:"GET.NOTE",192:"NOTE",193:"STDEVP",194:"VARP",195:"DSTDEVP",196:"DVARP",197:"TRUNC",198:"ISLOGICAL",199:"DCOUNTA",200:"DELETE.BAR",201:"UNREGISTER",204:"USDOLLAR",205:"FINDB",206:"SEARCHB",207:"REPLACEB",208:"LEFTB",209:"RIGHTB",210:"MIDB",211:"LENB",212:"ROUNDUP",213:"ROUNDDOWN",214:"ASC",215:"DBCS",216:"RANK",219:"ADDRESS",220:"DAYS360",221:"TODAY",222:"VDB",223:"ELSE",224:"ELSE.IF",225:"END.IF",226:"FOR.CELL",227:"MEDIAN",228:"SUMPRODUCT",229:"SINH",230:"COSH",231:"TANH",232:"ASINH",233:"ACOSH",234:"ATANH",235:"DGET",236:"CREATE.OBJECT",237:"VOLATILE",238:"LAST.ERROR",239:"CUSTOM.UNDO",240:"CUSTOM.REPEAT",241:"FORMULA.CONVERT",242:"GET.LINK.INFO",243:"TEXT.BOX",244:"INFO",245:"GROUP",246:"GET.OBJECT",247:"DB",248:"PAUSE",251:"RESUME",252:"FREQUENCY",253:"ADD.TOOLBAR",254:"DELETE.TOOLBAR",255:"User",256:"RESET.TOOLBAR",257:"EVALUATE",258:"GET.TOOLBAR",259:"GET.TOOL",260:"SPELLING.CHECK",261:"ERROR.TYPE",262:"APP.TITLE",263:"WINDOW.TITLE",264:"SAVE.TOOLBAR",265:"ENABLE.TOOL",266:"PRESS.TOOL",267:"REGISTER.ID",268:"GET.WORKBOOK",269:"AVEDEV",270:"BETADIST",271:"GAMMALN",272:"BETAINV",273:"BINOMDIST",274:"CHIDIST",275:"CHIINV",276:"COMBIN",277:"CONFIDENCE",278:"CRITBINOM",279:"EVEN",280:"EXPONDIST",281:"FDIST",282:"FINV",283:"FISHER",284
vendor: 12,985 bytes, line 853
853:"FISHERINV",285:"FLOOR",286:"GAMMADIST",287:"GAMMAINV",288:"CEILING",289:"HYPGEOMDIST",290:"LOGNORMDIST",291:"LOGINV",292:"NEGBINOMDIST",293:"NORMDIST",294:"NORMSDIST",295:"NORMINV",296:"NORMSINV",297:"STANDARDIZE",298:"ODD",299:"PERMUT",300:"POISSON",301:"TDIST",302:"WEIBULL",303:"SUMXMY2",304:"SUMX2MY2",305:"SUMX2PY2",306:"CHITEST",307:"CORREL",308:"COVAR",309:"FORECAST",310:"FTEST",311:"INTERCEPT",312:"PEARSON",313:"RSQ",314:"STEYX",315:"SLOPE",316:"TTEST",317:"PROB",318:"DEVSQ",319:"GEOMEAN",320:"HARMEAN",321:"SUMSQ",322:"KURT",323:"SKEW",324:"ZTEST",325:"LARGE",326:"SMALL",327:"QUARTILE",328:"PERCENTILE",329:"PERCENTRANK",330:"MODE",331:"TRIMMEAN",332:"TINV",334:"MOVIE.COMMAND",335:"GET.MOVIE",336:"CONCATENATE",337:"POWER",338:"PIVOT.ADD.DATA",339:"GET.PIVOT.TABLE",340:"GET.PIVOT.FIELD",341:"GET.PIVOT.ITEM",342:"RADIANS",343:"DEGREES",344:"SUBTOTAL",345:"SUMIF",346:"COUNTIF",347:"COUNTBLANK",348:"SCENARIO.GET",349:"OPTIONS.LISTS.GET",350:"ISPMT",351:"DATEDIF",352:"DATESTRING",353:"NUMBERSTRING",354:"ROMAN",355:"OPEN.DIALOG",356:"SAVE.DIALOG",357:"VIEW.GET",358:"GETPIVOTDATA",359:"HYPERLINK",360:"PHONETIC",361:"AVERAGEA",362:"MAXA",363:"MINA",364:"STDEVPA",365:"VARPA",366:"STDEVA",367:"VARA",368:"BAHTTEXT",369:"THAIDAYOFWEEK",370:"THAIDIGIT",371:"THAIMONTHOFYEAR",372:"THAINUMSOUND",373:"THAINUMSTRING",374:"THAISTRINGLENGTH",375:"ISTHAIDIGIT",376:"ROUNDBAHTDOWN",377:"ROUNDBAHTUP",378:"THAIYEAR",379:"RTD",380:"CUBEVALUE",381:"CUBEMEMBER",382:"CUBEMEMBERPROPERTY",383:"CUBERANKEDMEMBER",384:"HEX2BIN",385:"HEX2DEC",386:"HEX2OCT",387:"DEC2BIN",388:"DEC2HEX",389:"DEC2OCT",390:"OCT2BIN",391:"OCT2HEX",392:"OCT2DEC",393:"BIN2DEC",394:"BIN2OCT",395:"BIN2HEX",396:"IMSUB",397:"IMDIV",398:"IMPOWER",399:"IMABS",400:"IMSQRT",401:"IMLN",402:"IMLOG2",403:"IMLOG10",404:"IMSIN",405:"IMCOS",406:"IMEXP",407:"IMARGUMENT",408:"IMCONJUGATE",409:"IMAGINARY",410:"IMREAL",411:"COMPLEX",412:"IMSUM",413:"IMPRODUCT",414:"SERIESSUM",415:"FACTDOUBLE",416:"SQRTPI",417:"QUOTIENT",418:"DELTA",419:"GESTEP",420:"ISEVEN",421:"ISODD",422:"MROUND",423:"ERF",424:"ERFC",425:"BESSELJ",426:"BESSELK",427:"BESSELY",428:"BESSELI",429:"XIRR",430:"XNPV",431:"PRICEMAT",432:"YIELDMAT",433:"INTRATE",434:"RECEIVED",435:"DISC",436:"PRICEDISC",437:"YIELDDISC",438:"TBILLEQ",439:"TBILLPRICE",440:"TBILLYIELD",441:"PRICE",442:"YIELD",443:"DOLLARDE",444:"DOLLARFR",445:"NOMINAL",446:"EFFECT",447:"CUMPRINC",448:"CUMIPMT",449:"EDATE",450:"EOMONTH",451:"YEARFRAC",452:"COUPDAYBS",453:"COUPDAYS",454:"COUPDAYSNC",455:"COUPNCD",456:"COUPNUM",457:"COUPPCD",458:"DURATION",459:"MDURATION",460:"ODDLPRICE",461:"ODDLYIELD",462:"ODDFPRICE",463:"ODDFYIELD",464:"RANDBETWEEN",465:"WEEKNUM",466:"AMORDEGRC",467:"AMORLINC",468:"CONVERT",724:"SHEETJS",469:"ACCRINT",470:"ACCRINTM",471:"WORKDAY",472:"NETWORKDAYS",473:"GCD",474:"MULTINOMIAL",475:"LCM",476:"FVSCHEDULE",477:"CUBEKPIMEMBER",478:"CUBESET",479:"CUBESETCOUNT",480:"IFERROR",481:"COUNTIFS",482:"SUMIFS",483:"AVERAGEIF",484:"AVERAGEIFS"},woe={2:1,3:1,10:0,15:1,16:1,17:1,18:1,19:0,20:1,21:1,22:1,23:1,24:1,25:1,26:1,27:2,30:2,31:3,32:1,33:1,34:0,35:0,38:1,39:2,40:3,41:3,42:3,43:3,44:3,45:3,47:3,48:2,53:1,61:3,63:0,65:3,66:3,67:1,68:1,69:1,70:1,71:1,72:1,73:1,74:0,75:1,76:1,77:1,79:2,80:2,83:1,85:0,86:1,89:0,90:1,94:0,95:0,97:2,98:1,99:1,101:3,102:3,105:1,106:1,108:2,111:1,112:1,113:1,114:1,117:2,118:1,119:4,121:1,126:1,127:1,128:1,129:1,130:1,131:1,133:1,134:1,135:1,136:2,137:2,138:2,140:1,141:1,142:3,143:4,144:4,161:1,162:1,163:1,164:1,165:2,172:1,175:2,176:2,177:3,178:2,179:1,184:1,186:1,189:3,190:1,195:3,196:3,197:1,198:1,199:3,201:1,207:4,210:3,211:1,212:2,213:2,214:1,215:1,225:0,229:1,230:1,231:1,232:1,233:1,234:1,235:3,244:1,247:4,252:2,257:1,261:1,271:1,273:4,274:2,275:2,276:2,277:3,278:3,279:1,280:3,281:3,282:3,283:1,284:1,285:2,286:4,287:3,288:2,289:4,290:3,291:3,292:3,293:4,294:1,295:3,296:1,297:3,298:1,299:2,300:3,301:3,302:4,303:2,304:2,305:2,306:2,307:2,308:2,309:3,310:2,311:2,312:2,313:2,314:2,315:2,316:4,325:2,326:2,327:2,328:2,331:2,332:2,337:2,342:1,343:1,346:2,347:1,350:4,351:3,352:1,353:2,360:1,368:1,369:1,370:1,371:1,372:1,373:1,374:1,375:1,376:1,377:1,378:1,382:3,385:1,392:1,393:1,396:2,397:2,398:2,399:1,400:1,401:1,402:1,403:1,404:1,405:1,406:1,407:1,408:1,409:1,410:1,414:4,415:1,416:1,417:2,420:1,421:1,422:2,424:1,425:2,426:2,427:2,428:2,430:3,438:3,439:3,440:3,443:2,444:2,445:2,446:2,447:6,448:6,449:2,450:2,464:2,468:3,476:2,479:1,480:2,65535:0};function boe(t){var e="of:="+t.replace(b_,"$1[.$2$3$4$5]").replace(/\]:\[/g,":");return e.replace(/;/g,"|").replace(/,/g,";")}function Soe(t){return t.replace(/\./,"!")}var qf=typeof Map<"u";function E_(t,e,r){var n=0,s=t.length;if(r){if(qf?r.has(e):Object.prototype.hasOwnProperty.call(r,e)){for(var i=qf?r.get(e):r[e];n<i.length;++n)if(t[i[n]].t===e)return t.Count++,i[n]}}else for(;n<s;++n)if(t[n].t===e)return t.Count++,n;return t[s]={t:e},t.Count++,t.Unique++,r&&(qf?(r.has(e)||r.set(e,[]),r.get(e).push(s)):(Object.prototype.hasOwnProperty.call(r,e)||(r[e]=[]),r[e].push(s))),s}function uv(t,e){var r={min:t+1,max:t+1},n=-1;return e.MDW&&(Io=e.MDW),e.width!=null?r.customWidth=1:e.wpx!=null?n=Ig(e.wpx):e.wch!=null&&(n=e.wch),n>-1?(r.width=Eb(n),r.customWidth=1):e.width!=null&&(r.width=e.width),e.hidden&&(r.hidden=!0),e.level!=null&&(r.outlineLevel=r.level=e.level),r}function BD(t,e){if(t){var r=[.7,.7,.75,.75,.3,.3];t.left==null&&(t.left=r[0]),t.right==null&&(t.right=r[1]),t.top==null&&(t.top=r[2]),t.bottom==null&&(t.bottom=r[3]),t.header==null&&(t.header=r[4]),t.footer==null&&(t.footer=r[5])}}function hl(t,e,r){var n=r.revssf[e.z!=null?e.z:"General"],s=60,i=t.length;if(n==null&&r.ssf){for(;s<392;++s)if(r.ssf[s]==null){MI(e.z,s),r.ssf[s]=e.z,r.revssf[e.z]=n=s;break}}for(s=0;s!=i;++s)if(t[s].numFmtId===n)return s;return t[i]={numFmtId:n,fontId:0,fillId:0,borderId:0,xfId:0,applyNumberFormat:1},i}function _oe(t,e,r){if(t&&t["!ref"]){var n=Gt(t["!ref"]);if(n.e.c<n.s.c||n.e.r<n.s.r)throw new Error("Bad range ("+r+"): "+t["!ref"])}}function Eoe(t){if(t.length===0)return"";for(var e='<mergeCells count="'+t.length+'">',r=0;r!=t.length;++r)e+='<mergeCell ref="'+Nr(t[r])+'"/>';return e+"</mergeCells>"}function Toe(t,e,r,n,s){var i=!1,o={},a=null;if(n.bookType!=="xlsx"&&e.vbaraw){var l=e.SheetNames[r];try{e.Workbook&&(l=e.Workbook.Sheets[r].CodeName||l)}catch{}i=!0,o.codeName=Ih(Mt(l))}if(t&&t["!outline"]){var u={summaryBelow:1,summaryRight:1};t["!outline"].above&&(u.summaryBelow=0),t["!outline"].left&&(u.summaryRight=0),a=(a||"")+Ee("outlinePr",null,u)}!i&&!a||(s[s.length]=Ee("sheetPr",a,o))}var Coe=["objects","scenarios","selectLockedCells","selectUnlockedCells"],koe=["formatColumns","formatRows","formatCells","insertColumns","insertRows","insertHyperlinks","deleteColumns","deleteRows","sort","autoFilter","pivotTables"];function Noe(t){var e={sheet:1};return Coe.forEach(function(r){t[r]!=null&&t[r]&&(e[r]="1")}),koe.forEach(function(r){t[r]!=null&&!t[r]&&(e[r]="0")}),t.password&&(e.password=SD(t.password).toString(16).toUpperCase()),Ee("sheetProtection",null,e)}function Aoe(t){return BD(t),Ee("pageMargins",null,t)}function joe(t,e){for(var r=["<cols>"],n,s=0;s!=e.length;++s)(n=e[s])&&(r[r.length]=Ee("col",null,uv(s,n)));return r[r.length]="</cols>",r.join("")}function Roe(t,e,r,n){var s=typeof t.ref=="string"?t.ref:Nr(t.ref);r.Workbook||(r.Workbook={Sheets:[]}),r.Workbook.Names||(r.Workbook.Names=[]);var i=r.Workbook.Names,o=Ns(s);o.s.r==o.e.r&&(o.e.r=Ns(e["!ref"]).e.r,s=Nr(o));for(var a=0;a<i.length;++a){var l=i[a];if(l.Name=="_xlnm._FilterDatabase"&&l.Sheet==n){l.Ref="'"+r.SheetNames[n]+"'!"+s;break}}return a==i.length&&i.push({Name:"_xlnm._FilterDatabase",Sheet:n,Ref:"'"+r.SheetNames[n]+"'!"+s}),Ee("autoFilter",null,{ref:s})}function Ooe(t,e,r,n){var s={workbookViewId:"0"};return(((n||{}).Workbook||{}).Views||[])[0]&&(s.rightToLeft=n.Workbook.Views[0].RTL?"1":"0"),Ee("sheetViews",Ee("sheetView",null,s),{})}function Poe(t,e,r,n){if(t.c&&r["!comments"].push([e,t.c]),t.v===void 0&&typeof t.f!="string"||t.t==="z"&&!t.f)return"";var s="",i=t.t,o=t.v;if(t.t!=="z")switch(t.t){case"b":s=t.v?"1":"0";break;case"n":s=""+t.v;break;case"e":s=mp[t.v];break;case"d":n&&n.cellDates?s=zn(t.v,-1).toISOString():(t=us(t),t.t="n",s=""+(t.v=cs(zn(t.v)))),typeof t.z>"u"&&(t.z=gr[14]);break;default:s=t.v;break}var a=un("v",Mt(s)),l={r:e},u=hl(n.cellXfs,t,n);switch(u!==0&&(l.s=u),t.t){case"n":break;case"d":l.t="d";break;case"b":l.t="b";break;case"e":l.t="e";break;case"z":break;default:if(t.v==null){delete t.t;break}if(t.v.length>32767)throw new Error("Text length must not exceed 32767 characters");if(n&&n.bookSST){a=un("v",""+E_(n.Strings,t.v,n.revStrings)),l.t="s";break}l.t="str";break}if(t.t!=i&&(t.t=i,t.v=o),typeof t.f=="string"&&t.f){var d=t.F&&t.F.slice(0,e.length)==e?{t:"array",ref:t.F}:null;a=Ee("f",Mt(t.f),d)+(t.v!=null?a:"")}return t.l&&r["!links"].push([e,t.l]),t.D&&(l.cm=1),Ee("c",a,l)}function Moe(t,e,r,n){var s=[],i=[],o=Gt(t["!ref"]),a="",l,u="",d=[],f=0,h=0,p=t["!rows"],g=Array.isArray(t),m={r:u},x,v=-1;for(h=o.s.c;h<=o.e.c;++h)d[h]=En(h);for(f=o.s.r;f<=o.e.r;++f){for(i=[],u=hn(f),h=o.s.c;h<=o.e.c;++h){l=d[h]+u;var y=g?(t[f]||[])[h]:t[l];y!==void 0&&(a=Poe(y,l,t,e))!=null&&i.push(a)}(i.length>0||p&&p[f])&&(m={r:u},p&&p[f]&&(x=p[f],x.hidden&&(m.hidden=1),v=-1,x.hpx?v=Dg(x.hpx):x.hpt&&(v=x.hpt),v>-1&&(m.ht=v,m.customHeight=1),x.level&&(m.outlineLevel=x.level)),s[s.length]=Ee("row",i.join(""),m))}if(p)for(;f<p.length;++f)p&&p[f]&&(m={r:f+1},x=p[f],x.hidden&&(m.hidden=1),v=-1,x.hpx?v=Dg(x.hpx):x.hpt&&(v=x.hpt),v>-1&&(m.ht=v,m.customHeight=1),x.level&&(m.outlineLevel=x.level),s[s.length]=Ee("row","",m));return s.join("")}function $D(t,e,r,n){var s=[Or,Ee("worksheet",null,{xmlns:Ad[0],"xmlns:r":qr.r})],i=r.SheetNames[t],o=0,a="",l=r.Sheets[i];l==null&&(l={});var u=l["!ref"]||"A1",d=Gt(u);if(d.e.c>16383||d.e.r>1048575){if(e.WTF)throw new Error("Range "+u+" exceeds format limit A1:XFD1048576");d.e.c=Math.min(d.e.c,16383),d.e.r=Math.min(d.e.c,1048575),u=Nr(d)}n||(n={}),l["!comments"]=[];var f=[];Toe(l,r,t,e,s),s[s.length]=Ee("dimension",null,{ref:u}),s[s.length]=Ooe(l,e,t,r),e.sheetFormat&&(s[s.length]=Ee("sheetFormatPr",null,{defaultRowHeight:e.sheetFormat.defaultRowHeight||"16",baseColWidth:e.sheetFormat.baseColWidth||"10",outlineLevelRow:e.sheetFormat.outlineLevelRow||"7"})),l["!cols"]!=null&&l["!cols"].length>0&&(s[s.length]=joe(l,l["!cols"])),s[o=s.length]="<sheetData/>",l["!links"]=[],l["!ref"]!=null&&(a=Moe(l,e),a.length>0&&(s[s.length]=a)),s.length>o+1&&(s[s.length]="</sheetData>",s[o]=s[o].replace("/>",">")),l["!protect"]&&(s[s.length]=Noe(l["!protect"])),l["!autofilter"]!=null&&(s[s.length]=Roe(l["!autofilter"],l,r,t)),l["!merges"]!=null&&l["!merges"].length>0&&(s[s.length]=Eoe(l["!merges"]));var h=-1,p,g=-1;return l["!links"].length>0&&(s[s.length]="<hyperlinks>",l["!links"].forEach(function(m){m[1].Target&&(p={ref:m[0]},m[1].Target.charAt(0)!="#"&&(g=Pt(n,-1,Mt(m[1].Target).replace(/#.*$/,""),Et.HLINK),p["r:id"]="rId"+g),(h=m[1].Target.indexOf("#"))>-1&&(p.location=Mt(m[1].Target.slice(h+1))),m[1].Tooltip&&(p.tooltip=Mt(m[1].Tooltip)),s[s.length]=Ee("hyperlink",null,p))}),s[s.length]="</hyperlinks>"),delete l["!links"],l["!margins"]!=null&&(s[s.length]=Aoe(l["!margins"])),(!e||e.ignoreEC||e.ignoreEC==null)&&(s[s.length]=un("ignoredErrors",Ee("ignoredError",null,{numberStoredAsText:1,sqref:u}))),f.length>0&&(g=Pt(n,-1,"../drawings/drawing"+(t+1)+".xml",Et.DRAW),s[s.length]=Ee("drawing",null,{"r:id":"rId"+g}),l["!drawing"]=f),l["!comments"].length>0&&(g=Pt(n,-1,"../drawings/vmlDrawing"+(t+1)+".vml",Et.VML),s[s.length]=Ee("legacyDrawing",null,{"r:id":"rId"+g}),l["!legacy"]=g),s.length>1&&(s[s.length]="</worksheet>",s[1]=s[1].replace("/>",">")),s.join("")}function Ioe(t,e){var r={},n=t.l+e;r.r=t.read_shift(4),t.l+=4;var s=t.read_shift(2);t.l+=1;var i=t.read_shift(1);return t.l=n,i&7&&(r.level=i&7),i&16&&(r.hidden=!0),i&32&&(r.hpt=s/20),r}function Doe(t,e,r){var n=ie(145),s=(r["!rows"]||[])[t]||{};n.write_shift(4,t),n.write_shift(4,0);var i=320;s.hpx?i=Dg(s.hpx)*20:s.hpt&&(i=s.hpt*20),n.write_shift(2,i),n.write_shift(1,0);var o=0;s.level&&(o|=s.level),s.hidden&&(o|=16),(s.hpx||s.hpt)&&(o|=32),n.write_shift(1,o),n.write_shift(1,0);var a=0,l=n.l;n.l+=4;for(var u={r:t,c:0},d=0;d<16;++d)if(!(e.s.c>d+1<<10||e.e.c<d<<10)){for(var f=-1,h=-1,p=d<<10;p<d+1<<10;++p){u.c=p;var g=Array.isArray(r)?(r[u.r]||[])[u.c]:r[Dt(u)];g&&(f<0&&(f=p),h=p)}f<0||(++a,n.write_shift(4,f),n.write_shift(4,h))}var m=n.l;return n.l=l,n.write_shift(4,a),n.l=m,n.length>n.l?n.slice(0,n.l):n}function Loe(t,e,r,n){var s=Doe(n,r,e);(s.length>17||(e["!rows"]||[])[n])&&me(t,0,s)}var Foe=kc,Boe=Rd;function $oe(){}function zoe(t,e){var r={},n=t[t.l];return++t.l,r.above=!(n&64),r.left=!(n&128),t.l+=18,r.name=Jre(t),r}function Uoe(t,e,r){r==null&&(r=ie(84+4*t.length));var n=192;e&&(e.above&&(n&=-65),e.left&&(n&=-129)),r.write_shift(1,n);for(var s=1;s<3;++s)r.write_shift(1,0);return Og({auto:1},r),r.write_shift(-4,-1),r.write_shift(-4,-1),tD(t,r),r.slice(0,r.l)}
853function Hoe(t){var e=ai(t);return[e]}function Voe(t,e,r){return r==null&&(r=ie(8)),Ec(e,r)}function Woe(t){var e=Tc(t);return[e]}function qoe(t,e,r){return r==null&&(r=ie(4)),Cc(e,r)}function Goe(t){var e=ai(t),r=t.read_shift(1);return[e,r,"b"]}function Koe(t,e,r){return r==null&&(r=ie(9)),Ec(e,r),r.write_shift(1,t.v?1:0),r}function Xoe(t){var e=Tc(t),r=t.read_shift(1);return[e,r,"b"]}function Yoe(t,e,r){return r==null&&(r=ie(5)),Cc(e,r),r.write_shift(1,t.v?1:0),r}function Joe(t){var e=ai(t),r=t.read_shift(1);return[e,r,"e"]}function Qoe(t,e,r){return r==null&&(r=ie(9)),Ec(e,r),r.write_shift(1,t.v),r}function Zoe(t){var e=Tc(t),r=t.read_shift(1);return[e,r,"e"]}function eae(t,e,r){return r==null&&(r=ie(8)),Cc(e,r),r.write_shift(1,t.v),r.write_shift(2,0),r.write_shift(1,0),r}function tae(t){var e=ai(t),r=t.read_shift(4);return[e,r,"s"]}function rae(t,e,r){return r==null&&(r=ie(12)),Ec(e,r),r.write_shift(4,e.v),r}function nae(t){var e=Tc(t),r=t.read_shift(4);return[e,r,"s"]}function sae(t,e,r){return r==null&&(r=ie(8)),Cc(e,r),r.write_shift(4,e.v),r}function iae(t){var e=ai(t),r=Od(t);return[e,r,"n"]}function oae(t,e,r){return r==null&&(r=ie(16)),Ec(e,r),uc(t.v,r),r}function aae(t){var e=Tc(t),r=Od(t);return[e,r,"n"]}function lae(t,e,r){return r==null&&(r=ie(12)),Cc(e,r),uc(t.v,r),r}function cae(t){var e=ai(t),r=rD(t);return[e,r,"n"]}function uae(t,e,r){return r==null&&(r=ie(12)),Ec(e,r),nD(t.v,r),r}function dae(t){var e=Tc(t),r=rD(t);return[e,r,"n"]}function fae(t,e,r){return r==null&&(r=ie(8)),Cc(e,r),nD(t.v,r),r}function hae(t){var e=ai(t),r=g_(t);return[e,r,"is"]}function pae(t){var e=ai(t),r=Tn(t);return[e,r,"str"]}function mae(t,e,r){return r==null&&(r=ie(12+4*t.v.length)),Ec(e,r),Kr(t.v,r),r.length>r.l?r.slice(0,r.l):r}function gae(t){var e=Tc(t),r=Tn(t);return[e,r,"str"]}function xae(t,e,r){return r==null&&(r=ie(8+4*t.v.length)),Cc(e,r),Kr(t.v,r),r.length>r.l?r.slice(0,r.l):r}function vae(t,e,r){var n=t.l+e,s=ai(t);s.r=r["!row"];var i=t.read_shift(1),o=[s,i,"b"];if(r.cellFormula){t.l+=2;var a=cv(t,n-t.l,r);
vendor: 5,378 bytes, line 853
853o[3]=hd(a,null,s,r.supbooks,r)}else t.l=n;return o}function yae(t,e,r){var n=t.l+e,s=ai(t);s.r=r["!row"];var i=t.read_shift(1),o=[s,i,"e"];if(r.cellFormula){t.l+=2;var a=cv(t,n-t.l,r);o[3]=hd(a,null,s,r.supbooks,r)}else t.l=n;return o}function wae(t,e,r){var n=t.l+e,s=ai(t);s.r=r["!row"];var i=Od(t),o=[s,i,"n"];if(r.cellFormula){t.l+=2;var a=cv(t,n-t.l,r);o[3]=hd(a,null,s,r.supbooks,r)}else t.l=n;return o}function bae(t,e,r){var n=t.l+e,s=ai(t);s.r=r["!row"];var i=Tn(t),o=[s,i,"str"];if(r.cellFormula){t.l+=2;var a=cv(t,n-t.l,r);o[3]=hd(a,null,s,r.supbooks,r)}else t.l=n;return o}var Sae=kc,_ae=Rd;function Eae(t,e){return e==null&&(e=ie(4)),e.write_shift(4,t),e}function Tae(t,e){var r=t.l+e,n=kc(t),s=x_(t),i=Tn(t),o=Tn(t),a=Tn(t);t.l=r;var l={rfx:n,relId:s,loc:i,display:a};return o&&(l.Tooltip=o),l}function Cae(t,e){var r=ie(50+4*(t[1].Target.length+(t[1].Tooltip||"").length));Rd({s:Gr(t[0]),e:Gr(t[0])},r),v_("rId"+e,r);var n=t[1].Target.indexOf("#"),s=n==-1?"":t[1].Target.slice(n+1);return Kr(s||"",r),Kr(t[1].Tooltip||"",r),Kr("",r),r.slice(0,r.l)}function kae(){}function Nae(t,e,r){var n=t.l+e,s=sD(t),i=t.read_shift(1),o=[s];if(o[2]=i,r.cellFormula){var a=goe(t,n-t.l,r);o[1]=a}else t.l=n;return o}function Aae(t,e,r){var n=t.l+e,s=kc(t),i=[s];if(r.cellFormula){var o=voe(t,n-t.l,r);i[1]=o,t.l=n}else t.l=n;return i}function jae(t,e,r){r==null&&(r=ie(18));var n=uv(t,e);r.write_shift(-4,t),r.write_shift(-4,t),r.write_shift(4,(n.width||10)*256),r.write_shift(4,0);var s=0;return e.hidden&&(s|=1),typeof n.width=="number"&&(s|=2),e.level&&(s|=e.level<<8),r.write_shift(2,s),r}var zD=["left","right","top","bottom","header","footer"];function Rae(t){var e={};return zD.forEach(function(r){e[r]=Od(t)}),e}function Oae(t,e){return e==null&&(e=ie(6*8)),BD(t),zD.forEach(function(r){uc(t[r],e)}),e}function Pae(t){var e=t.read_shift(2);return t.l+=28,{RTL:e&32}}function Mae(t,e,r){r==null&&(r=ie(30));var n=924;return(((e||{}).Views||[])[0]||{}).RTL&&(n|=32),r.write_shift(2,n),r.write_shift(4,0),r.write_shift(4,0),r.write_shift(4,0),r.write_shift(1,0),r.write_shift(1,0),r.write_shift(2,0),r.write_shift(2,100),r.write_shift(2,0),r.write_shift(2,0),r.write_shift(2,0),r.write_shift(4,0),r}function Iae(t){var e=ie(24);return e.write_shift(4,4),e.write_shift(4,1),Rd(t,e),e}function Dae(t,e){return e==null&&(e=ie(16*4+2)),e.write_shift(2,t.password?SD(t.password):0),e.write_shift(4,1),[["objects",!1],["scenarios",!1],["formatCells",!0],["formatColumns",!0],["formatRows",!0],["insertColumns",!0],["insertRows",!0],["insertHyperlinks",!0],["deleteColumns",!0],["deleteRows",!0],["selectLockedCells",!1],["sort",!0],["autoFilter",!0],["pivotTables",!0],["selectUnlockedCells",!1]].forEach(function(r){r[1]?e.write_shift(4,t[r[0]]!=null&&!t[r[0]]?1:0):e.write_shift(4,t[r[0]]!=null&&t[r[0]]?0:1)}),e}function Lae(){}function Fae(){}function Bae(t,e,r,n,s,i,o){if(e.v===void 0)return!1;var a="";switch(e.t){case"b":a=e.v?"1":"0";break;case"d":e=us(e),e.z=e.z||gr[14],e.v=cs(zn(e.v)),e.t="n";break;case"n":case"e":a=""+e.v;break;default:a=e.v;break}var l={r,c:n};switch(l.s=hl(s.cellXfs,e,s),e.l&&i["!links"].push([Dt(l),e.l]),e.c&&i["!comments"].push([Dt(l),e.c]),e.t){case"s":case"str":return s.bookSST?(a=E_(s.Strings,e.v,s.revStrings),l.t="s",l.v=a,o?me(t,18,sae(e,l)):me(t,7,rae(e,l))):(l.t="str",o?me(t,17,xae(e,l)):me(t,6,mae(e,l))),!0;case"n":return e.v==(e.v|0)&&e.v>-1e3&&e.v<1e3?o?me(t,13,fae(e,l)):me(t,2,uae(e,l)):o?me(t,16,lae(e,l)):me(t,5,oae(e,l)),!0;case"b":return l.t="b",o?me(t,15,Yoe(e,l)):me(t,4,Koe(e,l)),!0;case"e":return l.t="e",o?me(t,14,eae(e,l)):me(t,3,Qoe(e,l)),!0}return o?me(t,12,qoe(e,l)):me(t,1,Voe(e,l)),!0}function $ae(t,e,r,n){var s=Gt(e["!ref"]||"A1"),i,o="",a=[];me(t,145);var l=Array.isArray(e),u=s.e.r;e["!rows"]&&(u=Math.max(s.e.r,e["!rows"].length-1));for(var d=s.s.r;d<=u;++d){o=hn(d),Loe(t,e,s,d);var f=!1;if(d<=s.e.r)for(var h=s.s.c;h<=s.e.c;++h){d===s.s.r&&(a[h]=En(h)),i=a[h]+o;var p=l?(e[d]||[])[h]:e[i];if(!p){f=!1;continue}f=Bae(t,p,d,h,n,e,f)}}me(t,146)}function zae(t,e){!e||!e["!merges"]||(me(t,177,Eae(e["!merges"].length)),e["!merges"].forEach(function(r){me(t,176,_ae(r))}),me(t,178))}function Uae(t,e){!e||!e["!cols"]||(me(t,390),e["!cols"].forEach(function(r,n){r&&me(t,60,jae(n,r))}),me(t,391))}function Hae(t,e){!e||!e["!ref"]||(me(t,648),me(t,649,Iae(Gt(e["!ref"]))),me(t,650))}function Vae(t,e,r){e["!links"].forEach(function(n){if(n[1].Target){var s=Pt(r,-1,n[1].Target.replace(/#.*$/,""),Et.HLINK);me(t,494,Cae(n,s))}}),delete e["!links"]}function Wae(t,e,r,n){if(e["!comments"].length>0){var s=Pt(n,-1,"../drawings/vmlDrawing"+(r+1)+".vml",Et.VML);me(t,551,v_("rId"+s)),e["!legacy"]=s}}function qae(t,e,r,n){if(e["!autofilter"]){var s=e["!autofilter"],i=typeof s.ref=="string"?s.ref:Nr(s.ref);r.Workbook||(r.Workbook={Sheets:[]}),r.Workbook.Names||(r.Workbook.Names=[]);var o=r.Workbook.Names,a=Ns(i);a.s.r==a.e.r&&(a.e.r=Ns(e["!ref"]).e.r,i=Nr(a));for(var l=0;l<o.length;++l){var u=o[l];if(u.Name=="_xlnm._FilterDatabase"&&u.Sheet==n){u.Ref="'"+r.SheetNames[n]+"'!"+i;break}}l==o.length&&o.push({Name:"_xlnm._FilterDatabase",Sheet:n,Ref:"'"+r.SheetNames[n]+"'!"+i}),me(t,161,Rd(Gt(i))),me(t,162)}}function Gae(t,e,r){me(t,133),me(t,137,Mae(e,r)),me(t,138),me(t,134)}function Kae(t,e){e["!protect"]&&me(t,535,Dae(e["!protect"]))}function Xae(t,e,r,n){var s=ls(),i=r.SheetNames[t],o=r.Sheets[i]||{},a=i;
853try{r&&r.Workbook&&(a=r.Workbook.Sheets[t].CodeName||a)}catch{}var l=Gt(o["!ref"]||"A1");if(l.e.c>16383||l.e.r>1048575){if(e.WTF)throw new Error("Range "+(o["!ref"]||"A1")+" exceeds format limit A1:XFD1048576");l.e.c=Math.min(l.e.c,16383),l.e.r=Math.min(l.e.c,1048575)}return o["!links"]=[],o["!comments"]=[],me(s,129),(r.vbaraw||o["!outline"])&&me(s,147,Uoe(a,o["!outline"])),me(s,148,Boe(l)),Gae(s,o,r.Workbook),Uae(s,o),$ae(s,o,t,e),Kae(s,o),qae(s,o,r,t),zae(s,o),Vae(s,o,n),o["!margins"]&&me(s,476,Oae(o["!margins"])),(!e||e.ignoreEC||e.ignoreEC==null)&&Hae(s,o),Wae(s,o,t,n),me(s,130),s.end()}function Yae(t,e){t.l+=10;var r=Tn(t);return{name:r}}var Jae=[["allowRefreshQuery",!1,"bool"],["autoCompressPictures",!0,"bool"],["backupFile",!1,"bool"],["checkCompatibility",!1,"bool"],["CodeName",""],["date1904",!1,"bool"],["defaultThemeVersion",0,"int"],["filterPrivacy",!1,"bool"],["hidePivotFieldList",!1,"bool"],["promptedSolutions",!1,"bool"],["publishItems",!1,"bool"],["refreshAllConnections",!1,"bool"],["saveExternalLinkValues",!0,"bool"],["showBorderUnselectedTables",!0,"bool"],["showInkAnnotation",!0,"bool"],["showObjects","all"],["showPivotChartFilter",!1,"bool"],["updateLinks","userSet"]];function Qae(t){return!t.Workbook||!t.Workbook.WBProps?"false":Are(t.Workbook.WBProps.date1904)?"true":"false"}var Zae="][*?/\\".split("");function UD(t,e){if(t.length>31)throw new Error("Sheet names cannot exceed 31 chars");var r=!0;return Zae.forEach(function(n){if(t.indexOf(n)!=-1)throw new Error("Sheet name cannot contain : \\ / ? * [ ]")}),r}function ele(t,e,r){t.forEach(function(n,s){UD(n);for(var i=0;i<s;++i)if(n==t[i])throw new Error("Duplicate Sheet Name: "+n);if(r){var o=e&&e[s]&&e[s].CodeName||n;
vendor: 4,691 bytes, line 853
853if(o.charCodeAt(0)==95&&o.length>22)throw new Error("Bad Code Name: Worksheet"+o)}})}function tle(t){if(!t||!t.SheetNames||!t.Sheets)throw new Error("Invalid Workbook");if(!t.SheetNames.length)throw new Error("Workbook is empty");var e=t.Workbook&&t.Workbook.Sheets||[];ele(t.SheetNames,e,!!t.vbaraw);for(var r=0;r<t.SheetNames.length;++r)_oe(t.Sheets[t.SheetNames[r]],t.SheetNames[r],r)}function HD(t){var e=[Or];e[e.length]=Ee("workbook",null,{xmlns:Ad[0],"xmlns:r":qr.r});var r=t.Workbook&&(t.Workbook.Names||[]).length>0,n={codeName:"ThisWorkbook"};t.Workbook&&t.Workbook.WBProps&&(Jae.forEach(function(a){t.Workbook.WBProps[a[0]]!=null&&t.Workbook.WBProps[a[0]]!=a[1]&&(n[a[0]]=t.Workbook.WBProps[a[0]])}),t.Workbook.WBProps.CodeName&&(n.codeName=t.Workbook.WBProps.CodeName,delete n.CodeName)),e[e.length]=Ee("workbookPr",null,n);var s=t.Workbook&&t.Workbook.Sheets||[],i=0;if(s&&s[0]&&s[0].Hidden){for(e[e.length]="<bookViews>",i=0;i!=t.SheetNames.length&&!(!s[i]||!s[i].Hidden);++i);i==t.SheetNames.length&&(i=0),e[e.length]='<workbookView firstSheet="'+i+'" activeTab="'+i+'"/>',e[e.length]="</bookViews>"}for(e[e.length]="<sheets>",i=0;i!=t.SheetNames.length;++i){var o={name:Mt(t.SheetNames[i].slice(0,31))};if(o.sheetId=""+(i+1),o["r:id"]="rId"+(i+1),s[i])switch(s[i].Hidden){case 1:o.state="hidden";break;case 2:o.state="veryHidden";break}e[e.length]=Ee("sheet",null,o)}return e[e.length]="</sheets>",r&&(e[e.length]="<definedNames>",t.Workbook&&t.Workbook.Names&&t.Workbook.Names.forEach(function(a){var l={name:a.Name};a.Comment&&(l.comment=a.Comment),a.Sheet!=null&&(l.localSheetId=""+a.Sheet),a.Hidden&&(l.hidden="1"),a.Ref&&(e[e.length]=Ee("definedName",Mt(a.Ref),l))}),e[e.length]="</definedNames>"),e.length>2&&(e[e.length]="</workbook>",e[1]=e[1].replace("/>",">")),e.join("")}function rle(t,e){var r={};return r.Hidden=t.read_shift(4),r.iTabID=t.read_shift(4),r.strRelID=_b(t),r.name=Tn(t),r}function nle(t,e){return e||(e=ie(127)),e.write_shift(4,t.Hidden),e.write_shift(4,t.iTabID),v_(t.strRelID,e),Kr(t.name.slice(0,31),e),e.length>e.l?e.slice(0,e.l):e}function sle(t,e){var r={},n=t.read_shift(4);r.defaultThemeVersion=t.read_shift(4);var s=e>8?Tn(t):"";return s.length>0&&(r.CodeName=s),r.autoCompressPictures=!!(n&65536),r.backupFile=!!(n&64),r.checkCompatibility=!!(n&4096),r.date1904=!!(n&1),r.filterPrivacy=!!(n&8),r.hidePivotFieldList=!!(n&1024),r.promptedSolutions=!!(n&16),r.publishItems=!!(n&2048),r.refreshAllConnections=!!(n&262144),r.saveExternalLinkValues=!!(n&128),r.showBorderUnselectedTables=!!(n&4),r.showInkAnnotation=!!(n&32),r.showObjects=["all","placeholders","none"][n>>13&3],r.showPivotChartFilter=!!(n&32768),r.updateLinks=["userSet","never","always"][n>>8&3],r}function ile(t,e){e||(e=ie(72));var r=0;return t&&t.filterPrivacy&&(r|=8),e.write_shift(4,r),e.write_shift(4,0),tD(t&&t.CodeName||"ThisWorkbook",e),e.slice(0,e.l)}function ole(t,e,r){var n=t.l+e;t.l+=4,t.l+=1;var s=t.read_shift(4),i=Qre(t),o=xoe(t,0,r),a=x_(t);t.l=n;var l={Name:i,Ptg:o};return s<268435455&&(l.Sheet=s),a&&(l.Comment=a),l}function ale(t,e){me(t,143);for(var r=0;r!=e.SheetNames.length;++r){var n=e.Workbook&&e.Workbook.Sheets&&e.Workbook.Sheets[r]&&e.Workbook.Sheets[r].Hidden||0,s={Hidden:n,iTabID:r+1,strRelID:"rId"+(r+1),name:e.SheetNames[r]};me(t,156,nle(s))}me(t,144)}function lle(t,e){e||(e=ie(127));for(var r=0;r!=4;++r)e.write_shift(4,0);return Kr("SheetJS",e),Kr(Tg.version,e),Kr(Tg.version,e),Kr("7262",e),e.length>e.l?e.slice(0,e.l):e}function cle(t,e){e||(e=ie(29)),e.write_shift(-4,0),e.write_shift(-4,460),e.write_shift(4,28800),e.write_shift(4,17600),e.write_shift(4,500),e.write_shift(4,t),e.write_shift(4,t);var r=120;return e.write_shift(1,r),e.length>e.l?e.slice(0,e.l):e}function ule(t,e){if(!(!e.Workbook||!e.Workbook.Sheets)){for(var r=e.Workbook.Sheets,n=0,s=-1,i=-1;n<r.length;++n)!r[n]||!r[n].Hidden&&s==-1?s=n:r[n].Hidden==1&&i==-1&&(i=n);i>s||(me(t,135),me(t,158,cle(s)),me(t,136))}}function dle(t,e){var r=ls();return me(r,131),me(r,128,lle()),me(r,153,ile(t.Workbook&&t.Workbook.WBProps||null)),ule(r,t),ale(r,t),me(r,132),r.end()}function fle(t,e,r){return(e.slice(-4)===".bin"?dle:HD)(t)}function hle(t,e,r,n,s){return(e.slice(-4)===".bin"?Xae:$D)(t,r,n,s)}function ple(t,e,r){return(e.slice(-4)===".bin"?Ose:TD)(t,r)}function mle(t,e,r){return(e.slice(-4)===".bin"?ise:bD)(t,r)}function gle(t,e,r){return(e.slice(-4)===".bin"?Kse:jD)(t)}function xle(t){return(t.slice(-4)===".bin"?$se:ND)()}function vle(t,e){var r=[];return t.Props&&r.push(pne(t.Props,e)),t.Custprops&&r.push(mne(t.Props,t.Custprops)),r.join("")}function yle(){return""}function wle(t,e){var r=['<Style ss:ID="Default" ss:Name="Normal"><NumberFormat/></Style>'];
vendor: 4,509 bytes, line 853
853return e.cellXfs.forEach(function(n,s){var i=[];i.push(Ee("NumberFormat",null,{"ss:Format":Mt(gr[n.numFmtId])}));var o={"ss:ID":"s"+(21+s)};r.push(Ee("Style",i.join(""),o))}),Ee("Styles",r.join(""))}function VD(t){return Ee("NamedRange",null,{"ss:Name":t.Name,"ss:RefersTo":"="+S_(t.Ref,{r:0,c:0})})}function ble(t){if(!((t||{}).Workbook||{}).Names)return"";for(var e=t.Workbook.Names,r=[],n=0;n<e.length;++n){var s=e[n];s.Sheet==null&&(s.Name.match(/^_xlfn\./)||r.push(VD(s)))}return Ee("Names",r.join(""))}function Sle(t,e,r,n){if(!t||!((n||{}).Workbook||{}).Names)return"";for(var s=n.Workbook.Names,i=[],o=0;o<s.length;++o){var a=s[o];a.Sheet==r&&(a.Name.match(/^_xlfn\./)||i.push(VD(a)))}return i.join("")}function _le(t,e,r,n){if(!t)return"";var s=[];if(t["!margins"]&&(s.push("<PageSetup>"),t["!margins"].header&&s.push(Ee("Header",null,{"x:Margin":t["!margins"].header})),t["!margins"].footer&&s.push(Ee("Footer",null,{"x:Margin":t["!margins"].footer})),s.push(Ee("PageMargins",null,{"x:Bottom":t["!margins"].bottom||"0.75","x:Left":t["!margins"].left||"0.7","x:Right":t["!margins"].right||"0.7","x:Top":t["!margins"].top||"0.75"})),s.push("</PageSetup>")),n&&n.Workbook&&n.Workbook.Sheets&&n.Workbook.Sheets[r])if(n.Workbook.Sheets[r].Hidden)s.push(Ee("Visible",n.Workbook.Sheets[r].Hidden==1?"SheetHidden":"SheetVeryHidden",{}));else{for(var i=0;i<r&&!(n.Workbook.Sheets[i]&&!n.Workbook.Sheets[i].Hidden);++i);i==r&&s.push("<Selected/>")}return((((n||{}).Workbook||{}).Views||[])[0]||{}).RTL&&s.push("<DisplayRightToLeft/>"),t["!protect"]&&(s.push(un("ProtectContents","True")),t["!protect"].objects&&s.push(un("ProtectObjects","True")),t["!protect"].scenarios&&s.push(un("ProtectScenarios","True")),t["!protect"].selectLockedCells!=null&&!t["!protect"].selectLockedCells?s.push(un("EnableSelection","NoSelection")):t["!protect"].selectUnlockedCells!=null&&!t["!protect"].selectUnlockedCells&&s.push(un("EnableSelection","UnlockedCells")),[["formatCells","AllowFormatCells"],["formatColumns","AllowSizeCols"],["formatRows","AllowSizeRows"],["insertColumns","AllowInsertCols"],["insertRows","AllowInsertRows"],["insertHyperlinks","AllowInsertHyperlinks"],["deleteColumns","AllowDeleteCols"],["deleteRows","AllowDeleteRows"],["sort","AllowSort"],["autoFilter","AllowFilter"],["pivotTables","AllowUsePivotTables"]].forEach(function(o){t["!protect"][o[0]]&&s.push("<"+o[1]+"/>")})),s.length==0?"":Ee("WorksheetOptions",s.join(""),{xmlns:xs.x})}function Ele(t){return t.map(function(e){var r=Nre(e.t||""),n=Ee("ss:Data",r,{xmlns:"http://www.w3.org/TR/REC-html40"});return Ee("Comment",n,{"ss:Author":e.a})}).join("")}function Tle(t,e,r,n,s,i,o){if(!t||t.v==null&&t.f==null)return"";var a={};if(t.f&&(a["ss:Formula"]="="+Mt(S_(t.f,o))),t.F&&t.F.slice(0,e.length)==e){var l=Gr(t.F.slice(e.length+1));a["ss:ArrayRange"]="RC:R"+(l.r==o.r?"":"["+(l.r-o.r)+"]")+"C"+(l.c==o.c?"":"["+(l.c-o.c)+"]")}if(t.l&&t.l.Target&&(a["ss:HRef"]=Mt(t.l.Target),t.l.Tooltip&&(a["x:HRefScreenTip"]=Mt(t.l.Tooltip))),r["!merges"])for(var u=r["!merges"],d=0;d!=u.length;++d)u[d].s.c!=o.c||u[d].s.r!=o.r||(u[d].e.c>u[d].s.c&&(a["ss:MergeAcross"]=u[d].e.c-u[d].s.c),u[d].e.r>u[d].s.r&&(a["ss:MergeDown"]=u[d].e.r-u[d].s.r));var f="",h="";switch(t.t){case"z":if(!n.sheetStubs)return"";break;case"n":f="Number",h=String(t.v);break;case"b":f="Boolean",h=t.v?"1":"0";break;case"e":f="Error",h=mp[t.v];break;case"d":f="DateTime",h=new Date(t.v).toISOString(),t.z==null&&(t.z=t.z||gr[14]);break;case"s":f="String",h=kre(t.v||"");break}var p=hl(n.cellXfs,t,n);a["ss:StyleID"]="s"+(21+p),a["ss:Index"]=o.c+1;var g=t.v!=null?h:"",m=t.t=="z"?"":'<Data ss:Type="'+f+'">'+g+"</Data>";return(t.c||[]).length>0&&(m+=Ele(t.c)),Ee("Cell",m,a)}function Cle(t,e){var r='<Row ss:Index="'+(t+1)+'"';return e&&(e.hpt&&!e.hpx&&(e.hpx=ED(e.hpt)),e.hpx&&(r+=' ss:AutoFitHeight="0" ss:Height="'+e.hpx+'"'),e.hidden&&(r+=' ss:Hidden="1"')),r+">"}function kle(t,e,r,n){if(!t["!ref"])return"";var s=Gt(t["!ref"]),i=t["!merges"]||[],o=0,a=[];t["!cols"]&&t["!cols"].forEach(function(x,v){w_(x);var y=!!x.width,b=uv(v,x),S={"ss:Index":v+1};y&&(S["ss:Width"]=Mg(b.width)),x.hidden&&(S["ss:Hidden"]="1"),a.push(Ee("Column",null,S))});for(var l=Array.isArray(t),u=s.s.r;u<=s.e.r;++u){for(var d=[Cle(u,(t["!rows"]||[])[u])],f=s.s.c;f<=s.e.c;++f){var h=!1;for(o=0;o!=i.length;++o)if(!(i[o].s.c>f)&&!(i[o].s.r>u)&&!(i[o].e.c<f)&&!(i[o].e.r<u)){(i[o].s.c!=f||i[o].s.r!=u)&&(h=!0);break}if(!h){var p={r:u,c:f},g=Dt(p),m=l?(t[u]||[])[f]:t[g];d.push(Tle(m,g,t,e,r,n,p))}}
vendor: 2,850 bytes, line 853
853d.push("</Row>"),d.length>2&&a.push(d.join(""))}return a.join("")}function Nle(t,e,r){var n=[],s=r.SheetNames[t],i=r.Sheets[s],o=i?Sle(i,e,t,r):"";return o.length>0&&n.push("<Names>"+o+"</Names>"),o=i?kle(i,e,t,r):"",o.length>0&&n.push("<Table>"+o+"</Table>"),n.push(_le(i,e,t,r)),n.join("")}function Ale(t,e){e||(e={}),t.SSF||(t.SSF=us(gr)),t.SSF&&(iv(),sv(t.SSF),e.revssf=ov(t.SSF),e.revssf[t.SSF[65535]]=0,e.ssf=t.SSF,e.cellXfs=[],hl(e.cellXfs,{},{revssf:{General:0}}));var r=[];r.push(vle(t,e)),r.push(yle()),r.push(""),r.push("");for(var n=0;n<t.SheetNames.length;++n)r.push(Ee("Worksheet",Nle(n,e,t),{"ss:Name":Mt(t.SheetNames[n])}));return r[2]=wle(t,e),r[3]=ble(t),Or+Ee("Workbook",r.join(""),{xmlns:xs.ss,"xmlns:o":xs.o,"xmlns:x":xs.x,"xmlns:ss":xs.ss,"xmlns:dt":xs.dt,"xmlns:html":xs.html})}var Y1={SI:"e0859ff2f94f6810ab9108002b27b3d9",DSI:"02d5cdd59c2e1b10939708002b2cf9ae",UDI:"05d5cdd59c2e1b10939708002b2cf9ae"};function jle(t,e){var r=[],n=[],s=[],i=0,o,a=mN(NN,"n"),l=mN(AN,"n");if(t.Props)for(o=mn(t.Props),i=0;i<o.length;++i)(Object.prototype.hasOwnProperty.call(a,o[i])?r:Object.prototype.hasOwnProperty.call(l,o[i])?n:s).push([o[i],t.Props[o[i]]]);if(t.Custprops)for(o=mn(t.Custprops),i=0;i<o.length;++i)Object.prototype.hasOwnProperty.call(t.Props||{},o[i])||(Object.prototype.hasOwnProperty.call(a,o[i])?r:Object.prototype.hasOwnProperty.call(l,o[i])?n:s).push([o[i],t.Custprops[o[i]]]);var u=[];for(i=0;i<s.length;++i)pD.indexOf(s[i][0])>-1||dD.indexOf(s[i][0])>-1||s[i][1]!=null&&u.push(s[i]);n.length&&Bt.utils.cfb_add(e,"/�SummaryInformation",MN(n,Y1.SI,l,AN)),(r.length||u.length)&&Bt.utils.cfb_add(e,"/�DocumentSummaryInformation",MN(r,Y1.DSI,a,NN,u.length?u:null,Y1.UDI))}function Rle(t,e){var r=e||{},n=Bt.utils.cfb_new({root:"R"}),s="/Workbook";switch(r.bookType||"xls"){case"xls":r.bookType="biff8";case"xla":r.bookType||(r.bookType="xla");case"biff8":s="/Workbook",r.biff=8;break;case"biff5":s="/Book",r.biff=5;break;default:throw new Error("invalid type "+r.bookType+" for XLS CFB")}return Bt.utils.cfb_add(n,s,WD(t,r)),r.biff==8&&(t.Props||t.Custprops)&&jle(t,n),r.biff==8&&t.vbaraw&&Xse(n,Bt.read(t.vbaraw,{type:typeof t.vbaraw=="string"?"binary":"buffer"})),n}var Ole={0:{f:Ioe},1:{f:Hoe},2:{f:cae},3:{f:Joe},4:{f:Goe},5:{f:iae},6:{f:pae},7:{f:tae},8:{f:bae},9:{f:wae},10:{f:vae},11:{f:yae},12:{f:Woe},13:{f:dae},14:{f:Zoe},15:{f:Xoe},16:{f:aae},17:{f:gae},18:{f:nae},19:{f:g_},20:{},21:{},22:{},23:{},24:{},25:{},26:{},27:{},28:{},29:{},30:{},31:{},32:{},33:{},34:{},35:{T:1},36:{T:-1},37:{T:1},38:{T:-1},39:{f:ole},40:{},42:{},43:{f:pse},44:{f:fse},45:{f:xse},46:{f:yse},47:{f:vse},48:{},49:{f:Wre},50:{},51:{f:Ise},52:{T:1},53:{T:-1},54:{T:1},55:{T:-1},56:{T:1},57:{T:-1},58:{},59:{},60:{f:qne},62:{f:hae},63:{f:zse},64:{f:Lae},65:{},66:{},67:{},68:{},69:{},70:{},128:{},129:{T:1},130:{T:-1},131:{T:1,f:co,p:0}
vendor: 8,994 bytes, line 853
853,132:{T:-1},133:{T:1},134:{T:-1},135:{T:1},136:{T:-1},137:{T:1,f:Pae},138:{T:-1},139:{T:1},140:{T:-1},141:{T:1},142:{T:-1},143:{T:1},144:{T:-1},145:{T:1},146:{T:-1},147:{f:zoe},148:{f:Foe,p:16},151:{f:kae},152:{},153:{f:sle},154:{},155:{},156:{f:rle},157:{},158:{},159:{T:1,f:rse},160:{T:-1},161:{T:1,f:kc},162:{T:-1},163:{T:1},164:{T:-1},165:{T:1},166:{T:-1},167:{},168:{},169:{},170:{},171:{},172:{T:1},173:{T:-1},174:{},175:{},176:{f:Sae},177:{T:1},178:{T:-1},179:{T:1},180:{T:-1},181:{T:1},182:{T:-1},183:{T:1},184:{T:-1},185:{T:1},186:{T:-1},187:{T:1},188:{T:-1},189:{T:1},190:{T:-1},191:{T:1},192:{T:-1},193:{T:1},194:{T:-1},195:{T:1},196:{T:-1},197:{T:1},198:{T:-1},199:{T:1},200:{T:-1},201:{T:1},202:{T:-1},203:{T:1},204:{T:-1},205:{T:1},206:{T:-1},207:{T:1},208:{T:-1},209:{T:1},210:{T:-1},211:{T:1},212:{T:-1},213:{T:1},214:{T:-1},215:{T:1},216:{T:-1},217:{T:1},218:{T:-1},219:{T:1},220:{T:-1},221:{T:1},222:{T:-1},223:{T:1},224:{T:-1},225:{T:1},226:{T:-1},227:{T:1},228:{T:-1},229:{T:1},230:{T:-1},231:{T:1},232:{T:-1},233:{T:1},234:{T:-1},235:{T:1},236:{T:-1},237:{T:1},238:{T:-1},239:{T:1},240:{T:-1},241:{T:1},242:{T:-1},243:{T:1},244:{T:-1},245:{T:1},246:{T:-1},247:{T:1},248:{T:-1},249:{T:1},250:{T:-1},251:{T:1},252:{T:-1},253:{T:1},254:{T:-1},255:{T:1},256:{T:-1},257:{T:1},258:{T:-1},259:{T:1},260:{T:-1},261:{T:1},262:{T:-1},263:{T:1},264:{T:-1},265:{T:1},266:{T:-1},267:{T:1},268:{T:-1},269:{T:1},270:{T:-1},271:{T:1},272:{T:-1},273:{T:1},274:{T:-1},275:{T:1},276:{T:-1},277:{},278:{T:1},279:{T:-1},280:{T:1},281:{T:-1},282:{T:1},283:{T:1},284:{T:-1},285:{T:1},286:{T:-1},287:{T:1},288:{T:-1},289:{T:1},290:{T:-1},291:{T:1},292:{T:-1},293:{T:1},294:{T:-1},295:{T:1},296:{T:-1},297:{T:1},298:{T:-1},299:{T:1},300:{T:-1},301:{T:1},302:{T:-1},303:{T:1},304:{T:-1},305:{T:1},306:{T:-1},307:{T:1},308:{T:-1},309:{T:1},310:{T:-1},311:{T:1},312:{T:-1},313:{T:-1},314:{T:1},315:{T:-1},316:{T:1},317:{T:-1},318:{T:1},319:{T:-1},320:{T:1},321:{T:-1},322:{T:1},323:{T:-1},324:{T:1},325:{T:-1},326:{T:1},327:{T:-1},328:{T:1},329:{T:-1},330:{T:1},331:{T:-1},332:{T:1},333:{T:-1},334:{T:1},335:{f:Pse},336:{T:-1},337:{f:Fse,T:1},338:{T:-1},339:{T:1},340:{T:-1},341:{T:1},342:{T:-1},343:{T:1},344:{T:-1},345:{T:1},346:{T:-1},347:{T:1},348:{T:-1},349:{T:1},350:{T:-1},351:{},352:{},353:{T:1},354:{T:-1},355:{f:_b},357:{},358:{},359:{},360:{T:1},361:{},362:{f:$ne},363:{},364:{},366:{},367:{},368:{},369:{},370:{},371:{},372:{T:1},373:{T:-1},374:{T:1},375:{T:-1},376:{T:1},377:{T:-1},378:{T:1},379:{T:-1},380:{T:1},381:{T:-1},382:{T:1},383:{T:-1},384:{T:1},385:{T:-1},386:{T:1},387:{T:-1},388:{T:1},389:{T:-1},390:{T:1},391:{T:-1},392:{T:1},393:{T:-1},394:{T:1},395:{T:-1},396:{},397:{},398:{},399:{},400:{},401:{T:1},403:{},404:{},405:{},406:{},407:{},408:{},409:{},410:{},411:{},412:{},413:{},414:{},415:{},416:{},417:{},418:{},419:{},420:{},421:{},422:{T:1},423:{T:1},424:{T:-1},425:{T:-1},426:{f:Nae},427:{f:Aae},428:{},429:{T:1},430:{T:-1},431:{T:1},432:{T:-1},433:{T:1},434:{T:-1},435:{T:1},436:{T:-1},437:{T:1},438:{T:-1},439:{T:1},440:{T:-1},441:{T:1},442:{T:-1},443:{T:1},444:{T:-1},445:{T:1},446:{T:-1},447:{T:1},448:{T:-1},449:{T:1},450:{T:-1},451:{T:1},452:{T:-1},453:{T:1},454:{T:-1},455:{T:1},456:{T:-1},457:{T:1},458:{T:-1},459:{T:1},460:{T:-1},461:{T:1},462:{T:-1},463:{T:1},464:{T:-1},465:{T:1},466:{T:-1},467:{T:1},468:{T:-1},469:{T:1},470:{T:-1},471:{},472:{},473:{T:1},474:{T:-1},475:{},476:{f:Rae},477:{},478:{},479:{T:1},480:{T:-1},481:{T:1},482:{T:-1},483:{T:1},484:{T:-1},485:{f:$oe},486:{T:1},487:{T:-1},488:{T:1},489:{T:-1},490:{T:1},491:{T:-1},492:{T:1},493:{T:-1},494:{f:Tae},495:{T:1},496:{T:-1},497:{T:1},498:{T:-1},499:{},500:{T:1},501:{T:-1},502:{T:1},503:{T:-1},504:{},505:{T:1},506:{T:-1},507:{},508:{T:1},509:{T:-1},510:{T:1},511:{T:-1},512:{},513:{},514:{T:1},515:{T:-1},516:{T:1},517:{T:-1},518:{T:1},519:{T:-1},520:{T:1},521:{T:-1},522:{},523:{},524:{},525:{},526:{},527:{},528:{T:1},529:{T:-1},530:{T:1},531:{T:-1},532:{T:1},533:{T:-1},534:{},535:{},536:{},537:{},538:{T:1},539:{T:-1},540:{T:1},541:{T:-1},542:{T:1},548:{},549:{},550:{f:_b},551:{},552:{},553:{},554:{T:1},555:{T:-1},556:{T:1},557:{T:-1},558:{T:1},559:{T:-1},560:{T:1},561:{T:-1},562:{},564:{},565:{T:1},566:{T:-1},569:{T:1},570:{T:-1},572:{},573:{T:1},574:{T:-1},577:{},578:{},579:{},580:{},581:{},582:{},583:{},584:{},585:{},586:{},587:{},588:{T:-1},589:{},590:{T:1},591:{T:-1},592:{T:1},593:{T:-1},594:{T:1},595:{T:-1},596:{},597:{T:1},598:{T:-1},599:{T:1},600:{T:-1},601:{T:1},602:{T:-1},603:{T:1},604:{T:-1},605:{T:1},606:{T:-1},607:{},608:{T:1},609:{T:-1},610:{},611:{T:1},612:{T:-1},613:{T:1},614:{T:-1},615:{T:1},616:{T:-1},617:{T:1},618:{T:-1},619:{T:1},620:{T:-1},625:{},626:{T:1},627:{T:-1},628:{T:1},629:{T:-1},630:{T:1},631:{T:-1},632:{f:qse},633:{T:1},634:{T:-1},635:{T:1,f:Vse},636:{T:-1},637:{f:Xre},638:{T:1},639:{},640:{T:-1},641:{T:1},642:{T:-1},643:{T:1},644:{},645:{T:-1},646:{T:1},648:{T:1},649:{},650:{T:-1},651:{f:Yae},652:{},653:{T:1},654:{T:-1},655:{T:1},656:{T:-1},657:{T:1},658:{T:-1},659:{},660:{T:1},661:{},662:{T:-1},663:{},664:{T:1},665:{},666:{T:-1},667:{},668:{},669:{},671:{T:1},672:{T:-1},673:{T:1},674:{T:-1},675:{},676:{},677:{},678:{},679:{},680:{},681:{},1024:{},1025:{},1026:{T:1},1027:{T:-1},1028:{T:1},1029:{T:-1},1030:{},1031:{T:1},1032:{T:-1},1033:{T:1},1034:{T:-1},1035:{},1036:{},1037:{},1038:{T:1},1039:{T:-1},1040:{},1041:{T:1},1042:{T:-1},1043:{},1044:{},1045:{},1046:{T:1},1047:{T:-1},1048:{T:1},1049:{T:-1},1050:{},1051:{T:1},1052:{T:1},1053:{f:Fae},1054:{T:1},1055:{},1056:{T:1},1057:{T:-1},1058:{T:1},1059:{T:-1},1061:{},1062:{T:1},1063:{T:-1},1064:{T:1},1065:{T:-1},1066:{T:1},1067:{T:-1},1068:{T:1},1069:{T:-1},1070:{T:1},1071:{T:-1},1072:{T:1},1073:{T:-1},1075:{T:1},1076:{T:-1},1077:{T:1},1078:{T:-1},1079:{T:1},1080:{T:-1},1081:{T:1},1082:{T:-1},1083:{T:1},1084:{T:-1},1085:{},1086:{T:1},1087:{T:-1},1088:{T:1},1089:{T:-1},1090:{T:1},1091:{T:-1},1092:{T:1},1093:{T:-1},1094:{T:1},1095:{T:-1},1096:{},1097:{T:1},1098:{},1099:{T:-1},1100:{T:1},1101:{T:-1},1102:{},1103:{},1104:{},1105:{},1111:{},1112:{},1113:{T:1},1114:{T:-1},1115:{T:1},1116:{T:-1},1117:{},1118:{T:1},1119:{T:-1},1120:{T:1},1121:{T:-1},1122:{T:1},1123:{T:-1},1124:{T:1},1125:{T:-1},1126:{},1128:{T:1},1129:{T:-1},1130:{},1131:{T:1},1132:{T:-1},1133:{T:1},1134:{T:-1},1135:{T:1},1136:{T:-1},1137:{T:1},1138:{T:-1},1139:{T:1},1140:{T:-1},1141:{},1142:{T:1},1143:{T:-1},1144:{T:1},1145:{T:-1},1146:{},1147:{T:1},1148:{T:-1},1149:{T:1},1150:{T:-1},1152:{T:1},1153:{T:-1},1154:{T:-1},1155:{T:-1},1156:{T:-1},1157:{T:1},1158:{T:-1},1159:{T:1},1160:{T:-1},1161:{T:1},1162:{T:-1},1163:{T:1},1164:{T:-1},1165:{T:1},1166:{T:-1},1167:{T:1},1168:{T:-1},1169:{T:1},1170:{T:-1},1171:{},1172:{T:1},1173:{T:-1},1177:{},1178:{T:1},1180:{},1181:{},1182:{},2048:{T:1},2049:{T:-1},2050:{},2051:{T:1},2052:{T:-1},2053:{},2054:{},2055:{T:1},2056:{T:-1},2057:{T:1},2058:{T:-1},2060:{},2067:{},2068:{T:1},2069:{T:-1},2070:{},2071:{},2072:{T:1},2073:{T:-1},2075:{},2076:{},2077:{T:1},2078:{T:-1},2079:{},2080:{T:1},2081:{T:-1},2082:{},2083:{T:1},2084:{T:-1},2085:{T:1},2086:{T:-1},2087:{T:1},2088:{T:-1},2089:{T:1},2090:{T:-1},2091:{},2092:{},2093:{T:1},2094:{T:-1},2095:{},2096:{T:1},2097:{T:-1},2098:{T:1},2099:{T:-1},2100:{T:1},2101:{T:-1},2102:{},2103:{T:1},2104:{T:-1},2105:{},2106:{T:1},2107:{T:-1},2108:{},2109:{T:1},2110:{T:-1},2111:{T:1},2112:{T:-1},2113:{T:1},2114:{T:-1},2115:{},2116:{},2117:{},2118:{T:1},2119:{T:-1},2120:{},2121:{T:1},2122:{T:-1},2123:{T:1},2124:{T:-1},2125:{},2126:{T:1},2127:{T:-1},2128:{},2129:{T:1},2130:{T:-1},2131:{T:1},2132:{T:-1},2133:{T:1},2134:{},2135:{},2136:{},2137:{T:1},2138:{T:-1},2139:{T:1},2140:{T:-1},2141:{},3072:{},3073:{},4096:{T:1},4097:{T:-1},5002:{T:1},5003:{T:-1},5081:{T:1},5082:{T:-1},5083:{},5084:{T:1},5085:{T:-1},5086:{T:1},5087:{T:-1},5088:{},5089:{},5090:{},5092:{T:1},5093:{T:-1},5094:{},5095:{T:1},5096:{T:-1},5097:{},5099:{},65535:{n:""}};function Te(t,e,r,n){var s=e;if(!isNaN(s)){var i=n||(r||[]).length||0,o=t.next(4);o.write_shift(2,s),o.write_shift(2,i),i>0&&h_(r)&&t.push(r)}}function Ple(t,e,r,n){var s=(r||[]).length||0;if(s<=8224)return Te(t,e,r,s);var i=e;if(!isNaN(i)){for(var o=r.parts||[],a=0,l=0,u=0;u+(o[a]||8224)<=8224;)u+=o[a]||8224,a++;var d=t.next(4);for(d.write_shift(2,i),d.write_shift(2,u),t.push(r.slice(l,l+u)),l+=u;l<s;){for(d=t.next(4),d.write_shift(2,60),u=0;u+(o[a]||8224)<=8224;)u+=o[a]||8224,a++;d.write_shift(2,u),t.push(r.slice(l,l+u)),l+=u}}}function xp(t,e,r){return t||(t=ie(7)),t.write_shift(2,e),t.write_shift(2,r),t.write_shift(2,0),t.write_shift(1,0),t}function Mle(t,e,r,n){var s=ie(9);return xp(s,t,e),gD(r,n||"b",s),s}function Ile(t,e,r){var n=ie(8+2*r.length);return xp(n,t,e),n.write_shift(1,r.length),n.write_shift(r.length,r,"sbcs"),n.l<n.length?n.slice(0,n.l):n}function Dle(t,e,r,n){if(e.v!=null)switch(e.t){case"d":case"n":var s=e.t=="d"?cs(zn(e.v)):e.v;s==(s|0)&&s>=0&&s<65536?Te(t,2,Yne(r,n,s)):Te(t,3,Xne(r,n,s));return;case"b":case"e":Te(t,5,Mle(r,n,e.v,e.t));return;
vendor: 5,437 bytes, line 853
853case"s":case"str":Te(t,4,Ile(r,n,(e.v||"").slice(0,255)));return}Te(t,1,xp(null,r,n))}function Lle(t,e,r,n){var s=Array.isArray(e),i=Gt(e["!ref"]||"A1"),o,a="",l=[];if(i.e.c>255||i.e.r>16383){if(n.WTF)throw new Error("Range "+(e["!ref"]||"A1")+" exceeds format limit A1:IV16384");i.e.c=Math.min(i.e.c,255),i.e.r=Math.min(i.e.c,16383),o=Nr(i)}for(var u=i.s.r;u<=i.e.r;++u){a=hn(u);for(var d=i.s.c;d<=i.e.c;++d){u===i.s.r&&(l[d]=En(d)),o=l[d]+a;var f=s?(e[u]||[])[d]:e[o];f&&Dle(t,f,u,d)}}}function Fle(t,e){for(var r=e||{},n=ls(),s=0,i=0;i<t.SheetNames.length;++i)t.SheetNames[i]==r.sheet&&(s=i);if(s==0&&r.sheet&&t.SheetNames[0]!=r.sheet)throw new Error("Sheet not found: "+r.sheet);return Te(n,r.biff==4?1033:r.biff==3?521:9,y_(t,16,r)),Lle(n,t.Sheets[t.SheetNames[s]],s,r),Te(n,10),n.end()}function Ble(t,e,r){Te(t,49,One({sz:12,color:{theme:1},name:"Arial",family:2,scheme:"minor"},r))}function $le(t,e,r){e&&[[5,8],[23,26],[41,44],[50,392]].forEach(function(n){for(var s=n[0];s<=n[1];++s)e[s]!=null&&Te(t,1054,Ine(s,e[s],r))})}function zle(t,e){var r=ie(19);r.write_shift(4,2151),r.write_shift(4,0),r.write_shift(4,0),r.write_shift(2,3),r.write_shift(1,1),r.write_shift(4,0),Te(t,2151,r),r=ie(39),r.write_shift(4,2152),r.write_shift(4,0),r.write_shift(4,0),r.write_shift(2,3),r.write_shift(1,0),r.write_shift(4,0),r.write_shift(2,1),r.write_shift(4,4),r.write_shift(2,0),yD(Gt(e["!ref"]||"A1"),r),r.write_shift(4,4),Te(t,2152,r)}function Ule(t,e){for(var r=0;r<16;++r)Te(t,224,DN({numFmtId:0,style:!0},0,e));e.cellXfs.forEach(function(n){Te(t,224,DN(n,0,e))})}function Hle(t,e){for(var r=0;r<e["!links"].length;++r){var n=e["!links"][r];Te(t,440,Hne(n)),n[1].Tooltip&&Te(t,2048,Vne(n))}delete e["!links"]}function Vle(t,e){if(e){var r=0;e.forEach(function(n,s){++r<=256&&n&&Te(t,125,Gne(uv(s,n),s))})}}function Wle(t,e,r,n,s){var i=16+hl(s.cellXfs,e,s);if(e.v==null&&!e.bf){Te(t,513,dc(r,n,i));return}if(e.bf)Te(t,6,moe(e,r,n,s,i));else switch(e.t){case"d":case"n":var o=e.t=="d"?cs(zn(e.v)):e.v;Te(t,515,Bne(r,n,o,i));break;case"b":case"e":Te(t,517,Fne(r,n,e.v,i,s,e.t));break;case"s":case"str":if(s.bookSST){var a=E_(s.Strings,e.v,s.revStrings);Te(t,253,Pne(r,n,a,i))}else Te(t,516,Mne(r,n,(e.v||"").slice(0,255),i,s));break;default:Te(t,513,dc(r,n,i))}}function qle(t,e,r){var n=ls(),s=r.SheetNames[t],i=r.Sheets[s]||{},o=(r||{}).Workbook||{},a=(o.Sheets||[])[t]||{},l=Array.isArray(i),u=e.biff==8,d,f="",h=[],p=Gt(i["!ref"]||"A1"),g=u?65536:16384;if(p.e.c>255||p.e.r>=g){if(e.WTF)throw new Error("Range "+(i["!ref"]||"A1")+" exceeds format limit A1:IV16384");p.e.c=Math.min(p.e.c,255),p.e.r=Math.min(p.e.c,g-1)}Te(n,2057,y_(r,16,e)),Te(n,13,Hs(1)),Te(n,12,Hs(100)),Te(n,15,Ln(!0)),Te(n,17,Ln(!1)),Te(n,16,uc(.001)),Te(n,95,Ln(!0)),Te(n,42,Ln(!1)),Te(n,43,Ln(!1)),Te(n,130,Hs(1)),Te(n,128,Lne()),Te(n,131,Ln(!1)),Te(n,132,Ln(!1)),u&&Vle(n,i["!cols"]),Te(n,512,Dne(p,e)),u&&(i["!links"]=[]);for(var m=p.s.r;m<=p.e.r;++m){f=hn(m);for(var x=p.s.c;x<=p.e.c;++x){m===p.s.r&&(h[x]=En(x)),d=h[x]+f;var v=l?(i[m]||[])[x]:i[d];v&&(Wle(n,v,m,x,e),u&&v.l&&i["!links"].push([d,v.l]))}}var y=a.CodeName||a.name||s;return u&&Te(n,574,Rne((o.Views||[])[0])),u&&(i["!merges"]||[]).length&&Te(n,229,Une(i["!merges"])),u&&Hle(n,i),Te(n,442,vD(y)),u&&zle(n,i),Te(n,10),n.end()}function Gle(t,e,r){var n=ls(),s=(t||{}).Workbook||{},i=s.Sheets||[],o=s.WBProps||{},a=r.biff==8,l=r.biff==5;if(Te(n,2057,y_(t,5,r)),r.bookType=="xla"&&Te(n,135),Te(n,225,a?Hs(1200):null),Te(n,193,vne(2)),l&&Te(n,191),l&&Te(n,192),Te(n,226),Te(n,92,kne("SheetJS",r)),Te(n,66,Hs(a?1200:1252)),a&&Te(n,353,Hs(0)),a&&Te(n,448),Te(n,317,Kne(t.SheetNames.length)),a&&t.vbaraw&&Te(n,211),a&&t.vbaraw){var u=o.CodeName||"ThisWorkbook";Te(n,442,vD(u))}Te(n,156,Hs(17)),Te(n,25,Ln(!1)),Te(n,18,Ln(!1)),Te(n,19,Hs(0)),a&&Te(n,431,Ln(!1)),a&&Te(n,444,Hs(0)),Te(n,61,jne()),Te(n,64,Ln(!1)),Te(n,141,Hs(0)),Te(n,34,Ln(Qae(t)=="true")),Te(n,14,Ln(!0)),a&&Te(n,439,Ln(!1)),Te(n,218,Hs(0)),Ble(n,t,r),$le(n,t.SSF,r),Ule(n,r),a&&Te(n,352,Ln(!1));var d=n.end(),f=ls();a&&Te(f,140,Wne()),a&&r.Strings&&Ple(f,252,Ane(r.Strings)),Te(f,10);var h=f.end(),p=ls(),g=0,m=0;for(m=0;m<t.SheetNames.length;++m)g+=(a?12:11)+(a?2:1)*t.SheetNames[m].length;var x=d.length+g+h.length;for(m=0;m<t.SheetNames.length;++m){var v=i[m]||{};Te(p,133,Nne({pos:x,hs:v.Hidden||0,dt:0,name:t.SheetNames[m]},r)),x+=e[m].length}var y=p.end();if(g!=y.length)throw new Error("BS8 "+g+" != "+y.length);var b=[];return d.length&&b.push(d),y.length&&b.push(y),h.length&&b.push(h),cn(b)}function Kle(t,e){var r=e||{},n=[];t&&!t.SSF&&(t.SSF=us(gr)),t&&t.SSF&&(iv(),sv(t.SSF),r.revssf=ov(t.SSF),r.revssf[t.SSF[65535]]=0,r.ssf=t.SSF),r.Strings=[],r.Strings.Count=0,r.Strings.Unique=0,T_(r),r.cellXfs=[],hl(r.cellXfs,{},{revssf:{General:0}}),t.Props||(t.Props={});for(var s=0;s<t.SheetNames.length;++s)n[n.length]=qle(s,r,t);return n.unshift(Gle(t,n,r)),cn(n)}function WD(t,e){for(var r=0;r<=t.SheetNames.length;++r){var n=t.Sheets[t.SheetNames[r]];if(!(!n||!n["!ref"])){var s=Ns(n["!ref"]);s.e.c>255&&typeof console<"u"&&console.error&&console.error("Worksheet '"+t.SheetNames[r]+"' extends beyond column IV (255).  Data may be lost.")}}var i=e||{};switch(i.biff||2){case 8:case 5:return Kle(t,e);case 4:case 3:case 2:return Fle(t,e)}throw new Error("invalid type "+i.bookType+" for BIFF")}function Xle(t,e,r,n){for(var s=t["!merges"]||[],i=[],o=e.s.c;o<=e.e.c;++o){for(var a=0,l=0,u=0;u<s.length;++u)if(!(s[u].s.r>r||s[u].s.c>
vendor: 5,190 bytes, lines 853-857
853o)&&!(s[u].e.r<r||s[u].e.c<o)){if(s[u].s.r<r||s[u].s.c<o){a=-1;break}a=s[u].e.r-s[u].s.r+1,l=s[u].e.c-s[u].s.c+1;break}if(!(a<0)){var d=Dt({r,c:o}),f=n.dense?(t[r]||[])[o]:t[d],h=f&&f.v!=null&&(f.h||Cre(f.w||(Wo(f),f.w)||""))||"",p={};a>1&&(p.rowspan=a),l>1&&(p.colspan=l),n.editable?h='<span contenteditable="true">'+h+"</span>":f&&(p["data-t"]=f&&f.t||"z",f.v!=null&&(p["data-v"]=f.v),f.z!=null&&(p["data-z"]=f.z),f.l&&(f.l.Target||"#").charAt(0)!="#"&&(h='<a href="'+f.l.Target+'">'+h+"</a>")),p.id=(n.id||"sjs")+"-"+d,i.push(Ee("td",h,p))}}var g="<tr>";return g+i.join("")+"</tr>"}var Yle='<html><head><meta charset="utf-8"/><title>SheetJS Table Export</title></head><body>',Jle="</body></html>";function Qle(t,e,r){var n=[];return n.join("")+"<table"+(r&&r.id?' id="'+r.id+'"':"")+">"}function qD(t,e){var r=e||{},n=r.header!=null?r.header:Yle,s=r.footer!=null?r.footer:Jle,i=[n],o=Ns(t["!ref"]);r.dense=Array.isArray(t),i.push(Qle(t,o,r));for(var a=o.s.r;a<=o.e.r;++a)i.push(Xle(t,o,a,r));return i.push("</table>"+s),i.join("")}function GD(t,e,r){var n=r||{},s=0,i=0;if(n.origin!=null)if(typeof n.origin=="number")s=n.origin;else{var o=typeof n.origin=="string"?Gr(n.origin):n.origin;s=o.r,i=o.c}var a=e.getElementsByTagName("tr"),l=Math.min(n.sheetRows||1e7,a.length),u={s:{r:0,c:0},e:{r:s,c:i}};if(t["!ref"]){var d=Ns(t["!ref"]);u.s.r=Math.min(u.s.r,d.s.r),u.s.c=Math.min(u.s.c,d.s.c),u.e.r=Math.max(u.e.r,d.e.r),u.e.c=Math.max(u.e.c,d.e.c),s==-1&&(u.e.r=s=d.e.r+1)}var f=[],h=0,p=t["!rows"]||(t["!rows"]=[]),g=0,m=0,x=0,v=0,y=0,b=0;for(t["!cols"]||(t["!cols"]=[]);g<a.length&&m<l;++g){var S=a[g];if(HN(S)){if(n.display)continue;p[m]={hidden:!0}}var E=S.children;for(x=v=0;x<E.length;++x){var C=E[x];if(!(n.display&&HN(C))){var _=C.hasAttribute("data-v")?C.getAttribute("data-v"):C.hasAttribute("v")?C.getAttribute("v"):jre(C.innerHTML),A=C.getAttribute("data-z")||C.getAttribute("z");for(h=0;h<f.length;++h){var N=f[h];N.s.c==v+i&&N.s.r<m+s&&m+s<=N.e.r&&(v=N.e.c+1-i,h=-1)}b=+C.getAttribute("colspan")||1,((y=+C.getAttribute("rowspan")||1)>1||b>1)&&f.push({s:{r:m+s,c:v+i},e:{r:m+s+(y||1)-1,c:v+i+(b||1)-1}});var D={t:"s",v:_},V=C.getAttribute("data-t")||C.getAttribute("t")||"";_!=null&&(_.length==0?D.t=V||"z":n.raw||_.trim().length==0||V=="s"||(_==="TRUE"?D={t:"b",v:!0}:_==="FALSE"?D={t:"b",v:!1}:isNaN(Mo(_))?isNaN(Mh(_).getDate())||(D={t:"d",v:zn(_)},n.cellDates||(D={t:"n",v:cs(D.v)}),D.z=n.dateNF||gr[14]):D={t:"n",v:Mo(_)})),D.z===void 0&&A!=null&&(D.z=A);var H="",U=C.getElementsByTagName("A");if(U&&U.length)for(var K=0;K<U.length&&!(U[K].hasAttribute("href")&&(H=U[K].getAttribute("href"),H.charAt(0)!="#"));++K);H&&H.charAt(0)!="#"&&(D.l={Target:H}),n.dense?(t[m+s]||(t[m+s]=[]),t[m+s][v+i]=D):t[Dt({c:v+i,r:m+s})]=D,u.e.c<v+i&&(u.e.c=v+i),v+=b}}++m}return f.length&&(t["!merges"]=(t["!merges"]||[]).concat(f)),u.e.r=Math.max(u.e.r,m-1+s),t["!ref"]=Nr(u),m>=l&&(t["!fullref"]=Nr((u.e.r=a.length-g+m-1+s,u))),t}function KD(t,e){var r=e||{},n=r.dense?[]:{};return GD(n,t,e)}function Zle(t,e){return _c(KD(t,e),e)}function HN(t){var e="",r=ece(t);return r&&(e=r(t).getPropertyValue("display")),e||(e=t.style&&t.style.display),e==="none"}function ece(t){return t.ownerDocument.defaultView&&typeof t.ownerDocument.defaultView.getComputedStyle=="function"?t.ownerDocument.defaultView.getComputedStyle:typeof getComputedStyle=="function"?getComputedStyle:null}var tce=function(){var t=["<office:master-styles>",'<style:master-page style:name="mp1" style:page-layout-name="mp1">',"<style:header/>",'<style:header-left style:display="false"/>',"<style:footer/>",'<style:footer-left style:display="false"/>',"</style:master-page>","</office:master-styles>"].join(""),e="<office:document-styles "+Dh({"xmlns:office":"urn:oasis:names:tc:opendocument:xmlns:office:1.0","xmlns:table":"urn:oasis:names:tc:opendocument:xmlns:table:1.0","xmlns:style":"urn:oasis:names:tc:opendocument:xmlns:style:1.0","xmlns:text":"urn:oasis:names:tc:opendocument:xmlns:text:1.0","xmlns:draw":"urn:oasis:names:tc:opendocument:xmlns:drawing:1.0","xmlns:fo":"urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0","xmlns:xlink":"http://www.w3.org/1999/xlink","xmlns:dc":"http://purl.org/dc/elements/1.1/","xmlns:number":"urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0","xmlns:svg":"urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0","xmlns:of":"urn:oasis:names:tc:opendocument:xmlns:of:1.2","office:version":"1.2"})+">"+t+"</office:document-styles>";return function(){return Or+e}}(),VN=function(){var t=function(i){return Mt(i).replace(/  +/g,function(o){return'<text:s text:c="'+o.length+'"/>'}).replace(/\t/g,"<text:tab/>").replace(/\n/g,"</text:p><text:p>").replace(/^ /,"<text:s/>").replace(/ $/,"<text:s/>")},e=`          <table:table-cell />
854`,r=`          <table:covered-table-cell/>
855`,n=function(i,o,a){var l=[];l.push('      <table:table table:name="'+Mt(o.SheetNames[a])+`" table:style-name="ta1">
856`);var u=0,d=0,f=Ns(i["!ref"]||"A1"),h=i["!merges"]||[],p=0,g=Array.isArray(i);if(i["!cols"])for(d=0;d<=f.e.c;++d)l.push("        <table:table-column"+(i["!cols"][d]?' table:style-name="co'+i["!cols"][d].ods+'"':"")+`></table:table-column>
857`);var m="",x=i["!rows"]||[];for(u=0;
vendor: 6,624 bytes, lines 857-887
857u<f.s.r;++u)m=x[u]?' table:style-name="ro'+x[u].ods+'"':"",l.push("        <table:table-row"+m+`></table:table-row>
858`);for(;u<=f.e.r;++u){for(m=x[u]?' table:style-name="ro'+x[u].ods+'"':"",l.push("        <table:table-row"+m+`>
859`),d=0;d<f.s.c;++d)l.push(e);for(;d<=f.e.c;++d){var v=!1,y={},b="";for(p=0;p!=h.length;++p)if(!(h[p].s.c>d)&&!(h[p].s.r>u)&&!(h[p].e.c<d)&&!(h[p].e.r<u)){(h[p].s.c!=d||h[p].s.r!=u)&&(v=!0),y["table:number-columns-spanned"]=h[p].e.c-h[p].s.c+1,y["table:number-rows-spanned"]=h[p].e.r-h[p].s.r+1;break}if(v){l.push(r);continue}var S=Dt({r:u,c:d}),E=g?(i[u]||[])[d]:i[S];if(E&&E.f&&(y["table:formula"]=Mt(boe(E.f)),E.F&&E.F.slice(0,S.length)==S)){var C=Ns(E.F);y["table:number-matrix-columns-spanned"]=C.e.c-C.s.c+1,y["table:number-matrix-rows-spanned"]=C.e.r-C.s.r+1}if(!E){l.push(e);continue}switch(E.t){case"b":b=E.v?"TRUE":"FALSE",y["office:value-type"]="boolean",y["office:boolean-value"]=E.v?"true":"false";break;case"n":b=E.w||String(E.v||0),y["office:value-type"]="float",y["office:value"]=E.v||0;break;case"s":case"str":b=E.v==null?"":E.v,y["office:value-type"]="string";break;case"d":b=E.w||zn(E.v).toISOString(),y["office:value-type"]="date",y["office:date-value"]=zn(E.v).toISOString(),y["table:style-name"]="ce1";break;default:l.push(e);continue}var _=t(b);if(E.l&&E.l.Target){var A=E.l.Target;A=A.charAt(0)=="#"?"#"+Soe(A.slice(1)):A,A.charAt(0)!="#"&&!A.match(/^\w+:/)&&(A="../"+A),_=Ee("text:a",_,{"xlink:href":A.replace(/&/g,"&amp;")})}l.push("          "+Ee("table:table-cell",Ee("text:p",_,{}),y)+`
860`)}l.push(`        </table:table-row>
861`)}return l.push(`      </table:table>
862`),l.join("")},s=function(i,o){i.push(` <office:automatic-styles>
863`),i.push(`  <number:date-style style:name="N37" number:automatic-order="true">
864`),i.push(`   <number:month number:style="long"/>
865`),i.push(`   <number:text>/</number:text>
866`),i.push(`   <number:day number:style="long"/>
867`),i.push(`   <number:text>/</number:text>
868`),i.push(`   <number:year/>
869`),i.push(`  </number:date-style>
870`);var a=0;o.SheetNames.map(function(u){return o.Sheets[u]}).forEach(function(u){if(u&&u["!cols"]){for(var d=0;d<u["!cols"].length;++d)if(u["!cols"][d]){var f=u["!cols"][d];if(f.width==null&&f.wpx==null&&f.wch==null)continue;w_(f),f.ods=a;var h=u["!cols"][d].wpx+"px";i.push('  <style:style style:name="co'+a+`" style:family="table-column">
871`),i.push('   <style:table-column-properties fo:break-before="auto" style:column-width="'+h+`"/>
872`),i.push(`  </style:style>
873`),++a}}});var l=0;o.SheetNames.map(function(u){return o.Sheets[u]}).forEach(function(u){if(u&&u["!rows"]){for(var d=0;d<u["!rows"].length;++d)if(u["!rows"][d]){u["!rows"][d].ods=l;var f=u["!rows"][d].hpx+"px";i.push('  <style:style style:name="ro'+l+`" style:family="table-row">
874`),i.push('   <style:table-row-properties fo:break-before="auto" style:row-height="'+f+`"/>
875`),i.push(`  </style:style>
876`),++l}}}),i.push(`  <style:style style:name="ta1" style:family="table" style:master-page-name="mp1">
877`),i.push(`   <style:table-properties table:display="true" style:writing-mode="lr-tb"/>
878`),i.push(`  </style:style>
879`),i.push(`  <style:style style:name="ce1" style:family="table-cell" style:parent-style-name="Default" style:data-style-name="N37"/>
880`),i.push(` </office:automatic-styles>
881`)};return function(o,a){var l=[Or],u=Dh({"xmlns:office":"urn:oasis:names:tc:opendocument:xmlns:office:1.0","xmlns:table":"urn:oasis:names:tc:opendocument:xmlns:table:1.0","xmlns:style":"urn:oasis:names:tc:opendocument:xmlns:style:1.0","xmlns:text":"urn:oasis:names:tc:opendocument:xmlns:text:1.0","xmlns:draw":"urn:oasis:names:tc:opendocument:xmlns:drawing:1.0","xmlns:fo":"urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0","xmlns:xlink":"http://www.w3.org/1999/xlink","xmlns:dc":"http://purl.org/dc/elements/1.1/","xmlns:meta":"urn:oasis:names:tc:opendocument:xmlns:meta:1.0","xmlns:number":"urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0","xmlns:presentation":"urn:oasis:names:tc:opendocument:xmlns:presentation:1.0","xmlns:svg":"urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0","xmlns:chart":"urn:oasis:names:tc:opendocument:xmlns:chart:1.0","xmlns:dr3d":"urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0","xmlns:math":"http://www.w3.org/1998/Math/MathML","xmlns:form":"urn:oasis:names:tc:opendocument:xmlns:form:1.0","xmlns:script":"urn:oasis:names:tc:opendocument:xmlns:script:1.0","xmlns:ooo":"http://openoffice.org/2004/office","xmlns:ooow":"http://openoffice.org/2004/writer","xmlns:oooc":"http://openoffice.org/2004/calc","xmlns:dom":"http://www.w3.org/2001/xml-events","xmlns:xforms":"http://www.w3.org/2002/xforms","xmlns:xsd":"http://www.w3.org/2001/XMLSchema","xmlns:xsi":"http://www.w3.org/2001/XMLSchema-instance","xmlns:sheet":"urn:oasis:names:tc:opendocument:sh33tjs:1.0","xmlns:rpt":"http://openoffice.org/2005/report","xmlns:of":"urn:oasis:names:tc:opendocument:xmlns:of:1.2","xmlns:xhtml":"http://www.w3.org/1999/xhtml","xmlns:grddl":"http://www.w3.org/2003/g/data-view#","xmlns:tableooo":"http://openoffice.org/2009/table","xmlns:drawooo":"http://openoffice.org/2010/draw","xmlns:calcext":"urn:org:documentfoundation:names:experimental:calc:xmlns:calcext:1.0","xmlns:loext":"urn:org:documentfoundation:names:experimental:office:xmlns:loext:1.0","xmlns:field":"urn:openoffice:names:experimental:ooo-ms-interop:xmlns:field:1.0","xmlns:formx":"urn:openoffice:names:experimental:ooxml-odf-interop:xmlns:form:1.0","xmlns:css3t":"http://www.w3.org/TR/css3-text/","office:version":"1.2"}),d=Dh({"xmlns:config":"urn:oasis:names:tc:opendocument:xmlns:config:1.0","office:mimetype":"application/vnd.oasis.opendocument.spreadsheet"});a.bookType=="fods"?(l.push("<office:document"+u+d+`>
882`),l.push(cD().replace(/office:document-meta/g,"office:meta"))):l.push("<office:document-content"+u+`>
883`),s(l,o),l.push(`  <office:body>
884`),l.push(`    <office:spreadsheet>
885`);for(var f=0;f!=o.SheetNames.length;++f)l.push(n(o.Sheets[o.SheetNames[f]],o,f));return l.push(`    </office:spreadsheet>
886`),l.push(`  </office:body>
887`),a.bookType=="fods"?l.push("</office:document>"):l.push("</office:document-content>"),l.join("")}}();function XD(t,e){if(e.bookType=="fods")return VN(t,e);var r=c_(),n="",s=[],i=[];return n="mimetype",ct(r,n,"application/vnd.oasis.opendocument.spreadsheet"),n="content.xml",ct(r,n,VN(t,e)),s.push([n,"text/xml"]),i.push([n,"ContentFile"]),n="styles.xml",ct(r,n,tce(t,e)),s.push([n,"text/xml"]),i.push([n,"StylesFile"]),n="meta.xml",ct(r,n,Or+cD()),s.push([n,"text/xml"]),i.push([n,"MetadataFile"]),n="manifest.rdf",ct(r,n,hne(i)),s.push([n,"application/rdf+xml"]),n="META-INF/manifest.xml",ct(r,n,dne(s)),r}
vendor: 12,005 bytes, line 887
887/*! sheetjs (C) 2013-present SheetJS -- http://sheetjs.com */function Lg(t){return new DataView(t.buffer,t.byteOffset,t.byteLength)}function rce(t){return typeof TextEncoder<"u"?new TextEncoder().encode(t):Ti(Ih(t))}function nce(t,e){e:for(var r=0;r<=t.length-e.length;++r){for(var n=0;n<e.length;++n)if(t[r+n]!=e[n])continue e;return!0}return!1}function ol(t){var e=t.reduce(function(s,i){return s+i.length},0),r=new Uint8Array(e),n=0;return t.forEach(function(s){r.set(s,n),n+=s.length}),r}function sce(t,e,r){var n=Math.floor(r==0?0:Math.LOG10E*Math.log(Math.abs(r)))+6176-20,s=r/Math.pow(10,n-6176);t[e+15]|=n>>7,t[e+14]|=(n&127)<<1;for(var i=0;s>=1;++i,s/=256)t[e+i]=s&255;t[e+15]|=r>=0?0:128}function Lh(t,e){var r=e?e[0]:0,n=t[r]&127;e:if(t[r++]>=128&&(n|=(t[r]&127)<<7,t[r++]<128||(n|=(t[r]&127)<<14,t[r++]<128)||(n|=(t[r]&127)<<21,t[r++]<128)||(n+=(t[r]&127)*Math.pow(2,28),++r,t[r++]<128)||(n+=(t[r]&127)*Math.pow(2,35),++r,t[r++]<128)||(n+=(t[r]&127)*Math.pow(2,42),++r,t[r++]<128)))break e;return e&&(e[0]=r),n}function Ot(t){var e=new Uint8Array(7);e[0]=t&127;var r=1;e:if(t>127){if(e[r-1]|=128,e[r]=t>>7&127,++r,t<=16383||(e[r-1]|=128,e[r]=t>>14&127,++r,t<=2097151)||(e[r-1]|=128,e[r]=t>>21&127,++r,t<=268435455)||(e[r-1]|=128,e[r]=t/256>>>21&127,++r,t<=34359738367)||(e[r-1]|=128,e[r]=t/65536>>>21&127,++r,t<=4398046511103))break e;e[r-1]|=128,e[r]=t/16777216>>>21&127,++r}return e.slice(0,r)}function Mu(t){var e=0,r=t[e]&127;e:if(t[e++]>=128){if(r|=(t[e]&127)<<7,t[e++]<128||(r|=(t[e]&127)<<14,t[e++]<128)||(r|=(t[e]&127)<<21,t[e++]<128))break e;r|=(t[e]&127)<<28}return r}function Lr(t){for(var e=[],r=[0];r[0]<t.length;){var n=r[0],s=Lh(t,r),i=s&7;s=Math.floor(s/8);var o=0,a;if(s==0)break;switch(i){case 0:{for(var l=r[0];t[r[0]++]>=128;);a=t.slice(l,r[0])}break;case 5:o=4,a=t.slice(r[0],r[0]+o),r[0]+=o;break;case 1:o=8,a=t.slice(r[0],r[0]+o),r[0]+=o;break;case 2:o=Lh(t,r),a=t.slice(r[0],r[0]+o),r[0]+=o;break;case 3:case 4:default:throw new Error("PB Type ".concat(i," for Field ").concat(s," at offset ").concat(n))}var u={data:a,type:i};e[s]==null?e[s]=[u]:e[s].push(u)}return e}function rn(t){var e=[];return t.forEach(function(r,n){r.forEach(function(s){s.data&&(e.push(Ot(n*8+s.type)),s.type==2&&e.push(Ot(s.data.length)),e.push(s.data))})}),ol(e)}function fi(t){for(var e,r=[],n=[0];n[0]<t.length;){var s=Lh(t,n),i=Lr(t.slice(n[0],n[0]+s));n[0]+=s;var o={id:Mu(i[1][0].data),messages:[]};i[2].forEach(function(a){var l=Lr(a.data),u=Mu(l[3][0].data);o.messages.push({meta:l,data:t.slice(n[0],n[0]+u)}),n[0]+=u}),(e=i[3])!=null&&e[0]&&(o.merge=Mu(i[3][0].data)>>>0>0),r.push(o)}return r}function zc(t){var e=[];return t.forEach(function(r){var n=[];n[1]=[{data:Ot(r.id),type:0}],n[2]=[],r.merge!=null&&(n[3]=[{data:Ot(+!!r.merge),type:0}]);var s=[];r.messages.forEach(function(o){s.push(o.data),o.meta[3]=[{type:0,data:Ot(o.data.length)}],n[2].push({data:rn(o.meta),type:2})});var i=rn(n);e.push(Ot(i.length)),e.push(i),s.forEach(function(o){return e.push(o)})}),ol(e)}function ice(t,e){if(t!=0)throw new Error("Unexpected Snappy chunk type ".concat(t));for(var r=[0],n=Lh(e,r),s=[];r[0]<e.length;){var i=e[r[0]]&3;if(i==0){var o=e[r[0]++]>>2;if(o<60)++o;else{var a=o-59;o=e[r[0]],a>1&&(o|=e[r[0]+1]<<8),a>2&&(o|=e[r[0]+2]<<16),a>3&&(o|=e[r[0]+3]<<24),o>>>=0,o++,r[0]+=a}s.push(e.slice(r[0],r[0]+o)),r[0]+=o;continue}else{var l=0,u=0;if(i==1?(u=(e[r[0]]>>2&7)+4,l=(e[r[0]++]&224)<<3,l|=e[r[0]++]):(u=(e[r[0]++]>>2)+1,i==2?(l=e[r[0]]|e[r[0]+1]<<8,r[0]+=2):(l=(e[r[0]]|e[r[0]+1]<<8|e[r[0]+2]<<16|e[r[0]+3]<<24)>>>0,r[0]+=4)),s=[ol(s)],l==0)throw new Error("Invalid offset 0");if(l>s[0].length)throw new Error("Invalid offset beyond length");if(u>=l)for(s.push(s[0].slice(-l)),u-=l;u>=s[s.length-1].length;)s.push(s[s.length-1]),u-=s[s.length-1].length;s.push(s[0].slice(-l,-l+u))}}var d=ol(s);if(d.length!=n)throw new Error("Unexpected length: ".concat(d.length," != ").concat(n));return d}function hi(t){for(var e=[],r=0;r<t.length;){var n=t[r++],s=t[r]|t[r+1]<<8|t[r+2]<<16;r+=3,e.push(ice(n,t.slice(r,r+s))),r+=s}if(r!==t.length)throw new Error("data is not a valid framed stream!");return ol(e)}function Uc(t){for(var e=[],r=0;r<t.length;){var n=Math.min(t.length-r,268435455),s=new Uint8Array(4);e.push(s);var i=Ot(n),o=i.length;e.push(i),n<=60?(o++,e.push(new Uint8Array([n-1<<2]))):n<=256?(o+=2,e.push(new Uint8Array([240,n-1&255]))):n<=65536?(o+=3,e.push(new Uint8Array([244,n-1&255,n-1>>8&255]))):n<=16777216?(o+=4,e.push(new Uint8Array([248,n-1&255,n-1>>8&255,n-1>>16&255]))):n<=4294967296&&(o+=5,e.push(new Uint8Array([252,n-1&255,n-1>>8&255,n-1>>16&255,n-1>>>24&255]))),e.push(t.slice(r,r+n)),o+=n,s[0]=0,s[1]=o&255,s[2]=o>>8&255,s[3]=o>>16&255,r+=n}return ol(e)}function J1(t,e){var r=new Uint8Array(32),n=Lg(r),s=12,i=0;switch(r[0]=5,t.t){case"n":r[1]=2,sce(r,s,t.v),i|=1,s+=16;break;case"b":r[1]=6,n.setFloat64(s,t.v?1:0,!0),i|=2,s+=8;break;case"s":if(e.indexOf(t.v)==-1)throw new Error("Value ".concat(t.v," missing from SST!"));r[1]=3,n.setUint32(s,e.indexOf(t.v),!0),i|=8,s+=4;break;default:throw"unsupported cell type "+t.t}return n.setUint32(8,i,!0),r.slice(0,s)}function Q1(t,e){var r=new Uint8Array(32),n=Lg(r),s=12,i=0;switch(r[0]=3,t.t){case"n":r[2]=2,n.setFloat64(s,t.v,!0),i|=32,s+=8;break;case"b":r[2]=6,n.setFloat64(s,t.v?1:0,!0),i|=32,s+=8;break;case"s":if(e.indexOf(t.v)==-1)throw new Error("Value ".concat(t.v," missing from SST!"));r[2]=3,n.setUint32(s,e.indexOf(t.v),!0),i|=16,s+=4;break;default:throw"unsupported cell type "+t.t}return n.setUint32(4,i,!0),r.slice(0,s)}function na(t){var e=Lr(t);return Lh(e[1][0].data)}function oce(t,e,r){var n,s,i,o;if(!((n=t[6])!=null&&n[0])||!((s=t[7])!=null&&s[0]))throw"Mutation only works on post-BNC storages!";var a=((o=(i=t[8])==null?void 0:i[0])==null?void 0:o.data)&&Mu(t[8][0].data)>0||!1;if(a)throw"Math only works with normal offsets";for(var l=0,u=Lg(t[7][0].data),d=0,f=[],h=Lg(t[4][0].data),p=0,g=[],m=0;m<e.length;++m){if(e[m]==null){u.setUint16(m*2,65535,!0),h.setUint16(m*2,65535);continue}u.setUint16(m*2,d,!0),h.setUint16(m*2,p,!0);var x,v;switch(typeof e[m]){case"string":x=J1({t:"s",v:e[m]},r),v=Q1({t:"s",v:e[m]},r);break;case"number":x=J1({t:"n",v:e[m]},r),v=Q1({t:"n",v:e[m]},r);break;case"boolean":x=J1({t:"b",v:e[m]},r),v=Q1({t:"b",v:e[m]},r);break;default:throw new Error("Unsupported value "+e[m])}f.push(x),d+=x.length,g.push(v),p+=v.length,++l}for(t[2][0].data=Ot(l);m<t[7][0].data.length/2;++m)u.setUint16(m*2,65535,!0),h.setUint16(m*2,65535,!0);return t[6][0].data=ol(f),t[3][0].data=ol(g),l}function ace(t,e){if(!e||!e.numbers)throw new Error("Must pass a `numbers` option -- check the README");var r=t.Sheets[t.SheetNames[0]];t.SheetNames.length>1&&console.error("The Numbers writer currently writes only the first table");var n=Ns(r["!ref"]);n.s.r=n.s.c=0;var s=!1;n.e.c>9&&(s=!0,n.e.c=9),n.e.r>49&&(s=!0,n.e.r=49),s&&console.error("The Numbers writer is currently limited to ".concat(Nr(n)));var i=Fg(r,{range:n,header:1}),o=["~Sh33tJ5~"];i.forEach(function(z){return z.forEach(function(I){typeof I=="string"&&o.push(I)})});var a={},l=[],u=Bt.read(e.numbers,{type:"base64"});u.FileIndex.map(function(z,I){return[z,u.FullPaths[I]]}).forEach(function(z){var I=z[0],B=z[1];if(I.type==2&&I.name.match(/\.iwa/)){var q=I.content,X=hi(q),ae=fi(X);ae.forEach(function(ce){l.push(ce.id),a[ce.id]={deps:[],location:B,type:Mu(ce.messages[0].meta[1][0].data)}})}}),l.sort(function(z,I){return z-I});var d=l.filter(function(z){return z>1}).map(function(z){return[z,Ot(z)]});u.FileIndex.map(function(z,I){return[z,u.FullPaths[I]]}).forEach(function(z){var I=z[0];if(z[1],!!I.name.match(/\.iwa/)){var B=fi(hi(I.content));B.forEach(function(q){q.messages.forEach(function(X){d.forEach(function(ae){q.messages.some(function(ce){return Mu(ce.meta[1][0].data)!=11006&&nce(ce.data,ae[1])})&&a[ae[0]].deps.push(q.id)})})})}});for(var f=Bt.find(u,a[1].location),h=fi(hi(f.content)),p,g=0;g<h.length;++g){var m=h[g];m.id==1&&(p=m)}var x=na(Lr(p.messages[0].data)[1][0].data);for(f=Bt.find(u,a[x].location),h=fi(hi(f.content)),g=0;g<h.length;++g)m=h[g],m.id==x&&(p=m);for(x=na(Lr(p.messages[0].data)[2][0].data),f=Bt.find(u,a[x].location),h=fi(hi(f.content)),g=0;g<h.length;++g)m=h[g],m.id==x&&(p=m);for(x=na(Lr(p.messages[0].data)[2][0].data),f=Bt.find(u,a[x].location),h=fi(hi(f.content)),g=0;g<h.length;++g)m=h[g],m.id==x&&(p=m);var v=Lr(p.messages[0].data);{v[6][0].data=Ot(n.e.r+1),v[7][0].data=Ot(n.e.c+1);var y=na(v[46][0].data),b=Bt.find(u,a[y].location),S=fi(hi(b.content));{for(var E=0;E<S.length&&S[E].id!=y;++E);if(S[E].id!=y)throw"Bad ColumnRowUIDMapArchive";var C=Lr(S[E].messages[0].data);C[1]=[],C[2]=[],C[3]=[];for(var _=0;_<=n.e.c;++_){var A=[];A[1]=A[2]=[{type:0,data:Ot(_+420690)}],C[1].push({type:2,data:rn(A)}),C[2].push({type:0,data:Ot(_)}),C[3].push({type:0,data:Ot(_)})}C[4]=[],C[5]=[],C[6]=[];for(var N=0;N<=n.e.r;++N)A=[],A[1]=A[2]=[{type:0,data:Ot(N+726270)}],C[4].push({type:2,data:rn(A)}),C[5].push({type:0,data:Ot(N)}),C[6].push({type:0,data:Ot(N)});S[E].messages[0].data=rn(C)}b.content=Uc(zc(S)),b.size=b.content.length,delete v[46];var D=Lr(v[4][0].data);{D[7][0].data=Ot(n.e.r+1);var V=Lr(D[1][0].data),H=na(V[2][0].data);b=Bt.find(u,a[H].location),S=fi(hi(b.content));{if(S[0].id!=H)throw"Bad HeaderStorageBucket";var U=Lr(S[0].messages[0].data);for(N=0;N<i.length;++N){var K=Lr(U[2][0].data);K[1][0].data=Ot(N),K[4][0].data=Ot(i[N].length),U[2][N]={type:U[2][0].type,data:rn(K)}}S[0].messages[0].data=rn(U)}b.content=Uc(zc(S)),b.size=b.content.length;var te=na(D[2][0].data);b=Bt.find(u,a[te].location),S=fi(hi(b.content));{if(S[0].id!=te)throw"Bad HeaderStorageBucket";for(U=Lr(S[0].messages[0].data),_=0;_<=n.e.c;++_)K=Lr(U[2][0].data),K[1][0].data=Ot(_),K[4][0].data=Ot(n.e.r+1),U[2][_]={type:U[2][0].type,data:rn(K)};S[0].messages[0].data=rn(U)}b.content=Uc(zc(S)),b.size=b.content.length;var se=na(D[4][0].data);(function(){for(var z=Bt.find(u,a[se].location),I=fi(hi(z.content)),B,q=0;q<I.length;++q){var X=I[q];X.id==se&&(B=X)}var ae=Lr(B.messages[0].data);{ae[3]=[];var ce=[];o.forEach(function(je,Xe){ce[1]=[{type:0,data:Ot(Xe)}],ce[2]=[{type:0,data:Ot(1)}],ce[3]=[{type:2,data:rce(je)}],ae[3].push({type:2,data:rn(ce)})})}B.messages[0].data=rn(ae);var ne=zc(I),Ae=Uc(ne);z.content=Ae,z.size=z.content.length})();var he=Lr(D[3][0].data);{var G=he[1][0];delete he[2];var O=Lr(G.data);{var W=na(O[2][0].data);(function(){for(var z=Bt.find(u,a[W].location),I=fi(hi(z.content)),B,q=0;q<I.length;++q){var X=I[q];X.id==W&&(B=X)}var ae=Lr(B.messages[0].data);{delete ae[6],delete he[7];var ce=new Uint8Array(ae[5][0].data);ae[5]=[];for(var ne=0,Ae=0;Ae<=n.e.r;++Ae){var je=Lr(ce);ne+=oce(je,i[Ae],o),je[1][0].data=Ot(Ae),ae[5].push({data:rn(je),type:2})}ae[1]=[{type:0,data:Ot(n.e.c+1)}],ae[2]=[{type:0,data:Ot(n.e.r+1)}],ae[3]=[{type:0,data:Ot(ne)}],ae[4]=[{type:0,data:Ot(n.e.r+1)}]}B.messages[0].data=rn(ae);var Xe=zc(I),Ve=Uc(Xe);z.content=Ve,z.size=z.content.length})()}G.data=rn(O)}D[3][0].data=rn(he)}v[4][0].data=rn(D)}p.messages[0].data=rn(v);var ee=zc(h),k=Uc(ee);return f.content=k,f.size=f.content.length,u}function lce(t){return function(r){for(var n=0;n!=t.length;++n){var s=t[n];r[s[0]]===void 0&&(r[s[0]]=s[1]),s[2]==="n"&&(r[s[0]]=Number(r[s[0]]))}}}function T_(t){lce([["cellDates",!1],["bookSST",!1],["bookType","xlsx"],["compression",!1],["WTF",!1]])(t)}function cce(t,e){return e.bookType=="ods"?XD(t,e):e.bookType=="numbers"?ace(t,e):e.bookType=="xlsb"?uce(t,e):dce(t,e)}function uce(t,e){gu=1024,t&&!t.SSF&&(t.SSF=us(gr)),t&&t.SSF&&(iv(),sv(t.SSF),e.revssf=ov(t.SSF),e.revssf[t.SSF[65535]]=0,e.ssf=t.SSF),e.rels={},e.wbrels={},e.Strings=[],e.Strings.Count=0,e.Strings.Unique=0,qf?e.revStrings=new Map:(e.revStrings={},e.revStrings.foo=[],delete e.revStrings.foo);var r=e.bookType=="xlsb"?"bin":"xml",n=RD.indexOf(e.bookType)>-1,s=oD();T_(e=e||{});var i=c_(),o="",a=0;if(e.cellXfs=[],hl(e.cellXfs,{},{revssf:{General:0}}),t.Props||(t.Props={}),o="docProps/core.xml",ct(i,o,uD(t.Props,e)),s.coreprops.push(o),Pt(e.rels,2,o,Et.CORE_PROP
vendor: 6,630 bytes, line 887
887S),o="docProps/app.xml",!(t.Props&&t.Props.SheetNames))if(!t.Workbook||!t.Workbook.Sheets)t.Props.SheetNames=t.SheetNames;else{for(var l=[],u=0;u<t.SheetNames.length;++u)(t.Workbook.Sheets[u]||{}).Hidden!=2&&l.push(t.SheetNames[u]);t.Props.SheetNames=l}for(t.Props.Worksheets=t.Props.SheetNames.length,ct(i,o,fD(t.Props)),s.extprops.push(o),Pt(e.rels,3,o,Et.EXT_PROPS),t.Custprops!==t.Props&&mn(t.Custprops||{}).length>0&&(o="docProps/custom.xml",ct(i,o,hD(t.Custprops)),s.custprops.push(o),Pt(e.rels,4,o,Et.CUST_PROPS)),a=1;a<=t.SheetNames.length;++a){var d={"!id":{}},f=t.Sheets[t.SheetNames[a-1]],h=(f||{})["!type"]||"sheet";switch(h){case"chart":default:o="xl/worksheets/sheet"+a+"."+r,ct(i,o,hle(a-1,o,e,t,d)),s.sheets.push(o),Pt(e.wbrels,-1,"worksheets/sheet"+a+"."+r,Et.WS[0])}if(f){var p=f["!comments"],g=!1,m="";p&&p.length>0&&(m="xl/comments"+a+"."+r,ct(i,m,gle(p,m)),s.comments.push(m),Pt(d,-1,"../comments"+a+"."+r,Et.CMNT),g=!0),f["!legacy"]&&g&&ct(i,"xl/drawings/vmlDrawing"+a+".vml",AD(a,f["!comments"])),delete f["!comments"],delete f["!legacy"]}d["!id"].rId1&&ct(i,lD(o),Ou(d))}return e.Strings!=null&&e.Strings.length>0&&(o="xl/sharedStrings."+r,ct(i,o,mle(e.Strings,o,e)),s.strs.push(o),Pt(e.wbrels,-1,"sharedStrings."+r,Et.SST)),o="xl/workbook."+r,ct(i,o,fle(t,o)),s.workbooks.push(o),Pt(e.rels,1,o,Et.WB),o="xl/theme/theme1.xml",ct(i,o,kD(t.Themes,e)),s.themes.push(o),Pt(e.wbrels,-1,"theme/theme1.xml",Et.THEME),o="xl/styles."+r,ct(i,o,ple(t,o,e)),s.styles.push(o),Pt(e.wbrels,-1,"styles."+r,Et.STY),t.vbaraw&&n&&(o="xl/vbaProject.bin",ct(i,o,t.vbaraw),s.vba.push(o),Pt(e.wbrels,-1,"vbaProject.bin",Et.VBA)),o="xl/metadata."+r,ct(i,o,xle(o)),s.metadata.push(o),Pt(e.wbrels,-1,"metadata."+r,Et.XLMETA),ct(i,"[Content_Types].xml",aD(s,e)),ct(i,"_rels/.rels",Ou(e.rels)),ct(i,"xl/_rels/workbook."+r+".rels",Ou(e.wbrels)),delete e.revssf,delete e.ssf,i}function dce(t,e){gu=1024,t&&!t.SSF&&(t.SSF=us(gr)),t&&t.SSF&&(iv(),sv(t.SSF),e.revssf=ov(t.SSF),e.revssf[t.SSF[65535]]=0,e.ssf=t.SSF),e.rels={},e.wbrels={},e.Strings=[],e.Strings.Count=0,e.Strings.Unique=0,qf?e.revStrings=new Map:(e.revStrings={},e.revStrings.foo=[],delete e.revStrings.foo);var r="xml",n=RD.indexOf(e.bookType)>-1,s=oD();T_(e=e||{});var i=c_(),o="",a=0;if(e.cellXfs=[],hl(e.cellXfs,{},{revssf:{General:0}}),t.Props||(t.Props={}),o="docProps/core.xml",ct(i,o,uD(t.Props,e)),s.coreprops.push(o),Pt(e.rels,2,o,Et.CORE_PROPS),o="docProps/app.xml",!(t.Props&&t.Props.SheetNames))if(!t.Workbook||!t.Workbook.Sheets)t.Props.SheetNames=t.SheetNames;else{for(var l=[],u=0;u<t.SheetNames.length;++u)(t.Workbook.Sheets[u]||{}).Hidden!=2&&l.push(t.SheetNames[u]);t.Props.SheetNames=l}t.Props.Worksheets=t.Props.SheetNames.length,ct(i,o,fD(t.Props)),s.extprops.push(o),Pt(e.rels,3,o,Et.EXT_PROPS),t.Custprops!==t.Props&&mn(t.Custprops||{}).length>0&&(o="docProps/custom.xml",ct(i,o,hD(t.Custprops)),s.custprops.push(o),Pt(e.rels,4,o,Et.CUST_PROPS));var d=["SheetJ5"];for(e.tcid=0,a=1;a<=t.SheetNames.length;++a){var f={"!id":{}},h=t.Sheets[t.SheetNames[a-1]],p=(h||{})["!type"]||"sheet";switch(p){case"chart":default:o="xl/worksheets/sheet"+a+"."+r,ct(i,o,$D(a-1,e,t,f)),s.sheets.push(o),Pt(e.wbrels,-1,"worksheets/sheet"+a+"."+r,Et.WS[0])}if(h){var g=h["!comments"],m=!1,x="";if(g&&g.length>0){var v=!1;g.forEach(function(y){y[1].forEach(function(b){b.T==!0&&(v=!0)})}),v&&(x="xl/threadedComments/threadedComment"+a+"."+r,ct(i,x,Use(g,d,e)),s.threadedcomments.push(x),Pt(f,-1,"../threadedComments/threadedComment"+a+"."+r,Et.TCMNT)),x="xl/comments"+a+"."+r,ct(i,x,jD(g)),s.comments.push(x),Pt(f,-1,"../comments"+a+"."+r,Et.CMNT),m=!0}h["!legacy"]&&m&&ct(i,"xl/drawings/vmlDrawing"+a+".vml",AD(a,h["!comments"])),delete h["!comments"],delete h["!legacy"]}f["!id"].rId1&&ct(i,lD(o),Ou(f))}return e.Strings!=null&&e.Strings.length>0&&(o="xl/sharedStrings."+r,ct(i,o,bD(e.Strings,e)),s.strs.push(o),Pt(e.wbrels,-1,"sharedStrings."+r,Et.SST)),o="xl/workbook."+r,ct(i,o,HD(t)),s.workbooks.push(o),Pt(e.rels,1,o,Et.WB),o="xl/theme/theme1.xml",ct(i,o,kD(t.Themes,e)),s.themes.push(o),Pt(e.wbrels,-1,"theme/theme1.xml",Et.THEME),o="xl/styles."+r,ct(i,o,TD(t,e)),s.styles.push(o),Pt(e.wbrels,-1,"styles."+r,Et.STY),t.vbaraw&&n&&(o="xl/vbaProject.bin",ct(i,o,t.vbaraw),s.vba.push(o),Pt(e.wbrels,-1,"vbaProject.bin",Et.VBA)),o="xl/metadata."+r,ct(i,o,ND()),s.metadata.push(o),Pt(e.wbrels,-1,"metadata."+r,Et.XLMETA),d.length>1&&(o="xl/persons/person.xml",ct(i,o,Hse(d)),s.people.push(o),Pt(e.wbrels,-1,"persons/person.xml",Et.PEOPLE)),ct(i,"[Content_Types].xml",aD(s,e)),ct(i,"_rels/.rels",Ou(e.rels)),ct(i,"xl/_rels/workbook."+r+".rels",Ou(e.wbrels)),delete e.revssf,delete e.ssf,i}function fce(t,e){var r="";switch((e||{}).type||"base64"){case"buffer":return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7]];case"base64":r=Vo(t.slice(0,12));break;case"binary":r=t;break;case"array":return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7]];default:throw new Error("Unrecognized type "+(e&&e.type||"undefined"))}return[r.charCodeAt(0),r.charCodeAt(1),r.charCodeAt(2),r.charCodeAt(3),r.charCodeAt(4),r.charCodeAt(5),r.charCodeAt(6),r.charCodeAt(7)]}function YD(t,e){switch(e.type){case"base64":case"binary":break;case"buffer":case"array":e.type="";break;case"file":return hp(e.file,Bt.write(t,{type:Nt?"buffer":""}));case"string":throw new Error("'string' output type invalid for '"+e.bookType+"' files");default:throw new Error("Unrecognized type "+e.type)}return Bt.write(t,e)}function hce(t,e){var r=us(e||{}),n=cce(t,r);return pce(n,r)}function pce(t,e){var r={},n=Nt?"nodebuffer":typeof Uint8Array<"u"?"array":"string";if(e.compression&&(r.compression="DEFLATE"),e.password)r.type=n;else switch(e.type){case"base64":r.type="base64";break;case"binary":r.type="string";break;case"string":throw new Error("'string' output type invalid for '"+e.bookType+"' files");case"buffer":case"file":r.type=n;break;default:throw new Error("Unrecognized type "+e.type)}var s=t.FullPaths?Bt.write(t,{fileType:"zip",type:{nodebuffer:"buffer",string:"binary"}[r.type]||r.type,compression:!!e.compression}):t.generate(r);if(typeof Deno<"u"&&typeof s=="string"){if(e.type=="binary"||e.type=="base64")return s;s=new Uint8Array(nv(s))}return e.password&&typeof encrypt_agile<"u"?YD(encrypt_agile(s,e.password),e):e.type==="file"?hp(e.file,s):e.type=="string"?Uf(s):s}function mce(t,e){var r=e||{},n=Rle(t,r);return YD(n,r)}function Ui(t,e,r){r||(r="");var n=r+t;switch(e.type){case"base64":return Ph(Ih(n));case"binary":return Ih(n);case"string":return t;case"file":return hp(e.file,n,"utf8");case"buffer":return Nt?Yo(n,"utf8"):typeof TextEncoder<"u"?new TextEncoder().encode(n):Ui(n,{type:"binary"}
vendor: 9,935 bytes, lines 887-889
887).split("").map(function(s){return s.charCodeAt(0)})}throw new Error("Unrecognized type "+e.type)}function gce(t,e){switch(e.type){case"base64":return Ph(t);case"binary":return t;case"string":return t;case"file":return hp(e.file,t,"binary");case"buffer":return Nt?Yo(t,"binary"):t.split("").map(function(r){return r.charCodeAt(0)})}throw new Error("Unrecognized type "+e.type)}function gm(t,e){switch(e.type){case"string":case"base64":case"binary":for(var r="",n=0;n<t.length;++n)r+=String.fromCharCode(t[n]);return e.type=="base64"?Ph(r):e.type=="string"?Uf(r):r;case"file":return hp(e.file,t);case"buffer":return t;default:throw new Error("Unrecognized type "+e.type)}}function JD(t,e){Vte(),tle(t);var r=us(e||{});if(r.cellStyles&&(r.cellNF=!0,r.sheetStubs=!0),r.type=="array"){r.type="binary";var n=JD(t,r);return r.type="array",nv(n)}var s=0;if(r.sheet&&(typeof r.sheet=="number"?s=r.sheet:s=t.SheetNames.indexOf(r.sheet),!t.SheetNames[s]))throw new Error("Sheet not found: "+r.sheet+" : "+typeof r.sheet);switch(r.bookType||"xlsb"){case"xml":case"xlml":return Ui(Ale(t,r),r);case"slk":case"sylk":return Ui(Qne.from_sheet(t.Sheets[t.SheetNames[s]],r),r);case"htm":case"html":return Ui(qD(t.Sheets[t.SheetNames[s]],r),r);case"txt":return gce(QD(t.Sheets[t.SheetNames[s]],r),r);case"csv":return Ui(C_(t.Sheets[t.SheetNames[s]],r),r,"\uFEFF");case"dif":return Ui(Zne.from_sheet(t.Sheets[t.SheetNames[s]],r),r);case"dbf":return gm(Jne.from_sheet(t.Sheets[t.SheetNames[s]],r),r);case"prn":return Ui(ese.from_sheet(t.Sheets[t.SheetNames[s]],r),r);case"rtf":return Ui(ase.from_sheet(t.Sheets[t.SheetNames[s]],r),r);case"eth":return Ui(wD.from_sheet(t.Sheets[t.SheetNames[s]],r),r);case"fods":return Ui(XD(t,r),r);case"wk1":return gm(LN.sheet_to_wk1(t.Sheets[t.SheetNames[s]],r),r);case"wk3":return gm(LN.book_to_wk3(t,r),r);case"biff2":r.biff||(r.biff=2);case"biff3":r.biff||(r.biff=3);case"biff4":return r.biff||(r.biff=4),gm(WD(t,r),r);case"biff5":r.biff||(r.biff=5);case"biff8":case"xla":case"xls":return r.biff||(r.biff=8),mce(t,r);case"xlsx":case"xlsm":case"xlam":case"xlsb":case"numbers":case"ods":return hce(t,r);default:throw new Error("Unrecognized bookType |"+r.bookType+"|")}}function xce(t){if(!t.bookType){var e={xls:"biff8",htm:"html",slk:"sylk",socialcalc:"eth",Sh33tJS:"WTF"},r=t.file.slice(t.file.lastIndexOf(".")).toLowerCase();r.match(/^\.[a-z]+$/)&&(t.bookType=r.slice(1)),t.bookType=e[t.bookType]||t.bookType}}function vce(t,e,r){var n={};return n.type="file",n.file=e,xce(n),JD(t,n)}function yce(t,e,r,n,s,i,o,a){var l=hn(r),u=a.defval,d=a.raw||!Object.prototype.hasOwnProperty.call(a,"raw"),f=!0,h=s===1?[]:{};if(s!==1)if(Object.defineProperty)try{Object.defineProperty(h,"__rowNum__",{value:r,enumerable:!1})}catch{h.__rowNum__=r}else h.__rowNum__=r;if(!o||t[r])for(var p=e.s.c;p<=e.e.c;++p){var g=o?t[r][p]:t[n[p]+l];if(g===void 0||g.t===void 0){if(u===void 0)continue;i[p]!=null&&(h[i[p]]=u);continue}var m=g.v;switch(g.t){case"z":if(m==null)break;continue;case"e":m=m==0?null:void 0;break;case"s":case"d":case"b":case"n":break;default:throw new Error("unrecognized type "+g.t)}if(i[p]!=null){if(m==null)if(g.t=="e"&&m===null)h[i[p]]=null;else if(u!==void 0)h[i[p]]=u;else if(d&&m===null)h[i[p]]=null;else continue;else h[i[p]]=d&&(g.t!=="n"||g.t==="n"&&a.rawNumbers!==!1)?m:Wo(g,m,a);m!=null&&(f=!1)}}return{row:h,isempty:f}}function Fg(t,e){if(t==null||t["!ref"]==null)return[];var r={t:"n",v:0},n=0,s=1,i=[],o=0,a="",l={s:{r:0,c:0},e:{r:0,c:0}},u=e||{},d=u.range!=null?u.range:t["!ref"];switch(u.header===1?n=1:u.header==="A"?n=2:Array.isArray(u.header)?n=3:u.header==null&&(n=0),typeof d){case"string":l=Gt(d);break;case"number":l=Gt(t["!ref"]),l.s.r=d;break;default:l=d}n>0&&(s=0);var f=hn(l.s.r),h=[],p=[],g=0,m=0,x=Array.isArray(t),v=l.s.r,y=0,b={};x&&!t[v]&&(t[v]=[]);var S=u.skipHidden&&t["!cols"]||[],E=u.skipHidden&&t["!rows"]||[];for(y=l.s.c;y<=l.e.c;++y)if(!(S[y]||{}).hidden)switch(h[y]=En(y),r=x?t[v][y]:t[h[y]+f],n){case 1:i[y]=y-l.s.c;break;case 2:i[y]=h[y];break;case 3:i[y]=u.header[y-l.s.c];break;default:if(r==null&&(r={w:"__EMPTY",t:"s"}),a=o=Wo(r,null,u),m=b[o]||0,!m)b[o]=1;else{do a=o+"_"+m++;while(b[a]);b[o]=m,b[a]=1}i[y]=a}for(v=l.s.r+s;v<=l.e.r;++v)if(!(E[v]||{}).hidden){var C=yce(t,l,v,h,n,i,x,u);(C.isempty===!1||(n===1?u.blankrows!==!1:u.blankrows))&&(p[g++]=C.row)}return p.length=g,p}var WN=/"/g;function wce(t,e,r,n,s,i,o,a){for(var l=!0,u=[],d="",f=hn(r),h=e.s.c;h<=e.e.c;++h)if(n[h]){var p=a.dense?(t[r]||[])[h]:t[n[h]+f];if(p==null)d="";else if(p.v!=null){l=!1,d=""+(a.rawNumbers&&p.t=="n"?p.v:Wo(p,null,a));for(var g=0,m=0;g!==d.length;++g)if((m=d.charCodeAt(g))===s||m===i||m===34||a.forceQuotes){d='"'+d.replace(WN,'""')+'"';break}d=="ID"&&(d='"ID"')}else p.f!=null&&!p.F?(l=!1,d="="+p.f,d.indexOf(",")>=0&&(d='"'+d.replace(WN,'""')+'"')):d="";u.push(d)}return a.blankrows===!1&&l?null:u.join(o)}function C_(t,e){var r=[],n=e??{};if(t==null||t["!ref"]==null)return"";var s=Gt(t["!ref"]),i=n.FS!==void 0?n.FS:",",o=i.charCodeAt(0),a=n.RS!==void 0?n.RS:`
888`,l=a.charCodeAt(0),u=new RegExp((i=="|"?"\\|":i)+"+$"),d="",f=[];n.dense=Array.isArray(t);for(var h=n.skipHidden&&t["!cols"]||[],p=n.skipHidden&&t["!rows"]||[],g=s.s.c;g<=s.e.c;++g)(h[g]||{}).hidden||(f[g]=En(g));for(var m=0,x=s.s.r;x<=s.e.r;++x)(p[x]||{}).hidden||(d=wce(t,s,x,f,o,l,i,n),d!=null&&(n.strip&&(d=d.replace(u,"")),(d||n.blankrows!==!1)&&r.push((m++?a:"")+d)));return delete n.dense,r.join("")}function QD(t,e){e||(e={}),e.FS="	",e.RS=`
889`;var r=C_(t,e);return r}function bce(t){var e="",r,n="";if(t==null||t["!ref"]==null)return[];var s=Gt(t["!ref"]),i="",o=[],a,l=[],u=Array.isArray(t);for(a=s.s.c;a<=s.e.c;++a)o[a]=En(a);for(var d=s.s.r;d<=s.e.r;++d)for(i=hn(d),a=s.s.c;a<=s.e.c;++a)if(e=o[a]+i,r=u?(t[d]||[])[a]:t[e],n="",r!==void 0){if(r.F!=null){if(e=r.F,!r.f)continue;n=r.f,e.indexOf(":")==-1&&(e=e+":"+e)}if(r.f!=null)n=r.f;else{if(r.t=="z")continue;if(r.t=="n"&&r.v!=null)n=""+r.v;else if(r.t=="b")n=r.v?"TRUE":"FALSE";else if(r.w!==void 0)n="'"+r.w;else{if(r.v===void 0)continue;r.t=="s"?n="'"+r.v:n=""+r.v}}l[l.length]=e+"="+n}return l}function ZD(t,e,r){var n=r||{},s=+!n.skipHeader,i=t||{},o=0,a=0;if(i&&n.origin!=null)if(typeof n.origin=="number")o=n.origin;else{var l=typeof n.origin=="string"?Gr(n.origin):n.origin;o=l.r,a=l.c}var u,d={s:{c:0,r:0},e:{c:a,r:o+e.length-1+s}};if(i["!ref"]){var f=Gt(i["!ref"]);d.e.c=Math.max(d.e.c,f.e.c),d.e.r=Math.max(d.e.r,f.e.r),o==-1&&(o=f.e.r+1,d.e.r=o+e.length-1+s)}else o==-1&&(o=0,d.e.r=e.length-1+s);var h=n.header||[],p=0;e.forEach(function(m,x){mn(m).forEach(function(v){(p=h.indexOf(v))==-1&&(h[p=h.length]=v);var y=m[v],b="z",S="",E=Dt({c:a+p,r:o+x+s});u=Fh(i,E),y&&typeof y=="object"&&!(y instanceof Date)?i[E]=y:(typeof y=="number"?b="n":typeof y=="boolean"?b="b":typeof y=="string"?b="s":y instanceof Date?(b="d",n.cellDates||(b="n",y=cs(y)),S=n.dateNF||gr[14]):y===null&&n.nullError&&(b="e",y=0),u?(u.t=b,u.v=y,delete u.w,delete u.R,S&&(u.z=S)):i[E]=u={t:b,v:y},S&&(u.z=S))})}),d.e.c=Math.max(d.e.c,a+h.length-1);var g=hn(o);if(s)for(p=0;p<h.length;++p)i[En(p+a)+g]={t:"s",v:h[p]};return i["!ref"]=Nr(d),i}function Sce(t,e){return ZD(null,t,e)}function Fh(t,e,r){if(typeof e=="string"){if(Array.isArray(t)){var n=Gr(e);return t[n.r]||(t[n.r]=[]),t[n.r][n.c]||(t[n.r][n.c]={t:"z"})}return t[e]||(t[e]={t:"z"})}return typeof e!="number"?Fh(t,Dt(e)):Fh(t,Dt({r:e,c:r||0}))}function _ce(t,e){if(typeof e=="number"){if(e>=0&&t.SheetNames.length>e)return e;throw new Error("Cannot find sheet # "+e)}else if(typeof e=="string"){var r=t.SheetNames.indexOf(e);if(r>-1)return r;throw new Error("Cannot find sheet name |"+e+"|")}else throw new Error("Cannot find sheet |"+e+"|")}function Ece(){return{SheetNames:[],Sheets:{}}}function Tce(t,e,r,n){var s=1;if(!r)for(;s<=65535&&t.SheetNames.indexOf(r="Sheet"+s)!=-1;++s,r=void 0);if(!r||t.SheetNames.length>=65535)throw new Error("Too many worksheets");if(n&&t.SheetNames.indexOf(r)>=0){var i=r.match(/(^.*?)(\d+)$/);s=i&&+i[2]||0;var o=i&&i[1]||r;for(++s;s<=65535&&t.SheetNames.indexOf(r=o+s)!=-1;++s);}if(UD(r),t.SheetNames.indexOf(r)>=0)throw new Error("Worksheet with name |"+r+"| already exists!");return t.SheetNames.push(r),t.Sheets[r]=e,r}function Cce(t,e,r){t.Workbook||(t.Workbook={}),t.Workbook.Sheets||(t.Workbook.Sheets=[]);var n=_ce(t,e);switch(t.Workbook.Sheets[n]||(t.Workbook.Sheets[n]={}),r){case 0:case 1:case 2:break;default:throw new Error("Bad sheet visibility setting "+r)}t.Workbook.Sheets[n].Hidden=r}function kce(t,e){return t.z=e,t}function eL(t,e,r){return e?(t.l={Target:e},r&&(t.l.Tooltip=r)):delete t.l,t}function Nce(t,e,r){return eL(t,"#"+e,r)}function Ace(t,e,r){t.c||(t.c=[]),t.c.push({t:e,a:r||"SheetJS"})}function jce(t,e,r,n){for(var s=typeof e!="string"?e:Gt(e),i=typeof e=="string"?e:Nr(e),o=s.s.r;o<=s.e.r;++o)for(var a=s.s.c;a<=s.e.c;++a){var l=Fh(t,o,a);l.t="n",l.F=i,delete l.v,o==s.s.r&&a==s.s.c&&(l.f=r,n&&(l.D=!0))}return t}var Z1={encode_col:En,encode_row:hn,encode_cell:Dt,encode_range:Nr,decode_col:m_,decode_row:p_,split_cell:Vre,decode_cell:Gr,decode_range:Ns,format_cell:Wo,sheet_add_aoa:eD,sheet_add_json:ZD,sheet_add_dom:GD,aoa_to_sheet:jd,json_to_sheet:Sce,table_to_sheet:KD,table_to_book:Zle,sheet_to_csv:C_,sheet_to_txt:QD,sheet_to_json:Fg,sheet_to_html:qD,sheet_to_formulae:bce,sheet_to_row_object_array:Fg,sheet_get_cell:Fh,book_new:Ece,book_append_sheet:Tce,book_set_sheet_visibility:Cce,cell_set_number_format:kce,cell_set_hyperlink:eL,cell_set_internal_link:Nce,cell_add_comment:Ace,sheet_set_array_formula:jce,consts:{SHEET_VISIBLE:0,SHEET_HIDDEN:1,SHEET_VERY_HIDDEN:2}};function Tb(t,[e,r]){return Math.min(r,Math.max(e,t))}var ey=0;function k_(){w.useEffect(()=>{const t=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",t[0]??qN()),document.body.insertAdjacentElement("beforeend",t[1]??qN()),ey++,()=>{ey===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e
vendor: 4,238 bytes, line 889
889=>e.remove()),ey--}},[])}function qN(){const t=document.createElement("span");return t.setAttribute("data-radix-focus-guard",""),t.tabIndex=0,t.style.outline="none",t.style.opacity="0",t.style.position="fixed",t.style.pointerEvents="none",t}var ty="focusScope.autoFocusOnMount",ry="focusScope.autoFocusOnUnmount",GN={bubbles:!1,cancelable:!0},Rce="FocusScope",dv=w.forwardRef((t,e)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:s,onUnmountAutoFocus:i,...o}=t,[a,l]=w.useState(null),u=br(s),d=br(i),f=w.useRef(null),h=ot(e,m=>l(m)),p=w.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;w.useEffect(()=>{if(n){let m=function(b){if(p.paused||!a)return;const S=b.target;a.contains(S)?f.current=S:aa(f.current,{select:!0})},x=function(b){if(p.paused||!a)return;const S=b.relatedTarget;S!==null&&(a.contains(S)||aa(f.current,{select:!0}))},v=function(b){if(document.activeElement===document.body)for(const E of b)E.removedNodes.length>0&&aa(a)};document.addEventListener("focusin",m),document.addEventListener("focusout",x);const y=new MutationObserver(v);return a&&y.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",m),document.removeEventListener("focusout",x),y.disconnect()}}},[n,a,p.paused]),w.useEffect(()=>{if(a){XN.add(p);const m=document.activeElement;if(!a.contains(m)){const v=new CustomEvent(ty,GN);a.addEventListener(ty,u),a.dispatchEvent(v),v.defaultPrevented||(Oce(Lce(tL(a)),{select:!0}),document.activeElement===m&&aa(a))}return()=>{a.removeEventListener(ty,u),setTimeout(()=>{const v=new CustomEvent(ry,GN);a.addEventListener(ry,d),a.dispatchEvent(v),v.defaultPrevented||aa(m??document.body,{select:!0}),a.removeEventListener(ry,d),XN.remove(p)},0)}}},[a,u,d,p]);const g=w.useCallback(m=>{if(!r&&!n||p.paused)return;const x=m.key==="Tab"&&!m.altKey&&!m.ctrlKey&&!m.metaKey,v=document.activeElement;if(x&&v){const y=m.currentTarget,[b,S]=Pce(y);b&&S?!m.shiftKey&&v===S?(m.preventDefault(),r&&aa(b,{select:!0})):m.shiftKey&&v===b&&(m.preventDefault(),r&&aa(S,{select:!0})):v===y&&m.preventDefault()}},[r,n,p.paused]);return c.jsx(Ue.div,{tabIndex:-1,...o,ref:h,onKeyDown:g})});dv.displayName=Rce;function Oce(t,{select:e=!1}={}){const r=document.activeElement;for(const n of t)if(aa(n,{select:e}),document.activeElement!==r)return}function Pce(t){const e=tL(t),r=KN(e,t),n=KN(e.reverse(),t);return[r,n]}function tL(t){const e=[],r=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const s=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||s?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)e.push(r.currentNode);return e}function KN(t,e){for(const r of t)if(!Mce(r,{upTo:e}))return r}function Mce(t,{upTo:e}){if(getComputedStyle(t).visibility==="hidden")return!0;for(;t;){if(e!==void 0&&t===e)return!1;if(getComputedStyle(t).display==="none")return!0;t=t.parentElement}return!1}function Ice(t){return t instanceof HTMLInputElement&&"select"in t}function aa(t,{select:e=!1}={}){if(t&&t.focus){const r=document.activeElement;t.focus({preventScroll:!0}),t!==r&&Ice(t)&&e&&t.select()}}var XN=Dce();function Dce(){let t=[];return{add(e){const r=t[0];e!==r&&(r==null||r.pause()),t=YN(t,e),t.unshift(e)},remove(e){var r;t=YN(t,e),(r=t[0])==null||r.resume()}}}function YN(t,e){const r=[...t],n=r.indexOf(e);return n!==-1&&r.splice(n,1),r}function Lce(t){return t.filter(e=>e.tagName!=="A")}function rL(t){const e=w.useRef({value:t,previous:t});return w.useMemo(()=>(e.current.value!==t&&(e.current.previous=e.current.value,e.current.value=t),e.current.previous),[t])}var Fce=function(t){if(typeof document>"u")return null;var e=Array.isArray(t)?t[0]:t;return e.ownerDocument.body},Hc=new WeakMap,xm=new WeakMap,vm={},ny=0,nL=function(t){return t&&(t.host||nL(t.parentNode))},Bce=function(t,e){return e.map(function(r){if(t.contains(r))return r;var n=nL(r);return n&&t.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",t,". Doing nothing"),null)}).filter(function(r){return!!r})},$ce=function(t,e,r,n){var s=Bce(e,Array.isArray(t)?t:[t]);vm[r]||(vm[r]=new WeakMap);var i=vm[r],o=[],a=new Set,l=new Set(s),u=function(f){!f||a.has(f)||(a.add(f),u(f.parentNode))};
vendor: 5,701 bytes, line 889
889s.forEach(u);var d=function(f){!f||l.has(f)||Array.prototype.forEach.call(f.children,function(h){if(a.has(h))d(h);else try{var p=h.getAttribute(n),g=p!==null&&p!=="false",m=(Hc.get(h)||0)+1,x=(i.get(h)||0)+1;Hc.set(h,m),i.set(h,x),o.push(h),m===1&&g&&xm.set(h,!0),x===1&&h.setAttribute(r,"true"),g||h.setAttribute(n,"true")}catch(v){console.error("aria-hidden: cannot operate on ",h,v)}})};return d(e),a.clear(),ny++,function(){o.forEach(function(f){var h=Hc.get(f)-1,p=i.get(f)-1;Hc.set(f,h),i.set(f,p),h||(xm.has(f)||f.removeAttribute(n),xm.delete(f)),p||f.removeAttribute(r)}),ny--,ny||(Hc=new WeakMap,Hc=new WeakMap,xm=new WeakMap,vm={})}},N_=function(t,e,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(t)?t:[t]),s=Fce(t);return s?(n.push.apply(n,Array.from(s.querySelectorAll("[aria-live]"))),$ce(n,s,r,"aria-hidden")):function(){return null}},Qi=function(){return Qi=Object.assign||function(e){for(var r,n=1,s=arguments.length;n<s;n++){r=arguments[n];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},Qi.apply(this,arguments)};function sL(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,n=Object.getOwnPropertySymbols(t);s<n.length;s++)e.indexOf(n[s])<0&&Object.prototype.propertyIsEnumerable.call(t,n[s])&&(r[n[s]]=t[n[s]]);return r}function zce(t,e,r){if(r||arguments.length===2)for(var n=0,s=e.length,i;n<s;n++)(i||!(n in e))&&(i||(i=Array.prototype.slice.call(e,0,n)),i[n]=e[n]);return t.concat(i||Array.prototype.slice.call(e))}var qm="right-scroll-bar-position",Gm="width-before-scroll-bar",Uce="with-scroll-bars-hidden",Hce="--removed-body-scroll-bar-size";function sy(t,e){return typeof t=="function"?t(e):t&&(t.current=e),t}function Vce(t,e){var r=w.useState(function(){return{value:t,callback:e,facade:{get current(){return r.value},set current(n){var s=r.value;s!==n&&(r.value=n,r.callback(n,s))}}}})[0];return r.callback=e,r.facade}var Wce=typeof window<"u"?w.useLayoutEffect:w.useEffect,JN=new WeakMap;function qce(t,e){var r=Vce(null,function(n){return t.forEach(function(s){return sy(s,n)})});return Wce(function(){var n=JN.get(r);if(n){var s=new Set(n),i=new Set(t),o=r.current;s.forEach(function(a){i.has(a)||sy(a,null)}),i.forEach(function(a){s.has(a)||sy(a,o)})}JN.set(r,t)},[t]),r}function Gce(t){return t}function Kce(t,e){e===void 0&&(e=Gce);var r=[],n=!1,s={read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:t},useMedium:function(i){var o=e(i,n);return r.push(o),function(){r=r.filter(function(a){return a!==o})}},assignSyncMedium:function(i){for(n=!0;r.length;){var o=r;r=[],o.forEach(i)}r={push:function(a){return i(a)},filter:function(){return r}}},assignMedium:function(i){n=!0;var o=[];if(r.length){var a=r;r=[],a.forEach(i),o=r}var l=function(){var d=o;o=[],d.forEach(i)},u=function(){return Promise.resolve().then(l)};u(),r={push:function(d){o.push(d),u()},filter:function(d){return o=o.filter(d),r}}}};return s}function Xce(t){t===void 0&&(t={});var e=Kce(null);return e.options=Qi({async:!0,ssr:!1},t),e}var iL=function(t){var e=t.sideCar,r=sL(t,["sideCar"]);if(!e)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=e.read();if(!n)throw new Error("Sidecar medium not found");return w.createElement(n,Qi({},r))};iL.isSideCarExport=!0;function Yce(t,e){return t.useMedium(e),iL}var oL=Xce(),iy=function(){},fv=w.forwardRef(function(t,e){var r=w.useRef(null),n=w.useState({onScrollCapture:iy,onWheelCapture:iy,onTouchMoveCapture:iy}),s=n[0],i=n[1],o=t.forwardProps,a=t.children,l=t.className,u=t.removeScrollBar,d=t.enabled,f=t.shards,h=t.sideCar,p=t.noRelative,g=t.noIsolation,m=t.inert,x=t.allowPinchZoom,v=t.as,y=v===void 0?"div":v,b=t.gapMode,S=sL(t,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),E=h,C=qce([r,e]),_=Qi(Qi({},S),s);return w.createElement(w.Fragment,null,d&&w.createElement(E,{sideCar:oL,removeScrollBar:u,shards:f,noRelative:p,noIsolation:g,inert:m,setCallbacks:i,allowPinchZoom:!!x,lockRef:r,gapMode:b}),o?w.cloneElement(w.Children.only(a),Qi(Qi({},_),{ref:C})):w.createElement(y,Qi({},_,{className:l,ref:C}),a))});fv.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};fv.classNames={fullWidth:Gm,zeroRight:qm};var Jce=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Qce(){if(!document)return null;var t=document.createElement("style");t.type="text/css";var e=Jce();return e&&t.setAttribute("nonce",e),t}function Zce(t,e){t.styleSheet?t.styleSheet.cssText=e:t.appendChild(document.createTextNode(e))}function eue(t){var e=document.head||document.getElementsByTagName("head")[0];e.appendChild(t)}var tue=function(){var t=0,e=null;return{add:function(r){t==0&&(e=Qce())&&(Zce(e,r),eue(e)),t++},remove:function(){t--,!t&&e&&(e.parentNode&&e.parentNode.removeChild(e),e=null)}}},rue=function(){var t=tue();return function(e,r){w.useEffect(function(){return t.add(e),function(){t.remove()}},[e&&r])}},aL=function(){var t=rue(),e=function(r){var n=r.styles,s=r.dynamic;return t(n,s),null};return e},nue={left:0,top:0,right:0,gap:0},oy=function(t){return parseInt(t||"",10)||0},sue=function(t){var e=window.getComputedStyle(document.body),r=e[t==="padding"?"paddingLeft":"marginLeft"],n=e[t==="padding"?"paddingTop":"marginTop"],s=e[t==="padding"?"paddingRight":"marginRight"];return[oy(r),oy(n),oy(s)]},iue=function(t){if(t===void 0&&(t="margin"),typeof window>"u")return nue;
vendor: 8,747 bytes, lines 889-929
889var e=sue(t),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:e[0],top:e[1],right:e[2],gap:Math.max(0,n-r+e[2]-e[0])}},oue=aL(),Iu="data-scroll-locked",aue=function(t,e,r,n){var s=t.left,i=t.top,o=t.right,a=t.gap;return r===void 0&&(r="margin"),`
890  .`.concat(Uce,` {
891   overflow: hidden `).concat(n,`;
892   padding-right: `).concat(a,"px ").concat(n,`;
893  }
894  body[`).concat(Iu,`] {
895    overflow: hidden `).concat(n,`;
896    overscroll-behavior: contain;
897    `).concat([e&&"position: relative ".concat(n,";"),r==="margin"&&`
898    padding-left: `.concat(s,`px;
899    padding-top: `).concat(i,`px;
900    padding-right: `).concat(o,`px;
901    margin-left:0;
902    margin-top:0;
903    margin-right: `).concat(a,"px ").concat(n,`;
904    `),r==="padding"&&"padding-right: ".concat(a,"px ").concat(n,";")].filter(Boolean).join(""),`
905  }
906  
907  .`).concat(qm,` {
908    right: `).concat(a,"px ").concat(n,`;
909  }
910  
911  .`).concat(Gm,` {
912    margin-right: `).concat(a,"px ").concat(n,`;
913  }
914  
915  .`).concat(qm," .").concat(qm,` {
916    right: 0 `).concat(n,`;
917  }
918  
919  .`).concat(Gm," .").concat(Gm,` {
920    margin-right: 0 `).concat(n,`;
921  }
922  
923  body[`).concat(Iu,`] {
924    `).concat(Hce,": ").concat(a,`px;
925  }
926`)},QN=function(){var t=parseInt(document.body.getAttribute(Iu)||"0",10);return isFinite(t)?t:0},lue=function(){w.useEffect(function(){return document.body.setAttribute(Iu,(QN()+1).toString()),function(){var t=QN()-1;t<=0?document.body.removeAttribute(Iu):document.body.setAttribute(Iu,t.toString())}},[])},cue=function(t){var e=t.noRelative,r=t.noImportant,n=t.gapMode,s=n===void 0?"margin":n;lue();var i=w.useMemo(function(){return iue(s)},[s]);return w.createElement(oue,{styles:aue(i,!e,s,r?"":"!important")})},Cb=!1;if(typeof window<"u")try{var ym=Object.defineProperty({},"passive",{get:function(){return Cb=!0,!0}});window.addEventListener("test",ym,ym),window.removeEventListener("test",ym,ym)}catch{Cb=!1}var Vc=Cb?{passive:!1}:!1,uue=function(t){return t.tagName==="TEXTAREA"},lL=function(t,e){if(!(t instanceof Element))return!1;var r=window.getComputedStyle(t);return r[e]!=="hidden"&&!(r.overflowY===r.overflowX&&!uue(t)&&r[e]==="visible")},due=function(t){return lL(t,"overflowY")},fue=function(t){return lL(t,"overflowX")},ZN=function(t,e){var r=e.ownerDocument,n=e;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var s=cL(t,n);if(s){var i=uL(t,n),o=i[1],a=i[2];if(o>a)return!0}n=n.parentNode}while(n&&n!==r.body);return!1},hue=function(t){var e=t.scrollTop,r=t.scrollHeight,n=t.clientHeight;return[e,r,n]},pue=function(t){var e=t.scrollLeft,r=t.scrollWidth,n=t.clientWidth;return[e,r,n]},cL=function(t,e){return t==="v"?due(e):fue(e)},uL=function(t,e){return t==="v"?hue(e):pue(e)},mue=function(t,e){return t==="h"&&e==="rtl"?-1:1},gue=function(t,e,r,n,s){var i=mue(t,window.getComputedStyle(e).direction),o=i*n,a=r.target,l=e.contains(a),u=!1,d=o>0,f=0,h=0;do{if(!a)break;var p=uL(t,a),g=p[0],m=p[1],x=p[2],v=m-x-i*g;(g||v)&&cL(t,a)&&(f+=v,h+=g);var y=a.parentNode;a=y&&y.nodeType===Node.DOCUMENT_FRAGMENT_NODE?y.host:y}while(!l&&a!==document.body||l&&(e.contains(a)||e===a));return(d&&(Math.abs(f)<1||!s)||!d&&(Math.abs(h)<1||!s))&&(u=!0),u},wm=function(t){return"changedTouches"in t?[t.changedTouches[0].clientX,t.changedTouches[0].clientY]:[0,0]},eA=function(t){return[t.deltaX,t.deltaY]},tA=function(t){return t&&"current"in t?t.current:t},xue=function(t,e){return t[0]===e[0]&&t[1]===e[1]},vue=function(t){return`
927  .block-interactivity-`.concat(t,` {pointer-events: none;}
928  .allow-interactivity-`).concat(t,` {pointer-events: all;}
929`)},yue=0,Wc=[];function wue(t){var e=w.useRef([]),r=w.useRef([0,0]),n=w.useRef(),s=w.useState(yue++)[0],i=w.useState(aL)[0],o=w.useRef(t);w.useEffect(function(){o.current=t},[t]),w.useEffect(function(){if(t.inert){document.body.classList.add("block-interactivity-".concat(s));var m=zce([t.lockRef.current],(t.shards||[]).map(tA),!0).filter(Boolean);return m.forEach(function(x){return x.classList.add("allow-interactivity-".concat(s))}),function(){document.body.classList.remove("block-interactivity-".concat(s)),m.forEach(function(x){return x.classList.remove("allow-interactivity-".concat(s))})}}},[t.inert,t.lockRef.current,t.shards]);var a=w.useCallback(function(m,x){if("touches"in m&&m.touches.length===2||m.type==="wheel"&&m.ctrlKey)return!o.current.allowPinchZoom;var v=wm(m),y=r.current,b="deltaX"in m?m.deltaX:y[0]-v[0],S="deltaY"in m?m.deltaY:y[1]-v[1],E,C=m.target,_=Math.abs(b)>Math.abs(S)?"h":"v";if("touches"in m&&_==="h"&&C.type==="range")return!1;var A=ZN(_,C);if(!A)return!0;if(A?E=_:(E=_==="v"?"h":"v",A=ZN(_,C)),!A)return!1;if(!n.current&&"changedTouches"in m&&(b||S)&&(n.current=E),!E)return!0;var N=n.current||E;return gue(N,x,m,N==="h"?b:S,!0)},[]),l=w.useCallback(function(m){var x=m;if(!(!Wc.length||Wc[Wc.length-1]!==i)){var v="deltaY"in x?eA(x):wm(x),y=e.current.filter(function(E){return E.name===x.type&&(E.target===x.target||x.target===E.shadowParent)&&xue(E.delta,v)})[0];if(y&&y.should){x.cancelable&&x.preventDefault();return}if(!y){var b=(o.current.shards||[]).map(tA).filter(Boolean).filter(function(E){return E.contains(x.target)}),S=b.length>0?a(x,b[0]):!o.current.noIsolation;S&&x.cancelable&&x.preventDefault()}}},[]),u=w.useCallback(function(m,x,v,y){var b={name:m,delta:x,target:v,should:y,shadowParent:bue(v)};e.current.push(b),setTimeout(function(){e.current=e.current.filter(function(S){return S!==b})},1)},[]),d=w.useCallback(function(m){r.current=wm(m),n.current=void 0},[]),f=w.useCallback(function(m){u(m.type,eA(m),m.target,a(m,t.lockRef.current))},[]),h=w.useCallback(function(m){u(m.type,wm(m),m.target,a(m,t.lockRef.current))},[]);w.useEffect(function(){return Wc.push(i),t.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:h}),document.addEventListener("wheel",l,Vc),document.addEventListener("touchmove",l,Vc),document.addEventListener("touchstart",d,Vc),function(){Wc=Wc.filter(function(m){return m!==i}),document.removeEventListener("wheel",l,Vc),document.removeEventListener("touchmove",l,Vc),document.removeEventListener("touchstart",d,Vc)}},[]);var p=t.removeScrollBar,g=t.inert;return w.createElement(w.Fragment,null,g?w.createElement(i,{styles:vue(s)}):null,p?w.createElement(cue,{noRelative:t.noRelative,gapMode:t.gapMode}):null)}function bue(t){for(var e=null;t!==null;)t instanceof ShadowRoot&&(e=t.host,t=t.host),t=t.parentNode;return e}const Sue=Yce(oL,wue);var hv=w.forwardRef(function(t,e){return w.createElement(fv,Qi({},t,{ref:e,sideCar:Sue}))});hv.classNames=fv.classNames;var _ue=[" ","Enter","ArrowUp","ArrowDown"],Eue=[" ","Enter"],fc="Select",[pv,mv,Tue]=Yh(fc),[Pd,_pe]=Rs(fc,[Tue,Ed]),gv=Ed(),[Cue,pl]=Pd(fc),[kue,Nue]=Pd(fc),dL=t=>{const{__scopeSelect:e,children:r,open:n,defaultOpen:s,onOpenChange:i,value:o,defaultValue:a,onValueChange:l,dir:u,name:d,autoComplete:f,disabled:h,required:p,form:g}=t,m=gv(e),[x,v]=w.useState(null),[y,b]=w.useState(null),[S,E]=w.useState(!1),C=sp(u),[_,A]=so({prop:n,defaultProp:s??!1,onChange:i,caller:fc}),[N,D]=so({prop:o,defaultProp:a,onChange:l,caller:fc}),V=w.useRef(null),H=x?g||!!x.closest("form"):!0,[U,K]=w.useState(new Set),te=Array.from(U).map(se=>se.props.value).join(";");return c.jsx(gO,{...m,children:c.jsxs(Cue,{required:p,scope:e,trigger:x,onTriggerChange:v,valueNode:y,onValueNodeChange:b,valueNodeHasChildren:S,onValueNodeHasChildrenChange:E,contentId:Oi(),value:N,onValueChange:D,open:_,onOpenChange:A,dir:C,triggerPointerDownPosRef:V,disabled:h,children:[c.jsx(pv.Provider,{scope:e,children:c.jsx(kue,{scope:t.__scopeSelect,onNativeOptionAdd:w.useCallback(se=>{K(he=>new Set(he).add(se))},[]),onNativeOptionRemove:w.useCallback(se=>{K(he=>{const G=new Set(he);return G.delete(se),G})},[]),children:r})}),H?c.jsxs(IL,{"aria-hidden":!0,required:p,tabIndex:-1,name:d,autoComplete:f,value:N,onChange:se=>D(se.target.value),disabled:h,form:g,children:[N===void 0?c.jsx("option",{value:""}):null,Array.from(U)]},te):null]})})};dL.displayName=fc;var fL="SelectTrigger",hL=w.forwardRef((t,e)=>{const{__scopeSelect:r,disabled:n=!1,...s}=t,i=gv(r),o=pl(fL,r),a=o.disabled||n,l=ot(e,o.onTriggerChange),u=mv(r),d=w.useRef("touch"),[f,h,p]=LL(m=>{const x=u().filter(b=>!b.disabled),v=x.find(b=>b.value===o.value),y=FL(x,m,v);y!==void 0&&o.onValueChange(y.value)}),g=m=>{a||(o.onOpenChange(!0),p()),m&&(o.triggerPointerDownPosRef.current={x:Math.round(m.pageX),y:Math.round(m.pageY)})};return c.jsx(rS,{asChild:!0,...i,children:c.jsx(Ue.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:a,"data-disabled":a?"":void 0,"data-placeholder":DL(o.value)?"":void 0,...s,ref:l,onClick:Ce(s.onClick,m=>
vendor: 16,128 bytes, line 929
929{m.currentTarget.focus(),d.current!=="mouse"&&g(m)}),onPointerDown:Ce(s.onPointerDown,m=>{d.current=m.pointerType;const x=m.target;x.hasPointerCapture(m.pointerId)&&x.releasePointerCapture(m.pointerId),m.button===0&&m.ctrlKey===!1&&m.pointerType==="mouse"&&(g(m),m.preventDefault())}),onKeyDown:Ce(s.onKeyDown,m=>{const x=f.current!=="";!(m.ctrlKey||m.altKey||m.metaKey)&&m.key.length===1&&h(m.key),!(x&&m.key===" ")&&_ue.includes(m.key)&&(g(),m.preventDefault())})})})});hL.displayName=fL;var pL="SelectValue",mL=w.forwardRef((t,e)=>{const{__scopeSelect:r,className:n,style:s,children:i,placeholder:o="",...a}=t,l=pl(pL,r),{onValueNodeHasChildrenChange:u}=l,d=i!==void 0,f=ot(e,l.onValueNodeChange);return zr(()=>{u(d)},[u,d]),c.jsx(Ue.span,{...a,ref:f,style:{pointerEvents:"none"},children:DL(l.value)?c.jsx(c.Fragment,{children:o}):i})});mL.displayName=pL;var Aue="SelectIcon",gL=w.forwardRef((t,e)=>{const{__scopeSelect:r,children:n,...s}=t;return c.jsx(Ue.span,{"aria-hidden":!0,...s,ref:e,children:n||"▼"})});gL.displayName=Aue;var jue="SelectPortal",xL=t=>c.jsx(Jh,{asChild:!0,...t});xL.displayName=jue;var hc="SelectContent",vL=w.forwardRef((t,e)=>{const r=pl(hc,t.__scopeSelect),[n,s]=w.useState();if(zr(()=>{s(new DocumentFragment)},[]),!r.open){const i=n;return i?xc.createPortal(c.jsx(yL,{scope:t.__scopeSelect,children:c.jsx(pv.Slot,{scope:t.__scopeSelect,children:c.jsx("div",{children:t.children})})}),i):null}return c.jsx(wL,{...t,ref:e})});vL.displayName=hc;var gi=10,[yL,ml]=Pd(hc),Rue="SelectContentImpl",Oue=ec("SelectContent.RemoveScroll"),wL=w.forwardRef((t,e)=>{const{__scopeSelect:r,position:n="item-aligned",onCloseAutoFocus:s,onEscapeKeyDown:i,onPointerDownOutside:o,side:a,sideOffset:l,align:u,alignOffset:d,arrowPadding:f,collisionBoundary:h,collisionPadding:p,sticky:g,hideWhenDetached:m,avoidCollisions:x,...v}=t,y=pl(hc,r),[b,S]=w.useState(null),[E,C]=w.useState(null),_=ot(e,X=>S(X)),[A,N]=w.useState(null),[D,V]=w.useState(null),H=mv(r),[U,K]=w.useState(!1),te=w.useRef(!1);w.useEffect(()=>{if(b)return N_(b)},[b]),k_();const se=w.useCallback(X=>{const[ae,...ce]=H().map(je=>je.ref.current),[ne]=ce.slice(-1),Ae=document.activeElement;for(const je of X)if(je===Ae||(je==null||je.scrollIntoView({block:"nearest"}),je===ae&&E&&(E.scrollTop=0),je===ne&&E&&(E.scrollTop=E.scrollHeight),je==null||je.focus(),document.activeElement!==Ae))return},[H,E]),he=w.useCallback(()=>se([A,b]),[se,A,b]);w.useEffect(()=>{U&&he()},[U,he]);const{onOpenChange:G,triggerPointerDownPosRef:O}=y;w.useEffect(()=>{if(b){let X={x:0,y:0};const ae=ne=>{var Ae,je;X={x:Math.abs(Math.round(ne.pageX)-(((Ae=O.current)==null?void 0:Ae.x)??0)),y:Math.abs(Math.round(ne.pageY)-(((je=O.current)==null?void 0:je.y)??0))}},ce=ne=>{X.x<=10&&X.y<=10?ne.preventDefault():b.contains(ne.target)||G(!1),document.removeEventListener("pointermove",ae),O.current=null};return O.current!==null&&(document.addEventListener("pointermove",ae),document.addEventListener("pointerup",ce,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",ae),document.removeEventListener("pointerup",ce,{capture:!0})}}},[b,G,O]),w.useEffect(()=>{const X=()=>G(!1);return window.addEventListener("blur",X),window.addEventListener("resize",X),()=>{window.removeEventListener("blur",X),window.removeEventListener("resize",X)}},[G]);const[W,ee]=LL(X=>{const ae=H().filter(Ae=>!Ae.disabled),ce=ae.find(Ae=>Ae.ref.current===document.activeElement),ne=FL(ae,X,ce);ne&&setTimeout(()=>ne.ref.current.focus())}),k=w.useCallback((X,ae,ce)=>{const ne=!te.current&&!ce;(y.value!==void 0&&y.value===ae||ne)&&(N(X),ne&&(te.current=!0))},[y.value]),z=w.useCallback(()=>b==null?void 0:b.focus(),[b]),I=w.useCallback((X,ae,ce)=>{const ne=!te.current&&!ce;(y.value!==void 0&&y.value===ae||ne)&&V(X)},[y.value]),B=n==="popper"?kb:bL,q=B===kb?{side:a,sideOffset:l,align:u,alignOffset:d,arrowPadding:f,collisionBoundary:h,collisionPadding:p,sticky:g,hideWhenDetached:m,avoidCollisions:x}:{};return c.jsx(yL,{scope:r,content:b,viewport:E,onViewportChange:C,itemRefCallback:k,selectedItem:A,onItemLeave:z,itemTextRefCallback:I,focusSelectedItem:he,selectedItemText:D,position:n,isPositioned:U,searchRef:W,children:c.jsx(hv,{as:Oue,allowPinchZoom:!0,children:c.jsx(dv,{asChild:!0,trapped:y.open,onMountAutoFocus:X=>{X.preventDefault()},onUnmountAutoFocus:Ce(s,X=>{var ae;(ae=y.trigger)==null||ae.focus({preventScroll:!0}),X.preventDefault()}),children:c.jsx(yd,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:i,onPointerDownOutside:o,onFocusOutside:X=>X.preventDefault(),onDismiss:()=>y.onOpenChange(!1),children:c.jsx(B,{role:"listbox",id:y.contentId,"data-state":y.open?"open":"closed",dir:y.dir,onContextMenu:X=>X.preventDefault(),...v,...q,onPlaced:()=>K(!0),ref:_,style:{display:"flex",flexDirection:"column",outline:"none",...v.style},onKeyDown:Ce(v.onKeyDown,X=>{const ae=X.ctrlKey||X.altKey||X.metaKey;if(X.key==="Tab"&&X.preventDefault(),!ae&&X.key.length===1&&ee(X.key),["ArrowUp","ArrowDown","Home","End"].includes(X.key)){let ne=H().filter(Ae=>!Ae.disabled).map(Ae=>Ae.ref.current);if(["ArrowUp","End"].includes(X.key)&&(ne=ne.slice().reverse()),["ArrowUp","ArrowDown"].includes(X.key)){const Ae=X.target,je=ne.indexOf(Ae);ne=ne.slice(je+1)}setTimeout(()=>se(ne)),X.preventDefault()}})})})})})})});wL.displayName=Rue;var Pue="SelectItemAlignedPosition",bL=w.forwardRef((t,e)=>{const{__scopeSelect:r,onPlaced:n,...s}=t,i=pl(hc,r),o=ml(hc,r),[a,l]=w.useState(null),[u,d]=w.useState(null),f=ot(e,_=>d(_)),h=mv(r),p=w.useRef(!1),g=w.useRef(!0),{viewport:m,selectedItem:x,selectedItemText:v,focusSelectedItem:y}=o,b=w.useCallback(()=>{if(i.trigger&&i.valueNode&&a&&u&&m&&x&&v){const _=i.trigger.getBoundingClientRect(),A=u.getBoundingClientRect(),N=i.valueNode.getBoundingClientRect(),D=v.getBoundingClientRect();if(i.dir!=="rtl"){const Ae=D.left-A.left,je=N.left-Ae,Xe=_.left-je,Ve=_.width+Xe,re=Math.max(Ve,A.width),Se=window.innerWidth-gi,ve=Tb(je,[gi,Math.max(gi,Se-re)]);a.style.minWidth=Ve+"px",a.style.left=ve+"px"}else{const Ae=A.right-D.right,je=window.innerWidth-N.right-Ae,Xe=window.innerWidth-_.right-je,Ve=_.width+Xe,re=Math.max(Ve,A.width),Se=window.innerWidth-gi,ve=Tb(je,[gi,Math.max(gi,Se-re)]);a.style.minWidth=Ve+"px",a.style.right=ve+"px"}const V=h(),H=window.innerHeight-gi*2,U=m.scrollHeight,K=window.getComputedStyle(u),te=parseInt(K.borderTopWidth,10),se=parseInt(K.paddingTop,10),he=parseInt(K.borderBottomWidth,10),G=parseInt(K.paddingBottom,10),O=te+se+U+G+he,W=Math.min(x.offsetHeight*5,O),ee=window.getComputedStyle(m),k=parseInt(ee.paddingTop,10),z=parseInt(ee.paddingBottom,10),I=_.top+_.height/2-gi,B=H-I,q=x.offsetHeight/2,X=x.offsetTop+q,ae=te+se+X,ce=O-ae;if(ae<=I){const Ae=V.length>0&&x===V[V.length-1].ref.current;a.style.bottom="0px";const je=u.clientHeight-m.offsetTop-m.offsetHeight,Xe=Math.max(B,q+(Ae?z:0)+je+he),Ve=ae+Xe;a.style.height=Ve+"px"}else{const Ae=V.length>0&&x===V[0].ref.current;a.style.top="0px";const Xe=Math.max(I,te+m.offsetTop+(Ae?k:0)+q)+ce;a.style.height=Xe+"px",m.scrollTop=ae-I+m.offsetTop}a.style.margin=`${gi}px 0`,a.style.minHeight=W+"px",a.style.maxHeight=H+"px",n==null||n(),requestAnimationFrame(()=>p.current=!0)}},[h,i.trigger,i.valueNode,a,u,m,x,v,i.dir,n]);zr(()=>b(),[b]);const[S,E]=w.useState();zr(()=>{u&&E(window.getComputedStyle(u).zIndex)},[u]);const C=w.useCallback(_=>{_&&g.current===!0&&(b(),y==null||y(),g.current=!1)},[b,y]);return c.jsx(Iue,{scope:r,contentWrapper:a,shouldExpandOnScrollRef:p,onScrollButtonChange:C,children:c.jsx("div",{ref:l,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:S},children:c.jsx(Ue.div,{...s,ref:f,style:{boxSizing:"border-box",maxHeight:"100%",...s.style}})})})});bL.displayName=Pue;var Mue="SelectPopperPosition",kb=w.forwardRef((t,e)=>{const{__scopeSelect:r,align:n="start",collisionPadding:s=gi,...i}=t,o=gv(r);return c.jsx(nS,{...o,...i,ref:e,align:n,collisionPadding:s,style:{boxSizing:"border-box",...i.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)"}})});kb.displayName=Mue;var[Iue,A_]=Pd(hc,{}),Nb="SelectViewport",SL=w.forwardRef((t,e)=>{const{__scopeSelect:r,nonce:n,...s}=t,i=ml(Nb,r),o=A_(Nb,r),a=ot(e,i.onViewportChange),l=w.useRef(0);return c.jsxs(c.Fragment,{children:[c.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:n}),c.jsx(pv.Slot,{scope:r,children:c.jsx(Ue.div,{"data-radix-select-viewport":"",role:"presentation",...s,ref:a,style:{position:"relative",flex:1,overflow:"hidden auto",...s.style},onScroll:Ce(s.onScroll,u=>{const d=u.currentTarget,{contentWrapper:f,shouldExpandOnScrollRef:h}=o;if(h!=null&&h.current&&f){const p=Math.abs(l.current-d.scrollTop);if(p>0){const g=window.innerHeight-gi*2,m=parseFloat(f.style.minHeight),x=parseFloat(f.style.height),v=Math.max(m,x);if(v<g){const y=v+p,b=Math.min(g,y),S=y-b;f.style.height=b+"px",f.style.bottom==="0px"&&(d.scrollTop=S>0?S:0,f.style.justifyContent="flex-end")}}}l.current=d.scrollTop})})})]})});SL.displayName=Nb;var _L="SelectGroup",[Due,Lue]=Pd(_L),Fue=w.forwardRef((t,e)=>{const{__scopeSelect:r,...n}=t,s=Oi();return c.jsx(Due,{scope:r,id:s,children:c.jsx(Ue.div,{role:"group","aria-labelledby":s,...n,ref:e})})});Fue.displayName=_L;var EL="SelectLabel",TL=w.forwardRef((t,e)=>{const{__scopeSelect:r,...n}=t,s=Lue(EL,r);return c.jsx(Ue.div,{id:s.id,...n,ref:e})});TL.displayName=EL;var Bg="SelectItem",[Bue,CL]=Pd(Bg),kL=w.forwardRef((t,e)=>{const{__scopeSelect:r,value:n,disabled:s=!1,textValue:i,...o}=t,a=pl(Bg,r),l=ml(Bg,r),u=a.value===n,[d,f]=w.useState(i??""),[h,p]=w.useState(!1),g=ot(e,y=>{var b;return(b=l.itemRefCallback)==null?void 0:b.call(l,y,n,s)}),m=Oi(),x=w.useRef("touch"),v=()=>{s||(a.onValueChange(n),a.onOpenChange(!1))};if(n==="")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 c.jsx(Bue,{scope:r,value:n,disabled:s,textId:m,isSelected:u,onItemTextChange:w.useCallback(y=>{f(b=>b||((y==null?void 0:y.textContent)??"").trim())},[]),children:c.jsx(pv.ItemSlot,{scope:r,value:n,disabled:s,textValue:d,children:c.jsx(Ue.div,{role:"option","aria-labelledby":m,"data-highlighted":h?"":void 0,"aria-selected":u&&h,"data-state":u?"checked":"unchecked","aria-disabled":s||void 0,"data-disabled":s?"":void 0,tabIndex:s?void 0:-1,...o,ref:g,onFocus:Ce(o.onFocus,()=>p(!0)),onBlur:Ce(o.onBlur,()=>p(!1)),onClick:Ce(o.onClick,()=>{x.current!=="mouse"&&v()}),onPointerUp:Ce(o.onPointerUp,()=>{x.current==="mouse"&&v()}),onPointerDown:Ce(o.onPointerDown,y=>{x.current=y.pointerType}),onPointerMove:Ce(o.onPointerMove,y=>{var b;x.current=y.pointerType,s?(b=l.onItemLeave)==null||b.call(l):x.current==="mouse"&&y.currentTarget.focus({preventScroll:!0})}),onPointerLeave:Ce(o.onPointerLeave,y=>{var b;y.currentTarget===document.activeElement&&((b=l.onItemLeave)==null||b.call(l))}),onKeyDown:Ce(o.onKeyDown,y=>{var S;((S=l.searchRef)==null?void 0:S.current)!==""&&y.key===" "||(Eue.includes(y.key)&&v(),y.key===" "&&y.preventDefault())})})})})});kL.displayName=Bg;var pf="SelectItemText",NL=w.forwardRef((t,e)=>{const{__scopeSelect:r,className:n,style:s,...i}=t,o=pl(pf,r),a=ml(pf,r),l=CL(pf,r),u=Nue(pf,r),[d,f]=w.useState(null),h=ot(e,v=>f(v),l.onItemTextChange,v=>{var y;return(y=a.itemTextRefCallback)==null?void 0:y.call(a,v,l.value,l.disabled)}),p=d==null?void 0:d.textContent,g=w.useMemo(()=>c.jsx("option",{value:l.value,disabled:l.disabled,children:p},l.value),[l.disabled,l.value,p]),{onNativeOptionAdd:m,onNativeOptionRemove:x}=u;return zr(()=>(m(g),()=>x(g)),[m,x,g]),c.jsxs(c.Fragment,{children:[c.jsx(Ue.span,{id:l.textId,...i,ref:h}),l.isSelected&&o.valueNode&&!o.valueNodeHasChildren?xc.createPortal(i.children,o.valueNode):null]})});NL.displayName=pf;var AL="SelectItemIndicator",jL=w.forwardRef((t,e)=>{const{__scopeSelect:r,...n}=t;return CL(AL,r).isSelected?c.jsx(Ue.span,{"aria-hidden":!0,...n,ref:e}):null});jL.displayName=AL;var Ab="SelectScrollUpButton",RL=w.forwardRef((t,e)=>{const r=ml(Ab,t.__scopeSelect),n=A_(Ab,t.__scopeSelect),[s,i]=w.useState(!1),o=ot(e,n.onScrollButtonChange);return zr(()=>{if(r.viewport&&r.isPositioned){let a=function(){const u=l.scrollTop>0;i(u)};const l=r.viewport;return a(),l.addEventListener("scroll",a),()=>l.removeEventListener("scroll",a)}},[r.viewport,r.isPositioned]),s?c.jsx(PL,{...t,ref:o,onAutoScroll:()=>{const{viewport:a,selectedItem:l}=r;a&&l&&(a.scrollTop=a.scrollTop-l.offsetHeight)}}):null});RL.displayName=Ab;var jb="SelectScrollDownButton",OL=w.forwardRef((t,e)=>{const r=ml(jb,t.__scopeSelect),n=A_(jb,t.__scopeSelect),[s,i]=w.useState(!1),o=ot(e,n.onScrollButtonChange);return zr(()=>{if(r.viewport&&r.isPositioned){let a=function(){const u=l.scrollHeight-l.clientHeight,d=Math.ceil(l.scrollTop)<u;i(d)};const l=r.viewport;return a(),l.addEventListener("scroll",a),()=>l.removeEventListener("scroll",a)}},[r.viewport,r.isPositioned]),s?c.jsx(PL,{...t,ref:o,onAutoScroll:()=>{const{viewport:a,selectedItem:l}=r;a&&l&&(a.scrollTop=a.scrollTop+l.offsetHeight)}}):null});OL.displayName=jb;var PL=w.forwardRef((t,e)=>{const{__scopeSelect:r,onAutoScroll:n,...s}=t,i=ml("SelectScrollButton",r),o=w.useRef(null),a=mv(r),l=w.useCallback(()=>{o.current!==null&&(window.clearInterval(o.current),o.current=null)},[]);return w.useEffect(()=>()=>l(),[l]),zr(()=>{var d;const u=a().find(f=>f.ref.current===document.activeElement);(d=u==null?void 0:u.ref.current)==null||d.scrollIntoView({block:"nearest"})},[a]),c.jsx(Ue.div,{"aria-hidden":!0,...s,ref:e,style:{flexShrink:0,...s.style},onPointerDown:Ce(s.onPointerDown,()=>{o.current===null&&(o.current=window.setInterval(n,50))}),onPointerMove:Ce(s.onPointerMove,()=>{var u;(u=i.onItemLeave)==null||u.call(i),o.current===null&&(o.current=window.setInterval(n,50))}),onPointerLeave:Ce(s.onPointerLeave,()=>{l()})})}),$ue="SelectSeparator",ML=w.forwardRef((t,e)=>{const{__scopeSelect:r,...n}=t;return c.jsx(Ue.div,{"aria-hidden":!0,...n,ref:e})});ML.displayName=$ue;var Rb="SelectArrow",zue=w.forwardRef((t,e)=>{const{__scopeSelect:r,...n}=t,s=gv(r),i=pl(Rb,r),o=ml(Rb,r);return i.open&&o.position==="popper"?c.jsx(sS,{...s,...n,ref:e}):null});zue.displayName=Rb;var Uue="SelectBubbleInput",IL=w.forwardRef(({__scopeSelect:t,value:e,...r},n)=>{const s=w.useRef(null),i=ot(n,s),o=rL(e);return w.useEffect(()=>{const a=s.current;if(!a)return;const l=window.HTMLSelectElement.prototype,d=Object.getOwnPropertyDescriptor(l,"value").set;if(o!==e&&d){const f=new Event("change",{bubbles:!0});d.call(a,e),a.dispatchEvent(f)}},[o,e]),c.jsx(Ue.select,{...r,style:{...K4,...r.style},ref:i,defaultValue:e})});IL.displayName=Uue;function DL(t){return t===""||t===void 0}function LL(t){const e=br(t),r=w.useRef(""),n=w.useRef(0),s=w.useCallback(o=>{const a=r.current+o;e(a),function l(u){r.current=u,window.clearTimeout(n.current),u!==""&&(n.current=window.setTimeout(()=>l(""),1e3))}(a)},[e]),i=w.useCallback(()=>{r.current="",window.clearTimeout(n.current)},[]);return w.useEffect(()=>()=>window.clearTimeout(n.current),[]),[r,s,i]}function FL(t,e,r){const s=e.length>1&&Array.from(e).every(u=>u===e[0])?e[0]:e,i=r?t.indexOf(r):-1;let o=Hue(t,Math.max(i,0));s.length===1&&(o=o.filter(u=>u!==r));const l=o.find(u=>u.textValue.toLowerCase().startsWith(s.toLowerCase()));return l!==r?l:void 0}function Hue(t,e){return t.map((r,n)=>t[(e+n)%t.length])}var Vue=dL,BL=hL,Wue=mL,que=gL,Gue=xL,$L=vL,Kue=SL,zL=TL,UL=kL,Xue=NL,Yue=jL,HL=RL,VL=OL,WL=ML;const $g=Vue,zg=Wue,Bh=w.forwardRef(({className:t,children:e,...r},n)=>c.jsxs(BL,{ref:n,className:Ke("flex h-10 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm r
929ing-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",t),...r,children:[e,c.jsx(que,{asChild:!0,children:c.jsx(Zh,{className:"h-4 w-4 opacity-50"})})]}));Bh.displayName=BL.displayName;const qL=w.forwardRef(({className:t,...e},r)=>c.jsx(HL,{ref:r,className:Ke("flex cursor-default items-center justify-center py-1",t),...e,children:c.jsx(SR,{className:"h-4 w-4"})}));qL.displayName=HL.displayName;const GL=w.forwardRef(({className:t,...e},r)=>c.jsx(VL,{ref:r,className:Ke("flex cursor-default items-center justify-center py-1",t),...e,children:c.jsx(Zh,{className:"h-4 w-4"})}));GL.displayName=VL.displayName;const $h=w.forwardRef(({className:t,children:e,position:r="popper",...n},s)=>c.jsx(Gue,{children:c.jsxs($L,{ref:s,className:Ke("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",r==="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",t),position:r,...n,children:[c.jsx(qL,{}),c.jsx(Kue,{className:Ke("p-1",r==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:e}),c.jsx(GL,{})]})}));$h.displayName=$L.displayName;const Jue=w.forwardRef(({className:t,...e},r)=>c.jsx(zL,{ref:r,className:Ke("py-1.5 pl-8 pr-2 text-sm font-semibold",t),...e}));Jue.displayName=zL.displayName;const Gs=w.forwardRef(({className:t,children:e,...r},n)=>c.jsxs(UL,{ref:n,className:Ke("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t),...r,children:[c.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:c.jsx(Yue,{children:c.jsx(px,{className:"h-4 w-4"})})}),c.jsx(Xue,{children:e})]}));Gs.displayName=UL.displayName;const Que=w.forwardRef(({className:t,...e},r)=>c.jsx(WL,{ref:r,className:Ke("-mx-1 my-1 h-px bg-muted",t),...e}));Que.displayName=WL.displayName;var xv="Dialog",[KL,Epe]=Rs(xv),[Zue,Fi]=KL(xv),XL=t=>{const{__scopeDialog:e,children:r,open:n,defaultOpen:s,onOpenChange:i,modal:o=!0}=t,a=w.useRef(null),l=w.useRef(null),[u,d]=so({prop:n,defaultProp:s??!1,onChange:i,caller:xv});return c.jsx(Zue,{scope:e,triggerRef:a,contentRef:l,contentId:Oi(),titleId:Oi(),descriptionId:Oi(),open:u,onOpenChange:d,onOpenToggle:w.useCallback(()=>d(f=>!f),[d]),modal:o,children:r})};XL.displayName=xv;var YL="DialogTrigger",JL=w.forwardRef((t,e)=>{const{__scopeDialog:r,...n}=t,s=Fi(YL,r),i=ot(e,s.triggerRef);return c.jsx(Ue.button,{type:"button","aria-haspopup":"dialog","aria-expanded":s.open,"aria-controls":s.contentId,"data-state":O_(s.open),...n,ref:i,onClick:Ce(t.onClick,s.onOpenToggle)})});JL.displayName=YL;var j_="DialogPortal",[ede,QL]=KL(j_,{forceMount:void 0}),ZL=t=>{const{__scopeDialog:e,forceMount:r,children:n,container:s}=t,i=Fi(j_,e);return c.jsx(ede,{scope:e,forceMount:r,children:w.Children.map(n,o=>c.jsx(Nn,{present:r||i.open,children:c.jsx(Jh,{asChild:!0,container:s,children:o})}))})};ZL.displayName=j_;var Ug="DialogOverlay",eF=w.forwardRef((t,e)=>{const r=QL(Ug,t.__scopeDialog),{forceMount:n=r.forceMount,...s}=t,i=Fi(Ug,t.__scopeDialog);return i.modal?c.jsx(Nn,{present:n||i.open,children:c.jsx(rde,{...s,ref:e})}):null});eF.displayName=Ug;var tde=ec("DialogOverlay.RemoveScroll"),rde=w.forwardRef((t,e)=>{const{__scopeDialog:r,...n}=t,s=Fi(Ug,r);return c.jsx(hv,{as:tde,allowPinchZoom:!0,shards:[s.contentRef],children:c.jsx(Ue.div,{"data-state":O_(s.open),...n,ref:e,style:{pointerEvents:"auto",...n.style}})})}),pc="DialogContent",tF=w.forwardRef((t,e)=>{const r=QL(pc,t.__scopeDialog),{forceMount:n=r.forceMount,...s}=t,i=Fi(pc,t.__scopeDialog);return c.jsx(Nn,{present:n||i.open,children:i.modal?c.jsx(nde,{...s,ref:e}):c.jsx(sde,{...s,ref:e})})});tF.displayName=pc;var nde=w.forwardRef((t,e)=>{const r=Fi(pc,t.__scopeDialog),n=w.useRef(null),s=ot(e,r.contentRef,n);return w.useEffect(()=>{const i=n.current;if(i)return N_(i)},[]),c.jsx(rF,{...t,ref:s,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Ce(t.onCloseAutoFocus,i=>{var o;i.preventDefault(),(o=r.triggerRef.current)==null||o.focus()}),onPointerDownOutside:Ce(t.onPointerDownOutside,i=>{const o=i.detail.originalEvent,a=o.button===0&&o.ctrlKey===!0;(o.button===2||a)&&i.preventDefault()}),onFocusOutside:Ce(t.onFocusOutside,i=>i.preventDefault())})}),sde=w.forwardRef((t,e)=>{const r=Fi(pc,t.__scopeDialog),n=w.useRef(!1),s=w.useRef(!1);return c.jsx(rF,{...t,ref:e,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var o,a;(o=t.onCloseAutoFocus)==null||o.call(t,i),i.defaultPrevented||(n.current||(a=r.triggerRef.current)==null||a.focus(),i.preventDefault()),n.current=!1,s.current=!1},onInteractOutside:i=>{var l,u;(l=t.onInteractOutside)==null||l.call(t,i),i.defaultPrevented||(n.current=!0,i.detail.originalEvent.type==="pointerdown"&&(s.current=!0));const o=i.target;((u=r.triggerRef.current)==null?void 0:u.contains(o))&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&s.current&&i.preventDefault()}})}),rF=w.forwardRef((t,e)=>{const{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:s,onCloseAutoFocus:i,...o}=t,a=Fi(pc,r),l=w.useRef(null),u=ot(e,l);return k_(),c.jsxs(c.Fragment,{children:[c.jsx(dv,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:s,onUnmountAutoFocus:i,children:c.jsx(yd,{role:"dialog",id:a.contentId,"aria-describedby":a.descriptionId,"aria-labelledby":a.titleId,"data-state":O_(a.open),...o,ref:u,onDismiss:()=>a.onOpenChange(!1)})}),c.jsxs(c.Fragment,{children:[c.jsx(ide,{titleId:a.titleId}),c.jsx(ade,{contentRef:l,descriptionId:a.descriptionId})]})]})}),R_="DialogTitle",nF=w.forwardRef((t,e)=>{const{__scopeDialog:r,...n}=t,s=Fi(R_,r);return c.jsx(Ue.h2,{id:s.titleId,...n,ref:e})});nF.displayName=R_;var sF="DialogDescription",iF=w.forwardRef((t,e)=>{const{__scopeDialog:r,...n}=t,s=Fi(sF,r);return c.jsx(Ue.p,{id:s.descriptionId,...n,ref:e})});iF.displayName=sF;var oF="DialogClose",aF=w.forwardRef((t,e)=>{const{__scopeDialog:r,...n}=t,s=Fi(oF,r);return c.jsx(Ue.button,{type:"button",...n,ref:e,onClick:Ce(t.onClick,()=>s.onOpenChange(!1))})});aF.displayName=oF;function O_(t){return t?"open":"closed"}var lF="DialogTitleWarning",[Tpe,cF]=kB(lF,{contentName:pc,titleName:R_,docsSlug:"dialog"}),ide=({titleId:t})=>{const e=cF(lF),r=`\`${e.contentName}\` requires a \`${e.titleName}\` for the component to be accessible for screen reader users.
930
931If you want to hide the \`${e.titleName}\`, you can wrap it with our VisuallyHidden component.
932
933For more information, see https://radix-ui.com/primitives/docs/components/${e.docsSlug}`;return w.useEffect(()=>{t&&(document.getElementById(t)||console.error(r))},[r,t]),null},ode="DialogDescriptionWarning",ade=({contentRef:t,descriptionId:e})=>{const n=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${cF(ode).contentName}}.`;return w.useEffect(()=>{var i;const s=(i=t.current)==null?void 0:i.getAttribute("aria-describedby");e&&s&&(document.getElementById(e)||console.warn(n))},[n,t,e]),null},lde=XL,cde=JL,ude=ZL,uF=eF,dF=tF,fF=nF,hF=iF,dde=aF;const pF=lde,fde=cde,hde=ude,mF=w.forwardRef(({className:t,...e},r)=>c.jsx(uF,{ref:r,className:Ke("fixed inset-0 z-50 bg-black/80  data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",t),...e}));mF.displayName=uF.displayName;const P_=w.forwardRef(({className:t,children:e,...r},n)=>c.jsxs(hde,{children:[c.jsx(mF,{}),c.jsxs(dF,{ref:n,className:Ke("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
933nded-lg",t),...r,children:[e,c.jsxs(dde,{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:[c.jsx(tc,{className:"h-4 w-4"}),c.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));P_.displayName=dF.displayName;const M_=({className:t,...e})=>c.jsx("div",{className:Ke("flex flex-col space-y-1.5 text-center sm:text-left",t),...e});M_.displayName="DialogHeader";const gF=({className:t,...e})=>c.jsx("div",{className:Ke("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",t),...e});gF.displayName="DialogFooter";const I_=w.forwardRef(({className:t,...e},r)=>c.jsx(fF,{ref:r,className:Ke("text-lg font-semibold leading-none tracking-tight",t),...e}));I_.displayName=fF.displayName;const xF=w.forwardRef(({className:t,...e},r)=>c.jsx(hF,{ref:r,className:Ke("text-sm text-muted-foreground",t),...e}));xF.displayName=hF.displayName;const pde=()=>{const[t,e]=w.useState([]),[r,n]=w.useState(null),[s,i]=w.useState(""),[o,a]=w.useState("all"),[l,u]=w.useState("responded"),[d,f]=w.useState([]),[h,p]=w.useState(!0),[g,m]=w.useState(!1),[x,v]=w.useState(!0),[y,b]=w.useState(!1),{toast:S}=uo(),E=Ax(),C=JSON.parse(localStorage.getItem("admin_session")||"{}");w.useEffect(()=>{if(!C.admin_id){E("/admin-login");return}_()},[]);const _=async()=>{try{const{data:O,error:W}=await _r.rpc("get_admin_contact_submissions",{p_admin_id:C.admin_id});if(W)throw W;const ee=(O||[]).map(k=>({...k,ip_address:k.ip_address||null,user_agent:k.user_agent||null,device_info:k.device_info||null,screen_size:k.screen_size||null,geolocation:k.geolocation||null}));e(ee)}catch(O){console.error("Error fetching submissions:",O),S({variant:"destructive",title:"Erro ao carregar mensagens",description:O.message})}finally{v(!1)}},A=()=>{localStorage.removeItem("admin_session"),E("/admin-login")},N=async()=>{if(!r||!s.trim()){S({variant:"destructive",title:"Erro",description:"Por favor, escreva uma resposta."});return}b(!0);const O=W=>new Promise((ee,k)=>{const z=new FileReader;z.onload=()=>{const I=z.result,B=I.includes(",")?I.split(",")[1]:I;ee(B)},z.onerror=k,z.readAsDataURL(W)});try{let W=null,ee=null;if(d.length>0){const q=d[0],X=`${Date.now()}_${q.name.replace(/[^a-zA-Z0-9.-]/g,"_")}`,{error:ae}=await _r.storage.from("contact-attachments").upload(X,q);ae?console.error("Error uploading response attachment:",ae):(W=X,ee=q.name)}const{error:k}=await _r.rpc("update_admin_contact_response",{p_admin_id:C.admin_id,p_submission_id:r.id,p_response:s.trim(),p_status:"responded",p_response_attachment_url:W,p_response_attachment_name:ee});if(k)throw k;const z=await Promise.all(d.map(async q=>({filename:q.name,content:await O(q),contentType:q.type||void 0}))),{error:I}=await _r.functions.invoke("send-response-email",{body:{to:r.email,name:r.name,protocol:r.protocol,subject:r.subject,response:s.trim(),attachments:z}});I&&(console.error("Error sending email:",I),S({variant:"destructive",title:"Aviso",description:"Resposta salva, mas houve erro ao enviar o e-mail."})),S({title:"Resposta enviada!",description:"A resposta foi registrada e o e-mail foi enviado com sucesso."}),i(""),f([]),u("responded"),_();const B={...r,status:"responded",response:s.trim(),responded_by:C.admin_id,responded_at:new Date().toISOString(),response_attachment_url:W,response_attachment_name:ee};n(B)}catch(W){S({variant:"destructive",title:"Erro ao enviar resposta",description:W.message})}finally{b(!1)}},D=async()=>{if(!(!r||!r.response)){b(!0);try{let O=[];if(r.response_attachment_url&&r.response_attachment_name){const{data:ee,error:k}=await _r.storage.from("contact-attachments").download(r.response_attachment_url);if(!k&&ee){const z=await new Promise((I,B)=>{const q=new FileReader;q.onload=()=>{const X=q.result,ae=X.includes(",")?X.split(",")[1]:X;I(ae)},q.onerror=B,q.readAsDataURL(ee)});O.push({filename:r.response_attachment_name,content:z,contentType:ee.type||void 0})}}const{error:W}=await _r.functions.invoke("send-response-email",{body:{to:r.email,name:r.name,protocol:r.protocol,subject:r.subject,response:r.response,attachments:O.length>0?O:void 0}});if(W)throw W;S({title:"E-mail reenviado",description:`E-mail com resposta reenviado para ${r.email}`})}catch(O){S({variant:"destructive",title:"Erro ao reenviar",description:O.message})}finally{b(!1)}}},V=O=>{O.target.files&&f([...d,...Array.from(O.target.files)])},H=(O,W)=>{const ee=O.replace(/\D/g,""),k=encodeURIComponent(W);return`https://wa.me/55${ee}?text=${k}`},U=t.filter(O=>o==="all"||O.status===o),K=h?U.reduce((O,W)=>{const ee=W.email;return O[ee]||(O[ee]=[]),O[ee].push(W),O},{}):{all:U},te=O=>
933{switch(O){case"pending":return"bg-yellow-100 text-yellow-800 border-yellow-200";case"responded":return"bg-green-100 text-green-800 border-green-200";default:return"bg-gray-100 text-gray-800 border-gray-200"}},se=O=>{switch(O){case"pending":return c.jsx(R7,{className:"w-3 h-3"});case"responded":return c.jsx(uw,{className:"w-3 h-3"});default:return c.jsx(uh,{className:"w-3 h-3"})}},he=O=>{switch(O){case"pending":return"Pendente";case"responded":return"Respondida";default:return"Desconhecida"}},G=()=>{const O=t.map(z=>({Protocolo:z.protocol,Nome:z.name,Email:z.email,Telefone:z.phone,Assunto:z.subject,Mensagem:z.message,Status:he(z.status),Resposta:z.response||"-","Data Criação":new Date(z.created_at).toLocaleString("pt-BR"),"Data Resposta":z.responded_at?new Date(z.responded_at).toLocaleString("pt-BR"):"-",Anexo:z.attachment_name||"-"})),W=Z1.json_to_sheet(O),ee=Z1.book_new();Z1.book_append_sheet(ee,W,"Atendimentos");const k=O.reduce((z,I)=>{var B;return Math.max(z,((B=I.Mensagem)==null?void 0:B.length)||0)},10);W["!cols"]=[{wch:15},{wch:25},{wch:30},{wch:15},{wch:30},{wch:Math.min(k,50)},{wch:12},{wch:50},{wch:18},{wch:18},{wch:20}],vce(ee,`Atendimentos_CS_Finance_${new Date().toISOString().split("T")[0]}.xlsx`),S({title:"Relatório exportado!",description:"O arquivo Excel foi baixado com sucesso."})};return x?c.jsx("div",{className:"min-h-screen bg-gradient-to-br from-primary/5 via-background to-secondary/5 flex items-center justify-center",children:c.jsxs("div",{className:"flex items-center gap-2 text-muted-foreground",children:[c.jsx(Es,{className:"w-6 h-6 animate-spin"}),"Carregando..."]})}):c.jsxs(c.Fragment,{children:[c.jsxs(Un,{children:[c.jsx("title",{children:"Painel Administrativo - CS Finance"}),c.jsx("meta",{name:"description",content:"Painel de controle administrativo do CS Finance para gerenciar contatos e mensagens."}),c.jsx("meta",{name:"robots",content:"noindex, nofollow"})]}),c.jsxs("div",{className:"min-h-screen bg-gradient-to-br from-primary/5 via-background to-secondary/5",children:[c.jsx("div",{className:"border-b bg-card/80 backdrop-blur-sm",children:c.jsx("div",{className:"container mx-auto px-4 py-4",children:c.jsxs("div",{className:"flex items-center justify-between",children:[c.jsxs("div",{className:"flex items-center gap-3",children:[c.jsx("div",{className:"w-10 h-10 bg-primary/10 rounded-full flex items-center justify-center",children:c.jsx(io,{className:"w-5 h-5 text-primary"})}),c.jsxs("div",{children:[c.jsx("h1",{className:"text-xl font-bold text-foreground",children:"Painel Administrativo"}),c.jsx("p",{className:"text-sm text-muted-foreground",children:C.email})]})]}),c.jsxs("div",{className:"flex gap-2",children:[c.jsxs(fe,{variant:"default",onClick:()=>E("/admin-email"),className:"flex items-center gap-2",children:[c.jsx(Ss,{className:"w-4 h-4"}),"Webmail"]}),c.jsxs(fe,{variant:"outline",onClick:G,className:"flex items-center gap-2",children:[c.jsx(ER,{className:"w-4 h-4"}),"Exportar Excel"]}),c.jsxs(fe,{variant:"outline",onClick:A,className:"flex items-center gap-2",children:[c.jsx(MR,{className:"w-4 h-4"}),"Sair"]})]})]})})}),c.jsx("div",{className:"container mx-auto px-4 py-6",children:c.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-6",children:[c.jsx("div",{className:"lg:col-span-1",children:c.jsxs(Qt,{children:[c.jsxs(vr,{children:[c.jsxs(yr,{className:"flex items-center gap-2",children:[c.jsx(y0,{className:"w-5 h-5"}),"Contatos (",U.length,")"]}),c.jsx(bh,{children:"Mensagens recebidas através do formulário de contato"}),c.jsxs("div",{className:"space-y-2",children:[c.jsxs($g,{value:o,onValueChange:a,children:[c.jsx(Bh,{children:c.jsx(zg,{placeholder:"Filtrar por status"})}),c.jsxs($h,{children:[c.jsx(Gs,{value:"all",children:"Todos"}),c.jsx(Gs,{value:"pending",children:"Pendentes"}),c.jsx(Gs,{value:"responded",children:"Respondidas"})]})]}),c.jsx(fe,{variant:"outline",size:"sm",onClick:()=>p(!h),className:"w-full",children:h?"Ver Lista Normal":"Agrupar por Cliente"})]})]}),c.jsx(hr,{className:"p-0",children:c.jsx("div",{className:"max-h-[600px] overflow-y-auto",children:U.length===0?c.jsxs("div",{className:"p-6 text-center text-muted-foreground",children:[c.jsx(Ss,{className:"w-12 h-12 mx-auto mb-3 opacity-50"}),c.jsx("p",{children:"Nenhuma mensagem encontrada"})]}):h?c.jsx("div",{className:"space-y-1",children:Object.entries(K).map(([O,W])=>c.jsxs("div",{className:"border-b last:border-b-0",children:[c.jsxs("div",{className:"p-3 bg-muted/30 font-medium text-sm flex items-center justify-between",children:[c.jsx("span",{className:"truncate",children:W[0].name}),c.jsx(ys,{variant:"outline",children:W.length})]}),W.map(ee=>c.jsxs("div",{className:`p-4 pl-6 cursor-pointer transition-colors hover:bg-muted/50 border-l-4 ${(r==null?void 0:r.id)===ee.i
933d?"bg-muted border-l-primary":"border-l-transparent"}`,onClick:()=>n(ee),children:[c.jsxs("div",{className:"flex items-start justify-between mb-2",children:[c.jsx("div",{className:"flex-1 min-w-0",children:c.jsx("p",{className:"text-sm text-muted-foreground line-clamp-2",children:ee.subject})}),c.jsxs(ys,{variant:"outline",className:`ml-2 flex items-center gap-1 ${te(ee.status)}`,children:[se(ee.status),he(ee.status)]})]}),c.jsxs("div",{className:"flex items-center justify-between text-xs text-muted-foreground",children:[c.jsxs("span",{children:["#",ee.protocol]}),c.jsx("span",{children:new Date(ee.created_at).toLocaleDateString("pt-BR")})]})]},ee.id))]},O))}):c.jsx("div",{className:"space-y-1",children:U.map(O=>c.jsxs("div",{className:`p-4 cursor-pointer transition-colors hover:bg-muted/50 border-l-4 ${(r==null?void 0:r.id)===O.id?"bg-muted border-l-primary":"border-l-transparent"}`,onClick:()=>n(O),children:[c.jsxs("div",{className:"flex items-start justify-between mb-2",children:[c.jsxs("div",{className:"flex-1 min-w-0",children:[c.jsx("p",{className:"font-medium text-sm truncate",children:O.name}),c.jsx("p",{className:"text-xs text-muted-foreground truncate",children:O.email})]}),c.jsxs(ys,{variant:"outline",className:`ml-2 flex items-center gap-1 ${te(O.status)}`,children:[se(O.status),he(O.status)]})]}),c.jsx("p",{className:"text-sm text-muted-foreground line-clamp-2 mb-2",children:O.subject}),c.jsxs("div",{className:"flex items-center justify-between text-xs text-muted-foreground",children:[c.jsxs("span",{children:["#",O.protocol]}),c.jsx("span",{children:new Date(O.created_at).toLocaleDateString("pt-BR")})]})]},O.id))})})})]})}),c.jsx("div",{className:"lg:col-span-2",children:r?c.jsxs("div",{className:"space-y-6",children:[c.jsxs(Qt,{children:[c.jsx(vr,{children:c.jsxs(yr,{className:"flex items-center gap-2",children:[c.jsx(xT,{className:"w-5 h-5"}),"Detalhes do Contato"]})}),c.jsxs(hr,{className:"space-y-4",children:[c.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[c.jsxs("div",{className:"flex items-center gap-3",children:[c.jsx(xT,{className:"w-4 h-4 text-muted-foreground"}),c.jsxs("div",{children:[c.jsx("p",{className:"text-sm text-muted-foreground",children:"Nome"}),c.jsx("p",{className:"font-medium",children:r.name})]})]}),c.jsxs("div",{className:"flex items-center gap-3",children:[c.jsx(Ss,{className:"w-4 h-4 text-muted-foreground"}),c.jsxs("div",{children:[c.jsx("p",{className:"text-sm text-muted-foreground",children:"E-mail"}),c.jsx("p",{className:"font-medium",children:r.email})]})]}),c.jsxs("div",{className:"flex items-center gap-3",children:[c.jsx(gx,{className:"w-4 h-4 text-muted-foreground"}),c.jsxs("div",{children:[c.jsx("p",{className:"text-sm text-muted-foreground",children:"Telefone"}),c.jsx("p",{className:"font-medium",children:r.phone})]})]}),c.jsxs("div",{className:"flex items-center gap-3",children:[c.jsx(uh,{className:"w-4 h-4 text-muted-foreground"}),c.jsxs("div",{children:[c.jsx("p",{className:"text-sm text-muted-foreground",children:"Protocolo"}),c.jsxs("p",{className:"font-medium",children:["#",r.protocol]})]})]})]}),c.jsxs("div",{className:"flex gap-2",children:[c.jsx(fe,{variant:"outline",size:"sm",asChild:!0,className:"flex-1",children:c.jsxs("a",{href:H(r.phone,`Olá ${r.name}, vi sua solicitação #${r.protocol} sobre "${r.subject}". `),target:"_blank",rel:"noopener noreferrer",children:[c.jsx(Ys,{className:"w-4 h-4 mr-2"}),"WhatsApp"]})}),c.jsxs(pF,{open:g,onOpenChange:m,children:[c.jsx(fde,{asChild:!0,children:c.jsxs(fe,{variant:"outline",size:"sm",className:"flex-1",children:[c.jsx(G7,{className:"w-4 h-4 mr-2"}),"Histórico"]})}),c.jsxs(P_,{children:[c.jsxs(M_,{children:[c.jsx(I_,{children:"Histórico do Cliente"}),c.jsxs(xF,{children:["Todas as solicitações de ",r.name]})]}),c.jsx("div",{className:"space-y-2 max-h-[400px] overflow-y-auto",children:t.filter(O=>O.email===r.email).map(O=>c.jsxs("div",{className:"p-3 border rounded-lg",children:[c.jsxs("div",{className:"flex justify-between items-start mb-2",children:[c.jsx("p",{className:"font-medium text-sm",children:O.subject}),c.jsx(ys,{className:te(O.status),children:he(O.status)})]}),c.jsxs("p",{className:"text-xs text-muted-foreground",children:["#",O.protocol," - ",new Date(O.created_at).toLocaleDateString("pt-BR")]})]},O.id))})]})]})]}),c.jsxs("div",{children:[c.jsx("p",{className:"text-sm text-muted-foreground mb-2",children:"Assu
933nto"}),c.jsx("p",{className:"font-medium",children:r.subject})]}),c.jsxs("div",{children:[c.jsx("p",{className:"text-sm text-muted-foreground mb-2",children:"Mensagem"}),c.jsx("div",{className:"bg-muted/50 p-4 rounded-lg",children:c.jsx("p",{className:"whitespace-pre-wrap",children:r.message})})]}),r.attachment_url&&c.jsxs("div",{children:[c.jsx("p",{className:"text-sm text-muted-foreground mb-2",children:"Anexo da Solicitação"}),c.jsxs(fe,{variant:"outline",size:"sm",onClick:async()=>{try{const{data:O,error:W}=await _r.functions.invoke("get-attachment-url",{body:{fileName:r.attachment_url}});if(W)throw W;if(O!=null&&O.url){const k=await(await fetch(O.url)).blob(),z=URL.createObjectURL(k),I=document.createElement("a");I.href=z,I.download=r.attachment_name||"anexo",document.body.appendChild(I),I.click(),document.body.removeChild(I),URL.revokeObjectURL(z),S({title:"Download iniciado",description:"O anexo está sendo baixado."})}}catch(O){console.error("Error downloading file:",O),S({variant:"destructive",title:"Erro ao baixar",description:O.message})}},children:[c.jsx(Ri,{className:"w-4 h-4 mr-2"}),r.attachment_name]})]}),(r.ip_address||r.device_info||r.screen_size)&&c.jsxs("div",{className:"border-t pt-4",children:[c.jsx("h4",{className:"text-sm font-semibold text-muted-foreground mb-3",children:"Informações do Dispositivo"}),c.jsxs("div",{className:"space-y-2 text-sm",children:[r.ip_address&&c.jsxs("div",{className:"flex items-start gap-2",children:[c.jsx("span",{className:"text-muted-foreground min-w-[80px]",children:"IP:"}),c.jsx("span",{className:"font-mono",children:r.ip_address})]}),r.screen_size&&c.jsxs("div",{className:"flex items-start gap-2",children:[c.jsx("span",{className:"text-muted-foreground min-w-[80px]",children:"Tela:"}),c.jsx("span",{className:"font-mono",children:r.screen_size})]}),r.device_info&&c.jsxs(c.Fragment,{children:[r.device_info.platform&&c.jsxs("div",{className:"flex items-start gap-2",children:[c.jsx("span",{className:"text-muted-foreground min-w-[80px]",children:"Plataforma:"}),c.jsx("span",{children:r.device_info.platform})]}),r.device_info.browser&&c.jsxs("div",{className:"flex items-start gap-2",children:[c.jsx("span",{className:"text-muted-foreground min-w-[80px]",children:"Navegador:"}),c.jsx("span",{className:"capitalize",children:r.device_info.browser})]}),r.device_info.language&&c.jsxs("div",{className:"flex items-start gap-2",children:[c.jsx("span",{className:"text-muted-foreground min-w-[80px]",children:"Idioma:"}),c.jsx("span",{children:r.device_info.language})]}),r.device_info.timezone&&c.jsxs("div",{className:"flex items-start gap-2",children:[c.jsx("span",{className:"text-muted-foreground min-w-[80px]",children:"Fuso:"}),c.jsx("span",{children:r.device_info.timezone})]})]}),r.user_agent&&c.jsxs("div",{className:"flex items-start gap-2",children:[c.jsx("span",{className:"text-muted-foreground min-w-[80px]",children:"User Agent:"}),c.jsx("span",{className:"text-xs break-all",children:r.user_agent})]})]})]}),r.geolocation&&c.jsxs("div",{className:"border-t pt-4",children:[c.jsx("h4",{className:"text-sm font-semibold text-muted-foreground mb-3",children:"Localização"}),c.jsx("div",{className:"space-y-2 text-sm",children:r.geolocation.latitude&&r.geolocation.longitude&&c.jsxs(c.Fragment,{children:[c.jsxs("div",{className:"flex items-start gap-2",children:[c.jsx("span",{className:"text-muted-foreground min-w-[80px]",children:"Latitude:"}),c.jsx("span",{className:"font-mono",children:r.geolocation.latitude})]}),c.jsxs("div",{className:"flex items-start gap-2",children:[c.jsx("span",{className:"text-muted-foreground min-w-[80px]",children:"Longitude:"}),c.jsx("span",{className:"font-mono",children:r.geolocation.longitude})]}),c.jsxs("div",{className:"flex items-start gap-2",children:[c.jsx("span",{className:"text-muted-foreground min-w-[80px]",children:"Mapa:"}),c.jsx("a",{href:`https://www.google.com/maps?q=${r.geolocation.latitude},${r.geolocation.longitude}`,target:"_blank",rel:"noopener noreferrer",className:"text-primary hover:underline",children:"Ver no Google Maps"})]})]})})]})]})]}),c.jsxs(Qt,{children:[c.jsx(vr,{children:c.jsxs(yr,{className:"flex items-center gap-2",children:[c.jsx(Z7,{className:"w-5 h-5"}),"Resposta"]})}),c.jsx(hr,{className:"space-y-4",children:r.response?c.jsxs("div",{className:"space-y-4",children:[c.jsxs("div",{className:"bg-green-50 border border-green-200 p-6 rounded-lg",children:[c.jsxs("div",{className:"flex items-center justify-between mb-4",children:[c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx(uw,{className:"w-5 h-5 text-green-600"}),c.jsx("p",{className:"text-sm font-semibold text-green-900",children:"Resposta Enviada"})]}),c.jsx(ys,{className:"bg-green-100 text-green-800 border-green-200",children:he(r.status)})]}),c.jsxs("div",{className:"space-y-3",children:[c.jsxs("div",{children:[c.jsx("p",{className:"text-xs font-medium text-green-700 mb-1",children:"Data/Hora:"}),c.jsx("p",{className:"text-sm text-green-900",children:new Date(r.responded_at).toLocaleStr
933ing("pt-BR",{dateStyle:"full",timeStyle:"short"})})]}),c.jsxs("div",{children:[c.jsx("p",{className:"text-xs font-medium text-green-700 mb-2",children:"Mensagem Enviada:"}),c.jsx("div",{className:"bg-white p-4 rounded border border-green-200",children:c.jsx("div",{dangerouslySetInnerHTML:{__html:r.response}})})]})]})]}),r.response_attachment_url&&c.jsxs("div",{className:"mt-4",children:[c.jsx("p",{className:"text-xs font-medium text-green-700 mb-2",children:"Anexo da Resposta:"}),c.jsxs(fe,{variant:"outline",size:"sm",onClick:async()=>{try{const{data:O,error:W}=await _r.functions.invoke("get-attachment-url",{body:{fileName:r.response_attachment_url}});if(W)throw W;if(O!=null&&O.url){const k=await(await fetch(O.url)).blob(),z=URL.createObjectURL(k),I=document.createElement("a");I.href=z,I.download=r.response_attachment_name||"anexo-resposta",document.body.appendChild(I),I.click(),document.body.removeChild(I),URL.revokeObjectURL(z),S({title:"Download iniciado",description:"O anexo da resposta está sendo baixado."})}}catch(O){S({variant:"destructive",title:"Erro ao baixar",description:O.message})}},children:[c.jsx(Ri,{className:"w-4 h-4 mr-2"}),r.response_attachment_name]})]}),c.jsxs("div",{className:"mt-4 p-4 bg-blue-50 border border-blue-200 rounded-lg",children:[c.jsx("p",{className:"text-xs font-medium text-blue-700 mb-2",children:"Status do E-mail:"}),c.jsxs("div",{className:"flex items-center justify-between",children:[c.jsxs("div",{className:"flex items-center gap-2 text-sm text-blue-900",children:[c.jsx(y0,{className:"w-4 h-4"}),"E-mail de resposta enviado para ",r.email]}),c.jsxs(fe,{variant:"outline",size:"sm",onClick:D,disabled:y,className:"flex items-center gap-2",children:[y?c.jsx(Es,{className:"w-3 h-3 animate-spin"}):c.jsx(o$,{className:"w-3 h-3"}),"Reenviar"]})]})]})]}):c.jsxs("div",{className:"space-y-4",children:[c.jsxs("div",{children:[c.jsx("label",{className:"text-sm font-medium mb-2 block",children:"Status"}),c.jsxs($g,{value:l,onValueChange:u,children:[c.jsx(Bh,{children:c.jsx(zg,{})}),c.jsxs($h,{children:[c.jsx(Gs,{value:"pending",children:"Pendente"}),c.jsx(Gs,{value:"responded",children:"Respondida"})]})]})]}),c.jsxs("div",{children:[c.jsx("label",{className:"text-sm font-medium mb-2 block",children:"Resposta"}),c.jsx(zte,{content:s,onChange:i})]}),c.jsxs("div",{children:[c.jsx("label",{className:"text-sm font-medium mb-2 block",children:"Anexos"}),c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx(ur,{type:"file",multiple:!0,onChange:V,className:"flex-1",accept:"*/*"}),c.jsx(fe,{variant:"outline",size:"icon",children:c.jsx(Ri,{className:"w-4 h-4"})})]}),d.length>0&&c.jsx("div",{className:"mt-2 space-y-1",children:d.map((O,W)=>c.jsx("p",{className:"text-xs text-muted-foreground",children:O.name},W))})]}),c.jsx(fe,{onClick:N,disabled:y||!s.trim(),className:"flex items-center gap-2 w-full",children:y?c.jsxs(c.Fragment,{children:[c.jsx(Es,{className:"w-4 h-4 animate-spin"}),"Enviando..."]}):c.jsxs(c.Fragment,{children:[c.jsx(vx,{className:"w-4 h-4"}),"Enviar Resposta"]})})]})})]})]}):c.jsx(Qt,{className:"h-[400px] flex items-center justify-center",children:c.jsxs("div",{className:"text-center text-muted-foreground",children:[c.jsx(Ss,{className:"w-16 h-16 mx-auto mb-4 opacity-50"}),c.jsx("p",{className:"text-lg font-medium mb-2",children:"Selecione uma mensagem"}),c.jsx("p",{children:"Clique em uma mensagem da lista para ver os detalhes"})]})})})]})})]})]})};var mde="Label",vF=w.forwardRef((t,e)=>c.jsx(Ue.label,{...t,ref:e,onMouseDown:r=>{var s;r.target.closest("button, input, select, textarea")||((s=t.onMouseDown)==null||s.call(t,r),!r.defaultPrevented&&r.detail>1&&r.preventDefault())}}));vF.displayName=mde;var yF=vF;const gde=fx("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),Yt=w.forwardRef(({className:t,...e},r)=>c.jsx(yF,{ref:r,className:Ke(gde(),t),...e}));Yt.displayName=yF.displayName;var vv="Checkbox",[xde,Cpe]=Rs(vv),[vde,D_]=xde(vv);function yde(t){const{__scopeCheckbox:e,checked:r,children:n,defaultChecked:s,disabled:i,form:o,name:a,onCheckedChange:l,required:u,value:d="on",internal_do_not_use_render:f}=t,[h,p]=so({prop:r,defaultProp:s??!1,onChange:l,caller:vv}),[g,m]=w.useState(null),[x,v]=w.useState(null),y=w.useRef(!1),b=g?!!o||!!g.closest("form"):!0,S={checked:h,disabled:i,setChecked:p,control:g,setControl:m,name:a,form:o,value:d,hasConsumerStoppedPropagationRef:y,required:u,defaultChecked:Xa(s)?!1:s,isFormControl:b,bubbleInput:x,setBubbleInput:v};return c.jsx(vde,{scope:e,...S,children:wde(f)?f(S):n})}var wF="CheckboxTrigger",bF=w.forwardRef(({__scopeCheckbox:t,onKeyDown:e,onClick:r,...n},s)=>{const{control:i,value:o,disabled:a,checked:l,required:u,setControl:d,setChecked:f,hasConsumerStoppedPropagationRef:h,isFormControl:p,bubbleInput:g}=D_(wF,t),m=ot(s,d),x=w.useRef(l);return w.useEffect(()=>{const v=i==null?void 0:i.form;if(v){const y=()=>f(x.current);return v.addEventListener("reset",y),()=>v.removeEventListener("reset",y)}},[i,f]),c.jsx(Ue.button,{type:"button",role:"checkbox","aria-checked":Xa(l)?"mixed":l,"aria-required":u,"data-state":CF(l),"data-disabled":a?"":void 0,disabled:a,value:o,...n,ref:m,onKeyDown:Ce(e,v=>{v.key==="Enter"&&v.preventDefault()}),onClick:Ce(r,v=>{f(y=>Xa(y)?!0:!y),g&&p&&(h.current=v.isPropagationStopped(),h.current||v.stopPropagation())})})});bF.displayName=wF;var L_=w.forwardRef((t,e)=>{const{__scopeCheckbox:r,name:n,checked:s,defaultChecked:i,required:o,disabled:a,value:l,onCheckedChange:u,form:d,...f}=t;return c.jsx(yde,{__scopeCheckbox:r,checked:s,defaultChecked:i,disabled:a,required:o,onCheckedChange:u,name:n,form:d,value:l,internal_do_not_use_render:({isFormControl:h})=>c.jsxs(c.Fragment,{children:[c.jsx(bF,{...f,ref:e,__scopeCheckbox:r}),h&&c.jsx(TF,{__scopeCheckbox:r})]})})});
933L_.displayName=vv;var SF="CheckboxIndicator",_F=w.forwardRef((t,e)=>{const{__scopeCheckbox:r,forceMount:n,...s}=t,i=D_(SF,r);return c.jsx(Nn,{present:n||Xa(i.checked)||i.checked===!0,children:c.jsx(Ue.span,{"data-state":CF(i.checked),"data-disabled":i.disabled?"":void 0,...s,ref:e,style:{pointerEvents:"none",...t.style}})})});_F.displayName=SF;var EF="CheckboxBubbleInput",TF=w.forwardRef(({__scopeCheckbox:t,...e},r)=>{const{control:n,hasConsumerStoppedPropagationRef:s,checked:i,defaultChecked:o,required:a,disabled:l,name:u,value:d,form:f,bubbleInput:h,setBubbleInput:p}=D_(EF,t),g=ot(r,p),m=rL(i),x=oO(n);w.useEffect(()=>{const y=h;if(!y)return;const b=window.HTMLInputElement.prototype,E=Object.getOwnPropertyDescriptor(b,"checked").set,C=!s.current;if(m!==i&&E){const _=new Event("click",{bubbles:C});y.indeterminate=Xa(i),E.call(y,Xa(i)?!1:i),y.dispatchEvent(_)}},[h,m,i,s]);const v=w.useRef(Xa(i)?!1:i);return c.jsx(Ue.input,{type:"checkbox","aria-hidden":!0,defaultChecked:o??v.current,required:a,disabled:l,name:u,value:d,form:f,...e,tabIndex:-1,ref:g,style:{...e.style,...x,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});TF.displayName=EF;function wde(t){return typeof t=="function"}function Xa(t){return t==="indeterminate"}function CF(t){return Xa(t)?"indeterminate":t?"checked":"unchecked"}const kF=w.forwardRef(({className:t,...e},r)=>c.jsx(L_,{ref:r,className:Ke("peer h-4 w-4 shrink-0 rounded-sm border border-primary ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",t),...e,children:c.jsx(_F,{className:Ke("flex items-center justify-center text-current"),children:c.jsx(px,{className:"h-4 w-4"})})}));kF.displayName=L_.displayName;async function rA(){var i;const t=[navigator.userAgent,navigator.language,screen.width+"x"+screen.height,Intl.DateTimeFormat().resolvedOptions().timeZone,((i=navigator.hardwareConcurrency)==null?void 0:i.toString())||""].join("|"),r=new TextEncoder().encode(t),n=await crypto.subtle.digest("SHA-256",r);return Array.from(new Uint8Array(n)).map(o=>o.toString(16).padStart(2,"0")).join("")}function bde(){const t=navigator.userAgent;if(/Mobile|Android/i.test(t))return"Mobile";if(/Tablet|iPad/i.test(t))return"Tablet";const e=/Chrome/.test(t)?"Chrome":/Firefox/.test(t)?"Firefox":/Safari/.test(t)?"Safari":"Browser",r=/Windows/.test(t)?"Windows":/Mac/.test(t)?"Mac":/Linux/.test(t)?"Linux":"Desktop";return`${e} - ${r}`}const Sde=()=>{const[t,e]=w.useState(""),[r,n]=w.useState(""),[s,i]=w.useState(!1),[o,a]=w.useState(!1),[l,u]=w.useState(""),[d,f]=w.useState({num1:0,num2:0,answer:0}),[h,p]=w.useState(!1),[g,m]=w.useState(""),[x,v]=w.useState(""),[y,b]=w.useState(""),[S,E]=w.useState(!0),[C,_]=w.useState(!1),[A,N]=w.useState(!1),[D,V]=w.useState(0),{toast:H}=uo(),U=Ax();w.useEffect(()=>{K()},[]),w.useEffect(()=>{if(D<=0)return;const O=setTimeout(()=>V(W=>W-1),1e3);return()=>clearTimeout(O)},[D]);const K=()=>{const O=Math.floor(Math.random()*10)+1,W=Math.floor(Math.random()*10)+1;f({num1:O,num2:W,answer:O+W}),u("")},te=async O=>{if(O.preventDefault(),!t||!r){H({variant:"destructive",title:"Campos obrigatórios",description:"Por favor, preencha email e senha."});return}if(parseInt(l)!==d.answer){H({variant:"destructive",title:"Captcha incorreto",description:"Por favor, resolva a operação matemática corretamente."}),K();return}a(!0);try{const{data:W,error:ee}=await _r.rpc("admin_login",{p_email:t,p_password:r});if(ee)throw new Error("Erro ao fazer login. Tente novamente.");if(!W||W.length===0)throw new Error("Credenciais inválidas");const k=W[0],z=await rA(),{data:I,error:B}=await _r.functions.invoke("admin-send-otp",{body:{action:"check_device",admin_id:k.id,device_hash:z}});if(B){console.error("2FA check error:",B),G(k);return}const q=(I==null?void 0:I.two_factor_enabled)??!0,X=(I==null?void 0:I.trusted)??!1;if(!q||X){G(k);return}v(k.id),b(k.email),p(!0),await se(k.id,k.email)}catch(W){H({variant:"destructive",title:"Erro no login",description:W.message||"Verifique suas credenciais e tente novamente."})}finally{a(!1)}},se=async(O,W)=>
933{_(!0);try{const{data:ee,error:k}=await _r.functions.invoke("admin-send-otp",{body:{action:"send_otp",admin_id:O,email:W}});if(k||ee!=null&&ee.error)throw new Error((ee==null?void 0:ee.error)||(k==null?void 0:k.message)||"Erro ao enviar código");N(!0),V(60),H({title:"Código enviado!",description:`Um código de 6 dígitos foi enviado para ${W}`})}catch(ee){H({variant:"destructive",title:"Erro",description:ee.message})}finally{_(!1)}},he=async O=>{if(O.preventDefault(),!g||g.length!==6){H({variant:"destructive",title:"Código inválido",description:"Insira o código de 6 dígitos."});return}a(!0);try{const W=await rA(),{data:ee,error:k}=await _r.functions.invoke("admin-send-otp",{body:{action:"verify_otp",admin_id:x,otp_code:g,device_hash:S?W:void 0,device_name:S?bde():void 0}});if(k||ee!=null&&ee.error)throw new Error((ee==null?void 0:ee.error)||(k==null?void 0:k.message)||"Código inválido");G({id:x,email:y})}catch(W){H({variant:"destructive",title:"Verificação falhou",description:W.message})}finally{a(!1)}},G=O=>{localStorage.setItem("admin_session",JSON.stringify({admin_id:O.id,email:O.email,logged_in_at:new Date().toISOString()})),H({title:"Login realizado com sucesso!",description:"Bem-vindo à área administrativa."}),U("/admin")};return h?c.jsxs(c.Fragment,{children:[c.jsxs(Un,{children:[c.jsx("title",{children:"Verificação em Duas Etapas - CS Finance"}),c.jsx("meta",{name:"robots",content:"noindex, nofollow"})]}),c.jsx("div",{className:"min-h-screen bg-gradient-to-br from-primary/5 via-background to-secondary/5 flex items-center justify-center p-4",children:c.jsxs(Qt,{className:"w-full max-w-md 
933shadow-2xl border-0 bg-card/80 backdrop-blur-sm",children:[c.jsxs(vr,{className:"text-center space-y-4",children:[c.jsx("div",{className:"mx-auto w-16 h-16 bg-primary/10 rounded-full flex items-center justify-center",children:c.jsx(U2,{className:"w-8 h-8 text-primary"})}),c.jsxs("div",{children:[c.jsx(yr,{className:"text-2xl font-bold bg-gradient-to-r from-primary to-primary/70 bg-clip-text text-transparent",children:"Verificação em Duas Etapas"}),c.jsxs(bh,{className:"text-muted-foreground",children:["Insira o código de 6 dígitos enviado para",c.jsx("br",{}),c.jsx("strong",{children:y})]})]})]}),c.jsx(hr,{children:c.jsxs("form",{onSubmit:he,className:"space-y-6",children:[c.jsxs("div",{className:"space-y-2",children:[c.jsx(Yt,{htmlFor:"otp",className:"text-sm font-medium",children:"Código de Verificação"}),c.jsx(ur,{id:"otp",type:"text",inputMode:"numeric",maxLength:6,value:g,onChange:O=>m(O.target.value.replace(/\D/g,"").slice(0,6)),placeholder:"000000",className:"h-14 text-center text-2xl tracking-[0.5em] font-mono",autoFocus:!0})]}),c.jsxs("div",{className:"flex items-center space-x-2",children:[c.jsx(kF,{id:"trust",checked:S,onCheckedChange:O=>E(O===!0)}),c.jsx("label",{htmlFor:"trust",className:"text-sm text-muted-foreground cursor-pointer leading-none",children:c.jsxs("div",{className:"flex items-center gap-1.5",children:[c.jsx(wx,{className:"w-3.5 h-3.5"}),"Confiar neste dispositivo por 30 dias"]})})]}),c.jsx(fe,{type:"submit",className:"w-full h-11 font-medium",disabled:o||g.length!==6,children:o?c.jsxs(c.Fragment,{children:[c.jsx(Es,{className:"w-4 h-4 mr-2 animate-spin"})," Verificando..."]}):c.jsxs(c.Fragment,{children:[c.jsx(io,{className:"w-4 h-4 mr-2"})," Verificar e Entrar"]})}),c.jsxs("div",{className:"flex items-center justify-between text-sm",children:[c.jsx(fe,{type:"button",variant:"ghost",size:"sm",onClick:()=>se(x,y),disabled:C||D>0,className:"text-xs",children:C?c.jsxs(c.Fragment,{children:[c.jsx(Es,{className:"w-3 h-3 mr-1 animate-spin"})," Enviando..."]}):D>0?`Reenviar em ${D}s`:"Reenviar código"}),c.jsx(fe,{type:"button",variant:"ghost",size:"sm",onClick:()=>{p(!1),m("")},className:"text-xs",children:"Voltar ao login"})]})]})})]})})]}):c.jsxs(c.Fragment,{children:[c.jsxs(Un,{children:[c.jsx("title",{children:"Login Administrativo - CS Finance"}),c.jsx("meta",{name:"description",content:"Área de login para administradores do CS Finance. Acesso restrito ao sistema de gerenciamento."}),c.jsx("meta",{name:"robots",content:"noindex, nofollow"})]}),c.jsx("div",{className:"min-h-screen bg-gradient-to-br from-primary/5 via-background to-secondary/5 flex items-center justify-center p-4",children:c.jsxs(Qt,{className:"w-full max-w-md 
933shadow-2xl border-0 bg-card/80 backdrop-blur-sm",children:[c.jsxs(vr,{className:"text-center space-y-4",children:[c.jsx("div",{className:"mx-auto w-16 h-16 bg-primary/10 rounded-full flex items-center justify-center",children:c.jsx(io,{className:"w-8 h-8 text-primary"})}),c.jsxs("div",{children:[c.jsx(yr,{className:"text-2xl font-bold bg-gradient-to-r from-primary to-primary/70 bg-clip-text text-transparent",children:"Área Administrativa"}),c.jsx(bh,{className:"text-muted-foreground",children:"Acesso restrito para administradores"})]})]}),c.jsx(hr,{children:c.jsxs("form",{onSubmit:te,className:"space-y-6",children:[c.jsxs("div",{className:"space-y-2",children:[c.jsx(Yt,{htmlFor:"email",className:"text-sm font-medium",children:"E-mail"}),c.jsx(ur,{id:"email",type:"email",value:t,onChange:O=>e(O.target.value),placeholder:"[email protected]",className:"h-11",required:!0})]}),c.jsxs("div",{className:"space-y-2",children:[c.jsx(Yt,{htmlFor:"password",className:"text-sm font-medium",children:"Senha"}),c.jsxs("div",{className:"relative",children:[c.jsx(ur,{id:"password",type:s?"text":"password",value:r,onChange:O=>n(O.target.value),placeholder:"••••••••",className:"h-11 pr-10",required:!0}),c.jsx(fe,{type:"button",variant:"ghost",size:"sm",className:"absolute right-0 top-0 h-11 px-3 hover:bg-transparent",onClick:()=>i(!s),children:s?c.jsx(D7,{className:"w-4 h-4"}):c.jsx(L7,{className:"w-4 h-4"})})]})]}),c.jsxs("div",{className:"space-y-2",children:[c.jsx(Yt,{htmlFor:"captcha",className:"text-sm font-medium",children:"Verificação de Segurança"}),c.jsxs("div",{className:"flex items-center gap-3",children:[c.jsxs("div",{className:"flex-1 p-3 bg-muted rounded-lg text-center font-mono text-lg font-semibold",children:[d.num1," + ",d.num2," = ?"]}),c.jsx(ur,{id:"captcha",type:"number",value:l,onChange:O=>u(O.target.value),placeholder:"?",className:"h-11 w-20 text-center",required:!0}),c.jsx(fe,{type:"button",variant:"outline",size:"icon",onClick:K,className:"h-11",title:"Gerar nova pergunta",children:"↻"})]})]}),c.jsx(fe,{type:"submit",className:"w-full h-11 bg-primary hover:bg-primary/90 text-primary-foreground font-medium",disabled:o,children:o?c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx(Es,{className:"w-4 h-4 animate-spin"}),"Entrando..."]}):c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx(H2,{className:"w-4 h-4"}),"Entrar"]})}),c.jsx("p",{className:"text-center text-xs text-muted-foreground mt-4",children:"Para redefinir a senha, entre em contato com o administrador do sistema."})]})})]})})]})},_de=({onUnlock:t})=>{const[e,r]=w.useState(""),[n,s]=w.useState(!1),{toast:i}=uo(),o=JSON.parse(localStorage.getItem("admin_session")||"{}"),a=async l=>{if(l.preventDefault(),!!e){s(!0);try{const{data:u,error:d}=await _r.rpc("admin_login",{p_email:o.email,p_password:e});if(d||!u||u.length===0)throw new Error("Senha incorreta");localStorage.setItem("email_session_at",new Date().toISOString()),t()}catch(u){i({variant:"destructive",title:"Acesso negado",description:u.message||"Senha incorreta."})}finally{s(!1),r("")}}};return c.jsx("div",{className:"min-h-screen bg-gradient-to-br from-primary/5 via-background to-secondary/5 flex items-center justify-center p-4",children:c.jsxs(Qt,{className:"w-full max-w-md 
933shadow-2xl border-0 bg-card/80 backdrop-blur-sm",children:[c.jsxs(vr,{className:"text-center space-y-4",children:[c.jsx("div",{className:"mx-auto w-16 h-16 bg-primary/10 rounded-full flex items-center justify-center",children:c.jsx(io,{className:"w-8 h-8 text-primary"})}),c.jsxs("div",{children:[c.jsx(yr,{className:"text-xl font-bold",children:"Módulo de Email"}),c.jsx(bh,{children:"Confirme sua senha para acessar o webmail"})]})]}),c.jsx(hr,{children:c.jsxs("form",{onSubmit:a,className:"space-y-4",children:[c.jsxs("div",{className:"text-sm text-muted-foreground text-center mb-2",children:["Logado como: ",c.jsx("strong",{children:o.email})]}),c.jsx(ur,{type:"password",placeholder:"Sua senha de administrador",value:e,onChange:l=>r(l.target.value),className:"h-11",autoFocus:!0}),c.jsx(fe,{type:"submit",className:"w-full h-11",disabled:n,children:n?c.jsxs(c.Fragment,{children:[c.jsx(Es,{className:"w-4 h-4 mr-2 animate-spin"})," Verificando..."]}):c.jsxs(c.Fragment,{children:[c.jsx(H2,{className:"w-4 h-4 mr-2"})," Desbloquear"]})})]})})]})})};function Ede(t,e){return w.useReducer((r,n)=>e[r][n]??r,t)}var F_="ScrollArea",[NF,kpe]=Rs(F_),[Tde,li]=NF(F_),AF=w.forwardRef((t,e)=>{const{__scopeScrollArea:r,type:n="hover",dir:s,scrollHideDelay:i=600,...o}=t,[a,l]=w.useState(null),[u,d]=w.useState(null),[f,h]=w.useState(null),[p,g]=w.useState(null),[m,x]=w.useState(null),[v,y]=w.useState(0),[b,S]=w.useState(0),[E,C]=w.useState(!1),[_,A]=w.useState(!1),N=ot(e,V=>l(V)),D=sp(s);return c.jsx(Tde,{scope:r,type:n,dir:D,scrollHideDelay:i,scrollArea:a,viewport:u,onViewportChange:d,content:f,onContentChange:h,scrollbarX:p,onScrollbarXChange:g,scrollbarXEnabled:E,onScrollbarXEnabledChange:C,scrollbarY:m,onScrollbarYChange:x,scrollbarYEnabled:_,onScrollbarYEnabledChange:A,onCornerWidthChange:y,onCornerHeightChange:S,children:c.jsx(Ue.div,{dir:D,...o,ref:N,style:{position:"relative","--radix-scroll-area-corner-width":v+"px","--radix-scroll-area-corner-height":b+"px",...t.style}})})});AF.displayName=F_;var jF="ScrollAreaViewport",RF=w.forwardRef((t,e)=>{const{__scopeScrollArea:r,children:n,nonce:s,...i}=t,o=li(jF,r),a=w.useRef(null),l=ot(e,a,o.onViewportChange);return c.jsxs(c.Fragment,{children:[c.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"},nonce:s}),c.jsx(Ue.div,{"data-radix-scroll-area-viewport":"",...i,ref:l,style:{overflowX:o.scrollbarXEnabled?"scroll":"hidden",overflowY:o.scrollbarYEnabled?"scroll":"hidden",...t.style},children:c.jsx("div",{ref:o.onContentChange,style:{minWidth:"100%",display:"table"},children:n})})]})});RF.displayName=jF;var ho="ScrollAreaScrollbar",B_=w.forwardRef((t,e)=>{const{forceMount:r,...n}=t,s=li(ho,t.__scopeScrollArea),{onScrollbarXEnabledChange:i,onScrollbarYEnabledChange:o}=s,a=t.orientation==="horizontal";return w.useEffect(()=>(a?i(!0):o(!0),()=>{a?i(!1):o(!1)}),[a,i,o]),s.type==="hover"?c.jsx(Cde,{...n,ref:e,forceMount:r}):s.type==="scroll"?c.jsx(kde,{...n,ref:e,forceMount:r}):s.type==="auto"?c.jsx(OF,{...n,ref:e,forceMount:r}):s.type==="always"?c.jsx($_,{...n,ref:e}):null});B_.displayName=ho;var Cde=w.forwardRef((t,e)=>{const{forceMount:r,...n}=t,s=li(ho,t.__scopeScrollArea),[i,o]=w.useState(!1);return w.useEffect(()=>{const a=s.scrollArea;let l=0;if(a){const u=()=>{window.clearTimeout(l),o(!0)},d=()=>{l=window.setTimeout(()=>o(!1),s.scrollHideDelay)};return a.addEventListener("pointerenter",u),a.addEventListener("pointerleave",d),()=>{window.clearTimeout(l),a.removeEventListener("pointerenter",u),a.removeEventListener("pointerleave",d)}}},[s.scrollArea,s.scrollHideDelay]),c.jsx(Nn,{present:r||i,children:c.jsx(OF,{"data-state":i?"visible":"hidden",...n,ref:e})})}),kde=w.forwardRef((t,e)=>{const{forceMount:r,...n}=t,s=li(ho,t.__scopeScrollArea),i=t.orientation==="horizontal",o=wv(()=>l("SCROLL_END"),100),[a,l]=Ede("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});return w.useEffect(()=>{if(a==="idle"){const u=window.setTimeout(()=>l("HIDE"),s.scrollHideDelay);return()=>window.clearTimeout(u)}},[a,s.scrollHideDelay,l]),w.useEffect(()=>{const u=s.viewport,d=i?"scrollLeft":"scrollTop";if(u){let f=u[d];const h=()=>{const p=u[d];f!==p&&(l("SCROLL"),o()),f=p};return u.addEventListener("scroll",h),()=>u.removeEventListener("scroll",h)}},[s.viewport,i,l,o]),c.jsx(Nn,{present:r||a!=="hidden",children:c.jsx($_,{"data-state":a==="hidden"?"hidden":"visible",...n,ref:e,onPointerEnter:Ce(t.onPointerEnter,()=>l("POINTER_ENTER")),onPointerLeave:Ce(t.onPointerLeave,()=>l("POINTER_LEAVE"))})})}),OF=w.forwardRef((t,e)=>{const r=li(ho,t.__scopeScrollArea),{forceMount:n,...s}=t,[i,o]=w.useState(!1),a=t.orientation==="horizontal",l=wv(()=>{if(r.viewport){const u=r.viewport.offsetWidth<r.viewport.scrollWidth,d=r.viewport.offsetHeight<r.viewport.scrollHeight;o(a?u:d)}},10);return pd(r.viewport,l),pd(r.content,l),c.jsx(Nn,{present:n||i,children:c.jsx($_,{"data-state":i?"visible":"hidden",...s,ref:e})})}),$_=w.forwardRef((t,e)=>{const{orientation:r="vertical",...n}=t,s=li(ho,t.__scopeScrollArea),i=w.useRef(null),o=w.useRef(0),[a,l]=w.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),u=LF(a.viewport,a.content),d={...n,sizes:a,onSizesChange:l,hasThumb:u>0&&u<1,onThumbChange:h=>i.current=h,onThumbPointerUp:()=>o.current=0,onThumbPointerDown:h=>o.current=h};function f(h,p){return Pde(h,o.current,a,p)}return r==="horizontal"?c.jsx(Nde,{...d,ref:e,onThumbPositionChange:()=>{if(s.viewport&&i.current){const h=s.viewport.scrollLeft,p=nA(h,a,s.dir);i.current.style.transform=`translate3d(${p}px, 0, 0)`}}
vendor: 4,183 bytes, line 933
933,onWheelScroll:h=>{s.viewport&&(s.viewport.scrollLeft=h)},onDragScroll:h=>{s.viewport&&(s.viewport.scrollLeft=f(h,s.dir))}}):r==="vertical"?c.jsx(Ade,{...d,ref:e,onThumbPositionChange:()=>{if(s.viewport&&i.current){const h=s.viewport.scrollTop,p=nA(h,a);i.current.style.transform=`translate3d(0, ${p}px, 0)`}},onWheelScroll:h=>{s.viewport&&(s.viewport.scrollTop=h)},onDragScroll:h=>{s.viewport&&(s.viewport.scrollTop=f(h))}}):null}),Nde=w.forwardRef((t,e)=>{const{sizes:r,onSizesChange:n,...s}=t,i=li(ho,t.__scopeScrollArea),[o,a]=w.useState(),l=w.useRef(null),u=ot(e,l,i.onScrollbarXChange);return w.useEffect(()=>{l.current&&a(getComputedStyle(l.current))},[l]),c.jsx(MF,{"data-orientation":"horizontal",...s,ref:u,sizes:r,style:{bottom:0,left:i.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:i.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":yv(r)+"px",...t.style},onThumbPointerDown:d=>t.onThumbPointerDown(d.x),onDragScroll:d=>t.onDragScroll(d.x),onWheelScroll:(d,f)=>{if(i.viewport){const h=i.viewport.scrollLeft+d.deltaX;t.onWheelScroll(h),BF(h,f)&&d.preventDefault()}},onResize:()=>{l.current&&i.viewport&&o&&n({content:i.viewport.scrollWidth,viewport:i.viewport.offsetWidth,scrollbar:{size:l.current.clientWidth,paddingStart:Vg(o.paddingLeft),paddingEnd:Vg(o.paddingRight)}})}})}),Ade=w.forwardRef((t,e)=>{const{sizes:r,onSizesChange:n,...s}=t,i=li(ho,t.__scopeScrollArea),[o,a]=w.useState(),l=w.useRef(null),u=ot(e,l,i.onScrollbarYChange);return w.useEffect(()=>{l.current&&a(getComputedStyle(l.current))},[l]),c.jsx(MF,{"data-orientation":"vertical",...s,ref:u,sizes:r,style:{top:0,right:i.dir==="ltr"?0:void 0,left:i.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":yv(r)+"px",...t.style},onThumbPointerDown:d=>t.onThumbPointerDown(d.y),onDragScroll:d=>t.onDragScroll(d.y),onWheelScroll:(d,f)=>{if(i.viewport){const h=i.viewport.scrollTop+d.deltaY;t.onWheelScroll(h),BF(h,f)&&d.preventDefault()}},onResize:()=>{l.current&&i.viewport&&o&&n({content:i.viewport.scrollHeight,viewport:i.viewport.offsetHeight,scrollbar:{size:l.current.clientHeight,paddingStart:Vg(o.paddingTop),paddingEnd:Vg(o.paddingBottom)}})}})}),[jde,PF]=NF(ho),MF=w.forwardRef((t,e)=>{const{__scopeScrollArea:r,sizes:n,hasThumb:s,onThumbChange:i,onThumbPointerUp:o,onThumbPointerDown:a,onThumbPositionChange:l,onDragScroll:u,onWheelScroll:d,onResize:f,...h}=t,p=li(ho,r),[g,m]=w.useState(null),x=ot(e,N=>m(N)),v=w.useRef(null),y=w.useRef(""),b=p.viewport,S=n.content-n.viewport,E=br(d),C=br(l),_=wv(f,10);function A(N){if(v.current){const D=N.clientX-v.current.left,V=N.clientY-v.current.top;u({x:D,y:V})}}return w.useEffect(()=>{const N=D=>{const V=D.target;(g==null?void 0:g.contains(V))&&E(D,S)};return document.addEventListener("wheel",N,{passive:!1}),()=>document.removeEventListener("wheel",N,{passive:!1})},[b,g,S,E]),w.useEffect(C,[n,C]),pd(g,_),pd(p.content,_),c.jsx(jde,{scope:r,scrollbar:g,hasThumb:s,onThumbChange:br(i),onThumbPointerUp:br(o),onThumbPositionChange:C,onThumbPointerDown:br(a),children:c.jsx(Ue.div,{...h,ref:x,style:{position:"absolute",...h.style},onPointerDown:Ce(t.onPointerDown,N=>{N.button===0&&(N.target.setPointerCapture(N.pointerId),v.current=g.getBoundingClientRect(),y.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",p.viewport&&(p.viewport.style.scrollBehavior="auto"),A(N))}),onPointerMove:Ce(t.onPointerMove,A),onPointerUp:Ce(t.onPointerUp,N=>{const D=N.target;D.hasPointerCapture(N.pointerId)&&D.releasePointerCapture(N.pointerId),document.body.style.webkitUserSelect=y.current,p.viewport&&(p.viewport.style.scrollBehavior=""),v.current=null})})})}),Hg="ScrollAreaThumb",IF=w.forwardRef((t,e)=>{const{forceMount:r,...n}=t,s=PF(Hg,t.__scopeScrollArea);return c.jsx(Nn,{present:r||s.hasThumb,children:c.jsx(Rde,{ref:e,...n})})}),Rde=w.forwardRef((t,e)=>{const{__scopeScrollArea:r,style:n,...s}=t,i=li(Hg,r),o=PF(Hg,r),{onThumbPositionChange:a}=o,l=ot(e,f=>o.onThumbChange(f)),u=w.useRef(void 0),d=wv(()=>{u.current&&(u.current(),u.current=void 0)},100);return w.useEffect(()=>{const f=i.viewport;if(f){const h=()=>
vendor: 4,251 bytes, line 933
933{if(d(),!u.current){const p=Mde(f,a);u.current=p,a()}};return a(),f.addEventListener("scroll",h),()=>f.removeEventListener("scroll",h)}},[i.viewport,d,a]),c.jsx(Ue.div,{"data-state":o.hasThumb?"visible":"hidden",...s,ref:l,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...n},onPointerDownCapture:Ce(t.onPointerDownCapture,f=>{const p=f.target.getBoundingClientRect(),g=f.clientX-p.left,m=f.clientY-p.top;o.onThumbPointerDown({x:g,y:m})}),onPointerUp:Ce(t.onPointerUp,o.onThumbPointerUp)})});IF.displayName=Hg;var z_="ScrollAreaCorner",DF=w.forwardRef((t,e)=>{const r=li(z_,t.__scopeScrollArea),n=!!(r.scrollbarX&&r.scrollbarY);return r.type!=="scroll"&&n?c.jsx(Ode,{...t,ref:e}):null});DF.displayName=z_;var Ode=w.forwardRef((t,e)=>{const{__scopeScrollArea:r,...n}=t,s=li(z_,r),[i,o]=w.useState(0),[a,l]=w.useState(0),u=!!(i&&a);return pd(s.scrollbarX,()=>{var f;const d=((f=s.scrollbarX)==null?void 0:f.offsetHeight)||0;s.onCornerHeightChange(d),l(d)}),pd(s.scrollbarY,()=>{var f;const d=((f=s.scrollbarY)==null?void 0:f.offsetWidth)||0;s.onCornerWidthChange(d),o(d)}),u?c.jsx(Ue.div,{...n,ref:e,style:{width:i,height:a,position:"absolute",right:s.dir==="ltr"?0:void 0,left:s.dir==="rtl"?0:void 0,bottom:0,...t.style}}):null});function Vg(t){return t?parseInt(t,10):0}function LF(t,e){const r=t/e;return isNaN(r)?0:r}function yv(t){const e=LF(t.viewport,t.content),r=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,n=(t.scrollbar.size-r)*e;return Math.max(n,18)}function Pde(t,e,r,n="ltr"){const s=yv(r),i=s/2,o=e||i,a=s-o,l=r.scrollbar.paddingStart+o,u=r.scrollbar.size-r.scrollbar.paddingEnd-a,d=r.content-r.viewport,f=n==="ltr"?[0,d]:[d*-1,0];return FF([l,u],f)(t)}function nA(t,e,r="ltr"){const n=yv(e),s=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,i=e.scrollbar.size-s,o=e.content-e.viewport,a=i-n,l=r==="ltr"?[0,o]:[o*-1,0],u=Tb(t,l);return FF([0,o],[0,a])(u)}function FF(t,e){return r=>{if(t[0]===t[1]||e[0]===e[1])return e[0];const n=(e[1]-e[0])/(t[1]-t[0]);return e[0]+n*(r-t[0])}}function BF(t,e){return t>0&&t<e}var Mde=(t,e=()=>{})=>{let r={left:t.scrollLeft,top:t.scrollTop},n=0;return function s(){const i={left:t.scrollLeft,top:t.scrollTop},o=r.left!==i.left,a=r.top!==i.top;(o||a)&&e(),r=i,n=window.requestAnimationFrame(s)}(),()=>window.cancelAnimationFrame(n)};function wv(t,e){const r=br(t),n=w.useRef(0);return w.useEffect(()=>()=>window.clearTimeout(n.current),[]),w.useCallback(()=>{window.clearTimeout(n.current),n.current=window.setTimeout(r,e)},[r,e])}function pd(t,e){const r=br(e);zr(()=>{let n=0;if(t){const s=new ResizeObserver(()=>{cancelAnimationFrame(n),n=window.requestAnimationFrame(r)});return s.observe(t),()=>{window.cancelAnimationFrame(n),s.unobserve(t)}}},[t,r])}var $F=AF,Ide=RF,Dde=DF;const vp=w.forwardRef(({className:t,children:e,...r},n)=>c.jsxs($F,{ref:n,className:Ke("relative overflow-hidden",t),...r,children:[c.jsx(Ide,{className:"h-full w-full rounded-[inherit]",children:e}),c.jsx(zF,{}),c.jsx(Dde,{})]}));vp.displayName=$F.displayName;const zF=w.forwardRef(({className:t,orientation:e="vertical",...r},n)=>c.jsx(B_,{ref:n,orientation:e,className:Ke("flex touch-none select-none transition-colors",e==="vertical"&&"h-full w-2.5 border-l border-l-transparent p-[1px]",e==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",t),...r,children:c.jsx(IF,{className:"relative flex-1 rounded-full bg-border"})}));zF.displayName=B_.displayName;const Lde=[{id:"inbox",label:"Caixa de Entrada",icon:Dm},{id:"sent",label:"Enviados",icon:vx},{id:"drafts",label:"Rascunhos",icon:CR},{id:"starred",label:"Favoritos",icon:ep},{id:"archive",label:"Arquivados",icon:F2},{id:"trash",label:"Lixeira",icon:Ca},{id:"spam",label:"Spam",icon:t$}],Fde=({currentFolder:t,onFolderChange:e,onCompose:r,onShowDashboard:n,onShowSettings:s,onShowAudit:i,counts:o,tags:a,selectedTagId:l,onTagSelect:u,isMobileOpen:d,onMobileClose:f})=>{const h=g=>{g(),f==null||f()},p=c.jsxs("div",{className:"w-full md:w-56 border-r border-border bg-card flex flex-col h-full",children:[c.jsxs("div",{className:"p-3 flex items-center gap-2",children:[c.jsxs(fe,{onClick:()=>h(r),className:"flex-1 gap-2",size:"sm",children:[c.jsx(Lm,{className:"w-4 h-4"})," Novo Email"]}
933),d&&c.jsx(fe,{variant:"ghost",size:"sm",onClick:f,className:"md:hidden h-8 w-8 p-0",children:c.jsx(tc,{className:"w-4 h-4"})})]}),c.jsxs(vp,{className:"flex-1",children:[c.jsx("div",{className:"px-2 space-y-0.5",children:Lde.map(g=>{const m=g.id==="inbox"?o.unread:g.id==="starred"?o.starred:o[g.id]||0,x=t===g.id&&!l;return c.jsxs("button",{onClick:()=>h(()=>{u(void 0),e(g.id)}),className:`w-full flex items-center gap-2.5 px-3 py-2 rounded-md text-sm transition-colors ${x?"bg-primary/10 text-primary font-medium":"text-foreground hover:bg-muted"}`,children:[c.jsx(g.icon,{className:"w-4 h-4 shrink-0"}),c.jsx("span",{className:"flex-1 text-left truncate",children:g.label}),m>0&&c.jsx(ys,{variant:"secondary",className:"h-5 min-w-[20px] justify-center text-xs px-1.5",children:m})]},g.id)})}),a.length>0&&c.jsxs("div",{className:"px-2 mt-4",children:[c.jsxs("div",{className:"flex items-center gap-1.5 px-3 py-1.5 text-xs font-semibold text-muted-foreground uppercase tracking-wider",children:[c.jsx(W2,{className:"w-3 h-3"})," Tags"]}),c.jsx("div",{className:"space-y-0.5",children:a.map(g=>c.jsxs("button",{onClick:()=>h(()=>u(l===g.id?void 0:g.id)),className:`w-full flex items-center gap-2.5 px-3 py-1.5 rounded-md text-sm transition-colors ${l===g.id?"bg-primary/10 text-primary font-medium":"text-foreground hover:bg-muted"}`,children:[c.jsx("span",{className:"w-2.5 h-2.5 rounded-full shrink-0",style:{backgroundColor:g.color}}),c.jsx("span",{className:"truncate",children:g.name})]},g.id))})]})]}),c.jsxs("div",{className:"border-t border-border p-2 space-y-0.5",children:[c.jsxs("button",{onClick:()=>h(n),className:"w-full flex items-center gap-2.5 px-3 py-2 rounded-md text-sm text-foreground hover:bg-muted transition-colors",children:[c.jsx(A7,{className:"w-4 h-4"})," Dashboard"]}),c.jsxs("button",{onClick:()=>h(i),className:"w-full flex items-center gap-2.5 px-3 py-2 rounded-md text-sm text-foreground hover:bg-muted transition-colors",children:[c.jsx(_R,{className:"w-4 h-4"})," Auditoria"]}),c.jsxs("button",{onClick:()=>h(s),className:"w-full flex items-center gap-2.5 px-3 py-2 rounded-md text-sm text-foreground hover:bg-muted transition-colors",children:[c.jsx(c$,{className:"w-4 h-4"})," Configurações"]})]})]});return d?c.jsxs(c.Fragment,{children:[c.jsx("div",{className:"fixed inset-0 bg-black/40 z-40 md:hidden",onClick:f}),c.jsx("div",{className:"fixed inset-y-0 left-0 z-50 w-72 md:hidden",children:p})]}):c.jsx("div",{className:"hidden md:flex",children:p})},Bde={inbox:"Caixa de Entrada",sent:"Enviados",drafts:"Rascunhos",starred:"Favoritos",archive:"Arquivados",trash:"Lixeira",spam:"Spam"},$de=({messages:t,selectedId:e,onSelect:r,folder:n,isLoading:s,onRefresh:i,search:o,onSearchChange:a,onToggleStar:l,onToggleRead:u,onMoveToTrash:d,onArchive:f,page:h,totalPages:p,onPageChange:g})=>{const m=v=>{const y=new Date(v),b=new Date;return y.toDateString()===b.toDateString()?y.toLocaleTimeString("pt-BR",{hour:"2-digit",minute:"2-digit"}):Math.floor((b.getTime()-y.getTime())/864e5)<7?y.toLocaleDateString("pt-BR",{weekday:"short"}):y.toLocaleDateString("pt-BR",{day:"2-digit",month:"2-digit"})},x=v=>{var y;if(n==="sent"||n==="drafts"){const b=((y=v.recipients)==null?void 0:y.filter(S=>S.recipient_type==="to"))||[];return b.length>0?`Para: ${b.map(S=>S.name||S.email).join(", ")}`:"Sem destinatário"}return v.from_name||v.from_email};return c.jsxs("div",{className:"w-full md:w-80 border-r border-border bg-background flex flex-col h-full",children:[c.jsxs("div",{className:"p-3 border-b border-border space-y-2 shrink-0",children:[c.jsxs("div",{className:"flex items-center justify-between",children:[c.jsx("h2",{className:"font-semibold text-sm",children:Bde[n]||n}),c.jsx(fe,{variant:"ghost",size:"sm",onClick:i,disabled:s,className:"h-7 w-7 p-0",children:s?c.jsx(Es,{className:"w-3.5 h-3.5 animate-spin"}):c.jsx(xx,{className:"w-3.5 h-3.5"})})]}),c.jsxs("div",{className:"relative",children:[c.jsx(V2,{className:"absolute left-2.5 top-1/2 -translate-y-1/2 w-3.5 h-3.5 text-muted-foreground"}),c.jsx(ur,{placeholder:"Buscar emails...",value:o,onChange:v=>a(v.target.value),className:"h-8 pl-8 text-sm"})]})]}),c.jsx(vp,{className:"flex-1",children:t.length===0?c.jsxs("div",{className:"flex flex-col items-center justify-center py-12 text-muted-foreground",children:[c.jsx(Ss,{className:"w-10 h-10 mb-2 opacity-40"}),c.jsx("p",{className:"text-sm",children:s?"Carregando...":"Nenhum email encontrado"})]}):c.jsx("div",{className:"divide-y divide-border",children:t.map(v=>{var E,C;const y=e===v.id,b=v.attachments&&v.attachments.length>0,S=((E=v.tags)==null?void 0:E.map(_=>_.color))||[];return c.jsxs("div",{onClick:()=>r(v),className:`group relative px-3 py-2.5 cursor-pointer transition-colors ${y?"bg-primary/5 border-l-2 border-l-primary":"hover:bg-muted/50 border-l-2 border-l-transparent"} ${v.is_read?"":"bg-primary/[0.02]"}`,children:[c.jsxs("div",{className:"flex items-start gap-2",children:[c.jsx("button",{onClick:_=>{_.stopPropagation(),l(v.id)},className:"mt-0.5 shrink-0",children:c.jsx(ep,{className:`w-3.5 h-3.5 ${v.is_starred?"fill-yellow-400 text-yellow-400":"text-muted-foreground
vendor: 9,286 bytes, lines 933-934
933/40 hover:text-yellow-400"}`})}),c.jsxs("div",{className:"flex-1 min-w-0",children:[c.jsxs("div",{className:"flex items-center justify-between gap-1",children:[c.jsx("span",{className:`text-sm truncate ${v.is_read?"text-foreground":"font-semibold text-foreground"}`,children:x(v)}),c.jsx("span",{className:"text-xs text-muted-foreground whitespace-nowrap",children:m(v.created_at)})]}),c.jsx("p",{className:`text-sm truncate ${v.is_read?"text-muted-foreground":"font-medium text-foreground"}`,children:v.subject||"(sem assunto)"}),c.jsx("p",{className:"text-xs text-muted-foreground truncate mt-0.5",children:((C=v.body_text)==null?void 0:C.slice(0,80))||""}),c.jsxs("div",{className:"flex items-center gap-1 mt-1",children:[b&&c.jsx(Ri,{className:"w-3 h-3 text-muted-foreground"}),S.map((_,A)=>c.jsx("span",{className:"w-2 h-2 rounded-full",style:{backgroundColor:_}},A))]})]})]}),c.jsxs("div",{className:"absolute right-2 top-2 hidden group-hover:flex gap-0.5 bg-background border rounded-md shadow-sm p-0.5",children:[c.jsx(fe,{variant:"ghost",size:"sm",className:"h-6 w-6 p-0",onClick:_=>{_.stopPropagation(),f(v.id)},title:"Arquivar",children:c.jsx(F2,{className:"w-3 h-3"})}),c.jsx(fe,{variant:"ghost",size:"sm",className:"h-6 w-6 p-0",onClick:_=>{_.stopPropagation(),d(v.id)},title:"Excluir",children:c.jsx(Ca,{className:"w-3 h-3"})}),c.jsx(fe,{variant:"ghost",size:"sm",className:"h-6 w-6 p-0",onClick:_=>{_.stopPropagation(),u(v.id)},title:"Marcar como lido/não lido",children:c.jsx(y0,{className:"w-3 h-3"})})]})]},v.id)})})}),p>1&&c.jsxs("div",{className:"border-t border-border p-2 flex items-center justify-between shrink-0",children:[c.jsx(fe,{variant:"ghost",size:"sm",onClick:()=>g(h-1),disabled:h<=1,className:"h-7",children:c.jsx(j7,{className:"w-3.5 h-3.5"})}),c.jsxs("span",{className:"text-xs text-muted-foreground",children:[h," / ",p]}),c.jsx(fe,{variant:"ghost",size:"sm",onClick:()=>g(h+1),disabled:h>=p,className:"h-7",children:c.jsx(bR,{className:"w-3.5 h-3.5"})})]})]})};/*! @license DOMPurify 3.4.8 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.8/LICENSE */function sA(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function zde(t){if(Array.isArray(t))return t}function Ude(t,e){var r=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var n,s,i,o,a=[],l=!0,u=!1;try{if(i=(r=r.call(t)).next,e!==0)for(;!(l=(n=i.call(r)).done)&&(a.push(n.value),a.length!==e);l=!0);}catch(d){u=!0,s=d}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw s}}return a}}function Hde(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
934In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Vde(t,e){return zde(t)||Ude(t,e)||Wde(t,e)||Hde()}function Wde(t,e){if(t){if(typeof t=="string")return sA(t,e);var r={}.toString.call(t).slice(8,-1);return r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set"?Array.from(t):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?sA(t,e):void 0}}const UF=Object.entries,iA=Object.setPrototypeOf,qde=Object.isFrozen,Gde=Object.getPrototypeOf,Kde=Object.getOwnPropertyDescriptor;let Wn=Object.freeze,ii=Object.seal,ru=Object.create,HF=typeof Reflect<"u"&&Reflect,Ob=HF.apply,Pb=HF.construct;Wn||(Wn=function(e){return e});ii||(ii=function(e){return e});Ob||(Ob=function(e,r){for(var n=arguments.length,s=new Array(n>2?n-2:0),i=2;i<n;i++)s[i-2]=arguments[i];return e.apply(r,s)});Pb||(Pb=function(e){for(var r=arguments.length,n=new Array(r>1?r-1:0),s=1;s<r;s++)n[s-1]=arguments[s];return new e(...n)});const yl=Rr(Array.prototype.forEach),Xde=Rr(Array.prototype.lastIndexOf),oA=Rr(Array.prototype.pop),qc=Rr(Array.prototype.push),Yde=Rr(Array.prototype.splice),Pn=Array.isArray,mf=Rr(String.prototype.toLowerCase),ay=Rr(String.prototype.toString),aA=Rr(String.prototype.match),Gc=Rr(String.prototype.replace),lA=Rr(String.prototype.indexOf),Jde=Rr(String.prototype.trim),Qde=Rr(Number.prototype.toString),Zde=Rr(Boolean.prototype.toString),cA=typeof BigInt>"u"?null:Rr(BigInt.prototype.toString),uA=typeof Symbol>"u"?null:Rr(Symbol.prototype.toString),lr=Rr(Object.prototype.hasOwnProperty),ef=Rr(Object.prototype.toString),tn=Rr(RegExp.prototype.test),Kc=efe(TypeError);function Rr(t){return function(e){e instanceof RegExp&&(e.lastIndex=0);for(var r=arguments.length,n=new Array(r>1?r-1:0),s=1;s<r;s++)n[s-1]=arguments[s];return Ob(t,e,n)}}function efe(t){return function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return Pb(t,r)}}function it(t,e){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:mf;if(iA&&iA(t,null),!Pn(e))return t;let n=e.length;for(;n--;){let s=e[n];if(typeof s=="string"){const i=r(s);i!==s&&(qde(e)||(e[n]=i),s=i)}t[s]=!0}return t}function tfe(t){for(let e=0;e<t.length;e++)lr(t,e)||(t[e]=null);return t}function wn(t){const e=ru(null);for(const n of UF(t)){var r=Vde(n,2);const s=r[0],i=r[1];lr(t,s)&&(Pn(i)?e[s]=tfe(i):i&&typeof i=="object"&&i.constructor===Object?e[s]=wn(i):e[s]=i)}return e}function rfe(t){switch(typeof t){case"string":return t;case"number":return Qde(t);case"boolean":return Zde(t);case"bigint":return cA?cA(t):"0";case"symbol":return uA?uA(t):"Symbol()";case"undefined":return ef(t);case"function":case"object":{if(t===null)return ef(t);const e=t,r=Hi(e,"toString");if(typeof r=="function"){const n=r(e);return typeof n=="string"?n:ef(n)}return ef(t)}default:return ef(t)}}function Hi(t,e){for(;t!==null;){const n=Kde(t,e);if(n){if(n.get)return Rr(n.get);if(typeof n.value=="function")return Rr(n.value)}t=Gde(t)}function r(){return null}return r}function nfe(t){try{return tn(t,""),!0}catch{return!1}}const dA=Wn(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),ly=Wn(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),cy=Wn(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),sfe=Wn(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),uy=Wn(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),ife=Wn(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),fA=Wn(["#text"]),hA=Wn(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","
934spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),dy=Wn(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),pA=Wn(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),bm=Wn(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),ofe=ii(/{{[\w\W]*|^[\w\W]*}}/g),afe=ii(/<%[\w\W]*|^[\w\W]*%>/g),lfe=ii(/\${[\w\W]*/g),cfe=ii(/^data-[\-\w.\u00B7-\uFFFF]+$/),ufe=ii(/^aria-[\-\w]+$/),mA=ii(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),dfe=ii(/^(?:\w+script|data):/i),ffe=ii(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),hfe=ii(/^html$/i),pfe=ii(/^[a-z][.\w]*(-[.\w]+)+$/i),$i={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,progressingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},mfe=function(){return typeof window>"u"?null:window},gfe=function(e,r){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let n=null;
vendor: 4,099 bytes, line 934
934const s="data-tt-policy-suffix";r&&r.hasAttribute(s)&&(n=r.getAttribute(s));const i="dompurify"+(n?"#"+n:"");try{return e.createPolicy(i,{createHTML(o){return o},createScriptURL(o){return o}})}catch{return console.warn("TrustedTypes policy "+i+" could not be created."),null}},gA=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function VF(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:mfe();const e=Re=>VF(Re);if(e.version="3.4.8",e.removed=[],!t||!t.document||t.document.nodeType!==$i.document||!t.Element)return e.isSupported=!1,e;let r=t.document;const n=r,s=n.currentScript;t.DocumentFragment;const i=t.HTMLTemplateElement,o=t.Node,a=t.Element,l=t.NodeFilter,u=t.NamedNodeMap;u===void 0&&(t.NamedNodeMap||t.MozNamedAttrMap),t.HTMLFormElement;const d=t.DOMParser,f=t.trustedTypes,h=a.prototype,p=Hi(h,"cloneNode"),g=Hi(h,"remove"),m=Hi(h,"nextSibling"),x=Hi(h,"childNodes"),v=Hi(h,"parentNode"),y=Hi(h,"shadowRoot"),b=Hi(h,"attributes"),S=o&&o.prototype?Hi(o.prototype,"nodeType"):null,E=o&&o.prototype?Hi(o.prototype,"nodeName"):null;if(typeof i=="function"){const Re=r.createElement("template");Re.content&&Re.content.ownerDocument&&(r=Re.content.ownerDocument)}let C,_="",A=0;const N=function(F){if(A>0)throw Kc('The configured TRUSTED_TYPES_POLICY.createHTML must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose createHTML wraps DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.');A++;try{return C.createHTML(F)}finally{A--}},D=r,V=D.implementation,H=D.createNodeIterator,U=D.createDocumentFragment,K=D.getElementsByTagName,te=n.importNode;let se=gA();e.isSupported=typeof UF=="function"&&typeof v=="function"&&V&&V.createHTMLDocument!==void 0;const he=ofe,G=afe,O=lfe,W=cfe,ee=ufe,k=dfe,z=ffe,I=pfe;let B=mA,q=null;const X=it({},[...dA,...ly,...cy,...uy,...fA]);let ae=null;const ce=it({},[...hA,...dy,...pA,...bm]);let ne=Object.seal(ru(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Ae=null,je=null;const Xe=Object.seal(ru(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let Ve=!0,re=!0,Se=!1,ve=!0,yt=!1,mt=!0,Kt=!1,sr=!1,Pe=!1,qe=!1,rt=!1,At=!1,dt=!0,ir=!1;const Qr="user-content-";let Xn=!0,Zr=!1,ds={},Hr=null;const fs=it({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Yn=null;const Me=it({},["audio","video","img","source","image","track"]);let He=null;const at=it({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Xt="http://www.w3.org/1998/Math/MathML",Ms="http://www.w3.org/2000/svg",Pr="http://www.w3.org/1999/xhtml";let gn=Pr,po=!1,en=null;const Md=it({},[Xt,Ms,Pr],ay);let Ge=it({},["mi","mo","mn","ms","mtext"]),wt=it({},["annotation-xml"]);const Lt=it({},["title","style","font","a","script"]);let Mr=null;const jn=["application/xhtml+xml","text/html"],Is="text/html";let Ct=null,or=null;const Ds=r.createElement("form"),Sp=function(F){return F instanceof RegExp||F instanceof Function},Id=function(){let F=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(or&&or===F)return;(!F||typeof F!="object")&&(F={}),F=wn(F),Mr=jn.indexOf(F.PARSER_MEDIA_TYPE)===-1?Is:F.PARSER_MEDIA_TYPE,Ct=Mr==="application/xhtml+xml"?ay:mf,q=lr(F,"ALLOWED_TAGS")&&Pn(F.ALLOWED_TAGS)?it({},F.ALLOWED_TAGS,Ct):X,ae=lr(F,"ALLOWED_ATTR")&&Pn(F.ALLOWED_ATTR)?it({},F.ALLOWED_ATTR,Ct):ce,en=lr(F,"ALLOWED_NAMESPACES")&&Pn(F.ALLOWED_NAMESPACES)?it({}
vendor: 4,621 bytes, line 934
934,F.ALLOWED_NAMESPACES,ay):Md,He=lr(F,"ADD_URI_SAFE_ATTR")&&Pn(F.ADD_URI_SAFE_ATTR)?it(wn(at),F.ADD_URI_SAFE_ATTR,Ct):at,Yn=lr(F,"ADD_DATA_URI_TAGS")&&Pn(F.ADD_DATA_URI_TAGS)?it(wn(Me),F.ADD_DATA_URI_TAGS,Ct):Me,Hr=lr(F,"FORBID_CONTENTS")&&Pn(F.FORBID_CONTENTS)?it({},F.FORBID_CONTENTS,Ct):fs,Ae=lr(F,"FORBID_TAGS")&&Pn(F.FORBID_TAGS)?it({},F.FORBID_TAGS,Ct):wn({}),je=lr(F,"FORBID_ATTR")&&Pn(F.FORBID_ATTR)?it({},F.FORBID_ATTR,Ct):wn({}),ds=lr(F,"USE_PROFILES")?F.USE_PROFILES&&typeof F.USE_PROFILES=="object"?wn(F.USE_PROFILES):F.USE_PROFILES:!1,Ve=F.ALLOW_ARIA_ATTR!==!1,re=F.ALLOW_DATA_ATTR!==!1,Se=F.ALLOW_UNKNOWN_PROTOCOLS||!1,ve=F.ALLOW_SELF_CLOSE_IN_ATTR!==!1,yt=F.SAFE_FOR_TEMPLATES||!1,mt=F.SAFE_FOR_XML!==!1,Kt=F.WHOLE_DOCUMENT||!1,qe=F.RETURN_DOM||!1,rt=F.RETURN_DOM_FRAGMENT||!1,At=F.RETURN_TRUSTED_TYPE||!1,Pe=F.FORCE_BODY||!1,dt=F.SANITIZE_DOM!==!1,ir=F.SANITIZE_NAMED_PROPS||!1,Xn=F.KEEP_CONTENT!==!1,Zr=F.IN_PLACE||!1,B=nfe(F.ALLOWED_URI_REGEXP)?F.ALLOWED_URI_REGEXP:mA,gn=typeof F.NAMESPACE=="string"?F.NAMESPACE:Pr,Ge=lr(F,"MATHML_TEXT_INTEGRATION_POINTS")&&F.MATHML_TEXT_INTEGRATION_POINTS&&typeof F.MATHML_TEXT_INTEGRATION_POINTS=="object"?wn(F.MATHML_TEXT_INTEGRATION_POINTS):it({},["mi","mo","mn","ms","mtext"]),wt=lr(F,"HTML_INTEGRATION_POINTS")&&F.HTML_INTEGRATION_POINTS&&typeof F.HTML_INTEGRATION_POINTS=="object"?wn(F.HTML_INTEGRATION_POINTS):it({},["annotation-xml"]);const le=lr(F,"CUSTOM_ELEMENT_HANDLING")&&F.CUSTOM_ELEMENT_HANDLING&&typeof F.CUSTOM_ELEMENT_HANDLING=="object"?wn(F.CUSTOM_ELEMENT_HANDLING):ru(null);if(ne=ru(null),lr(le,"tagNameCheck")&&Sp(le.tagNameCheck)&&(ne.tagNameCheck=le.tagNameCheck),lr(le,"attributeNameCheck")&&Sp(le.attributeNameCheck)&&(ne.attributeNameCheck=le.attributeNameCheck),lr(le,"allowCustomizedBuiltInElements")&&typeof le.allowCustomizedBuiltInElements=="boolean"&&(ne.allowCustomizedBuiltInElements=le.allowCustomizedBuiltInElements),yt&&(re=!1),rt&&(qe=!0),ds&&(q=it({},fA),ae=ru(null),ds.html===!0&&(it(q,dA),it(ae,hA)),ds.svg===!0&&(it(q,ly),it(ae,dy),it(ae,bm)),ds.svgFilters===!0&&(it(q,cy),it(ae,dy),it(ae,bm)),ds.mathMl===!0&&(it(q,uy),it(ae,pA),it(ae,bm))),Xe.tagCheck=null,Xe.attributeCheck=null,lr(F,"ADD_TAGS")&&(typeof F.ADD_TAGS=="function"?Xe.tagCheck=F.ADD_TAGS:Pn(F.ADD_TAGS)&&(q===X&&(q=wn(q)),it(q,F.ADD_TAGS,Ct))),lr(F,"ADD_ATTR")&&(typeof F.ADD_ATTR=="function"?Xe.attributeCheck=F.ADD_ATTR:Pn(F.ADD_ATTR)&&(ae===ce&&(ae=wn(ae)),it(ae,F.ADD_ATTR,Ct))),lr(F,"ADD_URI_SAFE_ATTR")&&Pn(F.ADD_URI_SAFE_ATTR)&&it(He,F.ADD_URI_SAFE_ATTR,Ct),lr(F,"FORBID_CONTENTS")&&Pn(F.FORBID_CONTENTS)&&(Hr===fs&&(Hr=wn(Hr)),it(Hr,F.FORBID_CONTENTS,Ct)),lr(F,"ADD_FORBID_CONTENTS")&&Pn(F.ADD_FORBID_CONTENTS)&&(Hr===fs&&(Hr=wn(Hr)),it(Hr,F.ADD_FORBID_CONTENTS,Ct)),Xn&&(q["#text"]=!0),Kt&&it(q,["html","head","body"]),q.table&&(it(q,["tbody"]),delete Ae.tbody),F.TRUSTED_TYPES_POLICY){if(typeof F.TRUSTED_TYPES_POLICY.createHTML!="function")throw Kc('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof F.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Kc('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const Ne=C;C=F.TRUSTED_TYPES_POLICY;try{_=N("")}catch(ft){throw C=Ne,ft}}else C===void 0&&F.TRUSTED_TYPES_POLICY!==null&&(C=gfe(f,s)),C&&typeof _=="string"&&(_=N(""));(se.uponSanitizeElement.length>0||se.uponSanitizeAttribute.length>0)&&q===X&&(q=wn(q)),se.uponSanitizeAttribute.length>0&&ae===ce&&(ae=wn(ae)),Wn&&Wn(F),or=F},T=it({},[...ly,...cy,...sfe]),M=it({},[...uy,...ife]),j=function(F){let le=v(F);(!le||!le.tagName)&&(le={namespaceURI:gn,tagName:"template"});const Ne=mf(F.tagName),ft=mf(le.tagName);return en[F.namespaceURI]?F.namespaceURI===Ms?le.namespaceURI===Pr?Ne==="svg":le.namespaceURI===Xt?Ne==="svg"&&(ft==="annotation-xml"||Ge[ft]):!!T[Ne]:F.namespaceURI===Xt?le.namespaceURI===Pr?Ne==="math":le.namespaceURI===Ms?Ne==="math"&&wt[ft]:!!M[Ne]:F.namespaceURI===Pr?le.namespaceURI===Ms&&!wt[ft]||le.namespaceURI===Xt&&!Ge[ft]?!1:!M[Ne]&&(Lt[Ne]||!T[Ne]):!!(Mr==="application/xhtml+xml"&&en[F.namespaceURI]):!1},R=function(F){qc(e.removed,{element:F});try{v(F).removeChild(F)}catch{g(F)}},P=function(F,le){try{qc(e.removed,{attribute:le.getAttributeNode(F),from:le})}catch{qc(e.removed,{attribute:null,from:le})}if(le.removeAttribute(F),F==="is")if(qe||rt)try{R(le)}catch{}else try{le.setAttribute(F,"")}catch{}},L=function(F){let le=null,Ne=null;if(Pe)F="<remove></remove>"+F;else{const gt=aA(F,/^[\r\n\t ]+/);Ne=gt&&gt[0]}Mr==="application/xhtml+xml"&&gn===Pr&&(F='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+F+"</body></html>");
934const ft=C?N(F):F;if(gn===Pr)try{le=new d().parseFromString(ft,Mr)}catch{}if(!le||!le.documentElement){le=V.createDocument(gn,"template",null);try{le.documentElement.innerHTML=po?_:ft}catch{}}const et=le.body||le.documentElement;return F&&Ne&&et.insertBefore(r.createTextNode(Ne),et.childNodes[0]||null),gn===Pr?K.call(le,Kt?"html":"body")[0]:Kt?le.documentElement:et},Q=function(F){return H.call(F.ownerDocument||F,F,l.SHOW_ELEMENT|l.SHOW_COMMENT|l.SHOW_TEXT|l.SHOW_PROCESSING_INSTRUCTION|l.SHOW_CDATA_SECTION,null)},oe=function(F){var le,Ne;F.normalize();const ft=H.call(F.ownerDocument||F,F,l.SHOW_TEXT|l.SHOW_COMMENT|l.SHOW_CDATA_SECTION|l.SHOW_PROCESSING_INSTRUCTION,null);let et=ft.nextNode();for(;et;){let Ir=et.data;yl([he,G,O],Ls=>{Ir=Gc(Ir,Ls," ")}),et.data=Ir,et=ft.nextNode()}const gt=(le=(Ne=F.querySelectorAll)===null||Ne===void 0?void 0:Ne.call(F,"template"))!==null&&le!==void 0?le:[];yl(Array.from(gt),Ir=>{J(Ir.content)&&oe(Ir.content)})},Y=function(F){const le=E?E(F):null;return typeof le!="string"||Ct(le)!=="form"?!1:typeof F.nodeName!="string"||typeof F.textContent!="string"||typeof F.removeChild!="function"||F.attributes!==b(F)||typeof F.removeAttribute!="function"||typeof F.setAttribute!="function"||typeof F.namespaceURI!="string"||typeof F.insertBefore!="function"||typeof F.hasChildNodes!="function"||F.nodeType!==S(F)||F.childNodes!==x(F)},J=function(F){if(!S||typeof F!="object"||F===null)return!1;try{return S(F)===$i.documentFragment}catch{return!1}},Z=function(F){if(!S||typeof F!="object"||F===null)return!1;try{return typeof S(F)=="number"}catch{return!1}};function ge(Re,F,le){yl(Re,Ne=>{Ne.call(e,F,le,or)})}const ke=function(F){let le=null;if(ge(se.beforeSanitizeElements,F,null),Y(F))return R(F),!0;const Ne=Ct(E?E(F):F.nodeName);if(ge(se.uponSanitizeElement,F,{tagName:Ne,allowedTags:q}),mt&&F.hasChildNodes()&&!Z(F.firstElementChild)&&tn(/<[/\w!]/g,F.innerHTML)&&tn(/<[/\w!]/g,F.textContent)||mt&&F.namespaceURI===Pr&&Ne==="style"&&Z(F.firstElementChild)||F.nodeType===$i.progressingInstruction||mt&&F.nodeType===$i.comment&&tn(/<[/\w]/g,F.data))return R(F),!0;if(Ae[Ne]||!(Xe.tagCheck instanceof Function&&Xe.tagCheck(Ne))&&!q[Ne]){if(!Ae[Ne]&&Oe(Ne)&&(ne.tagNameCheck instanceof RegExp&&tn(ne.tagNameCheck,Ne)||ne.tagNameCheck instanceof Function&&ne.tagNameCheck(Ne)))return!1;if(Xn&&!Hr[Ne]){const et=v(F),gt=x(F);if(gt&&et){const Ir=gt.length;for(let Ls=Ir-1;Ls>=0;--Ls){const ci=p(gt[Ls],!0);et.insertBefore(ci,m(F))}}}return R(F),!0}return(S?S(F):F.nodeType)===$i.element&&!j(F)||(Ne==="noscript"||Ne==="noembed"||Ne==="noframes")&&tn(/<\/no(script|embed|frames)/i,F.innerHTML)?(R(F),!0):(yt&&F.nodeType===$i.text&&(le=F.textContent,yl([he,G,O],et=>{le=Gc(le,et," ")}),F.textContent!==le&&(qc(e.removed,{element:F.cloneNode()}),F.textContent=le)),ge(se.afterSanitizeElements,F,null),!1)},Ie=function(F,le,Ne){if(je[le]||dt&&(le==="id"||le==="name")&&(Ne in r||Ne in Ds))return!1;const ft=ae[le]||Xe.attributeCheck instanceof Function&&Xe.attributeCheck(le,F);if(!(re&&!je[le]&&tn(W,le))){if(!(Ve&&tn(ee,le))){if(!ft||je[le]){if(!(Oe(F)&&(ne.tagNameCheck instanceof RegExp&&tn(ne.tagNameCheck,F)||ne.tagNameCheck instanceof Function&&ne.tagNameCheck(F))&&(ne.attributeNameCheck instanceof RegExp&&tn(ne.attributeNameCheck,le)||ne.attributeNameCheck instanceof Function&&ne.attributeNameCheck(le,F))||le==="is"&&ne.allowCustomizedBuiltInElements&&(ne.tagNameCheck instanceof RegExp&&tn(ne.tagNameCheck,Ne)||ne.tagNameCheck instanceof Function&&ne.tagNameCheck(Ne))))return!1}else if(!He[le]){if(!tn(B,Gc(Ne,z,""))){if(!((le==="src"||le==="xlink:href"||le==="href")&&F!=="script"&&lA(Ne,"data:")===0&&Yn[F])){if(!(Se&&!tn(k,Gc(Ne,z,"")))){if(Ne)return!1}}}}}}return!0},be=it({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),Oe=function(F){return!be[mf(F)]&&tn(I,F)},Ye=function(F){ge(se.beforeSanitizeAttributes,F,null);const le=F.attributes;if(!le||Y(F))return;const Ne={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:ae,forceKeepAttr:void 0};let ft=le.length;for(;ft--;){const et=le[ft],gt=et.name,Ir=et.namespaceURI,Ls=et.value,ci=Ct(gt),Ev=Ls;let Vr=gt==="value"?Ev:Jde(Ev);if(Ne.attrName=ci,Ne.attrValue=Vr,Ne.keepAttr=!0,Ne.forceKeepAttr=void 0,ge(se.uponSanitizeAttribute,F,Ne),Vr=Ne.attrValue,ir&&(ci==="id"||ci==="name")&&lA(Vr,Qr)!==0&&(P(gt,F),Vr=Qr+Vr),mt&&tn(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,Vr)){P(gt,F);continue}if(ci==="attributename"&&aA(Vr,"href")){P(gt,F);continue}if(Ne.forceKeepAttr)continue;if(!Ne.keepAttr){P(gt,F);continue}if(!ve&&tn(/\/>/i,Vr)){P(gt,F);continue}yt&&yl([he,G,O],J_=>{Vr=Gc(Vr,J_," ")});const Y_=Ct(F.nodeName);if(!Ie(Y_,ci,Vr)){P(gt,F);continue}
934if(C&&typeof f=="object"&&typeof f.getAttributeType=="function"&&!Ir)switch(f.getAttributeType(Y_,ci)){case"TrustedHTML":{Vr=N(Vr);break}case"TrustedScriptURL":{Vr=C.createScriptURL(Vr);break}}if(Vr!==Ev)try{Ir?F.setAttributeNS(Ir,gt,Vr):F.setAttribute(gt,Vr),Y(F)?R(F):oA(e.removed)}catch{P(gt,F)}}ge(se.afterSanitizeAttributes,F,null)},Ft=function(F){let le=null;const Ne=Q(F);for(ge(se.beforeSanitizeShadowDOM,F,null);le=Ne.nextNode();)if(ge(se.uponSanitizeShadowNode,le,null),ke(le),Ye(le),J(le.content)&&Ft(le.content),(S?S(le):le.nodeType)===$i.element){const et=y?y(le):le.shadowRoot;J(et)&&(jt(et),Ft(et))}ge(se.afterSanitizeShadowDOM,F,null)},jt=function(F){const le=S?S(F):F.nodeType;if(le===$i.element){const et=y?y(F):F.shadowRoot;J(et)&&(jt(et),Ft(et))}const Ne=x?x(F):F.childNodes;if(!Ne)return;const ft=[];yl(Ne,et=>{qc(ft,et)});for(const et of ft)jt(et);if(le===$i.element){const et=E?E(F):null;if(typeof et=="string"&&Ct(et)==="template"){const gt=F.content;J(gt)&&jt(gt)}}};return e.sanitize=function(Re){let F=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},le=null,Ne=null,ft=null,et=null;if(po=!Re,po&&(Re="<!-->"),typeof Re!="string"&&!Z(Re)&&(Re=rfe(Re),typeof Re!="string"))throw Kc("dirty is not a string, aborting");if(!e.isSupported)return Re;if(sr||Id(F),e.removed=[],typeof Re=="string"&&(Zr=!1),Zr){const Ls=E?E(Re):Re.nodeName;if(typeof Ls=="string"){const ci=Ct(Ls);if(!q[ci]||Ae[ci])throw Kc("root node is forbidden and cannot be sanitized in-place")}if(Y(Re))throw Kc("root node is clobbered and cannot be sanitized in-place");jt(Re)}else if(Z(Re))le=L("<!---->"),Ne=le.ownerDocument.importNode(Re,!0),Ne.nodeType===$i.element&&Ne.nodeName==="BODY"||Ne.nodeName==="HTML"?le=Ne:le.appendChild(Ne),jt(Ne);else{if(!qe&&!yt&&!Kt&&Re.indexOf("<")===-1)return C&&At?N(Re):Re;if(le=L(Re),!le)return qe?null:At?_:""}le&&Pe&&R(le.firstChild);const gt=Q(Zr?Re:le);for(;ft=gt.nextNode();)ke(ft),Ye(ft),J(ft.content)&&Ft(ft.content);if(Zr)return yt&&oe(Re),Re;if(qe){if(yt&&oe(le),rt)for(et=U.call(le.ownerDocument);le.firstChild;)et.appendChild(le.firstChild);else et=le;return(ae.shadowroot||ae.shadowrootmode)&&(et=te.call(n,et,!0)),et}let Ir=Kt?le.outerHTML:le.innerHTML;return Kt&&q["!doctype"]&&le.ownerDocument&&le.ownerDocument.doctype&&le.ownerDocument.doctype.name&&tn(hfe,le.ownerDocument.doctype.name)&&(Ir="<!DOCTYPE "+le.ownerDocument.doctype.name+`>
935`+Ir),yt&&yl([he,G,O],Ls=>{Ir=Gc(Ir,Ls," ")}),C&&At?N(Ir):Ir},e.setConfig=function(){let Re=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Id(Re),sr=!0},e.clearConfig=function(){or=null,sr=!1},e.isValidAttribute=function(Re,F,le){or||Id({});const Ne=Ct(Re),ft=Ct(F);return Ie(Ne,ft,le)},e.addHook=function(Re,F){typeof F=="function"&&qc(se[Re],F)},e.removeHook=function(Re,F){if(F!==void 0){const le=Xde(se[Re],F);return le===-1?void 0:Yde(se[Re],le,1)[0]}return oA(se[Re])},e.removeHooks=function(Re){se[Re]=[]},e.removeAllHooks=function(){se=gA()},e}var xA=VF(),fy="rovingFocusGroup.onEntryFocus",xfe={bubbles:!1,cancelable:!0},yp="RovingFocusGroup",[Mb,WF,vfe]=Yh(yp),[yfe,qF]=Rs(yp,[vfe]),[wfe,bfe]=yfe(yp),GF=w.forwardRef((t,e)=>c.jsx(Mb.Provider,{scope:t.__scopeRovingFocusGroup,children:c.jsx(Mb.Slot,{scope:t.__scopeRovingFocusGroup,children:c.jsx(Sfe,{...t,ref:e})})}));GF.displayName=yp;var Sfe=w.forwardRef((t,e)=>{const{__scopeRovingFocusGroup:r,orientation:n,loop:s=!1,dir:i,currentTabStopId:o,defaultCurrentTabStopId:a,onCurrentTabStopIdChange:l,onEntryFocus:u,preventScrollOnEntryFocus:d=!1,...f}=t,h=w.useRef(null),p=ot(e,h),g=sp(i),[m,x]=so({prop:o,defaultProp:a??null,onChange:l,caller:yp}),[v,y]=w.useState(!1),b=br(u),S=WF(r),E=w.useRef(!1),[C,_]=w.useState(0);return w.useEffect(()=>{const A=h.current;if(A)return A.addEventListener(fy,b),()=>A.removeEventListener(fy,b)},[b]),c.jsx(wfe,{scope:r,orientation:n,dir:g,loop:s,currentTabStopId:m,onItemFocus:w.useCallback(A=>x(A),[x]),onItemShiftTab:w.useCallback(()=>y(!0),[]),onFocusableItemAdd:w.useCallback(()=>_(A=>A+1),[]),onFocusableItemRemove:w.useCallback(()=>_(A=>A-1),[]),children:c.jsx(Ue.div,{tabIndex:v||C===0?-1:0,"data-orientation":n,...f,ref:p,style:{outline:"none",...t.style},onMouseDown:Ce(t.onMouseDown,()=>{E.current=!0}),onFocus:Ce(t.onFocus,A=>{const N=!E.current;if(A.target===A.currentTarget&&N&&!v){const D=new CustomEvent(fy,xfe);
vendor: 19,614 bytes, line 935
935if(A.currentTarget.dispatchEvent(D),!D.defaultPrevented){const V=S().filter(se=>se.focusable),H=V.find(se=>se.active),U=V.find(se=>se.id===m),te=[H,U,...V].filter(Boolean).map(se=>se.ref.current);YF(te,d)}}E.current=!1}),onBlur:Ce(t.onBlur,()=>y(!1))})})}),KF="RovingFocusGroupItem",XF=w.forwardRef((t,e)=>{const{__scopeRovingFocusGroup:r,focusable:n=!0,active:s=!1,tabStopId:i,children:o,...a}=t,l=Oi(),u=i||l,d=bfe(KF,r),f=d.currentTabStopId===u,h=WF(r),{onFocusableItemAdd:p,onFocusableItemRemove:g,currentTabStopId:m}=d;return w.useEffect(()=>{if(n)return p(),()=>g()},[n,p,g]),c.jsx(Mb.ItemSlot,{scope:r,id:u,focusable:n,active:s,children:c.jsx(Ue.span,{tabIndex:f?0:-1,"data-orientation":d.orientation,...a,ref:e,onMouseDown:Ce(t.onMouseDown,x=>{n?d.onItemFocus(u):x.preventDefault()}),onFocus:Ce(t.onFocus,()=>d.onItemFocus(u)),onKeyDown:Ce(t.onKeyDown,x=>{if(x.key==="Tab"&&x.shiftKey){d.onItemShiftTab();return}if(x.target!==x.currentTarget)return;const v=Tfe(x,d.orientation,d.dir);if(v!==void 0){if(x.metaKey||x.ctrlKey||x.altKey||x.shiftKey)return;x.preventDefault();let b=h().filter(S=>S.focusable).map(S=>S.ref.current);if(v==="last")b.reverse();else if(v==="prev"||v==="next"){v==="prev"&&b.reverse();const S=b.indexOf(x.currentTarget);b=d.loop?Cfe(b,S+1):b.slice(S+1)}setTimeout(()=>YF(b))}}),children:typeof o=="function"?o({isCurrentTabStop:f,hasTabStop:m!=null}):o})})});XF.displayName=KF;var _fe={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function Efe(t,e){return e!=="rtl"?t:t==="ArrowLeft"?"ArrowRight":t==="ArrowRight"?"ArrowLeft":t}function Tfe(t,e,r){const n=Efe(t.key,r);if(!(e==="vertical"&&["ArrowLeft","ArrowRight"].includes(n))&&!(e==="horizontal"&&["ArrowUp","ArrowDown"].includes(n)))return _fe[n]}function YF(t,e=!1){const r=document.activeElement;for(const n of t)if(n===r||(n.focus({preventScroll:e}),document.activeElement!==r))return}function Cfe(t,e){return t.map((r,n)=>t[(e+n)%t.length])}var kfe=GF,Nfe=XF,Ib=["Enter"," "],Afe=["ArrowDown","PageUp","Home"],JF=["ArrowUp","PageDown","End"],jfe=[...Afe,...JF],Rfe={ltr:[...Ib,"ArrowRight"],rtl:[...Ib,"ArrowLeft"]},Ofe={ltr:["ArrowLeft"],rtl:["ArrowRight"]},wp="Menu",[zh,Pfe,Mfe]=Yh(wp),[Nc,QF]=Rs(wp,[Mfe,Ed,qF]),bv=Ed(),ZF=qF(),[Ife,Ac]=Nc(wp),[Dfe,bp]=Nc(wp),e5=t=>{const{__scopeMenu:e,open:r=!1,children:n,dir:s,onOpenChange:i,modal:o=!0}=t,a=bv(e),[l,u]=w.useState(null),d=w.useRef(!1),f=br(i),h=sp(s);return w.useEffect(()=>{const p=()=>{d.current=!0,document.addEventListener("pointerdown",g,{capture:!0,once:!0}),document.addEventListener("pointermove",g,{capture:!0,once:!0})},g=()=>d.current=!1;return document.addEventListener("keydown",p,{capture:!0}),()=>{document.removeEventListener("keydown",p,{capture:!0}),document.removeEventListener("pointerdown",g,{capture:!0}),document.removeEventListener("pointermove",g,{capture:!0})}},[]),c.jsx(gO,{...a,children:c.jsx(Ife,{scope:e,open:r,onOpenChange:f,content:l,onContentChange:u,children:c.jsx(Dfe,{scope:e,onClose:w.useCallback(()=>f(!1),[f]),isUsingKeyboardRef:d,dir:h,modal:o,children:n})})})};e5.displayName=wp;var Lfe="MenuAnchor",U_=w.forwardRef((t,e)=>{const{__scopeMenu:r,...n}=t,s=bv(r);return c.jsx(rS,{...s,...n,ref:e})});U_.displayName=Lfe;var H_="MenuPortal",[Ffe,t5]=Nc(H_,{forceMount:void 0}),r5=t=>{const{__scopeMenu:e,forceMount:r,children:n,container:s}=t,i=Ac(H_,e);return c.jsx(Ffe,{scope:e,forceMount:r,children:c.jsx(Nn,{present:r||i.open,children:c.jsx(Jh,{asChild:!0,container:s,children:n})})})};r5.displayName=H_;var ti="MenuContent",[Bfe,V_]=Nc(ti),n5=w.forwardRef((t,e)=>{const r=t5(ti,t.__scopeMenu),{forceMount:n=r.forceMount,...s}=t,i=Ac(ti,t.__scopeMenu),o=bp(ti,t.__scopeMenu);return c.jsx(zh.Provider,{scope:t.__scopeMenu,children:c.jsx(Nn,{present:n||i.open,children:c.jsx(zh.Slot,{scope:t.__scopeMenu,children:o.modal?c.jsx($fe,{...s,ref:e}):c.jsx(zfe,{...s,ref:e})})})})}),$fe=w.forwardRef((t,e)=>{const r=Ac(ti,t.__scopeMenu),n=w.useRef(null),s=ot(e,n);return w.useEffect(()=>{const i=n.current;if(i)return N_(i)},[]),c.jsx(W_,{...t,ref:s,trapFocus:r.open,disableOutsidePointerEvents:r.open,disableOutsideScroll:!0,onFocusOutside:Ce(t.onFocusOutside,i=>i.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>r.onOpenChange(!1)})}),zfe=w.forwardRef((t,e)=>{const r=Ac(ti,t.__scopeMenu);return c.jsx(W_,{...t,ref:e,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>r.onOpenChange(!1)})}),Ufe=ec("MenuContent.ScrollLock"),W_=w.forwardRef((t,e)=>{const{__scopeMenu:r,loop:n=!1,trapFocus:s,onOpenAutoFocus:i,onCloseAutoFocus:o,disableOutsidePointerEvents:a,onEntryFocus:l,onEscapeKeyDown:u,onPointerDownOutside:d,onFocusOutside:f,onInteractOutside:h,onDismiss:p,disableOutsideScroll:g,...m}=t,x=Ac(ti,r),v=bp(ti,r),y=bv(r),b=ZF(r),S=Pfe(r),[E,C]=w.useState(null),_=w.useRef(null),A=ot(e,_,x.onContentChange),N=w.useRef(0),D=w.useRef(""),V=w.useRef(0),H=w.useRef(null),U=w.useRef("right"),K=w.useRef(0),te=g?hv:w.Fragment,se=g?{as:Ufe,allowPinchZoom:!0}:void 0,he=O=>{var X,ae;const W=D.current+O,ee=S().filter(ce=>!ce.disabled),k=document.activeElement,z=(X=ee.find(ce=>ce.ref.current===k))==null?void 0:X.textValue,I=ee.map(ce=>ce.textValue),B=ehe(I,W,z),q=(ae=ee.find(ce=>ce.textValue===B))==null?void 0:ae.ref.current;(function ce(ne){D.current=ne,window.clearTimeout(N.current),ne!==""&&(N.current=window.setTimeout(()=>ce(""),1e3))})(W),q&&setTimeout(()=>q.focus())};w.useEffect(()=>()=>window.clearTimeout(N.current),[]),k_();const G=w.useCallback(O=>{var ee,k;return U.current===((ee=H.current)==null?void 0:ee.side)&&rhe(O,(k=H.current)==null?void 0:k.area)},[]);return c.jsx(Bfe,{scope:r,searchRef:D,onItemEnter:w.useCallback(O=>{G(O)&&O.preventDefault()},[G]),onItemLeave:w.useCallback(O=>{var W;G(O)||((W=_.current)==null||W.focus(),C(null))},[G]),onTriggerLeave:w.useCallback(O=>{G(O)&&O.preventDefault()},[G]),pointerGraceTimerRef:V,onPointerGraceIntentChange:w.useCallback(O=>{H.current=O},[]),children:c.jsx(te,{...se,children:c.jsx(dv,{asChild:!0,trapped:s,onMountAutoFocus:Ce(i,O=>{var W;O.preventDefault(),(W=_.current)==null||W.focus({preventScroll:!0})}),onUnmountAutoFocus:o,children:c.jsx(yd,{asChild:!0,disableOutsidePointerEvents:a,onEscapeKeyDown:u,onPointerDownOutside:d,onFocusOutside:f,onInteractOutside:h,onDismiss:p,children:c.jsx(kfe,{asChild:!0,...b,dir:v.dir,orientation:"vertical",loop:n,currentTabStopId:E,onCurrentTabStopIdChange:C,onEntryFocus:Ce(l,O=>{v.isUsingKeyboardRef.current||O.preventDefault()}),preventScrollOnEntryFocus:!0,children:c.jsx(nS,{role:"menu","aria-orientation":"vertical","data-state":y5(x.open),"data-radix-menu-content":"",dir:v.dir,...y,...m,ref:A,style:{outline:"none",...m.style},onKeyDown:Ce(m.onKeyDown,O=>{const ee=O.target.closest("[data-radix-menu-content]")===O.currentTarget,k=O.ctrlKey||O.altKey||O.metaKey,z=O.key.length===1;ee&&(O.key==="Tab"&&O.preventDefault(),!k&&z&&he(O.key));const I=_.current;if(O.target!==I||!jfe.includes(O.key))return;O.preventDefault();const q=S().filter(X=>!X.disabled).map(X=>X.ref.current);JF.includes(O.key)&&q.reverse(),Qfe(q)}),onBlur:Ce(t.onBlur,O=>{O.currentTarget.contains(O.target)||(window.clearTimeout(N.current),D.current="")}),onPointerMove:Ce(t.onPointerMove,Uh(O=>{const W=O.target,ee=K.current!==O.clientX;if(O.currentTarget.contains(W)&&ee){const k=O.clientX>K.current?"right":"left";U.current=k,K.current=O.clientX}}))})})})})})})});n5.displayName=ti;var Hfe="MenuGroup",q_=w.forwardRef((t,e)=>{const{__scopeMenu:r,...n}=t;return c.jsx(Ue.div,{role:"group",...n,ref:e})});q_.displayName=Hfe;var Vfe="MenuLabel",s5=w.forwardRef((t,e)=>{const{__scopeMenu:r,...n}=t;return c.jsx(Ue.div,{...n,ref:e})});s5.displayName=Vfe;var Wg="MenuItem",vA="menu.itemSelect",Sv=w.forwardRef((t,e)=>{const{disabled:r=!1,onSelect:n,...s}=t,i=w.useRef(null),o=bp(Wg,t.__scopeMenu),a=V_(Wg,t.__scopeMenu),l=ot(e,i),u=w.useRef(!1),d=()=>{const f=i.current;if(!r&&f){const h=new CustomEvent(vA,{bubbles:!0,cancelable:!0});f.addEventListener(vA,p=>n==null?void 0:n(p),{once:!0}),M2(f,h),h.defaultPrevented?u.current=!1:o.onClose()}};return c.jsx(i5,{...s,ref:l,disabled:r,onClick:Ce(t.onClick,d),onPointerDown:f=>{var h;(h=t.onPointerDown)==null||h.call(t,f),u.current=!0},onPointerUp:Ce(t.onPointerUp,f=>{var h;u.current||(h=f.currentTarget)==null||h.click()}),onKeyDown:Ce(t.onKeyDown,f=>{const h=a.searchRef.current!=="";r||h&&f.key===" "||Ib.includes(f.key)&&(f.currentTarget.click(),f.preventDefault())})})});Sv.displayName=Wg;var i5=w.forwardRef((t,e)=>{const{__scopeMenu:r,disabled:n=!1,textValue:s,...i}=t,o=V_(Wg,r),a=ZF(r),l=w.useRef(null),u=ot(e,l),[d,f]=w.useState(!1),[h,p]=w.useState("");return w.useEffect(()=>{const g=l.current;g&&p((g.textContent??"").trim())},[i.children]),c.jsx(zh.ItemSlot,{scope:r,disabled:n,textValue:s??h,children:c.jsx(Nfe,{asChild:!0,...a,focusable:!n,children:c.jsx(Ue.div,{role:"menuitem","data-highlighted":d?"":void 0,"aria-disabled":n||void 0,"data-disabled":n?"":void 0,...i,ref:u,onPointerMove:Ce(t.onPointerMove,Uh(g=>{n?o.onItemLeave(g):(o.onItemEnter(g),g.defaultPrevented||g.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:Ce(t.onPointerLeave,Uh(g=>o.onItemLeave(g))),onFocus:Ce(t.onFocus,()=>f(!0)),onBlur:Ce(t.onBlur,()=>f(!1))})})})}),Wfe="MenuCheckboxItem",o5=w.forwardRef((t,e)=>{const{checked:r=!1,onCheckedChange:n,...s}=t;return c.jsx(d5,{scope:t.__scopeMenu,checked:r,children:c.jsx(Sv,{role:"menuitemcheckbox","aria-checked":qg(r)?"mixed":r,...s,ref:e,"data-state":K_(r),onSelect:Ce(s.onSelect,()=>n==null?void 0:n(qg(r)?!0:!r),{checkForDefaultPrevented:!1})})})});o5.displayName=Wfe;var a5="MenuRadioGroup",[qfe,Gfe]=Nc(a5,{value:void 0,onValueChange:()=>{}}),l5=w.forwardRef((t,e)=>{const{value:r,onValueChange:n,...s}=t,i=br(n);return c.jsx(qfe,{scope:t.__scopeMenu,value:r,onValueChange:i,children:c.jsx(q_,{...s,ref:e})})});l5.displayName=a5;var c5="MenuRadioItem",u5=w.forwardRef((t,e)=>{const{value:r,...n}=t,s=Gfe(c5,t.__scopeMenu),i=r===s.value;return c.jsx(d5,{scope:t.__scopeMenu,checked:i,children:c.jsx(Sv,{role:"menuitemradio","aria-checked":i,...n,ref:e,"data-state":K_(i),onSelect:Ce(n.onSelect,()=>{var o;return(o=s.onValueChange)==null?void 0:o.call(s,r)},{checkForDefaultPrevented:!1})})})});u5.displayName=c5;var G_="MenuItemIndicator",[d5,Kfe]=Nc(G_,{checked:!1}),f5=w.forwardRef((t,e)=>{const{__scopeMenu:r,forceMount:n,...s}=t,i=Kfe(G_,r);return c.jsx(Nn,{present:n||qg(i.checked)||i.checked===!0,children:c.jsx(Ue.span,{...s,ref:e,"data-state":K_(i.checked)})})});f5.displayName=G_;var Xfe="MenuSeparator",h5=w.forwardRef((t,e)=>{const{__scopeMenu:r,...n}=t;return c.jsx(Ue.div,{role:"separator","aria-orientation":"horizontal",...n,ref:e})});h5.displayName=Xfe;var Yfe="MenuArrow",p5=w.forwardRef((t,e)=>{const{__scopeMenu:r,...n}=t,s=bv(r);return c.jsx(sS,{...s,...n,ref:e})});p5.displayName=Yfe;var Jfe="MenuSub",[Npe,m5]=Nc(Jfe),gf="MenuSubTrigger",g5=w.forwardRef((t,e)=>{const r=Ac(gf,t.__scopeMenu),n=bp(gf,t.__scopeMenu),s=m5(gf,t.__scopeMenu),i=V_(gf,t.__scopeMenu),o=w.useRef(null),{pointerGraceTimerRef:a,onPointerGraceIntentChange:l}=i,u={__scopeMenu:t.__scopeMenu},d=w.useCallback(()=>{o.current&&window.clearTimeout(o.current),o.current=null},[]);return w.useEffect(()=>d,[d]),w.useEffect(()=>{const f=a.current;return()=>{window.clearTimeout(f),l(null)}},[a,l]),c.jsx(U_,{asChild:!0,...u,children:c.jsx(i5,{id:s.triggerId,"aria-haspopup":"menu","aria-expanded":r.open,"aria-controls":s.contentId,"data-state":y5(r.open),...t,ref:cx(e,s.onTriggerChange),onClick:f=>{var h;(h=t.onClick)==null||h.call(t,f),!(t.disabled||f.defaultPrevented)&&(f.currentTarget.focus(),r.open||r.onOpenChange(!0))},onPointerMove:Ce(t.onPointerMove,Uh(f=>{i.onItemEnter(f),!f.defaultPrevented&&!t.disabled&&!r.open&&!o.current&&(i.onPointerGraceIntentChange(null),o.current=window.setTimeout(()=>{r.onOpenChange(!0),d()},100))})),onPointerLeave:Ce(t.onPointerLeave,Uh(f=>{var p,g;d();const h=(p=r.content)==null?void 0:p.getBoundingClientRect();if(h){const m=(g=r.content)==null?void 0:g.dataset.side,x=m==="right",v=x?-5:5,y=h[x?"left":"right"],b=h[x?"right":"left"];i.onPointerGraceIntentChange({area:[{x:f.clientX+v,y:f.clientY},{x:y,y:h.top},{x:b,y:h.top},{x:b,y:h.bottom},{x:y,y:h.bottom}],side:m}),window.clearTimeout(a.current),a.current=window.setTimeout(()=>i.onPointerGraceIntentChange(null),300)}else{if(i.onTriggerLeave(f),f.defaultPrevented)return;i.onPointerGraceIntentChange(null)}})),onKeyDown:Ce(t.onKeyDown,f=>{var p;const h=i.searchRef.current!=="";t.disabled||h&&f.key===" "||Rfe[n.dir].includes(f.key)&&(r.onOpenChange(!0),(p=r.content)==null||p.focus(),f.preventDefault())})})})});g5.displayName=gf;var x5="MenuSubContent",v5=w.forwardRef((t,e)=>{const r=t5(ti,t.__scopeMenu),{forceMount:n=r.forceMount,...s}=t,i=Ac(ti,t.__scopeMenu),o=bp(ti,t.__scopeMenu),a=m5(x5,t.__scopeMenu),l=w.useRef(null),u=ot(e,l);return c.jsx(zh.Provider,{scope:t.__scopeMenu,children:c.jsx(Nn,{present:n||i.open,children:c.jsx(zh.Slot,{scope:t.__scopeMenu,children:c.jsx(W_,{id:a.contentId,"aria-labelledby":a.triggerId,...s,ref:u,align:"start",side:o.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:d=>{var f;o.isUsingKeyboardRef.current&&((f=l.current)==null||f.focus()),d.preventDefault()},onCloseAutoFocus:d=>d.preventDefault(),onFocusOutside:Ce(t.onFocusOutside,d=>{d.target!==a.trigger&&i.onOpenChange(!1)}),onEscapeKeyDown:Ce(t.onEscapeKeyDown,d=>{o.onClose(),d.preventDefault()}),onKeyDown:Ce(t.onKeyDown,d=>{var p;const f=d.currentTarget.contains(d.target),h=Ofe[o.dir].includes(d.key);f&&h&&(i.onOpenChange(!1),(p=a.trigger)==null||p.focus(),d.preventDefault())})})})})})});v5.displayName=x5;function y5(t){return t?"open":"closed"}function qg(t){return t==="indeterminate"}function K_(t){return qg(t)?"indeterminate":t?"checked":"unchecked"}function Qfe(t){const e=document.activeElement;for(const r of t)if(r===e||(r.focus(),document.activeElement!==e))return}function Zfe(t,e){return t.map((r,n)=>t[(e+n)%t.length])}function ehe(t,e,r){const s=e.length>1&&Array.from(e).every(u=>u===e[0])?e[0]:e,i=r?t.indexOf(r):-1;let o=Zfe(t,Math.max(i,0));s.length===1&&(o=o.filter(u=>u!==r));const l=o.find(u=>u.toLowerCase().startsWith(s.toLowerCase()));return l!==r?l:void 0}function the(t,e){const{x:r,y:n}=t;let s=!1;for(let i=0,o=e.length-1;i<e.length;o=i++){const a=e[i],l=e[o],u=a.x,d=a.y,f=l.x,h=l.y;d>n!=h>n&&r<(f-u)*(n-d)/(h-d)+u&&(s=!s)}return s}function rhe(t,e){if(!e)return!1;const r={x:t.clientX,y:t.clientY};return the(r,e)}function Uh(t){return e=>e.pointerType==="mouse"?t(e):void 0}var nhe=e5,she=U_,ihe=r5,ohe=n5,ahe=q_,lhe=s5,che=Sv,uhe=o5,dhe=l5,fhe=u5,hhe=f5,phe=h5,mhe=p5,ghe=g5,xhe=v5,_v="DropdownMenu",[vhe,Ape]=Rs(_v,[QF]),Kn=QF(),[yhe,w5]=vhe(_v),b5=t=>{const{__scopeDropdownMenu:e,children:r,dir:n,open:s,defaultOpen:i,onOpenChange:o,modal:a=!0}=t,l=Kn(e),u=w.useRef(null),[d,f]=so({prop:s,defaultProp:i??!1,onChange:o,caller:_v});return c.jsx(yhe,{scope:e,triggerId:Oi(),triggerRef:u,contentId:Oi(),open:d,onOpenChange:f,onOpenToggle:w.useCallback(()=>f(h=>!h),[f]),modal:a,children:c.jsx(nhe,{...l,open:d,onOpenChange:f,dir:n,modal:a,children:r})})};b5.displayName=_v;var S5="DropdownMenuTrigger",_5=w.forwardRef((t,e)=>{const{__scopeDropdownMenu:r,disabled:n=!1,...s}=t,i=w5(S5,r),o=Kn(r);return c.jsx(she,{asChild:!0,...o,children:c.jsx(Ue.button,{type:"button",id:i.triggerId,"aria-haspopup":"menu","aria-expanded":i.open,"aria-controls":i.open?i.contentId:void 0,"data-state":i.open?"open":"closed","data-disabled":n?"":void 0,disabled:n,...s,ref:cx(e,i.triggerRef),onPointerDown:Ce(t.onPointerDown,a=>{!n&&a.button===0&&a.ctrlKey===!1&&(i.onOpenToggle(),i.open||a.preventDefault())}),onKeyDown:Ce(t.onKeyDown,a=>{n||(["Enter"," "].includes(a.key)&&i.onOpenToggle(),a.key==="ArrowDown"&&i.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(a.key)&&a.preventDefault())})})})});_5.displayName=S5;var whe="DropdownMenuPortal",E5=t=>{const{__scopeDropdownMenu:e,...r}=t,n=Kn(e);return c.jsx(ihe,{...n,...r})};E5.displayName=whe;var T5="DropdownMenuContent",C5=w.forwardRef((t,e)=>{const{__scopeDropdownMenu:r,...n}=t,s=w5(T5,r),i=Kn(r),o=w.useRef(!1);return c.jsx(ohe,{id:s.contentId,"aria-labelledby":s.triggerId,...i,...n,ref:e,onCloseAutoFocus:Ce(t.onCloseAutoFocus,a=>{var l;o.current||(l=s.triggerRef.current)==null||l.focus(),o.current=!1,a.preventDefault()}),onInteractOutside:Ce(t.onInteractOutside,a=>{const l=a.detail.originalEvent,u=l.button===0&&l.ctrlKey===!0,d=l.button===2||u;(!s.modal||d)&&(o.current=!0)}),style:{...t.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)"}})});C5.displayName=T5;var bhe="DropdownMenuGroup",She=w.forwardRef((t,e)=>{const{__scopeDropdownMenu:r,...n}=t,s=Kn(r);return c.jsx(ahe,{...s,...n,ref:e})});She.displayName=bhe;var _he="DropdownMenuLabel",k5=w.forwardRef((t,e)=>{const{__scopeDropdownMenu:r,...n}=t,s=Kn(r);return c.jsx(lhe,{...s,...n,ref:e})});k5.displayName=_he;var Ehe="DropdownMenuItem",N5=w.forwardRef((t,e)=>{const{__scopeDropdownMenu:r,...n}=t,s=Kn(r);return c.jsx(che,{...s,...n,ref:e})});N5.displayName=Ehe;var The="DropdownMenuCheckboxItem",A5=w.forwardRef((t,e)=>{const{__scopeDropdownMenu:r,...n}=t,s=Kn(r);return c.jsx(uhe,{...s,...n,ref:e})});A5.displayName=The;var Che="DropdownMenuRadioGroup",khe=w.forwardRef((t,e)=>{const{__scopeDropdownMenu:r,...n}=t,s=Kn(r);return c.jsx(dhe,{...s,...n,ref:e})});khe.displayName=Che;var Nhe="DropdownMenuRadioItem",j5=w.forwardRef((t,e)=>{const{__scopeDropdownMenu:r,...n}=t,s=Kn(r);return c.jsx(fhe,{...s,...n,ref:e})});j5.displayName=Nhe;var Ahe="DropdownMenuItemIndicator",R5=w.forwardRef((t,e)=>{const{__scopeDropdownMenu:r,...n}=t,s=Kn(r);return c.jsx(hhe,{...s,...n,ref:e})});R5.displayName=Ahe;var jhe="DropdownMenuSeparator",O5=w.forwardRef((t,e)=>{const{__scopeDropdownMenu:r,...n}=t,s=Kn(r);return c.jsx(phe,{...s,...n,ref:e})});O5.displayName=jhe;var Rhe="DropdownMenuArrow",Ohe=w.forwardRef((t,e)=>{const{__scopeDropdownMenu:r,...n}=t,s=Kn(r);return c.jsx(mhe,{...s,...n,ref:e})});Ohe.displayName=Rhe;var Phe="DropdownMenuSubTrigger",P5=w.forwardRef((t,e)=>{const{__scopeDropdownMenu:r,...n}=t,s=Kn(r);return c.jsx(ghe,{...s,...n,ref:e})});P5.displayName=Phe;var Mhe="DropdownMenuSubContent",M5=w.forwardRef((t,e)=>{const{__scopeDropdownMenu:r,...n}=t,s=Kn(r);return c.jsx(xhe,{...s,...n,ref:e,style:{...t.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)"}})});M5.displayName=Mhe;var Ihe=b5,Dhe=_5,Lhe=E5,I5=C5,D5=k5,L5=N5,F5=A5,B5=j5,$5=R5,z5=O5,U5=P5,H5=M5;const yA=Ihe,wA=Dhe,Fhe=w.forwardRef(({className:t,inset:e,children:r,...n},s)=>c.jsxs(U5,{ref:s,className:Ke("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent",e&&"pl-8",t),...n,children:[r,c.jsx(bR,{className:"ml-auto h-4 w-4"})]}));
935Fhe.displayName=U5.displayName;const Bhe=w.forwardRef(({className:t,...e},r)=>c.jsx(H5,{ref:r,className:Ke("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",t),...e}));Bhe.displayName=H5.displayName;const Db=w.forwardRef(({className:t,sideOffset:e=4,...r},n)=>c.jsx(Lhe,{children:c.jsx(I5,{ref:n,sideOffset:e,className:Ke("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",t),...r})}));Db.displayName=I5.displayName;const Km=w.forwardRef(({className:t,inset:e,...r},n)=>c.jsx(L5,{ref:n,className:Ke("relative flex cursor-default select-none items-center 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",e&&"pl-8",t),...r}));Km.displayName=L5.displayName;const $he=w.forwardRef(({className:t,children:e,checked:r,...n},s)=>c.jsxs(F5,{ref:s,className:Ke("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",t),checked:r,...n,children:[c.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:c.jsx($5,{children:c.jsx(px,{className:"h-4 w-4"})})}),e]}));$he.displayName=F5.displayName;const zhe=w.forwardRef(({className:t,children:e,...r},n)=>c.jsxs(B5,{ref:n,className:Ke("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",t),...r,children:[c.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:c.jsx($5,{children:c.jsx(P7,{className:"h-2 w-2 fill-current"})})}),e]}));zhe.displayName=B5.displayName;const Uhe=w.forwardRef(({className:t,inset:e,...r},n)=>c.jsx(D5,{ref:n,className:Ke("px-2 py-1.5 text-sm font-semibold",e&&"pl-8",t),...r}));Uhe.displayName=D5.displayName;const Hhe=w.forwardRef(({className:t,...e},r)=>c.jsx(z5,{ref:r,className:Ke("-mx-1 my-1 h-px bg-muted",t),...e}));Hhe.displayName=z5.displayName;const Lb=()=>JSON.parse(localStorage.getItem("admin_session")||"{}").admin_id||"";async function kt(t,e={}){const{data:r,error:n}=await _r.functions.invoke("email-api",{body:{action:t,admin_id:Lb(),...e}});if(n)throw new Error(n.message||"Erro na requisição");if(r!=null&&r.error)throw new Error(r.error);return r}const ht={listMessages(t,e=1,r=25,n){return kt("list_messages",{folder:t,page:e,per_page:r,...n})},getMessage(t){return kt("get_message",{message_id:t})},getThread(t){return kt("get_thread",{thread_id:t})},moveMessage(t,e){return kt("move_message",{message_id:t,folder:e})},toggleRead(t){return kt("toggle_read",{message_id:t})},toggleStar(t){return kt("toggle_star",{message_id:t})},deleteMessage(t,e=!1){return kt("delete_message",{message_id:t,permanent:e})},searchMessages(t,e){return kt("search_messages",{query:t,folder:e})},async sendEmail(t){var s;const e=[];if((s=t.attachments)!=null&&s.length)for(const i of t.attachments){const o=await Vhe(i);e.push({filename:i.name,content:o,content_type:i.type,size:i.size})}const{data:r,error:n}=await _r.functions.invoke("email-send",{body:{admin_id:Lb(),to:t.to,cc:t.cc||[],bcc:t.bcc||[],subject:t.subject,body_html:t.body_html,body_text:t.body_text,attachments:e,reply_to_id:t.reply_to_id,forward_id:t.forward_id,message_type:t.message_type||"new",account_id:t.account_id}});if(n)throw new Error(n.message||"Erro ao enviar email");if(r!=null&&r.error)throw new Error(r.error);return r},saveDraft(t){return kt("save_draft",t)},getTags(){return kt("get_tags")}
935,createTag(t,e){return kt("create_tag",{name:t,color:e})},deleteTag(t){return kt("delete_tag",{tag_id:t})},toggleTag(t,e){return kt("toggle_tag",{message_id:t,tag_id:e})},getStats(){return kt("get_stats")},getFolderCounts(){return kt("get_folder_counts")},getSettings(){return kt("get_settings")},updateSettings(t){return kt("update_settings",{settings:t})},getAccount(){return kt("get_account")},listAccounts(){return kt("list_accounts")},setupAccount(t,e,r,n){return kt("setup_account",{email_address:t,display_name:e,signature_html:r,account_id:n})},createAccount(t,e,r){return kt("create_account",{email_address:t,display_name:e,signature_html:r})},deleteAccount(t){return kt("delete_account",{account_id:t})},setDefaultAccount(t){return kt("set_default_account",{account_id:t})},refetchContent(t){return kt("refetch_content",{message_id:t})},refetchAllEmpty(){return kt("refetch_all_empty")},getAttachmentUrl(t){return kt("get_attachment_url",{storage_path:t})},getAuditLogs(t=1){return kt("get_audit_logs",{page:t})},async generateAiReply(t){const{data:e,error:r}=await _r.functions.invoke("email-ai-reply",{body:{admin_id:Lb(),...t}});if(r)throw new Error(r.message||"Erro ao gerar resposta com IA");if(e!=null&&e.error)throw new Error(e.error);return e},listForwardRules(){return kt("list_forward_rules")},createForwardRule(t){return kt("create_forward_rule",t)},updateForwardRule(t,e){return kt("update_forward_rule",{rule_id:t,...e})},deleteForwardRule(t){return kt("delete_forward_rule",{rule_id:t})}};function Vhe(t){return new Promise((e,r)=>{const n=new FileReader;n.onload=()=>{const s=n.result;e(s.includes(",")?s.split(",")[1]:s)},n.onerror=r,n.readAsDataURL(t)})}const Whe=({message:t,threadMessages:e,onReply:r,onReplyAll:n,onForward:s,onToggleStar:i,onArchive:o,onDelete:a,onToggleRead:l,onDownloadAttachment:u,allTags:d,onToggleTag:f,onMoveToFolder:h,onBack:p,onMessageUpdate:g})=>{var D,V,H;const{toast:m}=uo(),[x,v]=w.useState(!1),y=w.useMemo(()=>t.body_html?xA.sanitize(t.body_html,{ALLOWED_TAGS:["p","br","b","i","u","strong","em","a","ul","ol","li","h1","h2","h3","h4","blockquote","div","span","table","thead","tbody","tr","td","th","img","hr","pre","code","sup","sub","small","font","center","style","section","article","header","footer","nav","main","figure","figcaption"],ALLOWED_ATTR:["href","target","rel","src","alt","width","height","style","class","colspan","rowspan","align","valign","color","size","face","dir","border","cellpadding","cellspacing","bgcolor","background"],ALLOW_DATA_ATTR:!1,ADD_ATTR:["target"]}):"",[t.body_html]),b=((D=t.recipients)==null?void 0:D.filter(U=>U.recipient_type==="to"))||[],S=((V=t.recipients)==null?void 0:V.filter(U=>U.recipient_type==="cc"))||[],E=t.tags||[],C=t.attachments||[];!t.body_html&&t.body_text;const _=async()=>{v(!0);try{const U=await ht.refetchContent(t.id);if(U.success&&!U.already_has_content&&(U.html_length>0||U.text_length>0)){m({title:"Conteúdo recuperado!",description:"O email foi atualizado."});const K=await ht.getMessage(t.id);g==null||g(K.message)}else U.already_has_content?m({title:"Conteúdo já disponível"}):m({variant:"destructive",title:"Sem conteúdo disponível",description:"O provedor não retornou o corpo do email. Verifique a configuração do webhook inbound no Resend."})}catch(U){m({variant:"destructive",title:"Erro",description:U.message})}finally{v(!1)}},A=U=>new Date(U).toLocaleString("pt-BR",{day:"2-digit",month:"long",year:"numeric",hour:"2-digit",minute:"2-digit"}),N=U=>U?U<1024?`${U} B`:U<1024*1024?`${(U/1024).toFixed(1)} KB`:`${(U/(1024*1024)).toFixed(1)} MB`:"";return c.jsxs("div",{className:"flex-1 flex flex-col h-full bg-background",children:[c.jsxs("div",{className:"flex items-center gap-1 px-2 md:px-4 py-2 border-b border-border bg-card/50 overflow-x-auto shrink-0",children:[p&&c.jsx(fe,{variant:"ghost",size:"sm",onClick:p,className:"md:hidden h-7 w-7 p-0 shrink-0",children:c.jsx(Os,{className:"w-4 h-4"})}),c.jsxs(fe,{variant:"ghost",size:"sm",onClick:r,className:"gap-1.5 text-xs shrink-0",children:[c.jsx(gT,{className:"w-3.5 h-3.5"})," ",c.jsx("span",{className:"hidden sm:inline",children:"Responder"})]}),c.jsxs(fe,{variant:"ghost",size:"sm",onClick:n,className:"gap-1.5 text-xs shrink-0",children:[c.jsx(i$,{className:"w-3.5 h-3.5"})," ",c.jsx("span",{className:"hidden sm:inline",children:"Todos"})]}),c.jsxs(fe,{variant:"ghost",size:"sm",onClick:s,className:"gap-1.5 text-xs shrink-0",children:[c.jsx(mT,{className:"w-3.5 h-3.5"})," ",c.jsx("span",{className:"hidden sm:inline",children:"Encaminhar"})]}),c.jsx("div",{className:"flex-1"}),c.jsx(fe,{variant:"ghost",size:"sm",onClick:i,className:"h-7 w-7 p-0 shrink-0",children:c.jsx(ep,{className:`w-3.5 h-3.5 ${t.is_starred?"fill-yellow-400 text-yellow-400":""}`})}),c.jsx(fe,{variant:"ghost",size:"sm",onClick:l,className:"h-7 w-7 p-0 shrink-0",title:t.is_read?"Marcar não lido":"Marcar lido",children:t.is_read?c.jsx(y0,{className:"w-3.5 h-3.5"}):c.jsx(Ss,{className:"w-3.5 h-3.5"})}),c.jsxs(yA,{children:[c.jsx(wA,{asChild:!0,children:c.jsx(fe,{variant:"ghost",size:"sm",className:"h-7 w-7 p-0 shrink-0",children:c.jsx(W2,{className:"w-3.5 h-3.5"})})}),c.jsx(Db,{align:"end",children:d.length===0?c.jsx(Km,{disabled:!0,children:"Nenhuma tag criada"}):d.map(U=>{const K=E.some(te=>te.id===U.id);return c.jsxs(Km,{onClick:()=>f(U.id),children:[c.jsx("span",{className:"w-2.5 h-2.5 rounded-full mr-2",style:{backgroundColor:U.color}}),U.name,K&&c.jsx("span",{className:"ml-auto text-primary",children:"✓"})]},U.id)})})]}),c.jsx(fe,{variant:"ghost",size:"sm",onClick:o,className:"h-7 w-7 p-0 shrink-0",title:"Arquivar",children:c.jsx(F2,{className:"w-3.5 h-3.5"})}),c.jsxs(yA,{children:[c.jsx(wA,{asChild:!0,children:c.jsxs(fe,{variant:"ghost",size:"sm",className:"h-7 gap-1 text-xs shrink-0",children:["Mover ",c.jsx(Zh,{className:"w-3 h-3"})]})}),c.jsx(Db,{align:"end",children:["inbox","archive","spam","trash"].map(U=>c.jsx(Km,{onClick:()=>h(U),children:U==="inbox"?"Caixa de Entrada":U==="archive"?"Arquivados":U==="spam"?"Spam":"Lixeira"},U))})]}),c.jsx(fe,{variant:"ghost",size:"sm",onClick:a,className:"h-7 w-7 p-0 text-destructive hover:text-destructive shrink-0",title:"Excluir",children:c.jsx(Ca,{className:"w-3.5 h-3.5"})})]}),c.jsx(vp,{className:"flex-1",children:c.jsxs("div",{className:"p-4 md:p-6 max-w-4xl mx-auto",children:[c.jsx("h1",{className:"text-lg md:text-xl font-semibold mb-4",children:t.subject||"(sem assunto)"}),E.length>0&&c.jsx("div",{className:"flex flex-wrap gap-1.5 mb-3",children:E.map(U=>c.jsx(ys,{variant:"secondary",className:"text-xs",style:{borderColor:U.color,borderLeftWidth:3},children:U.name},U.id))}),c.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-start justify-between mb-6 pb-4 border-b border-border gap-2",children:[c.jsxs("div",{className:"space-y-1",children:[c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx("div",{className:"w-8 h-8 rounded-full bg-primary/10 flex items-center justify-center text-sm font-semibold text-primary shrink-0",children:(H=(t.from_name||t.from_email)[0])==null?void 0:H.toUpperCase()}),c.jsxs("div",{className:"min-w-0",children:[c.jsx("p",{className:"font-medium text-sm truncate",children:t.from_name||t.from_email}),c.jsx("p",{className:"text-xs text-muted-foreground truncate",children:t.from_email})]})]}),b.length>0&&c.jsxs("p",{className:"text-xs text-muted-foreground ml-10 truncate",children:["Para: ",b.map(U=>
935U.name||U.email).join(", ")]}),S.length>0&&c.jsxs("p",{className:"text-xs text-muted-foreground ml-10 truncate",children:["Cc: ",S.map(U=>U.name||U.email).join(", ")]})]}),c.jsx("span",{className:"text-xs text-muted-foreground whitespace-nowrap",children:A(t.sent_at||t.received_at||t.created_at)})]}),y?c.jsx("div",{className:"prose prose-sm max-w-none mb-6 overflow-x-auto [&_img]:max-w-full [&_table]:text-sm [&_table]:w-full",dangerouslySetInnerHTML:{__html:y}}):t.body_text?c.jsx("pre",{className:"whitespace-pre-wrap text-sm font-sans mb-6 break-words",children:t.body_text}):c.jsxs("div",{className:"text-center py-8 mb-6",children:[c.jsx("p",{className:"text-muted-foreground italic mb-3",children:"Sem conteúdo disponível"}),t.direction==="inbound"&&c.jsxs(fe,{variant:"outline",size:"sm",onClick:_,disabled:x,className:"gap-1.5",children:[x?c.jsx(Es,{className:"w-3.5 h-3.5 animate-spin"}):c.jsx(xx,{className:"w-3.5 h-3.5"}),x?"Buscando...":"Tentar recuperar conteúdo"]})]}),C.length>0&&c.jsxs("div",{className:"border rounded-lg p-4 bg-muted/30",children:[c.jsxs("p",{className:"text-sm font-medium mb-3 flex items-center gap-1.5",children:[c.jsx(Ri,{className:"w-4 h-4"})," ",C.length," anexo",C.length>1?"s":""]}),c.jsx("div",{className:"grid gap-2",children:C.map(U=>c.jsxs("div",{className:"flex items-center justify-between bg-background rounded-md px-3 py-2 border gap-2",children:[c.jsxs("div",{className:"flex items-center gap-2 min-w-0",children:[c.jsx(Ri,{className:"w-3.5 h-3.5 text-muted-foreground shrink-0"}),c.jsx("span",{className:"text-sm truncate",children:U.file_name}),U.file_size&&c.jsxs("span",{className:"text-xs text-muted-foreground shrink-0",children:["(",N(U.file_size),")"]})]}),c.jsxs(fe,{variant:"ghost",size:"sm",onClick:()=>u(U.storage_path,U.file_name),className:"h-7 gap-1 text-xs shrink-0",children:[c.jsx(ER,{className:"w-3 h-3"})," Baixar"]})]},U.id))})]}),e&&e.length>1&&c.jsxs("div",{className:"mt-8 border-t pt-6",children:[c.jsxs("h3",{className:"text-sm font-semibold mb-4",children:["Conversa (",e.length," mensagens)"]}),c.jsx("div",{className:"space-y-4",children:e.filter(U=>U.id!==t.id).map(U=>{var se,he,G;const K=U.body_html?xA.sanitize(U.body_html,{ALLOWED_TAGS:["p","br","b","i","u","strong","em","a","ul","ol","li","blockquote","div","span","table","tr","td","th","img"],ALLOWED_ATTR:["href","target","style","src","alt","width","height","align","bgcolor"]}):"",te=U.attachments||[];return c.jsxs("div",{className:"border rounded-lg p-4 bg-muted/20",children:[c.jsxs("div",{className:"flex items-center justify-between mb-2 gap-2",children:[c.jsxs("div",{className:"flex items-center gap-2 min-w-0",children:[c.jsx("div",{className:"w-6 h-6 rounded-full bg-primary/10 flex items-center justify-center text-xs font-semibold text-primary shrink-0",children:(se=(U.from_name||U.from_email)[0])==null?void 0:se.toUpperCase()}),c.jsx("span",{className:"text-sm font-medium truncate",children:U.from_name||U.from_email}),c.jsx(ys,{variant:"outline",className:"text-xs shrink-0",children:U.direction==="inbound"?"Recebido":"Enviado"})]}),c.jsx("span",{className:"text-xs text-muted-foreground whitespace-nowrap",children:A(U.created_at)})]}),K?c.jsx("div",{className:"text-sm text-muted-foreground pl-8 prose prose-sm max-w-none",dangerouslySetInnerHTML:{__html:K}}):c.jsxs("div",{className:"text-sm text-muted-foreground pl-8",children:[((he=U.body_text)==null?void 0:he.slice(0,300))||"Sem conteúdo",(((G=U.body_text)==null?void 0:G.length)||0)>300&&"..."]}),te.length>0&&c.jsx("div",{className:"pl-8 mt-2 flex flex-wrap gap-2",children:te.map(O=>c.jsxs(fe,{variant:"outline",size:"sm",onClick:()=>u(O.storage_path,O.file_name),className:"h-6 text-xs gap-1",children:[c.jsx(Ri,{className:"w-3 h-3"})," ",O.file_name]},O.id))})]},U.id)})})]})]})}),c.jsx("div",{className:"border-t border-border p-3 bg-card/50 shrink-0",children:c.jsxs("div",{className:"flex gap-2",children:[c.jsxs(fe,{variant:"outline",size:"sm",onClick:r,className:"gap-1.5",children:[c.jsx(gT,{className:"w-3.5 h-3.5"})," Responder"]}),c.jsxs(fe,{variant:"outline",size:"sm",onClick:s,className:"gap-1.5",children:[c.jsx(mT,{className:"w-3.5 h-3.5"})," Encaminhar"]})]})})]})};var qhe=xr.create({name:"textAlign",addOptions(){return{types:[],alignments:["left","center","right","justify"],defaultAlignment:null}},addGlobalAttributes(){return[{types:this.options.types,attributes:{textAlign:{default:this.options.defaultAlignment,parseHTML:t=>{const e=t.style.textAlign;return this.options.alignments.includes(e)?e:this.options.defaultAlignment},renderHTML:t=>t.textAlign?{style:`text-align: ${t.textAlign}`}:{}}}}]},addCommands(){return{setTextAlign:t=>({commands:e})=>this.options.alignments.includes(t)?this.options.types.map(r=>e.updateAttributes(r,{textAlign:t})).some(r=>r):!1,unsetTextAlign:()=>({commands:t})=>this.options.types.map(e=>t.resetAttributes(e,"textAlign")).some(e=>e),toggleTextAlign:t=>({editor:e,commands:r})=>this.options.alignments.includes(t)?e.isActive({textAlign:t})?r.unsetTextAlign():r.setTextAlign(t):!1}}
935,addKeyboardShortcuts(){return{"Mod-Shift-l":()=>this.editor.commands.setTextAlign("left"),"Mod-Shift-e":()=>this.editor.commands.setTextAlign("center"),"Mod-Shift-r":()=>this.editor.commands.setTextAlign("right"),"Mod-Shift-j":()=>this.editor.commands.setTextAlign("justify")}}}),Ghe=qhe;const X_=w.forwardRef(({className:t,...e},r)=>c.jsx("textarea",{className:Ke("flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",t),ref:r,...e}));X_.displayName="Textarea";const Khe=({content:t,onChange:e,placeholder:r})=>{const[n,s]=w.useState(!1),[i,o]=w.useState(t),a=K3({extensions:[wI.configure({heading:{levels:[1,2,3]}}),xte,Ghe.configure({types:["heading","paragraph"]}),rte.configure({openOnClick:!1,HTMLAttributes:{rel:"noopener noreferrer",target:"_blank"}})],content:t,onUpdate:({editor:f})=>{const h=f.getHTML(),p=f.getText();e(h,p),o(h)}});if(!a)return null;const l=f=>{o(f),a.commands.setContent(f),e(f,a.getText())},u=()=>{const f=window.prompt("URL do link:");f&&a.chain().focus().extendMarkRange("link").setLink({href:f}).run()},d=({onClick:f,active:h,children:p,title:g})=>c.jsx(fe,{type:"button",variant:"ghost",size:"sm",onClick:f,title:g,className:`h-8 w-8 p-0 ${h?"bg-accent text-accent-foreground":""}`,children:p});return c.jsxs("div",{className:"border border-border rounded-lg overflow-hidden bg-background",children:[c.jsxs("div",{className:"bg-muted/50 px-2 py-1.5 border-b border-border flex flex-wrap gap-0.5 items-center",children:[c.jsx(d,{onClick:()=>a.chain().focus().toggleBold().run(),active:a.isActive("bold"),title:"Negrito",children:c.jsx(vR,{className:"w-3.5 h-3.5"})}),c.jsx(d,{onClick:()=>a.chain().focus().toggleItalic().run(),active:a.isActive("italic"),title:"Itálico",children:c.jsx(jR,{className:"w-3.5 h-3.5"})}),c.jsx(d,{onClick:()=>a.chain().focus().toggleUnderline().run(),active:a.isActive("underline"),title:"Sublinhado",children:c.jsx(h$,{className:"w-3.5 h-3.5"})}),c.jsx("div",{className:"w-px h-5 bg-border mx-1"}),c.jsx(d,{onClick:()=>a.chain().focus().toggleHeading({level:1}).run(),active:a.isActive("heading",{level:1}),title:"Título 1",children:c.jsx(H7,{className:"w-3.5 h-3.5"})}),c.jsx(d,{onClick:()=>a.chain().focus().toggleHeading({level:2}).run(),active:a.isActive("heading",{level:2}),title:"Título 2",children:c.jsx(V7,{className:"w-3.5 h-3.5"})}),c.jsx(d,{onClick:()=>a.chain().focus().setParagraph().run(),active:a.isActive("paragraph"),title:"Parágrafo",children:c.jsx(f$,{className:"w-3.5 h-3.5"})}),c.jsx("div",{className:"w-px h-5 bg-border mx-1"}),c.jsx(d,{onClick:()=>a.chain().focus().toggleBulletList().run(),active:a.isActive("bulletList"),title:"Lista",children:c.jsx(PR,{className:"w-3.5 h-3.5"})}),c.jsx(d,{onClick:()=>a.chain().focus().toggleOrderedList().run(),active:a.isActive("orderedList"),title:"Lista numerada",children:c.jsx(OR,{className:"w-3.5 h-3.5"})}),c.jsx("div",{className:"w-px h-5 bg-border mx-1"}),c.jsx(d,{onClick:()=>a.chain().focus().setTextAlign("left").run(),active:a.isActive({textAlign:"left"}),title:"Alinhar esquerda",children:c.jsx(S7,{className:"w-3.5 h-3.5"})}),c.jsx(d,{onClick:()=>a.chain().focus().setTextAlign("center").run(),active:a.isActive({textAlign:"center"}),title:"Centralizar",children:c.jsx(b7,{className:"w-3.5 h-3.5"})}),c.jsx(d,{onClick:()=>a.chain().focus().setTextAlign("right").run(),active:a.isActive({textAlign:"right"}),title:"Alinhar direita",children:c.jsx(_7,{className:"w-3.5 h-3.5"})}),c.jsx("div",{className:"w-px h-5 bg-border mx-1"}),c.jsx(d,{onClick:u,active:a.isActive("link"),title:"Inserir link",children:c.jsx(Y7,{className:"w-3.5 h-3.5"})}),c.jsx(d,{onClick:()=>a.chain().focus().setHorizontalRule().run(),title:"Linha horizontal",children:c.jsx(e$,{className:"w-3.5 h-3.5"})}),c.jsx(d,{onClick:()=>a.chain().focus().unsetAllMarks().clearNodes().run(),title:"Limpar formatação",children:c.jsx(s$,{className:"w-3.5 h-3.5"})}),c.jsx("div",{className:"flex-1"}),c.jsxs(fe,{type:"button",variant:"ghost",size:"sm",onClick:()=>s(!n),className:`h-8 text-xs ${n?"bg-accent":""}`,children:[c.jsx(I7,{className:"w-3.5 h-3.5 mr-1"})," HTML"]})]}),n?c.jsx(X_,{value:i,onChange:f=>l(f.target.value),className:"min-h-[250px] rounded-none border-0 font-mono text-xs resize-y",placeholder:"HTML source..."}):c.jsx(q3,{editor:a,className:"prose prose-sm max-w-none p-4 min-h-[250px] focus-within:outline-none [&_.ProseMirror]:outline-none [&_.ProseMirror]:min-h-[220px]"})]})},Xhe=10*1024*1024,bA=["application/pdf","image/jpeg","image/png","image/gif","
935image/webp","application/msword","application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/vnd.ms-excel","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","text/plain","text/csv","application/zip"],Yhe=({onSend:t,onSaveDraft:e,onClose:r,replyTo:n,forwardMsg:s,mode:i="new",signature:o,isSending:a})=>{const l=n||s,u=()=>{var Pe;if(i==="reply"&&l)return[l.from_email];if(i==="reply_all"&&l){const qe=[l.from_email];return(Pe=l.recipients)==null||Pe.filter(rt=>rt.recipient_type==="to").forEach(rt=>{qe.includes(rt.email)||qe.push(rt.email)}),qe}return[]},d=()=>{var Pe;return i==="reply_all"&&l?((Pe=l.recipients)==null?void 0:Pe.filter(qe=>qe.recipient_type==="cc").map(qe=>qe.email))||[]:[]},f=()=>{var Pe;return l?i==="forward"?`Fwd: ${l.subject}`:i==="reply"||i==="reply_all"?(Pe=l.subject)!=null&&Pe.startsWith("Re:")?l.subject:`Re: ${l.subject}`:"":""},h=()=>{let Pe="";if(o&&(Pe=`<br/><br/>${o}`),l&&(i==="reply"||i==="reply_all"||i==="forward")){const qe=new Date(l.created_at).toLocaleString("pt-BR");Pe+=`<br/><br/><blockquote style="border-left: 2px solid #ccc; padding-left: 12px; margin-left: 0; color: #666;">
936        <p>Em ${qe}, ${l.from_name||l.from_email} escreveu:</p>
937        ${l.body_html||l.body_text||""}
938      </blockquote>`}return Pe},[p,g]=w.useState(""),[m,x]=w.useState(""),[v,y]=w.useState(""),[b,S]=w.useState(u()),[E,C]=w.useState(d()),[_,A]=w.useState([]),[N,D]=w.useState(f()),[V,H]=w.useState(h()),[U,K]=w.useState(""),[te,se]=w.useState([]),[he,G]=w.useState(E.length>0),[O,W]=w.useState([]),ee=w.useRef(null),{toast:k}=uo(),[z,I]=w.useState(!1),[B,q]=w.useState("profissional"),[X,ae]=w.useState(""),[ce,ne]=w.useState(!1),[Ae,je]=w.useState("prepend"),Xe=async()=>{ne(!0);try{const Pe=await ht.generateAiReply({message_id:l==null?void 0:l.id,tone:B,instruction:X,mode:i==="forward"?"forward":"reply"}),qe=Pe.html||"",rt=Pe.text||"";Pe.subject&&(Ae==="replace"||!N.trim())&&D(Pe.subject);let At="";l&&(i==="reply"||i==="reply_all"||i==="forward")&&(At=`<br/><br/><blockquote style="border-left: 2px solid #ccc; padding-left: 12px; margin-left: 0; color: #666;">
939          <p>Em ${new Date(l.created_at).toLocaleString("pt-BR")}, ${l.from_name||l.from_email} escreveu:</p>
940          ${l.body_html||l.body_text||""}
941        </blockquote>`);const dt=o?`<br/><br/>${o}`:"";H(Ae==="replace"?qe+dt+At:qe+"<br/>"+V),K(rt),I(!1),ae(""),k({title:"Resposta gerada",description:"Assunto e corpo preenchidos. Revise antes de enviar."})}catch(Pe){k({variant:"destructive",title:"Erro IA",description:Pe.message})}finally{ne(!1)}},Ve=(Pe,qe,rt,At)=>{const dt=Pe.trim().toLowerCase();if(dt){if(!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(dt)){W(["Email inválido: "+dt]);return}rt.includes(dt)||At([...rt,dt]),qe(""),W([])}},re=(Pe,qe,rt,At,dt)=>{(Pe.key==="Enter"||Pe.key===","||Pe.key==="Tab")&&(Pe.preventDefault(),Ve(qe,rt,At,dt))},Se=Pe=>{if(!Pe.target.files)return;const qe=Array.from(Pe.target.files),rt=[],At=[];for(const dt of qe){if(dt.size>Xhe){At.push(`${dt.name}: excede 10MB`);continue}if(!bA.includes(dt.type)){At.push(`${dt.name}: tipo não permitido`);continue}rt.push(dt)}At.length&&W(At),se([...te,...rt]),ee.current&&(ee.current.value="")},ve=Pe=>{se(te.filter((qe,rt)=>rt!==Pe))},yt=async()=>{if(b.length===0){W(["Adicione pelo menos um destinatário"]);return}W([]),await t({to:b,cc:E,bcc:_,subject:N,body_html:V,body_text:U,attachments:te,reply_to_id:n==null?void 0:n.id,forward_id:s==null?void 0:s.id,message_type:i})},mt=async()=>{await e({to:b,cc:E,bcc:_,subject:N,body_html:V,body_text:U,reply_to_id:n==null?void 0:n.id,forward_id:s==null?void 0:s.id})},Kt=Pe=>Pe<1024?`${Pe} B`:Pe<1024*1024?`${(Pe/1024).toFixed(1)} KB`:`${(Pe/(1024*1024)).toFixed(1)} MB`,sr=({list:Pe,setList:qe,input:rt,setInput:At,label:dt})=>c.jsxs("div",{className:"flex items-start gap-2",children:[c.jsxs(Yt,{className:"w-10 pt-2 text-xs text-muted-foreground shrink-0",children:[dt,":"]}),c.jsxs("div",{className:"flex-1 flex flex-wrap gap-1 items-center border rounded-md px-2 py-1 min-h-[36px] bg-background",children:[Pe.map((ir,Qr)=>c.jsxs(ys,{variant:"secondary",className:"text-xs gap-1 py-0.5",children:[ir,c.jsx("button",{onClick:()=>qe(Pe.filter((Xn,Zr)=>Zr!==Qr)),className:"ml-0.5 hover:text-destructive",children:c.jsx(tc,{
941className:"w-3 h-3"})})]},Qr)),c.jsx("input",{type:"text",value:rt,onChange:ir=>At(ir.target.value),onKeyDown:ir=>re(ir,rt,At,Pe,qe),onBlur:()=>rt&&Ve(rt,At,Pe,qe),className:"flex-1 min-w-[120px] outline-none bg-transparent text-sm py-1",placeholder:Pe.length===0?"[email protected]":""})]})]});return c.jsxs("div",{className:"flex-1 flex flex-col h-full bg-background",children:[c.jsxs("div",{className:"flex items-center justify-between px-4 py-2 border-b border-border bg-card/50",children:[c.jsx("h2",{className:"font-semibold text-sm",children:i==="reply"?"Responder":i==="reply_all"?"Responder a Todos":i==="forward"?"Encaminhar":"Novo Email"}),c.jsxs("div",{className:"flex gap-1",children:[c.jsxs(fe,{variant:"ghost",size:"sm",onClick:mt,disabled:a,className:"gap-1.5 text-xs",children:[c.jsx(a$,{className:"w-3.5 h-3.5"})," Rascunho"]}),c.jsx(fe,{variant:"ghost",size:"sm",onClick:r,className:"h-7 w-7 p-0",children:c.jsx(tc,{className:"w-4 h-4"})})]})]}),c.jsx("div",{className:"flex-1 overflow-y-auto",children:c.jsxs("div",{className:"p-4 space-y-3",children:[O.length>0&&c.jsx("div",{className:"bg-destructive/10 text-destructive text-xs rounded-md p-2 space-y-0.5",children:O.map((Pe,qe)=>c.jsxs("p",{children:["• ",Pe]},qe))}),c.jsx(sr,{list:b,setList:S,input:p,setInput:g,label:"Para"}),c.jsxs("button",{onClick:()=>G(!he),className:"text-xs text-primary hover:underline flex items-center gap-1 ml-12",children:["Cc/Bcc ",he?c.jsx(SR,{className:"w-3 h-3"}):c.jsx(Zh,{className:"w-3 h-3"})]}),he&&c.jsxs(c.Fragment,{children:[c.jsx(sr,{list:E,setList:C,input:m,setInput:x,label:"Cc"}),c.jsx(sr,{list:_,setList:A,input:v,setInput:y,label:"Bcc"})]}),c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx(Yt,{className:"w-10 text-xs text-muted-foreground shrink-0",children:"Assunto:"}),c.jsx(ur,{value:N,onChange:Pe=>D(Pe.target.value),placeholder:"Assunto do email",className:"h-9 text-sm"})]}),c.jsxs("div",{className:"flex items-center justify-between gap-2",children:[c.jsx(Yt,{className:"text-xs text-muted-foreground",children:"Mensagem"}),c.jsxs(pF,{open:z,onOpenChange:I,children:[c.jsxs(fe,{type:"button",variant:"outline",size:"sm",onClick:()=>I(!0),className:"gap-1.5 h-8 text-xs",children:[c.jsx(_u,{className:"w-3.5 h-3.5 text-primary"}),"Gerar com IA"]}),c.jsxs(P_,{className:"max-w-md",children:[c.jsx(M_,{children:c.jsxs(I_,{className:"flex items-center gap-2",children:[c.jsx(_u,{className:"w-4 h-4 text-primary"}),"Gerar resposta com IA"]})}),c.jsxs("div",{className:"space-y-3",children:[c.jsxs("div",{children:[c.jsx(Yt,{className:"text-xs",children:"Tom da resposta"}),c.jsxs($g,{value:B,onValueChange:q,children:[c.jsx(Bh,{children:c.jsx(zg,{})}),c.jsxs($h,{children:[c.jsx(Gs,{value:"profissional",children:"Profissional"}),c.jsx(Gs,{value:"amigavel",children:"Amigável"}),c.jsx(Gs,{value:"direto",children:"Direto e breve"}),c.jsx(Gs,{value:"formal",children:"Formal corporativo"})]})]})]}),c.jsxs("div",{children:[c.jsx(Yt,{className:"text-xs",children:"Instrução adicional (opcional)"}),c.jsx(X_,{value:X,onChange:Pe=>ae(Pe.target.value),placeholder:"Ex: confirme o recebimento e peça mais detalhes sobre o prazo",className:"min-h-[80px] text-sm"})]}),c.jsxs("div",{children:[c.jsx(Yt,{className:"text-xs",children:"Inserir como"}),c.jsxs($g,{value:Ae,onValueChange:Pe=>je(Pe),children:[c.jsx(Bh,{children:c.jsx(zg,{})}),c.jsxs($h,{children:[c.jsx(Gs,{value:"prepend",children:"Adicionar acima do conteúdo atual"}),c.jsx(Gs,{value:"replace",children:"Substituir conteúdo atual"})]})]})]}),!l&&i==="new"&&c.jsx("p",{className:"text-xs text-muted-foreground",children:"Sem email original — a IA vai gerar com base apenas na sua instrução."})]}),c.jsxs(gF,{children:[c.jsx(fe,{variant:"ghost",onClick:()=>I(!1),disabled:ce,children:"Cancelar"}),c.jsxs(fe,{onClick:Xe,disabled:ce,className:"gap-1.5",children:[ce?c.jsx(Es,{className:"w-4 h-4 animate-spin"}):c.jsx(_u,{className:"w-4 h-4"}),ce?"Gerando...":"Gerar"]})]})]})]})]}),c.jsx(Khe,{content:V,onChange:(Pe,qe)=>{H(Pe),K(qe)}}),te.length>0&&c.jsxs("div",{className:"space-y-1.5",children:[c.jsxs("p",{className:"text-xs font-medium text-muted-foreground flex items-center gap-1",children:[c.jsx(Ri,{className:"w-3 h-3"})," Anexos (",te.length,")"]}),te.map((Pe,qe)=>c.jsxs("div",{className:"flex items-center justify-between bg-muted/50 rounded-md px-3 py-1.5 text-sm",children:[c.jsxs("span",{className:"truncate",children:[Pe.name," ",c.jsxs("span",{className:"text-muted-foreground",children:["(",Kt(Pe.size),")"]})]}),c.jsx(fe,{variant:"ghost",size:"sm",onClick:()=>ve(qe),className:"h-6 w-6 p-0 text-destructive",children:c.jsx(Ca,{className:"w-3 h-3"})})]},qe))]})]})}),c.jsxs("div",{className:"border-t border-border p-3 flex items-center gap-2 bg-card/50",children:[c.jsxs(fe,{onClick:yt,disabled:a,className:"gap-1.5",children:[a?c.jsx(Es,{className:"w-4 h-4 animate-spin"}):c.jsx(vx,{className:"w-4 h-4"}),a?"Enviando...":"Enviar"]}),c.jsxs(fe,{variant:"outline",size:"sm",onClick:()=>{var Pe;return(Pe=ee.current)==null?void 0:Pe.click()},className:"gap-1.5",children:[c.jsx(Ri,{className:"w-3.5 h-3.5"})," Anexar"]}),c.jsx("input",{ref:ee,type:"file",multiple:!0,onChange:Se,className:"hidden",accept:bA.join(",")})]})]})},Jhe=({view:t,onBack:e,tags:r,onTagsChange:n})=>{const[s,i]=w.useState(null),[o,a]=w.useState(null),[l,u]=w.useState([]),[d,f]=w.useState(""),[h,p]=w.useState("#3b82f6"),[g,m]=w.useState(!0),[x,v]=w.useState([]),[y,b]=w.useState(null),[S,E]=w.useState(""),[C,_]=w.useState(""),[A,N]=w.useState(""),[D,V]=w.useState(!1),[H,U]=w.useState(""),[K,te]=w.useState("200"),[se,he]=w.useState(!1),[G,O]=w.useState([]),[W,ee]=w.useState({name:"",account_id:"",forward_to:"",match_from:"",match_subject:"",include_attachments:!0}),{toast:k}=uo();w.useEffect(()=>{z()},[t]);const z=async()=>{var re;m(!0);try{if(t==="dashboard"){const Se=await ht.getStats();i(Se.stats)}else if(t==="settings"){const[Se,ve,yt]=await Promise.all([ht.getSettings(),ht.listAccounts(),ht.listForwardRules().catch(()=>({rules:[]}))]);if(a(Se.settings),v(ve.accounts||[]),O(yt.rules||[]),(re=ve.accounts)!=null&&re.length){const mt=ve.accounts.find(Kt=>Kt.is_default)||ve.accounts[0];b(mt)}}else if(t==="audit"){const Se=await ht.getAuditLogs();u(Se.logs||[])}}catch(Se){k({variant:"destructive",title:"Erro",description:Se.message})}finally{m(!1)}},I=async()=>
941{if(d.trim())try{await ht.createTag(d.trim(),h),f(""),n(),k({title:"Tag criada"})}catch(re){k({variant:"destructive",title:"Erro",description:re.message})}},B=async re=>{try{await ht.deleteTag(re),n(),k({title:"Tag removida"})}catch(Se){k({variant:"destructive",title:"Erro",description:Se.message})}},q=async()=>{try{o&&await ht.updateSettings({session_timeout_minutes:o.session_timeout_minutes,auto_lock_enabled:o.auto_lock_enabled,emails_per_page:o.emails_per_page,default_signature:o.default_signature}),y&&await ht.setupAccount(y.email_address,y.display_name,y.signature_html||void 0,y.id),k({title:"Configurações salvas"})}catch(re){k({variant:"destructive",title:"Erro",description:re.message})}},X=async()=>{if(S.trim())try{await ht.createAccount(S.trim(),C||"CS Finance",A||void 0),E(""),_(""),N(""),V(!1),z(),k({title:"Conta adicionada"})}catch(re){k({variant:"destructive",title:"Erro",description:re.message})}},ae=async re=>{if(confirm("Remover esta conta de email?"))try{await ht.deleteAccount(re),z(),k({title:"Conta removida"})}catch(Se){k({variant:"destructive",title:"Erro",description:Se.message})}},ce=async re=>{try{await ht.setDefaultAccount(re),z(),k({title:"Conta padrão alterada"})}catch(Se){k({variant:"destructive",title:"Erro",description:Se.message})}},ne=()=>{if(!H.trim()||!y)return;const re=`<img src="${H}" width="${K}" alt="Logo" style="max-width:100%;height:auto;" />`;b({...y,signature_html:(y.signature_html||"")+re}),U(""),k({title:"Imagem inserida na assinatura"})},Ae=async()=>{const re=W.forward_to.split(/[,;\n]/).map(Se=>Se.trim().toLowerCase()).filter(Se=>/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(Se));if(re.length===0){k({variant:"destructive",title:"Inválido",description:"Informe pelo menos um email de destino válido"});return}try{await ht.createForwardRule({name:W.name||"Encaminhamento",account_id:W.account_id||void 0,forward_to:re,match_from:W.match_from||void 0,match_subject:W.match_subject||void 0,include_attachments:W.include_attachments,is_active:!0}),ee({name:"",account_id:"",forward_to:"",match_from:"",match_subject:"",include_attachments:!0});const Se=await ht.listForwardRules();O(Se.rules||[]),k({title:"Regra criada",description:`Encaminhando para: ${re.join(", ")}`})}catch(Se){k({variant:"destructive",title:"Erro",description:Se.message})}},je=async re=>{try{await ht.updateForwardRule(re.id,{is_active:!re.is_active});const Se=await ht.listForwardRules();O(Se.rules||[])}catch(Se){k({variant:"destructive",title:"Erro",description:Se.message})}},Xe=async re=>{if(confirm("Excluir esta regra de encaminhamento?"))try{await ht.deleteForwardRule(re),O(G.filter(Se=>Se.id!==re)),k({title:"Regra excluída"})}catch(Se){k({variant:"destructive",title:"Erro",description:Se.message})}},Ve=async()=>{he(!0);try{const re=await ht.refetchAllEmpty();k({title:"Busca concluída",description:`Atualizados: ${re.updated} | Sem conteúdo: ${re.failed} | Total: ${re.total}`})}catch(re){k({variant:"destructive",title:"Erro",description:re.message})}finally{he(!1)}};return g?c.jsx("div",{className:"flex-1 flex items-center justify-center",children:c.jsx(Es,{className:"w-6 h-6 animate-spin text-muted-foreground"})}):c.jsxs("div",{className:"flex-1 bg-background",children:[c.jsxs("div",{className:"border-b border-border px-4 py-2 flex items-center gap-2",children:[c.jsx(fe,{variant:"ghost",size:"sm",onClick:e,className:"h-7 w-7 p-0",children:c.jsx(Os,{className:"w-4 h-4"})}),c.jsx("h2",{className:"font-semibold text-sm",children:t==="dashboard"?"Dashboard":t==="settings"?"Configurações":"Auditoria"})]}),c.jsx(vp,{className:"h-[calc(100vh-120px)]",children:c.jsxs("div",{className:"p-4 md:p-6 max-w-4xl mx-auto space-y-6",children:[t==="dashboard"&&s&&c.jsxs(c.Fragment,{children:[c.jsx("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-3 md:gap-4",children:[{label:"Recebidos",value:s.total_received,icon:Dm,color:"text-blue-600"},{label:"Enviados",value:s.total_sent,icon:vx,color:"text-green-600"},{label:"Rascunhos",value:s.total_drafts,icon:CR,color:"text-yellow-600"},{label:"Não Lidos",value:s.total_unread,icon:Dm,color:"text-red-600"},{label:"Favoritos",value:s.total_starred,icon:ep,color:"text-yellow-500"},{label:"Arquivados",value:s.total_archived,icon:Dm,color:"text-gray-500"},{label:"Lixeira",value:s.total_trash,icon:Ca,color:"text-gray-400"},{label:"Falhas",value:s.failed,icon:d$,color:"text-red-500"}].map(({label:re,value:Se,icon:ve,color:yt})=>c.jsx(Qt,{children:c.jsxs(hr,{className:"p-3 md:p-4",children:[c.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[c.jsx(ve,{className:`w-4 h-4 ${yt}`}),c.jsx("span",{className:"text-xs text-muted-foreground",children:re})]}),c.jsx("p",{className:"text-xl md:text-2xl font-bold",children:Se})]})},re))}),c.jsxs(Qt,{children:[c.jsx(vr,{children:c.jsx(yr,{className:"text-base",children:"Manutenção"})}),c.jsxs(hr,{children:[c.jsxs(fe,{variant:"outline",size:"sm",onClick:Ve,disabled:se,className:"gap-1.5",children:[se?c.jsx(Es,{className:"w-3.5 h-3.5 animate-spin"}):c.jsx(xx,{className:"w-3.5 h-3.5"}),se?"Buscando conteúdo...":"Recuperar conteúdo de emails vazios"]}),c.jsx("p",{className:"text-xs text-muted-foreground mt-2",children:"Tenta recuperar o corpo de emails recebidos que estão sem conteúdo via API do Resend."})]})]})]}),t==="settings"&&c.jsxs(c.Fragment,{children:[c.jsxs(Qt,{children:[c.jsx(vr,{children:c.jsxs(yr,{className:"text-base flex items-center gap-2",children:[c.jsx(Ss,{className:"w-4 h-4"})," Contas de Email"]})}),c.jsxs(hr,{className:"space-y-4",children:[c.jsx("div",{className:"space-y-2",children:x.map(re=>c.jsxs("div",{className:`flex items-center justify-between p-3 rounded-lg border cursor-pointer transition-colors ${(y==null?void 0:y.id)===re.id?"border-primary bg-primary/5":"hover:bg-muted/50"}`,onClick:()=>b(re),children:[c.jsxs("div",{className:"flex items-center gap-2 min-w-0",children:[c.jsx(Ss,{className:"w-4 h-4 text-muted-foreground shrink-0"}),c.jsxs("div",{className:"min-w-0",children:[c.jsx("p",{className:"text-sm font-medium truncate",children:re.email_address}),c.jsx("p",{className:"text-xs text-muted-foreground",children:re.display_name})]}),re.is_default&&c.jsx(ys,{variant:"secondary",className:"text-xs shrink-0",children:"Padrão"})]}),c.jsx("div",{className:"flex items-center gap-1 shrink-0",children:!re.is_default&&c.jsxs(c.Fragment,{children:[c.jsx(fe,{variant:"ghost",size:"sm",onClick:Se=>{Se.stopPropagation(),ce(re.id)},className:"h-7 text-xs",children:c.jsx(px,{className:"w-3 h-3"})}),c.jsx(fe,{variant:"ghost",size:"sm",onClick:Se=>{Se.stopPropagation(),ae(re.id)},className:"h-7 text-xs text-destructive",children:c.jsx(Ca,{className:"w-3 h-3"})})]})})]},re.id))}),D?c.jsxs("div",{className:"border rounded-lg p-4 space-y-3 bg-muted/20",children:[c.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-3",children:[c.jsxs("div",{children:[c.jsx(Yt,{className:"text-xs",children:"Email"}),c.jsx(ur,{value:S,onChange:re=>E(re.target.value),placeholder:"[email protected]"})]}),c.jsxs("div",{children:[c.jsx(Yt,{className:"text-xs",children:"Nome de exibição"}),c.jsx(ur,{value:C,onChange:re=>_(re.target.value),placeholder:"CS Finance"})]})]}),c.jsxs("div",{className:"flex gap-2",children:[c.jsx(fe,{size:"sm",onClick:X,children:"Adicionar"}),c.jsx(fe,{size:"sm",variant:"ghost",onClick:()=>V(!1),children:"Cancelar"})]})]}):c.jsxs(fe,{variant:"outline",size:"sm",onClick:()=>V(!0),className:"gap-1.5",children:[c.jsx(Lm,{className:"w-3.5 h-3.5"})," Adicionar conta"]})]})]}),y&&c.jsxs(Qt,{children:[c.jsx(vr,{children:c.jsxs(yr,{className:"text-base",children:["Editar: ",y.email_address]})}),c.jsxs(hr,{className:"space-y-4",children:[c.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[c.jsxs("div",{children:[c.jsx(Yt,{className:"text-xs",children:"Email de envio"}),c.jsx(ur,{value:y.email_address,onChange:re=>b({...y,email_address:re.target.value})})]}),c.jsxs("div",{children:[c.jsx(Yt,{className:"text-xs",children:"Nome de exibição"}),c.jsx(ur,{value:y.display_name,onChange:re=>b({...y,display_name:re.target.value})})]})]}),c.jsxs("div",{children:[c.jsx(Yt,{className:"text-xs",children:"Assinatura (HTML)"}),c.jsx("textarea",{value:y.signature_html||"",onChange:re=>b({...y,signature_html:re.target.value}),className:"w-full h-32 border rounded-md p-2 text-sm font-mono bg-background resize-y",placeholder:"<p>Atenciosamente,<br/>CS Finance</p>"}),y.signature_html&&c.jsxs("div",{className:"mt-2 border rounded-md p-3 bg-muted/20",children:[c.jsx("p",{className:"text-xs text-muted-foreground mb-1",children:"Preview:"}),c.jsx("div",{className:"text-sm",dangerouslySetInnerHTML:{__html:y.signature_html}}
941)]})]}),c.jsxs("div",{className:"border rounded-lg p-3 bg-muted/20 space-y-2",children:[c.jsxs("p",{className:"text-xs font-medium flex items-center gap-1.5",children:[c.jsx(K7,{className:"w-3.5 h-3.5"})," Inserir imagem na assinatura por URL"]}),c.jsxs("div",{className:"flex flex-col sm:flex-row gap-2",children:[c.jsx(ur,{value:H,onChange:re=>U(re.target.value),placeholder:"https://exemplo.com/logo.png",className:"flex-1 text-sm"}),c.jsxs("div",{className:"flex gap-2 items-center",children:[c.jsx(Yt,{className:"text-xs shrink-0",children:"Largura:"}),c.jsx(ur,{type:"number",value:K,onChange:re=>te(re.target.value),className:"w-20 text-sm",min:"50",max:"600"}),c.jsx("span",{className:"text-xs text-muted-foreground",children:"px"})]}),c.jsx(fe,{size:"sm",onClick:ne,disabled:!H.trim(),children:"Inserir"})]})]})]})]}),c.jsxs(Qt,{children:[c.jsx(vr,{children:c.jsx(yr,{className:"text-base",children:"Preferências"})}),c.jsx(hr,{className:"space-y-4",children:c.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[c.jsxs("div",{children:[c.jsx(Yt,{className:"text-xs",children:"Emails por página"}),c.jsx(ur,{type:"number",min:10,max:100,value:(o==null?void 0:o.emails_per_page)||25,onChange:re=>a(Se=>Se&&{...Se,emails_per_page:parseInt(re.target.value)||25})})]}),c.jsxs("div",{children:[c.jsx(Yt,{className:"text-xs",children:"Timeout da sessão (min)"}),c.jsx(ur,{type:"number",min:5,max:120,value:(o==null?void 0:o.session_timeout_minutes)||30,onChange:re=>a(Se=>Se&&{...Se,session_timeout_minutes:parseInt(re.target.value)||30})})]})]})})]}),c.jsxs(Qt,{children:[c.jsx(vr,{children:c.jsxs(yr,{className:"text-base flex items-center gap-2",children:[c.jsx(W2,{className:"w-4 h-4"})," Tags"]})}),c.jsxs(hr,{className:"space-y-3",children:[c.jsxs("div",{className:"flex gap-2",children:[c.jsx(ur,{value:d,onChange:re=>f(re.target.value),placeholder:"Nome da tag",className:"flex-1"}),c.jsx("input",{type:"color",value:h,onChange:re=>p(re.target.value),className:"w-10 h-10 rounded border cursor-pointer"}),c.jsx(fe,{onClick:I,size:"sm",children:c.jsx(Lm,{className:"w-4 h-4"})})]}),c.jsx("div",{className:"space-y-1",children:r.map(re=>c.jsxs("div",{className:"flex items-center justify-between px-3 py-1.5 rounded-md bg-muted/50",children:[c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx("span",{className:"w-3 h-3 rounded-full",style:{backgroundColor:re.color}}),c.jsx("span",{className:"text-sm",children:re.name})]}),c.jsx(fe,{variant:"ghost",size:"sm",onClick:()=>B(re.id),className:"h-6 w-6 p-0 text-destructive",children:c.jsx(Ca,{className:"w-3 h-3"})})]},re.id))})]})]}),c.jsxs(Qt,{children:[c.jsxs(vr,{children:[c.jsxs(yr,{className:"text-base flex items-center gap-2",children:[c.jsx(Ss,{className:"w-4 h-4"})," Encaminhamento Automático"]}),c.jsx("p",{className:"text-xs text-muted-foreground",children:"Reencaminhe automaticamente emails recebidos para outros endereços. Filtros opcionais por remetente e assunto."})]}),c.jsxs(hr,{className:"space-y-4",children:[G.length>0?c.jsx("div",{className:"space-y-2",children:G.map(re=>{var Se;return c.jsx("div",{className:"border rounded-md p-3 space-y-1.5 bg-muted/30",children:c.jsxs("div",{className:"flex items-start justify-between gap-2",children:[c.jsxs("div",{className:"flex-1 min-w-0",children:[c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx("span",{className:"text-sm font-medium truncate",children:re.name}),c.jsx(ys,{variant:re.is_active?"default":"secondary",className:"text-[10px]",children:re.is_active?"Ativa":"Inativa"})]}),c.jsxs("p",{className:"text-xs text-muted-foreground mt-1",children:[c.jsx("strong",{children:"Para:"})," ",re.forward_to.join(", ")]}),re.match_from&&c.jsxs("p",{className:"text-xs text-muted-foreground",children:[c.jsx("strong",{children:"Filtro remetente:"})," ",re.match_from]}),re.match_subject&&c.jsxs("p",{className:"text-xs text-muted-foreground",children:[c.jsx("strong",{children:"Filtro assunto:"})," ",re.match_subject]}),re.account_id&&c.jsxs("p",{className:"text-xs text-muted-foreground",children:[c.jsx("strong",{children:"Conta:"})," ",((Se=x.find(ve=>ve.id===re.account_id))==null?void 0:Se.email_address)||re.account_id]}),c.jsxs("p",{className:"text-xs text-muted-foreground",children:[c.jsx("strong",{children:"Anexos:"})," ",re.include_attachments!==!1?"Incluídos":"Não incluídos"]})]}),c.jsxs("div",{className:"flex flex-col gap-1 shrink-0",children:[c.jsx(fe,{variant:"outline",size:"sm",onClick:()=>je(re),className:"h-7 text-xs",children:re.is_active?"Desativar":"Ativar"}),c.jsx(fe,{variant:"ghost",size:"sm",onClick:()=>Xe(re.id),className:"h-7 text-xs text-destructive",children:c.jsx(Ca,{className:"w-3 h-3"})})]})]})},re.id)})}):c.jsx("p",{className:"text-xs text-muted-foreground",children:"Nenhuma regra ativa. Crie uma abaixo."}),c.jsxs("div",{className:"border-t pt-4 space-y-2",children:[c.jsx("p",{className:"text-xs font-medium",children:"Nova regra"}),c.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-2",children:[c.jsxs("div",{children:[c.jsx(Yt,{className:"text-xs",children:"Nome"}),c.jsx(ur,{value:W.name,onChange:re=>ee({...W,name:re.target.value}),placeholder:"Ex: Encaminhar para gerente"})]}),c.jsxs("div",{children:[c.jsx(Yt,{className:"text-xs",children:"Conta de email (opcional)"}),c.jsxs("select",{value:W.account_id,onChange:re=>ee({...W,account_id:re.target.value}),className:"w-full h-9 px-3 rounded-md border border-input bg-background text-sm",children:[c.jsx("option",{value:"",children:"Todas as contas"}),x.map(re=>c.jsx("option",{value:re.id,children:re.email_address}
941,re.id))]})]})]}),c.jsxs("div",{children:[c.jsx(Yt,{className:"text-xs",children:"Encaminhar para (separe por vírgula)"}),c.jsx(ur,{value:W.forward_to,onChange:re=>ee({...W,forward_to:re.target.value}),placeholder:"[email protected], [email protected]"})]}),c.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-2",children:[c.jsxs("div",{children:[c.jsx(Yt,{className:"text-xs",children:"Filtro: remetente contém (opcional)"}),c.jsx(ur,{value:W.match_from,onChange:re=>ee({...W,match_from:re.target.value}),placeholder:"Ex: @cliente.com.br"})]}),c.jsxs("div",{children:[c.jsx(Yt,{className:"text-xs",children:"Filtro: assunto contém (opcional)"}),c.jsx(ur,{value:W.match_subject,onChange:re=>ee({...W,match_subject:re.target.value}),placeholder:"Ex: orçamento"})]})]}),c.jsxs("label",{className:"flex items-center gap-2 text-xs cursor-pointer",children:[c.jsx("input",{type:"checkbox",checked:W.include_attachments,onChange:re=>ee({...W,include_attachments:re.target.checked})}),"Incluir anexos no encaminhamento"]}),c.jsxs(fe,{onClick:Ae,size:"sm",className:"gap-1.5",children:[c.jsx(Lm,{className:"w-3.5 h-3.5"})," Adicionar regra"]})]})]})]}),c.jsx(fe,{onClick:q,children:"Salvar Configurações"}),c.jsxs(Qt,{children:[c.jsx(vr,{children:c.jsx(yr,{className:"text-base",children:"📋 Configuração do Sistema"})}),c.jsxs(hr,{className:"text-sm space-y-2 text-muted-foreground",children:[c.jsxs("p",{children:[c.jsx("strong",{children:"API Key do Resend:"})," Configurada como secret no Supabase (RESEND_API_KEY)"]}),c.jsxs("p",{children:[c.jsx("strong",{children:"Domínio de envio:"})," csfinance.app.br (configurado no Resend)"]}),c.jsxs("p",{children:[c.jsx("strong",{children:"Webhook de recebimento:"})," ",c.jsx("code",{className:"bg-muted px-1 rounded text-xs break-all",children:"https://gohyovgluliqrltppvoh.supabase.co/functions/v1/email-receive-webhook"})]}),c.jsxs("p",{children:[c.jsx("strong",{children:"Limite de anexos:"})," 10MB por arquivo"]}),c.jsxs("p",{children:[c.jsx("strong",{children:"Tipos permitidos:"})," PDF, imagens, DOC/DOCX, XLS/XLSX, TXT, CSV, ZIP"]}),c.jsxs("p",{children:[c.jsx("strong",{children:"Sessão do módulo:"})," ",(o==null?void 0:o.session_timeout_minutes)||30," minutos"]}),c.jsxs("div",{className:"mt-3 p-3 border rounded-lg bg-yellow-50 dark:bg-yellow-900/10 text-yellow-800 dark:text-yellow-200",children:[c.jsx("p",{className:"font-medium text-sm",children:"⚠️ Emails sem conteúdo?"}),c.jsxs("p",{className:"text-xs mt-1",children:["Para que emails recebidos incluam o corpo (HTML/texto), configure o ",c.jsx("strong",{children:"webhook de inbound"})," no Resend:"]}),c.jsxs("ol",{className:"text-xs mt-1 list-decimal list-inside space-y-0.5",children:[c.jsx("li",{children:"Acesse o painel do Resend → Domains → csfinance.app.br"}),c.jsxs("li",{children:["Na seção ",c.jsx("strong",{children:"Inbound"}),", adicione a URL do webhook acima"]}),c.jsx("li",{children:"Isso fará com que o Resend envie o corpo completo do email no webhook"})]})]})]})]})]}),t==="audit"&&c.jsxs(Qt,{children:[c.jsx(vr,{children:c.jsx(yr,{className:"text-base",children:"Log de Auditoria"})}),c.jsx(hr,{children:l.length===0?c.jsx("p",{className:"text-sm text-muted-foreground py-4 text-center",children:"Nenhum registro de auditoria"}):c.jsx("div",{className:"space-y-2",children:l.map(re=>{var Se;return c.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-start gap-1 sm:gap-3 text-sm py-2 border-b last:border-b-0",children:[c.jsx("span",{className:"text-xs text-muted-foreground whitespace-nowrap pt-0.5",children:new Date(re.created_at).toLocaleString("pt-BR")}),c.jsxs("div",{className:"min-w-0",children:[c.jsx(ys,{variant:"outline",className:"text-xs mr-2",children:re.action}),c.jsx("span",{className:"text-muted-foreground text-xs",children:((Se=re.admin_users)==null?void 0:Se.email)||"Sistema"}),re.details&&c.jsx("p",{className:"text-xs text-muted-foreground mt-0.5 truncate",children:JSON.stringify(re.details).slice(0,100)})]})]},re.id)})})})]})]})})]})};function Qhe(t,e){const{toast:r}=uo(),[n,s]=w.useState(0),i=w.useRef(null),o=w.useCallback(async()=>{"Notification"in window&&Notification.permission==="default"&&await Notification.requestPermission()},[]),a=w.useCallback(u=>{if(!(!("Notification"in window)||Notification.permission!=="granted"))try{const d=new Notification(`Novo email de ${u.from_name||u.from_email}`,{body:u.subject||"(sem assunto)",icon:"/pwa-icon-512.png",tag:`email-${u.id}`,badge:"/pwa-icon-512.png"});d.onclick=()=>{window.focus(),d.close()}}catch{}},[]);w.useEffect(()=>{if(!t)return;o();const u=_r.channel("email-notifications").on("postgres_changes",{event:"INSERT",schema:"public",table:"email_messages",filter:"direction=eq.inbound"},d=>{const f=d.new,h={id:f.id,from_email:f.from_email,from_name:f.from_name,subject:f.subject,received_at:f.received_at||f.created_at};r({title:`📩 ${h.from_name||h.from_email}`,description:h.subject||"(sem assunto)"}),a(h),s(p=>p+1),e==null||e()}).subscribe();return i.current=u,()=>{i.current&&_r.removeChannel(i.current)}},[t]);const l=w.useCallback(()=>s(0),[]);
941return{unreadBadge:n,clearBadge:l}}const Zhe=()=>{const t=Ax(),{toast:e}=uo(),r=JSON.parse(localStorage.getItem("admin_session")||"{}"),[n,s]=w.useState(!1),[i,o]=w.useState(30),a=w.useRef(null),[l,u]=w.useState("inbox"),[d,f]=w.useState([]),[h,p]=w.useState(null),[g,m]=w.useState([]),[x,v]=w.useState([]),[y,b]=w.useState({inbox:0,sent:0,drafts:0,archive:0,trash:0,spam:0,starred:0,unread:0}),[S,E]=w.useState(),[C,_]=w.useState(""),[A,N]=w.useState(1),[D,V]=w.useState(0),[H,U]=w.useState(!1),[K,te]=w.useState(!1),[se,he]=w.useState("list"),[G,O]=w.useState("new"),[W,ee]=w.useState(null),[k,z]=w.useState(null),[I,B]=w.useState(null),[q,X]=w.useState(""),[ae,ce]=w.useState("list"),[ne,Ae]=w.useState(!1),je=w.useCallback(()=>{ve(),mt()},[]),{unreadBadge:Xe,clearBadge:Ve}=Qhe(n,je),re=25,Se=Math.ceil(D/re);w.useEffect(()=>{if(!r.admin_id){t("/admin-login");return}const Me=localStorage.getItem("email_session_at");Me&&(Date.now()-new Date(Me).getTime())/6e4<i&&s(!0)},[]),w.useEffect(()=>{n&&(ve(),yt(),mt(),Kt())},[n]),w.useEffect(()=>{n&&ve()},[l,A,S]),w.useEffect(()=>{if(!n)return;const Me=setTimeout(()=>{N(1),ve()},300);return()=>clearTimeout(Me)},[C]),w.useEffect(()=>{if(!n)return;const Me=()=>{a.current&&clearTimeout(a.current),a.current=setTimeout(()=>{s(!1),localStorage.removeItem("email_session_at"),e({title:"Sessão expirada",description:"Módulo de email bloqueado por inatividade."})},i*60*1e3)},He=["mousedown","keydown","scroll","touchstart"];return He.forEach(at=>window.addEventListener(at,Me)),Me(),()=>{He.forEach(at=>window.removeEventListener(at,Me)),a.current&&clearTimeout(a.current)}},[n,i]);const ve=w.useCallback(async()=>{U(!0);try{const Me=await ht.listMessages(l,A,re,{search:C||void 0,tag_id:S});f(Me.messages||[]),V(Me.total||0)}catch(Me){e({variant:"destructive",title:"Erro",description:Me.message})}finally{U(!1)}},[l,A,C,S]),yt=async()=>{try{const Me=await ht.getTags();v(Me.tags||[])}catch{}},mt=async()=>{try{const Me=await ht.getFolderCounts();b(Me.counts),Ve()}catch{}},Kt=async()=>{var Me;try{const[He,at]=await Promise.all([ht.getSettings(),ht.getAccount()]);He.settings&&o(He.settings.session_timeout_minutes||30),(Me=at.account)!=null&&Me.signature_html&&X(at.account.signature_html)}catch{}},sr=async Me=>{p(Me),he("list"),B(null),ce("reader");try{const He=await ht.getMessage(Me.id);if(p(He.message),He.message.thread_id){const at=await ht.getThread(He.message.thread_id);m(at.messages||[])}else m([]);Me.is_read||(f(at=>at.map(Xt=>Xt.id===Me.id?{...Xt,is_read:!0}:Xt)),mt())}catch(He){e({variant:"destructive",title:"Erro",description:He.message})}},Pe=async Me=>{try{const He=await ht.toggleStar(Me);f(at=>at.map(Xt=>Xt.id===Me?{...Xt,is_starred:He.is_starred}:Xt)),(h==null?void 0:h.id)===Me&&p(at=>at&&{...at,is_starred:He.is_starred}),mt()}catch{}},qe=async Me=>{try{const He=await ht.toggleRead(Me);f(at=>at.map(Xt=>Xt.id===Me?{...Xt,is_read:He.is_read}:Xt)),(h==null?void 0:h.id)===Me&&p(at=>at&&{...at,is_read:He.is_read}),mt()}catch{}},rt=async Me=>{try{const He=l==="trash";if(He&&!confirm("Excluir permanentemente este email? Esta ação não pode ser desfeita."))return;await ht.deleteMessage(Me,He),f(at=>at.filter(Xt=>Xt.id!==Me)),(h==null?void 0:h.id)===Me&&(p(null),ce("list")),mt(),e({title:He?"Email excluído permanentemente":"Email movido para lixeira"})}catch(He){e({variant:"destructive",title:"Erro",description:He.message})}},At=async Me=>{try{await ht.moveMessage(Me,"archive"),f(He=>He.filter(at=>at.id!==Me)),(h==null?void 0:h.id)===Me&&(p(null),ce("list")),mt(),e({title:"Email arquivado"})}catch(He){e({variant:"destructive",title:"Erro",description:He.message})}},dt=async Me=>{if(h)try{await ht.moveMessage(h.id,Me),f(He=>He.filter(at=>at.id!==h.id)),p(null),ce("list"),mt(),e({title:`Email movido para ${Me}`})}catch(He){e({variant:"destructive",title:"Erro",description:He.message})}},ir=async(Me,He)=>{try{const at=await ht.getAttachmentUrl(Me);if(at.url){const Ms=await(await fetch(at.url)).blob(),Pr=URL.createObjectURL(Ms),gn=document.createElement("a");gn.href=Pr,gn.download=He,document.body.appendChild(gn),gn.click(),document.body.removeChild(gn),URL.revokeObjectURL(Pr)}}catch(at){e({variant:"destructive",title:"Erro ao baixar",description:at.message})}},Qr=async Me=>{if(h)try{await ht.toggleTag(h.id,Me);
941const He=await ht.getMessage(h.id);p(He.message),ve()}catch(He){e({variant:"destructive",title:"Erro",description:He.message})}},Xn=(Me="new")=>{O(Me),Me==="reply"||Me==="reply_all"?(ee(h),z(null)):Me==="forward"?(z(h),ee(null)):(ee(null),z(null)),he("compose"),B(null),ce("reader")},Zr=async Me=>{te(!0);try{await ht.sendEmail(Me),e({title:"Email enviado com sucesso!"}),he("list"),p(null),ce("list"),ve(),mt()}catch(He){e({variant:"destructive",title:"Erro ao enviar",description:He.message})}finally{te(!1)}},ds=async Me=>{try{await ht.saveDraft(Me),e({title:"Rascunho salvo"})}catch(He){e({variant:"destructive",title:"Erro",description:He.message})}},Hr=()=>{s(!1),localStorage.removeItem("email_session_at")};if(!r.admin_id)return null;if(!n)return c.jsxs(c.Fragment,{children:[c.jsxs(Un,{children:[c.jsx("title",{children:"Email - CS Finance Admin"}),c.jsx("meta",{name:"robots",content:"noindex, nofollow"})]}),c.jsx(_de,{onUnlock:()=>s(!0)})]});const fs=h||se==="compose",Yn=se==="compose";return c.jsxs(c.Fragment,{children:[c.jsxs(Un,{children:[c.jsxs("title",{children:[y.unread>0?`(${y.unread}) `:"","Email - CS Finance"]}),c.jsx("meta",{name:"robots",content:"noindex, nofollow"}),c.jsx("link",{rel:"manifest",href:"/manifest.json"}),c.jsx("link",{rel:"apple-touch-icon",href:"/pwa-icon-512.png"}),c.jsx("meta",{name:"mobile-web-app-capable",content:"yes"}),c.jsx("meta",{name:"apple-mobile-web-app-capable",content:"yes"}),c.jsx("meta",{name:"apple-mobile-web-app-status-bar-style",content:"default"}),c.jsx("meta",{name:"apple-mobile-web-app-title",content:"CS Mail"})]}),c.jsxs("div",{className:"h-[100dvh] flex flex-col bg-background",children:[c.jsxs("div",{className:"h-12 border-b border-border bg-card/80 backdrop-blur-sm flex items-center justify-between px-3 md:px-4 shrink-0",children:[c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx(fe,{variant:"ghost",size:"sm",onClick:()=>Ae(!0),className:"md:hidden h-8 w-8 p-0",children:c.jsx(DR,{className:"w-4 h-4"})}),c.jsxs(fe,{variant:"ghost",size:"sm",onClick:()=>t("/admin"),className:"gap-1.5 text-xs hidden md:flex",children:[c.jsx(Os,{className:"w-3.5 h-3.5"})," Admin"]}),c.jsx("div",{className:"w-px h-5 bg-border hidden md:block"}),c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx(Ss,{className:"w-4 h-4 text-primary"}),c.jsx("span",{className:"font-semibold text-sm",children:"CS Mail"})]}),y.unread>0&&c.jsx("span",{className:"bg-destructive text-destructive-foreground text-xs font-bold rounded-full w-5 h-5 flex items-center justify-center",children:y.unread>9?"9+":y.unread})]}),c.jsxs("div",{className:"flex items-center gap-1",children:[c.jsx("span",{className:"text-xs text-muted-foreground hidden sm:block",children:r.email}),c.jsx(fe,{variant:"ghost",size:"sm",onClick:Hr,className:"h-7 w-7 p-0",title:"Bloquear tela",children:c.jsx(H2,{className:"w-3.5 h-3.5"})}),c.jsx(fe,{variant:"ghost",size:"sm",onClick:()=>t("/admin"),className:"h-7 w-7 p-0",title:"Sair",children:c.jsx(MR,{className:"w-3.5 h-3.5"})})]})]}),c.jsxs("div",{className:"flex-1 flex overflow-hidden",children:[c.jsx(Fde,{currentFolder:l,onFolderChange:Me=>{u(Me),N(1),p(null),B(null),ce("list")},onCompose:()=>Xn("new"),onShowDashboard:()=>
941{B("dashboard"),ce("reader")},onShowSettings:()=>{B("settings"),ce("reader")},onShowAudit:()=>{B("audit"),ce("reader")},counts:y,tags:x,selectedTagId:S,onTagSelect:Me=>{E(Me),N(1)},isMobileOpen:ne,onMobileClose:()=>Ae(!1)}),I?c.jsx("div",{className:`flex-1 ${ae==="list"?"hidden md:flex":"flex"}`,children:c.jsx(Jhe,{view:I,onBack:()=>{B(null),ce("list")},tags:x,onTagsChange:yt})}):c.jsxs(c.Fragment,{children:[c.jsx("div",{className:`${ae==="reader"&&fs?"hidden md:flex":"flex"} flex-1 md:flex-none`,children:c.jsx($de,{messages:d,selectedId:h==null?void 0:h.id,onSelect:sr,folder:l,isLoading:H,onRefresh:()=>{ve(),mt()},search:C,onSearchChange:_,onToggleStar:Pe,onToggleRead:qe,onMoveToTrash:rt,onArchive:At,page:A,totalPages:Se,onPageChange:N})}),c.jsx("div",{className:`${ae==="list"&&!fs?"hidden md:flex":"flex"} flex-1`,children:Yn?c.jsx(Yhe,{onSend:Zr,onSaveDraft:ds,onClose:()=>{he("list"),ce("list")},replyTo:W,forwardMsg:k,mode:G,signature:q,isSending:K}):h?c.jsx(Whe,{message:h,threadMessages:g,onReply:()=>Xn("reply"),onReplyAll:()=>Xn("reply_all"),onForward:()=>Xn("forward"),onToggleStar:()=>Pe(h.id),onArchive:()=>At(h.id),onDelete:()=>rt(h.id),onToggleRead:()=>qe(h.id),onDownloadAttachment:ir,allTags:x,onToggleTag:Qr,onMoveToFolder:dt,onBack:()=>{p(null),ce("list")},onMessageUpdate:Me=>p(Me)}):c.jsx("div",{className:"flex-1 hidden md:flex items-center justify-center text-muted-foreground",children:c.jsxs("div",{className:"text-center",children:[c.jsx(Ss,{className:"w-12 h-12 mx-auto mb-3 opacity-30"}),c.jsx("p",{className:"text-sm",children:"Selecione um email para visualizar"}),c.jsx(fe,{variant:"link",onClick:()=>Xn("new"),className:"mt-2 text-sm",children:"ou escreva um novo email"})]})})})]})]})]})]})};var epe="Separator",SA="horizontal",tpe=["horizontal","vertical"],V5=w.forwardRef((t,e)=>{const{decorative:r,orientation:n=SA,...s}=t,i=rpe(n)?n:SA,a=r?{role:"none"}:{"aria-orientation":i==="vertical"?i:void 0,role:"separator"};return c.jsx(Ue.div,{"data-orientation":i,...a,...s,ref:e})});V5.displayName=epe;function rpe(t){return tpe.includes(t)}var W5=V5;const q5=w.forwardRef(({className:t,orientation:e="horizontal",decorative:r=!0,...n},s)=>c.jsx(W5,{ref:s,decorative:r,orientation:e,className:Ke("shrink-0 bg-border",e==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",t),...n}));q5.displayName=W5.displayName;const npe=()=>c.jsxs(c.Fragment,{children:[c.jsxs(Un,{children:[c.jsx("title",{children:"Novidades - CS Finance | Atualizações e Melhorias"}),c.jsx("meta",{name:"description",content:"Confira todas as novidades e atualizações do CS Finance. Nova infraestrutura, cartões Mastercard e muito mais funcionalidades chegando."}),c.jsx("meta",{name:"keywords",content:"cs finance novidades, atualizações, mastercard, swap pagamentos, melhorias"}),c.jsx("link",{rel:"canonical",href:"https://csfinance.app.br/news"}),c.jsx("meta",{property:"og:title",content:"Novidades - CS Finance | Atualizações e Melhorias"}),c.jsx("meta",{property:"og:description",content:"Confira todas as novidades e atualizações do CS Finance. Nova infraestrutura, cartões Mastercard e muito mais funcionalidades chegando."}),c.jsx("meta",{property:"og:url",content:"https://csfinance.app.br/news"})]}),c.jsxs("main",{className:"min-h-screen bg-gradient-to-br from-background via-cs-primary/5 to-muted/30 relative overflow-hidden",children:[c.jsx("div",{className:"absolute inset-0 bg-grid-pattern opacity-5"}),c.jsx("div",{className:"absolute top-20 -right-20 w-96 h-96 bg-cs-primary/10 rounded-full blur-3xl animate-pulse"}),c.jsx("div",{className:"absolute bottom-20 -left-20 w-96 h-96 bg-cs-secondary/10 rounded-full blur-3xl animate-pulse delay-1000"}),c.jsxs("section",{className:"bg-gradient-to-r from-cs-primary via-cs-primary to-cs-secondary text-white py-20 relative overflow-hidden",children:[c.jsx("div",{className:"absolute inset-0 opacity-30",style:{backgroundImage:`url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Ccircle cx='30' cy='30' r='1'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E")`}}),c.jsxs("div",{className:"max-w-6xl mx-auto px-4 relative z-10",children:[c.jsxs(is,{to:"/",className:"inline-flex items-center gap-2 text-white/80 hover:text-white mb-8 transition-all duration-300 hover:gap-3 animate-fade-in",children:[c.jsx(Os,{className:"h-4 w-4"}),"Voltar para o início"]}),c.jsxs("div",{className:"flex items-center gap-3 mb-6 animate-fade-in",style:{animationDelay:"0.2s"},children:[c.jsxs("div",{className:"relative",children:[c.jsx(_u,{className:"h-8 w-8 animate-pulse text-yellow-300"}),c.jsx("div",{className:"absolute inset-0 animate-ping",children:c.jsx(_u,{className:"h-8 w-8 text-yellow-300 opacity-30"})})]}),c.jsx(ys,{variant:"outline",className:"border-white/30 text-white bg-white/10 backdrop-blur-sm animate-scale-in",children:"Novidades Importantes"})]}),c.jsx("h1",{className:"text-4xl md:text-6xl font-bold mb-6 bg-gradient-to-r from-white to-w
941hite/80 bg-clip-text text-transparent animate-fade-in",style:{animationDelay:"0.4s"},children:"Evoluindo para servir você melhor"}),c.jsx("p",{className:"text-xl text-white/90 max-w-3xl leading-relaxed animate-fade-in",style:{animationDelay:"0.6s"},children:"Estamos atualizando a infraestrutura do CS Finance para oferecer ainda mais funcionalidades, segurança e benefícios. Confira todos os detalhes das mudanças."}),c.jsxs("div",{className:"grid grid-cols-3 gap-4 mt-12 animate-fade-in",style:{animationDelay:"0.8s"},children:[c.jsxs("div",{className:"text-center p-4 bg-white/10 backdrop-blur-sm rounded-lg border border-white/20",children:[c.jsx("div",{className:"flex items-center justify-center mb-2",children:c.jsx(io,{className:"h-6 w-6 text-green-300"})}),c.jsx("div",{className:"text-2xl font-bold",children:"100%"}),c.jsx("div",{className:"text-sm text-white/80",children:"Segurança"})]}),c.jsxs("div",{className:"text-center p-4 bg-white/10 backdrop-blur-sm rounded-lg border border-white/20",children:[c.jsx("div",{className:"flex items-center justify-center mb-2",children:c.jsx(w0,{className:"h-6 w-6 text-yellow-300"})}),c.jsx("div",{className:"text-2xl font-bold",children:"+50%"}),c.jsx("div",{className:"text-sm text-white/80",children:"Velocidade"})]}),c.jsxs("div",{className:"text-center p-4 bg-white/10 backdrop-blur-sm rounded-lg border border-white/20",children:[c.jsx("div",{className:"flex items-center justify-center mb-2",children:c.jsx($o,{className:"h-6 w-6 text-blue-300"})}),c.jsx("div",{className:"text-2xl font-bold",children:"24/7"}),c.jsx("div",{className:"text-sm text-white/80",children:"Suporte"})]})]})]})]}),c.jsx("section",{className:"py-20 relative z-10",children:c.jsxs("div",{className:"max-w-6xl mx-auto px-4",children:[c.jsxs(Qt,{className:"mb-8 border-cs-primary/20 hover:border-cs-primary/40 transition-all duration-500 hover:shadow-2xl hover:shadow-cs-primary/10 animate-fade-in hover-scale group",children:[c.jsx(vr,{className:"pb-4 bg-gradient-to-r from-cs-primary/5 to-transparent",children:c.jsxs("div",{className:"flex items-center gap-3 mb-2",children:[c.jsx("div",{className:"bg-gradient-to-r from-cs-primary to-cs-secondary rounded-full p-3 group-hover:animate-pulse",children:c.jsx(xx,{className:"h-7 w-7 text-white group-hover:rotate-180 transition-transform duration-500"})}),c.jsx(yr,{className:"text-2xl text-cs-primary group-hover:text-cs-secondary transition-colors duration-300",children:"Nova Infraestrutura"})]})}),c.jsx(hr,{className:"space-y-4",children:c.jsxs("div",{className:"grid md:grid-cols-2 gap-6",children:[c.jsxs("div",{children:[c.jsxs("h3",{className:"font-semibold mb-2 flex items-center gap-2",children:[c.jsx(io,{className:"h-4 w-4 text-cs-primary"}),"Processamento Direto"]}),c.jsx("p",{className:"text-muted-foreground",children:"As transferências e operações financeiras passarão a ser processadas diretamente pela Swap Meio de Pagamentos, garantindo maior autonomia, segurança e flexibilidade."})]}),c.jsxs("div",{children:[c.jsxs("h3",{className:"font-semibold mb-2 flex items-center gap-2",children:[c.jsx(mi,{className:"h-4 w-4 text-green-600"}),"Migração Automática"]}),c.jsx("p",{className:"text-muted-foreground",children:"Para cada conta existente na Dock Soluções em Meios de Pagamento, será criada automaticamente uma nova conta na Swap."})]})]})})]}),c.jsxs(Qt,{className:"mb-8 border-cs-primary/20 hover:border-cs-primary/40 transition-all duration-500 hover:shadow-2xl hover:shadow-cs-primary/10 animate-fade-in hover-scale group",style:{animationDelay:"0.2s"},children:[c.jsx(vr,{className:"pb-4 bg-gradient-to-r from-orange-500/5 to-transparent",children:c.jsxs("div",{className:"flex items-center gap-3 mb-2",children:[c.jsx("div",{className:"bg-gradient-to-r from-orange-500 to-red-500 rounded-full p-3 group-hover:animate-pulse",children:c.jsx(z2,{className:"h-7 w-7 text-white group-hover:scale-110 transition-transform duration-300"})}),c.jsx(yr,{className:"text-2xl text-cs-primary group-hover:text-orange-500 transition-colors duration-300",children:"Cartões Mastercard"})]})}),c.jsx(hr,{className:"space-y-4",children:c.jsxs("div",{className:"grid md:grid-cols-2 gap-6",children:[c.jsxs("div",{children:[c.jsxs("h3",{className:"font-semibold mb-2 flex items-center gap-2",children:[c.jsx(wx,{className:"h-4 w-4 text-cs-primary"}),"Nova Bandeira"]}),c.jsx("p",{className:"text-muted-foreground",children:"Nossos cartões passarão a ser bandeira Mastercard, com possibilidade de adição ao Google Pay e Apple Wallet."})]}),c.jsxs("div",{children:[c.jsx("h3",{className:"font-semibold mb-2 text-amber-600",children:"⚠️ Importante"}),c.jsx("p",{className:"text-muted-foreground",children:"Os cartões físicos e virtuais atuais deixarão de funcionar e precisarão ser recriados."})]})]})})]}),c.jsxs(Qt,{className:"mb-8 border-cs-primary/20 hover:border-cs-primary/40 transition-all duration-500 hover:shadow-2xl hover:shadow-cs-primary/10 animate-fade-in hover-scale group",style:{animationDelay:"0.4s"},children:[c.jsx(vr,{className:"pb-4 bg-gradient-to-r from-blue-500/5 to-transparent",children:c.jsxs("div",{className:"flex items-center gap-3 mb-2",children:[c.jsx("div",{className:"bg-gradient-to-r from-blue-500 to-indigo-500 rounded-full p-3 group-hover:animate-pulse",children:c.jsx(n$,{className:"h-7 w-7 text-white group-hover:scale-110 transition-transform duration-300"})}),c.jsx(yr,{className:"text-2xl text-cs-primary group-hover:text-blue-500 transition-colors duration-300",children:"Boletos"})]})}),c.jsx(hr,{className:"space-y-4",children:c.jsxs("div",{className:"space-y-4",children:[c.jsxs("div",{className:"bg-amber-50 border border-amber-200 rounded-lg p-4",children:[c.jsx("h3",{className:"font-semibold mb-2 text-amber-800",children:"Boletos com Vencimento Futuro"}),c.jsx("p",{className:"text-amber-700",children:"Boletos emitidos pela Dock com vencimento futuro ou ainda não pagos até a data da migração não poderão ser liquidados. Nesses casos, novos boletos serão reemitidos automaticamente sem custo."})]}),c.jsxs("div",{className:"bg-red-50 border border-red-200 rounded-lg p-4",children:[c.jsx("h3",{className:"font-semibold mb-2 text-red-800",children:"Boletos Vencidos"}),c.jsx("p",{className:"text-red-700",children:"Boletos já vencidos não poderão ser reemitidos com a mesma data de vencimento."})]})]})})]}),c.jsxs(Qt,{className:"mb-8 border-cs-primary/20 hover:border-cs-primary/40 transition-all duration-500 hover:shadow-2xl hover:shadow-cs-primary/10 animate-fade-in hover-scale group",style:{animationDelay:"0.6s"},children:[c.jsx(vr,{className:"pb-4 bg-gradient-to-r from-purple-500/5 to-transparent",children:c.jsxs("div",{className:"flex items-center gap-3 mb-2",children:[c.jsx("div",{className:"bg-gradient-to-r from-purple-500 to-pink-500 rounded-full p-3 group-hover:animate-pulse",children:c.jsx(LR,{className:"h-7 w-7 text-white group-hover:scale-110 transition-transform duration-300"})}),c.jsx(yr,{className:"text-2xl text-cs-primary group-hover:text-purple-500 transition-colors duration-300",children:"Outras Melhorias"})]})}),c.jsx(hr,{className:"space-y-4",children:c.jsxs("div",{className:"grid md:grid-cols-2 gap-6",children:[c.jsxs("div",{children:[c.jsx("h3",{className:"font-semibold mb-2 text-green-600",children:"✅ Mantido"}),c.jsx("p",{className:"text-muted-foreground",children:"Histórico de extratos e comprovantes seguirá disponível no aplicativo/web."})]}),c.jsxs("div",{children:[c.jsx("h3",{className:"font-semibold mb-2 text-cs-primary",children:"🆕 Novos Recursos"}),c.jsx("p",{className:"text-muted-foreground",children:"Wallet, integração Mastercard e futuras funcionalidades de carteiras digitais."})]})]})})]}),c.jsxs(Qt,{className:"mb-8 bg-gradient-to-r from-green-50 to-emerald-50 border-green-200 hover:border-green-300 transition-all duration-500 hover:shadow-2xl hover:shadow-green-500/10 animate-fade-in hover-scale group",style:{animationDelay:"0.8s"},children:[c.jsx(vr,{className:"pb-4",children:c.jsxs(yr,{className:"text-2xl text-green-800 flex items-center gap-3 group-hover:text-green-600 transition-colors duration-300",children:[c.jsx("div",{className:"bg-green-500 rounded-full p-2 group-hover:animate-pulse",children:c.jsx(mi,{className:"h-6 w-6 text-white group-hover:scale-110 transition-transform duration-300"})}),"Você pode ficar tranquilo"]})}),c.jsxs(hr,{className:"space-y-3",children:[c.jsx("p",{className:"text-green-700",children:"• Não haverá qualquer prejuízo ou impacto negativo para sua experiência."}),c.jsx("p",{className:"text-green-700",children:"• Suas operações continuarão funcionando normalmente durante a transição."})]})]}),c.jsxs(Qt,{className:"border-cs-primary/20 hover:border-cs-primary/40 transition-all duration-500 hover:shadow-2xl hover:shadow-cs-primary/10 animate-fade-in hover-scale group",style:{animationDelay:"1s"},children:[c.jsx(vr,{className:"pb-4 bg-gradient-to-r from-cs-primary/5 to-cs-secondary/5",children:c.jsxs("div",{className:"flex items-center gap-3 mb-2",children:[c.jsx("div",{className:"bg-gradient-to-r from-cs-primary to-cs-secondary rounded-full p-3 group-hover:animate-pulse",children:c.jsx(k7,{className:"h-7 w-7 text-white group-hover:scale-110 transition-transform duration-300"})}),c.jsx(yr,{className:"text-2xl text-cs-primary group-hover:text-cs-secondary transition-colors duration-300",children:"Próximos Passos"})]})}),c.jsxs(hr,{className:"space-y-4",children:[c.jsxs("div",{className:"space-y-3",children:[c.jsx("p",{className:"text-muted-foreground",children:"• Em breve, compartilharemos as datas exatas da migração, além dos novos termos de uso e dados bancários."}),c.jsx("p",{className:"text-muted-foreground",children:"• Você receberá comunicados via e-mail e push no aplicativo com todas as instruções necessárias."})]}),c.jsx(q5,{className:"my-6 bg-gradient-to-r from-transparent via-cs-primary/20 to-transparent"}),c.jsxs("div",{className:"bg-gradient-to-r from-background/80 via-cs-primary/5 to-background/80 backdrop-blur-sm rounded-xl p-8 border border-cs-primary/10",children:[c.jsxs("div",{className:"text-center mb-6",children:[c.jsx($7,{className:"h-12 w-12 text-cs-primary mx-auto mb-4 animate-pulse"}),c.jsx("p",{className:"text-muted-foreground mb-4 text-lg",children:"Se tiver qualquer dúv
941ida, entre em contato pelos canais de suporte disponíveis no aplicativo."})]}),c.jsx("div",{className:"text-center",children:c.jsx(fe,{asChild:!0,className:"bg-gradient-to-r from-cs-primary to-cs-secondary hover:from-cs-secondary hover:to-cs-primary transition-all duration-500 text-white shadow-lg hover:shadow-xl hover:shadow-cs-primary/25 transform hover:scale-105",children:c.jsxs(is,{to:"/contact",className:"flex items-center gap-2",children:["Entre em Contato",c.jsx(_u,{className:"h-4 w-4"})]})})})]})]})]})]})})]})]}),spe=()=>{const t=np();return w.useEffect(()=>{console.error("404 Error: User attempted to access non-existent route:",t.pathname)},[t.pathname]),c.jsx("div",{className:"min-h-screen flex items-center justify-center bg-gradient-to-br from-cs-primary/5 to-cs-secondary/5",children:c.jsxs("div",{className:"text-center max-w-md mx-auto px-4",children:[c.jsxs("div",{className:"mb-8",children:[c.jsx("div",{className:"text-8xl font-bold text-cs-primary mb-4",children:"404"}),c.jsx("div",{className:"w-24 h-1 bg-cs-accent mx-auto mb-6 rounded-full"}),c.jsx("h1",{className:"text-2xl font-bold text-cs-primary mb-4",children:"Página não encontrada"}),c.jsx("p",{className:"text-muted-foreground mb-8",children:"Oops! A página que você está procurando não existe ou foi movida."})]}),c.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 justify-center",children:[c.jsxs(fe,{onClick:()=>window.history.back(),variant:"outline",className:"flex items-center gap-2",children:[c.jsx(Os,{className:"w-4 h-4"}),"Voltar"]}),c.jsxs(fe,{onClick:()=>window.location.href="/",className:"bg-cs-primary hover:bg-cs-primary/90 flex items-center gap-2",children:[c.jsx(mx,{className:"w-4 h-4"}),"Ir para Home"]})]})]})})},ipe=new IU,ope=()=>c.jsx(LU,{client:ipe,children:c.jsx(XO,{children:c.jsxs(dU,{children:[c.jsx(X$,{}),c.jsx(k9,{}),c.jsx(PH,{children:c.jsxs(CH,{children:[c.jsx(On,{path:"/",element:c.jsx(eW,{})}),c.jsx(On,{path:"/cs-consignado",element:c.jsx(tW,{})}),c.jsx(On,{path:"/cs-risco-sacado",element:c.jsx(rW,{})}),c.jsx(On,{path:"/credito-imobiliario",element:c.jsx(dW,{})}),c.jsx(On,{path:"/privacy-policy",element:c.jsx(fW,{})}),c.jsx(On,{path:"/terms-of-use",element:c.jsx(hW,{})}),c.jsx(On,{path:"/data-protection",element:c.jsx(pW,{})}),c.jsx(On,{path:"/faq",element:c.jsx(mW,{})}),c.jsx(On,{path:"/contact",element:c.jsx(dK,{})}),c.jsx(On,{path:"/admin",element:c.jsx(pde,{})}),c.jsx(On,{path:"/admin-login",element:c.jsx(Sde,{})}),c.jsx(On,{path:"/admin-email",element:c.jsx(Zhe,{})}),c.jsx(On,{path:"/news",element:c.jsx(npe,{})}),c.jsx(On,{path:"*",element:c.jsx(spe,{})})]})})]})})});H4(document.getElementById("root")).render(c.jsx(ope,{}));

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.