var h1=e=>{throw TypeError(e)};var qD=(e,n)=>()=>(n||e((n={exports:{}}).exports,n),n.exports);var Op=(e,n,r)=>n.has(e)||h1("Cannot "+r);var ne=(e,n,r)=>(Op(e,n,"read from private field"),r?r.call(e):n.get(e)),Ke=(e,n,r)=>n.has(e)?h1("Cannot add the same private member more than once"):n instanceof WeakSet?n.add(e):n.set(e,r),Ie=(e,n,r,i)=>(Op(e,n,"write to private field"),i?i.call(e,r):n.set(e,r),r),lt=(e,n,r)=>(Op(e,n,"access private method"),r);var Hd=(e,n,r,i)=>({set _(s){Ie(e,n,s,r)},get _(){return ne(e,n,i)}});var Tte=qD((Zte,Mu)=>{function zD(e,n){for(var r=0;r<n.length;r++){const i=n[r];if(typeof i!="string"&&!Array.isArray(i)){for(const s in i)if(s!=="default"&&!(s in e)){const a=Object.getOwnPropertyDescriptor(i,s);a&&Object.defineProperty(e,s,a.get?a:{enumerable:!0,get:()=>i[s]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const n=document.createElement("link").relList;if(n&&n.supports&&n.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))i(s);new MutationObserver(s=>{for(const a of s)if(a.type==="childList")for(const o of a.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&i(o)}).observe(document,{childList:!0,subtree:!0});function r(s){const a={};return s.integrity&&(a.integrity=s.integrity),s.referrerPolicy&&(a.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?a.credentials="include":s.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function i(s){if(s.ep)return;s.ep=!0;const a=r(s);fetch(s.href,a)}})();var Wd=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ni(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Dp={exports:{}},pc={},Ip={exports:{}},dt={};/**
 * @license React
 * react.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var f1;function VD(){if(f1)return dt;f1=1;var e=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),o=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),f=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),m=Symbol.iterator;function p(T){return T===null||typeof T!="object"?null:(T=m&&T[m]||T["@@iterator"],typeof T=="function"?T:null)}var g={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},b=Object.assign,j={};function y(T,V,L){this.props=T,this.context=V,this.refs=j,this.updater=L||g}y.prototype.isReactComponent={},y.prototype.setState=function(T,V){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,V,"setState")},y.prototype.forceUpdate=function(T){this.updater.enqueueForceUpdate(this,T,"forceUpdate")};function x(){}x.prototype=y.prototype;function N(T,V,L){this.props=T,this.context=V,this.refs=j,this.updater=L||g}var w=N.prototype=new x;w.constructor=N,b(w,y.prototype),w.isPureReactComponent=!0;var k=Array.isArray,A=Object.prototype.hasOwnProperty,S={current:null},E={key:!0,ref:!0,__self:!0,__source:!0};function C(T,V,L){var X,J={},W=null,G=null;if(V!=null)for(X in V.ref!==void 0&&(G=V.ref),V.key!==void 0&&(W=""+V.key),V)A.call(V,X)&&!E.hasOwnProperty(X)&&(J[X]=V[X]);var te=arguments.length-2;if(te===1)J.children=L;else if(1<te){for(var re=Array(te),le=0;le<te;le++)re[le]=arguments[le+2];J.children=re}if(T&&T.defaultProps)for(X in te=T.defaultProps,te)J[X]===void 0&&(J[X]=te[X]);return{$$typeof:e,type:T,key:W,ref:G,props:J,_owner:S.current}}function B(T,V){return{$$typeof:e,type:T.type,key:V,ref:T.ref,props:T.props,_owner:T._owner}}function I(T){return typeof T=="object"&&T!==null&&T.$$typeof===e}function R(T){var V={"=":"=0",":":"=2"};return"$"+T.replace(/[=:]/g,function(L){return V[L]})}var D=/\/+/g;function q(T,V){return typeof T=="object"&&T!==null&&T.key!=null?R(""+T.key):V.toString(36)}function z(T,V,L,X,J){var W=typeof T;(W==="undefined"||W==="boolean")&&(T=null);var G=!1;if(T===null)G=!0;else switch(W){case"string":case"number":G=!0;break;case"object":switch(T.$$typeof){case e:case n:G=!0}}if(G)return G=T,J=J(G),T=X===""?"."+q(G,0):X,k(J)?(L="",T!=null&&(L=T.replace(D,"$&/")+"/"),z(J,V,L,"",function(le){return le})):J!=null&&(I(J)&&(J=B(J,L+(!J.key||G&&G.key===J.key?"":(""+J.key).replace(D,"$&/")+"/")+T)),V.push(J)),1;if(G=0,X=X===""?".":X+":",k(T))for(var te=0;te<T.length;te++){W=T[te];var re=X+q(W,te);G+=z(W,V,L,re,J)}else if(re=p(T),typeof re=="function")for(T=re.call(T),te=0;!(W=T.next()).done;)W=W.value,re=X+q(W,te++),G+=z(W,V,L,re,J);else if(W==="object")throw V=String(T),Error("Objects are not valid as a React child (found: "+(V==="[object Object]"?"object with keys {"+Object.keys(T).join(", ")+"}":V)+"). If you meant to render a collection of children, use an array instead.");return G}function U(T,V,L){if(T==null)return T;var X=[],J=0;return z(T,X,"","",function(W){return V.call(L,W,J++)}),X}function Y(T){if(T._status===-1){var V=T._result;V=V(),V.then(function(L){(T._status===0||T._status===-1)&&(T._status=1,T._result=L)},function(L){(T._status===0||T._status===-1)&&(T._status=2,T._result=L)}),T._status===-1&&(T._status=0,T._result=V)}if(T._status===1)return T._result.default;throw T._result}var H={current:null},K={transition:null},Q={ReactCurrentDispatcher:H,ReactCurrentBatchConfig:K,ReactCurrentOwner:S};function O(){throw Error("act(...) is not supported in production builds of React.")}return dt.Children={map:U,forEach:function(T,V,L){U(T,function(){V.apply(this,arguments)},L)},count:function(T){var V=0;return U(T,function(){V++}),V},toArray:function(T){return U(T,function(V){return V})||[]},only:function(T){if(!I(T))throw Error("React.Children.only expected to receive a single React element child.");return T}},dt.Component=y,dt.Fragment=r,dt.Profiler=s,dt.PureComponent=N,dt.StrictMode=i,dt.Suspense=d,dt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Q,dt.act=O,dt.cloneElement=function(T,V,L){if(T==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+T+".");var X=b({},T.props),J=T.key,W=T.ref,G=T._owner;if(V!=null){if(V.ref!==void 0&&(W=V.ref,G=S.current),V.key!==void 0&&(J=""+V.key),T.type&&T.type.defaultProps)var te=T.type.defaultProps;for(re in V)A.call(V,re)&&!E.hasOwnProperty(re)&&(X[re]=V[re]===void 0&&te!==void 0?te[re]:V[re])}var re=arguments.length-2;if(re===1)X.children=L;else if(1<re){te=Array(re);for(var le=0;le<re;le++)te[le]=arguments[le+2];X.children=te}return{$$typeof:e,type:T.type,key:J,ref:W,props:X,_owner:G}},dt.createContext=function(T){return T={$$typeof:o,_currentValue:T,_currentValue2:T,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},T.Provider={$$typeof:a,_context:T},T.Consumer=T},dt.createElement=C,dt.createFactory=function(T){var V=C.bind(null,T);return V.type=T,V},dt.createRef=function(){return{current:null}},dt.forwardRef=function(T){return{$$typeof:c,render:T}},dt.isValidElement=I,dt.lazy=function(T){return{$$typeof:h,_payload:{_status:-1,_result:T},_init:Y}},dt.memo=function(T,V){return{$$typeof:f,type:T,compare:V===void 0?null:V}},dt.startTransition=function(T){var V=K.transition;K.transition={};try{T()}finally{K.transition=V}},dt.unstable_act=O,dt.useCallback=function(T,V){return H.current.useCallback(T,V)},dt.useContext=function(T){return H.current.useContext(T)},dt.useDebugValue=function(){},dt.useDeferredValue=function(T){return H.current.useDeferredValue(T)},dt.useEffect=function(T,V){return H.current.useEffect(T,V)},dt.useId=function(){return H.current.useId()},dt.useImperativeHandle=function(T,V,L){return H.current.useImperativeHandle(T,V,L)},dt.useInsertionEffect=function(T,V){return H.current.useInsertionEffect(T,V)},dt.useLayoutEffect=function(T,V){return H.current.useLayoutEffect(T,V)},dt.useMemo=function(T,V){return H.current.useMemo(T,V)},dt.useReducer=function(T,V,L){return H.current.useReducer(T,V,L)},dt.useRef=function(T){return H.current.useRef(T)},dt.useState=function(T){return H.current.useState(T)},dt.useSyncExternalStore=function(T,V,L){return H.current.useSyncExternalStore(T,V,L)},dt.useTransition=function(){return H.current.useTransition()},dt.version="18.3.1",dt}var m1;function yu(){return m1||(m1=1,Ip.exports=VD()),Ip.exports}/**
 * @license React
 * react-jsx-runtime.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var p1;function UD(){if(p1)return pc;p1=1;var e=yu(),n=Symbol.for("react.element"),r=Symbol.for("react.fragment"),i=Object.prototype.hasOwnProperty,s=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function o(c,d,f){var h,m={},p=null,g=null;f!==void 0&&(p=""+f),d.key!==void 0&&(p=""+d.key),d.ref!==void 0&&(g=d.ref);for(h in d)i.call(d,h)&&!a.hasOwnProperty(h)&&(m[h]=d[h]);if(c&&c.defaultProps)for(h in d=c.defaultProps,d)m[h]===void 0&&(m[h]=d[h]);return{$$typeof:n,type:c,key:p,ref:g,props:m,_owner:s.current}}return pc.Fragment=r,pc.jsx=o,pc.jsxs=o,pc}var g1;function $D(){return g1||(g1=1,Dp.exports=UD()),Dp.exports}var t=$D(),F=yu();const Rt=Ni(F),Q0=zD({__proto__:null,default:Rt},[F]);var Kd={},Rp={exports:{}},Gn={},Fp={exports:{}},Mp={};/**
 * @license React
 * scheduler.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var x1;function HD(){return x1||(x1=1,(function(e){function n(K,Q){var O=K.length;K.push(Q);e:for(;0<O;){var T=O-1>>>1,V=K[T];if(0<s(V,Q))K[T]=Q,K[O]=V,O=T;else break e}}function r(K){return K.length===0?null:K[0]}function i(K){if(K.length===0)return null;var Q=K[0],O=K.pop();if(O!==Q){K[0]=O;e:for(var T=0,V=K.length,L=V>>>1;T<L;){var X=2*(T+1)-1,J=K[X],W=X+1,G=K[W];if(0>s(J,O))W<V&&0>s(G,J)?(K[T]=G,K[W]=O,T=W):(K[T]=J,K[X]=O,T=X);else if(W<V&&0>s(G,O))K[T]=G,K[W]=O,T=W;else break e}}return Q}function s(K,Q){var O=K.sortIndex-Q.sortIndex;return O!==0?O:K.id-Q.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,c=o.now();e.unstable_now=function(){return o.now()-c}}var d=[],f=[],h=1,m=null,p=3,g=!1,b=!1,j=!1,y=typeof setTimeout=="function"?setTimeout:null,x=typeof clearTimeout=="function"?clearTimeout:null,N=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function w(K){for(var Q=r(f);Q!==null;){if(Q.callback===null)i(f);else if(Q.startTime<=K)i(f),Q.sortIndex=Q.expirationTime,n(d,Q);else break;Q=r(f)}}function k(K){if(j=!1,w(K),!b)if(r(d)!==null)b=!0,Y(A);else{var Q=r(f);Q!==null&&H(k,Q.startTime-K)}}function A(K,Q){b=!1,j&&(j=!1,x(C),C=-1),g=!0;var O=p;try{for(w(Q),m=r(d);m!==null&&(!(m.expirationTime>Q)||K&&!R());){var T=m.callback;if(typeof T=="function"){m.callback=null,p=m.priorityLevel;var V=T(m.expirationTime<=Q);Q=e.unstable_now(),typeof V=="function"?m.callback=V:m===r(d)&&i(d),w(Q)}else i(d);m=r(d)}if(m!==null)var L=!0;else{var X=r(f);X!==null&&H(k,X.startTime-Q),L=!1}return L}finally{m=null,p=O,g=!1}}var S=!1,E=null,C=-1,B=5,I=-1;function R(){return!(e.unstable_now()-I<B)}function D(){if(E!==null){var K=e.unstable_now();I=K;var Q=!0;try{Q=E(!0,K)}finally{Q?q():(S=!1,E=null)}}else S=!1}var q;if(typeof N=="function")q=function(){N(D)};else if(typeof MessageChannel<"u"){var z=new MessageChannel,U=z.port2;z.port1.onmessage=D,q=function(){U.postMessage(null)}}else q=function(){y(D,0)};function Y(K){E=K,S||(S=!0,q())}function H(K,Q){C=y(function(){K(e.unstable_now())},Q)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(K){K.callback=null},e.unstable_continueExecution=function(){b||g||(b=!0,Y(A))},e.unstable_forceFrameRate=function(K){0>K||125<K?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):B=0<K?Math.floor(1e3/K):5},e.unstable_getCurrentPriorityLevel=function(){return p},e.unstable_getFirstCallbackNode=function(){return r(d)},e.unstable_next=function(K){switch(p){case 1:case 2:case 3:var Q=3;break;default:Q=p}var O=p;p=Q;try{return K()}finally{p=O}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(K,Q){switch(K){case 1:case 2:case 3:case 4:case 5:break;default:K=3}var O=p;p=K;try{return Q()}finally{p=O}},e.unstable_scheduleCallback=function(K,Q,O){var T=e.unstable_now();switch(typeof O=="object"&&O!==null?(O=O.delay,O=typeof O=="number"&&0<O?T+O:T):O=T,K){case 1:var V=-1;break;case 2:V=250;break;case 5:V=1073741823;break;case 4:V=1e4;break;default:V=5e3}return V=O+V,K={id:h++,callback:Q,priorityLevel:K,startTime:O,expirationTime:V,sortIndex:-1},O>T?(K.sortIndex=O,n(f,K),r(d)===null&&K===r(f)&&(j?(x(C),C=-1):j=!0,H(k,O-T))):(K.sortIndex=V,n(d,K),b||g||(b=!0,Y(A))),K},e.unstable_shouldYield=R,e.unstable_wrapCallback=function(K){var Q=p;return function(){var O=p;p=Q;try{return K.apply(this,arguments)}finally{p=O}}}})(Mp)),Mp}var y1;function WD(){return y1||(y1=1,Fp.exports=HD()),Fp.exports}/**
 * @license React
 * react-dom.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var v1;function KD(){if(v1)return Gn;v1=1;var e=yu(),n=WD();function r(l){for(var u="https://reactjs.org/docs/error-decoder.html?invariant="+l,v=1;v<arguments.length;v++)u+="&args[]="+encodeURIComponent(arguments[v]);return"Minified React error #"+l+"; visit "+u+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var i=new Set,s={};function a(l,u){o(l,u),o(l+"Capture",u)}function o(l,u){for(s[l]=u,l=0;l<u.length;l++)i.add(u[l])}var c=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),d=Object.prototype.hasOwnProperty,f=/^[: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]*$/,h={},m={};function p(l){return d.call(m,l)?!0:d.call(h,l)?!1:f.test(l)?m[l]=!0:(h[l]=!0,!1)}function g(l,u,v,_){if(v!==null&&v.type===0)return!1;switch(typeof u){case"function":case"symbol":return!0;case"boolean":return _?!1:v!==null?!v.acceptsBooleans:(l=l.toLowerCase().slice(0,5),l!=="data-"&&l!=="aria-");default:return!1}}function b(l,u,v,_){if(u===null||typeof u>"u"||g(l,u,v,_))return!0;if(_)return!1;if(v!==null)switch(v.type){case 3:return!u;case 4:return u===!1;case 5:return isNaN(u);case 6:return isNaN(u)||1>u}return!1}function j(l,u,v,_,P,M,$){this.acceptsBooleans=u===2||u===3||u===4,this.attributeName=_,this.attributeNamespace=P,this.mustUseProperty=v,this.propertyName=l,this.type=u,this.sanitizeURL=M,this.removeEmptyString=$}var y={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(l){y[l]=new j(l,0,!1,l,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(l){var u=l[0];y[u]=new j(u,1,!1,l[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(l){y[l]=new j(l,2,!1,l.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(l){y[l]=new j(l,2,!1,l,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(l){y[l]=new j(l,3,!1,l.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(l){y[l]=new j(l,3,!0,l,null,!1,!1)}),["capture","download"].forEach(function(l){y[l]=new j(l,4,!1,l,null,!1,!1)}),["cols","rows","size","span"].forEach(function(l){y[l]=new j(l,6,!1,l,null,!1,!1)}),["rowSpan","start"].forEach(function(l){y[l]=new j(l,5,!1,l.toLowerCase(),null,!1,!1)});var x=/[\-:]([a-z])/g;function N(l){return l[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(l){var u=l.replace(x,N);y[u]=new j(u,1,!1,l,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(l){var u=l.replace(x,N);y[u]=new j(u,1,!1,l,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(l){var u=l.replace(x,N);y[u]=new j(u,1,!1,l,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(l){y[l]=new j(l,1,!1,l.toLowerCase(),null,!1,!1)}),y.xlinkHref=new j("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(l){y[l]=new j(l,1,!1,l.toLowerCase(),null,!0,!0)});function w(l,u,v,_){var P=y.hasOwnProperty(u)?y[u]:null;(P!==null?P.type!==0:_||!(2<u.length)||u[0]!=="o"&&u[0]!=="O"||u[1]!=="n"&&u[1]!=="N")&&(b(u,v,P,_)&&(v=null),_||P===null?p(u)&&(v===null?l.removeAttribute(u):l.setAttribute(u,""+v)):P.mustUseProperty?l[P.propertyName]=v===null?P.type===3?!1:"":v:(u=P.attributeName,_=P.attributeNamespace,v===null?l.removeAttribute(u):(P=P.type,v=P===3||P===4&&v===!0?"":""+v,_?l.setAttributeNS(_,u,v):l.setAttribute(u,v))))}var k=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,A=Symbol.for("react.element"),S=Symbol.for("react.portal"),E=Symbol.for("react.fragment"),C=Symbol.for("react.strict_mode"),B=Symbol.for("react.profiler"),I=Symbol.for("react.provider"),R=Symbol.for("react.context"),D=Symbol.for("react.forward_ref"),q=Symbol.for("react.suspense"),z=Symbol.for("react.suspense_list"),U=Symbol.for("react.memo"),Y=Symbol.for("react.lazy"),H=Symbol.for("react.offscreen"),K=Symbol.iterator;function Q(l){return l===null||typeof l!="object"?null:(l=K&&l[K]||l["@@iterator"],typeof l=="function"?l:null)}var O=Object.assign,T;function V(l){if(T===void 0)try{throw Error()}catch(v){var u=v.stack.trim().match(/\n( *(at )?)/);T=u&&u[1]||""}return`
`+T+l}var L=!1;function X(l,u){if(!l||L)return"";L=!0;var v=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(u)if(u=function(){throw Error()},Object.defineProperty(u.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(u,[])}catch(he){var _=he}Reflect.construct(l,[],u)}else{try{u.call()}catch(he){_=he}l.call(u.prototype)}else{try{throw Error()}catch(he){_=he}l()}}catch(he){if(he&&_&&typeof he.stack=="string"){for(var P=he.stack.split(`
`),M=_.stack.split(`
`),$=P.length-1,ee=M.length-1;1<=$&&0<=ee&&P[$]!==M[ee];)ee--;for(;1<=$&&0<=ee;$--,ee--)if(P[$]!==M[ee]){if($!==1||ee!==1)do if($--,ee--,0>ee||P[$]!==M[ee]){var ie=`
`+P[$].replace(" at new "," at ");return l.displayName&&ie.includes("<anonymous>")&&(ie=ie.replace("<anonymous>",l.displayName)),ie}while(1<=$&&0<=ee);break}}}finally{L=!1,Error.prepareStackTrace=v}return(l=l?l.displayName||l.name:"")?V(l):""}function J(l){switch(l.tag){case 5:return V(l.type);case 16:return V("Lazy");case 13:return V("Suspense");case 19:return V("SuspenseList");case 0:case 2:case 15:return l=X(l.type,!1),l;case 11:return l=X(l.type.render,!1),l;case 1:return l=X(l.type,!0),l;default:return""}}function W(l){if(l==null)return null;if(typeof l=="function")return l.displayName||l.name||null;if(typeof l=="string")return l;switch(l){case E:return"Fragment";case S:return"Portal";case B:return"Profiler";case C:return"StrictMode";case q:return"Suspense";case z:return"SuspenseList"}if(typeof l=="object")switch(l.$$typeof){case R:return(l.displayName||"Context")+".Consumer";case I:return(l._context.displayName||"Context")+".Provider";case D:var u=l.render;return l=l.displayName,l||(l=u.displayName||u.name||"",l=l!==""?"ForwardRef("+l+")":"ForwardRef"),l;case U:return u=l.displayName||null,u!==null?u:W(l.type)||"Memo";case Y:u=l._payload,l=l._init;try{return W(l(u))}catch{}}return null}function G(l){var u=l.type;switch(l.tag){case 24:return"Cache";case 9:return(u.displayName||"Context")+".Consumer";case 10:return(u._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return l=u.render,l=l.displayName||l.name||"",u.displayName||(l!==""?"ForwardRef("+l+")":"ForwardRef");case 7:return"Fragment";case 5:return u;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return W(u);case 8:return u===C?"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 u=="function")return u.displayName||u.name||null;if(typeof u=="string")return u}return null}function te(l){switch(typeof l){case"boolean":case"number":case"string":case"undefined":return l;case"object":return l;default:return""}}function re(l){var u=l.type;return(l=l.nodeName)&&l.toLowerCase()==="input"&&(u==="checkbox"||u==="radio")}function le(l){var u=re(l)?"checked":"value",v=Object.getOwnPropertyDescriptor(l.constructor.prototype,u),_=""+l[u];if(!l.hasOwnProperty(u)&&typeof v<"u"&&typeof v.get=="function"&&typeof v.set=="function"){var P=v.get,M=v.set;return Object.defineProperty(l,u,{configurable:!0,get:function(){return P.call(this)},set:function($){_=""+$,M.call(this,$)}}),Object.defineProperty(l,u,{enumerable:v.enumerable}),{getValue:function(){return _},setValue:function($){_=""+$},stopTracking:function(){l._valueTracker=null,delete l[u]}}}}function ye(l){l._valueTracker||(l._valueTracker=le(l))}function be(l){if(!l)return!1;var u=l._valueTracker;if(!u)return!0;var v=u.getValue(),_="";return l&&(_=re(l)?l.checked?"true":"false":l.value),l=_,l!==v?(u.setValue(l),!0):!1}function Pe(l){if(l=l||(typeof document<"u"?document:void 0),typeof l>"u")return null;try{return l.activeElement||l.body}catch{return l.body}}function Te(l,u){var v=u.checked;return O({},u,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:v??l._wrapperState.initialChecked})}function We(l,u){var v=u.defaultValue==null?"":u.defaultValue,_=u.checked!=null?u.checked:u.defaultChecked;v=te(u.value!=null?u.value:v),l._wrapperState={initialChecked:_,initialValue:v,controlled:u.type==="checkbox"||u.type==="radio"?u.checked!=null:u.value!=null}}function ut(l,u){u=u.checked,u!=null&&w(l,"checked",u,!1)}function nt(l,u){ut(l,u);var v=te(u.value),_=u.type;if(v!=null)_==="number"?(v===0&&l.value===""||l.value!=v)&&(l.value=""+v):l.value!==""+v&&(l.value=""+v);else if(_==="submit"||_==="reset"){l.removeAttribute("value");return}u.hasOwnProperty("value")?ve(l,u.type,v):u.hasOwnProperty("defaultValue")&&ve(l,u.type,te(u.defaultValue)),u.checked==null&&u.defaultChecked!=null&&(l.defaultChecked=!!u.defaultChecked)}function ge(l,u,v){if(u.hasOwnProperty("value")||u.hasOwnProperty("defaultValue")){var _=u.type;if(!(_!=="submit"&&_!=="reset"||u.value!==void 0&&u.value!==null))return;u=""+l._wrapperState.initialValue,v||u===l.value||(l.value=u),l.defaultValue=u}v=l.name,v!==""&&(l.name=""),l.defaultChecked=!!l._wrapperState.initialChecked,v!==""&&(l.name=v)}function ve(l,u,v){(u!=="number"||Pe(l.ownerDocument)!==l)&&(v==null?l.defaultValue=""+l._wrapperState.initialValue:l.defaultValue!==""+v&&(l.defaultValue=""+v))}var Se=Array.isArray;function Oe(l,u,v,_){if(l=l.options,u){u={};for(var P=0;P<v.length;P++)u["$"+v[P]]=!0;for(v=0;v<l.length;v++)P=u.hasOwnProperty("$"+l[v].value),l[v].selected!==P&&(l[v].selected=P),P&&_&&(l[v].defaultSelected=!0)}else{for(v=""+te(v),u=null,P=0;P<l.length;P++){if(l[P].value===v){l[P].selected=!0,_&&(l[P].defaultSelected=!0);return}u!==null||l[P].disabled||(u=l[P])}u!==null&&(u.selected=!0)}}function je(l,u){if(u.dangerouslySetInnerHTML!=null)throw Error(r(91));return O({},u,{value:void 0,defaultValue:void 0,children:""+l._wrapperState.initialValue})}function tt(l,u){var v=u.value;if(v==null){if(v=u.children,u=u.defaultValue,v!=null){if(u!=null)throw Error(r(92));if(Se(v)){if(1<v.length)throw Error(r(93));v=v[0]}u=v}u==null&&(u=""),v=u}l._wrapperState={initialValue:te(v)}}function et(l,u){var v=te(u.value),_=te(u.defaultValue);v!=null&&(v=""+v,v!==l.value&&(l.value=v),u.defaultValue==null&&l.defaultValue!==v&&(l.defaultValue=v)),_!=null&&(l.defaultValue=""+_)}function rt(l){var u=l.textContent;u===l._wrapperState.initialValue&&u!==""&&u!==null&&(l.value=u)}function xe(l){switch(l){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 _e(l,u){return l==null||l==="http://www.w3.org/1999/xhtml"?xe(u):l==="http://www.w3.org/2000/svg"&&u==="foreignObject"?"http://www.w3.org/1999/xhtml":l}var De,it=(function(l){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(u,v,_,P){MSApp.execUnsafeLocalFunction(function(){return l(u,v,_,P)})}:l})(function(l,u){if(l.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in l)l.innerHTML=u;else{for(De=De||document.createElement("div"),De.innerHTML="<svg>"+u.valueOf().toString()+"</svg>",u=De.firstChild;l.firstChild;)l.removeChild(l.firstChild);for(;u.firstChild;)l.appendChild(u.firstChild)}});function $e(l,u){if(u){var v=l.firstChild;if(v&&v===l.lastChild&&v.nodeType===3){v.nodeValue=u;return}}l.textContent=u}var kt={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},Er=["Webkit","ms","Moz","O"];Object.keys(kt).forEach(function(l){Er.forEach(function(u){u=u+l.charAt(0).toUpperCase()+l.substring(1),kt[u]=kt[l]})});function Vn(l,u,v){return u==null||typeof u=="boolean"||u===""?"":v||typeof u!="number"||u===0||kt.hasOwnProperty(l)&&kt[l]?(""+u).trim():u+"px"}function ts(l,u){l=l.style;for(var v in u)if(u.hasOwnProperty(v)){var _=v.indexOf("--")===0,P=Vn(v,u[v],_);v==="float"&&(v="cssFloat"),_?l.setProperty(v,P):l[v]=P}}var ra=O({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 vn(l,u){if(u){if(ra[l]&&(u.children!=null||u.dangerouslySetInnerHTML!=null))throw Error(r(137,l));if(u.dangerouslySetInnerHTML!=null){if(u.children!=null)throw Error(r(60));if(typeof u.dangerouslySetInnerHTML!="object"||!("__html"in u.dangerouslySetInnerHTML))throw Error(r(61))}if(u.style!=null&&typeof u.style!="object")throw Error(r(62))}}function Qr(l,u){if(l.indexOf("-")===-1)return typeof u.is=="string";switch(l){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 ir=null;function Kf(l){return l=l.target||l.srcElement||window,l.correspondingUseElement&&(l=l.correspondingUseElement),l.nodeType===3?l.parentNode:l}var Gf=null,to=null,no=null;function Eb(l){if(l=ec(l)){if(typeof Gf!="function")throw Error(r(280));var u=l.stateNode;u&&(u=ad(u),Gf(l.stateNode,l.type,u))}}function Tb(l){to?no?no.push(l):no=[l]:to=l}function Pb(){if(to){var l=to,u=no;if(no=to=null,Eb(l),u)for(l=0;l<u.length;l++)Eb(u[l])}}function Ob(l,u){return l(u)}function Db(){}var Qf=!1;function Ib(l,u,v){if(Qf)return l(u,v);Qf=!0;try{return Ob(l,u,v)}finally{Qf=!1,(to!==null||no!==null)&&(Db(),Pb())}}function Dl(l,u){var v=l.stateNode;if(v===null)return null;var _=ad(v);if(_===null)return null;v=_[u];e:switch(u){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(_=!_.disabled)||(l=l.type,_=!(l==="button"||l==="input"||l==="select"||l==="textarea")),l=!_;break e;default:l=!1}if(l)return null;if(v&&typeof v!="function")throw Error(r(231,u,typeof v));return v}var Yf=!1;if(c)try{var Il={};Object.defineProperty(Il,"passive",{get:function(){Yf=!0}}),window.addEventListener("test",Il,Il),window.removeEventListener("test",Il,Il)}catch{Yf=!1}function WP(l,u,v,_,P,M,$,ee,ie){var he=Array.prototype.slice.call(arguments,3);try{u.apply(v,he)}catch(Ne){this.onError(Ne)}}var Rl=!1,Lu=null,Bu=!1,Xf=null,KP={onError:function(l){Rl=!0,Lu=l}};function GP(l,u,v,_,P,M,$,ee,ie){Rl=!1,Lu=null,WP.apply(KP,arguments)}function QP(l,u,v,_,P,M,$,ee,ie){if(GP.apply(this,arguments),Rl){if(Rl){var he=Lu;Rl=!1,Lu=null}else throw Error(r(198));Bu||(Bu=!0,Xf=he)}}function ia(l){var u=l,v=l;if(l.alternate)for(;u.return;)u=u.return;else{l=u;do u=l,(u.flags&4098)!==0&&(v=u.return),l=u.return;while(l)}return u.tag===3?v:null}function Rb(l){if(l.tag===13){var u=l.memoizedState;if(u===null&&(l=l.alternate,l!==null&&(u=l.memoizedState)),u!==null)return u.dehydrated}return null}function Fb(l){if(ia(l)!==l)throw Error(r(188))}function YP(l){var u=l.alternate;if(!u){if(u=ia(l),u===null)throw Error(r(188));return u!==l?null:l}for(var v=l,_=u;;){var P=v.return;if(P===null)break;var M=P.alternate;if(M===null){if(_=P.return,_!==null){v=_;continue}break}if(P.child===M.child){for(M=P.child;M;){if(M===v)return Fb(P),l;if(M===_)return Fb(P),u;M=M.sibling}throw Error(r(188))}if(v.return!==_.return)v=P,_=M;else{for(var $=!1,ee=P.child;ee;){if(ee===v){$=!0,v=P,_=M;break}if(ee===_){$=!0,_=P,v=M;break}ee=ee.sibling}if(!$){for(ee=M.child;ee;){if(ee===v){$=!0,v=M,_=P;break}if(ee===_){$=!0,_=M,v=P;break}ee=ee.sibling}if(!$)throw Error(r(189))}}if(v.alternate!==_)throw Error(r(190))}if(v.tag!==3)throw Error(r(188));return v.stateNode.current===v?l:u}function Mb(l){return l=YP(l),l!==null?Lb(l):null}function Lb(l){if(l.tag===5||l.tag===6)return l;for(l=l.child;l!==null;){var u=Lb(l);if(u!==null)return u;l=l.sibling}return null}var Bb=n.unstable_scheduleCallback,qb=n.unstable_cancelCallback,XP=n.unstable_shouldYield,JP=n.unstable_requestPaint,en=n.unstable_now,ZP=n.unstable_getCurrentPriorityLevel,Jf=n.unstable_ImmediatePriority,zb=n.unstable_UserBlockingPriority,qu=n.unstable_NormalPriority,eO=n.unstable_LowPriority,Vb=n.unstable_IdlePriority,zu=null,Yr=null;function tO(l){if(Yr&&typeof Yr.onCommitFiberRoot=="function")try{Yr.onCommitFiberRoot(zu,l,void 0,(l.current.flags&128)===128)}catch{}}var Tr=Math.clz32?Math.clz32:iO,nO=Math.log,rO=Math.LN2;function iO(l){return l>>>=0,l===0?32:31-(nO(l)/rO|0)|0}var Vu=64,Uu=4194304;function Fl(l){switch(l&-l){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 l&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return l&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return l}}function $u(l,u){var v=l.pendingLanes;if(v===0)return 0;var _=0,P=l.suspendedLanes,M=l.pingedLanes,$=v&268435455;if($!==0){var ee=$&~P;ee!==0?_=Fl(ee):(M&=$,M!==0&&(_=Fl(M)))}else $=v&~P,$!==0?_=Fl($):M!==0&&(_=Fl(M));if(_===0)return 0;if(u!==0&&u!==_&&(u&P)===0&&(P=_&-_,M=u&-u,P>=M||P===16&&(M&4194240)!==0))return u;if((_&4)!==0&&(_|=v&16),u=l.entangledLanes,u!==0)for(l=l.entanglements,u&=_;0<u;)v=31-Tr(u),P=1<<v,_|=l[v],u&=~P;return _}function sO(l,u){switch(l){case 1:case 2:case 4:return u+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 u+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 aO(l,u){for(var v=l.suspendedLanes,_=l.pingedLanes,P=l.expirationTimes,M=l.pendingLanes;0<M;){var $=31-Tr(M),ee=1<<$,ie=P[$];ie===-1?((ee&v)===0||(ee&_)!==0)&&(P[$]=sO(ee,u)):ie<=u&&(l.expiredLanes|=ee),M&=~ee}}function Zf(l){return l=l.pendingLanes&-1073741825,l!==0?l:l&1073741824?1073741824:0}function Ub(){var l=Vu;return Vu<<=1,(Vu&4194240)===0&&(Vu=64),l}function em(l){for(var u=[],v=0;31>v;v++)u.push(l);return u}function Ml(l,u,v){l.pendingLanes|=u,u!==536870912&&(l.suspendedLanes=0,l.pingedLanes=0),l=l.eventTimes,u=31-Tr(u),l[u]=v}function oO(l,u){var v=l.pendingLanes&~u;l.pendingLanes=u,l.suspendedLanes=0,l.pingedLanes=0,l.expiredLanes&=u,l.mutableReadLanes&=u,l.entangledLanes&=u,u=l.entanglements;var _=l.eventTimes;for(l=l.expirationTimes;0<v;){var P=31-Tr(v),M=1<<P;u[P]=0,_[P]=-1,l[P]=-1,v&=~M}}function tm(l,u){var v=l.entangledLanes|=u;for(l=l.entanglements;v;){var _=31-Tr(v),P=1<<_;P&u|l[_]&u&&(l[_]|=u),v&=~P}}var Ct=0;function $b(l){return l&=-l,1<l?4<l?(l&268435455)!==0?16:536870912:4:1}var Hb,nm,Wb,Kb,Gb,rm=!1,Hu=[],ns=null,rs=null,is=null,Ll=new Map,Bl=new Map,ss=[],lO="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 Qb(l,u){switch(l){case"focusin":case"focusout":ns=null;break;case"dragenter":case"dragleave":rs=null;break;case"mouseover":case"mouseout":is=null;break;case"pointerover":case"pointerout":Ll.delete(u.pointerId);break;case"gotpointercapture":case"lostpointercapture":Bl.delete(u.pointerId)}}function ql(l,u,v,_,P,M){return l===null||l.nativeEvent!==M?(l={blockedOn:u,domEventName:v,eventSystemFlags:_,nativeEvent:M,targetContainers:[P]},u!==null&&(u=ec(u),u!==null&&nm(u)),l):(l.eventSystemFlags|=_,u=l.targetContainers,P!==null&&u.indexOf(P)===-1&&u.push(P),l)}function cO(l,u,v,_,P){switch(u){case"focusin":return ns=ql(ns,l,u,v,_,P),!0;case"dragenter":return rs=ql(rs,l,u,v,_,P),!0;case"mouseover":return is=ql(is,l,u,v,_,P),!0;case"pointerover":var M=P.pointerId;return Ll.set(M,ql(Ll.get(M)||null,l,u,v,_,P)),!0;case"gotpointercapture":return M=P.pointerId,Bl.set(M,ql(Bl.get(M)||null,l,u,v,_,P)),!0}return!1}function Yb(l){var u=sa(l.target);if(u!==null){var v=ia(u);if(v!==null){if(u=v.tag,u===13){if(u=Rb(v),u!==null){l.blockedOn=u,Gb(l.priority,function(){Wb(v)});return}}else if(u===3&&v.stateNode.current.memoizedState.isDehydrated){l.blockedOn=v.tag===3?v.stateNode.containerInfo:null;return}}}l.blockedOn=null}function Wu(l){if(l.blockedOn!==null)return!1;for(var u=l.targetContainers;0<u.length;){var v=sm(l.domEventName,l.eventSystemFlags,u[0],l.nativeEvent);if(v===null){v=l.nativeEvent;var _=new v.constructor(v.type,v);ir=_,v.target.dispatchEvent(_),ir=null}else return u=ec(v),u!==null&&nm(u),l.blockedOn=v,!1;u.shift()}return!0}function Xb(l,u,v){Wu(l)&&v.delete(u)}function uO(){rm=!1,ns!==null&&Wu(ns)&&(ns=null),rs!==null&&Wu(rs)&&(rs=null),is!==null&&Wu(is)&&(is=null),Ll.forEach(Xb),Bl.forEach(Xb)}function zl(l,u){l.blockedOn===u&&(l.blockedOn=null,rm||(rm=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,uO)))}function Vl(l){function u(P){return zl(P,l)}if(0<Hu.length){zl(Hu[0],l);for(var v=1;v<Hu.length;v++){var _=Hu[v];_.blockedOn===l&&(_.blockedOn=null)}}for(ns!==null&&zl(ns,l),rs!==null&&zl(rs,l),is!==null&&zl(is,l),Ll.forEach(u),Bl.forEach(u),v=0;v<ss.length;v++)_=ss[v],_.blockedOn===l&&(_.blockedOn=null);for(;0<ss.length&&(v=ss[0],v.blockedOn===null);)Yb(v),v.blockedOn===null&&ss.shift()}var ro=k.ReactCurrentBatchConfig,Ku=!0;function dO(l,u,v,_){var P=Ct,M=ro.transition;ro.transition=null;try{Ct=1,im(l,u,v,_)}finally{Ct=P,ro.transition=M}}function hO(l,u,v,_){var P=Ct,M=ro.transition;ro.transition=null;try{Ct=4,im(l,u,v,_)}finally{Ct=P,ro.transition=M}}function im(l,u,v,_){if(Ku){var P=sm(l,u,v,_);if(P===null)wm(l,u,_,Gu,v),Qb(l,_);else if(cO(P,l,u,v,_))_.stopPropagation();else if(Qb(l,_),u&4&&-1<lO.indexOf(l)){for(;P!==null;){var M=ec(P);if(M!==null&&Hb(M),M=sm(l,u,v,_),M===null&&wm(l,u,_,Gu,v),M===P)break;P=M}P!==null&&_.stopPropagation()}else wm(l,u,_,null,v)}}var Gu=null;function sm(l,u,v,_){if(Gu=null,l=Kf(_),l=sa(l),l!==null)if(u=ia(l),u===null)l=null;else if(v=u.tag,v===13){if(l=Rb(u),l!==null)return l;l=null}else if(v===3){if(u.stateNode.current.memoizedState.isDehydrated)return u.tag===3?u.stateNode.containerInfo:null;l=null}else u!==l&&(l=null);return Gu=l,null}function Jb(l){switch(l){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(ZP()){case Jf:return 1;case zb:return 4;case qu:case eO:return 16;case Vb:return 536870912;default:return 16}default:return 16}}var as=null,am=null,Qu=null;function Zb(){if(Qu)return Qu;var l,u=am,v=u.length,_,P="value"in as?as.value:as.textContent,M=P.length;for(l=0;l<v&&u[l]===P[l];l++);var $=v-l;for(_=1;_<=$&&u[v-_]===P[M-_];_++);return Qu=P.slice(l,1<_?1-_:void 0)}function Yu(l){var u=l.keyCode;return"charCode"in l?(l=l.charCode,l===0&&u===13&&(l=13)):l=u,l===10&&(l=13),32<=l||l===13?l:0}function Xu(){return!0}function ej(){return!1}function sr(l){function u(v,_,P,M,$){this._reactName=v,this._targetInst=P,this.type=_,this.nativeEvent=M,this.target=$,this.currentTarget=null;for(var ee in l)l.hasOwnProperty(ee)&&(v=l[ee],this[ee]=v?v(M):M[ee]);return this.isDefaultPrevented=(M.defaultPrevented!=null?M.defaultPrevented:M.returnValue===!1)?Xu:ej,this.isPropagationStopped=ej,this}return O(u.prototype,{preventDefault:function(){this.defaultPrevented=!0;var v=this.nativeEvent;v&&(v.preventDefault?v.preventDefault():typeof v.returnValue!="unknown"&&(v.returnValue=!1),this.isDefaultPrevented=Xu)},stopPropagation:function(){var v=this.nativeEvent;v&&(v.stopPropagation?v.stopPropagation():typeof v.cancelBubble!="unknown"&&(v.cancelBubble=!0),this.isPropagationStopped=Xu)},persist:function(){},isPersistent:Xu}),u}var io={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(l){return l.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},om=sr(io),Ul=O({},io,{view:0,detail:0}),fO=sr(Ul),lm,cm,$l,Ju=O({},Ul,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:dm,button:0,buttons:0,relatedTarget:function(l){return l.relatedTarget===void 0?l.fromElement===l.srcElement?l.toElement:l.fromElement:l.relatedTarget},movementX:function(l){return"movementX"in l?l.movementX:(l!==$l&&($l&&l.type==="mousemove"?(lm=l.screenX-$l.screenX,cm=l.screenY-$l.screenY):cm=lm=0,$l=l),lm)},movementY:function(l){return"movementY"in l?l.movementY:cm}}),tj=sr(Ju),mO=O({},Ju,{dataTransfer:0}),pO=sr(mO),gO=O({},Ul,{relatedTarget:0}),um=sr(gO),xO=O({},io,{animationName:0,elapsedTime:0,pseudoElement:0}),yO=sr(xO),vO=O({},io,{clipboardData:function(l){return"clipboardData"in l?l.clipboardData:window.clipboardData}}),bO=sr(vO),jO=O({},io,{data:0}),nj=sr(jO),wO={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},NO={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"},kO={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function _O(l){var u=this.nativeEvent;return u.getModifierState?u.getModifierState(l):(l=kO[l])?!!u[l]:!1}function dm(){return _O}var SO=O({},Ul,{key:function(l){if(l.key){var u=wO[l.key]||l.key;if(u!=="Unidentified")return u}return l.type==="keypress"?(l=Yu(l),l===13?"Enter":String.fromCharCode(l)):l.type==="keydown"||l.type==="keyup"?NO[l.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:dm,charCode:function(l){return l.type==="keypress"?Yu(l):0},keyCode:function(l){return l.type==="keydown"||l.type==="keyup"?l.keyCode:0},which:function(l){return l.type==="keypress"?Yu(l):l.type==="keydown"||l.type==="keyup"?l.keyCode:0}}),AO=sr(SO),CO=O({},Ju,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),rj=sr(CO),EO=O({},Ul,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:dm}),TO=sr(EO),PO=O({},io,{propertyName:0,elapsedTime:0,pseudoElement:0}),OO=sr(PO),DO=O({},Ju,{deltaX:function(l){return"deltaX"in l?l.deltaX:"wheelDeltaX"in l?-l.wheelDeltaX:0},deltaY:function(l){return"deltaY"in l?l.deltaY:"wheelDeltaY"in l?-l.wheelDeltaY:"wheelDelta"in l?-l.wheelDelta:0},deltaZ:0,deltaMode:0}),IO=sr(DO),RO=[9,13,27,32],hm=c&&"CompositionEvent"in window,Hl=null;c&&"documentMode"in document&&(Hl=document.documentMode);var FO=c&&"TextEvent"in window&&!Hl,ij=c&&(!hm||Hl&&8<Hl&&11>=Hl),sj=" ",aj=!1;function oj(l,u){switch(l){case"keyup":return RO.indexOf(u.keyCode)!==-1;case"keydown":return u.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function lj(l){return l=l.detail,typeof l=="object"&&"data"in l?l.data:null}var so=!1;function MO(l,u){switch(l){case"compositionend":return lj(u);case"keypress":return u.which!==32?null:(aj=!0,sj);case"textInput":return l=u.data,l===sj&&aj?null:l;default:return null}}function LO(l,u){if(so)return l==="compositionend"||!hm&&oj(l,u)?(l=Zb(),Qu=am=as=null,so=!1,l):null;switch(l){case"paste":return null;case"keypress":if(!(u.ctrlKey||u.altKey||u.metaKey)||u.ctrlKey&&u.altKey){if(u.char&&1<u.char.length)return u.char;if(u.which)return String.fromCharCode(u.which)}return null;case"compositionend":return ij&&u.locale!=="ko"?null:u.data;default:return null}}var BO={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 cj(l){var u=l&&l.nodeName&&l.nodeName.toLowerCase();return u==="input"?!!BO[l.type]:u==="textarea"}function uj(l,u,v,_){Tb(_),u=rd(u,"onChange"),0<u.length&&(v=new om("onChange","change",null,v,_),l.push({event:v,listeners:u}))}var Wl=null,Kl=null;function qO(l){Cj(l,0)}function Zu(l){var u=uo(l);if(be(u))return l}function zO(l,u){if(l==="change")return u}var dj=!1;if(c){var fm;if(c){var mm="oninput"in document;if(!mm){var hj=document.createElement("div");hj.setAttribute("oninput","return;"),mm=typeof hj.oninput=="function"}fm=mm}else fm=!1;dj=fm&&(!document.documentMode||9<document.documentMode)}function fj(){Wl&&(Wl.detachEvent("onpropertychange",mj),Kl=Wl=null)}function mj(l){if(l.propertyName==="value"&&Zu(Kl)){var u=[];uj(u,Kl,l,Kf(l)),Ib(qO,u)}}function VO(l,u,v){l==="focusin"?(fj(),Wl=u,Kl=v,Wl.attachEvent("onpropertychange",mj)):l==="focusout"&&fj()}function UO(l){if(l==="selectionchange"||l==="keyup"||l==="keydown")return Zu(Kl)}function $O(l,u){if(l==="click")return Zu(u)}function HO(l,u){if(l==="input"||l==="change")return Zu(u)}function WO(l,u){return l===u&&(l!==0||1/l===1/u)||l!==l&&u!==u}var Pr=typeof Object.is=="function"?Object.is:WO;function Gl(l,u){if(Pr(l,u))return!0;if(typeof l!="object"||l===null||typeof u!="object"||u===null)return!1;var v=Object.keys(l),_=Object.keys(u);if(v.length!==_.length)return!1;for(_=0;_<v.length;_++){var P=v[_];if(!d.call(u,P)||!Pr(l[P],u[P]))return!1}return!0}function pj(l){for(;l&&l.firstChild;)l=l.firstChild;return l}function gj(l,u){var v=pj(l);l=0;for(var _;v;){if(v.nodeType===3){if(_=l+v.textContent.length,l<=u&&_>=u)return{node:v,offset:u-l};l=_}e:{for(;v;){if(v.nextSibling){v=v.nextSibling;break e}v=v.parentNode}v=void 0}v=pj(v)}}function xj(l,u){return l&&u?l===u?!0:l&&l.nodeType===3?!1:u&&u.nodeType===3?xj(l,u.parentNode):"contains"in l?l.contains(u):l.compareDocumentPosition?!!(l.compareDocumentPosition(u)&16):!1:!1}function yj(){for(var l=window,u=Pe();u instanceof l.HTMLIFrameElement;){try{var v=typeof u.contentWindow.location.href=="string"}catch{v=!1}if(v)l=u.contentWindow;else break;u=Pe(l.document)}return u}function pm(l){var u=l&&l.nodeName&&l.nodeName.toLowerCase();return u&&(u==="input"&&(l.type==="text"||l.type==="search"||l.type==="tel"||l.type==="url"||l.type==="password")||u==="textarea"||l.contentEditable==="true")}function KO(l){var u=yj(),v=l.focusedElem,_=l.selectionRange;if(u!==v&&v&&v.ownerDocument&&xj(v.ownerDocument.documentElement,v)){if(_!==null&&pm(v)){if(u=_.start,l=_.end,l===void 0&&(l=u),"selectionStart"in v)v.selectionStart=u,v.selectionEnd=Math.min(l,v.value.length);else if(l=(u=v.ownerDocument||document)&&u.defaultView||window,l.getSelection){l=l.getSelection();var P=v.textContent.length,M=Math.min(_.start,P);_=_.end===void 0?M:Math.min(_.end,P),!l.extend&&M>_&&(P=_,_=M,M=P),P=gj(v,M);var $=gj(v,_);P&&$&&(l.rangeCount!==1||l.anchorNode!==P.node||l.anchorOffset!==P.offset||l.focusNode!==$.node||l.focusOffset!==$.offset)&&(u=u.createRange(),u.setStart(P.node,P.offset),l.removeAllRanges(),M>_?(l.addRange(u),l.extend($.node,$.offset)):(u.setEnd($.node,$.offset),l.addRange(u)))}}for(u=[],l=v;l=l.parentNode;)l.nodeType===1&&u.push({element:l,left:l.scrollLeft,top:l.scrollTop});for(typeof v.focus=="function"&&v.focus(),v=0;v<u.length;v++)l=u[v],l.element.scrollLeft=l.left,l.element.scrollTop=l.top}}var GO=c&&"documentMode"in document&&11>=document.documentMode,ao=null,gm=null,Ql=null,xm=!1;function vj(l,u,v){var _=v.window===v?v.document:v.nodeType===9?v:v.ownerDocument;xm||ao==null||ao!==Pe(_)||(_=ao,"selectionStart"in _&&pm(_)?_={start:_.selectionStart,end:_.selectionEnd}:(_=(_.ownerDocument&&_.ownerDocument.defaultView||window).getSelection(),_={anchorNode:_.anchorNode,anchorOffset:_.anchorOffset,focusNode:_.focusNode,focusOffset:_.focusOffset}),Ql&&Gl(Ql,_)||(Ql=_,_=rd(gm,"onSelect"),0<_.length&&(u=new om("onSelect","select",null,u,v),l.push({event:u,listeners:_}),u.target=ao)))}function ed(l,u){var v={};return v[l.toLowerCase()]=u.toLowerCase(),v["Webkit"+l]="webkit"+u,v["Moz"+l]="moz"+u,v}var oo={animationend:ed("Animation","AnimationEnd"),animationiteration:ed("Animation","AnimationIteration"),animationstart:ed("Animation","AnimationStart"),transitionend:ed("Transition","TransitionEnd")},ym={},bj={};c&&(bj=document.createElement("div").style,"AnimationEvent"in window||(delete oo.animationend.animation,delete oo.animationiteration.animation,delete oo.animationstart.animation),"TransitionEvent"in window||delete oo.transitionend.transition);function td(l){if(ym[l])return ym[l];if(!oo[l])return l;var u=oo[l],v;for(v in u)if(u.hasOwnProperty(v)&&v in bj)return ym[l]=u[v];return l}var jj=td("animationend"),wj=td("animationiteration"),Nj=td("animationstart"),kj=td("transitionend"),_j=new Map,Sj="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 os(l,u){_j.set(l,u),a(u,[l])}for(var vm=0;vm<Sj.length;vm++){var bm=Sj[vm],QO=bm.toLowerCase(),YO=bm[0].toUpperCase()+bm.slice(1);os(QO,"on"+YO)}os(jj,"onAnimationEnd"),os(wj,"onAnimationIteration"),os(Nj,"onAnimationStart"),os("dblclick","onDoubleClick"),os("focusin","onFocus"),os("focusout","onBlur"),os(kj,"onTransitionEnd"),o("onMouseEnter",["mouseout","mouseover"]),o("onMouseLeave",["mouseout","mouseover"]),o("onPointerEnter",["pointerout","pointerover"]),o("onPointerLeave",["pointerout","pointerover"]),a("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),a("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),a("onBeforeInput",["compositionend","keypress","textInput","paste"]),a("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),a("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),a("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Yl="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(" "),XO=new Set("cancel close invalid load scroll toggle".split(" ").concat(Yl));function Aj(l,u,v){var _=l.type||"unknown-event";l.currentTarget=v,QP(_,u,void 0,l),l.currentTarget=null}function Cj(l,u){u=(u&4)!==0;for(var v=0;v<l.length;v++){var _=l[v],P=_.event;_=_.listeners;e:{var M=void 0;if(u)for(var $=_.length-1;0<=$;$--){var ee=_[$],ie=ee.instance,he=ee.currentTarget;if(ee=ee.listener,ie!==M&&P.isPropagationStopped())break e;Aj(P,ee,he),M=ie}else for($=0;$<_.length;$++){if(ee=_[$],ie=ee.instance,he=ee.currentTarget,ee=ee.listener,ie!==M&&P.isPropagationStopped())break e;Aj(P,ee,he),M=ie}}}if(Bu)throw l=Xf,Bu=!1,Xf=null,l}function Mt(l,u){var v=u[Cm];v===void 0&&(v=u[Cm]=new Set);var _=l+"__bubble";v.has(_)||(Ej(u,l,2,!1),v.add(_))}function jm(l,u,v){var _=0;u&&(_|=4),Ej(v,l,_,u)}var nd="_reactListening"+Math.random().toString(36).slice(2);function Xl(l){if(!l[nd]){l[nd]=!0,i.forEach(function(v){v!=="selectionchange"&&(XO.has(v)||jm(v,!1,l),jm(v,!0,l))});var u=l.nodeType===9?l:l.ownerDocument;u===null||u[nd]||(u[nd]=!0,jm("selectionchange",!1,u))}}function Ej(l,u,v,_){switch(Jb(u)){case 1:var P=dO;break;case 4:P=hO;break;default:P=im}v=P.bind(null,u,v,l),P=void 0,!Yf||u!=="touchstart"&&u!=="touchmove"&&u!=="wheel"||(P=!0),_?P!==void 0?l.addEventListener(u,v,{capture:!0,passive:P}):l.addEventListener(u,v,!0):P!==void 0?l.addEventListener(u,v,{passive:P}):l.addEventListener(u,v,!1)}function wm(l,u,v,_,P){var M=_;if((u&1)===0&&(u&2)===0&&_!==null)e:for(;;){if(_===null)return;var $=_.tag;if($===3||$===4){var ee=_.stateNode.containerInfo;if(ee===P||ee.nodeType===8&&ee.parentNode===P)break;if($===4)for($=_.return;$!==null;){var ie=$.tag;if((ie===3||ie===4)&&(ie=$.stateNode.containerInfo,ie===P||ie.nodeType===8&&ie.parentNode===P))return;$=$.return}for(;ee!==null;){if($=sa(ee),$===null)return;if(ie=$.tag,ie===5||ie===6){_=M=$;continue e}ee=ee.parentNode}}_=_.return}Ib(function(){var he=M,Ne=Kf(v),ke=[];e:{var we=_j.get(l);if(we!==void 0){var Re=om,Le=l;switch(l){case"keypress":if(Yu(v)===0)break e;case"keydown":case"keyup":Re=AO;break;case"focusin":Le="focus",Re=um;break;case"focusout":Le="blur",Re=um;break;case"beforeblur":case"afterblur":Re=um;break;case"click":if(v.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Re=tj;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Re=pO;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Re=TO;break;case jj:case wj:case Nj:Re=yO;break;case kj:Re=OO;break;case"scroll":Re=fO;break;case"wheel":Re=IO;break;case"copy":case"cut":case"paste":Re=bO;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Re=rj}var Ve=(u&4)!==0,tn=!Ve&&l==="scroll",ce=Ve?we!==null?we+"Capture":null:we;Ve=[];for(var ae=he,de;ae!==null;){de=ae;var Ee=de.stateNode;if(de.tag===5&&Ee!==null&&(de=Ee,ce!==null&&(Ee=Dl(ae,ce),Ee!=null&&Ve.push(Jl(ae,Ee,de)))),tn)break;ae=ae.return}0<Ve.length&&(we=new Re(we,Le,null,v,Ne),ke.push({event:we,listeners:Ve}))}}if((u&7)===0){e:{if(we=l==="mouseover"||l==="pointerover",Re=l==="mouseout"||l==="pointerout",we&&v!==ir&&(Le=v.relatedTarget||v.fromElement)&&(sa(Le)||Le[_i]))break e;if((Re||we)&&(we=Ne.window===Ne?Ne:(we=Ne.ownerDocument)?we.defaultView||we.parentWindow:window,Re?(Le=v.relatedTarget||v.toElement,Re=he,Le=Le?sa(Le):null,Le!==null&&(tn=ia(Le),Le!==tn||Le.tag!==5&&Le.tag!==6)&&(Le=null)):(Re=null,Le=he),Re!==Le)){if(Ve=tj,Ee="onMouseLeave",ce="onMouseEnter",ae="mouse",(l==="pointerout"||l==="pointerover")&&(Ve=rj,Ee="onPointerLeave",ce="onPointerEnter",ae="pointer"),tn=Re==null?we:uo(Re),de=Le==null?we:uo(Le),we=new Ve(Ee,ae+"leave",Re,v,Ne),we.target=tn,we.relatedTarget=de,Ee=null,sa(Ne)===he&&(Ve=new Ve(ce,ae+"enter",Le,v,Ne),Ve.target=de,Ve.relatedTarget=tn,Ee=Ve),tn=Ee,Re&&Le)t:{for(Ve=Re,ce=Le,ae=0,de=Ve;de;de=lo(de))ae++;for(de=0,Ee=ce;Ee;Ee=lo(Ee))de++;for(;0<ae-de;)Ve=lo(Ve),ae--;for(;0<de-ae;)ce=lo(ce),de--;for(;ae--;){if(Ve===ce||ce!==null&&Ve===ce.alternate)break t;Ve=lo(Ve),ce=lo(ce)}Ve=null}else Ve=null;Re!==null&&Tj(ke,we,Re,Ve,!1),Le!==null&&tn!==null&&Tj(ke,tn,Le,Ve,!0)}}e:{if(we=he?uo(he):window,Re=we.nodeName&&we.nodeName.toLowerCase(),Re==="select"||Re==="input"&&we.type==="file")var Ue=zO;else if(cj(we))if(dj)Ue=HO;else{Ue=UO;var Ge=VO}else(Re=we.nodeName)&&Re.toLowerCase()==="input"&&(we.type==="checkbox"||we.type==="radio")&&(Ue=$O);if(Ue&&(Ue=Ue(l,he))){uj(ke,Ue,v,Ne);break e}Ge&&Ge(l,we,he),l==="focusout"&&(Ge=we._wrapperState)&&Ge.controlled&&we.type==="number"&&ve(we,"number",we.value)}switch(Ge=he?uo(he):window,l){case"focusin":(cj(Ge)||Ge.contentEditable==="true")&&(ao=Ge,gm=he,Ql=null);break;case"focusout":Ql=gm=ao=null;break;case"mousedown":xm=!0;break;case"contextmenu":case"mouseup":case"dragend":xm=!1,vj(ke,v,Ne);break;case"selectionchange":if(GO)break;case"keydown":case"keyup":vj(ke,v,Ne)}var Qe;if(hm)e:{switch(l){case"compositionstart":var Je="onCompositionStart";break e;case"compositionend":Je="onCompositionEnd";break e;case"compositionupdate":Je="onCompositionUpdate";break e}Je=void 0}else so?oj(l,v)&&(Je="onCompositionEnd"):l==="keydown"&&v.keyCode===229&&(Je="onCompositionStart");Je&&(ij&&v.locale!=="ko"&&(so||Je!=="onCompositionStart"?Je==="onCompositionEnd"&&so&&(Qe=Zb()):(as=Ne,am="value"in as?as.value:as.textContent,so=!0)),Ge=rd(he,Je),0<Ge.length&&(Je=new nj(Je,l,null,v,Ne),ke.push({event:Je,listeners:Ge}),Qe?Je.data=Qe:(Qe=lj(v),Qe!==null&&(Je.data=Qe)))),(Qe=FO?MO(l,v):LO(l,v))&&(he=rd(he,"onBeforeInput"),0<he.length&&(Ne=new nj("onBeforeInput","beforeinput",null,v,Ne),ke.push({event:Ne,listeners:he}),Ne.data=Qe))}Cj(ke,u)})}function Jl(l,u,v){return{instance:l,listener:u,currentTarget:v}}function rd(l,u){for(var v=u+"Capture",_=[];l!==null;){var P=l,M=P.stateNode;P.tag===5&&M!==null&&(P=M,M=Dl(l,v),M!=null&&_.unshift(Jl(l,M,P)),M=Dl(l,u),M!=null&&_.push(Jl(l,M,P))),l=l.return}return _}function lo(l){if(l===null)return null;do l=l.return;while(l&&l.tag!==5);return l||null}function Tj(l,u,v,_,P){for(var M=u._reactName,$=[];v!==null&&v!==_;){var ee=v,ie=ee.alternate,he=ee.stateNode;if(ie!==null&&ie===_)break;ee.tag===5&&he!==null&&(ee=he,P?(ie=Dl(v,M),ie!=null&&$.unshift(Jl(v,ie,ee))):P||(ie=Dl(v,M),ie!=null&&$.push(Jl(v,ie,ee)))),v=v.return}$.length!==0&&l.push({event:u,listeners:$})}var JO=/\r\n?/g,ZO=/\u0000|\uFFFD/g;function Pj(l){return(typeof l=="string"?l:""+l).replace(JO,`
`).replace(ZO,"")}function id(l,u,v){if(u=Pj(u),Pj(l)!==u&&v)throw Error(r(425))}function sd(){}var Nm=null,km=null;function _m(l,u){return l==="textarea"||l==="noscript"||typeof u.children=="string"||typeof u.children=="number"||typeof u.dangerouslySetInnerHTML=="object"&&u.dangerouslySetInnerHTML!==null&&u.dangerouslySetInnerHTML.__html!=null}var Sm=typeof setTimeout=="function"?setTimeout:void 0,eD=typeof clearTimeout=="function"?clearTimeout:void 0,Oj=typeof Promise=="function"?Promise:void 0,tD=typeof queueMicrotask=="function"?queueMicrotask:typeof Oj<"u"?function(l){return Oj.resolve(null).then(l).catch(nD)}:Sm;function nD(l){setTimeout(function(){throw l})}function Am(l,u){var v=u,_=0;do{var P=v.nextSibling;if(l.removeChild(v),P&&P.nodeType===8)if(v=P.data,v==="/$"){if(_===0){l.removeChild(P),Vl(u);return}_--}else v!=="$"&&v!=="$?"&&v!=="$!"||_++;v=P}while(v);Vl(u)}function ls(l){for(;l!=null;l=l.nextSibling){var u=l.nodeType;if(u===1||u===3)break;if(u===8){if(u=l.data,u==="$"||u==="$!"||u==="$?")break;if(u==="/$")return null}}return l}function Dj(l){l=l.previousSibling;for(var u=0;l;){if(l.nodeType===8){var v=l.data;if(v==="$"||v==="$!"||v==="$?"){if(u===0)return l;u--}else v==="/$"&&u++}l=l.previousSibling}return null}var co=Math.random().toString(36).slice(2),Xr="__reactFiber$"+co,Zl="__reactProps$"+co,_i="__reactContainer$"+co,Cm="__reactEvents$"+co,rD="__reactListeners$"+co,iD="__reactHandles$"+co;function sa(l){var u=l[Xr];if(u)return u;for(var v=l.parentNode;v;){if(u=v[_i]||v[Xr]){if(v=u.alternate,u.child!==null||v!==null&&v.child!==null)for(l=Dj(l);l!==null;){if(v=l[Xr])return v;l=Dj(l)}return u}l=v,v=l.parentNode}return null}function ec(l){return l=l[Xr]||l[_i],!l||l.tag!==5&&l.tag!==6&&l.tag!==13&&l.tag!==3?null:l}function uo(l){if(l.tag===5||l.tag===6)return l.stateNode;throw Error(r(33))}function ad(l){return l[Zl]||null}var Em=[],ho=-1;function cs(l){return{current:l}}function Lt(l){0>ho||(l.current=Em[ho],Em[ho]=null,ho--)}function Dt(l,u){ho++,Em[ho]=l.current,l.current=u}var us={},_n=cs(us),Un=cs(!1),aa=us;function fo(l,u){var v=l.type.contextTypes;if(!v)return us;var _=l.stateNode;if(_&&_.__reactInternalMemoizedUnmaskedChildContext===u)return _.__reactInternalMemoizedMaskedChildContext;var P={},M;for(M in v)P[M]=u[M];return _&&(l=l.stateNode,l.__reactInternalMemoizedUnmaskedChildContext=u,l.__reactInternalMemoizedMaskedChildContext=P),P}function $n(l){return l=l.childContextTypes,l!=null}function od(){Lt(Un),Lt(_n)}function Ij(l,u,v){if(_n.current!==us)throw Error(r(168));Dt(_n,u),Dt(Un,v)}function Rj(l,u,v){var _=l.stateNode;if(u=u.childContextTypes,typeof _.getChildContext!="function")return v;_=_.getChildContext();for(var P in _)if(!(P in u))throw Error(r(108,G(l)||"Unknown",P));return O({},v,_)}function ld(l){return l=(l=l.stateNode)&&l.__reactInternalMemoizedMergedChildContext||us,aa=_n.current,Dt(_n,l),Dt(Un,Un.current),!0}function Fj(l,u,v){var _=l.stateNode;if(!_)throw Error(r(169));v?(l=Rj(l,u,aa),_.__reactInternalMemoizedMergedChildContext=l,Lt(Un),Lt(_n),Dt(_n,l)):Lt(Un),Dt(Un,v)}var Si=null,cd=!1,Tm=!1;function Mj(l){Si===null?Si=[l]:Si.push(l)}function sD(l){cd=!0,Mj(l)}function ds(){if(!Tm&&Si!==null){Tm=!0;var l=0,u=Ct;try{var v=Si;for(Ct=1;l<v.length;l++){var _=v[l];do _=_(!0);while(_!==null)}Si=null,cd=!1}catch(P){throw Si!==null&&(Si=Si.slice(l+1)),Bb(Jf,ds),P}finally{Ct=u,Tm=!1}}return null}var mo=[],po=0,ud=null,dd=0,xr=[],yr=0,oa=null,Ai=1,Ci="";function la(l,u){mo[po++]=dd,mo[po++]=ud,ud=l,dd=u}function Lj(l,u,v){xr[yr++]=Ai,xr[yr++]=Ci,xr[yr++]=oa,oa=l;var _=Ai;l=Ci;var P=32-Tr(_)-1;_&=~(1<<P),v+=1;var M=32-Tr(u)+P;if(30<M){var $=P-P%5;M=(_&(1<<$)-1).toString(32),_>>=$,P-=$,Ai=1<<32-Tr(u)+P|v<<P|_,Ci=M+l}else Ai=1<<M|v<<P|_,Ci=l}function Pm(l){l.return!==null&&(la(l,1),Lj(l,1,0))}function Om(l){for(;l===ud;)ud=mo[--po],mo[po]=null,dd=mo[--po],mo[po]=null;for(;l===oa;)oa=xr[--yr],xr[yr]=null,Ci=xr[--yr],xr[yr]=null,Ai=xr[--yr],xr[yr]=null}var ar=null,or=null,qt=!1,Or=null;function Bj(l,u){var v=wr(5,null,null,0);v.elementType="DELETED",v.stateNode=u,v.return=l,u=l.deletions,u===null?(l.deletions=[v],l.flags|=16):u.push(v)}function qj(l,u){switch(l.tag){case 5:var v=l.type;return u=u.nodeType!==1||v.toLowerCase()!==u.nodeName.toLowerCase()?null:u,u!==null?(l.stateNode=u,ar=l,or=ls(u.firstChild),!0):!1;case 6:return u=l.pendingProps===""||u.nodeType!==3?null:u,u!==null?(l.stateNode=u,ar=l,or=null,!0):!1;case 13:return u=u.nodeType!==8?null:u,u!==null?(v=oa!==null?{id:Ai,overflow:Ci}:null,l.memoizedState={dehydrated:u,treeContext:v,retryLane:1073741824},v=wr(18,null,null,0),v.stateNode=u,v.return=l,l.child=v,ar=l,or=null,!0):!1;default:return!1}}function Dm(l){return(l.mode&1)!==0&&(l.flags&128)===0}function Im(l){if(qt){var u=or;if(u){var v=u;if(!qj(l,u)){if(Dm(l))throw Error(r(418));u=ls(v.nextSibling);var _=ar;u&&qj(l,u)?Bj(_,v):(l.flags=l.flags&-4097|2,qt=!1,ar=l)}}else{if(Dm(l))throw Error(r(418));l.flags=l.flags&-4097|2,qt=!1,ar=l}}}function zj(l){for(l=l.return;l!==null&&l.tag!==5&&l.tag!==3&&l.tag!==13;)l=l.return;ar=l}function hd(l){if(l!==ar)return!1;if(!qt)return zj(l),qt=!0,!1;var u;if((u=l.tag!==3)&&!(u=l.tag!==5)&&(u=l.type,u=u!=="head"&&u!=="body"&&!_m(l.type,l.memoizedProps)),u&&(u=or)){if(Dm(l))throw Vj(),Error(r(418));for(;u;)Bj(l,u),u=ls(u.nextSibling)}if(zj(l),l.tag===13){if(l=l.memoizedState,l=l!==null?l.dehydrated:null,!l)throw Error(r(317));e:{for(l=l.nextSibling,u=0;l;){if(l.nodeType===8){var v=l.data;if(v==="/$"){if(u===0){or=ls(l.nextSibling);break e}u--}else v!=="$"&&v!=="$!"&&v!=="$?"||u++}l=l.nextSibling}or=null}}else or=ar?ls(l.stateNode.nextSibling):null;return!0}function Vj(){for(var l=or;l;)l=ls(l.nextSibling)}function go(){or=ar=null,qt=!1}function Rm(l){Or===null?Or=[l]:Or.push(l)}var aD=k.ReactCurrentBatchConfig;function tc(l,u,v){if(l=v.ref,l!==null&&typeof l!="function"&&typeof l!="object"){if(v._owner){if(v=v._owner,v){if(v.tag!==1)throw Error(r(309));var _=v.stateNode}if(!_)throw Error(r(147,l));var P=_,M=""+l;return u!==null&&u.ref!==null&&typeof u.ref=="function"&&u.ref._stringRef===M?u.ref:(u=function($){var ee=P.refs;$===null?delete ee[M]:ee[M]=$},u._stringRef=M,u)}if(typeof l!="string")throw Error(r(284));if(!v._owner)throw Error(r(290,l))}return l}function fd(l,u){throw l=Object.prototype.toString.call(u),Error(r(31,l==="[object Object]"?"object with keys {"+Object.keys(u).join(", ")+"}":l))}function Uj(l){var u=l._init;return u(l._payload)}function $j(l){function u(ce,ae){if(l){var de=ce.deletions;de===null?(ce.deletions=[ae],ce.flags|=16):de.push(ae)}}function v(ce,ae){if(!l)return null;for(;ae!==null;)u(ce,ae),ae=ae.sibling;return null}function _(ce,ae){for(ce=new Map;ae!==null;)ae.key!==null?ce.set(ae.key,ae):ce.set(ae.index,ae),ae=ae.sibling;return ce}function P(ce,ae){return ce=vs(ce,ae),ce.index=0,ce.sibling=null,ce}function M(ce,ae,de){return ce.index=de,l?(de=ce.alternate,de!==null?(de=de.index,de<ae?(ce.flags|=2,ae):de):(ce.flags|=2,ae)):(ce.flags|=1048576,ae)}function $(ce){return l&&ce.alternate===null&&(ce.flags|=2),ce}function ee(ce,ae,de,Ee){return ae===null||ae.tag!==6?(ae=Sp(de,ce.mode,Ee),ae.return=ce,ae):(ae=P(ae,de),ae.return=ce,ae)}function ie(ce,ae,de,Ee){var Ue=de.type;return Ue===E?Ne(ce,ae,de.props.children,Ee,de.key):ae!==null&&(ae.elementType===Ue||typeof Ue=="object"&&Ue!==null&&Ue.$$typeof===Y&&Uj(Ue)===ae.type)?(Ee=P(ae,de.props),Ee.ref=tc(ce,ae,de),Ee.return=ce,Ee):(Ee=Md(de.type,de.key,de.props,null,ce.mode,Ee),Ee.ref=tc(ce,ae,de),Ee.return=ce,Ee)}function he(ce,ae,de,Ee){return ae===null||ae.tag!==4||ae.stateNode.containerInfo!==de.containerInfo||ae.stateNode.implementation!==de.implementation?(ae=Ap(de,ce.mode,Ee),ae.return=ce,ae):(ae=P(ae,de.children||[]),ae.return=ce,ae)}function Ne(ce,ae,de,Ee,Ue){return ae===null||ae.tag!==7?(ae=ga(de,ce.mode,Ee,Ue),ae.return=ce,ae):(ae=P(ae,de),ae.return=ce,ae)}function ke(ce,ae,de){if(typeof ae=="string"&&ae!==""||typeof ae=="number")return ae=Sp(""+ae,ce.mode,de),ae.return=ce,ae;if(typeof ae=="object"&&ae!==null){switch(ae.$$typeof){case A:return de=Md(ae.type,ae.key,ae.props,null,ce.mode,de),de.ref=tc(ce,null,ae),de.return=ce,de;case S:return ae=Ap(ae,ce.mode,de),ae.return=ce,ae;case Y:var Ee=ae._init;return ke(ce,Ee(ae._payload),de)}if(Se(ae)||Q(ae))return ae=ga(ae,ce.mode,de,null),ae.return=ce,ae;fd(ce,ae)}return null}function we(ce,ae,de,Ee){var Ue=ae!==null?ae.key:null;if(typeof de=="string"&&de!==""||typeof de=="number")return Ue!==null?null:ee(ce,ae,""+de,Ee);if(typeof de=="object"&&de!==null){switch(de.$$typeof){case A:return de.key===Ue?ie(ce,ae,de,Ee):null;case S:return de.key===Ue?he(ce,ae,de,Ee):null;case Y:return Ue=de._init,we(ce,ae,Ue(de._payload),Ee)}if(Se(de)||Q(de))return Ue!==null?null:Ne(ce,ae,de,Ee,null);fd(ce,de)}return null}function Re(ce,ae,de,Ee,Ue){if(typeof Ee=="string"&&Ee!==""||typeof Ee=="number")return ce=ce.get(de)||null,ee(ae,ce,""+Ee,Ue);if(typeof Ee=="object"&&Ee!==null){switch(Ee.$$typeof){case A:return ce=ce.get(Ee.key===null?de:Ee.key)||null,ie(ae,ce,Ee,Ue);case S:return ce=ce.get(Ee.key===null?de:Ee.key)||null,he(ae,ce,Ee,Ue);case Y:var Ge=Ee._init;return Re(ce,ae,de,Ge(Ee._payload),Ue)}if(Se(Ee)||Q(Ee))return ce=ce.get(de)||null,Ne(ae,ce,Ee,Ue,null);fd(ae,Ee)}return null}function Le(ce,ae,de,Ee){for(var Ue=null,Ge=null,Qe=ae,Je=ae=0,gn=null;Qe!==null&&Je<de.length;Je++){Qe.index>Je?(gn=Qe,Qe=null):gn=Qe.sibling;var yt=we(ce,Qe,de[Je],Ee);if(yt===null){Qe===null&&(Qe=gn);break}l&&Qe&&yt.alternate===null&&u(ce,Qe),ae=M(yt,ae,Je),Ge===null?Ue=yt:Ge.sibling=yt,Ge=yt,Qe=gn}if(Je===de.length)return v(ce,Qe),qt&&la(ce,Je),Ue;if(Qe===null){for(;Je<de.length;Je++)Qe=ke(ce,de[Je],Ee),Qe!==null&&(ae=M(Qe,ae,Je),Ge===null?Ue=Qe:Ge.sibling=Qe,Ge=Qe);return qt&&la(ce,Je),Ue}for(Qe=_(ce,Qe);Je<de.length;Je++)gn=Re(Qe,ce,Je,de[Je],Ee),gn!==null&&(l&&gn.alternate!==null&&Qe.delete(gn.key===null?Je:gn.key),ae=M(gn,ae,Je),Ge===null?Ue=gn:Ge.sibling=gn,Ge=gn);return l&&Qe.forEach(function(bs){return u(ce,bs)}),qt&&la(ce,Je),Ue}function Ve(ce,ae,de,Ee){var Ue=Q(de);if(typeof Ue!="function")throw Error(r(150));if(de=Ue.call(de),de==null)throw Error(r(151));for(var Ge=Ue=null,Qe=ae,Je=ae=0,gn=null,yt=de.next();Qe!==null&&!yt.done;Je++,yt=de.next()){Qe.index>Je?(gn=Qe,Qe=null):gn=Qe.sibling;var bs=we(ce,Qe,yt.value,Ee);if(bs===null){Qe===null&&(Qe=gn);break}l&&Qe&&bs.alternate===null&&u(ce,Qe),ae=M(bs,ae,Je),Ge===null?Ue=bs:Ge.sibling=bs,Ge=bs,Qe=gn}if(yt.done)return v(ce,Qe),qt&&la(ce,Je),Ue;if(Qe===null){for(;!yt.done;Je++,yt=de.next())yt=ke(ce,yt.value,Ee),yt!==null&&(ae=M(yt,ae,Je),Ge===null?Ue=yt:Ge.sibling=yt,Ge=yt);return qt&&la(ce,Je),Ue}for(Qe=_(ce,Qe);!yt.done;Je++,yt=de.next())yt=Re(Qe,ce,Je,yt.value,Ee),yt!==null&&(l&&yt.alternate!==null&&Qe.delete(yt.key===null?Je:yt.key),ae=M(yt,ae,Je),Ge===null?Ue=yt:Ge.sibling=yt,Ge=yt);return l&&Qe.forEach(function(BD){return u(ce,BD)}),qt&&la(ce,Je),Ue}function tn(ce,ae,de,Ee){if(typeof de=="object"&&de!==null&&de.type===E&&de.key===null&&(de=de.props.children),typeof de=="object"&&de!==null){switch(de.$$typeof){case A:e:{for(var Ue=de.key,Ge=ae;Ge!==null;){if(Ge.key===Ue){if(Ue=de.type,Ue===E){if(Ge.tag===7){v(ce,Ge.sibling),ae=P(Ge,de.props.children),ae.return=ce,ce=ae;break e}}else if(Ge.elementType===Ue||typeof Ue=="object"&&Ue!==null&&Ue.$$typeof===Y&&Uj(Ue)===Ge.type){v(ce,Ge.sibling),ae=P(Ge,de.props),ae.ref=tc(ce,Ge,de),ae.return=ce,ce=ae;break e}v(ce,Ge);break}else u(ce,Ge);Ge=Ge.sibling}de.type===E?(ae=ga(de.props.children,ce.mode,Ee,de.key),ae.return=ce,ce=ae):(Ee=Md(de.type,de.key,de.props,null,ce.mode,Ee),Ee.ref=tc(ce,ae,de),Ee.return=ce,ce=Ee)}return $(ce);case S:e:{for(Ge=de.key;ae!==null;){if(ae.key===Ge)if(ae.tag===4&&ae.stateNode.containerInfo===de.containerInfo&&ae.stateNode.implementation===de.implementation){v(ce,ae.sibling),ae=P(ae,de.children||[]),ae.return=ce,ce=ae;break e}else{v(ce,ae);break}else u(ce,ae);ae=ae.sibling}ae=Ap(de,ce.mode,Ee),ae.return=ce,ce=ae}return $(ce);case Y:return Ge=de._init,tn(ce,ae,Ge(de._payload),Ee)}if(Se(de))return Le(ce,ae,de,Ee);if(Q(de))return Ve(ce,ae,de,Ee);fd(ce,de)}return typeof de=="string"&&de!==""||typeof de=="number"?(de=""+de,ae!==null&&ae.tag===6?(v(ce,ae.sibling),ae=P(ae,de),ae.return=ce,ce=ae):(v(ce,ae),ae=Sp(de,ce.mode,Ee),ae.return=ce,ce=ae),$(ce)):v(ce,ae)}return tn}var xo=$j(!0),Hj=$j(!1),md=cs(null),pd=null,yo=null,Fm=null;function Mm(){Fm=yo=pd=null}function Lm(l){var u=md.current;Lt(md),l._currentValue=u}function Bm(l,u,v){for(;l!==null;){var _=l.alternate;if((l.childLanes&u)!==u?(l.childLanes|=u,_!==null&&(_.childLanes|=u)):_!==null&&(_.childLanes&u)!==u&&(_.childLanes|=u),l===v)break;l=l.return}}function vo(l,u){pd=l,Fm=yo=null,l=l.dependencies,l!==null&&l.firstContext!==null&&((l.lanes&u)!==0&&(Hn=!0),l.firstContext=null)}function vr(l){var u=l._currentValue;if(Fm!==l)if(l={context:l,memoizedValue:u,next:null},yo===null){if(pd===null)throw Error(r(308));yo=l,pd.dependencies={lanes:0,firstContext:l}}else yo=yo.next=l;return u}var ca=null;function qm(l){ca===null?ca=[l]:ca.push(l)}function Wj(l,u,v,_){var P=u.interleaved;return P===null?(v.next=v,qm(u)):(v.next=P.next,P.next=v),u.interleaved=v,Ei(l,_)}function Ei(l,u){l.lanes|=u;var v=l.alternate;for(v!==null&&(v.lanes|=u),v=l,l=l.return;l!==null;)l.childLanes|=u,v=l.alternate,v!==null&&(v.childLanes|=u),v=l,l=l.return;return v.tag===3?v.stateNode:null}var hs=!1;function zm(l){l.updateQueue={baseState:l.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Kj(l,u){l=l.updateQueue,u.updateQueue===l&&(u.updateQueue={baseState:l.baseState,firstBaseUpdate:l.firstBaseUpdate,lastBaseUpdate:l.lastBaseUpdate,shared:l.shared,effects:l.effects})}function Ti(l,u){return{eventTime:l,lane:u,tag:0,payload:null,callback:null,next:null}}function fs(l,u,v){var _=l.updateQueue;if(_===null)return null;if(_=_.shared,(xt&2)!==0){var P=_.pending;return P===null?u.next=u:(u.next=P.next,P.next=u),_.pending=u,Ei(l,v)}return P=_.interleaved,P===null?(u.next=u,qm(_)):(u.next=P.next,P.next=u),_.interleaved=u,Ei(l,v)}function gd(l,u,v){if(u=u.updateQueue,u!==null&&(u=u.shared,(v&4194240)!==0)){var _=u.lanes;_&=l.pendingLanes,v|=_,u.lanes=v,tm(l,v)}}function Gj(l,u){var v=l.updateQueue,_=l.alternate;if(_!==null&&(_=_.updateQueue,v===_)){var P=null,M=null;if(v=v.firstBaseUpdate,v!==null){do{var $={eventTime:v.eventTime,lane:v.lane,tag:v.tag,payload:v.payload,callback:v.callback,next:null};M===null?P=M=$:M=M.next=$,v=v.next}while(v!==null);M===null?P=M=u:M=M.next=u}else P=M=u;v={baseState:_.baseState,firstBaseUpdate:P,lastBaseUpdate:M,shared:_.shared,effects:_.effects},l.updateQueue=v;return}l=v.lastBaseUpdate,l===null?v.firstBaseUpdate=u:l.next=u,v.lastBaseUpdate=u}function xd(l,u,v,_){var P=l.updateQueue;hs=!1;var M=P.firstBaseUpdate,$=P.lastBaseUpdate,ee=P.shared.pending;if(ee!==null){P.shared.pending=null;var ie=ee,he=ie.next;ie.next=null,$===null?M=he:$.next=he,$=ie;var Ne=l.alternate;Ne!==null&&(Ne=Ne.updateQueue,ee=Ne.lastBaseUpdate,ee!==$&&(ee===null?Ne.firstBaseUpdate=he:ee.next=he,Ne.lastBaseUpdate=ie))}if(M!==null){var ke=P.baseState;$=0,Ne=he=ie=null,ee=M;do{var we=ee.lane,Re=ee.eventTime;if((_&we)===we){Ne!==null&&(Ne=Ne.next={eventTime:Re,lane:0,tag:ee.tag,payload:ee.payload,callback:ee.callback,next:null});e:{var Le=l,Ve=ee;switch(we=u,Re=v,Ve.tag){case 1:if(Le=Ve.payload,typeof Le=="function"){ke=Le.call(Re,ke,we);break e}ke=Le;break e;case 3:Le.flags=Le.flags&-65537|128;case 0:if(Le=Ve.payload,we=typeof Le=="function"?Le.call(Re,ke,we):Le,we==null)break e;ke=O({},ke,we);break e;case 2:hs=!0}}ee.callback!==null&&ee.lane!==0&&(l.flags|=64,we=P.effects,we===null?P.effects=[ee]:we.push(ee))}else Re={eventTime:Re,lane:we,tag:ee.tag,payload:ee.payload,callback:ee.callback,next:null},Ne===null?(he=Ne=Re,ie=ke):Ne=Ne.next=Re,$|=we;if(ee=ee.next,ee===null){if(ee=P.shared.pending,ee===null)break;we=ee,ee=we.next,we.next=null,P.lastBaseUpdate=we,P.shared.pending=null}}while(!0);if(Ne===null&&(ie=ke),P.baseState=ie,P.firstBaseUpdate=he,P.lastBaseUpdate=Ne,u=P.shared.interleaved,u!==null){P=u;do $|=P.lane,P=P.next;while(P!==u)}else M===null&&(P.shared.lanes=0);ha|=$,l.lanes=$,l.memoizedState=ke}}function Qj(l,u,v){if(l=u.effects,u.effects=null,l!==null)for(u=0;u<l.length;u++){var _=l[u],P=_.callback;if(P!==null){if(_.callback=null,_=v,typeof P!="function")throw Error(r(191,P));P.call(_)}}}var nc={},Jr=cs(nc),rc=cs(nc),ic=cs(nc);function ua(l){if(l===nc)throw Error(r(174));return l}function Vm(l,u){switch(Dt(ic,u),Dt(rc,l),Dt(Jr,nc),l=u.nodeType,l){case 9:case 11:u=(u=u.documentElement)?u.namespaceURI:_e(null,"");break;default:l=l===8?u.parentNode:u,u=l.namespaceURI||null,l=l.tagName,u=_e(u,l)}Lt(Jr),Dt(Jr,u)}function bo(){Lt(Jr),Lt(rc),Lt(ic)}function Yj(l){ua(ic.current);var u=ua(Jr.current),v=_e(u,l.type);u!==v&&(Dt(rc,l),Dt(Jr,v))}function Um(l){rc.current===l&&(Lt(Jr),Lt(rc))}var $t=cs(0);function yd(l){for(var u=l;u!==null;){if(u.tag===13){var v=u.memoizedState;if(v!==null&&(v=v.dehydrated,v===null||v.data==="$?"||v.data==="$!"))return u}else if(u.tag===19&&u.memoizedProps.revealOrder!==void 0){if((u.flags&128)!==0)return u}else if(u.child!==null){u.child.return=u,u=u.child;continue}if(u===l)break;for(;u.sibling===null;){if(u.return===null||u.return===l)return null;u=u.return}u.sibling.return=u.return,u=u.sibling}return null}var $m=[];function Hm(){for(var l=0;l<$m.length;l++)$m[l]._workInProgressVersionPrimary=null;$m.length=0}var vd=k.ReactCurrentDispatcher,Wm=k.ReactCurrentBatchConfig,da=0,Ht=null,un=null,mn=null,bd=!1,sc=!1,ac=0,oD=0;function Sn(){throw Error(r(321))}function Km(l,u){if(u===null)return!1;for(var v=0;v<u.length&&v<l.length;v++)if(!Pr(l[v],u[v]))return!1;return!0}function Gm(l,u,v,_,P,M){if(da=M,Ht=u,u.memoizedState=null,u.updateQueue=null,u.lanes=0,vd.current=l===null||l.memoizedState===null?dD:hD,l=v(_,P),sc){M=0;do{if(sc=!1,ac=0,25<=M)throw Error(r(301));M+=1,mn=un=null,u.updateQueue=null,vd.current=fD,l=v(_,P)}while(sc)}if(vd.current=Nd,u=un!==null&&un.next!==null,da=0,mn=un=Ht=null,bd=!1,u)throw Error(r(300));return l}function Qm(){var l=ac!==0;return ac=0,l}function Zr(){var l={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return mn===null?Ht.memoizedState=mn=l:mn=mn.next=l,mn}function br(){if(un===null){var l=Ht.alternate;l=l!==null?l.memoizedState:null}else l=un.next;var u=mn===null?Ht.memoizedState:mn.next;if(u!==null)mn=u,un=l;else{if(l===null)throw Error(r(310));un=l,l={memoizedState:un.memoizedState,baseState:un.baseState,baseQueue:un.baseQueue,queue:un.queue,next:null},mn===null?Ht.memoizedState=mn=l:mn=mn.next=l}return mn}function oc(l,u){return typeof u=="function"?u(l):u}function Ym(l){var u=br(),v=u.queue;if(v===null)throw Error(r(311));v.lastRenderedReducer=l;var _=un,P=_.baseQueue,M=v.pending;if(M!==null){if(P!==null){var $=P.next;P.next=M.next,M.next=$}_.baseQueue=P=M,v.pending=null}if(P!==null){M=P.next,_=_.baseState;var ee=$=null,ie=null,he=M;do{var Ne=he.lane;if((da&Ne)===Ne)ie!==null&&(ie=ie.next={lane:0,action:he.action,hasEagerState:he.hasEagerState,eagerState:he.eagerState,next:null}),_=he.hasEagerState?he.eagerState:l(_,he.action);else{var ke={lane:Ne,action:he.action,hasEagerState:he.hasEagerState,eagerState:he.eagerState,next:null};ie===null?(ee=ie=ke,$=_):ie=ie.next=ke,Ht.lanes|=Ne,ha|=Ne}he=he.next}while(he!==null&&he!==M);ie===null?$=_:ie.next=ee,Pr(_,u.memoizedState)||(Hn=!0),u.memoizedState=_,u.baseState=$,u.baseQueue=ie,v.lastRenderedState=_}if(l=v.interleaved,l!==null){P=l;do M=P.lane,Ht.lanes|=M,ha|=M,P=P.next;while(P!==l)}else P===null&&(v.lanes=0);return[u.memoizedState,v.dispatch]}function Xm(l){var u=br(),v=u.queue;if(v===null)throw Error(r(311));v.lastRenderedReducer=l;var _=v.dispatch,P=v.pending,M=u.memoizedState;if(P!==null){v.pending=null;var $=P=P.next;do M=l(M,$.action),$=$.next;while($!==P);Pr(M,u.memoizedState)||(Hn=!0),u.memoizedState=M,u.baseQueue===null&&(u.baseState=M),v.lastRenderedState=M}return[M,_]}function Xj(){}function Jj(l,u){var v=Ht,_=br(),P=u(),M=!Pr(_.memoizedState,P);if(M&&(_.memoizedState=P,Hn=!0),_=_.queue,Jm(tw.bind(null,v,_,l),[l]),_.getSnapshot!==u||M||mn!==null&&mn.memoizedState.tag&1){if(v.flags|=2048,lc(9,ew.bind(null,v,_,P,u),void 0,null),pn===null)throw Error(r(349));(da&30)!==0||Zj(v,u,P)}return P}function Zj(l,u,v){l.flags|=16384,l={getSnapshot:u,value:v},u=Ht.updateQueue,u===null?(u={lastEffect:null,stores:null},Ht.updateQueue=u,u.stores=[l]):(v=u.stores,v===null?u.stores=[l]:v.push(l))}function ew(l,u,v,_){u.value=v,u.getSnapshot=_,nw(u)&&rw(l)}function tw(l,u,v){return v(function(){nw(u)&&rw(l)})}function nw(l){var u=l.getSnapshot;l=l.value;try{var v=u();return!Pr(l,v)}catch{return!0}}function rw(l){var u=Ei(l,1);u!==null&&Fr(u,l,1,-1)}function iw(l){var u=Zr();return typeof l=="function"&&(l=l()),u.memoizedState=u.baseState=l,l={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:oc,lastRenderedState:l},u.queue=l,l=l.dispatch=uD.bind(null,Ht,l),[u.memoizedState,l]}function lc(l,u,v,_){return l={tag:l,create:u,destroy:v,deps:_,next:null},u=Ht.updateQueue,u===null?(u={lastEffect:null,stores:null},Ht.updateQueue=u,u.lastEffect=l.next=l):(v=u.lastEffect,v===null?u.lastEffect=l.next=l:(_=v.next,v.next=l,l.next=_,u.lastEffect=l)),l}function sw(){return br().memoizedState}function jd(l,u,v,_){var P=Zr();Ht.flags|=l,P.memoizedState=lc(1|u,v,void 0,_===void 0?null:_)}function wd(l,u,v,_){var P=br();_=_===void 0?null:_;var M=void 0;if(un!==null){var $=un.memoizedState;if(M=$.destroy,_!==null&&Km(_,$.deps)){P.memoizedState=lc(u,v,M,_);return}}Ht.flags|=l,P.memoizedState=lc(1|u,v,M,_)}function aw(l,u){return jd(8390656,8,l,u)}function Jm(l,u){return wd(2048,8,l,u)}function ow(l,u){return wd(4,2,l,u)}function lw(l,u){return wd(4,4,l,u)}function cw(l,u){if(typeof u=="function")return l=l(),u(l),function(){u(null)};if(u!=null)return l=l(),u.current=l,function(){u.current=null}}function uw(l,u,v){return v=v!=null?v.concat([l]):null,wd(4,4,cw.bind(null,u,l),v)}function Zm(){}function dw(l,u){var v=br();u=u===void 0?null:u;var _=v.memoizedState;return _!==null&&u!==null&&Km(u,_[1])?_[0]:(v.memoizedState=[l,u],l)}function hw(l,u){var v=br();u=u===void 0?null:u;var _=v.memoizedState;return _!==null&&u!==null&&Km(u,_[1])?_[0]:(l=l(),v.memoizedState=[l,u],l)}function fw(l,u,v){return(da&21)===0?(l.baseState&&(l.baseState=!1,Hn=!0),l.memoizedState=v):(Pr(v,u)||(v=Ub(),Ht.lanes|=v,ha|=v,l.baseState=!0),u)}function lD(l,u){var v=Ct;Ct=v!==0&&4>v?v:4,l(!0);var _=Wm.transition;Wm.transition={};try{l(!1),u()}finally{Ct=v,Wm.transition=_}}function mw(){return br().memoizedState}function cD(l,u,v){var _=xs(l);if(v={lane:_,action:v,hasEagerState:!1,eagerState:null,next:null},pw(l))gw(u,v);else if(v=Wj(l,u,v,_),v!==null){var P=Mn();Fr(v,l,_,P),xw(v,u,_)}}function uD(l,u,v){var _=xs(l),P={lane:_,action:v,hasEagerState:!1,eagerState:null,next:null};if(pw(l))gw(u,P);else{var M=l.alternate;if(l.lanes===0&&(M===null||M.lanes===0)&&(M=u.lastRenderedReducer,M!==null))try{var $=u.lastRenderedState,ee=M($,v);if(P.hasEagerState=!0,P.eagerState=ee,Pr(ee,$)){var ie=u.interleaved;ie===null?(P.next=P,qm(u)):(P.next=ie.next,ie.next=P),u.interleaved=P;return}}catch{}finally{}v=Wj(l,u,P,_),v!==null&&(P=Mn(),Fr(v,l,_,P),xw(v,u,_))}}function pw(l){var u=l.alternate;return l===Ht||u!==null&&u===Ht}function gw(l,u){sc=bd=!0;var v=l.pending;v===null?u.next=u:(u.next=v.next,v.next=u),l.pending=u}function xw(l,u,v){if((v&4194240)!==0){var _=u.lanes;_&=l.pendingLanes,v|=_,u.lanes=v,tm(l,v)}}var Nd={readContext:vr,useCallback:Sn,useContext:Sn,useEffect:Sn,useImperativeHandle:Sn,useInsertionEffect:Sn,useLayoutEffect:Sn,useMemo:Sn,useReducer:Sn,useRef:Sn,useState:Sn,useDebugValue:Sn,useDeferredValue:Sn,useTransition:Sn,useMutableSource:Sn,useSyncExternalStore:Sn,useId:Sn,unstable_isNewReconciler:!1},dD={readContext:vr,useCallback:function(l,u){return Zr().memoizedState=[l,u===void 0?null:u],l},useContext:vr,useEffect:aw,useImperativeHandle:function(l,u,v){return v=v!=null?v.concat([l]):null,jd(4194308,4,cw.bind(null,u,l),v)},useLayoutEffect:function(l,u){return jd(4194308,4,l,u)},useInsertionEffect:function(l,u){return jd(4,2,l,u)},useMemo:function(l,u){var v=Zr();return u=u===void 0?null:u,l=l(),v.memoizedState=[l,u],l},useReducer:function(l,u,v){var _=Zr();return u=v!==void 0?v(u):u,_.memoizedState=_.baseState=u,l={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:l,lastRenderedState:u},_.queue=l,l=l.dispatch=cD.bind(null,Ht,l),[_.memoizedState,l]},useRef:function(l){var u=Zr();return l={current:l},u.memoizedState=l},useState:iw,useDebugValue:Zm,useDeferredValue:function(l){return Zr().memoizedState=l},useTransition:function(){var l=iw(!1),u=l[0];return l=lD.bind(null,l[1]),Zr().memoizedState=l,[u,l]},useMutableSource:function(){},useSyncExternalStore:function(l,u,v){var _=Ht,P=Zr();if(qt){if(v===void 0)throw Error(r(407));v=v()}else{if(v=u(),pn===null)throw Error(r(349));(da&30)!==0||Zj(_,u,v)}P.memoizedState=v;var M={value:v,getSnapshot:u};return P.queue=M,aw(tw.bind(null,_,M,l),[l]),_.flags|=2048,lc(9,ew.bind(null,_,M,v,u),void 0,null),v},useId:function(){var l=Zr(),u=pn.identifierPrefix;if(qt){var v=Ci,_=Ai;v=(_&~(1<<32-Tr(_)-1)).toString(32)+v,u=":"+u+"R"+v,v=ac++,0<v&&(u+="H"+v.toString(32)),u+=":"}else v=oD++,u=":"+u+"r"+v.toString(32)+":";return l.memoizedState=u},unstable_isNewReconciler:!1},hD={readContext:vr,useCallback:dw,useContext:vr,useEffect:Jm,useImperativeHandle:uw,useInsertionEffect:ow,useLayoutEffect:lw,useMemo:hw,useReducer:Ym,useRef:sw,useState:function(){return Ym(oc)},useDebugValue:Zm,useDeferredValue:function(l){var u=br();return fw(u,un.memoizedState,l)},useTransition:function(){var l=Ym(oc)[0],u=br().memoizedState;return[l,u]},useMutableSource:Xj,useSyncExternalStore:Jj,useId:mw,unstable_isNewReconciler:!1},fD={readContext:vr,useCallback:dw,useContext:vr,useEffect:Jm,useImperativeHandle:uw,useInsertionEffect:ow,useLayoutEffect:lw,useMemo:hw,useReducer:Xm,useRef:sw,useState:function(){return Xm(oc)},useDebugValue:Zm,useDeferredValue:function(l){var u=br();return un===null?u.memoizedState=l:fw(u,un.memoizedState,l)},useTransition:function(){var l=Xm(oc)[0],u=br().memoizedState;return[l,u]},useMutableSource:Xj,useSyncExternalStore:Jj,useId:mw,unstable_isNewReconciler:!1};function Dr(l,u){if(l&&l.defaultProps){u=O({},u),l=l.defaultProps;for(var v in l)u[v]===void 0&&(u[v]=l[v]);return u}return u}function ep(l,u,v,_){u=l.memoizedState,v=v(_,u),v=v==null?u:O({},u,v),l.memoizedState=v,l.lanes===0&&(l.updateQueue.baseState=v)}var kd={isMounted:function(l){return(l=l._reactInternals)?ia(l)===l:!1},enqueueSetState:function(l,u,v){l=l._reactInternals;var _=Mn(),P=xs(l),M=Ti(_,P);M.payload=u,v!=null&&(M.callback=v),u=fs(l,M,P),u!==null&&(Fr(u,l,P,_),gd(u,l,P))},enqueueReplaceState:function(l,u,v){l=l._reactInternals;var _=Mn(),P=xs(l),M=Ti(_,P);M.tag=1,M.payload=u,v!=null&&(M.callback=v),u=fs(l,M,P),u!==null&&(Fr(u,l,P,_),gd(u,l,P))},enqueueForceUpdate:function(l,u){l=l._reactInternals;var v=Mn(),_=xs(l),P=Ti(v,_);P.tag=2,u!=null&&(P.callback=u),u=fs(l,P,_),u!==null&&(Fr(u,l,_,v),gd(u,l,_))}};function yw(l,u,v,_,P,M,$){return l=l.stateNode,typeof l.shouldComponentUpdate=="function"?l.shouldComponentUpdate(_,M,$):u.prototype&&u.prototype.isPureReactComponent?!Gl(v,_)||!Gl(P,M):!0}function vw(l,u,v){var _=!1,P=us,M=u.contextType;return typeof M=="object"&&M!==null?M=vr(M):(P=$n(u)?aa:_n.current,_=u.contextTypes,M=(_=_!=null)?fo(l,P):us),u=new u(v,M),l.memoizedState=u.state!==null&&u.state!==void 0?u.state:null,u.updater=kd,l.stateNode=u,u._reactInternals=l,_&&(l=l.stateNode,l.__reactInternalMemoizedUnmaskedChildContext=P,l.__reactInternalMemoizedMaskedChildContext=M),u}function bw(l,u,v,_){l=u.state,typeof u.componentWillReceiveProps=="function"&&u.componentWillReceiveProps(v,_),typeof u.UNSAFE_componentWillReceiveProps=="function"&&u.UNSAFE_componentWillReceiveProps(v,_),u.state!==l&&kd.enqueueReplaceState(u,u.state,null)}function tp(l,u,v,_){var P=l.stateNode;P.props=v,P.state=l.memoizedState,P.refs={},zm(l);var M=u.contextType;typeof M=="object"&&M!==null?P.context=vr(M):(M=$n(u)?aa:_n.current,P.context=fo(l,M)),P.state=l.memoizedState,M=u.getDerivedStateFromProps,typeof M=="function"&&(ep(l,u,M,v),P.state=l.memoizedState),typeof u.getDerivedStateFromProps=="function"||typeof P.getSnapshotBeforeUpdate=="function"||typeof P.UNSAFE_componentWillMount!="function"&&typeof P.componentWillMount!="function"||(u=P.state,typeof P.componentWillMount=="function"&&P.componentWillMount(),typeof P.UNSAFE_componentWillMount=="function"&&P.UNSAFE_componentWillMount(),u!==P.state&&kd.enqueueReplaceState(P,P.state,null),xd(l,v,P,_),P.state=l.memoizedState),typeof P.componentDidMount=="function"&&(l.flags|=4194308)}function jo(l,u){try{var v="",_=u;do v+=J(_),_=_.return;while(_);var P=v}catch(M){P=`
Error generating stack: `+M.message+`
`+M.stack}return{value:l,source:u,stack:P,digest:null}}function np(l,u,v){return{value:l,source:null,stack:v??null,digest:u??null}}function rp(l,u){try{console.error(u.value)}catch(v){setTimeout(function(){throw v})}}var mD=typeof WeakMap=="function"?WeakMap:Map;function jw(l,u,v){v=Ti(-1,v),v.tag=3,v.payload={element:null};var _=u.value;return v.callback=function(){Pd||(Pd=!0,yp=_),rp(l,u)},v}function ww(l,u,v){v=Ti(-1,v),v.tag=3;var _=l.type.getDerivedStateFromError;if(typeof _=="function"){var P=u.value;v.payload=function(){return _(P)},v.callback=function(){rp(l,u)}}var M=l.stateNode;return M!==null&&typeof M.componentDidCatch=="function"&&(v.callback=function(){rp(l,u),typeof _!="function"&&(ps===null?ps=new Set([this]):ps.add(this));var $=u.stack;this.componentDidCatch(u.value,{componentStack:$!==null?$:""})}),v}function Nw(l,u,v){var _=l.pingCache;if(_===null){_=l.pingCache=new mD;var P=new Set;_.set(u,P)}else P=_.get(u),P===void 0&&(P=new Set,_.set(u,P));P.has(v)||(P.add(v),l=CD.bind(null,l,u,v),u.then(l,l))}function kw(l){do{var u;if((u=l.tag===13)&&(u=l.memoizedState,u=u!==null?u.dehydrated!==null:!0),u)return l;l=l.return}while(l!==null);return null}function _w(l,u,v,_,P){return(l.mode&1)===0?(l===u?l.flags|=65536:(l.flags|=128,v.flags|=131072,v.flags&=-52805,v.tag===1&&(v.alternate===null?v.tag=17:(u=Ti(-1,1),u.tag=2,fs(v,u,1))),v.lanes|=1),l):(l.flags|=65536,l.lanes=P,l)}var pD=k.ReactCurrentOwner,Hn=!1;function Fn(l,u,v,_){u.child=l===null?Hj(u,null,v,_):xo(u,l.child,v,_)}function Sw(l,u,v,_,P){v=v.render;var M=u.ref;return vo(u,P),_=Gm(l,u,v,_,M,P),v=Qm(),l!==null&&!Hn?(u.updateQueue=l.updateQueue,u.flags&=-2053,l.lanes&=~P,Pi(l,u,P)):(qt&&v&&Pm(u),u.flags|=1,Fn(l,u,_,P),u.child)}function Aw(l,u,v,_,P){if(l===null){var M=v.type;return typeof M=="function"&&!_p(M)&&M.defaultProps===void 0&&v.compare===null&&v.defaultProps===void 0?(u.tag=15,u.type=M,Cw(l,u,M,_,P)):(l=Md(v.type,null,_,u,u.mode,P),l.ref=u.ref,l.return=u,u.child=l)}if(M=l.child,(l.lanes&P)===0){var $=M.memoizedProps;if(v=v.compare,v=v!==null?v:Gl,v($,_)&&l.ref===u.ref)return Pi(l,u,P)}return u.flags|=1,l=vs(M,_),l.ref=u.ref,l.return=u,u.child=l}function Cw(l,u,v,_,P){if(l!==null){var M=l.memoizedProps;if(Gl(M,_)&&l.ref===u.ref)if(Hn=!1,u.pendingProps=_=M,(l.lanes&P)!==0)(l.flags&131072)!==0&&(Hn=!0);else return u.lanes=l.lanes,Pi(l,u,P)}return ip(l,u,v,_,P)}function Ew(l,u,v){var _=u.pendingProps,P=_.children,M=l!==null?l.memoizedState:null;if(_.mode==="hidden")if((u.mode&1)===0)u.memoizedState={baseLanes:0,cachePool:null,transitions:null},Dt(No,lr),lr|=v;else{if((v&1073741824)===0)return l=M!==null?M.baseLanes|v:v,u.lanes=u.childLanes=1073741824,u.memoizedState={baseLanes:l,cachePool:null,transitions:null},u.updateQueue=null,Dt(No,lr),lr|=l,null;u.memoizedState={baseLanes:0,cachePool:null,transitions:null},_=M!==null?M.baseLanes:v,Dt(No,lr),lr|=_}else M!==null?(_=M.baseLanes|v,u.memoizedState=null):_=v,Dt(No,lr),lr|=_;return Fn(l,u,P,v),u.child}function Tw(l,u){var v=u.ref;(l===null&&v!==null||l!==null&&l.ref!==v)&&(u.flags|=512,u.flags|=2097152)}function ip(l,u,v,_,P){var M=$n(v)?aa:_n.current;return M=fo(u,M),vo(u,P),v=Gm(l,u,v,_,M,P),_=Qm(),l!==null&&!Hn?(u.updateQueue=l.updateQueue,u.flags&=-2053,l.lanes&=~P,Pi(l,u,P)):(qt&&_&&Pm(u),u.flags|=1,Fn(l,u,v,P),u.child)}function Pw(l,u,v,_,P){if($n(v)){var M=!0;ld(u)}else M=!1;if(vo(u,P),u.stateNode===null)Sd(l,u),vw(u,v,_),tp(u,v,_,P),_=!0;else if(l===null){var $=u.stateNode,ee=u.memoizedProps;$.props=ee;var ie=$.context,he=v.contextType;typeof he=="object"&&he!==null?he=vr(he):(he=$n(v)?aa:_n.current,he=fo(u,he));var Ne=v.getDerivedStateFromProps,ke=typeof Ne=="function"||typeof $.getSnapshotBeforeUpdate=="function";ke||typeof $.UNSAFE_componentWillReceiveProps!="function"&&typeof $.componentWillReceiveProps!="function"||(ee!==_||ie!==he)&&bw(u,$,_,he),hs=!1;var we=u.memoizedState;$.state=we,xd(u,_,$,P),ie=u.memoizedState,ee!==_||we!==ie||Un.current||hs?(typeof Ne=="function"&&(ep(u,v,Ne,_),ie=u.memoizedState),(ee=hs||yw(u,v,ee,_,we,ie,he))?(ke||typeof $.UNSAFE_componentWillMount!="function"&&typeof $.componentWillMount!="function"||(typeof $.componentWillMount=="function"&&$.componentWillMount(),typeof $.UNSAFE_componentWillMount=="function"&&$.UNSAFE_componentWillMount()),typeof $.componentDidMount=="function"&&(u.flags|=4194308)):(typeof $.componentDidMount=="function"&&(u.flags|=4194308),u.memoizedProps=_,u.memoizedState=ie),$.props=_,$.state=ie,$.context=he,_=ee):(typeof $.componentDidMount=="function"&&(u.flags|=4194308),_=!1)}else{$=u.stateNode,Kj(l,u),ee=u.memoizedProps,he=u.type===u.elementType?ee:Dr(u.type,ee),$.props=he,ke=u.pendingProps,we=$.context,ie=v.contextType,typeof ie=="object"&&ie!==null?ie=vr(ie):(ie=$n(v)?aa:_n.current,ie=fo(u,ie));var Re=v.getDerivedStateFromProps;(Ne=typeof Re=="function"||typeof $.getSnapshotBeforeUpdate=="function")||typeof $.UNSAFE_componentWillReceiveProps!="function"&&typeof $.componentWillReceiveProps!="function"||(ee!==ke||we!==ie)&&bw(u,$,_,ie),hs=!1,we=u.memoizedState,$.state=we,xd(u,_,$,P);var Le=u.memoizedState;ee!==ke||we!==Le||Un.current||hs?(typeof Re=="function"&&(ep(u,v,Re,_),Le=u.memoizedState),(he=hs||yw(u,v,he,_,we,Le,ie)||!1)?(Ne||typeof $.UNSAFE_componentWillUpdate!="function"&&typeof $.componentWillUpdate!="function"||(typeof $.componentWillUpdate=="function"&&$.componentWillUpdate(_,Le,ie),typeof $.UNSAFE_componentWillUpdate=="function"&&$.UNSAFE_componentWillUpdate(_,Le,ie)),typeof $.componentDidUpdate=="function"&&(u.flags|=4),typeof $.getSnapshotBeforeUpdate=="function"&&(u.flags|=1024)):(typeof $.componentDidUpdate!="function"||ee===l.memoizedProps&&we===l.memoizedState||(u.flags|=4),typeof $.getSnapshotBeforeUpdate!="function"||ee===l.memoizedProps&&we===l.memoizedState||(u.flags|=1024),u.memoizedProps=_,u.memoizedState=Le),$.props=_,$.state=Le,$.context=ie,_=he):(typeof $.componentDidUpdate!="function"||ee===l.memoizedProps&&we===l.memoizedState||(u.flags|=4),typeof $.getSnapshotBeforeUpdate!="function"||ee===l.memoizedProps&&we===l.memoizedState||(u.flags|=1024),_=!1)}return sp(l,u,v,_,M,P)}function sp(l,u,v,_,P,M){Tw(l,u);var $=(u.flags&128)!==0;if(!_&&!$)return P&&Fj(u,v,!1),Pi(l,u,M);_=u.stateNode,pD.current=u;var ee=$&&typeof v.getDerivedStateFromError!="function"?null:_.render();return u.flags|=1,l!==null&&$?(u.child=xo(u,l.child,null,M),u.child=xo(u,null,ee,M)):Fn(l,u,ee,M),u.memoizedState=_.state,P&&Fj(u,v,!0),u.child}function Ow(l){var u=l.stateNode;u.pendingContext?Ij(l,u.pendingContext,u.pendingContext!==u.context):u.context&&Ij(l,u.context,!1),Vm(l,u.containerInfo)}function Dw(l,u,v,_,P){return go(),Rm(P),u.flags|=256,Fn(l,u,v,_),u.child}var ap={dehydrated:null,treeContext:null,retryLane:0};function op(l){return{baseLanes:l,cachePool:null,transitions:null}}function Iw(l,u,v){var _=u.pendingProps,P=$t.current,M=!1,$=(u.flags&128)!==0,ee;if((ee=$)||(ee=l!==null&&l.memoizedState===null?!1:(P&2)!==0),ee?(M=!0,u.flags&=-129):(l===null||l.memoizedState!==null)&&(P|=1),Dt($t,P&1),l===null)return Im(u),l=u.memoizedState,l!==null&&(l=l.dehydrated,l!==null)?((u.mode&1)===0?u.lanes=1:l.data==="$!"?u.lanes=8:u.lanes=1073741824,null):($=_.children,l=_.fallback,M?(_=u.mode,M=u.child,$={mode:"hidden",children:$},(_&1)===0&&M!==null?(M.childLanes=0,M.pendingProps=$):M=Ld($,_,0,null),l=ga(l,_,v,null),M.return=u,l.return=u,M.sibling=l,u.child=M,u.child.memoizedState=op(v),u.memoizedState=ap,l):lp(u,$));if(P=l.memoizedState,P!==null&&(ee=P.dehydrated,ee!==null))return gD(l,u,$,_,ee,P,v);if(M){M=_.fallback,$=u.mode,P=l.child,ee=P.sibling;var ie={mode:"hidden",children:_.children};return($&1)===0&&u.child!==P?(_=u.child,_.childLanes=0,_.pendingProps=ie,u.deletions=null):(_=vs(P,ie),_.subtreeFlags=P.subtreeFlags&14680064),ee!==null?M=vs(ee,M):(M=ga(M,$,v,null),M.flags|=2),M.return=u,_.return=u,_.sibling=M,u.child=_,_=M,M=u.child,$=l.child.memoizedState,$=$===null?op(v):{baseLanes:$.baseLanes|v,cachePool:null,transitions:$.transitions},M.memoizedState=$,M.childLanes=l.childLanes&~v,u.memoizedState=ap,_}return M=l.child,l=M.sibling,_=vs(M,{mode:"visible",children:_.children}),(u.mode&1)===0&&(_.lanes=v),_.return=u,_.sibling=null,l!==null&&(v=u.deletions,v===null?(u.deletions=[l],u.flags|=16):v.push(l)),u.child=_,u.memoizedState=null,_}function lp(l,u){return u=Ld({mode:"visible",children:u},l.mode,0,null),u.return=l,l.child=u}function _d(l,u,v,_){return _!==null&&Rm(_),xo(u,l.child,null,v),l=lp(u,u.pendingProps.children),l.flags|=2,u.memoizedState=null,l}function gD(l,u,v,_,P,M,$){if(v)return u.flags&256?(u.flags&=-257,_=np(Error(r(422))),_d(l,u,$,_)):u.memoizedState!==null?(u.child=l.child,u.flags|=128,null):(M=_.fallback,P=u.mode,_=Ld({mode:"visible",children:_.children},P,0,null),M=ga(M,P,$,null),M.flags|=2,_.return=u,M.return=u,_.sibling=M,u.child=_,(u.mode&1)!==0&&xo(u,l.child,null,$),u.child.memoizedState=op($),u.memoizedState=ap,M);if((u.mode&1)===0)return _d(l,u,$,null);if(P.data==="$!"){if(_=P.nextSibling&&P.nextSibling.dataset,_)var ee=_.dgst;return _=ee,M=Error(r(419)),_=np(M,_,void 0),_d(l,u,$,_)}if(ee=($&l.childLanes)!==0,Hn||ee){if(_=pn,_!==null){switch($&-$){case 4:P=2;break;case 16:P=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:P=32;break;case 536870912:P=268435456;break;default:P=0}P=(P&(_.suspendedLanes|$))!==0?0:P,P!==0&&P!==M.retryLane&&(M.retryLane=P,Ei(l,P),Fr(_,l,P,-1))}return kp(),_=np(Error(r(421))),_d(l,u,$,_)}return P.data==="$?"?(u.flags|=128,u.child=l.child,u=ED.bind(null,l),P._reactRetry=u,null):(l=M.treeContext,or=ls(P.nextSibling),ar=u,qt=!0,Or=null,l!==null&&(xr[yr++]=Ai,xr[yr++]=Ci,xr[yr++]=oa,Ai=l.id,Ci=l.overflow,oa=u),u=lp(u,_.children),u.flags|=4096,u)}function Rw(l,u,v){l.lanes|=u;var _=l.alternate;_!==null&&(_.lanes|=u),Bm(l.return,u,v)}function cp(l,u,v,_,P){var M=l.memoizedState;M===null?l.memoizedState={isBackwards:u,rendering:null,renderingStartTime:0,last:_,tail:v,tailMode:P}:(M.isBackwards=u,M.rendering=null,M.renderingStartTime=0,M.last=_,M.tail=v,M.tailMode=P)}function Fw(l,u,v){var _=u.pendingProps,P=_.revealOrder,M=_.tail;if(Fn(l,u,_.children,v),_=$t.current,(_&2)!==0)_=_&1|2,u.flags|=128;else{if(l!==null&&(l.flags&128)!==0)e:for(l=u.child;l!==null;){if(l.tag===13)l.memoizedState!==null&&Rw(l,v,u);else if(l.tag===19)Rw(l,v,u);else if(l.child!==null){l.child.return=l,l=l.child;continue}if(l===u)break e;for(;l.sibling===null;){if(l.return===null||l.return===u)break e;l=l.return}l.sibling.return=l.return,l=l.sibling}_&=1}if(Dt($t,_),(u.mode&1)===0)u.memoizedState=null;else switch(P){case"forwards":for(v=u.child,P=null;v!==null;)l=v.alternate,l!==null&&yd(l)===null&&(P=v),v=v.sibling;v=P,v===null?(P=u.child,u.child=null):(P=v.sibling,v.sibling=null),cp(u,!1,P,v,M);break;case"backwards":for(v=null,P=u.child,u.child=null;P!==null;){if(l=P.alternate,l!==null&&yd(l)===null){u.child=P;break}l=P.sibling,P.sibling=v,v=P,P=l}cp(u,!0,v,null,M);break;case"together":cp(u,!1,null,null,void 0);break;default:u.memoizedState=null}return u.child}function Sd(l,u){(u.mode&1)===0&&l!==null&&(l.alternate=null,u.alternate=null,u.flags|=2)}function Pi(l,u,v){if(l!==null&&(u.dependencies=l.dependencies),ha|=u.lanes,(v&u.childLanes)===0)return null;if(l!==null&&u.child!==l.child)throw Error(r(153));if(u.child!==null){for(l=u.child,v=vs(l,l.pendingProps),u.child=v,v.return=u;l.sibling!==null;)l=l.sibling,v=v.sibling=vs(l,l.pendingProps),v.return=u;v.sibling=null}return u.child}function xD(l,u,v){switch(u.tag){case 3:Ow(u),go();break;case 5:Yj(u);break;case 1:$n(u.type)&&ld(u);break;case 4:Vm(u,u.stateNode.containerInfo);break;case 10:var _=u.type._context,P=u.memoizedProps.value;Dt(md,_._currentValue),_._currentValue=P;break;case 13:if(_=u.memoizedState,_!==null)return _.dehydrated!==null?(Dt($t,$t.current&1),u.flags|=128,null):(v&u.child.childLanes)!==0?Iw(l,u,v):(Dt($t,$t.current&1),l=Pi(l,u,v),l!==null?l.sibling:null);Dt($t,$t.current&1);break;case 19:if(_=(v&u.childLanes)!==0,(l.flags&128)!==0){if(_)return Fw(l,u,v);u.flags|=128}if(P=u.memoizedState,P!==null&&(P.rendering=null,P.tail=null,P.lastEffect=null),Dt($t,$t.current),_)break;return null;case 22:case 23:return u.lanes=0,Ew(l,u,v)}return Pi(l,u,v)}var Mw,up,Lw,Bw;Mw=function(l,u){for(var v=u.child;v!==null;){if(v.tag===5||v.tag===6)l.appendChild(v.stateNode);else if(v.tag!==4&&v.child!==null){v.child.return=v,v=v.child;continue}if(v===u)break;for(;v.sibling===null;){if(v.return===null||v.return===u)return;v=v.return}v.sibling.return=v.return,v=v.sibling}},up=function(){},Lw=function(l,u,v,_){var P=l.memoizedProps;if(P!==_){l=u.stateNode,ua(Jr.current);var M=null;switch(v){case"input":P=Te(l,P),_=Te(l,_),M=[];break;case"select":P=O({},P,{value:void 0}),_=O({},_,{value:void 0}),M=[];break;case"textarea":P=je(l,P),_=je(l,_),M=[];break;default:typeof P.onClick!="function"&&typeof _.onClick=="function"&&(l.onclick=sd)}vn(v,_);var $;v=null;for(he in P)if(!_.hasOwnProperty(he)&&P.hasOwnProperty(he)&&P[he]!=null)if(he==="style"){var ee=P[he];for($ in ee)ee.hasOwnProperty($)&&(v||(v={}),v[$]="")}else he!=="dangerouslySetInnerHTML"&&he!=="children"&&he!=="suppressContentEditableWarning"&&he!=="suppressHydrationWarning"&&he!=="autoFocus"&&(s.hasOwnProperty(he)?M||(M=[]):(M=M||[]).push(he,null));for(he in _){var ie=_[he];if(ee=P!=null?P[he]:void 0,_.hasOwnProperty(he)&&ie!==ee&&(ie!=null||ee!=null))if(he==="style")if(ee){for($ in ee)!ee.hasOwnProperty($)||ie&&ie.hasOwnProperty($)||(v||(v={}),v[$]="");for($ in ie)ie.hasOwnProperty($)&&ee[$]!==ie[$]&&(v||(v={}),v[$]=ie[$])}else v||(M||(M=[]),M.push(he,v)),v=ie;else he==="dangerouslySetInnerHTML"?(ie=ie?ie.__html:void 0,ee=ee?ee.__html:void 0,ie!=null&&ee!==ie&&(M=M||[]).push(he,ie)):he==="children"?typeof ie!="string"&&typeof ie!="number"||(M=M||[]).push(he,""+ie):he!=="suppressContentEditableWarning"&&he!=="suppressHydrationWarning"&&(s.hasOwnProperty(he)?(ie!=null&&he==="onScroll"&&Mt("scroll",l),M||ee===ie||(M=[])):(M=M||[]).push(he,ie))}v&&(M=M||[]).push("style",v);var he=M;(u.updateQueue=he)&&(u.flags|=4)}},Bw=function(l,u,v,_){v!==_&&(u.flags|=4)};function cc(l,u){if(!qt)switch(l.tailMode){case"hidden":u=l.tail;for(var v=null;u!==null;)u.alternate!==null&&(v=u),u=u.sibling;v===null?l.tail=null:v.sibling=null;break;case"collapsed":v=l.tail;for(var _=null;v!==null;)v.alternate!==null&&(_=v),v=v.sibling;_===null?u||l.tail===null?l.tail=null:l.tail.sibling=null:_.sibling=null}}function An(l){var u=l.alternate!==null&&l.alternate.child===l.child,v=0,_=0;if(u)for(var P=l.child;P!==null;)v|=P.lanes|P.childLanes,_|=P.subtreeFlags&14680064,_|=P.flags&14680064,P.return=l,P=P.sibling;else for(P=l.child;P!==null;)v|=P.lanes|P.childLanes,_|=P.subtreeFlags,_|=P.flags,P.return=l,P=P.sibling;return l.subtreeFlags|=_,l.childLanes=v,u}function yD(l,u,v){var _=u.pendingProps;switch(Om(u),u.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return An(u),null;case 1:return $n(u.type)&&od(),An(u),null;case 3:return _=u.stateNode,bo(),Lt(Un),Lt(_n),Hm(),_.pendingContext&&(_.context=_.pendingContext,_.pendingContext=null),(l===null||l.child===null)&&(hd(u)?u.flags|=4:l===null||l.memoizedState.isDehydrated&&(u.flags&256)===0||(u.flags|=1024,Or!==null&&(jp(Or),Or=null))),up(l,u),An(u),null;case 5:Um(u);var P=ua(ic.current);if(v=u.type,l!==null&&u.stateNode!=null)Lw(l,u,v,_,P),l.ref!==u.ref&&(u.flags|=512,u.flags|=2097152);else{if(!_){if(u.stateNode===null)throw Error(r(166));return An(u),null}if(l=ua(Jr.current),hd(u)){_=u.stateNode,v=u.type;var M=u.memoizedProps;switch(_[Xr]=u,_[Zl]=M,l=(u.mode&1)!==0,v){case"dialog":Mt("cancel",_),Mt("close",_);break;case"iframe":case"object":case"embed":Mt("load",_);break;case"video":case"audio":for(P=0;P<Yl.length;P++)Mt(Yl[P],_);break;case"source":Mt("error",_);break;case"img":case"image":case"link":Mt("error",_),Mt("load",_);break;case"details":Mt("toggle",_);break;case"input":We(_,M),Mt("invalid",_);break;case"select":_._wrapperState={wasMultiple:!!M.multiple},Mt("invalid",_);break;case"textarea":tt(_,M),Mt("invalid",_)}vn(v,M),P=null;for(var $ in M)if(M.hasOwnProperty($)){var ee=M[$];$==="children"?typeof ee=="string"?_.textContent!==ee&&(M.suppressHydrationWarning!==!0&&id(_.textContent,ee,l),P=["children",ee]):typeof ee=="number"&&_.textContent!==""+ee&&(M.suppressHydrationWarning!==!0&&id(_.textContent,ee,l),P=["children",""+ee]):s.hasOwnProperty($)&&ee!=null&&$==="onScroll"&&Mt("scroll",_)}switch(v){case"input":ye(_),ge(_,M,!0);break;case"textarea":ye(_),rt(_);break;case"select":case"option":break;default:typeof M.onClick=="function"&&(_.onclick=sd)}_=P,u.updateQueue=_,_!==null&&(u.flags|=4)}else{$=P.nodeType===9?P:P.ownerDocument,l==="http://www.w3.org/1999/xhtml"&&(l=xe(v)),l==="http://www.w3.org/1999/xhtml"?v==="script"?(l=$.createElement("div"),l.innerHTML="<script><\/script>",l=l.removeChild(l.firstChild)):typeof _.is=="string"?l=$.createElement(v,{is:_.is}):(l=$.createElement(v),v==="select"&&($=l,_.multiple?$.multiple=!0:_.size&&($.size=_.size))):l=$.createElementNS(l,v),l[Xr]=u,l[Zl]=_,Mw(l,u,!1,!1),u.stateNode=l;e:{switch($=Qr(v,_),v){case"dialog":Mt("cancel",l),Mt("close",l),P=_;break;case"iframe":case"object":case"embed":Mt("load",l),P=_;break;case"video":case"audio":for(P=0;P<Yl.length;P++)Mt(Yl[P],l);P=_;break;case"source":Mt("error",l),P=_;break;case"img":case"image":case"link":Mt("error",l),Mt("load",l),P=_;break;case"details":Mt("toggle",l),P=_;break;case"input":We(l,_),P=Te(l,_),Mt("invalid",l);break;case"option":P=_;break;case"select":l._wrapperState={wasMultiple:!!_.multiple},P=O({},_,{value:void 0}),Mt("invalid",l);break;case"textarea":tt(l,_),P=je(l,_),Mt("invalid",l);break;default:P=_}vn(v,P),ee=P;for(M in ee)if(ee.hasOwnProperty(M)){var ie=ee[M];M==="style"?ts(l,ie):M==="dangerouslySetInnerHTML"?(ie=ie?ie.__html:void 0,ie!=null&&it(l,ie)):M==="children"?typeof ie=="string"?(v!=="textarea"||ie!=="")&&$e(l,ie):typeof ie=="number"&&$e(l,""+ie):M!=="suppressContentEditableWarning"&&M!=="suppressHydrationWarning"&&M!=="autoFocus"&&(s.hasOwnProperty(M)?ie!=null&&M==="onScroll"&&Mt("scroll",l):ie!=null&&w(l,M,ie,$))}switch(v){case"input":ye(l),ge(l,_,!1);break;case"textarea":ye(l),rt(l);break;case"option":_.value!=null&&l.setAttribute("value",""+te(_.value));break;case"select":l.multiple=!!_.multiple,M=_.value,M!=null?Oe(l,!!_.multiple,M,!1):_.defaultValue!=null&&Oe(l,!!_.multiple,_.defaultValue,!0);break;default:typeof P.onClick=="function"&&(l.onclick=sd)}switch(v){case"button":case"input":case"select":case"textarea":_=!!_.autoFocus;break e;case"img":_=!0;break e;default:_=!1}}_&&(u.flags|=4)}u.ref!==null&&(u.flags|=512,u.flags|=2097152)}return An(u),null;case 6:if(l&&u.stateNode!=null)Bw(l,u,l.memoizedProps,_);else{if(typeof _!="string"&&u.stateNode===null)throw Error(r(166));if(v=ua(ic.current),ua(Jr.current),hd(u)){if(_=u.stateNode,v=u.memoizedProps,_[Xr]=u,(M=_.nodeValue!==v)&&(l=ar,l!==null))switch(l.tag){case 3:id(_.nodeValue,v,(l.mode&1)!==0);break;case 5:l.memoizedProps.suppressHydrationWarning!==!0&&id(_.nodeValue,v,(l.mode&1)!==0)}M&&(u.flags|=4)}else _=(v.nodeType===9?v:v.ownerDocument).createTextNode(_),_[Xr]=u,u.stateNode=_}return An(u),null;case 13:if(Lt($t),_=u.memoizedState,l===null||l.memoizedState!==null&&l.memoizedState.dehydrated!==null){if(qt&&or!==null&&(u.mode&1)!==0&&(u.flags&128)===0)Vj(),go(),u.flags|=98560,M=!1;else if(M=hd(u),_!==null&&_.dehydrated!==null){if(l===null){if(!M)throw Error(r(318));if(M=u.memoizedState,M=M!==null?M.dehydrated:null,!M)throw Error(r(317));M[Xr]=u}else go(),(u.flags&128)===0&&(u.memoizedState=null),u.flags|=4;An(u),M=!1}else Or!==null&&(jp(Or),Or=null),M=!0;if(!M)return u.flags&65536?u:null}return(u.flags&128)!==0?(u.lanes=v,u):(_=_!==null,_!==(l!==null&&l.memoizedState!==null)&&_&&(u.child.flags|=8192,(u.mode&1)!==0&&(l===null||($t.current&1)!==0?dn===0&&(dn=3):kp())),u.updateQueue!==null&&(u.flags|=4),An(u),null);case 4:return bo(),up(l,u),l===null&&Xl(u.stateNode.containerInfo),An(u),null;case 10:return Lm(u.type._context),An(u),null;case 17:return $n(u.type)&&od(),An(u),null;case 19:if(Lt($t),M=u.memoizedState,M===null)return An(u),null;if(_=(u.flags&128)!==0,$=M.rendering,$===null)if(_)cc(M,!1);else{if(dn!==0||l!==null&&(l.flags&128)!==0)for(l=u.child;l!==null;){if($=yd(l),$!==null){for(u.flags|=128,cc(M,!1),_=$.updateQueue,_!==null&&(u.updateQueue=_,u.flags|=4),u.subtreeFlags=0,_=v,v=u.child;v!==null;)M=v,l=_,M.flags&=14680066,$=M.alternate,$===null?(M.childLanes=0,M.lanes=l,M.child=null,M.subtreeFlags=0,M.memoizedProps=null,M.memoizedState=null,M.updateQueue=null,M.dependencies=null,M.stateNode=null):(M.childLanes=$.childLanes,M.lanes=$.lanes,M.child=$.child,M.subtreeFlags=0,M.deletions=null,M.memoizedProps=$.memoizedProps,M.memoizedState=$.memoizedState,M.updateQueue=$.updateQueue,M.type=$.type,l=$.dependencies,M.dependencies=l===null?null:{lanes:l.lanes,firstContext:l.firstContext}),v=v.sibling;return Dt($t,$t.current&1|2),u.child}l=l.sibling}M.tail!==null&&en()>ko&&(u.flags|=128,_=!0,cc(M,!1),u.lanes=4194304)}else{if(!_)if(l=yd($),l!==null){if(u.flags|=128,_=!0,v=l.updateQueue,v!==null&&(u.updateQueue=v,u.flags|=4),cc(M,!0),M.tail===null&&M.tailMode==="hidden"&&!$.alternate&&!qt)return An(u),null}else 2*en()-M.renderingStartTime>ko&&v!==1073741824&&(u.flags|=128,_=!0,cc(M,!1),u.lanes=4194304);M.isBackwards?($.sibling=u.child,u.child=$):(v=M.last,v!==null?v.sibling=$:u.child=$,M.last=$)}return M.tail!==null?(u=M.tail,M.rendering=u,M.tail=u.sibling,M.renderingStartTime=en(),u.sibling=null,v=$t.current,Dt($t,_?v&1|2:v&1),u):(An(u),null);case 22:case 23:return Np(),_=u.memoizedState!==null,l!==null&&l.memoizedState!==null!==_&&(u.flags|=8192),_&&(u.mode&1)!==0?(lr&1073741824)!==0&&(An(u),u.subtreeFlags&6&&(u.flags|=8192)):An(u),null;case 24:return null;case 25:return null}throw Error(r(156,u.tag))}function vD(l,u){switch(Om(u),u.tag){case 1:return $n(u.type)&&od(),l=u.flags,l&65536?(u.flags=l&-65537|128,u):null;case 3:return bo(),Lt(Un),Lt(_n),Hm(),l=u.flags,(l&65536)!==0&&(l&128)===0?(u.flags=l&-65537|128,u):null;case 5:return Um(u),null;case 13:if(Lt($t),l=u.memoizedState,l!==null&&l.dehydrated!==null){if(u.alternate===null)throw Error(r(340));go()}return l=u.flags,l&65536?(u.flags=l&-65537|128,u):null;case 19:return Lt($t),null;case 4:return bo(),null;case 10:return Lm(u.type._context),null;case 22:case 23:return Np(),null;case 24:return null;default:return null}}var Ad=!1,Cn=!1,bD=typeof WeakSet=="function"?WeakSet:Set,Fe=null;function wo(l,u){var v=l.ref;if(v!==null)if(typeof v=="function")try{v(null)}catch(_){Xt(l,u,_)}else v.current=null}function dp(l,u,v){try{v()}catch(_){Xt(l,u,_)}}var qw=!1;function jD(l,u){if(Nm=Ku,l=yj(),pm(l)){if("selectionStart"in l)var v={start:l.selectionStart,end:l.selectionEnd};else e:{v=(v=l.ownerDocument)&&v.defaultView||window;var _=v.getSelection&&v.getSelection();if(_&&_.rangeCount!==0){v=_.anchorNode;var P=_.anchorOffset,M=_.focusNode;_=_.focusOffset;try{v.nodeType,M.nodeType}catch{v=null;break e}var $=0,ee=-1,ie=-1,he=0,Ne=0,ke=l,we=null;t:for(;;){for(var Re;ke!==v||P!==0&&ke.nodeType!==3||(ee=$+P),ke!==M||_!==0&&ke.nodeType!==3||(ie=$+_),ke.nodeType===3&&($+=ke.nodeValue.length),(Re=ke.firstChild)!==null;)we=ke,ke=Re;for(;;){if(ke===l)break t;if(we===v&&++he===P&&(ee=$),we===M&&++Ne===_&&(ie=$),(Re=ke.nextSibling)!==null)break;ke=we,we=ke.parentNode}ke=Re}v=ee===-1||ie===-1?null:{start:ee,end:ie}}else v=null}v=v||{start:0,end:0}}else v=null;for(km={focusedElem:l,selectionRange:v},Ku=!1,Fe=u;Fe!==null;)if(u=Fe,l=u.child,(u.subtreeFlags&1028)!==0&&l!==null)l.return=u,Fe=l;else for(;Fe!==null;){u=Fe;try{var Le=u.alternate;if((u.flags&1024)!==0)switch(u.tag){case 0:case 11:case 15:break;case 1:if(Le!==null){var Ve=Le.memoizedProps,tn=Le.memoizedState,ce=u.stateNode,ae=ce.getSnapshotBeforeUpdate(u.elementType===u.type?Ve:Dr(u.type,Ve),tn);ce.__reactInternalSnapshotBeforeUpdate=ae}break;case 3:var de=u.stateNode.containerInfo;de.nodeType===1?de.textContent="":de.nodeType===9&&de.documentElement&&de.removeChild(de.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(r(163))}}catch(Ee){Xt(u,u.return,Ee)}if(l=u.sibling,l!==null){l.return=u.return,Fe=l;break}Fe=u.return}return Le=qw,qw=!1,Le}function uc(l,u,v){var _=u.updateQueue;if(_=_!==null?_.lastEffect:null,_!==null){var P=_=_.next;do{if((P.tag&l)===l){var M=P.destroy;P.destroy=void 0,M!==void 0&&dp(u,v,M)}P=P.next}while(P!==_)}}function Cd(l,u){if(u=u.updateQueue,u=u!==null?u.lastEffect:null,u!==null){var v=u=u.next;do{if((v.tag&l)===l){var _=v.create;v.destroy=_()}v=v.next}while(v!==u)}}function hp(l){var u=l.ref;if(u!==null){var v=l.stateNode;switch(l.tag){case 5:l=v;break;default:l=v}typeof u=="function"?u(l):u.current=l}}function zw(l){var u=l.alternate;u!==null&&(l.alternate=null,zw(u)),l.child=null,l.deletions=null,l.sibling=null,l.tag===5&&(u=l.stateNode,u!==null&&(delete u[Xr],delete u[Zl],delete u[Cm],delete u[rD],delete u[iD])),l.stateNode=null,l.return=null,l.dependencies=null,l.memoizedProps=null,l.memoizedState=null,l.pendingProps=null,l.stateNode=null,l.updateQueue=null}function Vw(l){return l.tag===5||l.tag===3||l.tag===4}function Uw(l){e:for(;;){for(;l.sibling===null;){if(l.return===null||Vw(l.return))return null;l=l.return}for(l.sibling.return=l.return,l=l.sibling;l.tag!==5&&l.tag!==6&&l.tag!==18;){if(l.flags&2||l.child===null||l.tag===4)continue e;l.child.return=l,l=l.child}if(!(l.flags&2))return l.stateNode}}function fp(l,u,v){var _=l.tag;if(_===5||_===6)l=l.stateNode,u?v.nodeType===8?v.parentNode.insertBefore(l,u):v.insertBefore(l,u):(v.nodeType===8?(u=v.parentNode,u.insertBefore(l,v)):(u=v,u.appendChild(l)),v=v._reactRootContainer,v!=null||u.onclick!==null||(u.onclick=sd));else if(_!==4&&(l=l.child,l!==null))for(fp(l,u,v),l=l.sibling;l!==null;)fp(l,u,v),l=l.sibling}function mp(l,u,v){var _=l.tag;if(_===5||_===6)l=l.stateNode,u?v.insertBefore(l,u):v.appendChild(l);else if(_!==4&&(l=l.child,l!==null))for(mp(l,u,v),l=l.sibling;l!==null;)mp(l,u,v),l=l.sibling}var bn=null,Ir=!1;function ms(l,u,v){for(v=v.child;v!==null;)$w(l,u,v),v=v.sibling}function $w(l,u,v){if(Yr&&typeof Yr.onCommitFiberUnmount=="function")try{Yr.onCommitFiberUnmount(zu,v)}catch{}switch(v.tag){case 5:Cn||wo(v,u);case 6:var _=bn,P=Ir;bn=null,ms(l,u,v),bn=_,Ir=P,bn!==null&&(Ir?(l=bn,v=v.stateNode,l.nodeType===8?l.parentNode.removeChild(v):l.removeChild(v)):bn.removeChild(v.stateNode));break;case 18:bn!==null&&(Ir?(l=bn,v=v.stateNode,l.nodeType===8?Am(l.parentNode,v):l.nodeType===1&&Am(l,v),Vl(l)):Am(bn,v.stateNode));break;case 4:_=bn,P=Ir,bn=v.stateNode.containerInfo,Ir=!0,ms(l,u,v),bn=_,Ir=P;break;case 0:case 11:case 14:case 15:if(!Cn&&(_=v.updateQueue,_!==null&&(_=_.lastEffect,_!==null))){P=_=_.next;do{var M=P,$=M.destroy;M=M.tag,$!==void 0&&((M&2)!==0||(M&4)!==0)&&dp(v,u,$),P=P.next}while(P!==_)}ms(l,u,v);break;case 1:if(!Cn&&(wo(v,u),_=v.stateNode,typeof _.componentWillUnmount=="function"))try{_.props=v.memoizedProps,_.state=v.memoizedState,_.componentWillUnmount()}catch(ee){Xt(v,u,ee)}ms(l,u,v);break;case 21:ms(l,u,v);break;case 22:v.mode&1?(Cn=(_=Cn)||v.memoizedState!==null,ms(l,u,v),Cn=_):ms(l,u,v);break;default:ms(l,u,v)}}function Hw(l){var u=l.updateQueue;if(u!==null){l.updateQueue=null;var v=l.stateNode;v===null&&(v=l.stateNode=new bD),u.forEach(function(_){var P=TD.bind(null,l,_);v.has(_)||(v.add(_),_.then(P,P))})}}function Rr(l,u){var v=u.deletions;if(v!==null)for(var _=0;_<v.length;_++){var P=v[_];try{var M=l,$=u,ee=$;e:for(;ee!==null;){switch(ee.tag){case 5:bn=ee.stateNode,Ir=!1;break e;case 3:bn=ee.stateNode.containerInfo,Ir=!0;break e;case 4:bn=ee.stateNode.containerInfo,Ir=!0;break e}ee=ee.return}if(bn===null)throw Error(r(160));$w(M,$,P),bn=null,Ir=!1;var ie=P.alternate;ie!==null&&(ie.return=null),P.return=null}catch(he){Xt(P,u,he)}}if(u.subtreeFlags&12854)for(u=u.child;u!==null;)Ww(u,l),u=u.sibling}function Ww(l,u){var v=l.alternate,_=l.flags;switch(l.tag){case 0:case 11:case 14:case 15:if(Rr(u,l),ei(l),_&4){try{uc(3,l,l.return),Cd(3,l)}catch(Ve){Xt(l,l.return,Ve)}try{uc(5,l,l.return)}catch(Ve){Xt(l,l.return,Ve)}}break;case 1:Rr(u,l),ei(l),_&512&&v!==null&&wo(v,v.return);break;case 5:if(Rr(u,l),ei(l),_&512&&v!==null&&wo(v,v.return),l.flags&32){var P=l.stateNode;try{$e(P,"")}catch(Ve){Xt(l,l.return,Ve)}}if(_&4&&(P=l.stateNode,P!=null)){var M=l.memoizedProps,$=v!==null?v.memoizedProps:M,ee=l.type,ie=l.updateQueue;if(l.updateQueue=null,ie!==null)try{ee==="input"&&M.type==="radio"&&M.name!=null&&ut(P,M),Qr(ee,$);var he=Qr(ee,M);for($=0;$<ie.length;$+=2){var Ne=ie[$],ke=ie[$+1];Ne==="style"?ts(P,ke):Ne==="dangerouslySetInnerHTML"?it(P,ke):Ne==="children"?$e(P,ke):w(P,Ne,ke,he)}switch(ee){case"input":nt(P,M);break;case"textarea":et(P,M);break;case"select":var we=P._wrapperState.wasMultiple;P._wrapperState.wasMultiple=!!M.multiple;var Re=M.value;Re!=null?Oe(P,!!M.multiple,Re,!1):we!==!!M.multiple&&(M.defaultValue!=null?Oe(P,!!M.multiple,M.defaultValue,!0):Oe(P,!!M.multiple,M.multiple?[]:"",!1))}P[Zl]=M}catch(Ve){Xt(l,l.return,Ve)}}break;case 6:if(Rr(u,l),ei(l),_&4){if(l.stateNode===null)throw Error(r(162));P=l.stateNode,M=l.memoizedProps;try{P.nodeValue=M}catch(Ve){Xt(l,l.return,Ve)}}break;case 3:if(Rr(u,l),ei(l),_&4&&v!==null&&v.memoizedState.isDehydrated)try{Vl(u.containerInfo)}catch(Ve){Xt(l,l.return,Ve)}break;case 4:Rr(u,l),ei(l);break;case 13:Rr(u,l),ei(l),P=l.child,P.flags&8192&&(M=P.memoizedState!==null,P.stateNode.isHidden=M,!M||P.alternate!==null&&P.alternate.memoizedState!==null||(xp=en())),_&4&&Hw(l);break;case 22:if(Ne=v!==null&&v.memoizedState!==null,l.mode&1?(Cn=(he=Cn)||Ne,Rr(u,l),Cn=he):Rr(u,l),ei(l),_&8192){if(he=l.memoizedState!==null,(l.stateNode.isHidden=he)&&!Ne&&(l.mode&1)!==0)for(Fe=l,Ne=l.child;Ne!==null;){for(ke=Fe=Ne;Fe!==null;){switch(we=Fe,Re=we.child,we.tag){case 0:case 11:case 14:case 15:uc(4,we,we.return);break;case 1:wo(we,we.return);var Le=we.stateNode;if(typeof Le.componentWillUnmount=="function"){_=we,v=we.return;try{u=_,Le.props=u.memoizedProps,Le.state=u.memoizedState,Le.componentWillUnmount()}catch(Ve){Xt(_,v,Ve)}}break;case 5:wo(we,we.return);break;case 22:if(we.memoizedState!==null){Qw(ke);continue}}Re!==null?(Re.return=we,Fe=Re):Qw(ke)}Ne=Ne.sibling}e:for(Ne=null,ke=l;;){if(ke.tag===5){if(Ne===null){Ne=ke;try{P=ke.stateNode,he?(M=P.style,typeof M.setProperty=="function"?M.setProperty("display","none","important"):M.display="none"):(ee=ke.stateNode,ie=ke.memoizedProps.style,$=ie!=null&&ie.hasOwnProperty("display")?ie.display:null,ee.style.display=Vn("display",$))}catch(Ve){Xt(l,l.return,Ve)}}}else if(ke.tag===6){if(Ne===null)try{ke.stateNode.nodeValue=he?"":ke.memoizedProps}catch(Ve){Xt(l,l.return,Ve)}}else if((ke.tag!==22&&ke.tag!==23||ke.memoizedState===null||ke===l)&&ke.child!==null){ke.child.return=ke,ke=ke.child;continue}if(ke===l)break e;for(;ke.sibling===null;){if(ke.return===null||ke.return===l)break e;Ne===ke&&(Ne=null),ke=ke.return}Ne===ke&&(Ne=null),ke.sibling.return=ke.return,ke=ke.sibling}}break;case 19:Rr(u,l),ei(l),_&4&&Hw(l);break;case 21:break;default:Rr(u,l),ei(l)}}function ei(l){var u=l.flags;if(u&2){try{e:{for(var v=l.return;v!==null;){if(Vw(v)){var _=v;break e}v=v.return}throw Error(r(160))}switch(_.tag){case 5:var P=_.stateNode;_.flags&32&&($e(P,""),_.flags&=-33);var M=Uw(l);mp(l,M,P);break;case 3:case 4:var $=_.stateNode.containerInfo,ee=Uw(l);fp(l,ee,$);break;default:throw Error(r(161))}}catch(ie){Xt(l,l.return,ie)}l.flags&=-3}u&4096&&(l.flags&=-4097)}function wD(l,u,v){Fe=l,Kw(l)}function Kw(l,u,v){for(var _=(l.mode&1)!==0;Fe!==null;){var P=Fe,M=P.child;if(P.tag===22&&_){var $=P.memoizedState!==null||Ad;if(!$){var ee=P.alternate,ie=ee!==null&&ee.memoizedState!==null||Cn;ee=Ad;var he=Cn;if(Ad=$,(Cn=ie)&&!he)for(Fe=P;Fe!==null;)$=Fe,ie=$.child,$.tag===22&&$.memoizedState!==null?Yw(P):ie!==null?(ie.return=$,Fe=ie):Yw(P);for(;M!==null;)Fe=M,Kw(M),M=M.sibling;Fe=P,Ad=ee,Cn=he}Gw(l)}else(P.subtreeFlags&8772)!==0&&M!==null?(M.return=P,Fe=M):Gw(l)}}function Gw(l){for(;Fe!==null;){var u=Fe;if((u.flags&8772)!==0){var v=u.alternate;try{if((u.flags&8772)!==0)switch(u.tag){case 0:case 11:case 15:Cn||Cd(5,u);break;case 1:var _=u.stateNode;if(u.flags&4&&!Cn)if(v===null)_.componentDidMount();else{var P=u.elementType===u.type?v.memoizedProps:Dr(u.type,v.memoizedProps);_.componentDidUpdate(P,v.memoizedState,_.__reactInternalSnapshotBeforeUpdate)}var M=u.updateQueue;M!==null&&Qj(u,M,_);break;case 3:var $=u.updateQueue;if($!==null){if(v=null,u.child!==null)switch(u.child.tag){case 5:v=u.child.stateNode;break;case 1:v=u.child.stateNode}Qj(u,$,v)}break;case 5:var ee=u.stateNode;if(v===null&&u.flags&4){v=ee;var ie=u.memoizedProps;switch(u.type){case"button":case"input":case"select":case"textarea":ie.autoFocus&&v.focus();break;case"img":ie.src&&(v.src=ie.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(u.memoizedState===null){var he=u.alternate;if(he!==null){var Ne=he.memoizedState;if(Ne!==null){var ke=Ne.dehydrated;ke!==null&&Vl(ke)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(r(163))}Cn||u.flags&512&&hp(u)}catch(we){Xt(u,u.return,we)}}if(u===l){Fe=null;break}if(v=u.sibling,v!==null){v.return=u.return,Fe=v;break}Fe=u.return}}function Qw(l){for(;Fe!==null;){var u=Fe;if(u===l){Fe=null;break}var v=u.sibling;if(v!==null){v.return=u.return,Fe=v;break}Fe=u.return}}function Yw(l){for(;Fe!==null;){var u=Fe;try{switch(u.tag){case 0:case 11:case 15:var v=u.return;try{Cd(4,u)}catch(ie){Xt(u,v,ie)}break;case 1:var _=u.stateNode;if(typeof _.componentDidMount=="function"){var P=u.return;try{_.componentDidMount()}catch(ie){Xt(u,P,ie)}}var M=u.return;try{hp(u)}catch(ie){Xt(u,M,ie)}break;case 5:var $=u.return;try{hp(u)}catch(ie){Xt(u,$,ie)}}}catch(ie){Xt(u,u.return,ie)}if(u===l){Fe=null;break}var ee=u.sibling;if(ee!==null){ee.return=u.return,Fe=ee;break}Fe=u.return}}var ND=Math.ceil,Ed=k.ReactCurrentDispatcher,pp=k.ReactCurrentOwner,jr=k.ReactCurrentBatchConfig,xt=0,pn=null,an=null,jn=0,lr=0,No=cs(0),dn=0,dc=null,ha=0,Td=0,gp=0,hc=null,Wn=null,xp=0,ko=1/0,Oi=null,Pd=!1,yp=null,ps=null,Od=!1,gs=null,Dd=0,fc=0,vp=null,Id=-1,Rd=0;function Mn(){return(xt&6)!==0?en():Id!==-1?Id:Id=en()}function xs(l){return(l.mode&1)===0?1:(xt&2)!==0&&jn!==0?jn&-jn:aD.transition!==null?(Rd===0&&(Rd=Ub()),Rd):(l=Ct,l!==0||(l=window.event,l=l===void 0?16:Jb(l.type)),l)}function Fr(l,u,v,_){if(50<fc)throw fc=0,vp=null,Error(r(185));Ml(l,v,_),((xt&2)===0||l!==pn)&&(l===pn&&((xt&2)===0&&(Td|=v),dn===4&&ys(l,jn)),Kn(l,_),v===1&&xt===0&&(u.mode&1)===0&&(ko=en()+500,cd&&ds()))}function Kn(l,u){var v=l.callbackNode;aO(l,u);var _=$u(l,l===pn?jn:0);if(_===0)v!==null&&qb(v),l.callbackNode=null,l.callbackPriority=0;else if(u=_&-_,l.callbackPriority!==u){if(v!=null&&qb(v),u===1)l.tag===0?sD(Jw.bind(null,l)):Mj(Jw.bind(null,l)),tD(function(){(xt&6)===0&&ds()}),v=null;else{switch($b(_)){case 1:v=Jf;break;case 4:v=zb;break;case 16:v=qu;break;case 536870912:v=Vb;break;default:v=qu}v=a1(v,Xw.bind(null,l))}l.callbackPriority=u,l.callbackNode=v}}function Xw(l,u){if(Id=-1,Rd=0,(xt&6)!==0)throw Error(r(327));var v=l.callbackNode;if(_o()&&l.callbackNode!==v)return null;var _=$u(l,l===pn?jn:0);if(_===0)return null;if((_&30)!==0||(_&l.expiredLanes)!==0||u)u=Fd(l,_);else{u=_;var P=xt;xt|=2;var M=e1();(pn!==l||jn!==u)&&(Oi=null,ko=en()+500,ma(l,u));do try{SD();break}catch(ee){Zw(l,ee)}while(!0);Mm(),Ed.current=M,xt=P,an!==null?u=0:(pn=null,jn=0,u=dn)}if(u!==0){if(u===2&&(P=Zf(l),P!==0&&(_=P,u=bp(l,P))),u===1)throw v=dc,ma(l,0),ys(l,_),Kn(l,en()),v;if(u===6)ys(l,_);else{if(P=l.current.alternate,(_&30)===0&&!kD(P)&&(u=Fd(l,_),u===2&&(M=Zf(l),M!==0&&(_=M,u=bp(l,M))),u===1))throw v=dc,ma(l,0),ys(l,_),Kn(l,en()),v;switch(l.finishedWork=P,l.finishedLanes=_,u){case 0:case 1:throw Error(r(345));case 2:pa(l,Wn,Oi);break;case 3:if(ys(l,_),(_&130023424)===_&&(u=xp+500-en(),10<u)){if($u(l,0)!==0)break;if(P=l.suspendedLanes,(P&_)!==_){Mn(),l.pingedLanes|=l.suspendedLanes&P;break}l.timeoutHandle=Sm(pa.bind(null,l,Wn,Oi),u);break}pa(l,Wn,Oi);break;case 4:if(ys(l,_),(_&4194240)===_)break;for(u=l.eventTimes,P=-1;0<_;){var $=31-Tr(_);M=1<<$,$=u[$],$>P&&(P=$),_&=~M}if(_=P,_=en()-_,_=(120>_?120:480>_?480:1080>_?1080:1920>_?1920:3e3>_?3e3:4320>_?4320:1960*ND(_/1960))-_,10<_){l.timeoutHandle=Sm(pa.bind(null,l,Wn,Oi),_);break}pa(l,Wn,Oi);break;case 5:pa(l,Wn,Oi);break;default:throw Error(r(329))}}}return Kn(l,en()),l.callbackNode===v?Xw.bind(null,l):null}function bp(l,u){var v=hc;return l.current.memoizedState.isDehydrated&&(ma(l,u).flags|=256),l=Fd(l,u),l!==2&&(u=Wn,Wn=v,u!==null&&jp(u)),l}function jp(l){Wn===null?Wn=l:Wn.push.apply(Wn,l)}function kD(l){for(var u=l;;){if(u.flags&16384){var v=u.updateQueue;if(v!==null&&(v=v.stores,v!==null))for(var _=0;_<v.length;_++){var P=v[_],M=P.getSnapshot;P=P.value;try{if(!Pr(M(),P))return!1}catch{return!1}}}if(v=u.child,u.subtreeFlags&16384&&v!==null)v.return=u,u=v;else{if(u===l)break;for(;u.sibling===null;){if(u.return===null||u.return===l)return!0;u=u.return}u.sibling.return=u.return,u=u.sibling}}return!0}function ys(l,u){for(u&=~gp,u&=~Td,l.suspendedLanes|=u,l.pingedLanes&=~u,l=l.expirationTimes;0<u;){var v=31-Tr(u),_=1<<v;l[v]=-1,u&=~_}}function Jw(l){if((xt&6)!==0)throw Error(r(327));_o();var u=$u(l,0);if((u&1)===0)return Kn(l,en()),null;var v=Fd(l,u);if(l.tag!==0&&v===2){var _=Zf(l);_!==0&&(u=_,v=bp(l,_))}if(v===1)throw v=dc,ma(l,0),ys(l,u),Kn(l,en()),v;if(v===6)throw Error(r(345));return l.finishedWork=l.current.alternate,l.finishedLanes=u,pa(l,Wn,Oi),Kn(l,en()),null}function wp(l,u){var v=xt;xt|=1;try{return l(u)}finally{xt=v,xt===0&&(ko=en()+500,cd&&ds())}}function fa(l){gs!==null&&gs.tag===0&&(xt&6)===0&&_o();var u=xt;xt|=1;var v=jr.transition,_=Ct;try{if(jr.transition=null,Ct=1,l)return l()}finally{Ct=_,jr.transition=v,xt=u,(xt&6)===0&&ds()}}function Np(){lr=No.current,Lt(No)}function ma(l,u){l.finishedWork=null,l.finishedLanes=0;var v=l.timeoutHandle;if(v!==-1&&(l.timeoutHandle=-1,eD(v)),an!==null)for(v=an.return;v!==null;){var _=v;switch(Om(_),_.tag){case 1:_=_.type.childContextTypes,_!=null&&od();break;case 3:bo(),Lt(Un),Lt(_n),Hm();break;case 5:Um(_);break;case 4:bo();break;case 13:Lt($t);break;case 19:Lt($t);break;case 10:Lm(_.type._context);break;case 22:case 23:Np()}v=v.return}if(pn=l,an=l=vs(l.current,null),jn=lr=u,dn=0,dc=null,gp=Td=ha=0,Wn=hc=null,ca!==null){for(u=0;u<ca.length;u++)if(v=ca[u],_=v.interleaved,_!==null){v.interleaved=null;var P=_.next,M=v.pending;if(M!==null){var $=M.next;M.next=P,_.next=$}v.pending=_}ca=null}return l}function Zw(l,u){do{var v=an;try{if(Mm(),vd.current=Nd,bd){for(var _=Ht.memoizedState;_!==null;){var P=_.queue;P!==null&&(P.pending=null),_=_.next}bd=!1}if(da=0,mn=un=Ht=null,sc=!1,ac=0,pp.current=null,v===null||v.return===null){dn=1,dc=u,an=null;break}e:{var M=l,$=v.return,ee=v,ie=u;if(u=jn,ee.flags|=32768,ie!==null&&typeof ie=="object"&&typeof ie.then=="function"){var he=ie,Ne=ee,ke=Ne.tag;if((Ne.mode&1)===0&&(ke===0||ke===11||ke===15)){var we=Ne.alternate;we?(Ne.updateQueue=we.updateQueue,Ne.memoizedState=we.memoizedState,Ne.lanes=we.lanes):(Ne.updateQueue=null,Ne.memoizedState=null)}var Re=kw($);if(Re!==null){Re.flags&=-257,_w(Re,$,ee,M,u),Re.mode&1&&Nw(M,he,u),u=Re,ie=he;var Le=u.updateQueue;if(Le===null){var Ve=new Set;Ve.add(ie),u.updateQueue=Ve}else Le.add(ie);break e}else{if((u&1)===0){Nw(M,he,u),kp();break e}ie=Error(r(426))}}else if(qt&&ee.mode&1){var tn=kw($);if(tn!==null){(tn.flags&65536)===0&&(tn.flags|=256),_w(tn,$,ee,M,u),Rm(jo(ie,ee));break e}}M=ie=jo(ie,ee),dn!==4&&(dn=2),hc===null?hc=[M]:hc.push(M),M=$;do{switch(M.tag){case 3:M.flags|=65536,u&=-u,M.lanes|=u;var ce=jw(M,ie,u);Gj(M,ce);break e;case 1:ee=ie;var ae=M.type,de=M.stateNode;if((M.flags&128)===0&&(typeof ae.getDerivedStateFromError=="function"||de!==null&&typeof de.componentDidCatch=="function"&&(ps===null||!ps.has(de)))){M.flags|=65536,u&=-u,M.lanes|=u;var Ee=ww(M,ee,u);Gj(M,Ee);break e}}M=M.return}while(M!==null)}n1(v)}catch(Ue){u=Ue,an===v&&v!==null&&(an=v=v.return);continue}break}while(!0)}function e1(){var l=Ed.current;return Ed.current=Nd,l===null?Nd:l}function kp(){(dn===0||dn===3||dn===2)&&(dn=4),pn===null||(ha&268435455)===0&&(Td&268435455)===0||ys(pn,jn)}function Fd(l,u){var v=xt;xt|=2;var _=e1();(pn!==l||jn!==u)&&(Oi=null,ma(l,u));do try{_D();break}catch(P){Zw(l,P)}while(!0);if(Mm(),xt=v,Ed.current=_,an!==null)throw Error(r(261));return pn=null,jn=0,dn}function _D(){for(;an!==null;)t1(an)}function SD(){for(;an!==null&&!XP();)t1(an)}function t1(l){var u=s1(l.alternate,l,lr);l.memoizedProps=l.pendingProps,u===null?n1(l):an=u,pp.current=null}function n1(l){var u=l;do{var v=u.alternate;if(l=u.return,(u.flags&32768)===0){if(v=yD(v,u,lr),v!==null){an=v;return}}else{if(v=vD(v,u),v!==null){v.flags&=32767,an=v;return}if(l!==null)l.flags|=32768,l.subtreeFlags=0,l.deletions=null;else{dn=6,an=null;return}}if(u=u.sibling,u!==null){an=u;return}an=u=l}while(u!==null);dn===0&&(dn=5)}function pa(l,u,v){var _=Ct,P=jr.transition;try{jr.transition=null,Ct=1,AD(l,u,v,_)}finally{jr.transition=P,Ct=_}return null}function AD(l,u,v,_){do _o();while(gs!==null);if((xt&6)!==0)throw Error(r(327));v=l.finishedWork;var P=l.finishedLanes;if(v===null)return null;if(l.finishedWork=null,l.finishedLanes=0,v===l.current)throw Error(r(177));l.callbackNode=null,l.callbackPriority=0;var M=v.lanes|v.childLanes;if(oO(l,M),l===pn&&(an=pn=null,jn=0),(v.subtreeFlags&2064)===0&&(v.flags&2064)===0||Od||(Od=!0,a1(qu,function(){return _o(),null})),M=(v.flags&15990)!==0,(v.subtreeFlags&15990)!==0||M){M=jr.transition,jr.transition=null;var $=Ct;Ct=1;var ee=xt;xt|=4,pp.current=null,jD(l,v),Ww(v,l),KO(km),Ku=!!Nm,km=Nm=null,l.current=v,wD(v),JP(),xt=ee,Ct=$,jr.transition=M}else l.current=v;if(Od&&(Od=!1,gs=l,Dd=P),M=l.pendingLanes,M===0&&(ps=null),tO(v.stateNode),Kn(l,en()),u!==null)for(_=l.onRecoverableError,v=0;v<u.length;v++)P=u[v],_(P.value,{componentStack:P.stack,digest:P.digest});if(Pd)throw Pd=!1,l=yp,yp=null,l;return(Dd&1)!==0&&l.tag!==0&&_o(),M=l.pendingLanes,(M&1)!==0?l===vp?fc++:(fc=0,vp=l):fc=0,ds(),null}function _o(){if(gs!==null){var l=$b(Dd),u=jr.transition,v=Ct;try{if(jr.transition=null,Ct=16>l?16:l,gs===null)var _=!1;else{if(l=gs,gs=null,Dd=0,(xt&6)!==0)throw Error(r(331));var P=xt;for(xt|=4,Fe=l.current;Fe!==null;){var M=Fe,$=M.child;if((Fe.flags&16)!==0){var ee=M.deletions;if(ee!==null){for(var ie=0;ie<ee.length;ie++){var he=ee[ie];for(Fe=he;Fe!==null;){var Ne=Fe;switch(Ne.tag){case 0:case 11:case 15:uc(8,Ne,M)}var ke=Ne.child;if(ke!==null)ke.return=Ne,Fe=ke;else for(;Fe!==null;){Ne=Fe;var we=Ne.sibling,Re=Ne.return;if(zw(Ne),Ne===he){Fe=null;break}if(we!==null){we.return=Re,Fe=we;break}Fe=Re}}}var Le=M.alternate;if(Le!==null){var Ve=Le.child;if(Ve!==null){Le.child=null;do{var tn=Ve.sibling;Ve.sibling=null,Ve=tn}while(Ve!==null)}}Fe=M}}if((M.subtreeFlags&2064)!==0&&$!==null)$.return=M,Fe=$;else e:for(;Fe!==null;){if(M=Fe,(M.flags&2048)!==0)switch(M.tag){case 0:case 11:case 15:uc(9,M,M.return)}var ce=M.sibling;if(ce!==null){ce.return=M.return,Fe=ce;break e}Fe=M.return}}var ae=l.current;for(Fe=ae;Fe!==null;){$=Fe;var de=$.child;if(($.subtreeFlags&2064)!==0&&de!==null)de.return=$,Fe=de;else e:for($=ae;Fe!==null;){if(ee=Fe,(ee.flags&2048)!==0)try{switch(ee.tag){case 0:case 11:case 15:Cd(9,ee)}}catch(Ue){Xt(ee,ee.return,Ue)}if(ee===$){Fe=null;break e}var Ee=ee.sibling;if(Ee!==null){Ee.return=ee.return,Fe=Ee;break e}Fe=ee.return}}if(xt=P,ds(),Yr&&typeof Yr.onPostCommitFiberRoot=="function")try{Yr.onPostCommitFiberRoot(zu,l)}catch{}_=!0}return _}finally{Ct=v,jr.transition=u}}return!1}function r1(l,u,v){u=jo(v,u),u=jw(l,u,1),l=fs(l,u,1),u=Mn(),l!==null&&(Ml(l,1,u),Kn(l,u))}function Xt(l,u,v){if(l.tag===3)r1(l,l,v);else for(;u!==null;){if(u.tag===3){r1(u,l,v);break}else if(u.tag===1){var _=u.stateNode;if(typeof u.type.getDerivedStateFromError=="function"||typeof _.componentDidCatch=="function"&&(ps===null||!ps.has(_))){l=jo(v,l),l=ww(u,l,1),u=fs(u,l,1),l=Mn(),u!==null&&(Ml(u,1,l),Kn(u,l));break}}u=u.return}}function CD(l,u,v){var _=l.pingCache;_!==null&&_.delete(u),u=Mn(),l.pingedLanes|=l.suspendedLanes&v,pn===l&&(jn&v)===v&&(dn===4||dn===3&&(jn&130023424)===jn&&500>en()-xp?ma(l,0):gp|=v),Kn(l,u)}function i1(l,u){u===0&&((l.mode&1)===0?u=1:(u=Uu,Uu<<=1,(Uu&130023424)===0&&(Uu=4194304)));var v=Mn();l=Ei(l,u),l!==null&&(Ml(l,u,v),Kn(l,v))}function ED(l){var u=l.memoizedState,v=0;u!==null&&(v=u.retryLane),i1(l,v)}function TD(l,u){var v=0;switch(l.tag){case 13:var _=l.stateNode,P=l.memoizedState;P!==null&&(v=P.retryLane);break;case 19:_=l.stateNode;break;default:throw Error(r(314))}_!==null&&_.delete(u),i1(l,v)}var s1;s1=function(l,u,v){if(l!==null)if(l.memoizedProps!==u.pendingProps||Un.current)Hn=!0;else{if((l.lanes&v)===0&&(u.flags&128)===0)return Hn=!1,xD(l,u,v);Hn=(l.flags&131072)!==0}else Hn=!1,qt&&(u.flags&1048576)!==0&&Lj(u,dd,u.index);switch(u.lanes=0,u.tag){case 2:var _=u.type;Sd(l,u),l=u.pendingProps;var P=fo(u,_n.current);vo(u,v),P=Gm(null,u,_,l,P,v);var M=Qm();return u.flags|=1,typeof P=="object"&&P!==null&&typeof P.render=="function"&&P.$$typeof===void 0?(u.tag=1,u.memoizedState=null,u.updateQueue=null,$n(_)?(M=!0,ld(u)):M=!1,u.memoizedState=P.state!==null&&P.state!==void 0?P.state:null,zm(u),P.updater=kd,u.stateNode=P,P._reactInternals=u,tp(u,_,l,v),u=sp(null,u,_,!0,M,v)):(u.tag=0,qt&&M&&Pm(u),Fn(null,u,P,v),u=u.child),u;case 16:_=u.elementType;e:{switch(Sd(l,u),l=u.pendingProps,P=_._init,_=P(_._payload),u.type=_,P=u.tag=OD(_),l=Dr(_,l),P){case 0:u=ip(null,u,_,l,v);break e;case 1:u=Pw(null,u,_,l,v);break e;case 11:u=Sw(null,u,_,l,v);break e;case 14:u=Aw(null,u,_,Dr(_.type,l),v);break e}throw Error(r(306,_,""))}return u;case 0:return _=u.type,P=u.pendingProps,P=u.elementType===_?P:Dr(_,P),ip(l,u,_,P,v);case 1:return _=u.type,P=u.pendingProps,P=u.elementType===_?P:Dr(_,P),Pw(l,u,_,P,v);case 3:e:{if(Ow(u),l===null)throw Error(r(387));_=u.pendingProps,M=u.memoizedState,P=M.element,Kj(l,u),xd(u,_,null,v);var $=u.memoizedState;if(_=$.element,M.isDehydrated)if(M={element:_,isDehydrated:!1,cache:$.cache,pendingSuspenseBoundaries:$.pendingSuspenseBoundaries,transitions:$.transitions},u.updateQueue.baseState=M,u.memoizedState=M,u.flags&256){P=jo(Error(r(423)),u),u=Dw(l,u,_,v,P);break e}else if(_!==P){P=jo(Error(r(424)),u),u=Dw(l,u,_,v,P);break e}else for(or=ls(u.stateNode.containerInfo.firstChild),ar=u,qt=!0,Or=null,v=Hj(u,null,_,v),u.child=v;v;)v.flags=v.flags&-3|4096,v=v.sibling;else{if(go(),_===P){u=Pi(l,u,v);break e}Fn(l,u,_,v)}u=u.child}return u;case 5:return Yj(u),l===null&&Im(u),_=u.type,P=u.pendingProps,M=l!==null?l.memoizedProps:null,$=P.children,_m(_,P)?$=null:M!==null&&_m(_,M)&&(u.flags|=32),Tw(l,u),Fn(l,u,$,v),u.child;case 6:return l===null&&Im(u),null;case 13:return Iw(l,u,v);case 4:return Vm(u,u.stateNode.containerInfo),_=u.pendingProps,l===null?u.child=xo(u,null,_,v):Fn(l,u,_,v),u.child;case 11:return _=u.type,P=u.pendingProps,P=u.elementType===_?P:Dr(_,P),Sw(l,u,_,P,v);case 7:return Fn(l,u,u.pendingProps,v),u.child;case 8:return Fn(l,u,u.pendingProps.children,v),u.child;case 12:return Fn(l,u,u.pendingProps.children,v),u.child;case 10:e:{if(_=u.type._context,P=u.pendingProps,M=u.memoizedProps,$=P.value,Dt(md,_._currentValue),_._currentValue=$,M!==null)if(Pr(M.value,$)){if(M.children===P.children&&!Un.current){u=Pi(l,u,v);break e}}else for(M=u.child,M!==null&&(M.return=u);M!==null;){var ee=M.dependencies;if(ee!==null){$=M.child;for(var ie=ee.firstContext;ie!==null;){if(ie.context===_){if(M.tag===1){ie=Ti(-1,v&-v),ie.tag=2;var he=M.updateQueue;if(he!==null){he=he.shared;var Ne=he.pending;Ne===null?ie.next=ie:(ie.next=Ne.next,Ne.next=ie),he.pending=ie}}M.lanes|=v,ie=M.alternate,ie!==null&&(ie.lanes|=v),Bm(M.return,v,u),ee.lanes|=v;break}ie=ie.next}}else if(M.tag===10)$=M.type===u.type?null:M.child;else if(M.tag===18){if($=M.return,$===null)throw Error(r(341));$.lanes|=v,ee=$.alternate,ee!==null&&(ee.lanes|=v),Bm($,v,u),$=M.sibling}else $=M.child;if($!==null)$.return=M;else for($=M;$!==null;){if($===u){$=null;break}if(M=$.sibling,M!==null){M.return=$.return,$=M;break}$=$.return}M=$}Fn(l,u,P.children,v),u=u.child}return u;case 9:return P=u.type,_=u.pendingProps.children,vo(u,v),P=vr(P),_=_(P),u.flags|=1,Fn(l,u,_,v),u.child;case 14:return _=u.type,P=Dr(_,u.pendingProps),P=Dr(_.type,P),Aw(l,u,_,P,v);case 15:return Cw(l,u,u.type,u.pendingProps,v);case 17:return _=u.type,P=u.pendingProps,P=u.elementType===_?P:Dr(_,P),Sd(l,u),u.tag=1,$n(_)?(l=!0,ld(u)):l=!1,vo(u,v),vw(u,_,P),tp(u,_,P,v),sp(null,u,_,!0,l,v);case 19:return Fw(l,u,v);case 22:return Ew(l,u,v)}throw Error(r(156,u.tag))};function a1(l,u){return Bb(l,u)}function PD(l,u,v,_){this.tag=l,this.key=v,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=u,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=_,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function wr(l,u,v,_){return new PD(l,u,v,_)}function _p(l){return l=l.prototype,!(!l||!l.isReactComponent)}function OD(l){if(typeof l=="function")return _p(l)?1:0;if(l!=null){if(l=l.$$typeof,l===D)return 11;if(l===U)return 14}return 2}function vs(l,u){var v=l.alternate;return v===null?(v=wr(l.tag,u,l.key,l.mode),v.elementType=l.elementType,v.type=l.type,v.stateNode=l.stateNode,v.alternate=l,l.alternate=v):(v.pendingProps=u,v.type=l.type,v.flags=0,v.subtreeFlags=0,v.deletions=null),v.flags=l.flags&14680064,v.childLanes=l.childLanes,v.lanes=l.lanes,v.child=l.child,v.memoizedProps=l.memoizedProps,v.memoizedState=l.memoizedState,v.updateQueue=l.updateQueue,u=l.dependencies,v.dependencies=u===null?null:{lanes:u.lanes,firstContext:u.firstContext},v.sibling=l.sibling,v.index=l.index,v.ref=l.ref,v}function Md(l,u,v,_,P,M){var $=2;if(_=l,typeof l=="function")_p(l)&&($=1);else if(typeof l=="string")$=5;else e:switch(l){case E:return ga(v.children,P,M,u);case C:$=8,P|=8;break;case B:return l=wr(12,v,u,P|2),l.elementType=B,l.lanes=M,l;case q:return l=wr(13,v,u,P),l.elementType=q,l.lanes=M,l;case z:return l=wr(19,v,u,P),l.elementType=z,l.lanes=M,l;case H:return Ld(v,P,M,u);default:if(typeof l=="object"&&l!==null)switch(l.$$typeof){case I:$=10;break e;case R:$=9;break e;case D:$=11;break e;case U:$=14;break e;case Y:$=16,_=null;break e}throw Error(r(130,l==null?l:typeof l,""))}return u=wr($,v,u,P),u.elementType=l,u.type=_,u.lanes=M,u}function ga(l,u,v,_){return l=wr(7,l,_,u),l.lanes=v,l}function Ld(l,u,v,_){return l=wr(22,l,_,u),l.elementType=H,l.lanes=v,l.stateNode={isHidden:!1},l}function Sp(l,u,v){return l=wr(6,l,null,u),l.lanes=v,l}function Ap(l,u,v){return u=wr(4,l.children!==null?l.children:[],l.key,u),u.lanes=v,u.stateNode={containerInfo:l.containerInfo,pendingChildren:null,implementation:l.implementation},u}function DD(l,u,v,_,P){this.tag=u,this.containerInfo=l,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=em(0),this.expirationTimes=em(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=em(0),this.identifierPrefix=_,this.onRecoverableError=P,this.mutableSourceEagerHydrationData=null}function Cp(l,u,v,_,P,M,$,ee,ie){return l=new DD(l,u,v,ee,ie),u===1?(u=1,M===!0&&(u|=8)):u=0,M=wr(3,null,null,u),l.current=M,M.stateNode=l,M.memoizedState={element:_,isDehydrated:v,cache:null,transitions:null,pendingSuspenseBoundaries:null},zm(M),l}function ID(l,u,v){var _=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:S,key:_==null?null:""+_,children:l,containerInfo:u,implementation:v}}function o1(l){if(!l)return us;l=l._reactInternals;e:{if(ia(l)!==l||l.tag!==1)throw Error(r(170));var u=l;do{switch(u.tag){case 3:u=u.stateNode.context;break e;case 1:if($n(u.type)){u=u.stateNode.__reactInternalMemoizedMergedChildContext;break e}}u=u.return}while(u!==null);throw Error(r(171))}if(l.tag===1){var v=l.type;if($n(v))return Rj(l,v,u)}return u}function l1(l,u,v,_,P,M,$,ee,ie){return l=Cp(v,_,!0,l,P,M,$,ee,ie),l.context=o1(null),v=l.current,_=Mn(),P=xs(v),M=Ti(_,P),M.callback=u??null,fs(v,M,P),l.current.lanes=P,Ml(l,P,_),Kn(l,_),l}function Bd(l,u,v,_){var P=u.current,M=Mn(),$=xs(P);return v=o1(v),u.context===null?u.context=v:u.pendingContext=v,u=Ti(M,$),u.payload={element:l},_=_===void 0?null:_,_!==null&&(u.callback=_),l=fs(P,u,$),l!==null&&(Fr(l,P,$,M),gd(l,P,$)),$}function qd(l){if(l=l.current,!l.child)return null;switch(l.child.tag){case 5:return l.child.stateNode;default:return l.child.stateNode}}function c1(l,u){if(l=l.memoizedState,l!==null&&l.dehydrated!==null){var v=l.retryLane;l.retryLane=v!==0&&v<u?v:u}}function Ep(l,u){c1(l,u),(l=l.alternate)&&c1(l,u)}function RD(){return null}var u1=typeof reportError=="function"?reportError:function(l){console.error(l)};function Tp(l){this._internalRoot=l}zd.prototype.render=Tp.prototype.render=function(l){var u=this._internalRoot;if(u===null)throw Error(r(409));Bd(l,u,null,null)},zd.prototype.unmount=Tp.prototype.unmount=function(){var l=this._internalRoot;if(l!==null){this._internalRoot=null;var u=l.containerInfo;fa(function(){Bd(null,l,null,null)}),u[_i]=null}};function zd(l){this._internalRoot=l}zd.prototype.unstable_scheduleHydration=function(l){if(l){var u=Kb();l={blockedOn:null,target:l,priority:u};for(var v=0;v<ss.length&&u!==0&&u<ss[v].priority;v++);ss.splice(v,0,l),v===0&&Yb(l)}};function Pp(l){return!(!l||l.nodeType!==1&&l.nodeType!==9&&l.nodeType!==11)}function Vd(l){return!(!l||l.nodeType!==1&&l.nodeType!==9&&l.nodeType!==11&&(l.nodeType!==8||l.nodeValue!==" react-mount-point-unstable "))}function d1(){}function FD(l,u,v,_,P){if(P){if(typeof _=="function"){var M=_;_=function(){var he=qd($);M.call(he)}}var $=l1(u,_,l,0,null,!1,!1,"",d1);return l._reactRootContainer=$,l[_i]=$.current,Xl(l.nodeType===8?l.parentNode:l),fa(),$}for(;P=l.lastChild;)l.removeChild(P);if(typeof _=="function"){var ee=_;_=function(){var he=qd(ie);ee.call(he)}}var ie=Cp(l,0,!1,null,null,!1,!1,"",d1);return l._reactRootContainer=ie,l[_i]=ie.current,Xl(l.nodeType===8?l.parentNode:l),fa(function(){Bd(u,ie,v,_)}),ie}function Ud(l,u,v,_,P){var M=v._reactRootContainer;if(M){var $=M;if(typeof P=="function"){var ee=P;P=function(){var ie=qd($);ee.call(ie)}}Bd(u,$,l,P)}else $=FD(v,u,l,P,_);return qd($)}Hb=function(l){switch(l.tag){case 3:var u=l.stateNode;if(u.current.memoizedState.isDehydrated){var v=Fl(u.pendingLanes);v!==0&&(tm(u,v|1),Kn(u,en()),(xt&6)===0&&(ko=en()+500,ds()))}break;case 13:fa(function(){var _=Ei(l,1);if(_!==null){var P=Mn();Fr(_,l,1,P)}}),Ep(l,1)}},nm=function(l){if(l.tag===13){var u=Ei(l,134217728);if(u!==null){var v=Mn();Fr(u,l,134217728,v)}Ep(l,134217728)}},Wb=function(l){if(l.tag===13){var u=xs(l),v=Ei(l,u);if(v!==null){var _=Mn();Fr(v,l,u,_)}Ep(l,u)}},Kb=function(){return Ct},Gb=function(l,u){var v=Ct;try{return Ct=l,u()}finally{Ct=v}},Gf=function(l,u,v){switch(u){case"input":if(nt(l,v),u=v.name,v.type==="radio"&&u!=null){for(v=l;v.parentNode;)v=v.parentNode;for(v=v.querySelectorAll("input[name="+JSON.stringify(""+u)+'][type="radio"]'),u=0;u<v.length;u++){var _=v[u];if(_!==l&&_.form===l.form){var P=ad(_);if(!P)throw Error(r(90));be(_),nt(_,P)}}}break;case"textarea":et(l,v);break;case"select":u=v.value,u!=null&&Oe(l,!!v.multiple,u,!1)}},Ob=wp,Db=fa;var MD={usingClientEntryPoint:!1,Events:[ec,uo,ad,Tb,Pb,wp]},mc={findFiberByHostInstance:sa,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},LD={bundleType:mc.bundleType,version:mc.version,rendererPackageName:mc.rendererPackageName,rendererConfig:mc.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:k.ReactCurrentDispatcher,findHostInstanceByFiber:function(l){return l=Mb(l),l===null?null:l.stateNode},findFiberByHostInstance:mc.findFiberByHostInstance||RD,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var $d=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!$d.isDisabled&&$d.supportsFiber)try{zu=$d.inject(LD),Yr=$d}catch{}}return Gn.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=MD,Gn.createPortal=function(l,u){var v=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Pp(u))throw Error(r(200));return ID(l,u,null,v)},Gn.createRoot=function(l,u){if(!Pp(l))throw Error(r(299));var v=!1,_="",P=u1;return u!=null&&(u.unstable_strictMode===!0&&(v=!0),u.identifierPrefix!==void 0&&(_=u.identifierPrefix),u.onRecoverableError!==void 0&&(P=u.onRecoverableError)),u=Cp(l,1,!1,null,null,v,!1,_,P),l[_i]=u.current,Xl(l.nodeType===8?l.parentNode:l),new Tp(u)},Gn.findDOMNode=function(l){if(l==null)return null;if(l.nodeType===1)return l;var u=l._reactInternals;if(u===void 0)throw typeof l.render=="function"?Error(r(188)):(l=Object.keys(l).join(","),Error(r(268,l)));return l=Mb(u),l=l===null?null:l.stateNode,l},Gn.flushSync=function(l){return fa(l)},Gn.hydrate=function(l,u,v){if(!Vd(u))throw Error(r(200));return Ud(null,l,u,!0,v)},Gn.hydrateRoot=function(l,u,v){if(!Pp(l))throw Error(r(405));var _=v!=null&&v.hydratedSources||null,P=!1,M="",$=u1;if(v!=null&&(v.unstable_strictMode===!0&&(P=!0),v.identifierPrefix!==void 0&&(M=v.identifierPrefix),v.onRecoverableError!==void 0&&($=v.onRecoverableError)),u=l1(u,null,l,1,v??null,P,!1,M,$),l[_i]=u.current,Xl(l),_)for(l=0;l<_.length;l++)v=_[l],P=v._getVersion,P=P(v._source),u.mutableSourceEagerHydrationData==null?u.mutableSourceEagerHydrationData=[v,P]:u.mutableSourceEagerHydrationData.push(v,P);return new zd(u)},Gn.render=function(l,u,v){if(!Vd(u))throw Error(r(200));return Ud(null,l,u,!1,v)},Gn.unmountComponentAtNode=function(l){if(!Vd(l))throw Error(r(40));return l._reactRootContainer?(fa(function(){Ud(null,null,l,!1,function(){l._reactRootContainer=null,l[_i]=null})}),!0):!1},Gn.unstable_batchedUpdates=wp,Gn.unstable_renderSubtreeIntoContainer=function(l,u,v,_){if(!Vd(v))throw Error(r(200));if(l==null||l._reactInternals===void 0)throw Error(r(38));return Ud(l,u,v,!1,_)},Gn.version="18.3.1-next-f1338f8080-20240426",Gn}var b1;function Y0(){if(b1)return Rp.exports;b1=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(n){console.error(n)}}return e(),Rp.exports=KD(),Rp.exports}var j1;function GD(){if(j1)return Kd;j1=1;var e=Y0();return Kd.createRoot=e.createRoot,Kd.hydrateRoot=e.hydrateRoot,Kd}var QD=GD();const YD=Ni(QD),XD=20,JD=1e6,qi={ADD_TOAST:"ADD_TOAST",UPDATE_TOAST:"UPDATE_TOAST",DISMISS_TOAST:"DISMISS_TOAST",REMOVE_TOAST:"REMOVE_TOAST"};let Lp=0;function ZD(){return Lp=(Lp+1)%Number.MAX_VALUE,Lp.toString()}const Bp=new Map,w1=e=>{if(Bp.has(e))return;const n=setTimeout(()=>{Bp.delete(e),Lc({type:qi.REMOVE_TOAST,toastId:e})},JD);Bp.set(e,n)},e5=(e,n)=>{switch(n.type){case qi.ADD_TOAST:return{...e,toasts:[n.toast,...e.toasts].slice(0,XD)};case qi.UPDATE_TOAST:return{...e,toasts:e.toasts.map(r=>r.id===n.toast.id?{...r,...n.toast}:r)};case qi.DISMISS_TOAST:{const{toastId:r}=n;return r?w1(r):e.toasts.forEach(i=>{w1(i.id)}),{...e,toasts:e.toasts.map(i=>i.id===r||r===void 0?{...i,open:!1}:i)}}case qi.REMOVE_TOAST:return n.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(r=>r.id!==n.toastId)}}},mh=[];let ph={toasts:[]};function Lc(e){ph=e5(ph,e),mh.forEach(n=>{n(ph)})}function t5({...e}){const n=ZD(),r=s=>Lc({type:qi.UPDATE_TOAST,toast:{...s,id:n}}),i=()=>Lc({type:qi.DISMISS_TOAST,toastId:n});return Lc({type:qi.ADD_TOAST,toast:{...e,id:n,open:!0,onOpenChange:s=>{s||i()}}}),{id:n,dismiss:i,update:r}}function n5(){const[e,n]=F.useState(ph);return F.useEffect(()=>(mh.push(n),()=>{const r=mh.indexOf(n);r>-1&&mh.splice(r,1)}),[e]),{...e,toast:t5,dismiss:r=>Lc({type:qi.DISMISS_TOAST,toastId:r})}}function gA(e){var n,r,i="";if(typeof e=="string"||typeof e=="number")i+=e;else if(typeof e=="object")if(Array.isArray(e)){var s=e.length;for(n=0;n<s;n++)e[n]&&(r=gA(e[n]))&&(i&&(i+=" "),i+=r)}else for(r in e)e[r]&&(i&&(i+=" "),i+=r);return i}function xA(){for(var e,n,r=0,i="",s=arguments.length;r<s;r++)(e=arguments[r])&&(n=gA(e))&&(i&&(i+=" "),i+=n);return i}const N1=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,k1=xA,yA=(e,n)=>r=>{var i;if((n==null?void 0:n.variants)==null)return k1(e,r==null?void 0:r.class,r==null?void 0:r.className);const{variants:s,defaultVariants:a}=n,o=Object.keys(s).map(f=>{const h=r==null?void 0:r[f],m=a==null?void 0:a[f];if(h===null)return null;const p=N1(h)||N1(m);return s[f][p]}),c=r&&Object.entries(r).reduce((f,h)=>{let[m,p]=h;return p===void 0||(f[m]=p),f},{}),d=n==null||(i=n.compoundVariants)===null||i===void 0?void 0:i.reduce((f,h)=>{let{class:m,className:p,...g}=h;return Object.entries(g).every(b=>{let[j,y]=b;return Array.isArray(y)?y.includes({...a,...c}[j]):{...a,...c}[j]===y})?[...f,m,p]:f},[]);return k1(e,o,d,r==null?void 0:r.class,r==null?void 0:r.className)};/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const r5=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),vA=(...e)=>e.filter((n,r,i)=>!!n&&n.trim()!==""&&i.indexOf(n)===r).join(" ").trim();/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */var i5={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"};/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const s5=F.forwardRef(({color:e="currentColor",size:n=24,strokeWidth:r=2,absoluteStrokeWidth:i,className:s="",children:a,iconNode:o,...c},d)=>F.createElement("svg",{ref:d,...i5,width:n,height:n,stroke:e,strokeWidth:i?Number(r)*24/Number(n):r,className:vA("lucide",s),...c},[...o.map(([f,h])=>F.createElement(f,h)),...Array.isArray(a)?a:[a]]));/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Ce=(e,n)=>{const r=F.forwardRef(({className:i,...s},a)=>F.createElement(s5,{ref:a,iconNode:n,className:vA(`lucide-${r5(e)}`,i),...s}));return r.displayName=`${e}`,r};/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const a5=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],ht=Ce("ArrowLeft",a5);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const o5=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],He=Ce("ArrowRight",o5);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const l5=[["path",{d:"m15.477 12.89 1.515 8.526a.5.5 0 0 1-.81.47l-3.58-2.687a1 1 0 0 0-1.197 0l-3.586 2.686a.5.5 0 0 1-.81-.469l1.514-8.526",key:"1yiouv"}],["circle",{cx:"12",cy:"8",r:"6",key:"1vp47v"}]],wy=Ce("Award",l5);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const c5=[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]],ll=Ce("BookOpen",c5);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const u5=[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]],bA=Ce("Bot",u5);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const d5=[["path",{d:"M12 5a3 3 0 1 0-5.997.125 4 4 0 0 0-2.526 5.77 4 4 0 0 0 .556 6.588A4 4 0 1 0 12 18Z",key:"l5xja"}],["path",{d:"M12 5a3 3 0 1 1 5.997.125 4 4 0 0 1 2.526 5.77 4 4 0 0 1-.556 6.588A4 4 0 1 1 12 18Z",key:"ep3f8r"}],["path",{d:"M15 13a4.5 4.5 0 0 1-3-4 4.5 4.5 0 0 1-3 4",key:"1p4c4q"}],["path",{d:"M17.599 6.5a3 3 0 0 0 .399-1.375",key:"tmeiqw"}],["path",{d:"M6.003 5.125A3 3 0 0 0 6.401 6.5",key:"105sqy"}],["path",{d:"M3.477 10.896a4 4 0 0 1 .585-.396",key:"ql3yin"}],["path",{d:"M19.938 10.5a4 4 0 0 1 .585.396",key:"1qfode"}],["path",{d:"M6 18a4 4 0 0 1-1.967-.516",key:"2e4loj"}],["path",{d:"M19.967 17.484A4 4 0 0 1 18 18",key:"159ez6"}]],h5=Ce("Brain",d5);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const f5=[["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"}]],Ka=Ce("Briefcase",f5);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const m5=[["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"}],["path",{d:"M10 14h4",key:"kelpxr"}],["path",{d:"M10 18h4",key:"1ulq68"}]],Ga=Ce("Building2",m5);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const p5=[["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"}],["path",{d:"M8 14h.01",key:"6423bh"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M16 14h.01",key:"1gbofw"}],["path",{d:"M8 18h.01",key:"lrp35t"}],["path",{d:"M12 18h.01",key:"mhygvu"}],["path",{d:"M16 18h.01",key:"kzsmim"}]],g5=Ce("CalendarDays",p5);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const x5=[["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"}]],$r=Ce("Calendar",x5);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const y5=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Wt=Ce("Check",y5);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const v5=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Vo=Ce("ChevronDown",v5);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const b5=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],j5=Ce("ChevronLeft",b5);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const w5=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],jA=Ce("ChevronRight",w5);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const N5=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],k5=Ce("ChevronUp",N5);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const _5=[["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"}]],Ms=Ce("CircleAlert",_5);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const S5=[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],vt=Ce("CircleCheckBig",S5);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const A5=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],C5=Ce("CircleCheck",A5);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const E5=[["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"}]],T5=Ce("CircleHelp",E5);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const P5=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],Qc=Ce("CircleX",P5);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const O5=[["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"}]],D5=Ce("ClipboardList",O5);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const I5=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]],Dn=Ce("Clock",I5);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const R5=[["path",{d:"m18 16 4-4-4-4",key:"1inbqp"}],["path",{d:"m6 8-4 4 4 4",key:"15zrgr"}],["path",{d:"m14.5 4-5 16",key:"e7oirm"}]],wA=Ce("CodeXml",R5);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const F5=[["polyline",{points:"16 18 22 12 16 6",key:"z7tu5w"}],["polyline",{points:"8 6 2 12 8 18",key:"1eg1df"}]],M5=Ce("Code",F5);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const L5=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],B5=Ce("Copy",L5);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const q5=[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]],NA=Ce("Database",q5);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const z5=[["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"}]],vu=Ce("Download",z5);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const V5=[["path",{d:"M4 10h12",key:"1y6xl8"}],["path",{d:"M4 14h9",key:"1loblj"}],["path",{d:"M19 6a7.7 7.7 0 0 0-5.2-2A7.9 7.9 0 0 0 6 12c0 4.4 3.5 8 7.8 8 2 0 3.8-.8 5.2-2",key:"1j6lzo"}]],_1=Ce("Euro",V5);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const U5=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],Ls=Ce("ExternalLink",U5);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const $5=[["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"}]],qp=Ce("EyeOff",$5);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const H5=[["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"}]],Bs=Ce("Eye",H5);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const W5=[["path",{d:"M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z",key:"1jg4f8"}]],kA=Ce("Facebook",W5);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const K5=[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M12 18v-6",key:"17g6i2"}],["path",{d:"m9 15 3 3 3-3",key:"1npd3o"}]],G5=Ce("FileDown",K5);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Q5=[["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"}]],Ut=Ce("FileText",Q5);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Y5=[["polygon",{points:"22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3",key:"1yg77f"}]],af=Ce("Filter",Y5);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const X5=[["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"}]],J5=Ce("Globe",X5);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Z5=[["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"}]],pr=Ce("GraduationCap",Z5);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const e3=[["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"}]],of=Ce("Headphones",e3);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const t3=[["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"}]],n3=Ce("History",t3);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const r3=[["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"}]],Ny=Ce("House",r3);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const i3=[["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"}]],s3=Ce("Image",i3);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const a3=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],gh=Ce("Info",a3);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const o3=[["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"}]],Yc=Ce("Instagram",o3);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const l3=[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]],lf=Ce("Layers",l3);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const c3=[["rect",{width:"7",height:"7",x:"3",y:"3",rx:"1",key:"1g98yp"}],["rect",{width:"7",height:"7",x:"14",y:"3",rx:"1",key:"6d4xhi"}],["rect",{width:"7",height:"7",x:"14",y:"14",rx:"1",key:"nxv5o0"}],["rect",{width:"7",height:"7",x:"3",y:"14",rx:"1",key:"1bb6yr"}]],S1=Ce("LayoutGrid",c3);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const u3=[["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"}]],$s=Ce("Lightbulb",u3);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const d3=[["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"}]],_A=Ce("Link",d3);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const h3=[["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"}]],Hs=Ce("Linkedin",h3);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const f3=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],SA=Ce("LoaderCircle",f3);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const m3=[["path",{d:"M12 2v4",key:"3427ic"}],["path",{d:"m16.2 7.8 2.9-2.9",key:"r700ao"}],["path",{d:"M18 12h4",key:"wj9ykh"}],["path",{d:"m16.2 16.2 2.9 2.9",key:"1bxg5t"}],["path",{d:"M12 18v4",key:"jadmvz"}],["path",{d:"m4.9 19.1 2.9-2.9",key:"bwix9q"}],["path",{d:"M2 12h4",key:"j09sii"}],["path",{d:"m4.9 4.9 2.9 2.9",key:"giyufr"}]],p3=Ce("Loader",m3);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const g3=[["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"}]],Hr=Ce("Mail",g3);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const x3=[["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"}]],bu=Ce("MapPin",x3);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const y3=[["path",{d:"M14.106 5.553a2 2 0 0 0 1.788 0l3.659-1.83A1 1 0 0 1 21 4.619v12.764a1 1 0 0 1-.553.894l-4.553 2.277a2 2 0 0 1-1.788 0l-4.212-2.106a2 2 0 0 0-1.788 0l-3.659 1.83A1 1 0 0 1 3 19.381V6.618a1 1 0 0 1 .553-.894l4.553-2.277a2 2 0 0 1 1.788 0z",key:"169xi5"}],["path",{d:"M15 5.764v15",key:"1pn4in"}],["path",{d:"M9 3.236v15",key:"1uimfh"}]],v3=Ce("Map",y3);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const b3=[["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"}]],j3=Ce("Menu",b3);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const w3=[["path",{d:"M7.9 20A9 9 0 1 0 4 16.1L2 22Z",key:"vv11sd"}]],xh=Ce("MessageCircle",w3);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const N3=[["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"}]],k3=Ce("MessageSquare",N3);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const _3=[["path",{d:"M4 22h16a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2H8a2 2 0 0 0-2 2v16a2 2 0 0 1-2 2Zm0 0a2 2 0 0 1-2-2v-9c0-1.1.9-2 2-2h2",key:"7pis2x"}],["path",{d:"M18 14h-8",key:"sponae"}],["path",{d:"M15 18h-5",key:"95g1m2"}],["path",{d:"M10 6h8v4h-8V6Z",key:"smlsk5"}]],S3=Ce("Newspaper",_3);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const A3=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M9 21V9",key:"1oto5p"}]],A1=Ce("PanelsTopLeft",A3);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const C3=[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}]],Bc=Ce("Pen",C3);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const E3=[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]],T3=Ce("Pencil",E3);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const P3=[["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"}]],X0=Ce("Phone",P3);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const O3=[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]],ky=Ce("Play",O3);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const D3=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],Pt=Ce("Plus",D3);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const I3=[["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"}]],AA=Ce("Quote",I3);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const R3=[["path",{d:"M21 12a9 9 0 0 0-9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"14sxne"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M3 12a9 9 0 0 0 9 9 9.75 9.75 0 0 0 6.74-2.74L21 16",key:"1hlbsb"}],["path",{d:"M16 16h5v5",key:"ccwih5"}]],F3=Ce("RefreshCcw",R3);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const M3=[["path",{d:"M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09z",key:"m3kijz"}],["path",{d:"m12 15-3-3a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.35 22.35 0 0 1-4 2z",key:"1fmvmk"}],["path",{d:"M9 12H4s.55-3.03 2-4c1.62-1.08 5 0 5 0",key:"1f8sc4"}],["path",{d:"M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5",key:"qeys4"}]],L3=Ce("Rocket",M3);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const B3=[["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"}]],kn=Ce("Save",B3);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const q3=[["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"}]],C1=Ce("Scale",q3);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const z3=[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]],zi=Ce("Search",z3);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const V3=[["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"}]],U3=Ce("Send",V3);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const $3=[["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"}]],Xc=Ce("Settings",$3);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const H3=[["circle",{cx:"18",cy:"5",r:"3",key:"gq8acd"}],["circle",{cx:"6",cy:"12",r:"3",key:"w7nqdw"}],["circle",{cx:"18",cy:"19",r:"3",key:"1xt0gg"}],["line",{x1:"8.59",x2:"15.42",y1:"13.51",y2:"17.49",key:"47mynk"}],["line",{x1:"15.41",x2:"8.59",y1:"6.51",y2:"10.49",key:"1n3mei"}]],J0=Ce("Share2",H3);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const W3=[["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"}]],CA=Ce("ShieldCheck",W3);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const K3=[["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"}]],Zn=Ce("Shield",K3);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const G3=[["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"}]],Tt=Ce("Sparkles",G3);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Q3=[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",key:"1m0v6g"}],["path",{d:"M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z",key:"ohrbg2"}]],Tn=Ce("SquarePen",Q3);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Y3=[["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"}]],Fh=Ce("Star",Y3);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const X3=[["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"}]],J3=Ce("Tag",X3);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Z3=[["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"}]],qa=Ce("Target",Z3);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const eI=[["path",{d:"M14.5 2v17.5c0 1.4-1.1 2.5-2.5 2.5c-1.4 0-2.5-1.1-2.5-2.5V2",key:"125lnx"}],["path",{d:"M8.5 2h7",key:"csnxdl"}],["path",{d:"M14.5 16h-5",key:"1ox875"}]],tI=Ce("TestTube",eI);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const nI=[["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"}]],wt=Ce("Trash2",nI);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const rI=[["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"}]],Hi=Ce("TrendingUp",rI);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const iI=[["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"}]],Uo=Ce("TriangleAlert",iI);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const sI=[["path",{d:"M22 4s-.7 2.1-2 3.4c1.6 10-9.4 17.3-18 11.6 2.2.1 4.4-.6 6-2C3 15.5.5 9.6 3 5c2.2 2.6 5.6 4.1 9 4-.9-4.2 4-6.6 7-3.8 1.1 0 3-1.2 3-1.2z",key:"pff0z6"}]],EA=Ce("Twitter",sI);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const aI=[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"17 8 12 3 7 8",key:"t8dd8p"}],["line",{x1:"12",x2:"12",y1:"3",y2:"15",key:"widbto"}]],TA=Ce("Upload",aI);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const oI=[["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"}]],lI=Ce("User",oI);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const cI=[["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"}]],zn=Ce("Users",cI);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const uI=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],rn=Ce("X",uI);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const dI=[["path",{d:"M2.5 17a24.12 24.12 0 0 1 0-10 2 2 0 0 1 1.4-1.4 49.56 49.56 0 0 1 16.2 0A2 2 0 0 1 21.5 7a24.12 24.12 0 0 1 0 10 2 2 0 0 1-1.4 1.4 49.55 49.55 0 0 1-16.2 0A2 2 0 0 1 2.5 17",key:"1q2vi4"}],["path",{d:"m10 15 5-3-5-3z",key:"1jp15x"}]],Jc=Ce("Youtube",dI);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const hI=[["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"}]],di=Ce("Zap",hI),Z0="-",fI=e=>{const n=pI(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:i}=e;return{getClassGroupId:o=>{const c=o.split(Z0);return c[0]===""&&c.length!==1&&c.shift(),PA(c,n)||mI(o)},getConflictingClassGroupIds:(o,c)=>{const d=r[o]||[];return c&&i[o]?[...d,...i[o]]:d}}},PA=(e,n)=>{var o;if(e.length===0)return n.classGroupId;const r=e[0],i=n.nextPart.get(r),s=i?PA(e.slice(1),i):void 0;if(s)return s;if(n.validators.length===0)return;const a=e.join(Z0);return(o=n.validators.find(({validator:c})=>c(a)))==null?void 0:o.classGroupId},E1=/^\[(.+)\]$/,mI=e=>{if(E1.test(e)){const n=E1.exec(e)[1],r=n==null?void 0:n.substring(0,n.indexOf(":"));if(r)return"arbitrary.."+r}},pI=e=>{const{theme:n,classGroups:r}=e,i={nextPart:new Map,validators:[]};for(const s in r)_y(r[s],i,s,n);return i},_y=(e,n,r,i)=>{e.forEach(s=>{if(typeof s=="string"){const a=s===""?n:T1(n,s);a.classGroupId=r;return}if(typeof s=="function"){if(gI(s)){_y(s(i),n,r,i);return}n.validators.push({validator:s,classGroupId:r});return}Object.entries(s).forEach(([a,o])=>{_y(o,T1(n,a),r,i)})})},T1=(e,n)=>{let r=e;return n.split(Z0).forEach(i=>{r.nextPart.has(i)||r.nextPart.set(i,{nextPart:new Map,validators:[]}),r=r.nextPart.get(i)}),r},gI=e=>e.isThemeGetter,xI=e=>{if(e<1)return{get:()=>{},set:()=>{}};let n=0,r=new Map,i=new Map;const s=(a,o)=>{r.set(a,o),n++,n>e&&(n=0,i=r,r=new Map)};return{get(a){let o=r.get(a);if(o!==void 0)return o;if((o=i.get(a))!==void 0)return s(a,o),o},set(a,o){r.has(a)?r.set(a,o):s(a,o)}}},Sy="!",Ay=":",yI=Ay.length,vI=e=>{const{prefix:n,experimentalParseClassName:r}=e;let i=s=>{const a=[];let o=0,c=0,d=0,f;for(let b=0;b<s.length;b++){let j=s[b];if(o===0&&c===0){if(j===Ay){a.push(s.slice(d,b)),d=b+yI;continue}if(j==="/"){f=b;continue}}j==="["?o++:j==="]"?o--:j==="("?c++:j===")"&&c--}const h=a.length===0?s:s.substring(d),m=bI(h),p=m!==h,g=f&&f>d?f-d:void 0;return{modifiers:a,hasImportantModifier:p,baseClassName:m,maybePostfixModifierPosition:g}};if(n){const s=n+Ay,a=i;i=o=>o.startsWith(s)?a(o.substring(s.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:o,maybePostfixModifierPosition:void 0}}if(r){const s=i;i=a=>r({className:a,parseClassName:s})}return i},bI=e=>e.endsWith(Sy)?e.substring(0,e.length-1):e.startsWith(Sy)?e.substring(1):e,jI=e=>{const n=Object.fromEntries(e.orderSensitiveModifiers.map(i=>[i,!0]));return i=>{if(i.length<=1)return i;const s=[];let a=[];return i.forEach(o=>{o[0]==="["||n[o]?(s.push(...a.sort(),o),a=[]):a.push(o)}),s.push(...a.sort()),s}},wI=e=>({cache:xI(e.cacheSize),parseClassName:vI(e),sortModifiers:jI(e),...fI(e)}),NI=/\s+/,kI=(e,n)=>{const{parseClassName:r,getClassGroupId:i,getConflictingClassGroupIds:s,sortModifiers:a}=n,o=[],c=e.trim().split(NI);let d="";for(let f=c.length-1;f>=0;f-=1){const h=c[f],{isExternal:m,modifiers:p,hasImportantModifier:g,baseClassName:b,maybePostfixModifierPosition:j}=r(h);if(m){d=h+(d.length>0?" "+d:d);continue}let y=!!j,x=i(y?b.substring(0,j):b);if(!x){if(!y){d=h+(d.length>0?" "+d:d);continue}if(x=i(b),!x){d=h+(d.length>0?" "+d:d);continue}y=!1}const N=a(p).join(":"),w=g?N+Sy:N,k=w+x;if(o.includes(k))continue;o.push(k);const A=s(x,y);for(let S=0;S<A.length;++S){const E=A[S];o.push(w+E)}d=h+(d.length>0?" "+d:d)}return d};function _I(){let e=0,n,r,i="";for(;e<arguments.length;)(n=arguments[e++])&&(r=OA(n))&&(i&&(i+=" "),i+=r);return i}const OA=e=>{if(typeof e=="string")return e;let n,r="";for(let i=0;i<e.length;i++)e[i]&&(n=OA(e[i]))&&(r&&(r+=" "),r+=n);return r};function SI(e,...n){let r,i,s,a=o;function o(d){const f=n.reduce((h,m)=>m(h),e());return r=wI(f),i=r.cache.get,s=r.cache.set,a=c,c(d)}function c(d){const f=i(d);if(f)return f;const h=kI(d,r);return s(d,h),h}return function(){return a(_I.apply(null,arguments))}}const hn=e=>{const n=r=>r[e]||[];return n.isThemeGetter=!0,n},DA=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,IA=/^\((?:(\w[\w-]*):)?(.+)\)$/i,AI=/^\d+\/\d+$/,CI=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,EI=/\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$/,TI=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,PI=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,OI=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,So=e=>AI.test(e),ct=e=>!!e&&!Number.isNaN(Number(e)),js=e=>!!e&&Number.isInteger(Number(e)),zp=e=>e.endsWith("%")&&ct(e.slice(0,-1)),Di=e=>CI.test(e),DI=()=>!0,II=e=>EI.test(e)&&!TI.test(e),RA=()=>!1,RI=e=>PI.test(e),FI=e=>OI.test(e),MI=e=>!Be(e)&&!qe(e),LI=e=>xl(e,LA,RA),Be=e=>DA.test(e),xa=e=>xl(e,BA,II),Vp=e=>xl(e,UI,ct),P1=e=>xl(e,FA,RA),BI=e=>xl(e,MA,FI),Gd=e=>xl(e,qA,RI),qe=e=>IA.test(e),gc=e=>yl(e,BA),qI=e=>yl(e,$I),O1=e=>yl(e,FA),zI=e=>yl(e,LA),VI=e=>yl(e,MA),Qd=e=>yl(e,qA,!0),xl=(e,n,r)=>{const i=DA.exec(e);return i?i[1]?n(i[1]):r(i[2]):!1},yl=(e,n,r=!1)=>{const i=IA.exec(e);return i?i[1]?n(i[1]):r:!1},FA=e=>e==="position"||e==="percentage",MA=e=>e==="image"||e==="url",LA=e=>e==="length"||e==="size"||e==="bg-size",BA=e=>e==="length",UI=e=>e==="number",$I=e=>e==="family-name",qA=e=>e==="shadow",HI=()=>{const e=hn("color"),n=hn("font"),r=hn("text"),i=hn("font-weight"),s=hn("tracking"),a=hn("leading"),o=hn("breakpoint"),c=hn("container"),d=hn("spacing"),f=hn("radius"),h=hn("shadow"),m=hn("inset-shadow"),p=hn("text-shadow"),g=hn("drop-shadow"),b=hn("blur"),j=hn("perspective"),y=hn("aspect"),x=hn("ease"),N=hn("animate"),w=()=>["auto","avoid","all","avoid-page","page","left","right","column"],k=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],A=()=>[...k(),qe,Be],S=()=>["auto","hidden","clip","visible","scroll"],E=()=>["auto","contain","none"],C=()=>[qe,Be,d],B=()=>[So,"full","auto",...C()],I=()=>[js,"none","subgrid",qe,Be],R=()=>["auto",{span:["full",js,qe,Be]},js,qe,Be],D=()=>[js,"auto",qe,Be],q=()=>["auto","min","max","fr",qe,Be],z=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],U=()=>["start","end","center","stretch","center-safe","end-safe"],Y=()=>["auto",...C()],H=()=>[So,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...C()],K=()=>[e,qe,Be],Q=()=>[...k(),O1,P1,{position:[qe,Be]}],O=()=>["no-repeat",{repeat:["","x","y","space","round"]}],T=()=>["auto","cover","contain",zI,LI,{size:[qe,Be]}],V=()=>[zp,gc,xa],L=()=>["","none","full",f,qe,Be],X=()=>["",ct,gc,xa],J=()=>["solid","dashed","dotted","double"],W=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],G=()=>[ct,zp,O1,P1],te=()=>["","none",b,qe,Be],re=()=>["none",ct,qe,Be],le=()=>["none",ct,qe,Be],ye=()=>[ct,qe,Be],be=()=>[So,"full",...C()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Di],breakpoint:[Di],color:[DI],container:[Di],"drop-shadow":[Di],ease:["in","out","in-out"],font:[MI],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Di],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Di],shadow:[Di],spacing:["px",ct],text:[Di],"text-shadow":[Di],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",So,Be,qe,y]}],container:["container"],columns:[{columns:[ct,Be,qe,c]}],"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"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:A()}],overflow:[{overflow:S()}],"overflow-x":[{"overflow-x":S()}],"overflow-y":[{"overflow-y":S()}],overscroll:[{overscroll:E()}],"overscroll-x":[{"overscroll-x":E()}],"overscroll-y":[{"overscroll-y":E()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:B()}],"inset-x":[{"inset-x":B()}],"inset-y":[{"inset-y":B()}],start:[{start:B()}],end:[{end:B()}],top:[{top:B()}],right:[{right:B()}],bottom:[{bottom:B()}],left:[{left:B()}],visibility:["visible","invisible","collapse"],z:[{z:[js,"auto",qe,Be]}],basis:[{basis:[So,"full","auto",c,...C()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[ct,So,"auto","initial","none",Be]}],grow:[{grow:["",ct,qe,Be]}],shrink:[{shrink:["",ct,qe,Be]}],order:[{order:[js,"first","last","none",qe,Be]}],"grid-cols":[{"grid-cols":I()}],"col-start-end":[{col:R()}],"col-start":[{"col-start":D()}],"col-end":[{"col-end":D()}],"grid-rows":[{"grid-rows":I()}],"row-start-end":[{row:R()}],"row-start":[{"row-start":D()}],"row-end":[{"row-end":D()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":q()}],"auto-rows":[{"auto-rows":q()}],gap:[{gap:C()}],"gap-x":[{"gap-x":C()}],"gap-y":[{"gap-y":C()}],"justify-content":[{justify:[...z(),"normal"]}],"justify-items":[{"justify-items":[...U(),"normal"]}],"justify-self":[{"justify-self":["auto",...U()]}],"align-content":[{content:["normal",...z()]}],"align-items":[{items:[...U(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...U(),{baseline:["","last"]}]}],"place-content":[{"place-content":z()}],"place-items":[{"place-items":[...U(),"baseline"]}],"place-self":[{"place-self":["auto",...U()]}],p:[{p:C()}],px:[{px:C()}],py:[{py:C()}],ps:[{ps:C()}],pe:[{pe:C()}],pt:[{pt:C()}],pr:[{pr:C()}],pb:[{pb:C()}],pl:[{pl:C()}],m:[{m:Y()}],mx:[{mx:Y()}],my:[{my:Y()}],ms:[{ms:Y()}],me:[{me:Y()}],mt:[{mt:Y()}],mr:[{mr:Y()}],mb:[{mb:Y()}],ml:[{ml:Y()}],"space-x":[{"space-x":C()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":C()}],"space-y-reverse":["space-y-reverse"],size:[{size:H()}],w:[{w:[c,"screen",...H()]}],"min-w":[{"min-w":[c,"screen","none",...H()]}],"max-w":[{"max-w":[c,"screen","none","prose",{screen:[o]},...H()]}],h:[{h:["screen","lh",...H()]}],"min-h":[{"min-h":["screen","lh","none",...H()]}],"max-h":[{"max-h":["screen","lh",...H()]}],"font-size":[{text:["base",r,gc,xa]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[i,qe,Vp]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",zp,Be]}],"font-family":[{font:[qI,Be,n]}],"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:[s,qe,Be]}],"line-clamp":[{"line-clamp":[ct,"none",qe,Vp]}],leading:[{leading:[a,...C()]}],"list-image":[{"list-image":["none",qe,Be]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",qe,Be]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:K()}],"text-color":[{text:K()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...J(),"wavy"]}],"text-decoration-thickness":[{decoration:[ct,"from-font","auto",qe,xa]}],"text-decoration-color":[{decoration:K()}],"underline-offset":[{"underline-offset":[ct,"auto",qe,Be]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:C()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",qe,Be]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",qe,Be]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:Q()}],"bg-repeat":[{bg:O()}],"bg-size":[{bg:T()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},js,qe,Be],radial:["",qe,Be],conic:[js,qe,Be]},VI,BI]}],"bg-color":[{bg:K()}],"gradient-from-pos":[{from:V()}],"gradient-via-pos":[{via:V()}],"gradient-to-pos":[{to:V()}],"gradient-from":[{from:K()}],"gradient-via":[{via:K()}],"gradient-to":[{to:K()}],rounded:[{rounded:L()}],"rounded-s":[{"rounded-s":L()}],"rounded-e":[{"rounded-e":L()}],"rounded-t":[{"rounded-t":L()}],"rounded-r":[{"rounded-r":L()}],"rounded-b":[{"rounded-b":L()}],"rounded-l":[{"rounded-l":L()}],"rounded-ss":[{"rounded-ss":L()}],"rounded-se":[{"rounded-se":L()}],"rounded-ee":[{"rounded-ee":L()}],"rounded-es":[{"rounded-es":L()}],"rounded-tl":[{"rounded-tl":L()}],"rounded-tr":[{"rounded-tr":L()}],"rounded-br":[{"rounded-br":L()}],"rounded-bl":[{"rounded-bl":L()}],"border-w":[{border:X()}],"border-w-x":[{"border-x":X()}],"border-w-y":[{"border-y":X()}],"border-w-s":[{"border-s":X()}],"border-w-e":[{"border-e":X()}],"border-w-t":[{"border-t":X()}],"border-w-r":[{"border-r":X()}],"border-w-b":[{"border-b":X()}],"border-w-l":[{"border-l":X()}],"divide-x":[{"divide-x":X()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":X()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...J(),"hidden","none"]}],"divide-style":[{divide:[...J(),"hidden","none"]}],"border-color":[{border:K()}],"border-color-x":[{"border-x":K()}],"border-color-y":[{"border-y":K()}],"border-color-s":[{"border-s":K()}],"border-color-e":[{"border-e":K()}],"border-color-t":[{"border-t":K()}],"border-color-r":[{"border-r":K()}],"border-color-b":[{"border-b":K()}],"border-color-l":[{"border-l":K()}],"divide-color":[{divide:K()}],"outline-style":[{outline:[...J(),"none","hidden"]}],"outline-offset":[{"outline-offset":[ct,qe,Be]}],"outline-w":[{outline:["",ct,gc,xa]}],"outline-color":[{outline:K()}],shadow:[{shadow:["","none",h,Qd,Gd]}],"shadow-color":[{shadow:K()}],"inset-shadow":[{"inset-shadow":["none",m,Qd,Gd]}],"inset-shadow-color":[{"inset-shadow":K()}],"ring-w":[{ring:X()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:K()}],"ring-offset-w":[{"ring-offset":[ct,xa]}],"ring-offset-color":[{"ring-offset":K()}],"inset-ring-w":[{"inset-ring":X()}],"inset-ring-color":[{"inset-ring":K()}],"text-shadow":[{"text-shadow":["none",p,Qd,Gd]}],"text-shadow-color":[{"text-shadow":K()}],opacity:[{opacity:[ct,qe,Be]}],"mix-blend":[{"mix-blend":[...W(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":W()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[ct]}],"mask-image-linear-from-pos":[{"mask-linear-from":G()}],"mask-image-linear-to-pos":[{"mask-linear-to":G()}],"mask-image-linear-from-color":[{"mask-linear-from":K()}],"mask-image-linear-to-color":[{"mask-linear-to":K()}],"mask-image-t-from-pos":[{"mask-t-from":G()}],"mask-image-t-to-pos":[{"mask-t-to":G()}],"mask-image-t-from-color":[{"mask-t-from":K()}],"mask-image-t-to-color":[{"mask-t-to":K()}],"mask-image-r-from-pos":[{"mask-r-from":G()}],"mask-image-r-to-pos":[{"mask-r-to":G()}],"mask-image-r-from-color":[{"mask-r-from":K()}],"mask-image-r-to-color":[{"mask-r-to":K()}],"mask-image-b-from-pos":[{"mask-b-from":G()}],"mask-image-b-to-pos":[{"mask-b-to":G()}],"mask-image-b-from-color":[{"mask-b-from":K()}],"mask-image-b-to-color":[{"mask-b-to":K()}],"mask-image-l-from-pos":[{"mask-l-from":G()}],"mask-image-l-to-pos":[{"mask-l-to":G()}],"mask-image-l-from-color":[{"mask-l-from":K()}],"mask-image-l-to-color":[{"mask-l-to":K()}],"mask-image-x-from-pos":[{"mask-x-from":G()}],"mask-image-x-to-pos":[{"mask-x-to":G()}],"mask-image-x-from-color":[{"mask-x-from":K()}],"mask-image-x-to-color":[{"mask-x-to":K()}],"mask-image-y-from-pos":[{"mask-y-from":G()}],"mask-image-y-to-pos":[{"mask-y-to":G()}],"mask-image-y-from-color":[{"mask-y-from":K()}],"mask-image-y-to-color":[{"mask-y-to":K()}],"mask-image-radial":[{"mask-radial":[qe,Be]}],"mask-image-radial-from-pos":[{"mask-radial-from":G()}],"mask-image-radial-to-pos":[{"mask-radial-to":G()}],"mask-image-radial-from-color":[{"mask-radial-from":K()}],"mask-image-radial-to-color":[{"mask-radial-to":K()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":k()}],"mask-image-conic-pos":[{"mask-conic":[ct]}],"mask-image-conic-from-pos":[{"mask-conic-from":G()}],"mask-image-conic-to-pos":[{"mask-conic-to":G()}],"mask-image-conic-from-color":[{"mask-conic-from":K()}],"mask-image-conic-to-color":[{"mask-conic-to":K()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:Q()}],"mask-repeat":[{mask:O()}],"mask-size":[{mask:T()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",qe,Be]}],filter:[{filter:["","none",qe,Be]}],blur:[{blur:te()}],brightness:[{brightness:[ct,qe,Be]}],contrast:[{contrast:[ct,qe,Be]}],"drop-shadow":[{"drop-shadow":["","none",g,Qd,Gd]}],"drop-shadow-color":[{"drop-shadow":K()}],grayscale:[{grayscale:["",ct,qe,Be]}],"hue-rotate":[{"hue-rotate":[ct,qe,Be]}],invert:[{invert:["",ct,qe,Be]}],saturate:[{saturate:[ct,qe,Be]}],sepia:[{sepia:["",ct,qe,Be]}],"backdrop-filter":[{"backdrop-filter":["","none",qe,Be]}],"backdrop-blur":[{"backdrop-blur":te()}],"backdrop-brightness":[{"backdrop-brightness":[ct,qe,Be]}],"backdrop-contrast":[{"backdrop-contrast":[ct,qe,Be]}],"backdrop-grayscale":[{"backdrop-grayscale":["",ct,qe,Be]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[ct,qe,Be]}],"backdrop-invert":[{"backdrop-invert":["",ct,qe,Be]}],"backdrop-opacity":[{"backdrop-opacity":[ct,qe,Be]}],"backdrop-saturate":[{"backdrop-saturate":[ct,qe,Be]}],"backdrop-sepia":[{"backdrop-sepia":["",ct,qe,Be]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":C()}],"border-spacing-x":[{"border-spacing-x":C()}],"border-spacing-y":[{"border-spacing-y":C()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",qe,Be]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[ct,"initial",qe,Be]}],ease:[{ease:["linear","initial",x,qe,Be]}],delay:[{delay:[ct,qe,Be]}],animate:[{animate:["none",N,qe,Be]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[j,qe,Be]}],"perspective-origin":[{"perspective-origin":A()}],rotate:[{rotate:re()}],"rotate-x":[{"rotate-x":re()}],"rotate-y":[{"rotate-y":re()}],"rotate-z":[{"rotate-z":re()}],scale:[{scale:le()}],"scale-x":[{"scale-x":le()}],"scale-y":[{"scale-y":le()}],"scale-z":[{"scale-z":le()}],"scale-3d":["scale-3d"],skew:[{skew:ye()}],"skew-x":[{"skew-x":ye()}],"skew-y":[{"skew-y":ye()}],transform:[{transform:[qe,Be,"","none","gpu","cpu"]}],"transform-origin":[{origin:A()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:be()}],"translate-x":[{"translate-x":be()}],"translate-y":[{"translate-y":be()}],"translate-z":[{"translate-z":be()}],"translate-none":["translate-none"],accent:[{accent:K()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:K()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",qe,Be]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":C()}],"scroll-mx":[{"scroll-mx":C()}],"scroll-my":[{"scroll-my":C()}],"scroll-ms":[{"scroll-ms":C()}],"scroll-me":[{"scroll-me":C()}],"scroll-mt":[{"scroll-mt":C()}],"scroll-mr":[{"scroll-mr":C()}],"scroll-mb":[{"scroll-mb":C()}],"scroll-ml":[{"scroll-ml":C()}],"scroll-p":[{"scroll-p":C()}],"scroll-px":[{"scroll-px":C()}],"scroll-py":[{"scroll-py":C()}],"scroll-ps":[{"scroll-ps":C()}],"scroll-pe":[{"scroll-pe":C()}],"scroll-pt":[{"scroll-pt":C()}],"scroll-pr":[{"scroll-pr":C()}],"scroll-pb":[{"scroll-pb":C()}],"scroll-pl":[{"scroll-pl":C()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",qe,Be]}],fill:[{fill:["none",...K()]}],"stroke-w":[{stroke:[ct,gc,xa,Vp]}],stroke:[{stroke:["none",...K()]}],"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-x","border-w-y","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-x","border-color-y","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"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-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"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},WI=SI(HI);function Gt(...e){return WI(xA(e))}const zA=F.forwardRef(({...e},n)=>t.jsx("div",{ref:n,className:"fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",...e}));zA.displayName="ToastProvider";const VA=F.forwardRef(({...e},n)=>t.jsx("div",{ref:n,className:"fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",...e}));VA.displayName="ToastViewport";const KI=yA("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"}}),UA=F.forwardRef(({className:e,variant:n,...r},i)=>t.jsx("div",{ref:i,className:Gt(KI({variant:n}),e),...r}));UA.displayName="Toast";const GI=F.forwardRef(({className:e,...n},r)=>t.jsx("div",{ref:r,className:Gt("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors hover:bg-secondary focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive",e),...n}));GI.displayName="ToastAction";const $A=F.forwardRef(({className:e,...n},r)=>t.jsx("button",{ref:r,className:Gt("absolute right-2 top-2 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-2 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",e),"toast-close":"",...n,children:t.jsx(rn,{className:"h-4 w-4"})}));$A.displayName="ToastClose";const HA=F.forwardRef(({className:e,...n},r)=>t.jsx("div",{ref:r,className:Gt("text-sm font-semibold",e),...n}));HA.displayName="ToastTitle";const WA=F.forwardRef(({className:e,...n},r)=>t.jsx("div",{ref:r,className:Gt("text-sm opacity-90",e),...n}));WA.displayName="ToastDescription";function QI(){const{toasts:e}=n5();return t.jsxs(zA,{children:[e.map(function({id:n,title:r,description:i,action:s,...a}){return t.jsxs(UA,{...a,children:[t.jsxs("div",{className:"grid gap-1",children:[r&&t.jsx(HA,{children:r}),i&&t.jsx(WA,{children:i})]}),s,t.jsx($A,{})]},n)}),t.jsx(VA,{})]})}var vl=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},YI={setTimeout:(e,n)=>setTimeout(e,n),clearTimeout:e=>clearTimeout(e),setInterval:(e,n)=>setInterval(e,n),clearInterval:e=>clearInterval(e)},As,G0,sA,XI=(sA=class{constructor(){Ke(this,As,YI);Ke(this,G0,!1)}setTimeoutProvider(e){Ie(this,As,e)}setTimeout(e,n){return ne(this,As).setTimeout(e,n)}clearTimeout(e){ne(this,As).clearTimeout(e)}setInterval(e,n){return ne(this,As).setInterval(e,n)}clearInterval(e){ne(this,As).clearInterval(e)}},As=new WeakMap,G0=new WeakMap,sA),ka=new XI;function JI(e){setTimeout(e,0)}var za=typeof window>"u"||"Deno"in globalThis;function qn(){}function ZI(e,n){return typeof e=="function"?e(n):e}function Cy(e){return typeof e=="number"&&e>=0&&e!==1/0}function KA(e,n){return Math.max(e+(n||0)-Date.now(),0)}function qs(e,n){return typeof e=="function"?e(n):e}function Sr(e,n){return typeof e=="function"?e(n):e}function D1(e,n){const{type:r="all",exact:i,fetchStatus:s,predicate:a,queryKey:o,stale:c}=e;if(o){if(i){if(n.queryHash!==ev(o,n.options))return!1}else if(!Zc(n.queryKey,o))return!1}if(r!=="all"){const d=n.isActive();if(r==="active"&&!d||r==="inactive"&&d)return!1}return!(typeof c=="boolean"&&n.isStale()!==c||s&&s!==n.state.fetchStatus||a&&!a(n))}function I1(e,n){const{exact:r,status:i,predicate:s,mutationKey:a}=e;if(a){if(!n.options.mutationKey)return!1;if(r){if(Va(n.options.mutationKey)!==Va(a))return!1}else if(!Zc(n.options.mutationKey,a))return!1}return!(i&&n.state.status!==i||s&&!s(n))}function ev(e,n){return((n==null?void 0:n.queryKeyHashFn)||Va)(e)}function Va(e){return JSON.stringify(e,(n,r)=>Ey(r)?Object.keys(r).sort().reduce((i,s)=>(i[s]=r[s],i),{}):r)}function Zc(e,n){return e===n?!0:typeof e!=typeof n?!1:e&&n&&typeof e=="object"&&typeof n=="object"?Object.keys(n).every(r=>Zc(e[r],n[r])):!1}var eR=Object.prototype.hasOwnProperty;function GA(e,n){if(e===n)return e;const r=R1(e)&&R1(n);if(!r&&!(Ey(e)&&Ey(n)))return n;const s=(r?e:Object.keys(e)).length,a=r?n:Object.keys(n),o=a.length,c=r?new Array(o):{};let d=0;for(let f=0;f<o;f++){const h=r?f:a[f],m=e[h],p=n[h];if(m===p){c[h]=m,(r?f<s:eR.call(e,h))&&d++;continue}if(m===null||p===null||typeof m!="object"||typeof p!="object"){c[h]=p;continue}const g=GA(m,p);c[h]=g,g===m&&d++}return s===o&&d===s?e:c}function Mh(e,n){if(!n||Object.keys(e).length!==Object.keys(n).length)return!1;for(const r in e)if(e[r]!==n[r])return!1;return!0}function R1(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Ey(e){if(!F1(e))return!1;const n=e.constructor;if(n===void 0)return!0;const r=n.prototype;return!(!F1(r)||!r.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function F1(e){return Object.prototype.toString.call(e)==="[object Object]"}function tR(e){return new Promise(n=>{ka.setTimeout(n,e)})}function Ty(e,n,r){return typeof r.structuralSharing=="function"?r.structuralSharing(e,n):r.structuralSharing!==!1?GA(e,n):n}function nR(e,n,r=0){const i=[...e,n];return r&&i.length>r?i.slice(1):i}function rR(e,n,r=0){const i=[n,...e];return r&&i.length>r?i.slice(0,-1):i}var tv=Symbol();function QA(e,n){return!e.queryFn&&(n!=null&&n.initialPromise)?()=>n.initialPromise:!e.queryFn||e.queryFn===tv?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function YA(e,n){return typeof e=="function"?e(...n):!!e}var Ca,Cs,Yo,aA,iR=(aA=class extends vl{constructor(){super();Ke(this,Ca);Ke(this,Cs);Ke(this,Yo);Ie(this,Yo,n=>{if(!za&&window.addEventListener){const r=()=>n();return window.addEventListener("visibilitychange",r,!1),()=>{window.removeEventListener("visibilitychange",r)}}})}onSubscribe(){ne(this,Cs)||this.setEventListener(ne(this,Yo))}onUnsubscribe(){var n;this.hasListeners()||((n=ne(this,Cs))==null||n.call(this),Ie(this,Cs,void 0))}setEventListener(n){var r;Ie(this,Yo,n),(r=ne(this,Cs))==null||r.call(this),Ie(this,Cs,n(i=>{typeof i=="boolean"?this.setFocused(i):this.onFocus()}))}setFocused(n){ne(this,Ca)!==n&&(Ie(this,Ca,n),this.onFocus())}onFocus(){const n=this.isFocused();this.listeners.forEach(r=>{r(n)})}isFocused(){var n;return typeof ne(this,Ca)=="boolean"?ne(this,Ca):((n=globalThis.document)==null?void 0:n.visibilityState)!=="hidden"}},Ca=new WeakMap,Cs=new WeakMap,Yo=new WeakMap,aA),nv=new iR;function Py(){let e,n;const r=new Promise((s,a)=>{e=s,n=a});r.status="pending",r.catch(()=>{});function i(s){Object.assign(r,s),delete r.resolve,delete r.reject}return r.resolve=s=>{i({status:"fulfilled",value:s}),e(s)},r.reject=s=>{i({status:"rejected",reason:s}),n(s)},r}var sR=JI;function aR(){let e=[],n=0,r=c=>{c()},i=c=>{c()},s=sR;const a=c=>{n?e.push(c):s(()=>{r(c)})},o=()=>{const c=e;e=[],c.length&&s(()=>{i(()=>{c.forEach(d=>{r(d)})})})};return{batch:c=>{let d;n++;try{d=c()}finally{n--,n||o()}return d},batchCalls:c=>(...d)=>{a(()=>{c(...d)})},schedule:a,setNotifyFunction:c=>{r=c},setBatchNotifyFunction:c=>{i=c},setScheduler:c=>{s=c}}}var fn=aR(),Xo,Es,Jo,oA,oR=(oA=class extends vl{constructor(){super();Ke(this,Xo,!0);Ke(this,Es);Ke(this,Jo);Ie(this,Jo,n=>{if(!za&&window.addEventListener){const r=()=>n(!0),i=()=>n(!1);return window.addEventListener("online",r,!1),window.addEventListener("offline",i,!1),()=>{window.removeEventListener("online",r),window.removeEventListener("offline",i)}}})}onSubscribe(){ne(this,Es)||this.setEventListener(ne(this,Jo))}onUnsubscribe(){var n;this.hasListeners()||((n=ne(this,Es))==null||n.call(this),Ie(this,Es,void 0))}setEventListener(n){var r;Ie(this,Jo,n),(r=ne(this,Es))==null||r.call(this),Ie(this,Es,n(this.setOnline.bind(this)))}setOnline(n){ne(this,Xo)!==n&&(Ie(this,Xo,n),this.listeners.forEach(i=>{i(n)}))}isOnline(){return ne(this,Xo)}},Xo=new WeakMap,Es=new WeakMap,Jo=new WeakMap,oA),Lh=new oR;function lR(e){return Math.min(1e3*2**e,3e4)}function XA(e){return(e??"online")==="online"?Lh.isOnline():!0}var Oy=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function JA(e){let n=!1,r=0,i;const s=Py(),a=()=>s.status!=="pending",o=j=>{var y;if(!a()){const x=new Oy(j);p(x),(y=e.onCancel)==null||y.call(e,x)}},c=()=>{n=!0},d=()=>{n=!1},f=()=>nv.isFocused()&&(e.networkMode==="always"||Lh.isOnline())&&e.canRun(),h=()=>XA(e.networkMode)&&e.canRun(),m=j=>{a()||(i==null||i(),s.resolve(j))},p=j=>{a()||(i==null||i(),s.reject(j))},g=()=>new Promise(j=>{var y;i=x=>{(a()||f())&&j(x)},(y=e.onPause)==null||y.call(e)}).then(()=>{var j;i=void 0,a()||(j=e.onContinue)==null||j.call(e)}),b=()=>{if(a())return;let j;const y=r===0?e.initialPromise:void 0;try{j=y??e.fn()}catch(x){j=Promise.reject(x)}Promise.resolve(j).then(m).catch(x=>{var S;if(a())return;const N=e.retry??(za?0:3),w=e.retryDelay??lR,k=typeof w=="function"?w(r,x):w,A=N===!0||typeof N=="number"&&r<N||typeof N=="function"&&N(r,x);if(n||!A){p(x);return}r++,(S=e.onFail)==null||S.call(e,r,x),tR(k).then(()=>f()?void 0:g()).then(()=>{n?p(x):b()})})};return{promise:s,status:()=>s.status,cancel:o,continue:()=>(i==null||i(),s),cancelRetry:c,continueRetry:d,canStart:h,start:()=>(h()?b():g().then(b),s)}}var Ea,lA,ZA=(lA=class{constructor(){Ke(this,Ea)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Cy(this.gcTime)&&Ie(this,Ea,ka.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(za?1/0:300*1e3))}clearGcTimeout(){ne(this,Ea)&&(ka.clearTimeout(ne(this,Ea)),Ie(this,Ea,void 0))}},Ea=new WeakMap,lA),Ta,Zo,_r,Pa,xn,fu,Oa,qr,Ri,cA,cR=(cA=class extends ZA{constructor(n){super();Ke(this,qr);Ke(this,Ta);Ke(this,Zo);Ke(this,_r);Ke(this,Pa);Ke(this,xn);Ke(this,fu);Ke(this,Oa);Ie(this,Oa,!1),Ie(this,fu,n.defaultOptions),this.setOptions(n.options),this.observers=[],Ie(this,Pa,n.client),Ie(this,_r,ne(this,Pa).getQueryCache()),this.queryKey=n.queryKey,this.queryHash=n.queryHash,Ie(this,Ta,M1(this.options)),this.state=n.state??ne(this,Ta),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var n;return(n=ne(this,xn))==null?void 0:n.promise}setOptions(n){if(this.options={...ne(this,fu),...n},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const r=M1(this.options);r.data!==void 0&&(this.setData(r.data,{updatedAt:r.dataUpdatedAt,manual:!0}),Ie(this,Ta,r))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&ne(this,_r).remove(this)}setData(n,r){const i=Ty(this.state.data,n,this.options);return lt(this,qr,Ri).call(this,{data:i,type:"success",dataUpdatedAt:r==null?void 0:r.updatedAt,manual:r==null?void 0:r.manual}),i}setState(n,r){lt(this,qr,Ri).call(this,{type:"setState",state:n,setStateOptions:r})}cancel(n){var i,s;const r=(i=ne(this,xn))==null?void 0:i.promise;return(s=ne(this,xn))==null||s.cancel(n),r?r.then(qn).catch(qn):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(ne(this,Ta))}isActive(){return this.observers.some(n=>Sr(n.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===tv||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(n=>qs(n.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(n=>n.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(n=0){return this.state.data===void 0?!0:n==="static"?!1:this.state.isInvalidated?!0:!KA(this.state.dataUpdatedAt,n)}onFocus(){var r;const n=this.observers.find(i=>i.shouldFetchOnWindowFocus());n==null||n.refetch({cancelRefetch:!1}),(r=ne(this,xn))==null||r.continue()}onOnline(){var r;const n=this.observers.find(i=>i.shouldFetchOnReconnect());n==null||n.refetch({cancelRefetch:!1}),(r=ne(this,xn))==null||r.continue()}addObserver(n){this.observers.includes(n)||(this.observers.push(n),this.clearGcTimeout(),ne(this,_r).notify({type:"observerAdded",query:this,observer:n}))}removeObserver(n){this.observers.includes(n)&&(this.observers=this.observers.filter(r=>r!==n),this.observers.length||(ne(this,xn)&&(ne(this,Oa)?ne(this,xn).cancel({revert:!0}):ne(this,xn).cancelRetry()),this.scheduleGc()),ne(this,_r).notify({type:"observerRemoved",query:this,observer:n}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||lt(this,qr,Ri).call(this,{type:"invalidate"})}async fetch(n,r){var d,f,h,m,p,g,b,j,y,x,N,w;if(this.state.fetchStatus!=="idle"&&((d=ne(this,xn))==null?void 0:d.status())!=="rejected"){if(this.state.data!==void 0&&(r!=null&&r.cancelRefetch))this.cancel({silent:!0});else if(ne(this,xn))return ne(this,xn).continueRetry(),ne(this,xn).promise}if(n&&this.setOptions(n),!this.options.queryFn){const k=this.observers.find(A=>A.options.queryFn);k&&this.setOptions(k.options)}const i=new AbortController,s=k=>{Object.defineProperty(k,"signal",{enumerable:!0,get:()=>(Ie(this,Oa,!0),i.signal)})},a=()=>{const k=QA(this.options,r),S=(()=>{const E={client:ne(this,Pa),queryKey:this.queryKey,meta:this.meta};return s(E),E})();return Ie(this,Oa,!1),this.options.persister?this.options.persister(k,S,this):k(S)},c=(()=>{const k={fetchOptions:r,options:this.options,queryKey:this.queryKey,client:ne(this,Pa),state:this.state,fetchFn:a};return s(k),k})();(f=this.options.behavior)==null||f.onFetch(c,this),Ie(this,Zo,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((h=c.fetchOptions)==null?void 0:h.meta))&&lt(this,qr,Ri).call(this,{type:"fetch",meta:(m=c.fetchOptions)==null?void 0:m.meta}),Ie(this,xn,JA({initialPromise:r==null?void 0:r.initialPromise,fn:c.fetchFn,onCancel:k=>{k instanceof Oy&&k.revert&&this.setState({...ne(this,Zo),fetchStatus:"idle"}),i.abort()},onFail:(k,A)=>{lt(this,qr,Ri).call(this,{type:"failed",failureCount:k,error:A})},onPause:()=>{lt(this,qr,Ri).call(this,{type:"pause"})},onContinue:()=>{lt(this,qr,Ri).call(this,{type:"continue"})},retry:c.options.retry,retryDelay:c.options.retryDelay,networkMode:c.options.networkMode,canRun:()=>!0}));try{const k=await ne(this,xn).start();if(k===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(k),(g=(p=ne(this,_r).config).onSuccess)==null||g.call(p,k,this),(j=(b=ne(this,_r).config).onSettled)==null||j.call(b,k,this.state.error,this),k}catch(k){if(k instanceof Oy){if(k.silent)return ne(this,xn).promise;if(k.revert){if(this.state.data===void 0)throw k;return this.state.data}}throw lt(this,qr,Ri).call(this,{type:"error",error:k}),(x=(y=ne(this,_r).config).onError)==null||x.call(y,k,this),(w=(N=ne(this,_r).config).onSettled)==null||w.call(N,this.state.data,k,this),k}finally{this.scheduleGc()}}},Ta=new WeakMap,Zo=new WeakMap,_r=new WeakMap,Pa=new WeakMap,xn=new WeakMap,fu=new WeakMap,Oa=new WeakMap,qr=new WeakSet,Ri=function(n){const r=i=>{switch(n.type){case"failed":return{...i,fetchFailureCount:n.failureCount,fetchFailureReason:n.error};case"pause":return{...i,fetchStatus:"paused"};case"continue":return{...i,fetchStatus:"fetching"};case"fetch":return{...i,...eC(i.data,this.options),fetchMeta:n.meta??null};case"success":const s={...i,data:n.data,dataUpdateCount:i.dataUpdateCount+1,dataUpdatedAt:n.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!n.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return Ie(this,Zo,n.manual?s:void 0),s;case"error":const a=n.error;return{...i,error:a,errorUpdateCount:i.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:i.fetchFailureCount+1,fetchFailureReason:a,fetchStatus:"idle",status:"error"};case"invalidate":return{...i,isInvalidated:!0};case"setState":return{...i,...n.state}}};this.state=r(this.state),fn.batch(()=>{this.observers.forEach(i=>{i.onQueryUpdate()}),ne(this,_r).notify({query:this,type:"updated",action:n})})},cA);function eC(e,n){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:XA(n.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function M1(e){const n=typeof e.initialData=="function"?e.initialData():e.initialData,r=n!==void 0,i=r?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:n,dataUpdateCount:0,dataUpdatedAt:r?i??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}var Xn,ft,mu,Ln,Da,el,Fi,Ts,pu,tl,nl,Ia,Ra,Ps,rl,At,Cc,Dy,Iy,Ry,Fy,My,Ly,By,tC,uA,uR=(uA=class extends vl{constructor(n,r){super();Ke(this,At);Ke(this,Xn);Ke(this,ft);Ke(this,mu);Ke(this,Ln);Ke(this,Da);Ke(this,el);Ke(this,Fi);Ke(this,Ts);Ke(this,pu);Ke(this,tl);Ke(this,nl);Ke(this,Ia);Ke(this,Ra);Ke(this,Ps);Ke(this,rl,new Set);this.options=r,Ie(this,Xn,n),Ie(this,Ts,null),Ie(this,Fi,Py()),this.bindMethods(),this.setOptions(r)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(ne(this,ft).addObserver(this),L1(ne(this,ft),this.options)?lt(this,At,Cc).call(this):this.updateResult(),lt(this,At,Fy).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return qy(ne(this,ft),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return qy(ne(this,ft),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,lt(this,At,My).call(this),lt(this,At,Ly).call(this),ne(this,ft).removeObserver(this)}setOptions(n){const r=this.options,i=ne(this,ft);if(this.options=ne(this,Xn).defaultQueryOptions(n),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Sr(this.options.enabled,ne(this,ft))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");lt(this,At,By).call(this),ne(this,ft).setOptions(this.options),r._defaulted&&!Mh(this.options,r)&&ne(this,Xn).getQueryCache().notify({type:"observerOptionsUpdated",query:ne(this,ft),observer:this});const s=this.hasListeners();s&&B1(ne(this,ft),i,this.options,r)&&lt(this,At,Cc).call(this),this.updateResult(),s&&(ne(this,ft)!==i||Sr(this.options.enabled,ne(this,ft))!==Sr(r.enabled,ne(this,ft))||qs(this.options.staleTime,ne(this,ft))!==qs(r.staleTime,ne(this,ft)))&&lt(this,At,Dy).call(this);const a=lt(this,At,Iy).call(this);s&&(ne(this,ft)!==i||Sr(this.options.enabled,ne(this,ft))!==Sr(r.enabled,ne(this,ft))||a!==ne(this,Ps))&&lt(this,At,Ry).call(this,a)}getOptimisticResult(n){const r=ne(this,Xn).getQueryCache().build(ne(this,Xn),n),i=this.createResult(r,n);return hR(this,i)&&(Ie(this,Ln,i),Ie(this,el,this.options),Ie(this,Da,ne(this,ft).state)),i}getCurrentResult(){return ne(this,Ln)}trackResult(n,r){return new Proxy(n,{get:(i,s)=>(this.trackProp(s),r==null||r(s),s==="promise"&&!this.options.experimental_prefetchInRender&&ne(this,Fi).status==="pending"&&ne(this,Fi).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),Reflect.get(i,s))})}trackProp(n){ne(this,rl).add(n)}getCurrentQuery(){return ne(this,ft)}refetch({...n}={}){return this.fetch({...n})}fetchOptimistic(n){const r=ne(this,Xn).defaultQueryOptions(n),i=ne(this,Xn).getQueryCache().build(ne(this,Xn),r);return i.fetch().then(()=>this.createResult(i,r))}fetch(n){return lt(this,At,Cc).call(this,{...n,cancelRefetch:n.cancelRefetch??!0}).then(()=>(this.updateResult(),ne(this,Ln)))}createResult(n,r){var B;const i=ne(this,ft),s=this.options,a=ne(this,Ln),o=ne(this,Da),c=ne(this,el),f=n!==i?n.state:ne(this,mu),{state:h}=n;let m={...h},p=!1,g;if(r._optimisticResults){const I=this.hasListeners(),R=!I&&L1(n,r),D=I&&B1(n,i,r,s);(R||D)&&(m={...m,...eC(h.data,n.options)}),r._optimisticResults==="isRestoring"&&(m.fetchStatus="idle")}let{error:b,errorUpdatedAt:j,status:y}=m;g=m.data;let x=!1;if(r.placeholderData!==void 0&&g===void 0&&y==="pending"){let I;a!=null&&a.isPlaceholderData&&r.placeholderData===(c==null?void 0:c.placeholderData)?(I=a.data,x=!0):I=typeof r.placeholderData=="function"?r.placeholderData((B=ne(this,nl))==null?void 0:B.state.data,ne(this,nl)):r.placeholderData,I!==void 0&&(y="success",g=Ty(a==null?void 0:a.data,I,r),p=!0)}if(r.select&&g!==void 0&&!x)if(a&&g===(o==null?void 0:o.data)&&r.select===ne(this,pu))g=ne(this,tl);else try{Ie(this,pu,r.select),g=r.select(g),g=Ty(a==null?void 0:a.data,g,r),Ie(this,tl,g),Ie(this,Ts,null)}catch(I){Ie(this,Ts,I)}ne(this,Ts)&&(b=ne(this,Ts),g=ne(this,tl),j=Date.now(),y="error");const N=m.fetchStatus==="fetching",w=y==="pending",k=y==="error",A=w&&N,S=g!==void 0,C={status:y,fetchStatus:m.fetchStatus,isPending:w,isSuccess:y==="success",isError:k,isInitialLoading:A,isLoading:A,data:g,dataUpdatedAt:m.dataUpdatedAt,error:b,errorUpdatedAt:j,failureCount:m.fetchFailureCount,failureReason:m.fetchFailureReason,errorUpdateCount:m.errorUpdateCount,isFetched:m.dataUpdateCount>0||m.errorUpdateCount>0,isFetchedAfterMount:m.dataUpdateCount>f.dataUpdateCount||m.errorUpdateCount>f.errorUpdateCount,isFetching:N,isRefetching:N&&!w,isLoadingError:k&&!S,isPaused:m.fetchStatus==="paused",isPlaceholderData:p,isRefetchError:k&&S,isStale:rv(n,r),refetch:this.refetch,promise:ne(this,Fi),isEnabled:Sr(r.enabled,n)!==!1};if(this.options.experimental_prefetchInRender){const I=q=>{C.status==="error"?q.reject(C.error):C.data!==void 0&&q.resolve(C.data)},R=()=>{const q=Ie(this,Fi,C.promise=Py());I(q)},D=ne(this,Fi);switch(D.status){case"pending":n.queryHash===i.queryHash&&I(D);break;case"fulfilled":(C.status==="error"||C.data!==D.value)&&R();break;case"rejected":(C.status!=="error"||C.error!==D.reason)&&R();break}}return C}updateResult(){const n=ne(this,Ln),r=this.createResult(ne(this,ft),this.options);if(Ie(this,Da,ne(this,ft).state),Ie(this,el,this.options),ne(this,Da).data!==void 0&&Ie(this,nl,ne(this,ft)),Mh(r,n))return;Ie(this,Ln,r);const i=()=>{if(!n)return!0;const{notifyOnChangeProps:s}=this.options,a=typeof s=="function"?s():s;if(a==="all"||!a&&!ne(this,rl).size)return!0;const o=new Set(a??ne(this,rl));return this.options.throwOnError&&o.add("error"),Object.keys(ne(this,Ln)).some(c=>{const d=c;return ne(this,Ln)[d]!==n[d]&&o.has(d)})};lt(this,At,tC).call(this,{listeners:i()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&lt(this,At,Fy).call(this)}},Xn=new WeakMap,ft=new WeakMap,mu=new WeakMap,Ln=new WeakMap,Da=new WeakMap,el=new WeakMap,Fi=new WeakMap,Ts=new WeakMap,pu=new WeakMap,tl=new WeakMap,nl=new WeakMap,Ia=new WeakMap,Ra=new WeakMap,Ps=new WeakMap,rl=new WeakMap,At=new WeakSet,Cc=function(n){lt(this,At,By).call(this);let r=ne(this,ft).fetch(this.options,n);return n!=null&&n.throwOnError||(r=r.catch(qn)),r},Dy=function(){lt(this,At,My).call(this);const n=qs(this.options.staleTime,ne(this,ft));if(za||ne(this,Ln).isStale||!Cy(n))return;const i=KA(ne(this,Ln).dataUpdatedAt,n)+1;Ie(this,Ia,ka.setTimeout(()=>{ne(this,Ln).isStale||this.updateResult()},i))},Iy=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(ne(this,ft)):this.options.refetchInterval)??!1},Ry=function(n){lt(this,At,Ly).call(this),Ie(this,Ps,n),!(za||Sr(this.options.enabled,ne(this,ft))===!1||!Cy(ne(this,Ps))||ne(this,Ps)===0)&&Ie(this,Ra,ka.setInterval(()=>{(this.options.refetchIntervalInBackground||nv.isFocused())&&lt(this,At,Cc).call(this)},ne(this,Ps)))},Fy=function(){lt(this,At,Dy).call(this),lt(this,At,Ry).call(this,lt(this,At,Iy).call(this))},My=function(){ne(this,Ia)&&(ka.clearTimeout(ne(this,Ia)),Ie(this,Ia,void 0))},Ly=function(){ne(this,Ra)&&(ka.clearInterval(ne(this,Ra)),Ie(this,Ra,void 0))},By=function(){const n=ne(this,Xn).getQueryCache().build(ne(this,Xn),this.options);if(n===ne(this,ft))return;const r=ne(this,ft);Ie(this,ft,n),Ie(this,mu,n.state),this.hasListeners()&&(r==null||r.removeObserver(this),n.addObserver(this))},tC=function(n){fn.batch(()=>{n.listeners&&this.listeners.forEach(r=>{r(ne(this,Ln))}),ne(this,Xn).getQueryCache().notify({query:ne(this,ft),type:"observerResultsUpdated"})})},uA);function dR(e,n){return Sr(n.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&n.retryOnMount===!1)}function L1(e,n){return dR(e,n)||e.state.data!==void 0&&qy(e,n,n.refetchOnMount)}function qy(e,n,r){if(Sr(n.enabled,e)!==!1&&qs(n.staleTime,e)!=="static"){const i=typeof r=="function"?r(e):r;return i==="always"||i!==!1&&rv(e,n)}return!1}function B1(e,n,r,i){return(e!==n||Sr(i.enabled,e)===!1)&&(!r.suspense||e.state.status!=="error")&&rv(e,r)}function rv(e,n){return Sr(n.enabled,e)!==!1&&e.isStaleByTime(qs(n.staleTime,e))}function hR(e,n){return!Mh(e.getCurrentResult(),n)}function q1(e){return{onFetch:(n,r)=>{var h,m,p,g,b;const i=n.options,s=(p=(m=(h=n.fetchOptions)==null?void 0:h.meta)==null?void 0:m.fetchMore)==null?void 0:p.direction,a=((g=n.state.data)==null?void 0:g.pages)||[],o=((b=n.state.data)==null?void 0:b.pageParams)||[];let c={pages:[],pageParams:[]},d=0;const f=async()=>{let j=!1;const y=w=>{Object.defineProperty(w,"signal",{enumerable:!0,get:()=>(n.signal.aborted?j=!0:n.signal.addEventListener("abort",()=>{j=!0}),n.signal)})},x=QA(n.options,n.fetchOptions),N=async(w,k,A)=>{if(j)return Promise.reject();if(k==null&&w.pages.length)return Promise.resolve(w);const E=(()=>{const R={client:n.client,queryKey:n.queryKey,pageParam:k,direction:A?"backward":"forward",meta:n.options.meta};return y(R),R})(),C=await x(E),{maxPages:B}=n.options,I=A?rR:nR;return{pages:I(w.pages,C,B),pageParams:I(w.pageParams,k,B)}};if(s&&a.length){const w=s==="backward",k=w?fR:z1,A={pages:a,pageParams:o},S=k(i,A);c=await N(A,S,w)}else{const w=e??a.length;do{const k=d===0?o[0]??i.initialPageParam:z1(i,c);if(d>0&&k==null)break;c=await N(c,k),d++}while(d<w)}return c};n.options.persister?n.fetchFn=()=>{var j,y;return(y=(j=n.options).persister)==null?void 0:y.call(j,f,{client:n.client,queryKey:n.queryKey,meta:n.options.meta,signal:n.signal},r)}:n.fetchFn=f}}}function z1(e,{pages:n,pageParams:r}){const i=n.length-1;return n.length>0?e.getNextPageParam(n[i],n,r[i],r):void 0}function fR(e,{pages:n,pageParams:r}){var i;return n.length>0?(i=e.getPreviousPageParam)==null?void 0:i.call(e,n[0],n,r[0],r):void 0}var gu,ri,Bn,Fa,ii,ks,dA,mR=(dA=class extends ZA{constructor(n){super();Ke(this,ii);Ke(this,gu);Ke(this,ri);Ke(this,Bn);Ke(this,Fa);Ie(this,gu,n.client),this.mutationId=n.mutationId,Ie(this,Bn,n.mutationCache),Ie(this,ri,[]),this.state=n.state||nC(),this.setOptions(n.options),this.scheduleGc()}setOptions(n){this.options=n,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(n){ne(this,ri).includes(n)||(ne(this,ri).push(n),this.clearGcTimeout(),ne(this,Bn).notify({type:"observerAdded",mutation:this,observer:n}))}removeObserver(n){Ie(this,ri,ne(this,ri).filter(r=>r!==n)),this.scheduleGc(),ne(this,Bn).notify({type:"observerRemoved",mutation:this,observer:n})}optionalRemove(){ne(this,ri).length||(this.state.status==="pending"?this.scheduleGc():ne(this,Bn).remove(this))}continue(){var n;return((n=ne(this,Fa))==null?void 0:n.continue())??this.execute(this.state.variables)}async execute(n){var o,c,d,f,h,m,p,g,b,j,y,x,N,w,k,A,S,E,C,B;const r=()=>{lt(this,ii,ks).call(this,{type:"continue"})},i={client:ne(this,gu),meta:this.options.meta,mutationKey:this.options.mutationKey};Ie(this,Fa,JA({fn:()=>this.options.mutationFn?this.options.mutationFn(n,i):Promise.reject(new Error("No mutationFn found")),onFail:(I,R)=>{lt(this,ii,ks).call(this,{type:"failed",failureCount:I,error:R})},onPause:()=>{lt(this,ii,ks).call(this,{type:"pause"})},onContinue:r,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>ne(this,Bn).canRun(this)}));const s=this.state.status==="pending",a=!ne(this,Fa).canStart();try{if(s)r();else{lt(this,ii,ks).call(this,{type:"pending",variables:n,isPaused:a}),await((c=(o=ne(this,Bn).config).onMutate)==null?void 0:c.call(o,n,this,i));const R=await((f=(d=this.options).onMutate)==null?void 0:f.call(d,n,i));R!==this.state.context&&lt(this,ii,ks).call(this,{type:"pending",context:R,variables:n,isPaused:a})}const I=await ne(this,Fa).start();return await((m=(h=ne(this,Bn).config).onSuccess)==null?void 0:m.call(h,I,n,this.state.context,this,i)),await((g=(p=this.options).onSuccess)==null?void 0:g.call(p,I,n,this.state.context,i)),await((j=(b=ne(this,Bn).config).onSettled)==null?void 0:j.call(b,I,null,this.state.variables,this.state.context,this,i)),await((x=(y=this.options).onSettled)==null?void 0:x.call(y,I,null,n,this.state.context,i)),lt(this,ii,ks).call(this,{type:"success",data:I}),I}catch(I){try{throw await((w=(N=ne(this,Bn).config).onError)==null?void 0:w.call(N,I,n,this.state.context,this,i)),await((A=(k=this.options).onError)==null?void 0:A.call(k,I,n,this.state.context,i)),await((E=(S=ne(this,Bn).config).onSettled)==null?void 0:E.call(S,void 0,I,this.state.variables,this.state.context,this,i)),await((B=(C=this.options).onSettled)==null?void 0:B.call(C,void 0,I,n,this.state.context,i)),I}finally{lt(this,ii,ks).call(this,{type:"error",error:I})}}finally{ne(this,Bn).runNext(this)}}},gu=new WeakMap,ri=new WeakMap,Bn=new WeakMap,Fa=new WeakMap,ii=new WeakSet,ks=function(n){const r=i=>{switch(n.type){case"failed":return{...i,failureCount:n.failureCount,failureReason:n.error};case"pause":return{...i,isPaused:!0};case"continue":return{...i,isPaused:!1};case"pending":return{...i,context:n.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:n.isPaused,status:"pending",variables:n.variables,submittedAt:Date.now()};case"success":return{...i,data:n.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...i,data:void 0,error:n.error,failureCount:i.failureCount+1,failureReason:n.error,isPaused:!1,status:"error"}}};this.state=r(this.state),fn.batch(()=>{ne(this,ri).forEach(i=>{i.onMutationUpdate(n)}),ne(this,Bn).notify({mutation:this,type:"updated",action:n})})},dA);function nC(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Mi,zr,xu,hA,pR=(hA=class extends vl{constructor(n={}){super();Ke(this,Mi);Ke(this,zr);Ke(this,xu);this.config=n,Ie(this,Mi,new Set),Ie(this,zr,new Map),Ie(this,xu,0)}build(n,r,i){const s=new mR({client:n,mutationCache:this,mutationId:++Hd(this,xu)._,options:n.defaultMutationOptions(r),state:i});return this.add(s),s}add(n){ne(this,Mi).add(n);const r=Yd(n);if(typeof r=="string"){const i=ne(this,zr).get(r);i?i.push(n):ne(this,zr).set(r,[n])}this.notify({type:"added",mutation:n})}remove(n){if(ne(this,Mi).delete(n)){const r=Yd(n);if(typeof r=="string"){const i=ne(this,zr).get(r);if(i)if(i.length>1){const s=i.indexOf(n);s!==-1&&i.splice(s,1)}else i[0]===n&&ne(this,zr).delete(r)}}this.notify({type:"removed",mutation:n})}canRun(n){const r=Yd(n);if(typeof r=="string"){const i=ne(this,zr).get(r),s=i==null?void 0:i.find(a=>a.state.status==="pending");return!s||s===n}else return!0}runNext(n){var i;const r=Yd(n);if(typeof r=="string"){const s=(i=ne(this,zr).get(r))==null?void 0:i.find(a=>a!==n&&a.state.isPaused);return(s==null?void 0:s.continue())??Promise.resolve()}else return Promise.resolve()}clear(){fn.batch(()=>{ne(this,Mi).forEach(n=>{this.notify({type:"removed",mutation:n})}),ne(this,Mi).clear(),ne(this,zr).clear()})}getAll(){return Array.from(ne(this,Mi))}find(n){const r={exact:!0,...n};return this.getAll().find(i=>I1(r,i))}findAll(n={}){return this.getAll().filter(r=>I1(n,r))}notify(n){fn.batch(()=>{this.listeners.forEach(r=>{r(n)})})}resumePausedMutations(){const n=this.getAll().filter(r=>r.state.isPaused);return fn.batch(()=>Promise.all(n.map(r=>r.continue().catch(qn))))}},Mi=new WeakMap,zr=new WeakMap,xu=new WeakMap,hA);function Yd(e){var n;return(n=e.options.scope)==null?void 0:n.id}var Li,Os,Jn,Bi,$i,yh,zy,fA,gR=(fA=class extends vl{constructor(r,i){super();Ke(this,$i);Ke(this,Li);Ke(this,Os);Ke(this,Jn);Ke(this,Bi);Ie(this,Li,r),this.setOptions(i),this.bindMethods(),lt(this,$i,yh).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(r){var s;const i=this.options;this.options=ne(this,Li).defaultMutationOptions(r),Mh(this.options,i)||ne(this,Li).getMutationCache().notify({type:"observerOptionsUpdated",mutation:ne(this,Jn),observer:this}),i!=null&&i.mutationKey&&this.options.mutationKey&&Va(i.mutationKey)!==Va(this.options.mutationKey)?this.reset():((s=ne(this,Jn))==null?void 0:s.state.status)==="pending"&&ne(this,Jn).setOptions(this.options)}onUnsubscribe(){var r;this.hasListeners()||(r=ne(this,Jn))==null||r.removeObserver(this)}onMutationUpdate(r){lt(this,$i,yh).call(this),lt(this,$i,zy).call(this,r)}getCurrentResult(){return ne(this,Os)}reset(){var r;(r=ne(this,Jn))==null||r.removeObserver(this),Ie(this,Jn,void 0),lt(this,$i,yh).call(this),lt(this,$i,zy).call(this)}mutate(r,i){var s;return Ie(this,Bi,i),(s=ne(this,Jn))==null||s.removeObserver(this),Ie(this,Jn,ne(this,Li).getMutationCache().build(ne(this,Li),this.options)),ne(this,Jn).addObserver(this),ne(this,Jn).execute(r)}},Li=new WeakMap,Os=new WeakMap,Jn=new WeakMap,Bi=new WeakMap,$i=new WeakSet,yh=function(){var i;const r=((i=ne(this,Jn))==null?void 0:i.state)??nC();Ie(this,Os,{...r,isPending:r.status==="pending",isSuccess:r.status==="success",isError:r.status==="error",isIdle:r.status==="idle",mutate:this.mutate,reset:this.reset})},zy=function(r){fn.batch(()=>{var i,s,a,o,c,d,f,h;if(ne(this,Bi)&&this.hasListeners()){const m=ne(this,Os).variables,p=ne(this,Os).context,g={client:ne(this,Li),meta:this.options.meta,mutationKey:this.options.mutationKey};(r==null?void 0:r.type)==="success"?((s=(i=ne(this,Bi)).onSuccess)==null||s.call(i,r.data,m,p,g),(o=(a=ne(this,Bi)).onSettled)==null||o.call(a,r.data,null,m,p,g)):(r==null?void 0:r.type)==="error"&&((d=(c=ne(this,Bi)).onError)==null||d.call(c,r.error,m,p,g),(h=(f=ne(this,Bi)).onSettled)==null||h.call(f,void 0,r.error,m,p,g))}this.listeners.forEach(m=>{m(ne(this,Os))})})},fA),si,mA,xR=(mA=class extends vl{constructor(n={}){super();Ke(this,si);this.config=n,Ie(this,si,new Map)}build(n,r,i){const s=r.queryKey,a=r.queryHash??ev(s,r);let o=this.get(a);return o||(o=new cR({client:n,queryKey:s,queryHash:a,options:n.defaultQueryOptions(r),state:i,defaultOptions:n.getQueryDefaults(s)}),this.add(o)),o}add(n){ne(this,si).has(n.queryHash)||(ne(this,si).set(n.queryHash,n),this.notify({type:"added",query:n}))}remove(n){const r=ne(this,si).get(n.queryHash);r&&(n.destroy(),r===n&&ne(this,si).delete(n.queryHash),this.notify({type:"removed",query:n}))}clear(){fn.batch(()=>{this.getAll().forEach(n=>{this.remove(n)})})}get(n){return ne(this,si).get(n)}getAll(){return[...ne(this,si).values()]}find(n){const r={exact:!0,...n};return this.getAll().find(i=>D1(r,i))}findAll(n={}){const r=this.getAll();return Object.keys(n).length>0?r.filter(i=>D1(n,i)):r}notify(n){fn.batch(()=>{this.listeners.forEach(r=>{r(n)})})}onFocus(){fn.batch(()=>{this.getAll().forEach(n=>{n.onFocus()})})}onOnline(){fn.batch(()=>{this.getAll().forEach(n=>{n.onOnline()})})}},si=new WeakMap,mA),Jt,Ds,Is,il,sl,Rs,al,ol,pA,yR=(pA=class{constructor(e={}){Ke(this,Jt);Ke(this,Ds);Ke(this,Is);Ke(this,il);Ke(this,sl);Ke(this,Rs);Ke(this,al);Ke(this,ol);Ie(this,Jt,e.queryCache||new xR),Ie(this,Ds,e.mutationCache||new pR),Ie(this,Is,e.defaultOptions||{}),Ie(this,il,new Map),Ie(this,sl,new Map),Ie(this,Rs,0)}mount(){Hd(this,Rs)._++,ne(this,Rs)===1&&(Ie(this,al,nv.subscribe(async e=>{e&&(await this.resumePausedMutations(),ne(this,Jt).onFocus())})),Ie(this,ol,Lh.subscribe(async e=>{e&&(await this.resumePausedMutations(),ne(this,Jt).onOnline())})))}unmount(){var e,n;Hd(this,Rs)._--,ne(this,Rs)===0&&((e=ne(this,al))==null||e.call(this),Ie(this,al,void 0),(n=ne(this,ol))==null||n.call(this),Ie(this,ol,void 0))}isFetching(e){return ne(this,Jt).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return ne(this,Ds).findAll({...e,status:"pending"}).length}getQueryData(e){var r;const n=this.defaultQueryOptions({queryKey:e});return(r=ne(this,Jt).get(n.queryHash))==null?void 0:r.state.data}ensureQueryData(e){const n=this.defaultQueryOptions(e),r=ne(this,Jt).build(this,n),i=r.state.data;return i===void 0?this.fetchQuery(e):(e.revalidateIfStale&&r.isStaleByTime(qs(n.staleTime,r))&&this.prefetchQuery(n),Promise.resolve(i))}getQueriesData(e){return ne(this,Jt).findAll(e).map(({queryKey:n,state:r})=>{const i=r.data;return[n,i]})}setQueryData(e,n,r){const i=this.defaultQueryOptions({queryKey:e}),s=ne(this,Jt).get(i.queryHash),a=s==null?void 0:s.state.data,o=ZI(n,a);if(o!==void 0)return ne(this,Jt).build(this,i).setData(o,{...r,manual:!0})}setQueriesData(e,n,r){return fn.batch(()=>ne(this,Jt).findAll(e).map(({queryKey:i})=>[i,this.setQueryData(i,n,r)]))}getQueryState(e){var r;const n=this.defaultQueryOptions({queryKey:e});return(r=ne(this,Jt).get(n.queryHash))==null?void 0:r.state}removeQueries(e){const n=ne(this,Jt);fn.batch(()=>{n.findAll(e).forEach(r=>{n.remove(r)})})}resetQueries(e,n){const r=ne(this,Jt);return fn.batch(()=>(r.findAll(e).forEach(i=>{i.reset()}),this.refetchQueries({type:"active",...e},n)))}cancelQueries(e,n={}){const r={revert:!0,...n},i=fn.batch(()=>ne(this,Jt).findAll(e).map(s=>s.cancel(r)));return Promise.all(i).then(qn).catch(qn)}invalidateQueries(e,n={}){return fn.batch(()=>(ne(this,Jt).findAll(e).forEach(r=>{r.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},n)))}refetchQueries(e,n={}){const r={...n,cancelRefetch:n.cancelRefetch??!0},i=fn.batch(()=>ne(this,Jt).findAll(e).filter(s=>!s.isDisabled()&&!s.isStatic()).map(s=>{let a=s.fetch(void 0,r);return r.throwOnError||(a=a.catch(qn)),s.state.fetchStatus==="paused"?Promise.resolve():a}));return Promise.all(i).then(qn)}fetchQuery(e){const n=this.defaultQueryOptions(e);n.retry===void 0&&(n.retry=!1);const r=ne(this,Jt).build(this,n);return r.isStaleByTime(qs(n.staleTime,r))?r.fetch(n):Promise.resolve(r.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(qn).catch(qn)}fetchInfiniteQuery(e){return e.behavior=q1(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(qn).catch(qn)}ensureInfiniteQueryData(e){return e.behavior=q1(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Lh.isOnline()?ne(this,Ds).resumePausedMutations():Promise.resolve()}getQueryCache(){return ne(this,Jt)}getMutationCache(){return ne(this,Ds)}getDefaultOptions(){return ne(this,Is)}setDefaultOptions(e){Ie(this,Is,e)}setQueryDefaults(e,n){ne(this,il).set(Va(e),{queryKey:e,defaultOptions:n})}getQueryDefaults(e){const n=[...ne(this,il).values()],r={};return n.forEach(i=>{Zc(e,i.queryKey)&&Object.assign(r,i.defaultOptions)}),r}setMutationDefaults(e,n){ne(this,sl).set(Va(e),{mutationKey:e,defaultOptions:n})}getMutationDefaults(e){const n=[...ne(this,sl).values()],r={};return n.forEach(i=>{Zc(e,i.mutationKey)&&Object.assign(r,i.defaultOptions)}),r}defaultQueryOptions(e){if(e._defaulted)return e;const n={...ne(this,Is).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return n.queryHash||(n.queryHash=ev(n.queryKey,n)),n.refetchOnReconnect===void 0&&(n.refetchOnReconnect=n.networkMode!=="always"),n.throwOnError===void 0&&(n.throwOnError=!!n.suspense),!n.networkMode&&n.persister&&(n.networkMode="offlineFirst"),n.queryFn===tv&&(n.enabled=!1),n}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...ne(this,Is).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){ne(this,Jt).clear(),ne(this,Ds).clear()}},Jt=new WeakMap,Ds=new WeakMap,Is=new WeakMap,il=new WeakMap,sl=new WeakMap,Rs=new WeakMap,al=new WeakMap,ol=new WeakMap,pA),rC=F.createContext(void 0),Yt=e=>{const n=F.useContext(rC);if(!n)throw new Error("No QueryClient set, use QueryClientProvider to set one");return n},vR=({client:e,children:n})=>(F.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),t.jsx(rC.Provider,{value:e,children:n})),iC=F.createContext(!1),bR=()=>F.useContext(iC);iC.Provider;function jR(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var wR=F.createContext(jR()),NR=()=>F.useContext(wR),kR=(e,n)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(n.isReset()||(e.retryOnMount=!1))},_R=e=>{F.useEffect(()=>{e.clearReset()},[e])},SR=({result:e,errorResetBoundary:n,throwOnError:r,query:i,suspense:s})=>e.isError&&!n.isReset()&&!e.isFetching&&i&&(s&&e.data===void 0||YA(r,[e.error,i])),AR=e=>{if(e.suspense){const r=s=>s==="static"?s:Math.max(s??1e3,1e3),i=e.staleTime;e.staleTime=typeof i=="function"?(...s)=>r(i(...s)):r(i),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},CR=(e,n)=>e.isLoading&&e.isFetching&&!n,ER=(e,n)=>(e==null?void 0:e.suspense)&&n.isPending,V1=(e,n,r)=>n.fetchOptimistic(e).catch(()=>{r.clearReset()});function TR(e,n,r){var m,p,g,b,j;const i=bR(),s=NR(),a=Yt(),o=a.defaultQueryOptions(e);(p=(m=a.getDefaultOptions().queries)==null?void 0:m._experimental_beforeQuery)==null||p.call(m,o),o._optimisticResults=i?"isRestoring":"optimistic",AR(o),kR(o,s),_R(s);const c=!a.getQueryCache().get(o.queryHash),[d]=F.useState(()=>new n(a,o)),f=d.getOptimisticResult(o),h=!i&&e.subscribed!==!1;if(F.useSyncExternalStore(F.useCallback(y=>{const x=h?d.subscribe(fn.batchCalls(y)):qn;return d.updateResult(),x},[d,h]),()=>d.getCurrentResult(),()=>d.getCurrentResult()),F.useEffect(()=>{d.setOptions(o)},[o,d]),ER(o,f))throw V1(o,d,s);if(SR({result:f,errorResetBoundary:s,throwOnError:o.throwOnError,query:a.getQueryCache().get(o.queryHash),suspense:o.suspense}))throw f.error;if((b=(g=a.getDefaultOptions().queries)==null?void 0:g._experimental_afterQuery)==null||b.call(g,o,f),o.experimental_prefetchInRender&&!za&&CR(f,i)){const y=c?V1(o,d,s):(j=a.getQueryCache().get(o.queryHash))==null?void 0:j.promise;y==null||y.catch(qn).finally(()=>{d.updateResult()})}return o.notifyOnChangeProps?f:d.trackResult(f)}function ze(e,n){return TR(e,uR)}function Me(e,n){const r=Yt(),[i]=F.useState(()=>new gR(r,e));F.useEffect(()=>{i.setOptions(e)},[i,e]);const s=F.useSyncExternalStore(F.useCallback(o=>i.subscribe(fn.batchCalls(o)),[i]),()=>i.getCurrentResult(),()=>i.getCurrentResult()),a=F.useCallback((o,c)=>{i.mutate(o,c).catch(qn)},[i]);if(s.error&&YA(i.options.throwOnError,[s.error]))throw s.error;return{...s,mutate:a,mutateAsync:s.mutate}}const PR=new yR({defaultOptions:{queries:{refetchOnWindowFocus:!1,retry:1}}});var ju=Y0();const OR=Ni(ju);/**
 * @remix-run/router v1.23.0
 *
 * Copyright (c) Remix Software Inc.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE.md file in the root directory of this source tree.
 *
 * @license MIT
 */function eu(){return eu=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},eu.apply(this,arguments)}var Fs;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(Fs||(Fs={}));const U1="popstate";function DR(e){e===void 0&&(e={});function n(i,s){let{pathname:a,search:o,hash:c}=i.location;return Vy("",{pathname:a,search:o,hash:c},s.state&&s.state.usr||null,s.state&&s.state.key||"default")}function r(i,s){return typeof s=="string"?s:Bh(s)}return RR(n,r,null,e)}function cn(e,n){if(e===!1||e===null||typeof e>"u")throw new Error(n)}function sC(e,n){if(!e){typeof console<"u"&&console.warn(n);try{throw new Error(n)}catch{}}}function IR(){return Math.random().toString(36).substr(2,8)}function $1(e,n){return{usr:e.state,key:e.key,idx:n}}function Vy(e,n,r,i){return r===void 0&&(r=null),eu({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof n=="string"?bl(n):n,{state:r,key:n&&n.key||i||IR()})}function Bh(e){let{pathname:n="/",search:r="",hash:i=""}=e;return r&&r!=="?"&&(n+=r.charAt(0)==="?"?r:"?"+r),i&&i!=="#"&&(n+=i.charAt(0)==="#"?i:"#"+i),n}function bl(e){let n={};if(e){let r=e.indexOf("#");r>=0&&(n.hash=e.substr(r),e=e.substr(0,r));let i=e.indexOf("?");i>=0&&(n.search=e.substr(i),e=e.substr(0,i)),e&&(n.pathname=e)}return n}function RR(e,n,r,i){i===void 0&&(i={});let{window:s=document.defaultView,v5Compat:a=!1}=i,o=s.history,c=Fs.Pop,d=null,f=h();f==null&&(f=0,o.replaceState(eu({},o.state,{idx:f}),""));function h(){return(o.state||{idx:null}).idx}function m(){c=Fs.Pop;let y=h(),x=y==null?null:y-f;f=y,d&&d({action:c,location:j.location,delta:x})}function p(y,x){c=Fs.Push;let N=Vy(j.location,y,x);f=h()+1;let w=$1(N,f),k=j.createHref(N);try{o.pushState(w,"",k)}catch(A){if(A instanceof DOMException&&A.name==="DataCloneError")throw A;s.location.assign(k)}a&&d&&d({action:c,location:j.location,delta:1})}function g(y,x){c=Fs.Replace;let N=Vy(j.location,y,x);f=h();let w=$1(N,f),k=j.createHref(N);o.replaceState(w,"",k),a&&d&&d({action:c,location:j.location,delta:0})}function b(y){let x=s.location.origin!=="null"?s.location.origin:s.location.href,N=typeof y=="string"?y:Bh(y);return N=N.replace(/ $/,"%20"),cn(x,"No window.location.(origin|href) available to create URL for href: "+N),new URL(N,x)}let j={get action(){return c},get location(){return e(s,o)},listen(y){if(d)throw new Error("A history only accepts one active listener");return s.addEventListener(U1,m),d=y,()=>{s.removeEventListener(U1,m),d=null}},createHref(y){return n(s,y)},createURL:b,encodeLocation(y){let x=b(y);return{pathname:x.pathname,search:x.search,hash:x.hash}},push:p,replace:g,go(y){return o.go(y)}};return j}var H1;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(H1||(H1={}));function FR(e,n,r){return r===void 0&&(r="/"),MR(e,n,r)}function MR(e,n,r,i){let s=typeof n=="string"?bl(n):n,a=iv(s.pathname||"/",r);if(a==null)return null;let o=aC(e);LR(o);let c=null;for(let d=0;c==null&&d<o.length;++d){let f=YR(a);c=KR(o[d],f)}return c}function aC(e,n,r,i){n===void 0&&(n=[]),r===void 0&&(r=[]),i===void 0&&(i="");let s=(a,o,c)=>{let d={relativePath:c===void 0?a.path||"":c,caseSensitive:a.caseSensitive===!0,childrenIndex:o,route:a};d.relativePath.startsWith("/")&&(cn(d.relativePath.startsWith(i),'Absolute route path "'+d.relativePath+'" nested under path '+('"'+i+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),d.relativePath=d.relativePath.slice(i.length));let f=zs([i,d.relativePath]),h=r.concat(d);a.children&&a.children.length>0&&(cn(a.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+f+'".')),aC(a.children,n,h,f)),!(a.path==null&&!a.index)&&n.push({path:f,score:HR(f,a.index),routesMeta:h})};return e.forEach((a,o)=>{var c;if(a.path===""||!((c=a.path)!=null&&c.includes("?")))s(a,o);else for(let d of oC(a.path))s(a,o,d)}),n}function oC(e){let n=e.split("/");if(n.length===0)return[];let[r,...i]=n,s=r.endsWith("?"),a=r.replace(/\?$/,"");if(i.length===0)return s?[a,""]:[a];let o=oC(i.join("/")),c=[];return c.push(...o.map(d=>d===""?a:[a,d].join("/"))),s&&c.push(...o),c.map(d=>e.startsWith("/")&&d===""?"/":d)}function LR(e){e.sort((n,r)=>n.score!==r.score?r.score-n.score:WR(n.routesMeta.map(i=>i.childrenIndex),r.routesMeta.map(i=>i.childrenIndex)))}const BR=/^:[\w-]+$/,qR=3,zR=2,VR=1,UR=10,$R=-2,W1=e=>e==="*";function HR(e,n){let r=e.split("/"),i=r.length;return r.some(W1)&&(i+=$R),n&&(i+=zR),r.filter(s=>!W1(s)).reduce((s,a)=>s+(BR.test(a)?qR:a===""?VR:UR),i)}function WR(e,n){return e.length===n.length&&e.slice(0,-1).every((i,s)=>i===n[s])?e[e.length-1]-n[n.length-1]:0}function KR(e,n,r){let{routesMeta:i}=e,s={},a="/",o=[];for(let c=0;c<i.length;++c){let d=i[c],f=c===i.length-1,h=a==="/"?n:n.slice(a.length)||"/",m=GR({path:d.relativePath,caseSensitive:d.caseSensitive,end:f},h),p=d.route;if(!m)return null;Object.assign(s,m.params),o.push({params:s,pathname:zs([a,m.pathname]),pathnameBase:eF(zs([a,m.pathnameBase])),route:p}),m.pathnameBase!=="/"&&(a=zs([a,m.pathnameBase]))}return o}function GR(e,n){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[r,i]=QR(e.path,e.caseSensitive,e.end),s=n.match(r);if(!s)return null;let a=s[0],o=a.replace(/(.)\/+$/,"$1"),c=s.slice(1);return{params:i.reduce((f,h,m)=>{let{paramName:p,isOptional:g}=h;if(p==="*"){let j=c[m]||"";o=a.slice(0,a.length-j.length).replace(/(.)\/+$/,"$1")}const b=c[m];return g&&!b?f[p]=void 0:f[p]=(b||"").replace(/%2F/g,"/"),f},{}),pathname:a,pathnameBase:o,pattern:e}}function QR(e,n,r){n===void 0&&(n=!1),r===void 0&&(r=!0),sC(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let i=[],s="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(o,c,d)=>(i.push({paramName:c,isOptional:d!=null}),d?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(i.push({paramName:"*"}),s+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?s+="\\/*$":e!==""&&e!=="/"&&(s+="(?:(?=\\/|$))"),[new RegExp(s,n?void 0:"i"),i]}function YR(e){try{return e.split("/").map(n=>decodeURIComponent(n).replace(/\//g,"%2F")).join("/")}catch(n){return sC(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+n+").")),e}}function iv(e,n){if(n==="/")return e;if(!e.toLowerCase().startsWith(n.toLowerCase()))return null;let r=n.endsWith("/")?n.length-1:n.length,i=e.charAt(r);return i&&i!=="/"?null:e.slice(r)||"/"}function XR(e,n){n===void 0&&(n="/");let{pathname:r,search:i="",hash:s=""}=typeof e=="string"?bl(e):e;return{pathname:r?r.startsWith("/")?r:JR(r,n):n,search:tF(i),hash:nF(s)}}function JR(e,n){let r=n.replace(/\/+$/,"").split("/");return e.split("/").forEach(s=>{s===".."?r.length>1&&r.pop():s!=="."&&r.push(s)}),r.length>1?r.join("/"):"/"}function Up(e,n,r,i){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+n+"` field ["+JSON.stringify(i)+"].  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 ZR(e){return e.filter((n,r)=>r===0||n.route.path&&n.route.path.length>0)}function lC(e,n){let r=ZR(e);return n?r.map((i,s)=>s===r.length-1?i.pathname:i.pathnameBase):r.map(i=>i.pathnameBase)}function cC(e,n,r,i){i===void 0&&(i=!1);let s;typeof e=="string"?s=bl(e):(s=eu({},e),cn(!s.pathname||!s.pathname.includes("?"),Up("?","pathname","search",s)),cn(!s.pathname||!s.pathname.includes("#"),Up("#","pathname","hash",s)),cn(!s.search||!s.search.includes("#"),Up("#","search","hash",s)));let a=e===""||s.pathname==="",o=a?"/":s.pathname,c;if(o==null)c=r;else{let m=n.length-1;if(!i&&o.startsWith("..")){let p=o.split("/");for(;p[0]==="..";)p.shift(),m-=1;s.pathname=p.join("/")}c=m>=0?n[m]:"/"}let d=XR(s,c),f=o&&o!=="/"&&o.endsWith("/"),h=(a||o===".")&&r.endsWith("/");return!d.pathname.endsWith("/")&&(f||h)&&(d.pathname+="/"),d}const zs=e=>e.join("/").replace(/\/\/+/g,"/"),eF=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),tF=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,nF=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function rF(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const uC=["post","put","patch","delete"];new Set(uC);const iF=["get",...uC];new Set(iF);/**
 * React Router v6.30.1
 *
 * Copyright (c) Remix Software Inc.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE.md file in the root directory of this source tree.
 *
 * @license MIT
 */function tu(){return tu=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},tu.apply(this,arguments)}const sv=F.createContext(null),sF=F.createContext(null),Qa=F.createContext(null),cf=F.createContext(null),Ya=F.createContext({outlet:null,matches:[],isDataRoute:!1}),dC=F.createContext(null);function aF(e,n){let{relative:r}=n===void 0?{}:n;wu()||cn(!1);let{basename:i,navigator:s}=F.useContext(Qa),{hash:a,pathname:o,search:c}=fC(e,{relative:r}),d=o;return i!=="/"&&(d=o==="/"?i:zs([i,o])),s.createHref({pathname:d,search:c,hash:a})}function wu(){return F.useContext(cf)!=null}function Xa(){return wu()||cn(!1),F.useContext(cf).location}function hC(e){F.useContext(Qa).static||F.useLayoutEffect(e)}function jl(){let{isDataRoute:e}=F.useContext(Ya);return e?vF():oF()}function oF(){wu()||cn(!1);let e=F.useContext(sv),{basename:n,future:r,navigator:i}=F.useContext(Qa),{matches:s}=F.useContext(Ya),{pathname:a}=Xa(),o=JSON.stringify(lC(s,r.v7_relativeSplatPath)),c=F.useRef(!1);return hC(()=>{c.current=!0}),F.useCallback(function(f,h){if(h===void 0&&(h={}),!c.current)return;if(typeof f=="number"){i.go(f);return}let m=cC(f,JSON.parse(o),a,h.relative==="path");e==null&&n!=="/"&&(m.pathname=m.pathname==="/"?n:zs([n,m.pathname])),(h.replace?i.replace:i.push)(m,h.state,h)},[n,i,o,a,e])}function fC(e,n){let{relative:r}=n===void 0?{}:n,{future:i}=F.useContext(Qa),{matches:s}=F.useContext(Ya),{pathname:a}=Xa(),o=JSON.stringify(lC(s,i.v7_relativeSplatPath));return F.useMemo(()=>cC(e,JSON.parse(o),a,r==="path"),[e,o,a,r])}function lF(e,n){return cF(e,n)}function cF(e,n,r,i){wu()||cn(!1);let{navigator:s}=F.useContext(Qa),{matches:a}=F.useContext(Ya),o=a[a.length-1],c=o?o.params:{};o&&o.pathname;let d=o?o.pathnameBase:"/";o&&o.route;let f=Xa(),h;if(n){var m;let y=typeof n=="string"?bl(n):n;d==="/"||(m=y.pathname)!=null&&m.startsWith(d)||cn(!1),h=y}else h=f;let p=h.pathname||"/",g=p;if(d!=="/"){let y=d.replace(/^\//,"").split("/");g="/"+p.replace(/^\//,"").split("/").slice(y.length).join("/")}let b=FR(e,{pathname:g}),j=mF(b&&b.map(y=>Object.assign({},y,{params:Object.assign({},c,y.params),pathname:zs([d,s.encodeLocation?s.encodeLocation(y.pathname).pathname:y.pathname]),pathnameBase:y.pathnameBase==="/"?d:zs([d,s.encodeLocation?s.encodeLocation(y.pathnameBase).pathname:y.pathnameBase])})),a,r,i);return n&&j?F.createElement(cf.Provider,{value:{location:tu({pathname:"/",search:"",hash:"",state:null,key:"default"},h),navigationType:Fs.Pop}},j):j}function uF(){let e=yF(),n=rF(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,s={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return F.createElement(F.Fragment,null,F.createElement("h2",null,"Unexpected Application Error!"),F.createElement("h3",{style:{fontStyle:"italic"}},n),r?F.createElement("pre",{style:s},r):null,null)}const dF=F.createElement(uF,null);class hF extends F.Component{constructor(n){super(n),this.state={location:n.location,revalidation:n.revalidation,error:n.error}}static getDerivedStateFromError(n){return{error:n}}static getDerivedStateFromProps(n,r){return r.location!==n.location||r.revalidation!=="idle"&&n.revalidation==="idle"?{error:n.error,location:n.location,revalidation:n.revalidation}:{error:n.error!==void 0?n.error:r.error,location:r.location,revalidation:n.revalidation||r.revalidation}}componentDidCatch(n,r){console.error("React Router caught the following error during render",n,r)}render(){return this.state.error!==void 0?F.createElement(Ya.Provider,{value:this.props.routeContext},F.createElement(dC.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function fF(e){let{routeContext:n,match:r,children:i}=e,s=F.useContext(sv);return s&&s.static&&s.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(s.staticContext._deepestRenderedBoundaryId=r.route.id),F.createElement(Ya.Provider,{value:n},i)}function mF(e,n,r,i){var s;if(n===void 0&&(n=[]),r===void 0&&(r=null),i===void 0&&(i=null),e==null){var a;if(!r)return null;if(r.errors)e=r.matches;else if((a=i)!=null&&a.v7_partialHydration&&n.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let o=e,c=(s=r)==null?void 0:s.errors;if(c!=null){let h=o.findIndex(m=>m.route.id&&(c==null?void 0:c[m.route.id])!==void 0);h>=0||cn(!1),o=o.slice(0,Math.min(o.length,h+1))}let d=!1,f=-1;if(r&&i&&i.v7_partialHydration)for(let h=0;h<o.length;h++){let m=o[h];if((m.route.HydrateFallback||m.route.hydrateFallbackElement)&&(f=h),m.route.id){let{loaderData:p,errors:g}=r,b=m.route.loader&&p[m.route.id]===void 0&&(!g||g[m.route.id]===void 0);if(m.route.lazy||b){d=!0,f>=0?o=o.slice(0,f+1):o=[o[0]];break}}}return o.reduceRight((h,m,p)=>{let g,b=!1,j=null,y=null;r&&(g=c&&m.route.id?c[m.route.id]:void 0,j=m.route.errorElement||dF,d&&(f<0&&p===0?(bF("route-fallback"),b=!0,y=null):f===p&&(b=!0,y=m.route.hydrateFallbackElement||null)));let x=n.concat(o.slice(0,p+1)),N=()=>{let w;return g?w=j:b?w=y:m.route.Component?w=F.createElement(m.route.Component,null):m.route.element?w=m.route.element:w=h,F.createElement(fF,{match:m,routeContext:{outlet:h,matches:x,isDataRoute:r!=null},children:w})};return r&&(m.route.ErrorBoundary||m.route.errorElement||p===0)?F.createElement(hF,{location:r.location,revalidation:r.revalidation,component:j,error:g,children:N(),routeContext:{outlet:null,matches:x,isDataRoute:!0}}):N()},null)}var mC=(function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e})(mC||{}),pC=(function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e})(pC||{});function pF(e){let n=F.useContext(sv);return n||cn(!1),n}function gF(e){let n=F.useContext(sF);return n||cn(!1),n}function xF(e){let n=F.useContext(Ya);return n||cn(!1),n}function gC(e){let n=xF(),r=n.matches[n.matches.length-1];return r.route.id||cn(!1),r.route.id}function yF(){var e;let n=F.useContext(dC),r=gF(),i=gC();return n!==void 0?n:(e=r.errors)==null?void 0:e[i]}function vF(){let{router:e}=pF(mC.UseNavigateStable),n=gC(pC.UseNavigateStable),r=F.useRef(!1);return hC(()=>{r.current=!0}),F.useCallback(function(s,a){a===void 0&&(a={}),r.current&&(typeof s=="number"?e.navigate(s):e.navigate(s,tu({fromRouteId:n},a)))},[e,n])}const K1={};function bF(e,n,r){K1[e]||(K1[e]=!0)}function jF(e,n){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function vh(e){cn(!1)}function wF(e){let{basename:n="/",children:r=null,location:i,navigationType:s=Fs.Pop,navigator:a,static:o=!1,future:c}=e;wu()&&cn(!1);let d=n.replace(/^\/*/,"/"),f=F.useMemo(()=>({basename:d,navigator:a,static:o,future:tu({v7_relativeSplatPath:!1},c)}),[d,c,a,o]);typeof i=="string"&&(i=bl(i));let{pathname:h="/",search:m="",hash:p="",state:g=null,key:b="default"}=i,j=F.useMemo(()=>{let y=iv(h,d);return y==null?null:{location:{pathname:y,search:m,hash:p,state:g,key:b},navigationType:s}},[d,h,m,p,g,b,s]);return j==null?null:F.createElement(Qa.Provider,{value:f},F.createElement(cf.Provider,{children:r,value:j}))}function NF(e){let{children:n,location:r}=e;return lF(Uy(n),r)}new Promise(()=>{});function Uy(e,n){n===void 0&&(n=[]);let r=[];return F.Children.forEach(e,(i,s)=>{if(!F.isValidElement(i))return;let a=[...n,s];if(i.type===F.Fragment){r.push.apply(r,Uy(i.props.children,a));return}i.type!==vh&&cn(!1),!i.props.index||!i.props.children||cn(!1);let o={id:i.props.id||a.join("-"),caseSensitive:i.props.caseSensitive,element:i.props.element,Component:i.props.Component,index:i.props.index,path:i.props.path,loader:i.props.loader,action:i.props.action,errorElement:i.props.errorElement,ErrorBoundary:i.props.ErrorBoundary,hasErrorBoundary:i.props.ErrorBoundary!=null||i.props.errorElement!=null,shouldRevalidate:i.props.shouldRevalidate,handle:i.props.handle,lazy:i.props.lazy};i.props.children&&(o.children=Uy(i.props.children,a)),r.push(o)}),r}/**
 * React Router DOM v6.30.1
 *
 * Copyright (c) Remix Software Inc.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE.md file in the root directory of this source tree.
 *
 * @license MIT
 */function $y(){return $y=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},$y.apply(this,arguments)}function kF(e,n){if(e==null)return{};var r={},i=Object.keys(e),s,a;for(a=0;a<i.length;a++)s=i[a],!(n.indexOf(s)>=0)&&(r[s]=e[s]);return r}function _F(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function SF(e,n){return e.button===0&&(!n||n==="_self")&&!_F(e)}const AF=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],CF="6";try{window.__reactRouterVersion=CF}catch{}const EF="startTransition",G1=Q0[EF];function TF(e){let{basename:n,children:r,future:i,window:s}=e,a=F.useRef();a.current==null&&(a.current=DR({window:s,v5Compat:!0}));let o=a.current,[c,d]=F.useState({action:o.action,location:o.location}),{v7_startTransition:f}=i||{},h=F.useCallback(m=>{f&&G1?G1(()=>d(m)):d(m)},[d,f]);return F.useLayoutEffect(()=>o.listen(h),[o,h]),F.useEffect(()=>jF(i),[i]),F.createElement(wF,{basename:n,children:r,location:c.location,navigationType:c.action,navigator:o,future:i})}const PF=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",OF=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,fe=F.forwardRef(function(n,r){let{onClick:i,relative:s,reloadDocument:a,replace:o,state:c,target:d,to:f,preventScrollReset:h,viewTransition:m}=n,p=kF(n,AF),{basename:g}=F.useContext(Qa),b,j=!1;if(typeof f=="string"&&OF.test(f)&&(b=f,PF))try{let w=new URL(window.location.href),k=f.startsWith("//")?new URL(w.protocol+f):new URL(f),A=iv(k.pathname,g);k.origin===w.origin&&A!=null?f=A+k.search+k.hash:j=!0}catch{}let y=aF(f,{relative:s}),x=DF(f,{replace:o,state:c,target:d,preventScrollReset:h,relative:s,viewTransition:m});function N(w){i&&i(w),w.defaultPrevented||x(w)}return F.createElement("a",$y({},p,{href:b||y,onClick:j||a?i:N,ref:r,target:d}))});var Q1;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Q1||(Q1={}));var Y1;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Y1||(Y1={}));function DF(e,n){let{target:r,replace:i,state:s,preventScrollReset:a,relative:o,viewTransition:c}=n===void 0?{}:n,d=jl(),f=Xa(),h=fC(e,{relative:o});return F.useCallback(m=>{if(SF(m,r)){m.preventDefault();let p=i!==void 0?i:Bh(f)===Bh(h);d(e,{replace:p,state:s,preventScrollReset:a,relative:o,viewTransition:c})}},[f,d,h,i,s,r,e,a,o,c])}function xC(e,n){return function(){return e.apply(n,arguments)}}const{toString:IF}=Object.prototype,{getPrototypeOf:av}=Object,{iterator:uf,toStringTag:yC}=Symbol,df=(e=>n=>{const r=IF.call(n);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),Gr=e=>(e=e.toLowerCase(),n=>df(n)===e),hf=e=>n=>typeof n===e,{isArray:wl}=Array,cl=hf("undefined");function Nu(e){return e!==null&&!cl(e)&&e.constructor!==null&&!cl(e.constructor)&&er(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const vC=Gr("ArrayBuffer");function RF(e){let n;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?n=ArrayBuffer.isView(e):n=e&&e.buffer&&vC(e.buffer),n}const FF=hf("string"),er=hf("function"),bC=hf("number"),ku=e=>e!==null&&typeof e=="object",MF=e=>e===!0||e===!1,bh=e=>{if(df(e)!=="object")return!1;const n=av(e);return(n===null||n===Object.prototype||Object.getPrototypeOf(n)===null)&&!(yC in e)&&!(uf in e)},LF=e=>{if(!ku(e)||Nu(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},BF=Gr("Date"),qF=Gr("File"),zF=Gr("Blob"),VF=Gr("FileList"),UF=e=>ku(e)&&er(e.pipe),$F=e=>{let n;return e&&(typeof FormData=="function"&&e instanceof FormData||er(e.append)&&((n=df(e))==="formdata"||n==="object"&&er(e.toString)&&e.toString()==="[object FormData]"))},HF=Gr("URLSearchParams"),[WF,KF,GF,QF]=["ReadableStream","Request","Response","Headers"].map(Gr),YF=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function _u(e,n,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let i,s;if(typeof e!="object"&&(e=[e]),wl(e))for(i=0,s=e.length;i<s;i++)n.call(null,e[i],i,e);else{if(Nu(e))return;const a=r?Object.getOwnPropertyNames(e):Object.keys(e),o=a.length;let c;for(i=0;i<o;i++)c=a[i],n.call(null,e[c],c,e)}}function jC(e,n){if(Nu(e))return null;n=n.toLowerCase();const r=Object.keys(e);let i=r.length,s;for(;i-- >0;)if(s=r[i],n===s.toLowerCase())return s;return null}const _a=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,wC=e=>!cl(e)&&e!==_a;function Hy(){const{caseless:e,skipUndefined:n}=wC(this)&&this||{},r={},i=(s,a)=>{const o=e&&jC(r,a)||a;bh(r[o])&&bh(s)?r[o]=Hy(r[o],s):bh(s)?r[o]=Hy({},s):wl(s)?r[o]=s.slice():(!n||!cl(s))&&(r[o]=s)};for(let s=0,a=arguments.length;s<a;s++)arguments[s]&&_u(arguments[s],i);return r}const XF=(e,n,r,{allOwnKeys:i}={})=>(_u(n,(s,a)=>{r&&er(s)?e[a]=xC(s,r):e[a]=s},{allOwnKeys:i}),e),JF=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),ZF=(e,n,r,i)=>{e.prototype=Object.create(n.prototype,i),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:n.prototype}),r&&Object.assign(e.prototype,r)},e8=(e,n,r,i)=>{let s,a,o;const c={};if(n=n||{},e==null)return n;do{for(s=Object.getOwnPropertyNames(e),a=s.length;a-- >0;)o=s[a],(!i||i(o,e,n))&&!c[o]&&(n[o]=e[o],c[o]=!0);e=r!==!1&&av(e)}while(e&&(!r||r(e,n))&&e!==Object.prototype);return n},t8=(e,n,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=n.length;const i=e.indexOf(n,r);return i!==-1&&i===r},n8=e=>{if(!e)return null;if(wl(e))return e;let n=e.length;if(!bC(n))return null;const r=new Array(n);for(;n-- >0;)r[n]=e[n];return r},r8=(e=>n=>e&&n instanceof e)(typeof Uint8Array<"u"&&av(Uint8Array)),i8=(e,n)=>{const i=(e&&e[uf]).call(e);let s;for(;(s=i.next())&&!s.done;){const a=s.value;n.call(e,a[0],a[1])}},s8=(e,n)=>{let r;const i=[];for(;(r=e.exec(n))!==null;)i.push(r);return i},a8=Gr("HTMLFormElement"),o8=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,i,s){return i.toUpperCase()+s}),X1=(({hasOwnProperty:e})=>(n,r)=>e.call(n,r))(Object.prototype),l8=Gr("RegExp"),NC=(e,n)=>{const r=Object.getOwnPropertyDescriptors(e),i={};_u(r,(s,a)=>{let o;(o=n(s,a,e))!==!1&&(i[a]=o||s)}),Object.defineProperties(e,i)},c8=e=>{NC(e,(n,r)=>{if(er(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const i=e[r];if(er(i)){if(n.enumerable=!1,"writable"in n){n.writable=!1;return}n.set||(n.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},u8=(e,n)=>{const r={},i=s=>{s.forEach(a=>{r[a]=!0})};return wl(e)?i(e):i(String(e).split(n)),r},d8=()=>{},h8=(e,n)=>e!=null&&Number.isFinite(e=+e)?e:n;function f8(e){return!!(e&&er(e.append)&&e[yC]==="FormData"&&e[uf])}const m8=e=>{const n=new Array(10),r=(i,s)=>{if(ku(i)){if(n.indexOf(i)>=0)return;if(Nu(i))return i;if(!("toJSON"in i)){n[s]=i;const a=wl(i)?[]:{};return _u(i,(o,c)=>{const d=r(o,s+1);!cl(d)&&(a[c]=d)}),n[s]=void 0,a}}return i};return r(e,0)},p8=Gr("AsyncFunction"),g8=e=>e&&(ku(e)||er(e))&&er(e.then)&&er(e.catch),kC=((e,n)=>e?setImmediate:n?((r,i)=>(_a.addEventListener("message",({source:s,data:a})=>{s===_a&&a===r&&i.length&&i.shift()()},!1),s=>{i.push(s),_a.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",er(_a.postMessage)),x8=typeof queueMicrotask<"u"?queueMicrotask.bind(_a):typeof process<"u"&&process.nextTick||kC,y8=e=>e!=null&&er(e[uf]),pe={isArray:wl,isArrayBuffer:vC,isBuffer:Nu,isFormData:$F,isArrayBufferView:RF,isString:FF,isNumber:bC,isBoolean:MF,isObject:ku,isPlainObject:bh,isEmptyObject:LF,isReadableStream:WF,isRequest:KF,isResponse:GF,isHeaders:QF,isUndefined:cl,isDate:BF,isFile:qF,isBlob:zF,isRegExp:l8,isFunction:er,isStream:UF,isURLSearchParams:HF,isTypedArray:r8,isFileList:VF,forEach:_u,merge:Hy,extend:XF,trim:YF,stripBOM:JF,inherits:ZF,toFlatObject:e8,kindOf:df,kindOfTest:Gr,endsWith:t8,toArray:n8,forEachEntry:i8,matchAll:s8,isHTMLForm:a8,hasOwnProperty:X1,hasOwnProp:X1,reduceDescriptors:NC,freezeMethods:c8,toObjectSet:u8,toCamelCase:o8,noop:d8,toFiniteNumber:h8,findKey:jC,global:_a,isContextDefined:wC,isSpecCompliantForm:f8,toJSONObject:m8,isAsyncFn:p8,isThenable:g8,setImmediate:kC,asap:x8,isIterable:y8};function at(e,n,r,i,s){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",n&&(this.code=n),r&&(this.config=r),i&&(this.request=i),s&&(this.response=s,this.status=s.status?s.status:null)}pe.inherits(at,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:pe.toJSONObject(this.config),code:this.code,status:this.status}}});const _C=at.prototype,SC={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{SC[e]={value:e}});Object.defineProperties(at,SC);Object.defineProperty(_C,"isAxiosError",{value:!0});at.from=(e,n,r,i,s,a)=>{const o=Object.create(_C);pe.toFlatObject(e,o,function(h){return h!==Error.prototype},f=>f!=="isAxiosError");const c=e&&e.message?e.message:"Error",d=n==null&&e?e.code:n;return at.call(o,c,d,r,i,s),e&&o.cause==null&&Object.defineProperty(o,"cause",{value:e,configurable:!0}),o.name=e&&e.name||"Error",a&&Object.assign(o,a),o};const v8=null;function Wy(e){return pe.isPlainObject(e)||pe.isArray(e)}function AC(e){return pe.endsWith(e,"[]")?e.slice(0,-2):e}function J1(e,n,r){return e?e.concat(n).map(function(s,a){return s=AC(s),!r&&a?"["+s+"]":s}).join(r?".":""):n}function b8(e){return pe.isArray(e)&&!e.some(Wy)}const j8=pe.toFlatObject(pe,{},null,function(n){return/^is[A-Z]/.test(n)});function ff(e,n,r){if(!pe.isObject(e))throw new TypeError("target must be an object");n=n||new FormData,r=pe.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(j,y){return!pe.isUndefined(y[j])});const i=r.metaTokens,s=r.visitor||h,a=r.dots,o=r.indexes,d=(r.Blob||typeof Blob<"u"&&Blob)&&pe.isSpecCompliantForm(n);if(!pe.isFunction(s))throw new TypeError("visitor must be a function");function f(b){if(b===null)return"";if(pe.isDate(b))return b.toISOString();if(pe.isBoolean(b))return b.toString();if(!d&&pe.isBlob(b))throw new at("Blob is not supported. Use a Buffer instead.");return pe.isArrayBuffer(b)||pe.isTypedArray(b)?d&&typeof Blob=="function"?new Blob([b]):Buffer.from(b):b}function h(b,j,y){let x=b;if(b&&!y&&typeof b=="object"){if(pe.endsWith(j,"{}"))j=i?j:j.slice(0,-2),b=JSON.stringify(b);else if(pe.isArray(b)&&b8(b)||(pe.isFileList(b)||pe.endsWith(j,"[]"))&&(x=pe.toArray(b)))return j=AC(j),x.forEach(function(w,k){!(pe.isUndefined(w)||w===null)&&n.append(o===!0?J1([j],k,a):o===null?j:j+"[]",f(w))}),!1}return Wy(b)?!0:(n.append(J1(y,j,a),f(b)),!1)}const m=[],p=Object.assign(j8,{defaultVisitor:h,convertValue:f,isVisitable:Wy});function g(b,j){if(!pe.isUndefined(b)){if(m.indexOf(b)!==-1)throw Error("Circular reference detected in "+j.join("."));m.push(b),pe.forEach(b,function(x,N){(!(pe.isUndefined(x)||x===null)&&s.call(n,x,pe.isString(N)?N.trim():N,j,p))===!0&&g(x,j?j.concat(N):[N])}),m.pop()}}if(!pe.isObject(e))throw new TypeError("data must be an object");return g(e),n}function Z1(e){const n={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(i){return n[i]})}function ov(e,n){this._pairs=[],e&&ff(e,this,n)}const CC=ov.prototype;CC.append=function(n,r){this._pairs.push([n,r])};CC.toString=function(n){const r=n?function(i){return n.call(this,i,Z1)}:Z1;return this._pairs.map(function(s){return r(s[0])+"="+r(s[1])},"").join("&")};function w8(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function EC(e,n,r){if(!n)return e;const i=r&&r.encode||w8;pe.isFunction(r)&&(r={serialize:r});const s=r&&r.serialize;let a;if(s?a=s(n,r):a=pe.isURLSearchParams(n)?n.toString():new ov(n,r).toString(i),a){const o=e.indexOf("#");o!==-1&&(e=e.slice(0,o)),e+=(e.indexOf("?")===-1?"?":"&")+a}return e}class eN{constructor(){this.handlers=[]}use(n,r,i){return this.handlers.push({fulfilled:n,rejected:r,synchronous:i?i.synchronous:!1,runWhen:i?i.runWhen:null}),this.handlers.length-1}eject(n){this.handlers[n]&&(this.handlers[n]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(n){pe.forEach(this.handlers,function(i){i!==null&&n(i)})}}const TC={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},N8=typeof URLSearchParams<"u"?URLSearchParams:ov,k8=typeof FormData<"u"?FormData:null,_8=typeof Blob<"u"?Blob:null,S8={isBrowser:!0,classes:{URLSearchParams:N8,FormData:k8,Blob:_8},protocols:["http","https","file","blob","url","data"]},lv=typeof window<"u"&&typeof document<"u",Ky=typeof navigator=="object"&&navigator||void 0,A8=lv&&(!Ky||["ReactNative","NativeScript","NS"].indexOf(Ky.product)<0),C8=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",E8=lv&&window.location.href||"http://localhost",T8=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:lv,hasStandardBrowserEnv:A8,hasStandardBrowserWebWorkerEnv:C8,navigator:Ky,origin:E8},Symbol.toStringTag,{value:"Module"})),Pn={...T8,...S8};function P8(e,n){return ff(e,new Pn.classes.URLSearchParams,{visitor:function(r,i,s,a){return Pn.isNode&&pe.isBuffer(r)?(this.append(i,r.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)},...n})}function O8(e){return pe.matchAll(/\w+|\[(\w*)]/g,e).map(n=>n[0]==="[]"?"":n[1]||n[0])}function D8(e){const n={},r=Object.keys(e);let i;const s=r.length;let a;for(i=0;i<s;i++)a=r[i],n[a]=e[a];return n}function PC(e){function n(r,i,s,a){let o=r[a++];if(o==="__proto__")return!0;const c=Number.isFinite(+o),d=a>=r.length;return o=!o&&pe.isArray(s)?s.length:o,d?(pe.hasOwnProp(s,o)?s[o]=[s[o],i]:s[o]=i,!c):((!s[o]||!pe.isObject(s[o]))&&(s[o]=[]),n(r,i,s[o],a)&&pe.isArray(s[o])&&(s[o]=D8(s[o])),!c)}if(pe.isFormData(e)&&pe.isFunction(e.entries)){const r={};return pe.forEachEntry(e,(i,s)=>{n(O8(i),s,r,0)}),r}return null}function I8(e,n,r){if(pe.isString(e))try{return(n||JSON.parse)(e),pe.trim(e)}catch(i){if(i.name!=="SyntaxError")throw i}return(r||JSON.stringify)(e)}const Su={transitional:TC,adapter:["xhr","http","fetch"],transformRequest:[function(n,r){const i=r.getContentType()||"",s=i.indexOf("application/json")>-1,a=pe.isObject(n);if(a&&pe.isHTMLForm(n)&&(n=new FormData(n)),pe.isFormData(n))return s?JSON.stringify(PC(n)):n;if(pe.isArrayBuffer(n)||pe.isBuffer(n)||pe.isStream(n)||pe.isFile(n)||pe.isBlob(n)||pe.isReadableStream(n))return n;if(pe.isArrayBufferView(n))return n.buffer;if(pe.isURLSearchParams(n))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),n.toString();let c;if(a){if(i.indexOf("application/x-www-form-urlencoded")>-1)return P8(n,this.formSerializer).toString();if((c=pe.isFileList(n))||i.indexOf("multipart/form-data")>-1){const d=this.env&&this.env.FormData;return ff(c?{"files[]":n}:n,d&&new d,this.formSerializer)}}return a||s?(r.setContentType("application/json",!1),I8(n)):n}],transformResponse:[function(n){const r=this.transitional||Su.transitional,i=r&&r.forcedJSONParsing,s=this.responseType==="json";if(pe.isResponse(n)||pe.isReadableStream(n))return n;if(n&&pe.isString(n)&&(i&&!this.responseType||s)){const o=!(r&&r.silentJSONParsing)&&s;try{return JSON.parse(n,this.parseReviver)}catch(c){if(o)throw c.name==="SyntaxError"?at.from(c,at.ERR_BAD_RESPONSE,this,null,this.response):c}}return n}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Pn.classes.FormData,Blob:Pn.classes.Blob},validateStatus:function(n){return n>=200&&n<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};pe.forEach(["delete","get","head","post","put","patch"],e=>{Su.headers[e]={}});const R8=pe.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),F8=e=>{const n={};let r,i,s;return e&&e.split(`
`).forEach(function(o){s=o.indexOf(":"),r=o.substring(0,s).trim().toLowerCase(),i=o.substring(s+1).trim(),!(!r||n[r]&&R8[r])&&(r==="set-cookie"?n[r]?n[r].push(i):n[r]=[i]:n[r]=n[r]?n[r]+", "+i:i)}),n},tN=Symbol("internals");function xc(e){return e&&String(e).trim().toLowerCase()}function jh(e){return e===!1||e==null?e:pe.isArray(e)?e.map(jh):String(e)}function M8(e){const n=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let i;for(;i=r.exec(e);)n[i[1]]=i[2];return n}const L8=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function $p(e,n,r,i,s){if(pe.isFunction(i))return i.call(this,n,r);if(s&&(n=r),!!pe.isString(n)){if(pe.isString(i))return n.indexOf(i)!==-1;if(pe.isRegExp(i))return i.test(n)}}function B8(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(n,r,i)=>r.toUpperCase()+i)}function q8(e,n){const r=pe.toCamelCase(" "+n);["get","set","has"].forEach(i=>{Object.defineProperty(e,i+r,{value:function(s,a,o){return this[i].call(this,n,s,a,o)},configurable:!0})})}let tr=class{constructor(n){n&&this.set(n)}set(n,r,i){const s=this;function a(c,d,f){const h=xc(d);if(!h)throw new Error("header name must be a non-empty string");const m=pe.findKey(s,h);(!m||s[m]===void 0||f===!0||f===void 0&&s[m]!==!1)&&(s[m||d]=jh(c))}const o=(c,d)=>pe.forEach(c,(f,h)=>a(f,h,d));if(pe.isPlainObject(n)||n instanceof this.constructor)o(n,r);else if(pe.isString(n)&&(n=n.trim())&&!L8(n))o(F8(n),r);else if(pe.isObject(n)&&pe.isIterable(n)){let c={},d,f;for(const h of n){if(!pe.isArray(h))throw TypeError("Object iterator must return a key-value pair");c[f=h[0]]=(d=c[f])?pe.isArray(d)?[...d,h[1]]:[d,h[1]]:h[1]}o(c,r)}else n!=null&&a(r,n,i);return this}get(n,r){if(n=xc(n),n){const i=pe.findKey(this,n);if(i){const s=this[i];if(!r)return s;if(r===!0)return M8(s);if(pe.isFunction(r))return r.call(this,s,i);if(pe.isRegExp(r))return r.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(n,r){if(n=xc(n),n){const i=pe.findKey(this,n);return!!(i&&this[i]!==void 0&&(!r||$p(this,this[i],i,r)))}return!1}delete(n,r){const i=this;let s=!1;function a(o){if(o=xc(o),o){const c=pe.findKey(i,o);c&&(!r||$p(i,i[c],c,r))&&(delete i[c],s=!0)}}return pe.isArray(n)?n.forEach(a):a(n),s}clear(n){const r=Object.keys(this);let i=r.length,s=!1;for(;i--;){const a=r[i];(!n||$p(this,this[a],a,n,!0))&&(delete this[a],s=!0)}return s}normalize(n){const r=this,i={};return pe.forEach(this,(s,a)=>{const o=pe.findKey(i,a);if(o){r[o]=jh(s),delete r[a];return}const c=n?B8(a):String(a).trim();c!==a&&delete r[a],r[c]=jh(s),i[c]=!0}),this}concat(...n){return this.constructor.concat(this,...n)}toJSON(n){const r=Object.create(null);return pe.forEach(this,(i,s)=>{i!=null&&i!==!1&&(r[s]=n&&pe.isArray(i)?i.join(", "):i)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([n,r])=>n+": "+r).join(`
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(n){return n instanceof this?n:new this(n)}static concat(n,...r){const i=new this(n);return r.forEach(s=>i.set(s)),i}static accessor(n){const i=(this[tN]=this[tN]={accessors:{}}).accessors,s=this.prototype;function a(o){const c=xc(o);i[c]||(q8(s,o),i[c]=!0)}return pe.isArray(n)?n.forEach(a):a(n),this}};tr.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);pe.reduceDescriptors(tr.prototype,({value:e},n)=>{let r=n[0].toUpperCase()+n.slice(1);return{get:()=>e,set(i){this[r]=i}}});pe.freezeMethods(tr);function Hp(e,n){const r=this||Su,i=n||r,s=tr.from(i.headers);let a=i.data;return pe.forEach(e,function(c){a=c.call(r,a,s.normalize(),n?n.status:void 0)}),s.normalize(),a}function OC(e){return!!(e&&e.__CANCEL__)}function Nl(e,n,r){at.call(this,e??"canceled",at.ERR_CANCELED,n,r),this.name="CanceledError"}pe.inherits(Nl,at,{__CANCEL__:!0});function DC(e,n,r){const i=r.config.validateStatus;!r.status||!i||i(r.status)?e(r):n(new at("Request failed with status code "+r.status,[at.ERR_BAD_REQUEST,at.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function z8(e){const n=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return n&&n[1]||""}function V8(e,n){e=e||10;const r=new Array(e),i=new Array(e);let s=0,a=0,o;return n=n!==void 0?n:1e3,function(d){const f=Date.now(),h=i[a];o||(o=f),r[s]=d,i[s]=f;let m=a,p=0;for(;m!==s;)p+=r[m++],m=m%e;if(s=(s+1)%e,s===a&&(a=(a+1)%e),f-o<n)return;const g=h&&f-h;return g?Math.round(p*1e3/g):void 0}}function U8(e,n){let r=0,i=1e3/n,s,a;const o=(f,h=Date.now())=>{r=h,s=null,a&&(clearTimeout(a),a=null),e(...f)};return[(...f)=>{const h=Date.now(),m=h-r;m>=i?o(f,h):(s=f,a||(a=setTimeout(()=>{a=null,o(s)},i-m)))},()=>s&&o(s)]}const qh=(e,n,r=3)=>{let i=0;const s=V8(50,250);return U8(a=>{const o=a.loaded,c=a.lengthComputable?a.total:void 0,d=o-i,f=s(d),h=o<=c;i=o;const m={loaded:o,total:c,progress:c?o/c:void 0,bytes:d,rate:f||void 0,estimated:f&&c&&h?(c-o)/f:void 0,event:a,lengthComputable:c!=null,[n?"download":"upload"]:!0};e(m)},r)},nN=(e,n)=>{const r=e!=null;return[i=>n[0]({lengthComputable:r,total:e,loaded:i}),n[1]]},rN=e=>(...n)=>pe.asap(()=>e(...n)),$8=Pn.hasStandardBrowserEnv?((e,n)=>r=>(r=new URL(r,Pn.origin),e.protocol===r.protocol&&e.host===r.host&&(n||e.port===r.port)))(new URL(Pn.origin),Pn.navigator&&/(msie|trident)/i.test(Pn.navigator.userAgent)):()=>!0,H8=Pn.hasStandardBrowserEnv?{write(e,n,r,i,s,a){const o=[e+"="+encodeURIComponent(n)];pe.isNumber(r)&&o.push("expires="+new Date(r).toGMTString()),pe.isString(i)&&o.push("path="+i),pe.isString(s)&&o.push("domain="+s),a===!0&&o.push("secure"),document.cookie=o.join("; ")},read(e){const n=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return n?decodeURIComponent(n[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function W8(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function K8(e,n){return n?e.replace(/\/?\/$/,"")+"/"+n.replace(/^\/+/,""):e}function IC(e,n,r){let i=!W8(n);return e&&(i||r==!1)?K8(e,n):n}const iN=e=>e instanceof tr?{...e}:e;function Ua(e,n){n=n||{};const r={};function i(f,h,m,p){return pe.isPlainObject(f)&&pe.isPlainObject(h)?pe.merge.call({caseless:p},f,h):pe.isPlainObject(h)?pe.merge({},h):pe.isArray(h)?h.slice():h}function s(f,h,m,p){if(pe.isUndefined(h)){if(!pe.isUndefined(f))return i(void 0,f,m,p)}else return i(f,h,m,p)}function a(f,h){if(!pe.isUndefined(h))return i(void 0,h)}function o(f,h){if(pe.isUndefined(h)){if(!pe.isUndefined(f))return i(void 0,f)}else return i(void 0,h)}function c(f,h,m){if(m in n)return i(f,h);if(m in e)return i(void 0,f)}const d={url:a,method:a,data:a,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:c,headers:(f,h,m)=>s(iN(f),iN(h),m,!0)};return pe.forEach(Object.keys({...e,...n}),function(h){const m=d[h]||s,p=m(e[h],n[h],h);pe.isUndefined(p)&&m!==c||(r[h]=p)}),r}const RC=e=>{const n=Ua({},e);let{data:r,withXSRFToken:i,xsrfHeaderName:s,xsrfCookieName:a,headers:o,auth:c}=n;if(n.headers=o=tr.from(o),n.url=EC(IC(n.baseURL,n.url,n.allowAbsoluteUrls),e.params,e.paramsSerializer),c&&o.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):""))),pe.isFormData(r)){if(Pn.hasStandardBrowserEnv||Pn.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if(pe.isFunction(r.getHeaders)){const d=r.getHeaders(),f=["content-type","content-length"];Object.entries(d).forEach(([h,m])=>{f.includes(h.toLowerCase())&&o.set(h,m)})}}if(Pn.hasStandardBrowserEnv&&(i&&pe.isFunction(i)&&(i=i(n)),i||i!==!1&&$8(n.url))){const d=s&&a&&H8.read(a);d&&o.set(s,d)}return n},G8=typeof XMLHttpRequest<"u",Q8=G8&&function(e){return new Promise(function(r,i){const s=RC(e);let a=s.data;const o=tr.from(s.headers).normalize();let{responseType:c,onUploadProgress:d,onDownloadProgress:f}=s,h,m,p,g,b;function j(){g&&g(),b&&b(),s.cancelToken&&s.cancelToken.unsubscribe(h),s.signal&&s.signal.removeEventListener("abort",h)}let y=new XMLHttpRequest;y.open(s.method.toUpperCase(),s.url,!0),y.timeout=s.timeout;function x(){if(!y)return;const w=tr.from("getAllResponseHeaders"in y&&y.getAllResponseHeaders()),A={data:!c||c==="text"||c==="json"?y.responseText:y.response,status:y.status,statusText:y.statusText,headers:w,config:e,request:y};DC(function(E){r(E),j()},function(E){i(E),j()},A),y=null}"onloadend"in y?y.onloadend=x:y.onreadystatechange=function(){!y||y.readyState!==4||y.status===0&&!(y.responseURL&&y.responseURL.indexOf("file:")===0)||setTimeout(x)},y.onabort=function(){y&&(i(new at("Request aborted",at.ECONNABORTED,e,y)),y=null)},y.onerror=function(k){const A=k&&k.message?k.message:"Network Error",S=new at(A,at.ERR_NETWORK,e,y);S.event=k||null,i(S),y=null},y.ontimeout=function(){let k=s.timeout?"timeout of "+s.timeout+"ms exceeded":"timeout exceeded";const A=s.transitional||TC;s.timeoutErrorMessage&&(k=s.timeoutErrorMessage),i(new at(k,A.clarifyTimeoutError?at.ETIMEDOUT:at.ECONNABORTED,e,y)),y=null},a===void 0&&o.setContentType(null),"setRequestHeader"in y&&pe.forEach(o.toJSON(),function(k,A){y.setRequestHeader(A,k)}),pe.isUndefined(s.withCredentials)||(y.withCredentials=!!s.withCredentials),c&&c!=="json"&&(y.responseType=s.responseType),f&&([p,b]=qh(f,!0),y.addEventListener("progress",p)),d&&y.upload&&([m,g]=qh(d),y.upload.addEventListener("progress",m),y.upload.addEventListener("loadend",g)),(s.cancelToken||s.signal)&&(h=w=>{y&&(i(!w||w.type?new Nl(null,e,y):w),y.abort(),y=null)},s.cancelToken&&s.cancelToken.subscribe(h),s.signal&&(s.signal.aborted?h():s.signal.addEventListener("abort",h)));const N=z8(s.url);if(N&&Pn.protocols.indexOf(N)===-1){i(new at("Unsupported protocol "+N+":",at.ERR_BAD_REQUEST,e));return}y.send(a||null)})},Y8=(e,n)=>{const{length:r}=e=e?e.filter(Boolean):[];if(n||r){let i=new AbortController,s;const a=function(f){if(!s){s=!0,c();const h=f instanceof Error?f:this.reason;i.abort(h instanceof at?h:new Nl(h instanceof Error?h.message:h))}};let o=n&&setTimeout(()=>{o=null,a(new at(`timeout ${n} of ms exceeded`,at.ETIMEDOUT))},n);const c=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach(f=>{f.unsubscribe?f.unsubscribe(a):f.removeEventListener("abort",a)}),e=null)};e.forEach(f=>f.addEventListener("abort",a));const{signal:d}=i;return d.unsubscribe=()=>pe.asap(c),d}},X8=function*(e,n){let r=e.byteLength;if(r<n){yield e;return}let i=0,s;for(;i<r;)s=i+n,yield e.slice(i,s),i=s},J8=async function*(e,n){for await(const r of Z8(e))yield*X8(r,n)},Z8=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const n=e.getReader();try{for(;;){const{done:r,value:i}=await n.read();if(r)break;yield i}}finally{await n.cancel()}},sN=(e,n,r,i)=>{const s=J8(e,n);let a=0,o,c=d=>{o||(o=!0,i&&i(d))};return new ReadableStream({async pull(d){try{const{done:f,value:h}=await s.next();if(f){c(),d.close();return}let m=h.byteLength;if(r){let p=a+=m;r(p)}d.enqueue(new Uint8Array(h))}catch(f){throw c(f),f}},cancel(d){return c(d),s.return()}},{highWaterMark:2})},aN=64*1024,{isFunction:Xd}=pe,eM=(({Request:e,Response:n})=>({Request:e,Response:n}))(pe.global),{ReadableStream:oN,TextEncoder:lN}=pe.global,cN=(e,...n)=>{try{return!!e(...n)}catch{return!1}},tM=e=>{e=pe.merge.call({skipUndefined:!0},eM,e);const{fetch:n,Request:r,Response:i}=e,s=n?Xd(n):typeof fetch=="function",a=Xd(r),o=Xd(i);if(!s)return!1;const c=s&&Xd(oN),d=s&&(typeof lN=="function"?(b=>j=>b.encode(j))(new lN):async b=>new Uint8Array(await new r(b).arrayBuffer())),f=a&&c&&cN(()=>{let b=!1;const j=new r(Pn.origin,{body:new oN,method:"POST",get duplex(){return b=!0,"half"}}).headers.has("Content-Type");return b&&!j}),h=o&&c&&cN(()=>pe.isReadableStream(new i("").body)),m={stream:h&&(b=>b.body)};s&&["text","arrayBuffer","blob","formData","stream"].forEach(b=>{!m[b]&&(m[b]=(j,y)=>{let x=j&&j[b];if(x)return x.call(j);throw new at(`Response type '${b}' is not supported`,at.ERR_NOT_SUPPORT,y)})});const p=async b=>{if(b==null)return 0;if(pe.isBlob(b))return b.size;if(pe.isSpecCompliantForm(b))return(await new r(Pn.origin,{method:"POST",body:b}).arrayBuffer()).byteLength;if(pe.isArrayBufferView(b)||pe.isArrayBuffer(b))return b.byteLength;if(pe.isURLSearchParams(b)&&(b=b+""),pe.isString(b))return(await d(b)).byteLength},g=async(b,j)=>{const y=pe.toFiniteNumber(b.getContentLength());return y??p(j)};return async b=>{let{url:j,method:y,data:x,signal:N,cancelToken:w,timeout:k,onDownloadProgress:A,onUploadProgress:S,responseType:E,headers:C,withCredentials:B="same-origin",fetchOptions:I}=RC(b),R=n||fetch;E=E?(E+"").toLowerCase():"text";let D=Y8([N,w&&w.toAbortSignal()],k),q=null;const z=D&&D.unsubscribe&&(()=>{D.unsubscribe()});let U;try{if(S&&f&&y!=="get"&&y!=="head"&&(U=await g(C,x))!==0){let T=new r(j,{method:"POST",body:x,duplex:"half"}),V;if(pe.isFormData(x)&&(V=T.headers.get("content-type"))&&C.setContentType(V),T.body){const[L,X]=nN(U,qh(rN(S)));x=sN(T.body,aN,L,X)}}pe.isString(B)||(B=B?"include":"omit");const Y=a&&"credentials"in r.prototype,H={...I,signal:D,method:y.toUpperCase(),headers:C.normalize().toJSON(),body:x,duplex:"half",credentials:Y?B:void 0};q=a&&new r(j,H);let K=await(a?R(q,I):R(j,H));const Q=h&&(E==="stream"||E==="response");if(h&&(A||Q&&z)){const T={};["status","statusText","headers"].forEach(J=>{T[J]=K[J]});const V=pe.toFiniteNumber(K.headers.get("content-length")),[L,X]=A&&nN(V,qh(rN(A),!0))||[];K=new i(sN(K.body,aN,L,()=>{X&&X(),z&&z()}),T)}E=E||"text";let O=await m[pe.findKey(m,E)||"text"](K,b);return!Q&&z&&z(),await new Promise((T,V)=>{DC(T,V,{data:O,headers:tr.from(K.headers),status:K.status,statusText:K.statusText,config:b,request:q})})}catch(Y){throw z&&z(),Y&&Y.name==="TypeError"&&/Load failed|fetch/i.test(Y.message)?Object.assign(new at("Network Error",at.ERR_NETWORK,b,q),{cause:Y.cause||Y}):at.from(Y,Y&&Y.code,b,q)}}},nM=new Map,FC=e=>{let n=e?e.env:{};const{fetch:r,Request:i,Response:s}=n,a=[i,s,r];let o=a.length,c=o,d,f,h=nM;for(;c--;)d=a[c],f=h.get(d),f===void 0&&h.set(d,f=c?new Map:tM(n)),h=f;return f};FC();const Gy={http:v8,xhr:Q8,fetch:{get:FC}};pe.forEach(Gy,(e,n)=>{if(e){try{Object.defineProperty(e,"name",{value:n})}catch{}Object.defineProperty(e,"adapterName",{value:n})}});const uN=e=>`- ${e}`,rM=e=>pe.isFunction(e)||e===null||e===!1,MC={getAdapter:(e,n)=>{e=pe.isArray(e)?e:[e];const{length:r}=e;let i,s;const a={};for(let o=0;o<r;o++){i=e[o];let c;if(s=i,!rM(i)&&(s=Gy[(c=String(i)).toLowerCase()],s===void 0))throw new at(`Unknown adapter '${c}'`);if(s&&(pe.isFunction(s)||(s=s.get(n))))break;a[c||"#"+o]=s}if(!s){const o=Object.entries(a).map(([d,f])=>`adapter ${d} `+(f===!1?"is not supported by the environment":"is not available in the build"));let c=r?o.length>1?`since :
`+o.map(uN).join(`
`):" "+uN(o[0]):"as no adapter specified";throw new at("There is no suitable adapter to dispatch the request "+c,"ERR_NOT_SUPPORT")}return s},adapters:Gy};function Wp(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Nl(null,e)}function dN(e){return Wp(e),e.headers=tr.from(e.headers),e.data=Hp.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),MC.getAdapter(e.adapter||Su.adapter,e)(e).then(function(i){return Wp(e),i.data=Hp.call(e,e.transformResponse,i),i.headers=tr.from(i.headers),i},function(i){return OC(i)||(Wp(e),i&&i.response&&(i.response.data=Hp.call(e,e.transformResponse,i.response),i.response.headers=tr.from(i.response.headers))),Promise.reject(i)})}const LC="1.12.2",mf={};["object","boolean","number","function","string","symbol"].forEach((e,n)=>{mf[e]=function(i){return typeof i===e||"a"+(n<1?"n ":" ")+e}});const hN={};mf.transitional=function(n,r,i){function s(a,o){return"[Axios v"+LC+"] Transitional option '"+a+"'"+o+(i?". "+i:"")}return(a,o,c)=>{if(n===!1)throw new at(s(o," has been removed"+(r?" in "+r:"")),at.ERR_DEPRECATED);return r&&!hN[o]&&(hN[o]=!0,console.warn(s(o," has been deprecated since v"+r+" and will be removed in the near future"))),n?n(a,o,c):!0}};mf.spelling=function(n){return(r,i)=>(console.warn(`${i} is likely a misspelling of ${n}`),!0)};function iM(e,n,r){if(typeof e!="object")throw new at("options must be an object",at.ERR_BAD_OPTION_VALUE);const i=Object.keys(e);let s=i.length;for(;s-- >0;){const a=i[s],o=n[a];if(o){const c=e[a],d=c===void 0||o(c,a,e);if(d!==!0)throw new at("option "+a+" must be "+d,at.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new at("Unknown option "+a,at.ERR_BAD_OPTION)}}const wh={assertOptions:iM,validators:mf},ti=wh.validators;let Ma=class{constructor(n){this.defaults=n||{},this.interceptors={request:new eN,response:new eN}}async request(n,r){try{return await this._request(n,r)}catch(i){if(i instanceof Error){let s={};Error.captureStackTrace?Error.captureStackTrace(s):s=new Error;const a=s.stack?s.stack.replace(/^.+\n/,""):"";try{i.stack?a&&!String(i.stack).endsWith(a.replace(/^.+\n.+\n/,""))&&(i.stack+=`
`+a):i.stack=a}catch{}}throw i}}_request(n,r){typeof n=="string"?(r=r||{},r.url=n):r=n||{},r=Ua(this.defaults,r);const{transitional:i,paramsSerializer:s,headers:a}=r;i!==void 0&&wh.assertOptions(i,{silentJSONParsing:ti.transitional(ti.boolean),forcedJSONParsing:ti.transitional(ti.boolean),clarifyTimeoutError:ti.transitional(ti.boolean)},!1),s!=null&&(pe.isFunction(s)?r.paramsSerializer={serialize:s}:wh.assertOptions(s,{encode:ti.function,serialize:ti.function},!0)),r.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?r.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:r.allowAbsoluteUrls=!0),wh.assertOptions(r,{baseUrl:ti.spelling("baseURL"),withXsrfToken:ti.spelling("withXSRFToken")},!0),r.method=(r.method||this.defaults.method||"get").toLowerCase();let o=a&&pe.merge(a.common,a[r.method]);a&&pe.forEach(["delete","get","head","post","put","patch","common"],b=>{delete a[b]}),r.headers=tr.concat(o,a);const c=[];let d=!0;this.interceptors.request.forEach(function(j){typeof j.runWhen=="function"&&j.runWhen(r)===!1||(d=d&&j.synchronous,c.unshift(j.fulfilled,j.rejected))});const f=[];this.interceptors.response.forEach(function(j){f.push(j.fulfilled,j.rejected)});let h,m=0,p;if(!d){const b=[dN.bind(this),void 0];for(b.unshift(...c),b.push(...f),p=b.length,h=Promise.resolve(r);m<p;)h=h.then(b[m++],b[m++]);return h}p=c.length;let g=r;for(;m<p;){const b=c[m++],j=c[m++];try{g=b(g)}catch(y){j.call(this,y);break}}try{h=dN.call(this,g)}catch(b){return Promise.reject(b)}for(m=0,p=f.length;m<p;)h=h.then(f[m++],f[m++]);return h}getUri(n){n=Ua(this.defaults,n);const r=IC(n.baseURL,n.url,n.allowAbsoluteUrls);return EC(r,n.params,n.paramsSerializer)}};pe.forEach(["delete","get","head","options"],function(n){Ma.prototype[n]=function(r,i){return this.request(Ua(i||{},{method:n,url:r,data:(i||{}).data}))}});pe.forEach(["post","put","patch"],function(n){function r(i){return function(a,o,c){return this.request(Ua(c||{},{method:n,headers:i?{"Content-Type":"multipart/form-data"}:{},url:a,data:o}))}}Ma.prototype[n]=r(),Ma.prototype[n+"Form"]=r(!0)});let sM=class BC{constructor(n){if(typeof n!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(a){r=a});const i=this;this.promise.then(s=>{if(!i._listeners)return;let a=i._listeners.length;for(;a-- >0;)i._listeners[a](s);i._listeners=null}),this.promise.then=s=>{let a;const o=new Promise(c=>{i.subscribe(c),a=c}).then(s);return o.cancel=function(){i.unsubscribe(a)},o},n(function(a,o,c){i.reason||(i.reason=new Nl(a,o,c),r(i.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(n){if(this.reason){n(this.reason);return}this._listeners?this._listeners.push(n):this._listeners=[n]}unsubscribe(n){if(!this._listeners)return;const r=this._listeners.indexOf(n);r!==-1&&this._listeners.splice(r,1)}toAbortSignal(){const n=new AbortController,r=i=>{n.abort(i)};return this.subscribe(r),n.signal.unsubscribe=()=>this.unsubscribe(r),n.signal}static source(){let n;return{token:new BC(function(s){n=s}),cancel:n}}};function aM(e){return function(r){return e.apply(null,r)}}function oM(e){return pe.isObject(e)&&e.isAxiosError===!0}const Qy={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Qy).forEach(([e,n])=>{Qy[n]=e});function qC(e){const n=new Ma(e),r=xC(Ma.prototype.request,n);return pe.extend(r,Ma.prototype,n,{allOwnKeys:!0}),pe.extend(r,n,null,{allOwnKeys:!0}),r.create=function(s){return qC(Ua(e,s))},r}const sn=qC(Su);sn.Axios=Ma;sn.CanceledError=Nl;sn.CancelToken=sM;sn.isCancel=OC;sn.VERSION=LC;sn.toFormData=ff;sn.AxiosError=at;sn.Cancel=sn.CanceledError;sn.all=function(n){return Promise.all(n)};sn.spread=aM;sn.isAxiosError=oM;sn.mergeConfig=Ua;sn.AxiosHeaders=tr;sn.formToJSON=e=>PC(pe.isHTMLForm(e)?new FormData(e):e);sn.getAdapter=MC.getAdapter;sn.HttpStatusCode=Qy;sn.default=sn;const{Axios:Rte,AxiosError:Fte,CanceledError:Mte,isCancel:Lte,CancelToken:Bte,VERSION:qte,all:zte,Cancel:Vte,isAxiosError:Ute,spread:$te,toFormData:Hte,AxiosHeaders:Wte,HttpStatusCode:Kte,formToJSON:Gte,getAdapter:Qte,mergeConfig:Yte}=sn,lM=typeof window>"u",fN=!lM&&window.self!==window.top,Kp=()=>Math.random().toString(36).substring(2,15)+Math.random().toString(36).substring(2,15),wn=[];for(let e=0;e<256;++e)wn.push((e+256).toString(16).slice(1));function cM(e,n=0){return(wn[e[n+0]]+wn[e[n+1]]+wn[e[n+2]]+wn[e[n+3]]+"-"+wn[e[n+4]]+wn[e[n+5]]+"-"+wn[e[n+6]]+wn[e[n+7]]+"-"+wn[e[n+8]]+wn[e[n+9]]+"-"+wn[e[n+10]]+wn[e[n+11]]+wn[e[n+12]]+wn[e[n+13]]+wn[e[n+14]]+wn[e[n+15]]).toLowerCase()}let Gp;const uM=new Uint8Array(16);function dM(){if(!Gp){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");Gp=crypto.getRandomValues.bind(crypto)}return Gp(uM)}const hM=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),mN={randomUUID:hM};function fM(e,n,r){var s;e=e||{};const i=e.random??((s=e.rng)==null?void 0:s.call(e))??dM();if(i.length<16)throw new Error("Random bytes length must be >= 16");return i[6]=i[6]&15|64,i[8]=i[8]&63|128,cM(i)}function mM(e,n,r){return mN.randomUUID&&!e?mN.randomUUID():fM(e)}class pM extends Error{constructor(n,r,i,s,a){super(n),this.name="Base44Error",this.status=r,this.code=i,this.data=s,this.originalError=a}toJSON(){return{name:this.name,message:this.message,status:this.status,code:this.code,data:this.data}}}function Ec({baseURL:e,headers:n={},token:r,interceptResponses:i=!0,onError:s}){const a=sn.create({baseURL:e,headers:{"Content-Type":"application/json",Accept:"application/json",...n}});return r&&(a.defaults.headers.common.Authorization=`Bearer ${r}`),a.interceptors.request.use(o=>{typeof window<"u"&&o.headers.set("X-Origin-URL",window.location.href);const c=mM();if(o.requestId=c,fN)try{window.parent.postMessage({type:"api-request-start",requestId:c,data:{url:e+o.url,method:o.method,body:o.data instanceof FormData?"[FormData object]":o.data}},"*")}catch{}return o}),i&&a.interceptors.response.use(o=>{var c;const d=(c=o.config)===null||c===void 0?void 0:c.requestId;try{fN&&d&&window.parent.postMessage({type:"api-request-end",requestId:d,data:{statusCode:o.status,response:o.data}},"*")}catch{}return o.data},o=>{var c,d,f,h,m,p,g,b;const j=((d=(c=o.response)===null||c===void 0?void 0:c.data)===null||d===void 0?void 0:d.message)||((h=(f=o.response)===null||f===void 0?void 0:f.data)===null||h===void 0?void 0:h.detail)||o.message,y=new pM(j,(m=o.response)===null||m===void 0?void 0:m.status,(g=(p=o.response)===null||p===void 0?void 0:p.data)===null||g===void 0?void 0:g.code,(b=o.response)===null||b===void 0?void 0:b.data,o);return s==null||s(y),Promise.reject(y)}),a}function pN(e){const{axios:n,appId:r,getSocket:i}=e;return new Proxy({},{get(s,a){if(!(typeof a!="string"||a==="then"||a.startsWith("_")))return xM(n,r,a,i)}})}function gM(e){var n;try{const r=JSON.parse(e);return{type:r.type,data:r.data,id:r.id||((n=r.data)===null||n===void 0?void 0:n.id),timestamp:r.timestamp||new Date().toISOString()}}catch(r){return console.warn("[Base44 SDK] Failed to parse realtime message:",r),null}}function xM(e,n,r,i){const s=`/apps/${n}/entities/${r}`;return{async list(a,o,c,d){const f={};return a&&(f.sort=a),o&&(f.limit=o),c&&(f.skip=c),d&&(f.fields=Array.isArray(d)?d.join(","):d),e.get(s,{params:f})},async filter(a,o,c,d,f){const h={q:JSON.stringify(a)};return o&&(h.sort=o),c&&(h.limit=c),d&&(h.skip=d),f&&(h.fields=Array.isArray(f)?f.join(","):f),e.get(s,{params:h})},async get(a){return e.get(`${s}/${a}`)},async create(a){return e.post(s,a)},async update(a,o){return e.put(`${s}/${a}`,o)},async delete(a){return e.delete(`${s}/${a}`)},async deleteMany(a){return e.delete(s,{data:a})},async bulkCreate(a){return e.post(`${s}/bulk`,a)},async importEntities(a){const o=new FormData;return o.append("file",a,a.name),e.post(`${s}/import`,o,{headers:{"Content-Type":"multipart/form-data"}})},subscribe(a){const o=`entities:${n}:${r}`;return i().subscribeToRoom(o,{update_model:f=>{const h=gM(f.data);if(h)try{a(h)}catch(m){console.error("[Base44 SDK] Subscription callback error:",m)}}})}}}function yM(e,n){return{async call(r,i,s){if(!(r!=null&&r.trim()))throw new Error("Integration slug is required and cannot be empty");if(!(i!=null&&i.trim()))throw new Error("Operation ID is required and cannot be empty");const{pathParams:a,queryParams:o,...c}=s??{},d={...c,...a&&{path_params:a},...o&&{query_params:o}};return await e.post(`/apps/${n}/integrations/custom/${r}/${i}`,d)}}}function gN(e,n){const r=yM(e,n);return new Proxy({},{get(i,s){if(!(typeof s!="string"||s==="then"||s.startsWith("_")))return s==="custom"?r:new Proxy({},{get(a,o){if(!(typeof o!="string"||o==="then"||o.startsWith("_")))return async c=>{if(typeof c=="string")throw new Error(`Integration ${o} must receive an object with named parameters, received: ${c}`);let d,f;return c instanceof FormData||c&&Object.values(c).some(h=>h instanceof File)?(d=new FormData,Object.keys(c).forEach(h=>{c[h]instanceof File?d.append(h,c[h],c[h].name):typeof c[h]=="object"&&c[h]!==null?d.append(h,JSON.stringify(c[h])):d.append(h,c[h])}),f="multipart/form-data"):(d=c,f="application/json"),s==="Core"?e.post(`/apps/${n}/integration-endpoints/Core/${o}`,d||c,{headers:{"Content-Type":f}}):e.post(`/apps/${n}/integration-endpoints/installable/${s}/integration-endpoints/${o}`,d||c,{headers:{"Content-Type":f}})}}})}})}function vM(e,n,r,i){return{async me(){return e.get(`/apps/${r}/entities/User/me`)},async updateMe(s){return e.put(`/apps/${r}/entities/User/me`,s)},redirectToLogin(s){if(typeof window>"u")throw new Error("Login method can only be used in a browser environment");const a=s?new URL(s,window.location.origin).toString():window.location.href,o=`${i.appBaseUrl}/login?from_url=${encodeURIComponent(a)}`;window.location.href=o},loginWithProvider(s,a="/"){const o=new URL(a,window.location.origin).toString(),c=s==="google"?"":`/${s}`,d=`${i.appBaseUrl}/api/apps/auth${c}/login?app_id=${r}&from_url=${encodeURIComponent(o)}`;window.location.href=d},logout(s){if(delete e.defaults.headers.common.Authorization,typeof window<"u"){if(window.localStorage)try{window.localStorage.removeItem("base44_access_token"),window.localStorage.removeItem("token")}catch(c){console.error("Failed to remove token from localStorage:",c)}const a=s||window.location.href,o=`${i.appBaseUrl}/api/apps/auth/logout?from_url=${encodeURIComponent(a)}`;window.location.href=o}},setToken(s,a=!0){if(s&&(e.defaults.headers.common.Authorization=`Bearer ${s}`,n.defaults.headers.common.Authorization=`Bearer ${s}`,a&&typeof window<"u"&&window.localStorage))try{window.localStorage.setItem("base44_access_token",s),window.localStorage.setItem("token",s)}catch(o){console.error("Failed to save token to localStorage:",o)}},async loginViaEmailPassword(s,a,o){var c;try{const d=await e.post(`/apps/${r}/auth/login`,{email:s,password:a,...o&&{turnstile_token:o}}),{access_token:f,user:h}=d;return f&&this.setToken(f),{access_token:f,user:h}}catch(d){throw((c=d.response)===null||c===void 0?void 0:c.status)===401&&await this.logout(),d}},async isAuthenticated(){try{return await this.me(),!0}catch{return!1}},inviteUser(s,a){return e.post(`/apps/${r}/users/invite-user`,{user_email:s,role:a})},register(s){return e.post(`/apps/${r}/auth/register`,s)},verifyOtp({email:s,otpCode:a}){return e.post(`/apps/${r}/auth/verify-otp`,{email:s,otp_code:a})},resendOtp(s){return e.post(`/apps/${r}/auth/resend-otp`,{email:s})},resetPasswordRequest(s){return e.post(`/apps/${r}/auth/reset-password-request`,{email:s})},resetPassword({resetToken:s,newPassword:a}){return e.post(`/apps/${r}/auth/reset-password`,{reset_token:s,new_password:a})},changePassword({userId:s,currentPassword:a,newPassword:o}){return e.post(`/apps/${r}/auth/change-password`,{user_id:s,current_password:a,new_password:o})}}}function bM(e,n,r){return{async getAccessToken(i){const s=`/apps/${n}/auth/sso/accesstoken/${i}`,a={};return r&&(a["on-behalf-of"]=`Bearer ${r}`),e.get(s,{headers:a})}}}function jM(e,n){return{async getAccessToken(r){if(!r||typeof r!="string")throw new Error("Integration type is required and must be a string");return(await e.get(`/apps/${n}/external-auth/tokens/${r}`)).access_token}}}function cv(e={}){const{storageKey:n="base44_access_token",paramName:r="access_token",saveToStorage:i=!0,removeFromUrl:s=!0}=e;let a=null;if(typeof window<"u"&&window.location)try{const o=new URLSearchParams(window.location.search);if(a=o.get(r),a){if(i&&wM(a,{storageKey:n}),s){o.delete(r);const c=`${window.location.pathname}${o.toString()?`?${o.toString()}`:""}${window.location.hash}`;window.history.replaceState({},document.title,c)}return a}}catch(o){console.error("Error retrieving token from URL:",o)}if(typeof window<"u"&&window.localStorage)try{return a=window.localStorage.getItem(n),a}catch(o){console.error("Error retrieving token from local storage:",o)}return null}function wM(e,n){const{storageKey:r="base44_access_token"}=n;if(typeof window>"u"||!window.localStorage||!e)return!1;try{return window.localStorage.setItem(r,e),window.localStorage.setItem("token",e),!0}catch(i){return console.error("Error saving token to local storage:",i),!1}}function xN(e,n){return{async invoke(r,i){if(typeof i=="string")throw new Error(`Function ${r} must receive an object with named parameters, received: ${i}`);let s,a;return i instanceof FormData||i&&Object.values(i).some(o=>o instanceof File)?(s=new FormData,Object.keys(i).forEach(o=>{i[o]instanceof File?s.append(o,i[o],i[o].name):typeof i[o]=="object"&&i[o]!==null?s.append(o,JSON.stringify(i[o])):s.append(o,i[o])}),a="multipart/form-data"):(s=i,a="application/json"),e.post(`/apps/${n}/functions/${r}`,s||i,{headers:{"Content-Type":a}})}}}function yN({axios:e,getSocket:n,appId:r,serverUrl:i,token:s}){const a=`/apps/${r}/agents`,o={},c=()=>e.get(`${a}/conversations`),d=b=>e.get(`${a}/conversations/${b}`);return{getConversations:c,getConversation:d,listConversations:b=>e.get(`${a}/conversations`,{params:b}),createConversation:b=>e.post(`${a}/conversations`,b),addMessage:async(b,j)=>e.post(`${a}/conversations/v2/${b.id}/messages`,j),subscribeToConversation:(b,j)=>{const y=`/agent-conversations/${b}`,x=n(),N=d(b).then(w=>(o[b]=w,w));return x.subscribeToRoom(y,{connect:()=>{},update_model:async({data:w})=>{const k=JSON.parse(w);if(k._message){await N;const A=k._message,S=o[b];if(S){const E=S.messages||[],C=E.findIndex(I=>I.id===A.id),B=C!==-1?E.map((I,R)=>R===C?A:I):[...E,A];o[b]={...S,messages:B},j==null||j(o[b])}}}})},getWhatsAppConnectURL:b=>{const j=`${i}/api/apps/${r}/agents/${encodeURIComponent(b)}/whatsapp`,y=s??cv();return y?`${j}?token=${y}`:j}}}function vN(e,n){const r=`/app-logs/${n}`;return{async logUserInApp(i){await e.post(`${r}/log-user-in-app/${i}`)},async fetchLogs(i={}){return await e.get(r,{params:i})},async getStats(i={}){return await e.get(`${r}/stats`,{params:i})}}}function NM(e,n){return{async inviteUser(r,i){if(i!=="user"&&i!=="admin")throw new Error(`Invalid role: "${i}". Role must be either "user" or "admin".`);return await e.post(`/apps/${n}/runtime/users/invite-user`,{user_email:r,role:i})}}}const yi=Object.create(null);yi.open="0";yi.close="1";yi.ping="2";yi.pong="3";yi.message="4";yi.upgrade="5";yi.noop="6";const Nh=Object.create(null);Object.keys(yi).forEach(e=>{Nh[yi[e]]=e});const Yy={type:"error",data:"parser error"},zC=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",VC=typeof ArrayBuffer=="function",UC=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,uv=({type:e,data:n},r,i)=>zC&&n instanceof Blob?r?i(n):bN(n,i):VC&&(n instanceof ArrayBuffer||UC(n))?r?i(n):bN(new Blob([n]),i):i(yi[e]+(n||"")),bN=(e,n)=>{const r=new FileReader;return r.onload=function(){const i=r.result.split(",")[1];n("b"+(i||""))},r.readAsDataURL(e)};function jN(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}let Qp;function kM(e,n){if(zC&&e.data instanceof Blob)return e.data.arrayBuffer().then(jN).then(n);if(VC&&(e.data instanceof ArrayBuffer||UC(e.data)))return n(jN(e.data));uv(e,!1,r=>{Qp||(Qp=new TextEncoder),n(Qp.encode(r))})}const wN="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Tc=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let e=0;e<wN.length;e++)Tc[wN.charCodeAt(e)]=e;const _M=e=>{let n=e.length*.75,r=e.length,i,s=0,a,o,c,d;e[e.length-1]==="="&&(n--,e[e.length-2]==="="&&n--);const f=new ArrayBuffer(n),h=new Uint8Array(f);for(i=0;i<r;i+=4)a=Tc[e.charCodeAt(i)],o=Tc[e.charCodeAt(i+1)],c=Tc[e.charCodeAt(i+2)],d=Tc[e.charCodeAt(i+3)],h[s++]=a<<2|o>>4,h[s++]=(o&15)<<4|c>>2,h[s++]=(c&3)<<6|d&63;return f},SM=typeof ArrayBuffer=="function",dv=(e,n)=>{if(typeof e!="string")return{type:"message",data:$C(e,n)};const r=e.charAt(0);return r==="b"?{type:"message",data:AM(e.substring(1),n)}:Nh[r]?e.length>1?{type:Nh[r],data:e.substring(1)}:{type:Nh[r]}:Yy},AM=(e,n)=>{if(SM){const r=_M(e);return $C(r,n)}else return{base64:!0,data:e}},$C=(e,n)=>{switch(n){case"blob":return e instanceof Blob?e:new Blob([e]);case"arraybuffer":default:return e instanceof ArrayBuffer?e:e.buffer}},HC="",CM=(e,n)=>{const r=e.length,i=new Array(r);let s=0;e.forEach((a,o)=>{uv(a,!1,c=>{i[o]=c,++s===r&&n(i.join(HC))})})},EM=(e,n)=>{const r=e.split(HC),i=[];for(let s=0;s<r.length;s++){const a=dv(r[s],n);if(i.push(a),a.type==="error")break}return i};function TM(){return new TransformStream({transform(e,n){kM(e,r=>{const i=r.length;let s;if(i<126)s=new Uint8Array(1),new DataView(s.buffer).setUint8(0,i);else if(i<65536){s=new Uint8Array(3);const a=new DataView(s.buffer);a.setUint8(0,126),a.setUint16(1,i)}else{s=new Uint8Array(9);const a=new DataView(s.buffer);a.setUint8(0,127),a.setBigUint64(1,BigInt(i))}e.data&&typeof e.data!="string"&&(s[0]|=128),n.enqueue(s),n.enqueue(r)})}})}let Yp;function Jd(e){return e.reduce((n,r)=>n+r.length,0)}function Zd(e,n){if(e[0].length===n)return e.shift();const r=new Uint8Array(n);let i=0;for(let s=0;s<n;s++)r[s]=e[0][i++],i===e[0].length&&(e.shift(),i=0);return e.length&&i<e[0].length&&(e[0]=e[0].slice(i)),r}function PM(e,n){Yp||(Yp=new TextDecoder);const r=[];let i=0,s=-1,a=!1;return new TransformStream({transform(o,c){for(r.push(o);;){if(i===0){if(Jd(r)<1)break;const d=Zd(r,1);a=(d[0]&128)===128,s=d[0]&127,s<126?i=3:s===126?i=1:i=2}else if(i===1){if(Jd(r)<2)break;const d=Zd(r,2);s=new DataView(d.buffer,d.byteOffset,d.length).getUint16(0),i=3}else if(i===2){if(Jd(r)<8)break;const d=Zd(r,8),f=new DataView(d.buffer,d.byteOffset,d.length),h=f.getUint32(0);if(h>Math.pow(2,21)-1){c.enqueue(Yy);break}s=h*Math.pow(2,32)+f.getUint32(4),i=3}else{if(Jd(r)<s)break;const d=Zd(r,s);c.enqueue(dv(a?d:Yp.decode(d),n)),i=0}if(s===0||s>e){c.enqueue(Yy);break}}}})}const WC=4;function ln(e){if(e)return OM(e)}function OM(e){for(var n in ln.prototype)e[n]=ln.prototype[n];return e}ln.prototype.on=ln.prototype.addEventListener=function(e,n){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(n),this};ln.prototype.once=function(e,n){function r(){this.off(e,r),n.apply(this,arguments)}return r.fn=n,this.on(e,r),this};ln.prototype.off=ln.prototype.removeListener=ln.prototype.removeAllListeners=ln.prototype.removeEventListener=function(e,n){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var r=this._callbacks["$"+e];if(!r)return this;if(arguments.length==1)return delete this._callbacks["$"+e],this;for(var i,s=0;s<r.length;s++)if(i=r[s],i===n||i.fn===n){r.splice(s,1);break}return r.length===0&&delete this._callbacks["$"+e],this};ln.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var n=new Array(arguments.length-1),r=this._callbacks["$"+e],i=1;i<arguments.length;i++)n[i-1]=arguments[i];if(r){r=r.slice(0);for(var i=0,s=r.length;i<s;++i)r[i].apply(this,n)}return this};ln.prototype.emitReserved=ln.prototype.emit;ln.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]};ln.prototype.hasListeners=function(e){return!!this.listeners(e).length};const pf=typeof Promise=="function"&&typeof Promise.resolve=="function"?n=>Promise.resolve().then(n):(n,r)=>r(n,0),Ar=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),DM="arraybuffer";function KC(e,...n){return n.reduce((r,i)=>(e.hasOwnProperty(i)&&(r[i]=e[i]),r),{})}const IM=Ar.setTimeout,RM=Ar.clearTimeout;function gf(e,n){n.useNativeTimers?(e.setTimeoutFn=IM.bind(Ar),e.clearTimeoutFn=RM.bind(Ar)):(e.setTimeoutFn=Ar.setTimeout.bind(Ar),e.clearTimeoutFn=Ar.clearTimeout.bind(Ar))}const FM=1.33;function MM(e){return typeof e=="string"?LM(e):Math.ceil((e.byteLength||e.size)*FM)}function LM(e){let n=0,r=0;for(let i=0,s=e.length;i<s;i++)n=e.charCodeAt(i),n<128?r+=1:n<2048?r+=2:n<55296||n>=57344?r+=3:(i++,r+=4);return r}function GC(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function BM(e){let n="";for(let r in e)e.hasOwnProperty(r)&&(n.length&&(n+="&"),n+=encodeURIComponent(r)+"="+encodeURIComponent(e[r]));return n}function qM(e){let n={},r=e.split("&");for(let i=0,s=r.length;i<s;i++){let a=r[i].split("=");n[decodeURIComponent(a[0])]=decodeURIComponent(a[1])}return n}class zM extends Error{constructor(n,r,i){super(n),this.description=r,this.context=i,this.type="TransportError"}}class hv extends ln{constructor(n){super(),this.writable=!1,gf(this,n),this.opts=n,this.query=n.query,this.socket=n.socket,this.supportsBinary=!n.forceBase64}onError(n,r,i){return super.emitReserved("error",new zM(n,r,i)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(n){this.readyState==="open"&&this.write(n)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(n){const r=dv(n,this.socket.binaryType);this.onPacket(r)}onPacket(n){super.emitReserved("packet",n)}onClose(n){this.readyState="closed",super.emitReserved("close",n)}pause(n){}createUri(n,r={}){return n+"://"+this._hostname()+this._port()+this.opts.path+this._query(r)}_hostname(){const n=this.opts.hostname;return n.indexOf(":")===-1?n:"["+n+"]"}_port(){return this.opts.port&&(this.opts.secure&&+(this.opts.port!==443)||!this.opts.secure&&Number(this.opts.port)!==80)?":"+this.opts.port:""}_query(n){const r=BM(n);return r.length?"?"+r:""}}class VM extends hv{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(n){this.readyState="pausing";const r=()=>{this.readyState="paused",n()};if(this._polling||!this.writable){let i=0;this._polling&&(i++,this.once("pollComplete",function(){--i||r()})),this.writable||(i++,this.once("drain",function(){--i||r()}))}else r()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(n){const r=i=>{if(this.readyState==="opening"&&i.type==="open"&&this.onOpen(),i.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(i)};EM(n,this.socket.binaryType).forEach(r),this.readyState!=="closed"&&(this._polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this._poll())}doClose(){const n=()=>{this.write([{type:"close"}])};this.readyState==="open"?n():this.once("open",n)}write(n){this.writable=!1,CM(n,r=>{this.doWrite(r,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const n=this.opts.secure?"https":"http",r=this.query||{};return this.opts.timestampRequests!==!1&&(r[this.opts.timestampParam]=GC()),!this.supportsBinary&&!r.sid&&(r.b64=1),this.createUri(n,r)}}let QC=!1;try{QC=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const UM=QC;function $M(){}class HM extends VM{constructor(n){if(super(n),typeof location<"u"){const r=location.protocol==="https:";let i=location.port;i||(i=r?"443":"80"),this.xd=typeof location<"u"&&n.hostname!==location.hostname||i!==n.port}}doWrite(n,r){const i=this.request({method:"POST",data:n});i.on("success",r),i.on("error",(s,a)=>{this.onError("xhr post error",s,a)})}doPoll(){const n=this.request();n.on("data",this.onData.bind(this)),n.on("error",(r,i)=>{this.onError("xhr poll error",r,i)}),this.pollXhr=n}}class mi extends ln{constructor(n,r,i){super(),this.createRequest=n,gf(this,i),this._opts=i,this._method=i.method||"GET",this._uri=r,this._data=i.data!==void 0?i.data:null,this._create()}_create(){var n;const r=KC(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");r.xdomain=!!this._opts.xd;const i=this._xhr=this.createRequest(r);try{i.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){i.setDisableHeaderCheck&&i.setDisableHeaderCheck(!0);for(let s in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(s)&&i.setRequestHeader(s,this._opts.extraHeaders[s])}}catch{}if(this._method==="POST")try{i.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{i.setRequestHeader("Accept","*/*")}catch{}(n=this._opts.cookieJar)===null||n===void 0||n.addCookies(i),"withCredentials"in i&&(i.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(i.timeout=this._opts.requestTimeout),i.onreadystatechange=()=>{var s;i.readyState===3&&((s=this._opts.cookieJar)===null||s===void 0||s.parseCookies(i.getResponseHeader("set-cookie"))),i.readyState===4&&(i.status===200||i.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof i.status=="number"?i.status:0)},0))},i.send(this._data)}catch(s){this.setTimeoutFn(()=>{this._onError(s)},0);return}typeof document<"u"&&(this._index=mi.requestsCount++,mi.requests[this._index]=this)}_onError(n){this.emitReserved("error",n,this._xhr),this._cleanup(!0)}_cleanup(n){if(!(typeof this._xhr>"u"||this._xhr===null)){if(this._xhr.onreadystatechange=$M,n)try{this._xhr.abort()}catch{}typeof document<"u"&&delete mi.requests[this._index],this._xhr=null}}_onLoad(){const n=this._xhr.responseText;n!==null&&(this.emitReserved("data",n),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}}mi.requestsCount=0;mi.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",NN);else if(typeof addEventListener=="function"){const e="onpagehide"in Ar?"pagehide":"unload";addEventListener(e,NN,!1)}}function NN(){for(let e in mi.requests)mi.requests.hasOwnProperty(e)&&mi.requests[e].abort()}const WM=(function(){const e=YC({xdomain:!1});return e&&e.responseType!==null})();class KM extends HM{constructor(n){super(n);const r=n&&n.forceBase64;this.supportsBinary=WM&&!r}request(n={}){return Object.assign(n,{xd:this.xd},this.opts),new mi(YC,this.uri(),n)}}function YC(e){const n=e.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!n||UM))return new XMLHttpRequest}catch{}if(!n)try{return new Ar[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}const XC=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class GM extends hv{get name(){return"websocket"}doOpen(){const n=this.uri(),r=this.opts.protocols,i=XC?{}:KC(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(i.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(n,r,i)}catch(s){return this.emitReserved("error",s)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=n=>this.onClose({description:"websocket connection closed",context:n}),this.ws.onmessage=n=>this.onData(n.data),this.ws.onerror=n=>this.onError("websocket error",n)}write(n){this.writable=!1;for(let r=0;r<n.length;r++){const i=n[r],s=r===n.length-1;uv(i,this.supportsBinary,a=>{try{this.doWrite(i,a)}catch{}s&&pf(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null)}uri(){const n=this.opts.secure?"wss":"ws",r=this.query||{};return this.opts.timestampRequests&&(r[this.opts.timestampParam]=GC()),this.supportsBinary||(r.b64=1),this.createUri(n,r)}}const Xp=Ar.WebSocket||Ar.MozWebSocket;class QM extends GM{createSocket(n,r,i){return XC?new Xp(n,r,i):r?new Xp(n,r):new Xp(n)}doWrite(n,r){this.ws.send(r)}}class YM extends hv{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(n){return this.emitReserved("error",n)}this._transport.closed.then(()=>{this.onClose()}).catch(n=>{this.onError("webtransport error",n)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(n=>{const r=PM(Number.MAX_SAFE_INTEGER,this.socket.binaryType),i=n.readable.pipeThrough(r).getReader(),s=TM();s.readable.pipeTo(n.writable),this._writer=s.writable.getWriter();const a=()=>{i.read().then(({done:c,value:d})=>{c||(this.onPacket(d),a())}).catch(c=>{})};a();const o={type:"open"};this.query.sid&&(o.data=`{"sid":"${this.query.sid}"}`),this._writer.write(o).then(()=>this.onOpen())})})}write(n){this.writable=!1;for(let r=0;r<n.length;r++){const i=n[r],s=r===n.length-1;this._writer.write(i).then(()=>{s&&pf(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var n;(n=this._transport)===null||n===void 0||n.close()}}const XM={websocket:QM,webtransport:YM,polling:KM},JM=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,ZM=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function Xy(e){if(e.length>8e3)throw"URI too long";const n=e,r=e.indexOf("["),i=e.indexOf("]");r!=-1&&i!=-1&&(e=e.substring(0,r)+e.substring(r,i).replace(/:/g,";")+e.substring(i,e.length));let s=JM.exec(e||""),a={},o=14;for(;o--;)a[ZM[o]]=s[o]||"";return r!=-1&&i!=-1&&(a.source=n,a.host=a.host.substring(1,a.host.length-1).replace(/;/g,":"),a.authority=a.authority.replace("[","").replace("]","").replace(/;/g,":"),a.ipv6uri=!0),a.pathNames=eL(a,a.path),a.queryKey=tL(a,a.query),a}function eL(e,n){const r=/\/{2,9}/g,i=n.replace(r,"/").split("/");return(n.slice(0,1)=="/"||n.length===0)&&i.splice(0,1),n.slice(-1)=="/"&&i.splice(i.length-1,1),i}function tL(e,n){const r={};return n.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(i,s,a){s&&(r[s]=a)}),r}const Jy=typeof addEventListener=="function"&&typeof removeEventListener=="function",kh=[];Jy&&addEventListener("offline",()=>{kh.forEach(e=>e())},!1);class Vs extends ln{constructor(n,r){if(super(),this.binaryType=DM,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,n&&typeof n=="object"&&(r=n,n=null),n){const i=Xy(n);r.hostname=i.host,r.secure=i.protocol==="https"||i.protocol==="wss",r.port=i.port,i.query&&(r.query=i.query)}else r.host&&(r.hostname=Xy(r.host).host);gf(this,r),this.secure=r.secure!=null?r.secure:typeof location<"u"&&location.protocol==="https:",r.hostname&&!r.port&&(r.port=this.secure?"443":"80"),this.hostname=r.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=r.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},r.transports.forEach(i=>{const s=i.prototype.name;this.transports.push(s),this._transportsByName[s]=i}),this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},r),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=qM(this.opts.query)),Jy&&(this.opts.closeOnBeforeunload&&(this._beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this._beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this._offlineEventListener=()=>{this._onClose("transport close",{description:"network connection lost"})},kh.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(n){const r=Object.assign({},this.opts.query);r.EIO=WC,r.transport=n,this.id&&(r.sid=this.id);const i=Object.assign({},this.opts,{query:r,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[n]);return new this._transportsByName[n](i)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}const n=this.opts.rememberUpgrade&&Vs.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";const r=this.createTransport(n);r.open(),this.setTransport(r)}setTransport(n){this.transport&&this.transport.removeAllListeners(),this.transport=n,n.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",r=>this._onClose("transport close",r))}onOpen(){this.readyState="open",Vs.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush()}_onPacket(n){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",n),this.emitReserved("heartbeat"),n.type){case"open":this.onHandshake(JSON.parse(n.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":const r=new Error("server error");r.code=n.data,this._onError(r);break;case"message":this.emitReserved("data",n.data),this.emitReserved("message",n.data);break}}onHandshake(n){this.emitReserved("handshake",n),this.id=n.sid,this.transport.query.sid=n.sid,this._pingInterval=n.pingInterval,this._pingTimeout=n.pingTimeout,this._maxPayload=n.maxPayload,this.onOpen(),this.readyState!=="closed"&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);const n=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+n,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},n),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const n=this._getWritablePackets();this.transport.send(n),this._prevBufferLen=n.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let r=1;for(let i=0;i<this.writeBuffer.length;i++){const s=this.writeBuffer[i].data;if(s&&(r+=MM(s)),i>0&&r>this._maxPayload)return this.writeBuffer.slice(0,i);r+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;const n=Date.now()>this._pingTimeoutTime;return n&&(this._pingTimeoutTime=0,pf(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),n}write(n,r,i){return this._sendPacket("message",n,r,i),this}send(n,r,i){return this._sendPacket("message",n,r,i),this}_sendPacket(n,r,i,s){if(typeof r=="function"&&(s=r,r=void 0),typeof i=="function"&&(s=i,i=null),this.readyState==="closing"||this.readyState==="closed")return;i=i||{},i.compress=i.compress!==!1;const a={type:n,data:r,options:i};this.emitReserved("packetCreate",a),this.writeBuffer.push(a),s&&this.once("flush",s),this.flush()}close(){const n=()=>{this._onClose("forced close"),this.transport.close()},r=()=>{this.off("upgrade",r),this.off("upgradeError",r),n()},i=()=>{this.once("upgrade",r),this.once("upgradeError",r)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?i():n()}):this.upgrading?i():n()),this}_onError(n){if(Vs.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState==="opening")return this.transports.shift(),this._open();this.emitReserved("error",n),this._onClose("transport error",n)}_onClose(n,r){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing"){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),Jy&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){const i=kh.indexOf(this._offlineEventListener);i!==-1&&kh.splice(i,1)}this.readyState="closed",this.id=null,this.emitReserved("close",n,r),this.writeBuffer=[],this._prevBufferLen=0}}}Vs.protocol=WC;class nL extends Vs{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState==="open"&&this.opts.upgrade)for(let n=0;n<this._upgrades.length;n++)this._probe(this._upgrades[n])}_probe(n){let r=this.createTransport(n),i=!1;Vs.priorWebsocketSuccess=!1;const s=()=>{i||(r.send([{type:"ping",data:"probe"}]),r.once("packet",m=>{if(!i)if(m.type==="pong"&&m.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",r),!r)return;Vs.priorWebsocketSuccess=r.name==="websocket",this.transport.pause(()=>{i||this.readyState!=="closed"&&(h(),this.setTransport(r),r.send([{type:"upgrade"}]),this.emitReserved("upgrade",r),r=null,this.upgrading=!1,this.flush())})}else{const p=new Error("probe error");p.transport=r.name,this.emitReserved("upgradeError",p)}}))};function a(){i||(i=!0,h(),r.close(),r=null)}const o=m=>{const p=new Error("probe error: "+m);p.transport=r.name,a(),this.emitReserved("upgradeError",p)};function c(){o("transport closed")}function d(){o("socket closed")}function f(m){r&&m.name!==r.name&&a()}const h=()=>{r.removeListener("open",s),r.removeListener("error",o),r.removeListener("close",c),this.off("close",d),this.off("upgrading",f)};r.once("open",s),r.once("error",o),r.once("close",c),this.once("close",d),this.once("upgrading",f),this._upgrades.indexOf("webtransport")!==-1&&n!=="webtransport"?this.setTimeoutFn(()=>{i||r.open()},200):r.open()}onHandshake(n){this._upgrades=this._filterUpgrades(n.upgrades),super.onHandshake(n)}_filterUpgrades(n){const r=[];for(let i=0;i<n.length;i++)~this.transports.indexOf(n[i])&&r.push(n[i]);return r}}let rL=class extends nL{constructor(n,r={}){const i=typeof n=="object"?n:r;(!i.transports||i.transports&&typeof i.transports[0]=="string")&&(i.transports=(i.transports||["polling","websocket","webtransport"]).map(s=>XM[s]).filter(s=>!!s)),super(n,i)}};function iL(e,n="",r){let i=e;r=r||typeof location<"u"&&location,e==null&&(e=r.protocol+"//"+r.host),typeof e=="string"&&(e.charAt(0)==="/"&&(e.charAt(1)==="/"?e=r.protocol+e:e=r.host+e),/^(https?|wss?):\/\//.test(e)||(typeof r<"u"?e=r.protocol+"//"+e:e="https://"+e),i=Xy(e)),i.port||(/^(http|ws)$/.test(i.protocol)?i.port="80":/^(http|ws)s$/.test(i.protocol)&&(i.port="443")),i.path=i.path||"/";const a=i.host.indexOf(":")!==-1?"["+i.host+"]":i.host;return i.id=i.protocol+"://"+a+":"+i.port+n,i.href=i.protocol+"://"+a+(r&&r.port===i.port?"":":"+i.port),i}const sL=typeof ArrayBuffer=="function",aL=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,JC=Object.prototype.toString,oL=typeof Blob=="function"||typeof Blob<"u"&&JC.call(Blob)==="[object BlobConstructor]",lL=typeof File=="function"||typeof File<"u"&&JC.call(File)==="[object FileConstructor]";function fv(e){return sL&&(e instanceof ArrayBuffer||aL(e))||oL&&e instanceof Blob||lL&&e instanceof File}function _h(e,n){if(!e||typeof e!="object")return!1;if(Array.isArray(e)){for(let r=0,i=e.length;r<i;r++)if(_h(e[r]))return!0;return!1}if(fv(e))return!0;if(e.toJSON&&typeof e.toJSON=="function"&&arguments.length===1)return _h(e.toJSON(),!0);for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&_h(e[r]))return!0;return!1}function cL(e){const n=[],r=e.data,i=e;return i.data=Zy(r,n),i.attachments=n.length,{packet:i,buffers:n}}function Zy(e,n){if(!e)return e;if(fv(e)){const r={_placeholder:!0,num:n.length};return n.push(e),r}else if(Array.isArray(e)){const r=new Array(e.length);for(let i=0;i<e.length;i++)r[i]=Zy(e[i],n);return r}else if(typeof e=="object"&&!(e instanceof Date)){const r={};for(const i in e)Object.prototype.hasOwnProperty.call(e,i)&&(r[i]=Zy(e[i],n));return r}return e}function uL(e,n){return e.data=e0(e.data,n),delete e.attachments,e}function e0(e,n){if(!e)return e;if(e&&e._placeholder===!0){if(typeof e.num=="number"&&e.num>=0&&e.num<n.length)return n[e.num];throw new Error("illegal attachments")}else if(Array.isArray(e))for(let r=0;r<e.length;r++)e[r]=e0(e[r],n);else if(typeof e=="object")for(const r in e)Object.prototype.hasOwnProperty.call(e,r)&&(e[r]=e0(e[r],n));return e}const dL=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],hL=5;var mt;(function(e){e[e.CONNECT=0]="CONNECT",e[e.DISCONNECT=1]="DISCONNECT",e[e.EVENT=2]="EVENT",e[e.ACK=3]="ACK",e[e.CONNECT_ERROR=4]="CONNECT_ERROR",e[e.BINARY_EVENT=5]="BINARY_EVENT",e[e.BINARY_ACK=6]="BINARY_ACK"})(mt||(mt={}));class fL{constructor(n){this.replacer=n}encode(n){return(n.type===mt.EVENT||n.type===mt.ACK)&&_h(n)?this.encodeAsBinary({type:n.type===mt.EVENT?mt.BINARY_EVENT:mt.BINARY_ACK,nsp:n.nsp,data:n.data,id:n.id}):[this.encodeAsString(n)]}encodeAsString(n){let r=""+n.type;return(n.type===mt.BINARY_EVENT||n.type===mt.BINARY_ACK)&&(r+=n.attachments+"-"),n.nsp&&n.nsp!=="/"&&(r+=n.nsp+","),n.id!=null&&(r+=n.id),n.data!=null&&(r+=JSON.stringify(n.data,this.replacer)),r}encodeAsBinary(n){const r=cL(n),i=this.encodeAsString(r.packet),s=r.buffers;return s.unshift(i),s}}function kN(e){return Object.prototype.toString.call(e)==="[object Object]"}class mv extends ln{constructor(n){super(),this.reviver=n}add(n){let r;if(typeof n=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");r=this.decodeString(n);const i=r.type===mt.BINARY_EVENT;i||r.type===mt.BINARY_ACK?(r.type=i?mt.EVENT:mt.ACK,this.reconstructor=new mL(r),r.attachments===0&&super.emitReserved("decoded",r)):super.emitReserved("decoded",r)}else if(fv(n)||n.base64)if(this.reconstructor)r=this.reconstructor.takeBinaryData(n),r&&(this.reconstructor=null,super.emitReserved("decoded",r));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+n)}decodeString(n){let r=0;const i={type:Number(n.charAt(0))};if(mt[i.type]===void 0)throw new Error("unknown packet type "+i.type);if(i.type===mt.BINARY_EVENT||i.type===mt.BINARY_ACK){const a=r+1;for(;n.charAt(++r)!=="-"&&r!=n.length;);const o=n.substring(a,r);if(o!=Number(o)||n.charAt(r)!=="-")throw new Error("Illegal attachments");i.attachments=Number(o)}if(n.charAt(r+1)==="/"){const a=r+1;for(;++r&&!(n.charAt(r)===","||r===n.length););i.nsp=n.substring(a,r)}else i.nsp="/";const s=n.charAt(r+1);if(s!==""&&Number(s)==s){const a=r+1;for(;++r;){const o=n.charAt(r);if(o==null||Number(o)!=o){--r;break}if(r===n.length)break}i.id=Number(n.substring(a,r+1))}if(n.charAt(++r)){const a=this.tryParse(n.substr(r));if(mv.isPayloadValid(i.type,a))i.data=a;else throw new Error("invalid payload")}return i}tryParse(n){try{return JSON.parse(n,this.reviver)}catch{return!1}}static isPayloadValid(n,r){switch(n){case mt.CONNECT:return kN(r);case mt.DISCONNECT:return r===void 0;case mt.CONNECT_ERROR:return typeof r=="string"||kN(r);case mt.EVENT:case mt.BINARY_EVENT:return Array.isArray(r)&&(typeof r[0]=="number"||typeof r[0]=="string"&&dL.indexOf(r[0])===-1);case mt.ACK:case mt.BINARY_ACK:return Array.isArray(r)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class mL{constructor(n){this.packet=n,this.buffers=[],this.reconPack=n}takeBinaryData(n){if(this.buffers.push(n),this.buffers.length===this.reconPack.attachments){const r=uL(this.reconPack,this.buffers);return this.finishedReconstruction(),r}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}const pL=Object.freeze(Object.defineProperty({__proto__:null,Decoder:mv,Encoder:fL,get PacketType(){return mt},protocol:hL},Symbol.toStringTag,{value:"Module"}));function Vr(e,n,r){return e.on(n,r),function(){e.off(n,r)}}const gL=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class ZC extends ln{constructor(n,r,i){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=n,this.nsp=r,i&&i.auth&&(this.auth=i.auth),this._opts=Object.assign({},i),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const n=this.io;this.subs=[Vr(n,"open",this.onopen.bind(this)),Vr(n,"packet",this.onpacket.bind(this)),Vr(n,"error",this.onerror.bind(this)),Vr(n,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState==="open"&&this.onopen(),this)}open(){return this.connect()}send(...n){return n.unshift("message"),this.emit.apply(this,n),this}emit(n,...r){var i,s,a;if(gL.hasOwnProperty(n))throw new Error('"'+n.toString()+'" is a reserved event name');if(r.unshift(n),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(r),this;const o={type:mt.EVENT,data:r};if(o.options={},o.options.compress=this.flags.compress!==!1,typeof r[r.length-1]=="function"){const h=this.ids++,m=r.pop();this._registerAckCallback(h,m),o.id=h}const c=(s=(i=this.io.engine)===null||i===void 0?void 0:i.transport)===null||s===void 0?void 0:s.writable,d=this.connected&&!(!((a=this.io.engine)===null||a===void 0)&&a._hasPingExpired());return this.flags.volatile&&!c||(d?(this.notifyOutgoingListeners(o),this.packet(o)):this.sendBuffer.push(o)),this.flags={},this}_registerAckCallback(n,r){var i;const s=(i=this.flags.timeout)!==null&&i!==void 0?i:this._opts.ackTimeout;if(s===void 0){this.acks[n]=r;return}const a=this.io.setTimeoutFn(()=>{delete this.acks[n];for(let c=0;c<this.sendBuffer.length;c++)this.sendBuffer[c].id===n&&this.sendBuffer.splice(c,1);r.call(this,new Error("operation has timed out"))},s),o=(...c)=>{this.io.clearTimeoutFn(a),r.apply(this,c)};o.withError=!0,this.acks[n]=o}emitWithAck(n,...r){return new Promise((i,s)=>{const a=(o,c)=>o?s(o):i(c);a.withError=!0,r.push(a),this.emit(n,...r)})}_addToQueue(n){let r;typeof n[n.length-1]=="function"&&(r=n.pop());const i={id:this._queueSeq++,tryCount:0,pending:!1,args:n,flags:Object.assign({fromQueue:!0},this.flags)};n.push((s,...a)=>i!==this._queue[0]?void 0:(s!==null?i.tryCount>this._opts.retries&&(this._queue.shift(),r&&r(s)):(this._queue.shift(),r&&r(null,...a)),i.pending=!1,this._drainQueue())),this._queue.push(i),this._drainQueue()}_drainQueue(n=!1){if(!this.connected||this._queue.length===0)return;const r=this._queue[0];r.pending&&!n||(r.pending=!0,r.tryCount++,this.flags=r.flags,this.emit.apply(this,r.args))}packet(n){n.nsp=this.nsp,this.io._packet(n)}onopen(){typeof this.auth=="function"?this.auth(n=>{this._sendConnectPacket(n)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(n){this.packet({type:mt.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},n):n})}onerror(n){this.connected||this.emitReserved("connect_error",n)}onclose(n,r){this.connected=!1,delete this.id,this.emitReserved("disconnect",n,r),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(n=>{if(!this.sendBuffer.some(i=>String(i.id)===n)){const i=this.acks[n];delete this.acks[n],i.withError&&i.call(this,new Error("socket has been disconnected"))}})}onpacket(n){if(n.nsp===this.nsp)switch(n.type){case mt.CONNECT:n.data&&n.data.sid?this.onconnect(n.data.sid,n.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case mt.EVENT:case mt.BINARY_EVENT:this.onevent(n);break;case mt.ACK:case mt.BINARY_ACK:this.onack(n);break;case mt.DISCONNECT:this.ondisconnect();break;case mt.CONNECT_ERROR:this.destroy();const i=new Error(n.data.message);i.data=n.data.data,this.emitReserved("connect_error",i);break}}onevent(n){const r=n.data||[];n.id!=null&&r.push(this.ack(n.id)),this.connected?this.emitEvent(r):this.receiveBuffer.push(Object.freeze(r))}emitEvent(n){if(this._anyListeners&&this._anyListeners.length){const r=this._anyListeners.slice();for(const i of r)i.apply(this,n)}super.emit.apply(this,n),this._pid&&n.length&&typeof n[n.length-1]=="string"&&(this._lastOffset=n[n.length-1])}ack(n){const r=this;let i=!1;return function(...s){i||(i=!0,r.packet({type:mt.ACK,id:n,data:s}))}}onack(n){const r=this.acks[n.id];typeof r=="function"&&(delete this.acks[n.id],r.withError&&n.data.unshift(null),r.apply(this,n.data))}onconnect(n,r){this.id=n,this.recovered=r&&this._pid===r,this._pid=r,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(n=>this.emitEvent(n)),this.receiveBuffer=[],this.sendBuffer.forEach(n=>{this.notifyOutgoingListeners(n),this.packet(n)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(n=>n()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:mt.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(n){return this.flags.compress=n,this}get volatile(){return this.flags.volatile=!0,this}timeout(n){return this.flags.timeout=n,this}onAny(n){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(n),this}prependAny(n){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(n),this}offAny(n){if(!this._anyListeners)return this;if(n){const r=this._anyListeners;for(let i=0;i<r.length;i++)if(n===r[i])return r.splice(i,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(n){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(n),this}prependAnyOutgoing(n){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(n),this}offAnyOutgoing(n){if(!this._anyOutgoingListeners)return this;if(n){const r=this._anyOutgoingListeners;for(let i=0;i<r.length;i++)if(n===r[i])return r.splice(i,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(n){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const r=this._anyOutgoingListeners.slice();for(const i of r)i.apply(this,n.data)}}}function kl(e){e=e||{},this.ms=e.min||100,this.max=e.max||1e4,this.factor=e.factor||2,this.jitter=e.jitter>0&&e.jitter<=1?e.jitter:0,this.attempts=0}kl.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var n=Math.random(),r=Math.floor(n*this.jitter*e);e=(Math.floor(n*10)&1)==0?e-r:e+r}return Math.min(e,this.max)|0};kl.prototype.reset=function(){this.attempts=0};kl.prototype.setMin=function(e){this.ms=e};kl.prototype.setMax=function(e){this.max=e};kl.prototype.setJitter=function(e){this.jitter=e};class t0 extends ln{constructor(n,r){var i;super(),this.nsps={},this.subs=[],n&&typeof n=="object"&&(r=n,n=void 0),r=r||{},r.path=r.path||"/socket.io",this.opts=r,gf(this,r),this.reconnection(r.reconnection!==!1),this.reconnectionAttempts(r.reconnectionAttempts||1/0),this.reconnectionDelay(r.reconnectionDelay||1e3),this.reconnectionDelayMax(r.reconnectionDelayMax||5e3),this.randomizationFactor((i=r.randomizationFactor)!==null&&i!==void 0?i:.5),this.backoff=new kl({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(r.timeout==null?2e4:r.timeout),this._readyState="closed",this.uri=n;const s=r.parser||pL;this.encoder=new s.Encoder,this.decoder=new s.Decoder,this._autoConnect=r.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(n){return arguments.length?(this._reconnection=!!n,n||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(n){return n===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=n,this)}reconnectionDelay(n){var r;return n===void 0?this._reconnectionDelay:(this._reconnectionDelay=n,(r=this.backoff)===null||r===void 0||r.setMin(n),this)}randomizationFactor(n){var r;return n===void 0?this._randomizationFactor:(this._randomizationFactor=n,(r=this.backoff)===null||r===void 0||r.setJitter(n),this)}reconnectionDelayMax(n){var r;return n===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=n,(r=this.backoff)===null||r===void 0||r.setMax(n),this)}timeout(n){return arguments.length?(this._timeout=n,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(n){if(~this._readyState.indexOf("open"))return this;this.engine=new rL(this.uri,this.opts);const r=this.engine,i=this;this._readyState="opening",this.skipReconnect=!1;const s=Vr(r,"open",function(){i.onopen(),n&&n()}),a=c=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",c),n?n(c):this.maybeReconnectOnOpen()},o=Vr(r,"error",a);if(this._timeout!==!1){const c=this._timeout,d=this.setTimeoutFn(()=>{s(),a(new Error("timeout")),r.close()},c);this.opts.autoUnref&&d.unref(),this.subs.push(()=>{this.clearTimeoutFn(d)})}return this.subs.push(s),this.subs.push(o),this}connect(n){return this.open(n)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const n=this.engine;this.subs.push(Vr(n,"ping",this.onping.bind(this)),Vr(n,"data",this.ondata.bind(this)),Vr(n,"error",this.onerror.bind(this)),Vr(n,"close",this.onclose.bind(this)),Vr(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(n){try{this.decoder.add(n)}catch(r){this.onclose("parse error",r)}}ondecoded(n){pf(()=>{this.emitReserved("packet",n)},this.setTimeoutFn)}onerror(n){this.emitReserved("error",n)}socket(n,r){let i=this.nsps[n];return i?this._autoConnect&&!i.active&&i.connect():(i=new ZC(this,n,r),this.nsps[n]=i),i}_destroy(n){const r=Object.keys(this.nsps);for(const i of r)if(this.nsps[i].active)return;this._close()}_packet(n){const r=this.encoder.encode(n);for(let i=0;i<r.length;i++)this.engine.write(r[i],n.options)}cleanup(){this.subs.forEach(n=>n()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(n,r){var i;this.cleanup(),(i=this.engine)===null||i===void 0||i.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",n,r),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const n=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const r=this.backoff.duration();this._reconnecting=!0;const i=this.setTimeoutFn(()=>{n.skipReconnect||(this.emitReserved("reconnect_attempt",n.backoff.attempts),!n.skipReconnect&&n.open(s=>{s?(n._reconnecting=!1,n.reconnect(),this.emitReserved("reconnect_error",s)):n.onreconnect()}))},r);this.opts.autoUnref&&i.unref(),this.subs.push(()=>{this.clearTimeoutFn(i)})}}onreconnect(){const n=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",n)}}const yc={};function Sh(e,n){typeof e=="object"&&(n=e,e=void 0),n=n||{};const r=iL(e,n.path||"/socket.io"),i=r.source,s=r.id,a=r.path,o=yc[s]&&a in yc[s].nsps,c=n.forceNew||n["force new connection"]||n.multiplex===!1||o;let d;return c?d=new t0(i,n):(yc[s]||(yc[s]=new t0(i,n)),d=yc[s]),r.query&&!n.query&&(n.query=r.queryKey),d.socket(r.path,n)}Object.assign(Sh,{Manager:t0,Socket:ZC,io:Sh,connect:Sh});function _N(e,n){var r;const i=Sh(e.serverUrl,{path:e.mountPath,transports:e.transports,query:{app_id:e.appId,token:(r=e.token)!==null&&r!==void 0?r:cv()}});return i.on("connect",async()=>{var s;return console.log("connect",i.id),(s=n.connect)===null||s===void 0?void 0:s.call(n)}),i.on("update_model",async s=>{var a;return(a=n.update_model)===null||a===void 0?void 0:a.call(n,s)}),i.on("error",async s=>{var a;return(a=n.error)===null||a===void 0?void 0:a.call(n,s)}),i.on("connect_error",async s=>{var a;return console.error("connect_error",s),(a=n.error)===null||a===void 0?void 0:a.call(n,s)}),i}function xL({config:e}){let n={...e};const r={},i={connect:async()=>{const g=[];Object.keys(r).forEach(b=>{d(b);const j=m(b);j==null||j.forEach(({connect:y})=>{const x=async()=>y==null?void 0:y();g.push(x())})}),await Promise.all(g)},update_model:async g=>{const j=m(g.room).map(y=>{var x;return(x=y.update_model)===null||x===void 0?void 0:x.call(y,g)});await Promise.all(j)},error:async g=>{console.error("error",g);const b=Object.values(r).flat().map(j=>{var y;return(y=j.error)===null||y===void 0?void 0:y.call(j,g)});await Promise.all(b)}};let s=_N(e,i);function a(){o()}function o(){s&&s.disconnect()}function c(g){a(),n={...n,...g},s=_N(n,i)}function d(g){s.emit("join",g)}function f(g){s.emit("leave",g)}async function h(g,b){var j;const y=JSON.stringify(b);return(j=i.update_model)===null||j===void 0?void 0:j.call(i,{room:g,data:y})}function m(g){return r[g]}return{socket:s,subscribeToRoom:(g,b)=>(r[g]||(d(g),r[g]=[]),r[g].push(b),()=>{var j,y;r[g]=(y=(j=r[g])===null||j===void 0?void 0:j.filter(x=>x!==b))!==null&&y!==void 0?y:[],r[g].length===0&&f(g)}),updateConfig:c,updateModel:h,disconnect:o}}const vc=typeof window<"u"?window:{base44SharedInstances:{}};function yL(e,n){return vc.base44SharedInstances||(vc.base44SharedInstances={}),vc.base44SharedInstances[e]||(vc.base44SharedInstances[e]={instance:n()}),vc.base44SharedInstances[e].instance}const vL="__user_heartbeat_event__",bL="__initialization_event__",jL="__session_duration_event__",SN="analytics-enable",AN="base44_analytics_session_id",wL={enabled:!0,maxQueueSize:1e3,throttleTime:1e3,batchSize:30,heartBeatInterval:60*1e3},NL="analytics",Ot=yL(NL,()=>({requestsQueue:[],isProcessing:!1,isHeartBeatProcessing:!1,wasInitializationTracked:!1,sessionContext:null,sessionStartTime:null,config:{...wL,...PL()}})),kL=({axiosClient:e,serverUrl:n,appId:r,userAuthModule:i})=>{var s;const{maxQueueSize:a,throttleTime:o,batchSize:c}=Ot.config;if(!(!((s=Ot.config)===null||s===void 0)&&s.enabled))return{track:()=>{},cleanup:()=>{}};let d;const f=`${n}/api/apps/${r}/analytics/track/batch`,h=async w=>{await e.request({method:"POST",url:`/apps/${r}/analytics/track/batch`,data:{events:w}})},m=w=>{try{const k=JSON.stringify({events:w}),A=new Blob([k],{type:"application/json"});return typeof navigator>"u"||k.length>6e4||!navigator.sendBeacon(f,A)}catch{return!1}},p=async(w,k={})=>{if(w.length===0)return;const A=await TL(i),S=w.map(EL(A));try{(!k.isBeacon||!m(S))&&await h(S)}catch{}},g=()=>{EN(p,{throttleTime:o,batchSize:c})},b=w=>{if(Ot.requestsQueue.length>=a)return;const k=CL();Ot.requestsQueue.push({...w,...k}),g()},j=()=>{EN(p,{throttleTime:o,batchSize:c}),d=TN(b),SL()},y=()=>{CN(),d==null||d(),AL(b);const w=Ot.requestsQueue.splice(0);p(w,{isBeacon:!0})},x=()=>{typeof window>"u"||(document.visibilityState==="hidden"?y():document.visibilityState==="visible"&&j())},N=()=>{CN(),d==null||d(),typeof window<"u"&&window.removeEventListener("visibilitychange",x)};return g(),d=TN(b),_L(b),typeof window<"u"&&window.addEventListener("visibilitychange",x),{track:b,cleanup:N}};function CN(){Ot.isProcessing=!1}async function EN(e,n){if(Ot.isProcessing)return;Ot.isProcessing=!0;const{throttleTime:r=1e3,batchSize:i=30}=n??{};for(;Ot.isProcessing&&Ot.requestsQueue.length>0;){const s=Ot.requestsQueue.splice(0,i);s.length&&await e(s),await new Promise(a=>setTimeout(a,r))}Ot.isProcessing=!1}function TN(e){var n;if(Ot.isHeartBeatProcessing||((n=Ot.config.heartBeatInterval)!==null&&n!==void 0?n:0)<10)return()=>{};Ot.isHeartBeatProcessing=!0;const r=setInterval(()=>{e({eventName:vL})},Ot.config.heartBeatInterval);return()=>{clearInterval(r),Ot.isHeartBeatProcessing=!1}}function _L(e){typeof window>"u"||Ot.wasInitializationTracked||(Ot.wasInitializationTracked=!0,e({eventName:bL,properties:{referrer:document==null?void 0:document.referrer}}))}function SL(){typeof window>"u"||Ot.sessionStartTime!==null||(Ot.sessionStartTime=new Date().toISOString())}function AL(e){if(typeof window>"u"||Ot.sessionStartTime===null)return;const n=new Date().getTime()-new Date(Ot.sessionStartTime).getTime();Ot.sessionStartTime=null,e({eventName:jL,properties:{sessionDuration:n}})}function CL(){return{timestamp:new Date().toISOString(),pageUrl:typeof window<"u"?window.location.pathname:null}}function EL(e){return n=>({event_name:n.eventName,properties:n.properties,timestamp:n.timestamp,page_url:n.pageUrl,...e})}let Jp=null;async function TL(e){if(!Ot.sessionContext){if(!Jp){const n=OL();Jp=e.me().then(r=>({user_id:r.id,session_id:n})).catch(()=>({user_id:null,session_id:n}))}Ot.sessionContext=await Jp}return Ot.sessionContext}function PL(){if(typeof window>"u")return;const n=new URLSearchParams(window.location.search).get(SN);if(n==null||!n.length)return;const r=new URLSearchParams(window.location.search);r.delete(SN);const i=window.location.pathname+(r.toString()?"?"+r.toString():"");return window.history.replaceState({},"",i),{enabled:n==="true"}}function OL(){if(typeof window>"u")return Kp();try{const e=localStorage.getItem(AN);if(!e){const n=Kp();return localStorage.setItem(AN,n),n}return e}catch{return Kp()}}function DL(e){const{serverUrl:n="https://base44.app",appId:r,token:i,serviceToken:s,requiresAuth:a=!1,appBaseUrl:o,options:c,functionsVersion:d,headers:f}=e,h=typeof o=="string"?o:"",m={serverUrl:n,mountPath:"/ws-user-apps/socket.io/",transports:["websocket"],appId:r,token:i};let p=null;const g=()=>(p||(p=xL({config:m})),p),b={...f,"X-App-Id":String(r)},j=d?{...b,"Base44-Functions-Version":d}:b,y=Ec({baseURL:`${n}/api`,headers:b,token:i,onError:c==null?void 0:c.onError}),x=Ec({baseURL:`${n}/api`,headers:j,token:i,interceptResponses:!1,onError:c==null?void 0:c.onError}),N=Ec({baseURL:`${n}/api`,headers:b,token:s,onError:c==null?void 0:c.onError}),w=Ec({baseURL:`${n}/api`,headers:j,token:s,interceptResponses:!1}),k=vM(y,x,r,{appBaseUrl:h}),A={entities:pN({axios:y,appId:r,getSocket:g}),integrations:gN(y,r),auth:k,functions:xN(x,r),agents:yN({axios:y,getSocket:g,appId:r,serverUrl:n,token:i}),appLogs:vN(y,r),users:NM(y,r),analytics:kL({axiosClient:y,serverUrl:n,appId:r,userAuthModule:k}),cleanup:()=>{A.analytics.cleanup(),p&&p.disconnect()}},S={entities:pN({axios:N,appId:r,getSocket:g}),integrations:gN(N,r),sso:bM(N,r,i),connectors:jM(N,r),functions:xN(w,r),agents:yN({axios:N,getSocket:g,appId:r,serverUrl:n,token:i}),appLogs:vN(N,r),cleanup:()=>{p&&p.disconnect()}};if(typeof window<"u"){const C=i||cv();C&&A.auth.setToken(C)}return a&&typeof window<"u"&&setTimeout(async()=>{try{await A.auth.isAuthenticated()||A.auth.redirectToLogin(window.location.href)}catch(C){console.error("Authentication check failed:",C),A.auth.redirectToLogin(window.location.href)}},0),{...A,setToken(C){A.auth.setToken(C),p&&p.updateConfig({token:C}),m.token=C},getConfig(){return{serverUrl:n,appId:r,requiresAuth:a}},get asServiceRole(){if(!s)throw new Error("Service token is required to use asServiceRole. Please provide a serviceToken when creating the client.");return S}}}const e4=typeof window>"u",IL=e4?{localStorage:new Map}:window,qc=IL.localStorage,RL=e=>e.replace(/([A-Z])/g,"_$1").toLowerCase(),Ao=(e,{defaultValue:n=void 0,removeFromUrl:r=!1}={})=>{if(e4)return n;const i=`base44_${RL(e)}`,s=new URLSearchParams(window.location.search),a=s.get(e);if(r){s.delete(e);const c=`${window.location.pathname}${s.toString()?`?${s.toString()}`:""}${window.location.hash}`;window.history.replaceState({},document.title,c)}if(a)return qc.setItem(i,a),a;if(n)return qc.setItem(i,n),n;const o=qc.getItem(i);return o||null},FL=()=>(Ao("clear_access_token")==="true"&&(qc.removeItem("base44_access_token"),qc.removeItem("token")),{appId:Ao("app_id",{defaultValue:"695a3d411fa079edce588856"}),token:Ao("access_token",{removeFromUrl:!0}),fromUrl:Ao("from_url",{defaultValue:window.location.href}),functionsVersion:Ao("functions_version",{defaultValue:"prod"}),appBaseUrl:Ao("app_base_url",{defaultValue:void 0})}),Pc={...FL()},{appId:ML,token:LL,functionsVersion:BL,appBaseUrl:qL}=Pc,ue=DL({appId:ML,token:LL,functionsVersion:BL,serverUrl:"",requiresAuth:!1,appBaseUrl:qL}),t4=F.createContext(),zL=({children:e})=>{const[n,r]=F.useState(null),[i,s]=F.useState(!1),[a,o]=F.useState(!0),[c,d]=F.useState(!0),[f,h]=F.useState(null),[m,p]=F.useState(null);F.useEffect(()=>{g()},[]);const g=async()=>{var x,N;try{d(!0),h(null);const w=Ec({baseURL:"/api/apps/public",headers:{"X-App-Id":Pc.appId},token:Pc.token,interceptResponses:!0});try{const k=await w.get(`/prod/public-settings/by-id/${Pc.appId}`);p(k),Pc.token?await b():(o(!1),s(!1)),d(!1)}catch(k){if(console.error("App state check failed:",k),k.status===403&&((N=(x=k.data)==null?void 0:x.extra_data)!=null&&N.reason)){const A=k.data.extra_data.reason;h(A==="auth_required"?{type:"auth_required",message:"Authentication required"}:A==="user_not_registered"?{type:"user_not_registered",message:"User not registered for this app"}:{type:A,message:k.message})}else h({type:"unknown",message:k.message||"Failed to load app"});d(!1),o(!1)}}catch(w){console.error("Unexpected error:",w),h({type:"unknown",message:w.message||"An unexpected error occurred"}),d(!1),o(!1)}},b=async()=>{try{o(!0);const x=await ue.auth.me();r(x),s(!0),o(!1)}catch(x){console.error("User auth check failed:",x),o(!1),s(!1),(x.status===401||x.status===403)&&h({type:"auth_required",message:"Authentication required"})}},j=(x=!0)=>{r(null),s(!1),x?ue.auth.logout(window.location.href):ue.auth.logout()},y=()=>{ue.auth.redirectToLogin(window.location.href)};return t.jsx(t4.Provider,{value:{user:n,isAuthenticated:i,isLoadingAuth:a,isLoadingPublicSettings:c,authError:f,appPublicSettings:m,logout:j,navigateToLogin:y,checkAppState:g},children:e})},n4=()=>{const e=F.useContext(t4);if(!e)throw new Error("useAuth must be used within an AuthProvider");return e};function oe(e){return"/"+e.replace(/ /g,"-")}const xf=F.createContext(null);function pv(e){const n=F.useRef(null);return n.current===null&&(n.current=e()),n.current}const gv=F.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});class VL extends F.Component{getSnapshotBeforeUpdate(n){const r=this.props.childRef.current;if(r&&n.isPresent&&!this.props.isPresent){const i=this.props.sizeRef.current;i.height=r.offsetHeight||0,i.width=r.offsetWidth||0,i.top=r.offsetTop,i.left=r.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function UL({children:e,isPresent:n}){const r=F.useId(),i=F.useRef(null),s=F.useRef({width:0,height:0,top:0,left:0}),{nonce:a}=F.useContext(gv);return F.useInsertionEffect(()=>{const{width:o,height:c,top:d,left:f}=s.current;if(n||!i.current||!o||!c)return;i.current.dataset.motionPopId=r;const h=document.createElement("style");return a&&(h.nonce=a),document.head.appendChild(h),h.sheet&&h.sheet.insertRule(`
          [data-motion-pop-id="${r}"] {
            position: absolute !important;
            width: ${o}px !important;
            height: ${c}px !important;
            top: ${d}px !important;
            left: ${f}px !important;
          }
        `),()=>{document.head.removeChild(h)}},[n]),t.jsx(VL,{isPresent:n,childRef:i,sizeRef:s,children:F.cloneElement(e,{ref:i})})}const $L=({children:e,initial:n,isPresent:r,onExitComplete:i,custom:s,presenceAffectsLayout:a,mode:o})=>{const c=pv(HL),d=F.useId(),f=F.useCallback(m=>{c.set(m,!0);for(const p of c.values())if(!p)return;i&&i()},[c,i]),h=F.useMemo(()=>({id:d,initial:n,isPresent:r,custom:s,onExitComplete:f,register:m=>(c.set(m,!1),()=>c.delete(m))}),a?[Math.random(),f]:[r,f]);return F.useMemo(()=>{c.forEach((m,p)=>c.set(p,!1))},[r]),F.useEffect(()=>{!r&&!c.size&&i&&i()},[r]),o==="popLayout"&&(e=t.jsx(UL,{isPresent:r,children:e})),t.jsx(xf.Provider,{value:h,children:e})};function HL(){return new Map}const xv=F.createContext({}),fr=e=>e;let r4=fr;function yv(e){let n;return()=>(n===void 0&&(n=e()),n)}const ul=(e,n,r)=>{const i=n-e;return i===0?1:(r-e)/i},Vi=e=>e*1e3,Ui=e=>e/1e3,eh=e=>e.key||"";function PN(e){const n=[];return F.Children.forEach(e,r=>{F.isValidElement(r)&&n.push(r)}),n}const vv=typeof window<"u",i4=vv?F.useLayoutEffect:F.useEffect,ai=({children:e,exitBeforeEnter:n,custom:r,initial:i=!0,onExitComplete:s,presenceAffectsLayout:a=!0,mode:o="sync"})=>{const c=F.useMemo(()=>PN(e),[e]),d=c.map(eh),f=F.useRef(!0),h=F.useRef(c),m=pv(()=>new Map),[p,g]=F.useState(c),[b,j]=F.useState(c);i4(()=>{f.current=!1,h.current=c;for(let N=0;N<b.length;N++){const w=eh(b[N]);d.includes(w)?m.delete(w):m.get(w)!==!0&&m.set(w,!1)}},[b,d.length,d.join("-")]);const y=[];if(c!==p){let N=[...c];for(let w=0;w<b.length;w++){const k=b[w],A=eh(k);d.includes(A)||(N.splice(w,0,k),y.push(k))}o==="wait"&&y.length&&(N=y),j(PN(N)),g(c);return}const{forceRender:x}=F.useContext(xv);return t.jsx(t.Fragment,{children:b.map(N=>{const w=eh(N),k=c===b||d.includes(w),A=()=>{if(m.has(w))m.set(w,!0);else return;let S=!0;m.forEach(E=>{E||(S=!1)}),S&&(x==null||x(),j(h.current),s&&s())};return t.jsx($L,{isPresent:k,initial:!f.current||i?void 0:!1,custom:k?void 0:r,presenceAffectsLayout:a,mode:o,onExitComplete:k?void 0:A,children:N},w)})})},WL={useManualTiming:!1};function KL(e){let n=new Set,r=new Set,i=!1,s=!1;const a=new WeakSet;let o={delta:0,timestamp:0,isProcessing:!1};function c(f){a.has(f)&&(d.schedule(f),e()),f(o)}const d={schedule:(f,h=!1,m=!1)=>{const g=m&&i?n:r;return h&&a.add(f),g.has(f)||g.add(f),f},cancel:f=>{r.delete(f),a.delete(f)},process:f=>{if(o=f,i){s=!0;return}i=!0,[n,r]=[r,n],n.forEach(c),n.clear(),i=!1,s&&(s=!1,d.process(f))}};return d}const th=["read","resolveKeyframes","update","preRender","render","postRender"],GL=40;function s4(e,n){let r=!1,i=!0;const s={delta:0,timestamp:0,isProcessing:!1},a=()=>r=!0,o=th.reduce((x,N)=>(x[N]=KL(a),x),{}),{read:c,resolveKeyframes:d,update:f,preRender:h,render:m,postRender:p}=o,g=()=>{const x=performance.now();r=!1,s.delta=i?1e3/60:Math.max(Math.min(x-s.timestamp,GL),1),s.timestamp=x,s.isProcessing=!0,c.process(s),d.process(s),f.process(s),h.process(s),m.process(s),p.process(s),s.isProcessing=!1,r&&n&&(i=!1,e(g))},b=()=>{r=!0,i=!0,s.isProcessing||e(g)};return{schedule:th.reduce((x,N)=>{const w=o[N];return x[N]=(k,A=!1,S=!1)=>(r||b(),w.schedule(k,A,S)),x},{}),cancel:x=>{for(let N=0;N<th.length;N++)o[th[N]].cancel(x)},state:s,steps:o}}const{schedule:Bt,cancel:Ws,state:Nn,steps:Zp}=s4(typeof requestAnimationFrame<"u"?requestAnimationFrame:fr,!0),a4=F.createContext({strict:!1}),ON={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},dl={};for(const e in ON)dl[e]={isEnabled:n=>ON[e].some(r=>!!n[r])};function QL(e){for(const n in e)dl[n]={...dl[n],...e[n]}}const YL=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function zh(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||YL.has(e)}let o4=e=>!zh(e);function XL(e){e&&(o4=n=>n.startsWith("on")?!zh(n):e(n))}try{XL(require("@emotion/is-prop-valid").default)}catch{}function JL(e,n,r){const i={};for(const s in e)s==="values"&&typeof e.values=="object"||(o4(s)||r===!0&&zh(s)||!n&&!zh(s)||e.draggable&&s.startsWith("onDrag"))&&(i[s]=e[s]);return i}function ZL(e){if(typeof Proxy>"u")return e;const n=new Map,r=(...i)=>e(...i);return new Proxy(r,{get:(i,s)=>s==="create"?e:(n.has(s)||n.set(s,e(s)),n.get(s))})}const yf=F.createContext({});function nu(e){return typeof e=="string"||Array.isArray(e)}function vf(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const bv=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],jv=["initial",...bv];function bf(e){return vf(e.animate)||jv.some(n=>nu(e[n]))}function l4(e){return!!(bf(e)||e.variants)}function eB(e,n){if(bf(e)){const{initial:r,animate:i}=e;return{initial:r===!1||nu(r)?r:void 0,animate:nu(i)?i:void 0}}return e.inherit!==!1?n:{}}function tB(e){const{initial:n,animate:r}=eB(e,F.useContext(yf));return F.useMemo(()=>({initial:n,animate:r}),[DN(n),DN(r)])}function DN(e){return Array.isArray(e)?e.join(" "):e}const nB=Symbol.for("motionComponentSymbol");function Mo(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function rB(e,n,r){return F.useCallback(i=>{i&&e.mount&&e.mount(i),n&&(i?n.mount(i):n.unmount()),r&&(typeof r=="function"?r(i):Mo(r)&&(r.current=i))},[n])}const wv=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),iB="framerAppearId",c4="data-"+wv(iB),{schedule:Nv}=s4(queueMicrotask,!1),u4=F.createContext({});function sB(e,n,r,i,s){var a,o;const{visualElement:c}=F.useContext(yf),d=F.useContext(a4),f=F.useContext(xf),h=F.useContext(gv).reducedMotion,m=F.useRef(null);i=i||d.renderer,!m.current&&i&&(m.current=i(e,{visualState:n,parent:c,props:r,presenceContext:f,blockInitialAnimation:f?f.initial===!1:!1,reducedMotionConfig:h}));const p=m.current,g=F.useContext(u4);p&&!p.projection&&s&&(p.type==="html"||p.type==="svg")&&aB(m.current,r,s,g);const b=F.useRef(!1);F.useInsertionEffect(()=>{p&&b.current&&p.update(r,f)});const j=r[c4],y=F.useRef(!!j&&!(!((a=window.MotionHandoffIsComplete)===null||a===void 0)&&a.call(window,j))&&((o=window.MotionHasOptimisedAnimation)===null||o===void 0?void 0:o.call(window,j)));return i4(()=>{p&&(b.current=!0,window.MotionIsMounted=!0,p.updateFeatures(),Nv.render(p.render),y.current&&p.animationState&&p.animationState.animateChanges())}),F.useEffect(()=>{p&&(!y.current&&p.animationState&&p.animationState.animateChanges(),y.current&&(queueMicrotask(()=>{var x;(x=window.MotionHandoffMarkAsComplete)===null||x===void 0||x.call(window,j)}),y.current=!1))}),p}function aB(e,n,r,i){const{layoutId:s,layout:a,drag:o,dragConstraints:c,layoutScroll:d,layoutRoot:f}=n;e.projection=new r(e.latestValues,n["data-framer-portal-id"]?void 0:d4(e.parent)),e.projection.setOptions({layoutId:s,layout:a,alwaysMeasureLayout:!!o||c&&Mo(c),visualElement:e,animationType:typeof a=="string"?a:"both",initialPromotionConfig:i,layoutScroll:d,layoutRoot:f})}function d4(e){if(e)return e.options.allowProjection!==!1?e.projection:d4(e.parent)}function oB({preloadedFeatures:e,createVisualElement:n,useRender:r,useVisualState:i,Component:s}){var a,o;e&&QL(e);function c(f,h){let m;const p={...F.useContext(gv),...f,layoutId:lB(f)},{isStatic:g}=p,b=tB(f),j=i(f,g);if(!g&&vv){cB();const y=uB(p);m=y.MeasureLayout,b.visualElement=sB(s,j,p,n,y.ProjectionNode)}return t.jsxs(yf.Provider,{value:b,children:[m&&b.visualElement?t.jsx(m,{visualElement:b.visualElement,...p}):null,r(s,f,rB(j,b.visualElement,h),j,g,b.visualElement)]})}c.displayName=`motion.${typeof s=="string"?s:`create(${(o=(a=s.displayName)!==null&&a!==void 0?a:s.name)!==null&&o!==void 0?o:""})`}`;const d=F.forwardRef(c);return d[nB]=s,d}function lB({layoutId:e}){const n=F.useContext(xv).id;return n&&e!==void 0?n+"-"+e:e}function cB(e,n){F.useContext(a4).strict}function uB(e){const{drag:n,layout:r}=dl;if(!n&&!r)return{};const i={...n,...r};return{MeasureLayout:n!=null&&n.isEnabled(e)||r!=null&&r.isEnabled(e)?i.MeasureLayout:void 0,ProjectionNode:i.ProjectionNode}}const dB=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function kv(e){return typeof e!="string"||e.includes("-")?!1:!!(dB.indexOf(e)>-1||/[A-Z]/u.test(e))}function h4(e,{style:n,vars:r},i,s){Object.assign(e.style,n,s&&s.getProjectionStyles(i));for(const a in r)e.style.setProperty(a,r[a])}const f4=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function m4(e,n,r,i){h4(e,n,void 0,i);for(const s in n.attrs)e.setAttribute(f4.has(s)?s:wv(s),n.attrs[s])}const On=e=>!!(e&&e.getVelocity),Vh={};function hB(e){Object.assign(Vh,e)}const Au=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Ja=new Set(Au);function p4(e,{layout:n,layoutId:r}){return Ja.has(e)||e.startsWith("origin")||(n||r!==void 0)&&(!!Vh[e]||e==="opacity")}function _v(e,n,r){var i;const{style:s}=e,a={};for(const o in s)(On(s[o])||n.style&&On(n.style[o])||p4(o,e)||((i=r==null?void 0:r.getValue(o))===null||i===void 0?void 0:i.liveStyle)!==void 0)&&(a[o]=s[o]);return a}function g4(e,n,r){const i=_v(e,n,r);for(const s in e)if(On(e[s])||On(n[s])){const a=Au.indexOf(s)!==-1?"attr"+s.charAt(0).toUpperCase()+s.substring(1):s;i[a]=e[s]}return i}function IN(e){const n=[{},{}];return e==null||e.values.forEach((r,i)=>{n[0][i]=r.get(),n[1][i]=r.getVelocity()}),n}function Sv(e,n,r,i){if(typeof n=="function"){const[s,a]=IN(i);n=n(r!==void 0?r:e.custom,s,a)}if(typeof n=="string"&&(n=e.variants&&e.variants[n]),typeof n=="function"){const[s,a]=IN(i);n=n(r!==void 0?r:e.custom,s,a)}return n}const n0=e=>Array.isArray(e),fB=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),mB=e=>n0(e)?e[e.length-1]||0:e;function Ah(e){const n=On(e)?e.get():e;return fB(n)?n.toValue():n}function pB({scrapeMotionValuesFromProps:e,createRenderState:n,onMount:r},i,s,a){const o={latestValues:gB(i,s,a,e),renderState:n()};return r&&(o.mount=c=>r(i,c,o)),o}const x4=e=>(n,r)=>{const i=F.useContext(yf),s=F.useContext(xf),a=()=>pB(e,n,i,s);return r?a():pv(a)};function gB(e,n,r,i){const s={},a=i(e,{});for(const p in a)s[p]=Ah(a[p]);let{initial:o,animate:c}=e;const d=bf(e),f=l4(e);n&&f&&!d&&e.inherit!==!1&&(o===void 0&&(o=n.initial),c===void 0&&(c=n.animate));let h=r?r.initial===!1:!1;h=h||o===!1;const m=h?c:o;if(m&&typeof m!="boolean"&&!vf(m)){const p=Array.isArray(m)?m:[m];for(let g=0;g<p.length;g++){const b=Sv(e,p[g]);if(b){const{transitionEnd:j,transition:y,...x}=b;for(const N in x){let w=x[N];if(Array.isArray(w)){const k=h?w.length-1:0;w=w[k]}w!==null&&(s[N]=w)}for(const N in j)s[N]=j[N]}}}return s}const Av=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),y4=()=>({...Av(),attrs:{}}),v4=(e,n)=>n&&typeof e=="number"?n.transform(e):e,Wi=(e,n,r)=>r>n?n:r<e?e:r,_l={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},ru={..._l,transform:e=>Wi(0,1,e)},nh={..._l,default:1},Cu=e=>({test:n=>typeof n=="string"&&n.endsWith(e)&&n.split(" ").length===1,parse:parseFloat,transform:n=>`${n}${e}`}),_s=Cu("deg"),pi=Cu("%"),Ye=Cu("px"),xB=Cu("vh"),yB=Cu("vw"),RN={...pi,parse:e=>pi.parse(e)/100,transform:e=>pi.transform(e*100)},vB={borderWidth:Ye,borderTopWidth:Ye,borderRightWidth:Ye,borderBottomWidth:Ye,borderLeftWidth:Ye,borderRadius:Ye,radius:Ye,borderTopLeftRadius:Ye,borderTopRightRadius:Ye,borderBottomRightRadius:Ye,borderBottomLeftRadius:Ye,width:Ye,maxWidth:Ye,height:Ye,maxHeight:Ye,top:Ye,right:Ye,bottom:Ye,left:Ye,padding:Ye,paddingTop:Ye,paddingRight:Ye,paddingBottom:Ye,paddingLeft:Ye,margin:Ye,marginTop:Ye,marginRight:Ye,marginBottom:Ye,marginLeft:Ye,backgroundPositionX:Ye,backgroundPositionY:Ye},bB={rotate:_s,rotateX:_s,rotateY:_s,rotateZ:_s,scale:nh,scaleX:nh,scaleY:nh,scaleZ:nh,skew:_s,skewX:_s,skewY:_s,distance:Ye,translateX:Ye,translateY:Ye,translateZ:Ye,x:Ye,y:Ye,z:Ye,perspective:Ye,transformPerspective:Ye,opacity:ru,originX:RN,originY:RN,originZ:Ye},FN={..._l,transform:Math.round},Cv={...vB,...bB,zIndex:FN,size:Ye,fillOpacity:ru,strokeOpacity:ru,numOctaves:FN},jB={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},wB=Au.length;function NB(e,n,r){let i="",s=!0;for(let a=0;a<wB;a++){const o=Au[a],c=e[o];if(c===void 0)continue;let d=!0;if(typeof c=="number"?d=c===(o.startsWith("scale")?1:0):d=parseFloat(c)===0,!d||r){const f=v4(c,Cv[o]);if(!d){s=!1;const h=jB[o]||o;i+=`${h}(${f}) `}r&&(n[o]=f)}}return i=i.trim(),r?i=r(n,s?"":i):s&&(i="none"),i}const b4=e=>n=>typeof n=="string"&&n.startsWith(e),j4=b4("--"),kB=b4("var(--"),Ev=e=>kB(e)?_B.test(e.split("/*")[0].trim()):!1,_B=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function Tv(e,n,r){const{style:i,vars:s,transformOrigin:a}=e;let o=!1,c=!1;for(const d in n){const f=n[d];if(Ja.has(d)){o=!0;continue}else if(j4(d)){s[d]=f;continue}else{const h=v4(f,Cv[d]);d.startsWith("origin")?(c=!0,a[d]=h):i[d]=h}}if(n.transform||(o||r?i.transform=NB(n,e.transform,r):i.transform&&(i.transform="none")),c){const{originX:d="50%",originY:f="50%",originZ:h=0}=a;i.transformOrigin=`${d} ${f} ${h}`}}function MN(e,n,r){return typeof e=="string"?e:Ye.transform(n+r*e)}function SB(e,n,r){const i=MN(n,e.x,e.width),s=MN(r,e.y,e.height);return`${i} ${s}`}const AB={offset:"stroke-dashoffset",array:"stroke-dasharray"},CB={offset:"strokeDashoffset",array:"strokeDasharray"};function EB(e,n,r=1,i=0,s=!0){e.pathLength=1;const a=s?AB:CB;e[a.offset]=Ye.transform(-i);const o=Ye.transform(n),c=Ye.transform(r);e[a.array]=`${o} ${c}`}function Pv(e,{attrX:n,attrY:r,attrScale:i,originX:s,originY:a,pathLength:o,pathSpacing:c=1,pathOffset:d=0,...f},h,m){if(Tv(e,f,m),h){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:p,style:g,dimensions:b}=e;p.transform&&(b&&(g.transform=p.transform),delete p.transform),b&&(s!==void 0||a!==void 0||g.transform)&&(g.transformOrigin=SB(b,s!==void 0?s:.5,a!==void 0?a:.5)),n!==void 0&&(p.x=n),r!==void 0&&(p.y=r),i!==void 0&&(p.scale=i),o!==void 0&&EB(p,o,c,d,!1)}const Ov=e=>typeof e=="string"&&e.toLowerCase()==="svg",TB={useVisualState:x4({scrapeMotionValuesFromProps:g4,createRenderState:y4,onMount:(e,n,{renderState:r,latestValues:i})=>{Bt.read(()=>{try{r.dimensions=typeof n.getBBox=="function"?n.getBBox():n.getBoundingClientRect()}catch{r.dimensions={x:0,y:0,width:0,height:0}}}),Bt.render(()=>{Pv(r,i,Ov(n.tagName),e.transformTemplate),m4(n,r)})}})},PB={useVisualState:x4({scrapeMotionValuesFromProps:_v,createRenderState:Av})};function w4(e,n,r){for(const i in n)!On(n[i])&&!p4(i,r)&&(e[i]=n[i])}function OB({transformTemplate:e},n){return F.useMemo(()=>{const r=Av();return Tv(r,n,e),Object.assign({},r.vars,r.style)},[n])}function DB(e,n){const r=e.style||{},i={};return w4(i,r,e),Object.assign(i,OB(e,n)),i}function IB(e,n){const r={},i=DB(e,n);return e.drag&&e.dragListener!==!1&&(r.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(r.tabIndex=0),r.style=i,r}function RB(e,n,r,i){const s=F.useMemo(()=>{const a=y4();return Pv(a,n,Ov(i),e.transformTemplate),{...a.attrs,style:{...a.style}}},[n]);if(e.style){const a={};w4(a,e.style,e),s.style={...a,...s.style}}return s}function FB(e=!1){return(r,i,s,{latestValues:a},o)=>{const d=(kv(r)?RB:IB)(i,a,o,r),f=JL(i,typeof r=="string",e),h=r!==F.Fragment?{...f,...d,ref:s}:{},{children:m}=i,p=F.useMemo(()=>On(m)?m.get():m,[m]);return F.createElement(r,{...h,children:p})}}function MB(e,n){return function(i,{forwardMotionProps:s}={forwardMotionProps:!1}){const o={...kv(i)?TB:PB,preloadedFeatures:e,useRender:FB(s),createVisualElement:n,Component:i};return oB(o)}}function N4(e,n){if(!Array.isArray(n))return!1;const r=n.length;if(r!==e.length)return!1;for(let i=0;i<r;i++)if(n[i]!==e[i])return!1;return!0}function jf(e,n,r){const i=e.getProps();return Sv(i,n,r!==void 0?r:i.custom,e)}const LB=yv(()=>window.ScrollTimeline!==void 0);class BB{constructor(n){this.stop=()=>this.runAll("stop"),this.animations=n.filter(Boolean)}get finished(){return Promise.all(this.animations.map(n=>"finished"in n?n.finished:n))}getAll(n){return this.animations[0][n]}setAll(n,r){for(let i=0;i<this.animations.length;i++)this.animations[i][n]=r}attachTimeline(n,r){const i=this.animations.map(s=>{if(LB()&&s.attachTimeline)return s.attachTimeline(n);if(typeof r=="function")return r(s)});return()=>{i.forEach((s,a)=>{s&&s(),this.animations[a].stop()})}}get time(){return this.getAll("time")}set time(n){this.setAll("time",n)}get speed(){return this.getAll("speed")}set speed(n){this.setAll("speed",n)}get startTime(){return this.getAll("startTime")}get duration(){let n=0;for(let r=0;r<this.animations.length;r++)n=Math.max(n,this.animations[r].duration);return n}runAll(n){this.animations.forEach(r=>r[n]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class qB extends BB{then(n,r){return Promise.all(this.animations).then(n).catch(r)}}function Dv(e,n){return e?e[n]||e.default||e:void 0}const r0=2e4;function k4(e){let n=0;const r=50;let i=e.next(n);for(;!i.done&&n<r0;)n+=r,i=e.next(n);return n>=r0?1/0:n}function Iv(e){return typeof e=="function"}function LN(e,n){e.timeline=n,e.onfinish=null}const Rv=e=>Array.isArray(e)&&typeof e[0]=="number",zB={linearEasing:void 0};function VB(e,n){const r=yv(e);return()=>{var i;return(i=zB[n])!==null&&i!==void 0?i:r()}}const Uh=VB(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),_4=(e,n,r=10)=>{let i="";const s=Math.max(Math.round(n/r),2);for(let a=0;a<s;a++)i+=e(ul(0,s-1,a))+", ";return`linear(${i.substring(0,i.length-2)})`};function S4(e){return!!(typeof e=="function"&&Uh()||!e||typeof e=="string"&&(e in i0||Uh())||Rv(e)||Array.isArray(e)&&e.every(S4))}const Oc=([e,n,r,i])=>`cubic-bezier(${e}, ${n}, ${r}, ${i})`,i0={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Oc([0,.65,.55,1]),circOut:Oc([.55,0,1,.45]),backIn:Oc([.31,.01,.66,-.59]),backOut:Oc([.33,1.53,.69,.99])};function A4(e,n){if(e)return typeof e=="function"&&Uh()?_4(e,n):Rv(e)?Oc(e):Array.isArray(e)?e.map(r=>A4(r,n)||i0.easeOut):i0[e]}const Lr={x:!1,y:!1};function C4(){return Lr.x||Lr.y}function UB(e,n,r){var i;if(e instanceof Element)return[e];if(typeof e=="string"){let s=document;const a=(i=void 0)!==null&&i!==void 0?i:s.querySelectorAll(e);return a?Array.from(a):[]}return Array.from(e)}function E4(e,n){const r=UB(e),i=new AbortController,s={passive:!0,...n,signal:i.signal};return[r,s,()=>i.abort()]}function BN(e){return n=>{n.pointerType==="touch"||C4()||e(n)}}function $B(e,n,r={}){const[i,s,a]=E4(e,r),o=BN(c=>{const{target:d}=c,f=n(c);if(typeof f!="function"||!d)return;const h=BN(m=>{f(m),d.removeEventListener("pointerleave",h)});d.addEventListener("pointerleave",h,s)});return i.forEach(c=>{c.addEventListener("pointerenter",o,s)}),a}const T4=(e,n)=>n?e===n?!0:T4(e,n.parentElement):!1,Fv=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,HB=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function WB(e){return HB.has(e.tagName)||e.tabIndex!==-1}const Dc=new WeakSet;function qN(e){return n=>{n.key==="Enter"&&e(n)}}function eg(e,n){e.dispatchEvent(new PointerEvent("pointer"+n,{isPrimary:!0,bubbles:!0}))}const KB=(e,n)=>{const r=e.currentTarget;if(!r)return;const i=qN(()=>{if(Dc.has(r))return;eg(r,"down");const s=qN(()=>{eg(r,"up")}),a=()=>eg(r,"cancel");r.addEventListener("keyup",s,n),r.addEventListener("blur",a,n)});r.addEventListener("keydown",i,n),r.addEventListener("blur",()=>r.removeEventListener("keydown",i),n)};function zN(e){return Fv(e)&&!C4()}function GB(e,n,r={}){const[i,s,a]=E4(e,r),o=c=>{const d=c.currentTarget;if(!zN(c)||Dc.has(d))return;Dc.add(d);const f=n(c),h=(g,b)=>{window.removeEventListener("pointerup",m),window.removeEventListener("pointercancel",p),!(!zN(g)||!Dc.has(d))&&(Dc.delete(d),typeof f=="function"&&f(g,{success:b}))},m=g=>{h(g,r.useGlobalTarget||T4(d,g.target))},p=g=>{h(g,!1)};window.addEventListener("pointerup",m,s),window.addEventListener("pointercancel",p,s)};return i.forEach(c=>{!WB(c)&&c.getAttribute("tabindex")===null&&(c.tabIndex=0),(r.useGlobalTarget?window:c).addEventListener("pointerdown",o,s),c.addEventListener("focus",f=>KB(f,s),s)}),a}function QB(e){return e==="x"||e==="y"?Lr[e]?null:(Lr[e]=!0,()=>{Lr[e]=!1}):Lr.x||Lr.y?null:(Lr.x=Lr.y=!0,()=>{Lr.x=Lr.y=!1})}let Ch;function YB(){Ch=void 0}const gi={now:()=>(Ch===void 0&&gi.set(Nn.isProcessing||WL.useManualTiming?Nn.timestamp:performance.now()),Ch),set:e=>{Ch=e,queueMicrotask(YB)}};function Mv(e,n){e.indexOf(n)===-1&&e.push(n)}function Lv(e,n){const r=e.indexOf(n);r>-1&&e.splice(r,1)}class Bv{constructor(){this.subscriptions=[]}add(n){return Mv(this.subscriptions,n),()=>Lv(this.subscriptions,n)}notify(n,r,i){const s=this.subscriptions.length;if(s)if(s===1)this.subscriptions[0](n,r,i);else for(let a=0;a<s;a++){const o=this.subscriptions[a];o&&o(n,r,i)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function P4(e,n){return n?e*(1e3/n):0}const VN=30,XB=e=>!isNaN(parseFloat(e));class JB{constructor(n,r={}){this.version="11.16.4",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(i,s=!0)=>{const a=gi.now();this.updatedAt!==a&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(i),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),s&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(n),this.owner=r.owner}setCurrent(n){this.current=n,this.updatedAt=gi.now(),this.canTrackVelocity===null&&n!==void 0&&(this.canTrackVelocity=XB(this.current))}setPrevFrameValue(n=this.current){this.prevFrameValue=n,this.prevUpdatedAt=this.updatedAt}onChange(n){return this.on("change",n)}on(n,r){this.events[n]||(this.events[n]=new Bv);const i=this.events[n].add(r);return n==="change"?()=>{i(),Bt.read(()=>{this.events.change.getSize()||this.stop()})}:i}clearListeners(){for(const n in this.events)this.events[n].clear()}attach(n,r){this.passiveEffect=n,this.stopPassiveEffect=r}set(n,r=!0){!r||!this.passiveEffect?this.updateAndNotify(n,r):this.passiveEffect(n,this.updateAndNotify)}setWithVelocity(n,r,i){this.set(r),this.prev=void 0,this.prevFrameValue=n,this.prevUpdatedAt=this.updatedAt-i}jump(n,r=!0){this.updateAndNotify(n),this.prev=n,this.prevUpdatedAt=this.prevFrameValue=void 0,r&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const n=gi.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||n-this.updatedAt>VN)return 0;const r=Math.min(this.updatedAt-this.prevUpdatedAt,VN);return P4(parseFloat(this.current)-parseFloat(this.prevFrameValue),r)}start(n){return this.stop(),new Promise(r=>{this.hasAnimated=!0,this.animation=n(r),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function iu(e,n){return new JB(e,n)}function ZB(e,n,r){e.hasValue(n)?e.getValue(n).set(r):e.addValue(n,iu(r))}function e7(e,n){const r=jf(e,n);let{transitionEnd:i={},transition:s={},...a}=r||{};a={...a,...i};for(const o in a){const c=mB(a[o]);ZB(e,o,c)}}function t7(e){return!!(On(e)&&e.add)}function s0(e,n){const r=e.getValue("willChange");if(t7(r))return r.add(n)}function O4(e){return e.props[c4]}const D4=(e,n,r)=>(((1-3*r+3*n)*e+(3*r-6*n))*e+3*n)*e,n7=1e-7,r7=12;function i7(e,n,r,i,s){let a,o,c=0;do o=n+(r-n)/2,a=D4(o,i,s)-e,a>0?r=o:n=o;while(Math.abs(a)>n7&&++c<r7);return o}function Eu(e,n,r,i){if(e===n&&r===i)return fr;const s=a=>i7(a,0,1,e,r);return a=>a===0||a===1?a:D4(s(a),n,i)}const I4=e=>n=>n<=.5?e(2*n)/2:(2-e(2*(1-n)))/2,R4=e=>n=>1-e(1-n),F4=Eu(.33,1.53,.69,.99),qv=R4(F4),M4=I4(qv),L4=e=>(e*=2)<1?.5*qv(e):.5*(2-Math.pow(2,-10*(e-1))),zv=e=>1-Math.sin(Math.acos(e)),B4=R4(zv),q4=I4(zv),z4=e=>/^0[^.\s]+$/u.test(e);function s7(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||z4(e):!0}const V4=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),a7=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function o7(e){const n=a7.exec(e);if(!n)return[,];const[,r,i,s]=n;return[`--${r??i}`,s]}function U4(e,n,r=1){const[i,s]=o7(e);if(!i)return;const a=window.getComputedStyle(n).getPropertyValue(i);if(a){const o=a.trim();return V4(o)?parseFloat(o):o}return Ev(s)?U4(s,n,r+1):s}const l7=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),UN=e=>e===_l||e===Ye,$N=(e,n)=>parseFloat(e.split(", ")[n]),HN=(e,n)=>(r,{transform:i})=>{if(i==="none"||!i)return 0;const s=i.match(/^matrix3d\((.+)\)$/u);if(s)return $N(s[1],n);{const a=i.match(/^matrix\((.+)\)$/u);return a?$N(a[1],e):0}},c7=new Set(["x","y","z"]),u7=Au.filter(e=>!c7.has(e));function d7(e){const n=[];return u7.forEach(r=>{const i=e.getValue(r);i!==void 0&&(n.push([r,i.get()]),i.set(r.startsWith("scale")?1:0))}),n}const hl={width:({x:e},{paddingLeft:n="0",paddingRight:r="0"})=>e.max-e.min-parseFloat(n)-parseFloat(r),height:({y:e},{paddingTop:n="0",paddingBottom:r="0"})=>e.max-e.min-parseFloat(n)-parseFloat(r),top:(e,{top:n})=>parseFloat(n),left:(e,{left:n})=>parseFloat(n),bottom:({y:e},{top:n})=>parseFloat(n)+(e.max-e.min),right:({x:e},{left:n})=>parseFloat(n)+(e.max-e.min),x:HN(4,13),y:HN(5,14)};hl.translateX=hl.x;hl.translateY=hl.y;const $4=e=>n=>n.test(e),h7={test:e=>e==="auto",parse:e=>e},H4=[_l,Ye,pi,_s,yB,xB,h7],WN=e=>H4.find($4(e)),La=new Set;let a0=!1,o0=!1;function W4(){if(o0){const e=Array.from(La).filter(i=>i.needsMeasurement),n=new Set(e.map(i=>i.element)),r=new Map;n.forEach(i=>{const s=d7(i);s.length&&(r.set(i,s),i.render())}),e.forEach(i=>i.measureInitialState()),n.forEach(i=>{i.render();const s=r.get(i);s&&s.forEach(([a,o])=>{var c;(c=i.getValue(a))===null||c===void 0||c.set(o)})}),e.forEach(i=>i.measureEndState()),e.forEach(i=>{i.suspendedScrollY!==void 0&&window.scrollTo(0,i.suspendedScrollY)})}o0=!1,a0=!1,La.forEach(e=>e.complete()),La.clear()}function K4(){La.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(o0=!0)})}function f7(){K4(),W4()}class Vv{constructor(n,r,i,s,a,o=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...n],this.onComplete=r,this.name=i,this.motionValue=s,this.element=a,this.isAsync=o}scheduleResolve(){this.isScheduled=!0,this.isAsync?(La.add(this),a0||(a0=!0,Bt.read(K4),Bt.resolveKeyframes(W4))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:n,name:r,element:i,motionValue:s}=this;for(let a=0;a<n.length;a++)if(n[a]===null)if(a===0){const o=s==null?void 0:s.get(),c=n[n.length-1];if(o!==void 0)n[0]=o;else if(i&&r){const d=i.readValue(r,c);d!=null&&(n[0]=d)}n[0]===void 0&&(n[0]=c),s&&o===void 0&&s.set(n[0])}else n[a]=n[a-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),La.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,La.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const zc=e=>Math.round(e*1e5)/1e5,Uv=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function m7(e){return e==null}const p7=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,$v=(e,n)=>r=>!!(typeof r=="string"&&p7.test(r)&&r.startsWith(e)||n&&!m7(r)&&Object.prototype.hasOwnProperty.call(r,n)),G4=(e,n,r)=>i=>{if(typeof i!="string")return i;const[s,a,o,c]=i.match(Uv);return{[e]:parseFloat(s),[n]:parseFloat(a),[r]:parseFloat(o),alpha:c!==void 0?parseFloat(c):1}},g7=e=>Wi(0,255,e),tg={..._l,transform:e=>Math.round(g7(e))},Sa={test:$v("rgb","red"),parse:G4("red","green","blue"),transform:({red:e,green:n,blue:r,alpha:i=1})=>"rgba("+tg.transform(e)+", "+tg.transform(n)+", "+tg.transform(r)+", "+zc(ru.transform(i))+")"};function x7(e){let n="",r="",i="",s="";return e.length>5?(n=e.substring(1,3),r=e.substring(3,5),i=e.substring(5,7),s=e.substring(7,9)):(n=e.substring(1,2),r=e.substring(2,3),i=e.substring(3,4),s=e.substring(4,5),n+=n,r+=r,i+=i,s+=s),{red:parseInt(n,16),green:parseInt(r,16),blue:parseInt(i,16),alpha:s?parseInt(s,16)/255:1}}const l0={test:$v("#"),parse:x7,transform:Sa.transform},Lo={test:$v("hsl","hue"),parse:G4("hue","saturation","lightness"),transform:({hue:e,saturation:n,lightness:r,alpha:i=1})=>"hsla("+Math.round(e)+", "+pi.transform(zc(n))+", "+pi.transform(zc(r))+", "+zc(ru.transform(i))+")"},En={test:e=>Sa.test(e)||l0.test(e)||Lo.test(e),parse:e=>Sa.test(e)?Sa.parse(e):Lo.test(e)?Lo.parse(e):l0.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Sa.transform(e):Lo.transform(e)},y7=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function v7(e){var n,r;return isNaN(e)&&typeof e=="string"&&(((n=e.match(Uv))===null||n===void 0?void 0:n.length)||0)+(((r=e.match(y7))===null||r===void 0?void 0:r.length)||0)>0}const Q4="number",Y4="color",b7="var",j7="var(",KN="${}",w7=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function su(e){const n=e.toString(),r=[],i={color:[],number:[],var:[]},s=[];let a=0;const c=n.replace(w7,d=>(En.test(d)?(i.color.push(a),s.push(Y4),r.push(En.parse(d))):d.startsWith(j7)?(i.var.push(a),s.push(b7),r.push(d)):(i.number.push(a),s.push(Q4),r.push(parseFloat(d))),++a,KN)).split(KN);return{values:r,split:c,indexes:i,types:s}}function X4(e){return su(e).values}function J4(e){const{split:n,types:r}=su(e),i=n.length;return s=>{let a="";for(let o=0;o<i;o++)if(a+=n[o],s[o]!==void 0){const c=r[o];c===Q4?a+=zc(s[o]):c===Y4?a+=En.transform(s[o]):a+=s[o]}return a}}const N7=e=>typeof e=="number"?0:e;function k7(e){const n=X4(e);return J4(e)(n.map(N7))}const Ks={test:v7,parse:X4,createTransformer:J4,getAnimatableNone:k7},_7=new Set(["brightness","contrast","saturate","opacity"]);function S7(e){const[n,r]=e.slice(0,-1).split("(");if(n==="drop-shadow")return e;const[i]=r.match(Uv)||[];if(!i)return e;const s=r.replace(i,"");let a=_7.has(n)?1:0;return i!==r&&(a*=100),n+"("+a+s+")"}const A7=/\b([a-z-]*)\(.*?\)/gu,c0={...Ks,getAnimatableNone:e=>{const n=e.match(A7);return n?n.map(S7).join(" "):e}},C7={...Cv,color:En,backgroundColor:En,outlineColor:En,fill:En,stroke:En,borderColor:En,borderTopColor:En,borderRightColor:En,borderBottomColor:En,borderLeftColor:En,filter:c0,WebkitFilter:c0},Hv=e=>C7[e];function Z4(e,n){let r=Hv(e);return r!==c0&&(r=Ks),r.getAnimatableNone?r.getAnimatableNone(n):void 0}const E7=new Set(["auto","none","0"]);function T7(e,n,r){let i=0,s;for(;i<e.length&&!s;){const a=e[i];typeof a=="string"&&!E7.has(a)&&su(a).values.length&&(s=e[i]),i++}if(s&&r)for(const a of n)e[a]=Z4(r,s)}class eE extends Vv{constructor(n,r,i,s,a){super(n,r,i,s,a,!0)}readKeyframes(){const{unresolvedKeyframes:n,element:r,name:i}=this;if(!r||!r.current)return;super.readKeyframes();for(let d=0;d<n.length;d++){let f=n[d];if(typeof f=="string"&&(f=f.trim(),Ev(f))){const h=U4(f,r.current);h!==void 0&&(n[d]=h),d===n.length-1&&(this.finalKeyframe=f)}}if(this.resolveNoneKeyframes(),!l7.has(i)||n.length!==2)return;const[s,a]=n,o=WN(s),c=WN(a);if(o!==c)if(UN(o)&&UN(c))for(let d=0;d<n.length;d++){const f=n[d];typeof f=="string"&&(n[d]=parseFloat(f))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:n,name:r}=this,i=[];for(let s=0;s<n.length;s++)s7(n[s])&&i.push(s);i.length&&T7(n,i,r)}measureInitialState(){const{element:n,unresolvedKeyframes:r,name:i}=this;if(!n||!n.current)return;i==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=hl[i](n.measureViewportBox(),window.getComputedStyle(n.current)),r[0]=this.measuredOrigin;const s=r[r.length-1];s!==void 0&&n.getValue(i,s).jump(s,!1)}measureEndState(){var n;const{element:r,name:i,unresolvedKeyframes:s}=this;if(!r||!r.current)return;const a=r.getValue(i);a&&a.jump(this.measuredOrigin,!1);const o=s.length-1,c=s[o];s[o]=hl[i](r.measureViewportBox(),window.getComputedStyle(r.current)),c!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=c),!((n=this.removedTransforms)===null||n===void 0)&&n.length&&this.removedTransforms.forEach(([d,f])=>{r.getValue(d).set(f)}),this.resolveNoneKeyframes()}}const GN=(e,n)=>n==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Ks.test(e)||e==="0")&&!e.startsWith("url("));function P7(e){const n=e[0];if(e.length===1)return!0;for(let r=0;r<e.length;r++)if(e[r]!==n)return!0}function O7(e,n,r,i){const s=e[0];if(s===null)return!1;if(n==="display"||n==="visibility")return!0;const a=e[e.length-1],o=GN(s,n),c=GN(a,n);return!o||!c?!1:P7(e)||(r==="spring"||Iv(r))&&i}const D7=e=>e!==null;function wf(e,{repeat:n,repeatType:r="loop"},i){const s=e.filter(D7),a=n&&r!=="loop"&&n%2===1?0:s.length-1;return!a||i===void 0?s[a]:i}const I7=40;class tE{constructor({autoplay:n=!0,delay:r=0,type:i="keyframes",repeat:s=0,repeatDelay:a=0,repeatType:o="loop",...c}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=gi.now(),this.options={autoplay:n,delay:r,type:i,repeat:s,repeatDelay:a,repeatType:o,...c},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>I7?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&f7(),this._resolved}onKeyframesResolved(n,r){this.resolvedAt=gi.now(),this.hasAttemptedResolve=!0;const{name:i,type:s,velocity:a,delay:o,onComplete:c,onUpdate:d,isGenerator:f}=this.options;if(!f&&!O7(n,i,s,a))if(o)this.options.duration=0;else{d==null||d(wf(n,this.options,r)),c==null||c(),this.resolveFinishedPromise();return}const h=this.initPlayback(n,r);h!==!1&&(this._resolved={keyframes:n,finalKeyframe:r,...h},this.onPostResolved())}onPostResolved(){}then(n,r){return this.currentFinishedPromise.then(n,r)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(n=>{this.resolveFinishedPromise=n})}}const Kt=(e,n,r)=>e+(n-e)*r;function ng(e,n,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(n-e)*6*r:r<1/2?n:r<2/3?e+(n-e)*(2/3-r)*6:e}function R7({hue:e,saturation:n,lightness:r,alpha:i}){e/=360,n/=100,r/=100;let s=0,a=0,o=0;if(!n)s=a=o=r;else{const c=r<.5?r*(1+n):r+n-r*n,d=2*r-c;s=ng(d,c,e+1/3),a=ng(d,c,e),o=ng(d,c,e-1/3)}return{red:Math.round(s*255),green:Math.round(a*255),blue:Math.round(o*255),alpha:i}}function $h(e,n){return r=>r>0?n:e}const rg=(e,n,r)=>{const i=e*e,s=r*(n*n-i)+i;return s<0?0:Math.sqrt(s)},F7=[l0,Sa,Lo],M7=e=>F7.find(n=>n.test(e));function QN(e){const n=M7(e);if(!n)return!1;let r=n.parse(e);return n===Lo&&(r=R7(r)),r}const YN=(e,n)=>{const r=QN(e),i=QN(n);if(!r||!i)return $h(e,n);const s={...r};return a=>(s.red=rg(r.red,i.red,a),s.green=rg(r.green,i.green,a),s.blue=rg(r.blue,i.blue,a),s.alpha=Kt(r.alpha,i.alpha,a),Sa.transform(s))},L7=(e,n)=>r=>n(e(r)),Tu=(...e)=>e.reduce(L7),u0=new Set(["none","hidden"]);function B7(e,n){return u0.has(e)?r=>r<=0?e:n:r=>r>=1?n:e}function q7(e,n){return r=>Kt(e,n,r)}function Wv(e){return typeof e=="number"?q7:typeof e=="string"?Ev(e)?$h:En.test(e)?YN:U7:Array.isArray(e)?nE:typeof e=="object"?En.test(e)?YN:z7:$h}function nE(e,n){const r=[...e],i=r.length,s=e.map((a,o)=>Wv(a)(a,n[o]));return a=>{for(let o=0;o<i;o++)r[o]=s[o](a);return r}}function z7(e,n){const r={...e,...n},i={};for(const s in r)e[s]!==void 0&&n[s]!==void 0&&(i[s]=Wv(e[s])(e[s],n[s]));return s=>{for(const a in i)r[a]=i[a](s);return r}}function V7(e,n){var r;const i=[],s={color:0,var:0,number:0};for(let a=0;a<n.values.length;a++){const o=n.types[a],c=e.indexes[o][s[o]],d=(r=e.values[c])!==null&&r!==void 0?r:0;i[a]=d,s[o]++}return i}const U7=(e,n)=>{const r=Ks.createTransformer(n),i=su(e),s=su(n);return i.indexes.var.length===s.indexes.var.length&&i.indexes.color.length===s.indexes.color.length&&i.indexes.number.length>=s.indexes.number.length?u0.has(e)&&!s.values.length||u0.has(n)&&!i.values.length?B7(e,n):Tu(nE(V7(i,s),s.values),r):$h(e,n)};function rE(e,n,r){return typeof e=="number"&&typeof n=="number"&&typeof r=="number"?Kt(e,n,r):Wv(e)(e,n)}const $7=5;function iE(e,n,r){const i=Math.max(n-$7,0);return P4(r-e(i),n-i)}const Zt={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},ig=.001;function H7({duration:e=Zt.duration,bounce:n=Zt.bounce,velocity:r=Zt.velocity,mass:i=Zt.mass}){let s,a,o=1-n;o=Wi(Zt.minDamping,Zt.maxDamping,o),e=Wi(Zt.minDuration,Zt.maxDuration,Ui(e)),o<1?(s=f=>{const h=f*o,m=h*e,p=h-r,g=d0(f,o),b=Math.exp(-m);return ig-p/g*b},a=f=>{const m=f*o*e,p=m*r+r,g=Math.pow(o,2)*Math.pow(f,2)*e,b=Math.exp(-m),j=d0(Math.pow(f,2),o);return(-s(f)+ig>0?-1:1)*((p-g)*b)/j}):(s=f=>{const h=Math.exp(-f*e),m=(f-r)*e+1;return-ig+h*m},a=f=>{const h=Math.exp(-f*e),m=(r-f)*(e*e);return h*m});const c=5/e,d=K7(s,a,c);if(e=Vi(e),isNaN(d))return{stiffness:Zt.stiffness,damping:Zt.damping,duration:e};{const f=Math.pow(d,2)*i;return{stiffness:f,damping:o*2*Math.sqrt(i*f),duration:e}}}const W7=12;function K7(e,n,r){let i=r;for(let s=1;s<W7;s++)i=i-e(i)/n(i);return i}function d0(e,n){return e*Math.sqrt(1-n*n)}const G7=["duration","bounce"],Q7=["stiffness","damping","mass"];function XN(e,n){return n.some(r=>e[r]!==void 0)}function Y7(e){let n={velocity:Zt.velocity,stiffness:Zt.stiffness,damping:Zt.damping,mass:Zt.mass,isResolvedFromDuration:!1,...e};if(!XN(e,Q7)&&XN(e,G7))if(e.visualDuration){const r=e.visualDuration,i=2*Math.PI/(r*1.2),s=i*i,a=2*Wi(.05,1,1-(e.bounce||0))*Math.sqrt(s);n={...n,mass:Zt.mass,stiffness:s,damping:a}}else{const r=H7(e);n={...n,...r,mass:Zt.mass},n.isResolvedFromDuration=!0}return n}function sE(e=Zt.visualDuration,n=Zt.bounce){const r=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:n}:e;let{restSpeed:i,restDelta:s}=r;const a=r.keyframes[0],o=r.keyframes[r.keyframes.length-1],c={done:!1,value:a},{stiffness:d,damping:f,mass:h,duration:m,velocity:p,isResolvedFromDuration:g}=Y7({...r,velocity:-Ui(r.velocity||0)}),b=p||0,j=f/(2*Math.sqrt(d*h)),y=o-a,x=Ui(Math.sqrt(d/h)),N=Math.abs(y)<5;i||(i=N?Zt.restSpeed.granular:Zt.restSpeed.default),s||(s=N?Zt.restDelta.granular:Zt.restDelta.default);let w;if(j<1){const A=d0(x,j);w=S=>{const E=Math.exp(-j*x*S);return o-E*((b+j*x*y)/A*Math.sin(A*S)+y*Math.cos(A*S))}}else if(j===1)w=A=>o-Math.exp(-x*A)*(y+(b+x*y)*A);else{const A=x*Math.sqrt(j*j-1);w=S=>{const E=Math.exp(-j*x*S),C=Math.min(A*S,300);return o-E*((b+j*x*y)*Math.sinh(C)+A*y*Math.cosh(C))/A}}const k={calculatedDuration:g&&m||null,next:A=>{const S=w(A);if(g)c.done=A>=m;else{let E=0;j<1&&(E=A===0?Vi(b):iE(w,A,S));const C=Math.abs(E)<=i,B=Math.abs(o-S)<=s;c.done=C&&B}return c.value=c.done?o:S,c},toString:()=>{const A=Math.min(k4(k),r0),S=_4(E=>k.next(A*E).value,A,30);return A+"ms "+S}};return k}function JN({keyframes:e,velocity:n=0,power:r=.8,timeConstant:i=325,bounceDamping:s=10,bounceStiffness:a=500,modifyTarget:o,min:c,max:d,restDelta:f=.5,restSpeed:h}){const m=e[0],p={done:!1,value:m},g=C=>c!==void 0&&C<c||d!==void 0&&C>d,b=C=>c===void 0?d:d===void 0||Math.abs(c-C)<Math.abs(d-C)?c:d;let j=r*n;const y=m+j,x=o===void 0?y:o(y);x!==y&&(j=x-m);const N=C=>-j*Math.exp(-C/i),w=C=>x+N(C),k=C=>{const B=N(C),I=w(C);p.done=Math.abs(B)<=f,p.value=p.done?x:I};let A,S;const E=C=>{g(p.value)&&(A=C,S=sE({keyframes:[p.value,b(p.value)],velocity:iE(w,C,p.value),damping:s,stiffness:a,restDelta:f,restSpeed:h}))};return E(0),{calculatedDuration:null,next:C=>{let B=!1;return!S&&A===void 0&&(B=!0,k(C),E(C)),A!==void 0&&C>=A?S.next(C-A):(!B&&k(C),p)}}}const X7=Eu(.42,0,1,1),J7=Eu(0,0,.58,1),aE=Eu(.42,0,.58,1),Z7=e=>Array.isArray(e)&&typeof e[0]!="number",e9={linear:fr,easeIn:X7,easeInOut:aE,easeOut:J7,circIn:zv,circInOut:q4,circOut:B4,backIn:qv,backInOut:M4,backOut:F4,anticipate:L4},ZN=e=>{if(Rv(e)){r4(e.length===4);const[n,r,i,s]=e;return Eu(n,r,i,s)}else if(typeof e=="string")return e9[e];return e};function t9(e,n,r){const i=[],s=r||rE,a=e.length-1;for(let o=0;o<a;o++){let c=s(e[o],e[o+1]);if(n){const d=Array.isArray(n)?n[o]||fr:n;c=Tu(d,c)}i.push(c)}return i}function n9(e,n,{clamp:r=!0,ease:i,mixer:s}={}){const a=e.length;if(r4(a===n.length),a===1)return()=>n[0];if(a===2&&e[0]===e[1])return()=>n[1];e[0]>e[a-1]&&(e=[...e].reverse(),n=[...n].reverse());const o=t9(n,i,s),c=o.length,d=f=>{let h=0;if(c>1)for(;h<e.length-2&&!(f<e[h+1]);h++);const m=ul(e[h],e[h+1],f);return o[h](m)};return r?f=>d(Wi(e[0],e[a-1],f)):d}function r9(e,n){const r=e[e.length-1];for(let i=1;i<=n;i++){const s=ul(0,n,i);e.push(Kt(r,1,s))}}function i9(e){const n=[0];return r9(n,e.length-1),n}function s9(e,n){return e.map(r=>r*n)}function a9(e,n){return e.map(()=>n||aE).splice(0,e.length-1)}function Hh({duration:e=300,keyframes:n,times:r,ease:i="easeInOut"}){const s=Z7(i)?i.map(ZN):ZN(i),a={done:!1,value:n[0]},o=s9(r&&r.length===n.length?r:i9(n),e),c=n9(o,n,{ease:Array.isArray(s)?s:a9(n,s)});return{calculatedDuration:e,next:d=>(a.value=c(d),a.done=d>=e,a)}}const o9=e=>{const n=({timestamp:r})=>e(r);return{start:()=>Bt.update(n,!0),stop:()=>Ws(n),now:()=>Nn.isProcessing?Nn.timestamp:gi.now()}},l9={decay:JN,inertia:JN,tween:Hh,keyframes:Hh,spring:sE},c9=e=>e/100;class Kv extends tE{constructor(n){super(n),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:d}=this.options;d&&d()};const{name:r,motionValue:i,element:s,keyframes:a}=this.options,o=(s==null?void 0:s.KeyframeResolver)||Vv,c=(d,f)=>this.onKeyframesResolved(d,f);this.resolver=new o(a,c,r,i,s),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(n){const{type:r="keyframes",repeat:i=0,repeatDelay:s=0,repeatType:a,velocity:o=0}=this.options,c=Iv(r)?r:l9[r]||Hh;let d,f;c!==Hh&&typeof n[0]!="number"&&(d=Tu(c9,rE(n[0],n[1])),n=[0,100]);const h=c({...this.options,keyframes:n});a==="mirror"&&(f=c({...this.options,keyframes:[...n].reverse(),velocity:-o})),h.calculatedDuration===null&&(h.calculatedDuration=k4(h));const{calculatedDuration:m}=h,p=m+s,g=p*(i+1)-s;return{generator:h,mirroredGenerator:f,mapPercentToKeyframes:d,calculatedDuration:m,resolvedDuration:p,totalDuration:g}}onPostResolved(){const{autoplay:n=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!n?this.pause():this.state=this.pendingPlayState}tick(n,r=!1){const{resolved:i}=this;if(!i){const{keyframes:C}=this.options;return{done:!0,value:C[C.length-1]}}const{finalKeyframe:s,generator:a,mirroredGenerator:o,mapPercentToKeyframes:c,keyframes:d,calculatedDuration:f,totalDuration:h,resolvedDuration:m}=i;if(this.startTime===null)return a.next(0);const{delay:p,repeat:g,repeatType:b,repeatDelay:j,onUpdate:y}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,n):this.speed<0&&(this.startTime=Math.min(n-h/this.speed,this.startTime)),r?this.currentTime=n:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(n-this.startTime)*this.speed;const x=this.currentTime-p*(this.speed>=0?1:-1),N=this.speed>=0?x<0:x>h;this.currentTime=Math.max(x,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=h);let w=this.currentTime,k=a;if(g){const C=Math.min(this.currentTime,h)/m;let B=Math.floor(C),I=C%1;!I&&C>=1&&(I=1),I===1&&B--,B=Math.min(B,g+1),!!(B%2)&&(b==="reverse"?(I=1-I,j&&(I-=j/m)):b==="mirror"&&(k=o)),w=Wi(0,1,I)*m}const A=N?{done:!1,value:d[0]}:k.next(w);c&&(A.value=c(A.value));let{done:S}=A;!N&&f!==null&&(S=this.speed>=0?this.currentTime>=h:this.currentTime<=0);const E=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&S);return E&&s!==void 0&&(A.value=wf(d,this.options,s)),y&&y(A.value),E&&this.finish(),A}get duration(){const{resolved:n}=this;return n?Ui(n.calculatedDuration):0}get time(){return Ui(this.currentTime)}set time(n){n=Vi(n),this.currentTime=n,this.holdTime!==null||this.speed===0?this.holdTime=n:this.driver&&(this.startTime=this.driver.now()-n/this.speed)}get speed(){return this.playbackSpeed}set speed(n){const r=this.playbackSpeed!==n;this.playbackSpeed=n,r&&(this.time=Ui(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:n=o9,onPlay:r,startTime:i}=this.options;this.driver||(this.driver=n(a=>this.tick(a))),r&&r();const s=this.driver.now();this.holdTime!==null?this.startTime=s-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=s):this.startTime=i??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var n;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(n=this.currentTime)!==null&&n!==void 0?n:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:n}=this.options;n&&n()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(n){return this.startTime=0,this.tick(n,!0)}}const u9=new Set(["opacity","clipPath","filter","transform"]);function d9(e,n,r,{delay:i=0,duration:s=300,repeat:a=0,repeatType:o="loop",ease:c="easeInOut",times:d}={}){const f={[n]:r};d&&(f.offset=d);const h=A4(c,s);return Array.isArray(h)&&(f.easing=h),e.animate(f,{delay:i,duration:s,easing:Array.isArray(h)?"linear":h,fill:"both",iterations:a+1,direction:o==="reverse"?"alternate":"normal"})}const h9=yv(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Wh=10,f9=2e4;function m9(e){return Iv(e.type)||e.type==="spring"||!S4(e.ease)}function p9(e,n){const r=new Kv({...n,keyframes:e,repeat:0,delay:0,isGenerator:!0});let i={done:!1,value:e[0]};const s=[];let a=0;for(;!i.done&&a<f9;)i=r.sample(a),s.push(i.value),a+=Wh;return{times:void 0,keyframes:s,duration:a-Wh,ease:"linear"}}const oE={anticipate:L4,backInOut:M4,circInOut:q4};function g9(e){return e in oE}class e2 extends tE{constructor(n){super(n);const{name:r,motionValue:i,element:s,keyframes:a}=this.options;this.resolver=new eE(a,(o,c)=>this.onKeyframesResolved(o,c),r,i,s),this.resolver.scheduleResolve()}initPlayback(n,r){var i;let{duration:s=300,times:a,ease:o,type:c,motionValue:d,name:f,startTime:h}=this.options;if(!(!((i=d.owner)===null||i===void 0)&&i.current))return!1;if(typeof o=="string"&&Uh()&&g9(o)&&(o=oE[o]),m9(this.options)){const{onComplete:p,onUpdate:g,motionValue:b,element:j,...y}=this.options,x=p9(n,y);n=x.keyframes,n.length===1&&(n[1]=n[0]),s=x.duration,a=x.times,o=x.ease,c="keyframes"}const m=d9(d.owner.current,f,n,{...this.options,duration:s,times:a,ease:o});return m.startTime=h??this.calcStartTime(),this.pendingTimeline?(LN(m,this.pendingTimeline),this.pendingTimeline=void 0):m.onfinish=()=>{const{onComplete:p}=this.options;d.set(wf(n,this.options,r)),p&&p(),this.cancel(),this.resolveFinishedPromise()},{animation:m,duration:s,times:a,type:c,ease:o,keyframes:n}}get duration(){const{resolved:n}=this;if(!n)return 0;const{duration:r}=n;return Ui(r)}get time(){const{resolved:n}=this;if(!n)return 0;const{animation:r}=n;return Ui(r.currentTime||0)}set time(n){const{resolved:r}=this;if(!r)return;const{animation:i}=r;i.currentTime=Vi(n)}get speed(){const{resolved:n}=this;if(!n)return 1;const{animation:r}=n;return r.playbackRate}set speed(n){const{resolved:r}=this;if(!r)return;const{animation:i}=r;i.playbackRate=n}get state(){const{resolved:n}=this;if(!n)return"idle";const{animation:r}=n;return r.playState}get startTime(){const{resolved:n}=this;if(!n)return null;const{animation:r}=n;return r.startTime}attachTimeline(n){if(!this._resolved)this.pendingTimeline=n;else{const{resolved:r}=this;if(!r)return fr;const{animation:i}=r;LN(i,n)}return fr}play(){if(this.isStopped)return;const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.playState==="finished"&&this.updateFinishedPromise(),r.play()}pause(){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:n}=this;if(!n)return;const{animation:r,keyframes:i,duration:s,type:a,ease:o,times:c}=n;if(r.playState==="idle"||r.playState==="finished")return;if(this.time){const{motionValue:f,onUpdate:h,onComplete:m,element:p,...g}=this.options,b=new Kv({...g,keyframes:i,duration:s,type:a,ease:o,times:c,isGenerator:!0}),j=Vi(this.time);f.setWithVelocity(b.sample(j-Wh).value,b.sample(j).value,Wh)}const{onStop:d}=this.options;d&&d(),this.cancel()}complete(){const{resolved:n}=this;n&&n.animation.finish()}cancel(){const{resolved:n}=this;n&&n.animation.cancel()}static supports(n){const{motionValue:r,name:i,repeatDelay:s,repeatType:a,damping:o,type:c}=n;return h9()&&i&&u9.has(i)&&r&&r.owner&&r.owner.current instanceof HTMLElement&&!r.owner.getProps().onUpdate&&!s&&a!=="mirror"&&o!==0&&c!=="inertia"}}const x9={type:"spring",stiffness:500,damping:25,restSpeed:10},y9=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),v9={type:"keyframes",duration:.8},b9={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},j9=(e,{keyframes:n})=>n.length>2?v9:Ja.has(e)?e.startsWith("scale")?y9(n[1]):x9:b9;function w9({when:e,delay:n,delayChildren:r,staggerChildren:i,staggerDirection:s,repeat:a,repeatType:o,repeatDelay:c,from:d,elapsed:f,...h}){return!!Object.keys(h).length}const Gv=(e,n,r,i={},s,a)=>o=>{const c=Dv(i,e)||{},d=c.delay||i.delay||0;let{elapsed:f=0}=i;f=f-Vi(d);let h={keyframes:Array.isArray(r)?r:[null,r],ease:"easeOut",velocity:n.getVelocity(),...c,delay:-f,onUpdate:p=>{n.set(p),c.onUpdate&&c.onUpdate(p)},onComplete:()=>{o(),c.onComplete&&c.onComplete()},name:e,motionValue:n,element:a?void 0:s};w9(c)||(h={...h,...j9(e,h)}),h.duration&&(h.duration=Vi(h.duration)),h.repeatDelay&&(h.repeatDelay=Vi(h.repeatDelay)),h.from!==void 0&&(h.keyframes[0]=h.from);let m=!1;if((h.type===!1||h.duration===0&&!h.repeatDelay)&&(h.duration=0,h.delay===0&&(m=!0)),m&&!a&&n.get()!==void 0){const p=wf(h.keyframes,c);if(p!==void 0)return Bt.update(()=>{h.onUpdate(p),h.onComplete()}),new qB([])}return!a&&e2.supports(h)?new e2(h):new Kv(h)};function N9({protectedKeys:e,needsAnimating:n},r){const i=e.hasOwnProperty(r)&&n[r]!==!0;return n[r]=!1,i}function lE(e,n,{delay:r=0,transitionOverride:i,type:s}={}){var a;let{transition:o=e.getDefaultTransition(),transitionEnd:c,...d}=n;i&&(o=i);const f=[],h=s&&e.animationState&&e.animationState.getState()[s];for(const m in d){const p=e.getValue(m,(a=e.latestValues[m])!==null&&a!==void 0?a:null),g=d[m];if(g===void 0||h&&N9(h,m))continue;const b={delay:r,...Dv(o||{},m)};let j=!1;if(window.MotionHandoffAnimation){const x=O4(e);if(x){const N=window.MotionHandoffAnimation(x,m,Bt);N!==null&&(b.startTime=N,j=!0)}}s0(e,m),p.start(Gv(m,p,g,e.shouldReduceMotion&&Ja.has(m)?{type:!1}:b,e,j));const y=p.animation;y&&f.push(y)}return c&&Promise.all(f).then(()=>{Bt.update(()=>{c&&e7(e,c)})}),f}function h0(e,n,r={}){var i;const s=jf(e,n,r.type==="exit"?(i=e.presenceContext)===null||i===void 0?void 0:i.custom:void 0);let{transition:a=e.getDefaultTransition()||{}}=s||{};r.transitionOverride&&(a=r.transitionOverride);const o=s?()=>Promise.all(lE(e,s,r)):()=>Promise.resolve(),c=e.variantChildren&&e.variantChildren.size?(f=0)=>{const{delayChildren:h=0,staggerChildren:m,staggerDirection:p}=a;return k9(e,n,h+f,m,p,r)}:()=>Promise.resolve(),{when:d}=a;if(d){const[f,h]=d==="beforeChildren"?[o,c]:[c,o];return f().then(()=>h())}else return Promise.all([o(),c(r.delay)])}function k9(e,n,r=0,i=0,s=1,a){const o=[],c=(e.variantChildren.size-1)*i,d=s===1?(f=0)=>f*i:(f=0)=>c-f*i;return Array.from(e.variantChildren).sort(_9).forEach((f,h)=>{f.notify("AnimationStart",n),o.push(h0(f,n,{...a,delay:r+d(h)}).then(()=>f.notify("AnimationComplete",n)))}),Promise.all(o)}function _9(e,n){return e.sortNodePosition(n)}function S9(e,n,r={}){e.notify("AnimationStart",n);let i;if(Array.isArray(n)){const s=n.map(a=>h0(e,a,r));i=Promise.all(s)}else if(typeof n=="string")i=h0(e,n,r);else{const s=typeof n=="function"?jf(e,n,r.custom):n;i=Promise.all(lE(e,s,r))}return i.then(()=>{e.notify("AnimationComplete",n)})}const A9=jv.length;function cE(e){if(!e)return;if(!e.isControllingVariants){const r=e.parent?cE(e.parent)||{}:{};return e.props.initial!==void 0&&(r.initial=e.props.initial),r}const n={};for(let r=0;r<A9;r++){const i=jv[r],s=e.props[i];(nu(s)||s===!1)&&(n[i]=s)}return n}const C9=[...bv].reverse(),E9=bv.length;function T9(e){return n=>Promise.all(n.map(({animation:r,options:i})=>S9(e,r,i)))}function P9(e){let n=T9(e),r=t2(),i=!0;const s=d=>(f,h)=>{var m;const p=jf(e,h,d==="exit"?(m=e.presenceContext)===null||m===void 0?void 0:m.custom:void 0);if(p){const{transition:g,transitionEnd:b,...j}=p;f={...f,...j,...b}}return f};function a(d){n=d(e)}function o(d){const{props:f}=e,h=cE(e.parent)||{},m=[],p=new Set;let g={},b=1/0;for(let y=0;y<E9;y++){const x=C9[y],N=r[x],w=f[x]!==void 0?f[x]:h[x],k=nu(w),A=x===d?N.isActive:null;A===!1&&(b=y);let S=w===h[x]&&w!==f[x]&&k;if(S&&i&&e.manuallyAnimateOnMount&&(S=!1),N.protectedKeys={...g},!N.isActive&&A===null||!w&&!N.prevProp||vf(w)||typeof w=="boolean")continue;const E=O9(N.prevProp,w);let C=E||x===d&&N.isActive&&!S&&k||y>b&&k,B=!1;const I=Array.isArray(w)?w:[w];let R=I.reduce(s(x),{});A===!1&&(R={});const{prevResolvedValues:D={}}=N,q={...D,...R},z=H=>{C=!0,p.has(H)&&(B=!0,p.delete(H)),N.needsAnimating[H]=!0;const K=e.getValue(H);K&&(K.liveStyle=!1)};for(const H in q){const K=R[H],Q=D[H];if(g.hasOwnProperty(H))continue;let O=!1;n0(K)&&n0(Q)?O=!N4(K,Q):O=K!==Q,O?K!=null?z(H):p.add(H):K!==void 0&&p.has(H)?z(H):N.protectedKeys[H]=!0}N.prevProp=w,N.prevResolvedValues=R,N.isActive&&(g={...g,...R}),i&&e.blockInitialAnimation&&(C=!1),C&&(!(S&&E)||B)&&m.push(...I.map(H=>({animation:H,options:{type:x}})))}if(p.size){const y={};p.forEach(x=>{const N=e.getBaseTarget(x),w=e.getValue(x);w&&(w.liveStyle=!0),y[x]=N??null}),m.push({animation:y})}let j=!!m.length;return i&&(f.initial===!1||f.initial===f.animate)&&!e.manuallyAnimateOnMount&&(j=!1),i=!1,j?n(m):Promise.resolve()}function c(d,f){var h;if(r[d].isActive===f)return Promise.resolve();(h=e.variantChildren)===null||h===void 0||h.forEach(p=>{var g;return(g=p.animationState)===null||g===void 0?void 0:g.setActive(d,f)}),r[d].isActive=f;const m=o(d);for(const p in r)r[p].protectedKeys={};return m}return{animateChanges:o,setActive:c,setAnimateFunction:a,getState:()=>r,reset:()=>{r=t2(),i=!0}}}function O9(e,n){return typeof n=="string"?n!==e:Array.isArray(n)?!N4(n,e):!1}function ya(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function t2(){return{animate:ya(!0),whileInView:ya(),whileHover:ya(),whileTap:ya(),whileDrag:ya(),whileFocus:ya(),exit:ya()}}class Xs{constructor(n){this.isMounted=!1,this.node=n}update(){}}class D9 extends Xs{constructor(n){super(n),n.animationState||(n.animationState=P9(n))}updateAnimationControlsSubscription(){const{animate:n}=this.node.getProps();vf(n)&&(this.unmountControls=n.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:n}=this.node.getProps(),{animate:r}=this.node.prevProps||{};n!==r&&this.updateAnimationControlsSubscription()}unmount(){var n;this.node.animationState.reset(),(n=this.unmountControls)===null||n===void 0||n.call(this)}}let I9=0;class R9 extends Xs{constructor(){super(...arguments),this.id=I9++}update(){if(!this.node.presenceContext)return;const{isPresent:n,onExitComplete:r}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||n===i)return;const s=this.node.animationState.setActive("exit",!n);r&&!n&&s.then(()=>r(this.id))}mount(){const{register:n}=this.node.presenceContext||{};n&&(this.unmount=n(this.id))}unmount(){}}const F9={animation:{Feature:D9},exit:{Feature:R9}};function au(e,n,r,i={passive:!0}){return e.addEventListener(n,r,i),()=>e.removeEventListener(n,r)}function Pu(e){return{point:{x:e.pageX,y:e.pageY}}}const M9=e=>n=>Fv(n)&&e(n,Pu(n));function Vc(e,n,r,i){return au(e,n,M9(r),i)}const n2=(e,n)=>Math.abs(e-n);function L9(e,n){const r=n2(e.x,n.x),i=n2(e.y,n.y);return Math.sqrt(r**2+i**2)}class uE{constructor(n,r,{transformPagePoint:i,contextWindow:s,dragSnapToOrigin:a=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const m=ag(this.lastMoveEventInfo,this.history),p=this.startEvent!==null,g=L9(m.offset,{x:0,y:0})>=3;if(!p&&!g)return;const{point:b}=m,{timestamp:j}=Nn;this.history.push({...b,timestamp:j});const{onStart:y,onMove:x}=this.handlers;p||(y&&y(this.lastMoveEvent,m),this.startEvent=this.lastMoveEvent),x&&x(this.lastMoveEvent,m)},this.handlePointerMove=(m,p)=>{this.lastMoveEvent=m,this.lastMoveEventInfo=sg(p,this.transformPagePoint),Bt.update(this.updatePoint,!0)},this.handlePointerUp=(m,p)=>{this.end();const{onEnd:g,onSessionEnd:b,resumeAnimation:j}=this.handlers;if(this.dragSnapToOrigin&&j&&j(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const y=ag(m.type==="pointercancel"?this.lastMoveEventInfo:sg(p,this.transformPagePoint),this.history);this.startEvent&&g&&g(m,y),b&&b(m,y)},!Fv(n))return;this.dragSnapToOrigin=a,this.handlers=r,this.transformPagePoint=i,this.contextWindow=s||window;const o=Pu(n),c=sg(o,this.transformPagePoint),{point:d}=c,{timestamp:f}=Nn;this.history=[{...d,timestamp:f}];const{onSessionStart:h}=r;h&&h(n,ag(c,this.history)),this.removeListeners=Tu(Vc(this.contextWindow,"pointermove",this.handlePointerMove),Vc(this.contextWindow,"pointerup",this.handlePointerUp),Vc(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(n){this.handlers=n}end(){this.removeListeners&&this.removeListeners(),Ws(this.updatePoint)}}function sg(e,n){return n?{point:n(e.point)}:e}function r2(e,n){return{x:e.x-n.x,y:e.y-n.y}}function ag({point:e},n){return{point:e,delta:r2(e,dE(n)),offset:r2(e,B9(n)),velocity:q9(n,.1)}}function B9(e){return e[0]}function dE(e){return e[e.length-1]}function q9(e,n){if(e.length<2)return{x:0,y:0};let r=e.length-1,i=null;const s=dE(e);for(;r>=0&&(i=e[r],!(s.timestamp-i.timestamp>Vi(n)));)r--;if(!i)return{x:0,y:0};const a=Ui(s.timestamp-i.timestamp);if(a===0)return{x:0,y:0};const o={x:(s.x-i.x)/a,y:(s.y-i.y)/a};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}const hE=1e-4,z9=1-hE,V9=1+hE,fE=.01,U9=0-fE,$9=0+fE;function gr(e){return e.max-e.min}function H9(e,n,r){return Math.abs(e-n)<=r}function i2(e,n,r,i=.5){e.origin=i,e.originPoint=Kt(n.min,n.max,e.origin),e.scale=gr(r)/gr(n),e.translate=Kt(r.min,r.max,e.origin)-e.originPoint,(e.scale>=z9&&e.scale<=V9||isNaN(e.scale))&&(e.scale=1),(e.translate>=U9&&e.translate<=$9||isNaN(e.translate))&&(e.translate=0)}function Uc(e,n,r,i){i2(e.x,n.x,r.x,i?i.originX:void 0),i2(e.y,n.y,r.y,i?i.originY:void 0)}function s2(e,n,r){e.min=r.min+n.min,e.max=e.min+gr(n)}function W9(e,n,r){s2(e.x,n.x,r.x),s2(e.y,n.y,r.y)}function a2(e,n,r){e.min=n.min-r.min,e.max=e.min+gr(n)}function $c(e,n,r){a2(e.x,n.x,r.x),a2(e.y,n.y,r.y)}function K9(e,{min:n,max:r},i){return n!==void 0&&e<n?e=i?Kt(n,e,i.min):Math.max(e,n):r!==void 0&&e>r&&(e=i?Kt(r,e,i.max):Math.min(e,r)),e}function o2(e,n,r){return{min:n!==void 0?e.min+n:void 0,max:r!==void 0?e.max+r-(e.max-e.min):void 0}}function G9(e,{top:n,left:r,bottom:i,right:s}){return{x:o2(e.x,r,s),y:o2(e.y,n,i)}}function l2(e,n){let r=n.min-e.min,i=n.max-e.max;return n.max-n.min<e.max-e.min&&([r,i]=[i,r]),{min:r,max:i}}function Q9(e,n){return{x:l2(e.x,n.x),y:l2(e.y,n.y)}}function Y9(e,n){let r=.5;const i=gr(e),s=gr(n);return s>i?r=ul(n.min,n.max-i,e.min):i>s&&(r=ul(e.min,e.max-s,n.min)),Wi(0,1,r)}function X9(e,n){const r={};return n.min!==void 0&&(r.min=n.min-e.min),n.max!==void 0&&(r.max=n.max-e.min),r}const f0=.35;function J9(e=f0){return e===!1?e=0:e===!0&&(e=f0),{x:c2(e,"left","right"),y:c2(e,"top","bottom")}}function c2(e,n,r){return{min:u2(e,n),max:u2(e,r)}}function u2(e,n){return typeof e=="number"?e:e[n]||0}const d2=()=>({translate:0,scale:1,origin:0,originPoint:0}),Bo=()=>({x:d2(),y:d2()}),h2=()=>({min:0,max:0}),nn=()=>({x:h2(),y:h2()});function kr(e){return[e("x"),e("y")]}function mE({top:e,left:n,right:r,bottom:i}){return{x:{min:n,max:r},y:{min:e,max:i}}}function Z9({x:e,y:n}){return{top:n.min,right:e.max,bottom:n.max,left:e.min}}function eq(e,n){if(!n)return e;const r=n({x:e.left,y:e.top}),i=n({x:e.right,y:e.bottom});return{top:r.y,left:r.x,bottom:i.y,right:i.x}}function og(e){return e===void 0||e===1}function m0({scale:e,scaleX:n,scaleY:r}){return!og(e)||!og(n)||!og(r)}function ba(e){return m0(e)||pE(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function pE(e){return f2(e.x)||f2(e.y)}function f2(e){return e&&e!=="0%"}function Kh(e,n,r){const i=e-r,s=n*i;return r+s}function m2(e,n,r,i,s){return s!==void 0&&(e=Kh(e,s,i)),Kh(e,r,i)+n}function p0(e,n=0,r=1,i,s){e.min=m2(e.min,n,r,i,s),e.max=m2(e.max,n,r,i,s)}function gE(e,{x:n,y:r}){p0(e.x,n.translate,n.scale,n.originPoint),p0(e.y,r.translate,r.scale,r.originPoint)}const p2=.999999999999,g2=1.0000000000001;function tq(e,n,r,i=!1){const s=r.length;if(!s)return;n.x=n.y=1;let a,o;for(let c=0;c<s;c++){a=r[c],o=a.projectionDelta;const{visualElement:d}=a.options;d&&d.props.style&&d.props.style.display==="contents"||(i&&a.options.layoutScroll&&a.scroll&&a!==a.root&&zo(e,{x:-a.scroll.offset.x,y:-a.scroll.offset.y}),o&&(n.x*=o.x.scale,n.y*=o.y.scale,gE(e,o)),i&&ba(a.latestValues)&&zo(e,a.latestValues))}n.x<g2&&n.x>p2&&(n.x=1),n.y<g2&&n.y>p2&&(n.y=1)}function qo(e,n){e.min=e.min+n,e.max=e.max+n}function x2(e,n,r,i,s=.5){const a=Kt(e.min,e.max,s);p0(e,n,r,a,i)}function zo(e,n){x2(e.x,n.x,n.scaleX,n.scale,n.originX),x2(e.y,n.y,n.scaleY,n.scale,n.originY)}function xE(e,n){return mE(eq(e.getBoundingClientRect(),n))}function nq(e,n,r){const i=xE(e,r),{scroll:s}=n;return s&&(qo(i.x,s.offset.x),qo(i.y,s.offset.y)),i}const yE=({current:e})=>e?e.ownerDocument.defaultView:null,rq=new WeakMap;class iq{constructor(n){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=nn(),this.visualElement=n}start(n,{snapToCursor:r=!1}={}){const{presenceContext:i}=this.visualElement;if(i&&i.isPresent===!1)return;const s=h=>{const{dragSnapToOrigin:m}=this.getProps();m?this.pauseAnimation():this.stopAnimation(),r&&this.snapToCursor(Pu(h).point)},a=(h,m)=>{const{drag:p,dragPropagation:g,onDragStart:b}=this.getProps();if(p&&!g&&(this.openDragLock&&this.openDragLock(),this.openDragLock=QB(p),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),kr(y=>{let x=this.getAxisMotionValue(y).get()||0;if(pi.test(x)){const{projection:N}=this.visualElement;if(N&&N.layout){const w=N.layout.layoutBox[y];w&&(x=gr(w)*(parseFloat(x)/100))}}this.originPoint[y]=x}),b&&Bt.postRender(()=>b(h,m)),s0(this.visualElement,"transform");const{animationState:j}=this.visualElement;j&&j.setActive("whileDrag",!0)},o=(h,m)=>{const{dragPropagation:p,dragDirectionLock:g,onDirectionLock:b,onDrag:j}=this.getProps();if(!p&&!this.openDragLock)return;const{offset:y}=m;if(g&&this.currentDirection===null){this.currentDirection=sq(y),this.currentDirection!==null&&b&&b(this.currentDirection);return}this.updateAxis("x",m.point,y),this.updateAxis("y",m.point,y),this.visualElement.render(),j&&j(h,m)},c=(h,m)=>this.stop(h,m),d=()=>kr(h=>{var m;return this.getAnimationState(h)==="paused"&&((m=this.getAxisMotionValue(h).animation)===null||m===void 0?void 0:m.play())}),{dragSnapToOrigin:f}=this.getProps();this.panSession=new uE(n,{onSessionStart:s,onStart:a,onMove:o,onSessionEnd:c,resumeAnimation:d},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:f,contextWindow:yE(this.visualElement)})}stop(n,r){const i=this.isDragging;if(this.cancel(),!i)return;const{velocity:s}=r;this.startAnimation(s);const{onDragEnd:a}=this.getProps();a&&Bt.postRender(()=>a(n,r))}cancel(){this.isDragging=!1;const{projection:n,animationState:r}=this.visualElement;n&&(n.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:i}=this.getProps();!i&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),r&&r.setActive("whileDrag",!1)}updateAxis(n,r,i){const{drag:s}=this.getProps();if(!i||!rh(n,s,this.currentDirection))return;const a=this.getAxisMotionValue(n);let o=this.originPoint[n]+i[n];this.constraints&&this.constraints[n]&&(o=K9(o,this.constraints[n],this.elastic[n])),a.set(o)}resolveConstraints(){var n;const{dragConstraints:r,dragElastic:i}=this.getProps(),s=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(n=this.visualElement.projection)===null||n===void 0?void 0:n.layout,a=this.constraints;r&&Mo(r)?this.constraints||(this.constraints=this.resolveRefConstraints()):r&&s?this.constraints=G9(s.layoutBox,r):this.constraints=!1,this.elastic=J9(i),a!==this.constraints&&s&&this.constraints&&!this.hasMutatedConstraints&&kr(o=>{this.constraints!==!1&&this.getAxisMotionValue(o)&&(this.constraints[o]=X9(s.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:n,onMeasureDragConstraints:r}=this.getProps();if(!n||!Mo(n))return!1;const i=n.current,{projection:s}=this.visualElement;if(!s||!s.layout)return!1;const a=nq(i,s.root,this.visualElement.getTransformPagePoint());let o=Q9(s.layout.layoutBox,a);if(r){const c=r(Z9(o));this.hasMutatedConstraints=!!c,c&&(o=mE(c))}return o}startAnimation(n){const{drag:r,dragMomentum:i,dragElastic:s,dragTransition:a,dragSnapToOrigin:o,onDragTransitionEnd:c}=this.getProps(),d=this.constraints||{},f=kr(h=>{if(!rh(h,r,this.currentDirection))return;let m=d&&d[h]||{};o&&(m={min:0,max:0});const p=s?200:1e6,g=s?40:1e7,b={type:"inertia",velocity:i?n[h]:0,bounceStiffness:p,bounceDamping:g,timeConstant:750,restDelta:1,restSpeed:10,...a,...m};return this.startAxisValueAnimation(h,b)});return Promise.all(f).then(c)}startAxisValueAnimation(n,r){const i=this.getAxisMotionValue(n);return s0(this.visualElement,n),i.start(Gv(n,i,0,r,this.visualElement,!1))}stopAnimation(){kr(n=>this.getAxisMotionValue(n).stop())}pauseAnimation(){kr(n=>{var r;return(r=this.getAxisMotionValue(n).animation)===null||r===void 0?void 0:r.pause()})}getAnimationState(n){var r;return(r=this.getAxisMotionValue(n).animation)===null||r===void 0?void 0:r.state}getAxisMotionValue(n){const r=`_drag${n.toUpperCase()}`,i=this.visualElement.getProps(),s=i[r];return s||this.visualElement.getValue(n,(i.initial?i.initial[n]:void 0)||0)}snapToCursor(n){kr(r=>{const{drag:i}=this.getProps();if(!rh(r,i,this.currentDirection))return;const{projection:s}=this.visualElement,a=this.getAxisMotionValue(r);if(s&&s.layout){const{min:o,max:c}=s.layout.layoutBox[r];a.set(n[r]-Kt(o,c,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:n,dragConstraints:r}=this.getProps(),{projection:i}=this.visualElement;if(!Mo(r)||!i||!this.constraints)return;this.stopAnimation();const s={x:0,y:0};kr(o=>{const c=this.getAxisMotionValue(o);if(c&&this.constraints!==!1){const d=c.get();s[o]=Y9({min:d,max:d},this.constraints[o])}});const{transformTemplate:a}=this.visualElement.getProps();this.visualElement.current.style.transform=a?a({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.resolveConstraints(),kr(o=>{if(!rh(o,n,null))return;const c=this.getAxisMotionValue(o),{min:d,max:f}=this.constraints[o];c.set(Kt(d,f,s[o]))})}addListeners(){if(!this.visualElement.current)return;rq.set(this.visualElement,this);const n=this.visualElement.current,r=Vc(n,"pointerdown",d=>{const{drag:f,dragListener:h=!0}=this.getProps();f&&h&&this.start(d)}),i=()=>{const{dragConstraints:d}=this.getProps();Mo(d)&&d.current&&(this.constraints=this.resolveRefConstraints())},{projection:s}=this.visualElement,a=s.addEventListener("measure",i);s&&!s.layout&&(s.root&&s.root.updateScroll(),s.updateLayout()),Bt.read(i);const o=au(window,"resize",()=>this.scalePositionWithinConstraints()),c=s.addEventListener("didUpdate",(({delta:d,hasLayoutChanged:f})=>{this.isDragging&&f&&(kr(h=>{const m=this.getAxisMotionValue(h);m&&(this.originPoint[h]+=d[h].translate,m.set(m.get()+d[h].translate))}),this.visualElement.render())}));return()=>{o(),r(),a(),c&&c()}}getProps(){const n=this.visualElement.getProps(),{drag:r=!1,dragDirectionLock:i=!1,dragPropagation:s=!1,dragConstraints:a=!1,dragElastic:o=f0,dragMomentum:c=!0}=n;return{...n,drag:r,dragDirectionLock:i,dragPropagation:s,dragConstraints:a,dragElastic:o,dragMomentum:c}}}function rh(e,n,r){return(n===!0||n===e)&&(r===null||r===e)}function sq(e,n=10){let r=null;return Math.abs(e.y)>n?r="y":Math.abs(e.x)>n&&(r="x"),r}class aq extends Xs{constructor(n){super(n),this.removeGroupControls=fr,this.removeListeners=fr,this.controls=new iq(n)}mount(){const{dragControls:n}=this.node.getProps();n&&(this.removeGroupControls=n.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||fr}unmount(){this.removeGroupControls(),this.removeListeners()}}const y2=e=>(n,r)=>{e&&Bt.postRender(()=>e(n,r))};class oq extends Xs{constructor(){super(...arguments),this.removePointerDownListener=fr}onPointerDown(n){this.session=new uE(n,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:yE(this.node)})}createPanHandlers(){const{onPanSessionStart:n,onPanStart:r,onPan:i,onPanEnd:s}=this.node.getProps();return{onSessionStart:y2(n),onStart:y2(r),onMove:i,onEnd:(a,o)=>{delete this.session,s&&Bt.postRender(()=>s(a,o))}}}mount(){this.removePointerDownListener=Vc(this.node.current,"pointerdown",n=>this.onPointerDown(n))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}function lq(){const e=F.useContext(xf);if(e===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:i}=e,s=F.useId();F.useEffect(()=>i(s),[]);const a=F.useCallback(()=>r&&r(s),[s,r]);return!n&&r?[!1,a]:[!0]}const Eh={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function v2(e,n){return n.max===n.min?0:e/(n.max-n.min)*100}const bc={correct:(e,n)=>{if(!n.target)return e;if(typeof e=="string")if(Ye.test(e))e=parseFloat(e);else return e;const r=v2(e,n.target.x),i=v2(e,n.target.y);return`${r}% ${i}%`}},cq={correct:(e,{treeScale:n,projectionDelta:r})=>{const i=e,s=Ks.parse(e);if(s.length>5)return i;const a=Ks.createTransformer(e),o=typeof s[0]!="number"?1:0,c=r.x.scale*n.x,d=r.y.scale*n.y;s[0+o]/=c,s[1+o]/=d;const f=Kt(c,d,.5);return typeof s[2+o]=="number"&&(s[2+o]/=f),typeof s[3+o]=="number"&&(s[3+o]/=f),a(s)}};class uq extends F.Component{componentDidMount(){const{visualElement:n,layoutGroup:r,switchLayoutGroup:i,layoutId:s}=this.props,{projection:a}=n;hB(dq),a&&(r.group&&r.group.add(a),i&&i.register&&s&&i.register(a),a.root.didUpdate(),a.addEventListener("animationComplete",()=>{this.safeToRemove()}),a.setOptions({...a.options,onExitComplete:()=>this.safeToRemove()})),Eh.hasEverUpdated=!0}getSnapshotBeforeUpdate(n){const{layoutDependency:r,visualElement:i,drag:s,isPresent:a}=this.props,o=i.projection;return o&&(o.isPresent=a,s||n.layoutDependency!==r||r===void 0?o.willUpdate():this.safeToRemove(),n.isPresent!==a&&(a?o.promote():o.relegate()||Bt.postRender(()=>{const c=o.getStack();(!c||!c.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:n}=this.props.visualElement;n&&(n.root.didUpdate(),Nv.postRender(()=>{!n.currentAnimation&&n.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:n,layoutGroup:r,switchLayoutGroup:i}=this.props,{projection:s}=n;s&&(s.scheduleCheckAfterUnmount(),r&&r.group&&r.group.remove(s),i&&i.deregister&&i.deregister(s))}safeToRemove(){const{safeToRemove:n}=this.props;n&&n()}render(){return null}}function vE(e){const[n,r]=lq(),i=F.useContext(xv);return t.jsx(uq,{...e,layoutGroup:i,switchLayoutGroup:F.useContext(u4),isPresent:n,safeToRemove:r})}const dq={borderRadius:{...bc,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:bc,borderTopRightRadius:bc,borderBottomLeftRadius:bc,borderBottomRightRadius:bc,boxShadow:cq};function hq(e,n,r){const i=On(e)?e:iu(e);return i.start(Gv("",i,n,r)),i.animation}function fq(e){return e instanceof SVGElement&&e.tagName!=="svg"}const mq=(e,n)=>e.depth-n.depth;class pq{constructor(){this.children=[],this.isDirty=!1}add(n){Mv(this.children,n),this.isDirty=!0}remove(n){Lv(this.children,n),this.isDirty=!0}forEach(n){this.isDirty&&this.children.sort(mq),this.isDirty=!1,this.children.forEach(n)}}function gq(e,n){const r=gi.now(),i=({timestamp:s})=>{const a=s-r;a>=n&&(Ws(i),e(a-n))};return Bt.read(i,!0),()=>Ws(i)}const bE=["TopLeft","TopRight","BottomLeft","BottomRight"],xq=bE.length,b2=e=>typeof e=="string"?parseFloat(e):e,j2=e=>typeof e=="number"||Ye.test(e);function yq(e,n,r,i,s,a){s?(e.opacity=Kt(0,r.opacity!==void 0?r.opacity:1,vq(i)),e.opacityExit=Kt(n.opacity!==void 0?n.opacity:1,0,bq(i))):a&&(e.opacity=Kt(n.opacity!==void 0?n.opacity:1,r.opacity!==void 0?r.opacity:1,i));for(let o=0;o<xq;o++){const c=`border${bE[o]}Radius`;let d=w2(n,c),f=w2(r,c);if(d===void 0&&f===void 0)continue;d||(d=0),f||(f=0),d===0||f===0||j2(d)===j2(f)?(e[c]=Math.max(Kt(b2(d),b2(f),i),0),(pi.test(f)||pi.test(d))&&(e[c]+="%")):e[c]=f}(n.rotate||r.rotate)&&(e.rotate=Kt(n.rotate||0,r.rotate||0,i))}function w2(e,n){return e[n]!==void 0?e[n]:e.borderRadius}const vq=jE(0,.5,B4),bq=jE(.5,.95,fr);function jE(e,n,r){return i=>i<e?0:i>n?1:r(ul(e,n,i))}function N2(e,n){e.min=n.min,e.max=n.max}function Nr(e,n){N2(e.x,n.x),N2(e.y,n.y)}function k2(e,n){e.translate=n.translate,e.scale=n.scale,e.originPoint=n.originPoint,e.origin=n.origin}function _2(e,n,r,i,s){return e-=n,e=Kh(e,1/r,i),s!==void 0&&(e=Kh(e,1/s,i)),e}function jq(e,n=0,r=1,i=.5,s,a=e,o=e){if(pi.test(n)&&(n=parseFloat(n),n=Kt(o.min,o.max,n/100)-o.min),typeof n!="number")return;let c=Kt(a.min,a.max,i);e===a&&(c-=n),e.min=_2(e.min,n,r,c,s),e.max=_2(e.max,n,r,c,s)}function S2(e,n,[r,i,s],a,o){jq(e,n[r],n[i],n[s],n.scale,a,o)}const wq=["x","scaleX","originX"],Nq=["y","scaleY","originY"];function A2(e,n,r,i){S2(e.x,n,wq,r?r.x:void 0,i?i.x:void 0),S2(e.y,n,Nq,r?r.y:void 0,i?i.y:void 0)}function C2(e){return e.translate===0&&e.scale===1}function wE(e){return C2(e.x)&&C2(e.y)}function E2(e,n){return e.min===n.min&&e.max===n.max}function kq(e,n){return E2(e.x,n.x)&&E2(e.y,n.y)}function T2(e,n){return Math.round(e.min)===Math.round(n.min)&&Math.round(e.max)===Math.round(n.max)}function NE(e,n){return T2(e.x,n.x)&&T2(e.y,n.y)}function P2(e){return gr(e.x)/gr(e.y)}function O2(e,n){return e.translate===n.translate&&e.scale===n.scale&&e.originPoint===n.originPoint}class _q{constructor(){this.members=[]}add(n){Mv(this.members,n),n.scheduleRender()}remove(n){if(Lv(this.members,n),n===this.prevLead&&(this.prevLead=void 0),n===this.lead){const r=this.members[this.members.length-1];r&&this.promote(r)}}relegate(n){const r=this.members.findIndex(s=>n===s);if(r===0)return!1;let i;for(let s=r;s>=0;s--){const a=this.members[s];if(a.isPresent!==!1){i=a;break}}return i?(this.promote(i),!0):!1}promote(n,r){const i=this.lead;if(n!==i&&(this.prevLead=i,this.lead=n,n.show(),i)){i.instance&&i.scheduleRender(),n.scheduleRender(),n.resumeFrom=i,r&&(n.resumeFrom.preserveOpacity=!0),i.snapshot&&(n.snapshot=i.snapshot,n.snapshot.latestValues=i.animationValues||i.latestValues),n.root&&n.root.isUpdating&&(n.isLayoutDirty=!0);const{crossfade:s}=n.options;s===!1&&i.hide()}}exitAnimationComplete(){this.members.forEach(n=>{const{options:r,resumingFrom:i}=n;r.onExitComplete&&r.onExitComplete(),i&&i.options.onExitComplete&&i.options.onExitComplete()})}scheduleRender(){this.members.forEach(n=>{n.instance&&n.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function Sq(e,n,r){let i="";const s=e.x.translate/n.x,a=e.y.translate/n.y,o=(r==null?void 0:r.z)||0;if((s||a||o)&&(i=`translate3d(${s}px, ${a}px, ${o}px) `),(n.x!==1||n.y!==1)&&(i+=`scale(${1/n.x}, ${1/n.y}) `),r){const{transformPerspective:f,rotate:h,rotateX:m,rotateY:p,skewX:g,skewY:b}=r;f&&(i=`perspective(${f}px) ${i}`),h&&(i+=`rotate(${h}deg) `),m&&(i+=`rotateX(${m}deg) `),p&&(i+=`rotateY(${p}deg) `),g&&(i+=`skewX(${g}deg) `),b&&(i+=`skewY(${b}deg) `)}const c=e.x.scale*n.x,d=e.y.scale*n.y;return(c!==1||d!==1)&&(i+=`scale(${c}, ${d})`),i||"none"}const ja={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},Ic=typeof window<"u"&&window.MotionDebug!==void 0,lg=["","X","Y","Z"],Aq={visibility:"hidden"},D2=1e3;let Cq=0;function cg(e,n,r,i){const{latestValues:s}=n;s[e]&&(r[e]=s[e],n.setStaticValue(e,0),i&&(i[e]=0))}function kE(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:n}=e.options;if(!n)return;const r=O4(n);if(window.MotionHasOptimisedAnimation(r,"transform")){const{layout:s,layoutId:a}=e.options;window.MotionCancelOptimisedAnimation(r,"transform",Bt,!(s||a))}const{parent:i}=e;i&&!i.hasCheckedOptimisedAppear&&kE(i)}function _E({attachResizeListener:e,defaultParent:n,measureScroll:r,checkIsScrollRoot:i,resetTransform:s}){return class{constructor(o={},c=n==null?void 0:n()){this.id=Cq++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,Ic&&(ja.totalNodes=ja.resolvedTargetDeltas=ja.recalculatedProjection=0),this.nodes.forEach(Pq),this.nodes.forEach(Fq),this.nodes.forEach(Mq),this.nodes.forEach(Oq),Ic&&window.MotionDebug.record(ja)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=o,this.root=c?c.root||c:this,this.path=c?[...c.path,c]:[],this.parent=c,this.depth=c?c.depth+1:0;for(let d=0;d<this.path.length;d++)this.path[d].shouldResetTransform=!0;this.root===this&&(this.nodes=new pq)}addEventListener(o,c){return this.eventHandlers.has(o)||this.eventHandlers.set(o,new Bv),this.eventHandlers.get(o).add(c)}notifyListeners(o,...c){const d=this.eventHandlers.get(o);d&&d.notify(...c)}hasListeners(o){return this.eventHandlers.has(o)}mount(o,c=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=fq(o),this.instance=o;const{layoutId:d,layout:f,visualElement:h}=this.options;if(h&&!h.current&&h.mount(o),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),c&&(f||d)&&(this.isLayoutDirty=!0),e){let m;const p=()=>this.root.updateBlockedByResize=!1;e(o,()=>{this.root.updateBlockedByResize=!0,m&&m(),m=gq(p,250),Eh.hasAnimatedSinceResize&&(Eh.hasAnimatedSinceResize=!1,this.nodes.forEach(R2))})}d&&this.root.registerSharedNode(d,this),this.options.animate!==!1&&h&&(d||f)&&this.addEventListener("didUpdate",({delta:m,hasLayoutChanged:p,hasRelativeTargetChanged:g,layout:b})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const j=this.options.transition||h.getDefaultTransition()||Vq,{onLayoutAnimationStart:y,onLayoutAnimationComplete:x}=h.getProps(),N=!this.targetLayout||!NE(this.targetLayout,b)||g,w=!p&&g;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||w||p&&(N||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(m,w);const k={...Dv(j,"layout"),onPlay:y,onComplete:x};(h.shouldReduceMotion||this.options.layoutRoot)&&(k.delay=0,k.type=!1),this.startAnimation(k)}else p||R2(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=b})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const o=this.getStack();o&&o.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Ws(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(Lq),this.animationId++)}getTransformTemplate(){const{visualElement:o}=this.options;return o&&o.getProps().transformTemplate}willUpdate(o=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&kE(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let h=0;h<this.path.length;h++){const m=this.path[h];m.shouldResetTransform=!0,m.updateScroll("snapshot"),m.options.layoutRoot&&m.willUpdate(!1)}const{layoutId:c,layout:d}=this.options;if(c===void 0&&!d)return;const f=this.getTransformTemplate();this.prevTransformTemplateValue=f?f(this.latestValues,""):void 0,this.updateSnapshot(),o&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(I2);return}this.isUpdating||this.nodes.forEach(Iq),this.isUpdating=!1,this.nodes.forEach(Rq),this.nodes.forEach(Eq),this.nodes.forEach(Tq),this.clearAllSnapshots();const c=gi.now();Nn.delta=Wi(0,1e3/60,c-Nn.timestamp),Nn.timestamp=c,Nn.isProcessing=!0,Zp.update.process(Nn),Zp.preRender.process(Nn),Zp.render.process(Nn),Nn.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Nv.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(Dq),this.sharedNodes.forEach(Bq)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Bt.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Bt.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let d=0;d<this.path.length;d++)this.path[d].updateScroll();const o=this.layout;this.layout=this.measure(!1),this.layoutCorrected=nn(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:c}=this.options;c&&c.notify("LayoutMeasure",this.layout.layoutBox,o?o.layoutBox:void 0)}updateScroll(o="measure"){let c=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===o&&(c=!1),c){const d=i(this.instance);this.scroll={animationId:this.root.animationId,phase:o,isRoot:d,offset:r(this.instance),wasRoot:this.scroll?this.scroll.isRoot:d}}}resetTransform(){if(!s)return;const o=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,c=this.projectionDelta&&!wE(this.projectionDelta),d=this.getTransformTemplate(),f=d?d(this.latestValues,""):void 0,h=f!==this.prevTransformTemplateValue;o&&(c||ba(this.latestValues)||h)&&(s(this.instance,f),this.shouldResetTransform=!1,this.scheduleRender())}measure(o=!0){const c=this.measurePageBox();let d=this.removeElementScroll(c);return o&&(d=this.removeTransform(d)),Uq(d),{animationId:this.root.animationId,measuredBox:c,layoutBox:d,latestValues:{},source:this.id}}measurePageBox(){var o;const{visualElement:c}=this.options;if(!c)return nn();const d=c.measureViewportBox();if(!(((o=this.scroll)===null||o===void 0?void 0:o.wasRoot)||this.path.some($q))){const{scroll:h}=this.root;h&&(qo(d.x,h.offset.x),qo(d.y,h.offset.y))}return d}removeElementScroll(o){var c;const d=nn();if(Nr(d,o),!((c=this.scroll)===null||c===void 0)&&c.wasRoot)return d;for(let f=0;f<this.path.length;f++){const h=this.path[f],{scroll:m,options:p}=h;h!==this.root&&m&&p.layoutScroll&&(m.wasRoot&&Nr(d,o),qo(d.x,m.offset.x),qo(d.y,m.offset.y))}return d}applyTransform(o,c=!1){const d=nn();Nr(d,o);for(let f=0;f<this.path.length;f++){const h=this.path[f];!c&&h.options.layoutScroll&&h.scroll&&h!==h.root&&zo(d,{x:-h.scroll.offset.x,y:-h.scroll.offset.y}),ba(h.latestValues)&&zo(d,h.latestValues)}return ba(this.latestValues)&&zo(d,this.latestValues),d}removeTransform(o){const c=nn();Nr(c,o);for(let d=0;d<this.path.length;d++){const f=this.path[d];if(!f.instance||!ba(f.latestValues))continue;m0(f.latestValues)&&f.updateSnapshot();const h=nn(),m=f.measurePageBox();Nr(h,m),A2(c,f.latestValues,f.snapshot?f.snapshot.layoutBox:void 0,h)}return ba(this.latestValues)&&A2(c,this.latestValues),c}setTargetDelta(o){this.targetDelta=o,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(o){this.options={...this.options,...o,crossfade:o.crossfade!==void 0?o.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==Nn.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(o=!1){var c;const d=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=d.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=d.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=d.isSharedProjectionDirty);const f=!!this.resumingFrom||this!==d;if(!(o||f&&this.isSharedProjectionDirty||this.isProjectionDirty||!((c=this.parent)===null||c===void 0)&&c.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:m,layoutId:p}=this.options;if(!(!this.layout||!(m||p))){if(this.resolvedRelativeTargetAt=Nn.timestamp,!this.targetDelta&&!this.relativeTarget){const g=this.getClosestProjectingParent();g&&g.layout&&this.animationProgress!==1?(this.relativeParent=g,this.forceRelativeParentToResolveTarget(),this.relativeTarget=nn(),this.relativeTargetOrigin=nn(),$c(this.relativeTargetOrigin,this.layout.layoutBox,g.layout.layoutBox),Nr(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=nn(),this.targetWithTransforms=nn()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),W9(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Nr(this.target,this.layout.layoutBox),gE(this.target,this.targetDelta)):Nr(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const g=this.getClosestProjectingParent();g&&!!g.resumingFrom==!!this.resumingFrom&&!g.options.layoutScroll&&g.target&&this.animationProgress!==1?(this.relativeParent=g,this.forceRelativeParentToResolveTarget(),this.relativeTarget=nn(),this.relativeTargetOrigin=nn(),$c(this.relativeTargetOrigin,this.target,g.target),Nr(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}Ic&&ja.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||m0(this.parent.latestValues)||pE(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var o;const c=this.getLead(),d=!!this.resumingFrom||this!==c;let f=!0;if((this.isProjectionDirty||!((o=this.parent)===null||o===void 0)&&o.isProjectionDirty)&&(f=!1),d&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(f=!1),this.resolvedRelativeTargetAt===Nn.timestamp&&(f=!1),f)return;const{layout:h,layoutId:m}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(h||m))return;Nr(this.layoutCorrected,this.layout.layoutBox);const p=this.treeScale.x,g=this.treeScale.y;tq(this.layoutCorrected,this.treeScale,this.path,d),c.layout&&!c.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(c.target=c.layout.layoutBox,c.targetWithTransforms=nn());const{target:b}=c;if(!b){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(k2(this.prevProjectionDelta.x,this.projectionDelta.x),k2(this.prevProjectionDelta.y,this.projectionDelta.y)),Uc(this.projectionDelta,this.layoutCorrected,b,this.latestValues),(this.treeScale.x!==p||this.treeScale.y!==g||!O2(this.projectionDelta.x,this.prevProjectionDelta.x)||!O2(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",b)),Ic&&ja.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(o=!0){var c;if((c=this.options.visualElement)===null||c===void 0||c.scheduleRender(),o){const d=this.getStack();d&&d.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Bo(),this.projectionDelta=Bo(),this.projectionDeltaWithTransform=Bo()}setAnimationOrigin(o,c=!1){const d=this.snapshot,f=d?d.latestValues:{},h={...this.latestValues},m=Bo();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!c;const p=nn(),g=d?d.source:void 0,b=this.layout?this.layout.source:void 0,j=g!==b,y=this.getStack(),x=!y||y.members.length<=1,N=!!(j&&!x&&this.options.crossfade===!0&&!this.path.some(zq));this.animationProgress=0;let w;this.mixTargetDelta=k=>{const A=k/1e3;F2(m.x,o.x,A),F2(m.y,o.y,A),this.setTargetDelta(m),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&($c(p,this.layout.layoutBox,this.relativeParent.layout.layoutBox),qq(this.relativeTarget,this.relativeTargetOrigin,p,A),w&&kq(this.relativeTarget,w)&&(this.isProjectionDirty=!1),w||(w=nn()),Nr(w,this.relativeTarget)),j&&(this.animationValues=h,yq(h,f,this.latestValues,A,N,x)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=A},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(o){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Ws(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Bt.update(()=>{Eh.hasAnimatedSinceResize=!0,this.currentAnimation=hq(0,D2,{...o,onUpdate:c=>{this.mixTargetDelta(c),o.onUpdate&&o.onUpdate(c)},onComplete:()=>{o.onComplete&&o.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const o=this.getStack();o&&o.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(D2),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const o=this.getLead();let{targetWithTransforms:c,target:d,layout:f,latestValues:h}=o;if(!(!c||!d||!f)){if(this!==o&&this.layout&&f&&SE(this.options.animationType,this.layout.layoutBox,f.layoutBox)){d=this.target||nn();const m=gr(this.layout.layoutBox.x);d.x.min=o.target.x.min,d.x.max=d.x.min+m;const p=gr(this.layout.layoutBox.y);d.y.min=o.target.y.min,d.y.max=d.y.min+p}Nr(c,d),zo(c,h),Uc(this.projectionDeltaWithTransform,this.layoutCorrected,c,h)}}registerSharedNode(o,c){this.sharedNodes.has(o)||this.sharedNodes.set(o,new _q),this.sharedNodes.get(o).add(c);const f=c.options.initialPromotionConfig;c.promote({transition:f?f.transition:void 0,preserveFollowOpacity:f&&f.shouldPreserveFollowOpacity?f.shouldPreserveFollowOpacity(c):void 0})}isLead(){const o=this.getStack();return o?o.lead===this:!0}getLead(){var o;const{layoutId:c}=this.options;return c?((o=this.getStack())===null||o===void 0?void 0:o.lead)||this:this}getPrevLead(){var o;const{layoutId:c}=this.options;return c?(o=this.getStack())===null||o===void 0?void 0:o.prevLead:void 0}getStack(){const{layoutId:o}=this.options;if(o)return this.root.sharedNodes.get(o)}promote({needsReset:o,transition:c,preserveFollowOpacity:d}={}){const f=this.getStack();f&&f.promote(this,d),o&&(this.projectionDelta=void 0,this.needsReset=!0),c&&this.setOptions({transition:c})}relegate(){const o=this.getStack();return o?o.relegate(this):!1}resetSkewAndRotation(){const{visualElement:o}=this.options;if(!o)return;let c=!1;const{latestValues:d}=o;if((d.z||d.rotate||d.rotateX||d.rotateY||d.rotateZ||d.skewX||d.skewY)&&(c=!0),!c)return;const f={};d.z&&cg("z",o,f,this.animationValues);for(let h=0;h<lg.length;h++)cg(`rotate${lg[h]}`,o,f,this.animationValues),cg(`skew${lg[h]}`,o,f,this.animationValues);o.render();for(const h in f)o.setStaticValue(h,f[h]),this.animationValues&&(this.animationValues[h]=f[h]);o.scheduleRender()}getProjectionStyles(o){var c,d;if(!this.instance||this.isSVG)return;if(!this.isVisible)return Aq;const f={visibility:""},h=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,f.opacity="",f.pointerEvents=Ah(o==null?void 0:o.pointerEvents)||"",f.transform=h?h(this.latestValues,""):"none",f;const m=this.getLead();if(!this.projectionDelta||!this.layout||!m.target){const j={};return this.options.layoutId&&(j.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,j.pointerEvents=Ah(o==null?void 0:o.pointerEvents)||""),this.hasProjected&&!ba(this.latestValues)&&(j.transform=h?h({},""):"none",this.hasProjected=!1),j}const p=m.animationValues||m.latestValues;this.applyTransformsToTarget(),f.transform=Sq(this.projectionDeltaWithTransform,this.treeScale,p),h&&(f.transform=h(p,f.transform));const{x:g,y:b}=this.projectionDelta;f.transformOrigin=`${g.origin*100}% ${b.origin*100}% 0`,m.animationValues?f.opacity=m===this?(d=(c=p.opacity)!==null&&c!==void 0?c:this.latestValues.opacity)!==null&&d!==void 0?d:1:this.preserveOpacity?this.latestValues.opacity:p.opacityExit:f.opacity=m===this?p.opacity!==void 0?p.opacity:"":p.opacityExit!==void 0?p.opacityExit:0;for(const j in Vh){if(p[j]===void 0)continue;const{correct:y,applyTo:x}=Vh[j],N=f.transform==="none"?p[j]:y(p[j],m);if(x){const w=x.length;for(let k=0;k<w;k++)f[x[k]]=N}else f[j]=N}return this.options.layoutId&&(f.pointerEvents=m===this?Ah(o==null?void 0:o.pointerEvents)||"":"none"),f}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(o=>{var c;return(c=o.currentAnimation)===null||c===void 0?void 0:c.stop()}),this.root.nodes.forEach(I2),this.root.sharedNodes.clear()}}}function Eq(e){e.updateLayout()}function Tq(e){var n;const r=((n=e.resumeFrom)===null||n===void 0?void 0:n.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&r&&e.hasListeners("didUpdate")){const{layoutBox:i,measuredBox:s}=e.layout,{animationType:a}=e.options,o=r.source!==e.layout.source;a==="size"?kr(m=>{const p=o?r.measuredBox[m]:r.layoutBox[m],g=gr(p);p.min=i[m].min,p.max=p.min+g}):SE(a,r.layoutBox,i)&&kr(m=>{const p=o?r.measuredBox[m]:r.layoutBox[m],g=gr(i[m]);p.max=p.min+g,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[m].max=e.relativeTarget[m].min+g)});const c=Bo();Uc(c,i,r.layoutBox);const d=Bo();o?Uc(d,e.applyTransform(s,!0),r.measuredBox):Uc(d,i,r.layoutBox);const f=!wE(c);let h=!1;if(!e.resumeFrom){const m=e.getClosestProjectingParent();if(m&&!m.resumeFrom){const{snapshot:p,layout:g}=m;if(p&&g){const b=nn();$c(b,r.layoutBox,p.layoutBox);const j=nn();$c(j,i,g.layoutBox),NE(b,j)||(h=!0),m.options.layoutRoot&&(e.relativeTarget=j,e.relativeTargetOrigin=b,e.relativeParent=m)}}}e.notifyListeners("didUpdate",{layout:i,snapshot:r,delta:d,layoutDelta:c,hasLayoutChanged:f,hasRelativeTargetChanged:h})}else if(e.isLead()){const{onExitComplete:i}=e.options;i&&i()}e.options.transition=void 0}function Pq(e){Ic&&ja.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function Oq(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function Dq(e){e.clearSnapshot()}function I2(e){e.clearMeasurements()}function Iq(e){e.isLayoutDirty=!1}function Rq(e){const{visualElement:n}=e.options;n&&n.getProps().onBeforeLayoutMeasure&&n.notify("BeforeLayoutMeasure"),e.resetTransform()}function R2(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function Fq(e){e.resolveTargetDelta()}function Mq(e){e.calcProjection()}function Lq(e){e.resetSkewAndRotation()}function Bq(e){e.removeLeadSnapshot()}function F2(e,n,r){e.translate=Kt(n.translate,0,r),e.scale=Kt(n.scale,1,r),e.origin=n.origin,e.originPoint=n.originPoint}function M2(e,n,r,i){e.min=Kt(n.min,r.min,i),e.max=Kt(n.max,r.max,i)}function qq(e,n,r,i){M2(e.x,n.x,r.x,i),M2(e.y,n.y,r.y,i)}function zq(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const Vq={duration:.45,ease:[.4,0,.1,1]},L2=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),B2=L2("applewebkit/")&&!L2("chrome/")?Math.round:fr;function q2(e){e.min=B2(e.min),e.max=B2(e.max)}function Uq(e){q2(e.x),q2(e.y)}function SE(e,n,r){return e==="position"||e==="preserve-aspect"&&!H9(P2(n),P2(r),.2)}function $q(e){var n;return e!==e.root&&((n=e.scroll)===null||n===void 0?void 0:n.wasRoot)}const Hq=_E({attachResizeListener:(e,n)=>au(e,"resize",n),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),ug={current:void 0},AE=_E({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!ug.current){const e=new Hq({});e.mount(window),e.setOptions({layoutScroll:!0}),ug.current=e}return ug.current},resetTransform:(e,n)=>{e.style.transform=n!==void 0?n:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),Wq={pan:{Feature:oq},drag:{Feature:aq,ProjectionNode:AE,MeasureLayout:vE}};function z2(e,n,r){const{props:i}=e;e.animationState&&i.whileHover&&e.animationState.setActive("whileHover",r==="Start");const s="onHover"+r,a=i[s];a&&Bt.postRender(()=>a(n,Pu(n)))}class Kq extends Xs{mount(){const{current:n}=this.node;n&&(this.unmount=$B(n,r=>(z2(this.node,r,"Start"),i=>z2(this.node,i,"End"))))}unmount(){}}class Gq extends Xs{constructor(){super(...arguments),this.isActive=!1}onFocus(){let n=!1;try{n=this.node.current.matches(":focus-visible")}catch{n=!0}!n||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Tu(au(this.node.current,"focus",()=>this.onFocus()),au(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function V2(e,n,r){const{props:i}=e;e.animationState&&i.whileTap&&e.animationState.setActive("whileTap",r==="Start");const s="onTap"+(r==="End"?"":r),a=i[s];a&&Bt.postRender(()=>a(n,Pu(n)))}class Qq extends Xs{mount(){const{current:n}=this.node;n&&(this.unmount=GB(n,r=>(V2(this.node,r,"Start"),(i,{success:s})=>V2(this.node,i,s?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const g0=new WeakMap,dg=new WeakMap,Yq=e=>{const n=g0.get(e.target);n&&n(e)},Xq=e=>{e.forEach(Yq)};function Jq({root:e,...n}){const r=e||document;dg.has(r)||dg.set(r,{});const i=dg.get(r),s=JSON.stringify(n);return i[s]||(i[s]=new IntersectionObserver(Xq,{root:e,...n})),i[s]}function Zq(e,n,r){const i=Jq(n);return g0.set(e,r),i.observe(e),()=>{g0.delete(e),i.unobserve(e)}}const ez={some:0,all:1};class tz extends Xs{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:n={}}=this.node.getProps(),{root:r,margin:i,amount:s="some",once:a}=n,o={root:r?r.current:void 0,rootMargin:i,threshold:typeof s=="number"?s:ez[s]},c=d=>{const{isIntersecting:f}=d;if(this.isInView===f||(this.isInView=f,a&&!f&&this.hasEnteredView))return;f&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",f);const{onViewportEnter:h,onViewportLeave:m}=this.node.getProps(),p=f?h:m;p&&p(d)};return Zq(this.node.current,o,c)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:n,prevProps:r}=this.node;["amount","margin","root"].some(nz(n,r))&&this.startObserver()}unmount(){}}function nz({viewport:e={}},{viewport:n={}}={}){return r=>e[r]!==n[r]}const rz={inView:{Feature:tz},tap:{Feature:Qq},focus:{Feature:Gq},hover:{Feature:Kq}},iz={layout:{ProjectionNode:AE,MeasureLayout:vE}},x0={current:null},CE={current:!1};function sz(){if(CE.current=!0,!!vv)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),n=()=>x0.current=e.matches;e.addListener(n),n()}else x0.current=!1}function az(e,n,r){for(const i in n){const s=n[i],a=r[i];if(On(s))e.addValue(i,s);else if(On(a))e.addValue(i,iu(s,{owner:e}));else if(a!==s)if(e.hasValue(i)){const o=e.getValue(i);o.liveStyle===!0?o.jump(s):o.hasAnimated||o.set(s)}else{const o=e.getStaticValue(i);e.addValue(i,iu(o!==void 0?o:s,{owner:e}))}}for(const i in r)n[i]===void 0&&e.removeValue(i);return n}const U2=new WeakMap,oz=[...H4,En,Ks],lz=e=>oz.find($4(e)),$2=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class cz{scrapeMotionValuesFromProps(n,r,i){return{}}constructor({parent:n,props:r,presenceContext:i,reducedMotionConfig:s,blockInitialAnimation:a,visualState:o},c={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Vv,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const p=gi.now();this.renderScheduledAt<p&&(this.renderScheduledAt=p,Bt.render(this.render,!1,!0))};const{latestValues:d,renderState:f}=o;this.latestValues=d,this.baseTarget={...d},this.initialValues=r.initial?{...d}:{},this.renderState=f,this.parent=n,this.props=r,this.presenceContext=i,this.depth=n?n.depth+1:0,this.reducedMotionConfig=s,this.options=c,this.blockInitialAnimation=!!a,this.isControllingVariants=bf(r),this.isVariantNode=l4(r),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(n&&n.current);const{willChange:h,...m}=this.scrapeMotionValuesFromProps(r,{},this);for(const p in m){const g=m[p];d[p]!==void 0&&On(g)&&g.set(d[p],!1)}}mount(n){this.current=n,U2.set(n,this),this.projection&&!this.projection.instance&&this.projection.mount(n),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((r,i)=>this.bindToMotionValue(i,r)),CE.current||sz(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:x0.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){U2.delete(this.current),this.projection&&this.projection.unmount(),Ws(this.notifyUpdate),Ws(this.render),this.valueSubscriptions.forEach(n=>n()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const n in this.events)this.events[n].clear();for(const n in this.features){const r=this.features[n];r&&(r.unmount(),r.isMounted=!1)}this.current=null}bindToMotionValue(n,r){this.valueSubscriptions.has(n)&&this.valueSubscriptions.get(n)();const i=Ja.has(n),s=r.on("change",c=>{this.latestValues[n]=c,this.props.onUpdate&&Bt.preRender(this.notifyUpdate),i&&this.projection&&(this.projection.isTransformDirty=!0)}),a=r.on("renderRequest",this.scheduleRender);let o;window.MotionCheckAppearSync&&(o=window.MotionCheckAppearSync(this,n,r)),this.valueSubscriptions.set(n,()=>{s(),a(),o&&o(),r.owner&&r.stop()})}sortNodePosition(n){return!this.current||!this.sortInstanceNodePosition||this.type!==n.type?0:this.sortInstanceNodePosition(this.current,n.current)}updateFeatures(){let n="animation";for(n in dl){const r=dl[n];if(!r)continue;const{isEnabled:i,Feature:s}=r;if(!this.features[n]&&s&&i(this.props)&&(this.features[n]=new s(this)),this.features[n]){const a=this.features[n];a.isMounted?a.update():(a.mount(),a.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):nn()}getStaticValue(n){return this.latestValues[n]}setStaticValue(n,r){this.latestValues[n]=r}update(n,r){(n.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=n,this.prevPresenceContext=this.presenceContext,this.presenceContext=r;for(let i=0;i<$2.length;i++){const s=$2[i];this.propEventSubscriptions[s]&&(this.propEventSubscriptions[s](),delete this.propEventSubscriptions[s]);const a="on"+s,o=n[a];o&&(this.propEventSubscriptions[s]=this.on(s,o))}this.prevMotionValues=az(this,this.scrapeMotionValuesFromProps(n,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(n){return this.props.variants?this.props.variants[n]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(n){const r=this.getClosestVariantNode();if(r)return r.variantChildren&&r.variantChildren.add(n),()=>r.variantChildren.delete(n)}addValue(n,r){const i=this.values.get(n);r!==i&&(i&&this.removeValue(n),this.bindToMotionValue(n,r),this.values.set(n,r),this.latestValues[n]=r.get())}removeValue(n){this.values.delete(n);const r=this.valueSubscriptions.get(n);r&&(r(),this.valueSubscriptions.delete(n)),delete this.latestValues[n],this.removeValueFromRenderState(n,this.renderState)}hasValue(n){return this.values.has(n)}getValue(n,r){if(this.props.values&&this.props.values[n])return this.props.values[n];let i=this.values.get(n);return i===void 0&&r!==void 0&&(i=iu(r===null?void 0:r,{owner:this}),this.addValue(n,i)),i}readValue(n,r){var i;let s=this.latestValues[n]!==void 0||!this.current?this.latestValues[n]:(i=this.getBaseTargetFromProps(this.props,n))!==null&&i!==void 0?i:this.readValueFromInstance(this.current,n,this.options);return s!=null&&(typeof s=="string"&&(V4(s)||z4(s))?s=parseFloat(s):!lz(s)&&Ks.test(r)&&(s=Z4(n,r)),this.setBaseTarget(n,On(s)?s.get():s)),On(s)?s.get():s}setBaseTarget(n,r){this.baseTarget[n]=r}getBaseTarget(n){var r;const{initial:i}=this.props;let s;if(typeof i=="string"||typeof i=="object"){const o=Sv(this.props,i,(r=this.presenceContext)===null||r===void 0?void 0:r.custom);o&&(s=o[n])}if(i&&s!==void 0)return s;const a=this.getBaseTargetFromProps(this.props,n);return a!==void 0&&!On(a)?a:this.initialValues[n]!==void 0&&s===void 0?void 0:this.baseTarget[n]}on(n,r){return this.events[n]||(this.events[n]=new Bv),this.events[n].add(r)}notify(n,...r){this.events[n]&&this.events[n].notify(...r)}}class EE extends cz{constructor(){super(...arguments),this.KeyframeResolver=eE}sortInstanceNodePosition(n,r){return n.compareDocumentPosition(r)&2?1:-1}getBaseTargetFromProps(n,r){return n.style?n.style[r]:void 0}removeValueFromRenderState(n,{vars:r,style:i}){delete r[n],delete i[n]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:n}=this.props;On(n)&&(this.childSubscription=n.on("change",r=>{this.current&&(this.current.textContent=`${r}`)}))}}function uz(e){return window.getComputedStyle(e)}class dz extends EE{constructor(){super(...arguments),this.type="html",this.renderInstance=h4}readValueFromInstance(n,r){if(Ja.has(r)){const i=Hv(r);return i&&i.default||0}else{const i=uz(n),s=(j4(r)?i.getPropertyValue(r):i[r])||0;return typeof s=="string"?s.trim():s}}measureInstanceViewportBox(n,{transformPagePoint:r}){return xE(n,r)}build(n,r,i){Tv(n,r,i.transformTemplate)}scrapeMotionValuesFromProps(n,r,i){return _v(n,r,i)}}class hz extends EE{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=nn}getBaseTargetFromProps(n,r){return n[r]}readValueFromInstance(n,r){if(Ja.has(r)){const i=Hv(r);return i&&i.default||0}return r=f4.has(r)?r:wv(r),n.getAttribute(r)}scrapeMotionValuesFromProps(n,r,i){return g4(n,r,i)}build(n,r,i){Pv(n,r,this.isSVGTag,i.transformTemplate)}renderInstance(n,r,i,s){m4(n,r,i,s)}mount(n){this.isSVGTag=Ov(n.tagName),super.mount(n)}}const fz=(e,n)=>kv(e)?new hz(n):new dz(n,{allowProjection:e!==F.Fragment}),mz=MB({...F9,...rz,...Wq,...iz},fz),Z=ZL(mz);function pz(){const{data:e=[]}=ze({queryKey:["pageSections","AIConsultancy"],queryFn:()=>ue.entities.PageSection.filter({page_name:"AIConsultancy",active:!0},"sort_order"),initialData:[]}),n=e.find(o=>o.section_key==="hero")||{},r=e.find(o=>o.section_key==="wat_we_bieden")||{},i=e.find(o=>o.section_key==="onze_aanpak")||{},s=e.find(o=>o.section_key==="cta")||{},a={Target:qa,Brain:h5,Briefcase:Ka};return t.jsxs("div",{className:"pt-20",children:[t.jsxs("section",{className:"relative bg-white pt-32 pb-20 overflow-hidden",children:[t.jsx("div",{className:"absolute top-0 right-0 w-[600px] h-[600px] bg-[#FAB868]/5 rounded-full blur-3xl"}),t.jsx("div",{className:"relative max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:t.jsxs("div",{className:"grid lg:grid-cols-2 gap-20 items-center",children:[t.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"max-w-2xl",children:[t.jsx("h1",{className:"text-5xl sm:text-6xl lg:text-7xl font-bold text-[#0D0D0F] leading-[1.1] mb-8",children:n.title||"AI Strategie die werkt"}),t.jsx("p",{className:"text-2xl text-[#9CA3AF] mb-8 leading-relaxed",children:n.subtitle||"Van analyse tot roadmap. Wij helpen je de juiste AI kansen te identificeren."}),n.content&&t.jsx("div",{className:"text-[#3b3a3a] mb-12 text-xl leading-relaxed",dangerouslySetInnerHTML:{__html:n.content}}),t.jsx("div",{className:"flex flex-col sm:flex-row gap-4",children:t.jsxs(fe,{to:oe(n.cta_link||"Contact"),className:"inline-flex items-center justify-center gap-2 px-10 py-5 bg-[#FAB868] text-[#0D0D0F] font-semibold rounded-full hover:bg-[#E5A04D] transition-all text-lg",children:[n.cta_text||"Plan een gesprek",t.jsx(He,{className:"w-5 h-5"})]})})]}),t.jsx(Z.div,{initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},transition:{delay:.3},className:"hidden lg:block",children:n.image_url&&t.jsx("img",{src:n.image_url,alt:"Strategy session",className:"w-full h-[600px] object-cover rounded-3xl shadow-2xl"})})]})})]}),t.jsx("section",{className:"py-32 bg-white",children:t.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[t.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-center mb-20",children:[t.jsx("h2",{className:"text-5xl sm:text-6xl font-bold text-[#0D0D0F] mb-6",children:r.title||"Wat we bieden"}),t.jsx("p",{className:"text-[#3b3a3a] mx-auto text-2xl max-w-2xl",children:r.subtitle||"Strategisch advies dat leidt tot resultaten"})]}),t.jsx("div",{className:"grid md:grid-cols-3 gap-12",children:(r.items||[]).map((o,c)=>{const d=a[o.icon]||qa;return t.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:c*.1},className:"bg-[#F4F4F4] rounded-3xl p-12 hover:bg-white hover:shadow-lg hover:border-2 hover:border-[#FAB868] transition-all",children:[t.jsx("div",{className:"w-16 h-16 bg-[#FAB868] rounded-full flex items-center justify-center mb-8",children:t.jsx(d,{className:"w-8 h-8 text-[#0D0D0F]"})}),t.jsx("h3",{className:"text-3xl font-bold text-[#0D0D0F] mb-4",children:o.title}),t.jsx("p",{className:"text-[#3b3a3a] text-xl",children:o.description})]},c)})})]})}),t.jsx("section",{className:"py-32 bg-[#F4F4F4]",children:t.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[t.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-center mb-20",children:[t.jsx("h2",{className:"text-5xl sm:text-6xl font-bold text-[#0D0D0F] mb-6",children:i.title||"Onze aanpak"}),t.jsx("p",{className:"text-[#626060] text-2xl",children:i.subtitle||"Een bewezen proces"})]}),t.jsx("div",{className:"grid md:grid-cols-4 gap-12",children:(i.items||[]).map((o,c)=>t.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:c*.1},className:"relative",children:[t.jsx("div",{className:"text-7xl font-bold text-[#FAB868]/20 mb-6",children:String(c+1).padStart(2,"0")}),t.jsx("h3",{className:"text-2xl font-bold text-[#0D0D0F] mb-3",children:o.title}),t.jsx("p",{className:"text-[#3b3a3a] text-lg",children:o.description})]},c))})]})}),t.jsx("section",{className:"py-32 bg-[#0D0D0F]",children:t.jsxs("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 text-center",children:[t.jsx("h2",{className:"text-5xl font-bold text-white mb-6",children:s.title||"Klaar om je AI strategie te ontwikkelen?"}),t.jsx("p",{className:"text-2xl text-[#9CA3AF] mb-12",children:s.subtitle||"Plan een vrijblijvend gesprek"}),t.jsxs(fe,{to:oe(s.cta_link||"Contact"),className:"inline-flex items-center gap-2 px-10 py-5 bg-[#FAB868] text-[#0D0D0F] font-semibold rounded-full hover:bg-[#E5A04D] transition-all text-lg",children:[s.cta_text||"Plan een gesprek",t.jsx(He,{className:"w-5 h-5"})]})]})})]})}function gz(){return t.jsxs("div",{className:"pt-20",children:[t.jsxs("section",{className:"relative bg-white pt-32 pb-20 overflow-hidden",children:[t.jsx("div",{className:"absolute top-0 right-0 w-[600px] h-[600px] bg-[#FAB868]/5 rounded-full blur-3xl"}),t.jsx("div",{className:"relative max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:t.jsxs("div",{className:"grid lg:grid-cols-2 gap-20 items-center",children:[t.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"max-w-2xl",children:[t.jsx("h1",{className:"text-5xl sm:text-6xl lg:text-7xl font-bold text-[#0D0D0F] leading-[1.1] mb-8",children:"AI Development die verder gaat dan experimenten"}),t.jsx("p",{className:"text-2xl text-[#9CA3AF] mb-8 leading-relaxed",children:"Wij ontwikkelen AI-oplossingen die echt in productie gaan. Geen losse demo's of tijdelijke prototypes, maar schaalbare software die past binnen jouw bestaande IT-landschap."}),t.jsxs("div",{className:"bg-[#F4F4F4] rounded-2xl p-6 mb-12",children:[t.jsx("h3",{className:"text-xl font-bold text-[#0D0D0F] mb-3",children:"Onze kracht?"}),t.jsx("p",{className:"text-lg text-[#0D0D0F]/80",children:"Ervaren software developers met diepgaande AI-kennis, die snel kunnen schakelen van idee naar werkend prototype — en dit doorontwikkelen tot een stabiel, toekomstbestendig product."})]}),t.jsxs("div",{className:"flex flex-col sm:flex-row gap-4",children:[t.jsxs(fe,{to:oe("Contact"),className:"inline-flex items-center justify-center gap-2 px-10 py-5 bg-[#FAB868] text-[#0D0D0F] font-semibold rounded-full hover:bg-[#E5A04D] transition-all text-lg",children:["Bespreek je project",t.jsx(He,{className:"w-5 h-5"})]}),t.jsx(fe,{to:oe("Cases"),className:"inline-flex items-center justify-center gap-2 px-10 py-5 border-2 border-[#0D0D0F] text-[#0D0D0F] font-semibold rounded-full hover:bg-[#F4F4F4] transition-all text-lg",children:"Bekijk cases"})]})]}),t.jsx(Z.div,{initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},transition:{delay:.3},className:"hidden lg:block",children:t.jsx("img",{src:"https://images.unsplash.com/photo-1555949963-aa79dcee981c?w=1200&auto=format&fit=crop",alt:"AI Development",className:"w-full h-[600px] object-cover rounded-3xl shadow-2xl"})})]})})]}),t.jsx("section",{className:"py-32 bg-[#F4F4F4]",children:t.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:t.jsxs("div",{className:"grid lg:grid-cols-2 gap-16 items-center",children:[t.jsx(Z.div,{initial:{opacity:0,x:-20},whileInView:{opacity:1,x:0},viewport:{once:!0},children:t.jsx("img",{src:"https://images.unsplash.com/photo-1522071820081-009f0129c71c?w=1200&auto=format&fit=crop",alt:"Team samenwerking",className:"w-full h-[500px] object-cover rounded-3xl shadow-xl"})}),t.jsxs(Z.div,{initial:{opacity:0,x:20},whileInView:{opacity:1,x:0},viewport:{once:!0},children:[t.jsx("h2",{className:"text-5xl font-bold text-[#0D0D0F] mb-6",children:"Van prototype naar productie, met hetzelfde team"}),t.jsx("p",{className:"text-2xl text-[#9CA3AF] mb-8",children:"Veel AI-trajecten stranden na een proof-of-concept. Bij ons niet."}),t.jsx("p",{className:"text-xl text-[#0D0D0F]/80 mb-8",children:"Wij werken met één team dat:"}),t.jsxs("div",{className:"space-y-4",children:[t.jsxs("div",{className:"flex items-start gap-4",children:[t.jsx("div",{className:"w-8 h-8 bg-[#FAB868] rounded-full flex items-center justify-center flex-shrink-0 mt-1",children:t.jsx(Wt,{className:"w-5 h-5 text-[#0D0D0F]"})}),t.jsx("p",{className:"text-xl text-[#0D0D0F]/80",children:"snel prototypes bouwt om waarde te valideren"})]}),t.jsxs("div",{className:"flex items-start gap-4",children:[t.jsx("div",{className:"w-8 h-8 bg-[#FAB868] rounded-full flex items-center justify-center flex-shrink-0 mt-1",children:t.jsx(Wt,{className:"w-5 h-5 text-[#0D0D0F]"})}),t.jsx("p",{className:"text-xl text-[#0D0D0F]/80",children:"direct rekening houdt met architectuur, security en performance"})]}),t.jsxs("div",{className:"flex items-start gap-4",children:[t.jsx("div",{className:"w-8 h-8 bg-[#FAB868] rounded-full flex items-center justify-center flex-shrink-0 mt-1",children:t.jsx(Wt,{className:"w-5 h-5 text-[#0D0D0F]"})}),t.jsx("p",{className:"text-xl text-[#0D0D0F]/80",children:"het prototype zonder overdracht doorontwikkelt tot het definitieve product"})]})]}),t.jsx("p",{className:"text-xl text-[#0D0D0F] font-semibold mt-8",children:"Zo voorkom je technische schuld en verlies van momentum."})]})]})})}),t.jsx("section",{className:"py-32 bg-white",children:t.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[t.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-center mb-20",children:[t.jsx("h2",{className:"text-5xl sm:text-6xl font-bold text-[#0D0D0F] mb-6",children:"Sterk in integraties tussen systemen"}),t.jsx("p",{className:"text-2xl text-[#9CA3AF] max-w-3xl mx-auto mb-4",children:"AI staat nooit op zichzelf. Daarom hebben wij veel ervaring met integraties tussen verschillende softwaresystemen."})]}),t.jsxs("div",{className:"grid md:grid-cols-3 gap-8 mb-12",children:[t.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:.1},className:"bg-[#F4F4F4] rounded-3xl p-8 text-center",children:[t.jsx("div",{className:"w-16 h-16 bg-[#FAB868] rounded-full flex items-center justify-center mx-auto mb-4",children:t.jsx(lf,{className:"w-8 h-8 text-[#0D0D0F]"})}),t.jsx("h3",{className:"text-xl font-bold text-[#0D0D0F] mb-3",children:"ERP-, CRM- en e-commerceplatformen"})]}),t.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:.2},className:"bg-[#F4F4F4] rounded-3xl p-8 text-center",children:[t.jsx("div",{className:"w-16 h-16 bg-[#FAB868] rounded-full flex items-center justify-center mx-auto mb-4",children:t.jsx(Xc,{className:"w-8 h-8 text-[#0D0D0F]"})}),t.jsx("h3",{className:"text-xl font-bold text-[#0D0D0F] mb-3",children:"maatwerk software en SaaS-oplossingen"})]}),t.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:.3},className:"bg-[#F4F4F4] rounded-3xl p-8 text-center",children:[t.jsx("div",{className:"w-16 h-16 bg-[#FAB868] rounded-full flex items-center justify-center mx-auto mb-4",children:t.jsx(CA,{className:"w-8 h-8 text-[#0D0D0F]"})}),t.jsx("h3",{className:"text-xl font-bold text-[#0D0D0F] mb-3",children:"bestaande databronnen en nieuwe AI-componenten"})]})]}),t.jsx(Z.p,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-2xl text-[#0D0D0F] font-semibold text-center",children:"We zorgen dat AI naadloos onderdeel wordt van je bestaande processen, in plaats van een losstaand systeem."})]})}),t.jsx("section",{className:"py-32 bg-[#F4F4F4]",children:t.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[t.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-center mb-20",children:[t.jsx("h2",{className:"text-5xl sm:text-6xl font-bold text-[#0D0D0F] mb-6",children:"Veelvoorkomende AI-toepassingen"}),t.jsx("p",{className:"text-2xl text-[#9CA3AF] max-w-2xl mx-auto",children:"AI is geen doel op zich. Het is een middel. Binnen onze AI development-projecten zien we vaak toepassingen zoals:"})]}),t.jsxs("div",{className:"space-y-8",children:[t.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:.1},className:"bg-white rounded-3xl p-12 hover:shadow-xl transition-all",children:[t.jsxs("div",{className:"flex items-center gap-4 mb-6",children:[t.jsx("div",{className:"w-16 h-16 bg-[#FAB868] rounded-full flex items-center justify-center",children:t.jsx(bA,{className:"w-8 h-8 text-[#0D0D0F]"})}),t.jsx("h3",{className:"text-3xl font-bold text-[#0D0D0F]",children:"AI agents"})]}),t.jsx("p",{className:"text-xl text-[#9CA3AF]",children:"Voor het automatiseren of ondersteunen van taken en processen binnen bestaande software."})]}),t.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:.2},className:"bg-white rounded-3xl p-12 hover:shadow-xl transition-all",children:[t.jsxs("div",{className:"flex items-center gap-4 mb-6",children:[t.jsx("div",{className:"w-16 h-16 bg-[#FAB868] rounded-full flex items-center justify-center",children:t.jsx(zi,{className:"w-8 h-8 text-[#0D0D0F]"})}),t.jsx("h3",{className:"text-3xl font-bold text-[#0D0D0F]",children:"AI search voor e-commerce"})]}),t.jsx("p",{className:"text-xl text-[#9CA3AF]",children:"Zoekoplossingen die beter omgaan met intentie, productdata en conversie."})]}),t.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:.3},className:"bg-white rounded-3xl p-12 hover:shadow-xl transition-all",children:[t.jsxs("div",{className:"flex items-center gap-4 mb-6",children:[t.jsx("div",{className:"w-16 h-16 bg-[#FAB868] rounded-full flex items-center justify-center",children:t.jsx(k3,{className:"w-8 h-8 text-[#0D0D0F]"})}),t.jsx("h3",{className:"text-3xl font-bold text-[#0D0D0F]",children:"AI customer care"})]}),t.jsx("p",{className:"text-xl text-[#9CA3AF]",children:"Slimme klantondersteuning die context begrijpt en integreert met bestaande systemen."})]})]}),t.jsx(Z.p,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-xl text-[#9CA3AF] text-center mt-12",children:"Dit zijn voorbeelden — de daadwerkelijke oplossing stemmen we altijd af op jouw situatie."})]})}),t.jsx("section",{className:"py-32 bg-white",children:t.jsx("div",{className:"max-w-5xl mx-auto px-4 sm:px-6 lg:px-8",children:t.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-center",children:[t.jsx("h2",{className:"text-5xl sm:text-6xl font-bold text-[#0D0D0F] mb-8",children:"Gebouwd door developers, niet door buzzwords"}),t.jsx("p",{className:"text-2xl text-[#9CA3AF] mb-8",children:"Onze developers komen uit het bedrijfsleven. Ze begrijpen dat AI alleen waarde heeft als het:"}),t.jsxs("div",{className:"grid md:grid-cols-2 gap-6 max-w-3xl mx-auto",children:[t.jsxs("div",{className:"flex items-center gap-3 text-xl text-[#0D0D0F]",children:[t.jsx(di,{className:"w-6 h-6 text-[#FAB868]"}),"betrouwbaar is"]}),t.jsxs("div",{className:"flex items-center gap-3 text-xl text-[#0D0D0F]",children:[t.jsx(di,{className:"w-6 h-6 text-[#FAB868]"}),"onderhoudbaar blijft"]}),t.jsxs("div",{className:"flex items-center gap-3 text-xl text-[#0D0D0F]",children:[t.jsx(di,{className:"w-6 h-6 text-[#FAB868]"}),"goed integreert"]}),t.jsxs("div",{className:"flex items-center gap-3 text-xl text-[#0D0D0F]",children:[t.jsx(di,{className:"w-6 h-6 text-[#FAB868]"}),"aantoonbaar resultaat oplevert"]})]}),t.jsx("p",{className:"text-3xl text-[#0D0D0F] font-bold mt-12",children:"Daar bouwen we op."})]})})}),t.jsx("section",{className:"py-32 bg-[#0D0D0F]",children:t.jsxs("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 text-center",children:[t.jsx("h2",{className:"text-5xl font-bold text-white mb-6",children:"Heb je een idee voor een AI oplossing?"}),t.jsx("p",{className:"text-2xl text-[#9CA3AF] mb-12",children:"Wij denken graag met je mee — van prototype tot productie"}),t.jsxs(fe,{to:oe("Contact"),className:"inline-flex items-center gap-2 px-10 py-5 bg-[#FAB868] text-[#0D0D0F] font-semibold rounded-full hover:bg-[#E5A04D] transition-all text-lg",children:["Bespreek je project",t.jsx(He,{className:"w-5 h-5"})]})]})})]})}const me=F.forwardRef(({className:e,type:n,...r},i)=>t.jsx("input",{type:n,className:Gt("flex w-full bg-white px-4 py-3 text-base transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-[#9CA3AF] focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50","border-b-2 border-gray-200 focus-visible:border-[#FAB868]","rounded-none",e),ref:i,...r}));me.displayName="Input";function H2(e,n){if(typeof e=="function")return e(n);e!=null&&(e.current=n)}function TE(...e){return n=>{let r=!1;const i=e.map(s=>{const a=H2(s,n);return!r&&typeof a=="function"&&(r=!0),a});if(r)return()=>{for(let s=0;s<i.length;s++){const a=i[s];typeof a=="function"?a():H2(e[s],null)}}}}function Qt(...e){return F.useCallback(TE(...e),e)}function ou(e){const n=yz(e),r=F.forwardRef((i,s)=>{const{children:a,...o}=i,c=F.Children.toArray(a),d=c.find(bz);if(d){const f=d.props.children,h=c.map(m=>m===d?F.Children.count(f)>1?F.Children.only(null):F.isValidElement(f)?f.props.children:null:m);return t.jsx(n,{...o,ref:s,children:F.isValidElement(f)?F.cloneElement(f,void 0,h):null})}return t.jsx(n,{...o,ref:s,children:a})});return r.displayName=`${e}.Slot`,r}var xz=ou("Slot");function yz(e){const n=F.forwardRef((r,i)=>{const{children:s,...a}=r;if(F.isValidElement(s)){const o=wz(s),c=jz(a,s.props);return s.type!==F.Fragment&&(c.ref=i?TE(i,o):o),F.cloneElement(s,c)}return F.Children.count(s)>1?F.Children.only(null):null});return n.displayName=`${e}.SlotClone`,n}var vz=Symbol("radix.slottable");function bz(e){return F.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===vz}function jz(e,n){const r={...n};for(const i in n){const s=e[i],a=n[i];/^on[A-Z]/.test(i)?s&&a?r[i]=(...c)=>{const d=a(...c);return s(...c),d}:s&&(r[i]=s):i==="style"?r[i]={...s,...a}:i==="className"&&(r[i]=[s,a].filter(Boolean).join(" "))}return{...e,...r}}function wz(e){var i,s;let n=(i=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:i.get,r=n&&"isReactWarning"in n&&n.isReactWarning;return r?e.ref:(n=(s=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:s.get,r=n&&"isReactWarning"in n&&n.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}const Nz=yA("inline-flex items-center justify-center whitespace-nowrap rounded-full text-sm font-medium transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-[#FAB868] text-[#0D0D0F] hover:bg-[#E5A04D] shadow-sm",dark:"bg-[#0D0D0F] text-white hover:bg-[#1a1a1c]",outline:"border border-gray-200 bg-white text-[#0D0D0F] hover:bg-gray-50",ghost:"hover:bg-gray-100 text-[#0D0D0F]",link:"text-[#0D0D0F] underline-offset-4 hover:underline"},size:{default:"h-12 px-6 py-3",sm:"h-9 px-4 text-xs",lg:"h-14 px-8 text-base",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),se=F.forwardRef(({className:e,variant:n,size:r,asChild:i=!1,...s},a)=>{const o=i?xz:"button";return t.jsx(o,{className:Gt(Nz({variant:n,size:r,className:e})),ref:a,...s})});se.displayName="Button";function kz(){var D;const[e,n]=F.useState(""),[r,i]=F.useState(""),[s,a]=F.useState(""),[o,c]=F.useState("input"),[d,f]=F.useState(!1),[h,m]=F.useState(!1),[p,g]=F.useState(null),[b,j]=F.useState(null),[y,x]=F.useState(null),[N,w]=F.useState(null),[k,A]=F.useState({name:"",email:""}),[S,E]=F.useState({assumptions_correct:!0,actual_activities:"",pain_points:"",competitor_advantages:"",strategic_development_need:"",employee_training_level:""}),C=[{value:"",label:"Selecteer industrie (optioneel)"},{value:"retail",label:"Retail & E-commerce"},{value:"manufacturing",label:"Productie & Manufacturing"},{value:"healthcare",label:"Zorg & Welzijn"},{value:"professional_services",label:"Professionele Dienstverlening"},{value:"hospitality",label:"Horeca & Hospitality"},{value:"logistics",label:"Logistiek & Transport"},{value:"construction",label:"Bouw & Vastgoed"},{value:"education",label:"Onderwijs & Training"},{value:"finance",label:"Financiële Diensten"},{value:"technology",label:"Technology & Software"},{value:"marketing",label:"Marketing & Media"},{value:"other",label:"Anders"}];F.useEffect(()=>{const z=new URLSearchParams(window.location.search).get("report_id");z&&B(z)},[]);const B=async q=>{var z,U;m(!0),w(null);try{const{data:Y}=await ue.functions.invoke("getImpactReport",{submission_id:q});Y.success&&Y.report?(j({report:Y.report,metadata:Y.metadata}),x(q),c("results")):w(Y.error||"Rapport niet gevonden")}catch(Y){console.error("Error loading shared report:",Y),w(((U=(z=Y.response)==null?void 0:z.data)==null?void 0:U.error)||Y.message||"Kon rapport niet laden. Controleer de link en probeer opnieuw.")}finally{m(!1)}},I=async q=>{var z,U,Y,H;if(q.preventDefault(),!e){w("Website URL is verplicht");return}f(!0),w(null),c("analyzing");try{const Q=`https://${e.replace(/^(https?:\/\/)?(www\.)?/,"").replace(/\/$/,"")}`;console.log("Calling generatePreliminaryAnalysis with:",{website_url:Q,company_name:r,industry:s||void 0});const{data:O}=await ue.functions.invoke("generatePreliminaryAnalysis",{website_url:Q,company_name:r,industry:s||void 0});console.log("Response from generatePreliminaryAnalysis:",O),O.success&&O.preliminary_data?(g(O.preliminary_data),c("questionnaire")):(console.error("Error from function:",O),w(O.error||"Er ging iets mis bij de voorlopige analyse"),c("input"))}catch(K){console.error("Caught error:",K),console.error("Error response:",K.response),w(((U=(z=K.response)==null?void 0:z.data)==null?void 0:U.error)||((H=(Y=K.response)==null?void 0:Y.data)==null?void 0:H.details)||K.message||"Kon de voorlopige analyse niet uitvoeren. Probeer het opnieuw."),c("input")}finally{f(!1)}},R=async()=>{var q,z,U;if(!k.email||!k.name){w("Vul je naam en email in om het rapport te ontvangen"),window.scrollTo({top:0,behavior:"smooth"});return}if(!S.pain_points){w("Het veld 'Grootste pijnpunten of uitdagingen' is verplicht"),window.scrollTo({top:0,behavior:"smooth"});return}if(!S.strategic_development_need){w("Het veld 'Strategische ontwikkeling met AI' is verplicht"),window.scrollTo({top:0,behavior:"smooth"});return}if(!S.employee_training_level){w("Het veld 'AI training medewerkers' is verplicht"),window.scrollTo({top:0,behavior:"smooth"});return}if(!S.assumptions_correct&&!S.actual_activities){w("Geef aan wat jullie bedrijf doet als onze aanname niet klopt"),window.scrollTo({top:0,behavior:"smooth"});return}if(!S.competitor_advantages){w("Het veld 'Wat doet de concurrentie beter' is verplicht"),window.scrollTo({top:0,behavior:"smooth"});return}f(!0),w(null);try{const H=`https://${e.replace(/^(https?:\/\/)?(www\.)?/,"").replace(/\/$/,"")}`,K=await ue.functions.invoke("createImpactScanRequest",{website_url:H,company_name:r,industry:s||void 0,user_email:k.email,user_name:k.name});K.data&&K.data.success?(c("submitted"),window.scrollTo({top:0,behavior:"smooth"})):(w(((q=K.data)==null?void 0:q.error)||"Er ging iets mis bij het aanmaken van de aanvraag"),window.scrollTo({top:0,behavior:"smooth"}))}catch(Y){console.error("Error submitting request:",Y),w(((U=(z=Y.response)==null?void 0:z.data)==null?void 0:U.error)||Y.message||"Kon de aanvraag niet indienen. Probeer het opnieuw.")}finally{f(!1)}};if(h)return t.jsx("div",{className:"pt-20 min-h-screen bg-gradient-to-b from-blue-50 to-white",children:t.jsx("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 py-32 text-center",children:t.jsxs(Z.div,{initial:{opacity:0,scale:.9},animate:{opacity:1,scale:1},children:[t.jsx("div",{className:"w-20 h-20 bg-blue-100 rounded-full flex items-center justify-center mx-auto mb-6",children:t.jsxs("svg",{className:"animate-spin w-10 h-10 text-blue-600",viewBox:"0 0 24 24",children:[t.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4",fill:"none"}),t.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4z"})]})}),t.jsx("h1",{className:"text-3xl font-bold text-gray-900 mb-4",children:"Rapport aan het laden..."})]})})});if(o==="analyzing")return t.jsx("div",{className:"pt-20 min-h-screen bg-gradient-to-b from-blue-50 to-white",children:t.jsx("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 py-32 text-center",children:t.jsxs(Z.div,{initial:{opacity:0,scale:.9},animate:{opacity:1,scale:1},children:[t.jsx("div",{className:"w-20 h-20 bg-blue-100 rounded-full flex items-center justify-center mx-auto mb-6",children:t.jsxs("svg",{className:"animate-spin w-10 h-10 text-blue-600",viewBox:"0 0 24 24",children:[t.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4",fill:"none"}),t.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4z"})]})}),t.jsx("h1",{className:"text-3xl font-bold text-gray-900 mb-4",children:"Je website aan het analyseren..."}),t.jsx("p",{className:"text-xl text-gray-600",children:"Even geduld, we halen informatie op over je bedrijf"})]})})});if(o==="submitted")return t.jsx("div",{className:"pt-20 min-h-screen bg-gradient-to-b from-green-50 to-white",children:t.jsx("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 py-32 text-center",children:t.jsxs(Z.div,{initial:{opacity:0,scale:.9},animate:{opacity:1,scale:1},children:[t.jsx("div",{className:"w-20 h-20 bg-green-100 rounded-full flex items-center justify-center mx-auto mb-6",children:t.jsx(vt,{className:"w-10 h-10 text-green-600"})}),t.jsx("h1",{className:"text-3xl font-bold text-gray-900 mb-4",children:"Aanvraag ontvangen!"}),t.jsxs("p",{className:"text-xl text-gray-600 mb-8",children:["Je ontvangt het AI Impact Rapport binnen enkele minuten per email op ",t.jsx("strong",{children:k.email})]}),t.jsxs("div",{className:"bg-white rounded-2xl p-6 max-w-md mx-auto border border-gray-100 mb-8",children:[t.jsx("p",{className:"text-sm text-gray-600 mb-4",children:"Het rapport wordt momenteel gegenereerd. Dit kan enkele minuten duren omdat we:"}),t.jsxs("ul",{className:"text-left space-y-2 text-sm text-gray-700",children:[t.jsxs("li",{className:"flex items-start gap-2",children:[t.jsx(vt,{className:"w-4 h-4 text-green-500 mt-0.5 flex-shrink-0"}),t.jsx("span",{children:"Je website grondig analyseren"})]}),t.jsxs("li",{className:"flex items-start gap-2",children:[t.jsx(vt,{className:"w-4 h-4 text-green-500 mt-0.5 flex-shrink-0"}),t.jsx("span",{children:"AI-kansen identificeren"})]}),t.jsxs("li",{className:"flex items-start gap-2",children:[t.jsx(vt,{className:"w-4 h-4 text-green-500 mt-0.5 flex-shrink-0"}),t.jsx("span",{children:"Gepersonaliseerde aanbevelingen maken"})]})]})]}),t.jsx(se,{onClick:()=>window.location.href=oe("Home"),className:"bg-gray-900 text-white hover:bg-gray-800",children:"Terug naar home"})]})})});if(N)return t.jsx("div",{className:"pt-20 min-h-screen bg-gradient-to-b from-red-50 to-white",children:t.jsx("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 py-32 text-center",children:t.jsxs(Z.div,{initial:{opacity:0,scale:.9},animate:{opacity:1,scale:1},children:[t.jsx("div",{className:"w-20 h-20 bg-red-100 rounded-full flex items-center justify-center mx-auto mb-6",children:t.jsx(Ms,{className:"w-10 h-10 text-red-600"})}),t.jsx("h1",{className:"text-3xl font-bold text-gray-900 mb-4",children:"Er ging iets mis"}),t.jsx("p",{className:"text-xl text-gray-600 mb-8",children:N}),t.jsx(se,{onClick:()=>{w(null),n(""),window.location.href=oe("AIImpactRapport")},className:"bg-gray-900 text-white hover:bg-gray-800",children:"Probeer opnieuw"})]})})});if(o==="questionnaire"&&p)return t.jsx("div",{className:"pt-20 min-h-screen bg-gradient-to-b from-gray-50 to-white",children:t.jsx("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 py-12",children:t.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"mb-12",children:[t.jsxs("div",{className:"text-center mb-8",children:[t.jsxs("div",{className:"inline-flex items-center gap-2 px-4 py-2 bg-blue-100 rounded-full text-blue-700 text-sm font-medium mb-6",children:[t.jsx(Tt,{className:"w-4 h-4"}),"Stap 2 van 2"]}),t.jsx("h1",{className:"text-4xl font-bold text-gray-900 mb-4",children:"Klopt onze aanname?"}),t.jsx("p",{className:"text-xl text-gray-600",children:"We hebben een eerste analyse gedaan. Help ons deze te verbeteren met enkele vragen."})]}),t.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.1},className:"bg-white rounded-2xl p-8 mb-8 border-2 border-blue-100",children:[t.jsx("h2",{className:"text-2xl font-bold text-gray-900 mb-6",children:"Onze voorlopige bevindingen"}),t.jsxs("div",{className:"space-y-6",children:[t.jsxs("div",{children:[t.jsx("p",{className:"text-sm text-gray-500 mb-2",children:"Bedrijf"}),t.jsx("p",{className:"text-lg font-semibold text-gray-900",children:p.company_name})]}),t.jsxs("div",{children:[t.jsx("p",{className:"text-sm text-gray-500 mb-2",children:"Wat jullie doen"}),t.jsx("p",{className:"text-gray-700",children:p.activities})]}),t.jsxs("div",{children:[t.jsx("p",{className:"text-sm text-gray-500 mb-2",children:"Mogelijke uitdagingen die we zien"}),t.jsx("ul",{className:"list-disc list-inside space-y-2 text-gray-700",children:(D=p.potential_challenges)==null?void 0:D.map((q,z)=>t.jsx("li",{children:q},z))})]})]})]}),t.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.2},className:"bg-white rounded-2xl p-8 border border-gray-100",children:[t.jsx("h2",{className:"text-2xl font-bold text-gray-900 mb-6",children:"Help ons je beter te begrijpen"}),t.jsxs("div",{className:"space-y-6",children:[t.jsxs("div",{children:[t.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-3",children:"Klopt onze aanname over wat jullie bedrijf doet?"}),t.jsxs("div",{className:"flex gap-4",children:[t.jsx("button",{type:"button",onClick:()=>E({...S,assumptions_correct:!0}),className:`flex-1 px-4 py-3 rounded-lg border-2 transition-all ${S.assumptions_correct?"border-green-500 bg-green-50 text-green-900":"border-gray-200 hover:border-gray-300"}`,children:"✓ Ja, klopt"}),t.jsx("button",{type:"button",onClick:()=>E({...S,assumptions_correct:!1}),className:`flex-1 px-4 py-3 rounded-lg border-2 transition-all ${S.assumptions_correct?"border-gray-200 hover:border-gray-300":"border-orange-500 bg-orange-50 text-orange-900"}`,children:"✗ Niet helemaal"})]})]}),!S.assumptions_correct&&t.jsxs(Z.div,{initial:{opacity:0,height:0},animate:{opacity:1,height:"auto"},children:[t.jsxs("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:["Wat doet jullie bedrijf eigenlijk? ",t.jsx("span",{className:"text-red-600 font-bold text-lg",children:"*"})]}),t.jsx("p",{className:"text-xs text-gray-500 mb-2",children:"(Verplicht veld)"}),t.jsx("textarea",{value:S.actual_activities,onChange:q=>E({...S,actual_activities:q.target.value}),className:`w-full px-4 py-3 border ${!S.assumptions_correct&&!S.actual_activities?"border-red-300 bg-red-50":"border-gray-300"} rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500`,rows:"3",placeholder:"Beschrijf kort jullie kernactiviteiten...",required:!0})]}),t.jsxs("div",{children:[t.jsxs("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:["Wat zijn jullie grootste pijnpunten of uitdagingen? ",t.jsx("span",{className:"text-red-600 font-bold text-lg",children:"*"})]}),t.jsx("p",{className:"text-xs text-gray-500 mb-2",children:"(Verplicht veld)"}),t.jsx("textarea",{value:S.pain_points,onChange:q=>E({...S,pain_points:q.target.value}),className:`w-full px-4 py-3 border ${S.pain_points?"border-gray-300":"border-red-300 bg-red-50"} rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500`,rows:"4",placeholder:"Bijvoorbeeld: Te veel handmatig werk, klantenservice kost veel tijd, fouten in orderverwerking...",required:!0})]}),t.jsxs("div",{children:[t.jsxs("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:["Wat doet de concurrentie beter dan jullie? ",t.jsx("span",{className:"text-red-600 font-bold text-lg",children:"*"})]}),t.jsx("p",{className:"text-xs text-gray-500 mb-2",children:"(Verplicht veld)"}),t.jsx("textarea",{value:S.competitor_advantages,onChange:q=>E({...S,competitor_advantages:q.target.value}),className:`w-full px-4 py-3 border ${S.competitor_advantages?"border-gray-300":"border-red-300 bg-red-50"} rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500`,rows:"3",placeholder:"Bijvoorbeeld: Snellere levering, betere klantenservice, lagere prijzen...",required:!0})]}),t.jsxs("div",{children:[t.jsxs("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:["Hebben jullie behoefte aan strategische ontwikkeling met AI? ",t.jsx("span",{className:"text-red-600 font-bold text-lg",children:"*"})]}),t.jsx("p",{className:"text-xs text-gray-500 mb-2",children:"(Verplicht veld)"}),t.jsxs("select",{value:S.strategic_development_need,onChange:q=>E({...S,strategic_development_need:q.target.value}),className:`w-full px-4 py-3 border ${S.strategic_development_need?"border-gray-300":"border-red-300 bg-red-50"} rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500`,required:!0,children:[t.jsx("option",{value:"",children:"Selecteer..."}),t.jsx("option",{value:"urgent",children:"Ja, dringend - we lopen achter"}),t.jsx("option",{value:"exploring",children:"Ja, we zijn aan het verkennen"}),t.jsx("option",{value:"some",children:"Een beetje - we weten niet goed waar te beginnen"}),t.jsx("option",{value:"no",children:"Nee, nog niet - we willen eerst meer weten"})]})]}),t.jsxs("div",{children:[t.jsxs("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:["Hoe goed zijn jullie medewerkers opgeleid over AI kansen en bedreigingen? ",t.jsx("span",{className:"text-red-600 font-bold text-lg",children:"*"})]}),t.jsx("p",{className:"text-xs text-gray-500 mb-2",children:"(Verplicht veld)"}),t.jsxs("select",{value:S.employee_training_level,onChange:q=>E({...S,employee_training_level:q.target.value}),className:`w-full px-4 py-3 border ${S.employee_training_level?"border-gray-300":"border-red-300 bg-red-50"} rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500`,required:!0,children:[t.jsx("option",{value:"",children:"Selecteer..."}),t.jsx("option",{value:"expert",children:"Goed - we hebben al AI training gehad"}),t.jsx("option",{value:"basic",children:"Basis - iedereen weet wat AI is"}),t.jsx("option",{value:"limited",children:"Beperkt - alleen management weet iets van AI"}),t.jsx("option",{value:"none",children:"Nauwelijks - we weten weinig over AI"})]})]}),t.jsxs("div",{className:"border-t border-gray-200 pt-6",children:[t.jsx("h3",{className:"text-lg font-bold text-gray-900 mb-4",children:"Ontvang je rapport"}),t.jsxs("div",{className:"grid sm:grid-cols-2 gap-4 mb-6",children:[t.jsxs("div",{children:[t.jsxs("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:["Naam ",t.jsx("span",{className:"text-red-600 font-bold text-lg",children:"*"})]}),t.jsx("p",{className:"text-xs text-gray-500 mb-2",children:"(Verplicht veld)"}),t.jsx(me,{type:"text",placeholder:"Je naam",value:k.name,onChange:q=>A({...k,name:q.target.value}),className:k.name?"":"border-red-300 bg-red-50",required:!0})]}),t.jsxs("div",{children:[t.jsxs("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:["Email ",t.jsx("span",{className:"text-red-600 font-bold text-lg",children:"*"})]}),t.jsx("p",{className:"text-xs text-gray-500 mb-2",children:"(Verplicht veld)"}),t.jsx(me,{type:"email",placeholder:"je@email.nl",value:k.email,onChange:q=>A({...k,email:q.target.value}),className:k.email?"":"border-red-300 bg-red-50",required:!0})]})]})]}),t.jsxs("div",{className:"flex gap-4 pt-4",children:[t.jsx(se,{type:"button",variant:"outline",onClick:()=>c("input"),className:"flex-1",children:"Vorige"}),t.jsx(se,{type:"button",onClick:R,disabled:d||!k.name||!k.email||!S.pain_points||!S.competitor_advantages||!S.strategic_development_need||!S.employee_training_level||!S.assumptions_correct&&!S.actual_activities,className:"flex-1 bg-[#FAB868] hover:bg-[#E5A04D] text-[#0D0D0F] font-bold disabled:opacity-50 disabled:cursor-not-allowed",children:t.jsxs("span",{className:"flex items-center gap-2 justify-center",children:[t.jsx(Tt,{className:"w-5 h-5"}),d?"Indienen...":"Genereer mijn rapport",t.jsx(He,{className:"w-5 h-5"})]})})]})]})]})]})})});if(o==="results"&&b){const{report:q,metadata:z}=b,U=q.company_profile||{},Y=q.quick_scan||{},H=q.opportunities||[],K=q.productivity_forecast||{},Q=q.action_plan||{};return t.jsx("div",{className:"pt-20 min-h-screen bg-gradient-to-b from-gray-50 to-white",children:t.jsxs("div",{className:"max-w-5xl mx-auto px-4 sm:px-6 lg:px-8 py-12",children:[t.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"text-center mb-12",children:[t.jsxs("div",{className:"inline-flex items-center gap-2 px-4 py-2 bg-blue-100 rounded-full text-blue-700 text-sm font-medium mb-6",children:[t.jsx(Tt,{className:"w-4 h-4"}),"48-7 Impact Rapport"]}),t.jsxs("h1",{className:"text-4xl font-bold text-gray-900 mb-4",children:["Hoe ",U.name||"uw bedrijf"," van 24-7 naar 48-7 gaat"]}),t.jsxs("p",{className:"text-xl text-gray-600",children:["Gegenereerd op ",new Date(z.generated_at).toLocaleDateString("nl-NL",{day:"numeric",month:"long",year:"numeric"})]})]}),U&&t.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.1},className:"bg-white rounded-2xl p-8 mb-8 border border-gray-100",children:[t.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[t.jsx(Ga,{className:"w-6 h-6 text-blue-600"}),t.jsx("h2",{className:"text-2xl font-bold text-gray-900",children:"Bedrijfsprofiel"})]}),t.jsxs("div",{className:"grid md:grid-cols-1 gap-6",children:[t.jsxs("div",{children:[t.jsx("p",{className:"text-sm text-gray-500 mb-1",children:"Sector"}),t.jsx("p",{className:"font-semibold text-gray-900",children:U.sector})]}),t.jsxs("div",{children:[t.jsx("p",{className:"text-sm text-gray-500 mb-1",children:"Kernactiviteiten"}),t.jsx("p",{className:"text-gray-700",children:U.core_activities})]})]})]}),Y&&t.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.2},className:"bg-gradient-to-br from-blue-50 to-indigo-50 rounded-2xl p-8 mb-8",children:[t.jsx("h2",{className:"text-2xl font-bold text-gray-900 mb-4",children:"De Quick Scan"}),t.jsxs("p",{className:"text-lg text-gray-700 mb-6 leading-relaxed",children:["Wij hebben de processen van ",t.jsx("strong",{children:U.name})," geanalyseerd.",Y.focus&&` ${Y.focus}`]}),Y.usp&&t.jsxs("div",{className:"bg-white/50 rounded-xl p-4 mb-4",children:[t.jsx("p",{className:"text-sm text-gray-600 mb-1",children:"Unique Selling Points"}),t.jsx("p",{className:"text-gray-800",children:Y.usp})]}),Y.time_intensive_processes&&t.jsxs("div",{className:"bg-white/50 rounded-xl p-4",children:[t.jsx("p",{className:"text-sm text-gray-600 mb-1",children:"Tijd-intensieve processen"}),t.jsx("p",{className:"text-gray-800",children:Y.time_intensive_processes})]})]}),H&&H.length>0&&t.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.3},className:"mb-8",children:[t.jsxs("div",{className:"text-center mb-8",children:[t.jsx("h2",{className:"text-3xl font-bold text-gray-900 mb-2",children:"AI Kansen"}),t.jsxs("p",{className:"text-gray-600",children:["Specifiek voor ",U.name]})]}),t.jsx("div",{className:"space-y-6",children:H.map((O,T)=>t.jsx(Z.div,{initial:{opacity:0,x:-20},animate:{opacity:1,x:0},transition:{delay:.4+T*.1},className:"bg-white rounded-2xl p-8 border-2 border-gray-100 hover:border-blue-200 transition-all",children:t.jsxs("div",{className:"flex items-start gap-4",children:[t.jsx("div",{className:"w-12 h-12 bg-gradient-to-br from-blue-500 to-indigo-600 rounded-xl flex items-center justify-center text-white font-bold text-xl flex-shrink-0",children:T+1}),t.jsxs("div",{className:"flex-1",children:[t.jsx("h3",{className:"text-2xl font-bold text-gray-900 mb-3",children:O.title}),t.jsxs("div",{className:"space-y-4",children:[t.jsxs("div",{children:[t.jsx("p",{className:"text-sm font-semibold text-red-600 mb-1",children:"❌ Probleem"}),t.jsx("p",{className:"text-gray-700",children:O.problem})]}),t.jsxs("div",{children:[t.jsx("p",{className:"text-sm font-semibold text-blue-600 mb-1",children:"✅ Oplossing"}),t.jsx("p",{className:"text-gray-700",children:O.solution})]}),O.relevance&&t.jsxs("div",{className:"bg-blue-50 p-3 rounded-lg",children:[t.jsx("p",{className:"text-sm font-semibold text-blue-900 mb-1",children:"💡 Waarom relevant"}),t.jsx("p",{className:"text-sm text-blue-800",children:O.relevance})]}),O.implementation_steps&&O.implementation_steps.length>0&&t.jsxs("div",{className:"bg-purple-50 p-3 rounded-lg",children:[t.jsx("p",{className:"text-sm font-semibold text-purple-900 mb-2",children:"🔧 Implementatiestappen"}),t.jsx("ol",{className:"text-sm text-purple-800 space-y-1 list-decimal list-inside",children:O.implementation_steps.map((V,L)=>t.jsx("li",{children:V},L))})]}),O.data_privacy&&t.jsxs("div",{className:"bg-amber-50 p-3 rounded-lg",children:[t.jsx("p",{className:"text-sm font-semibold text-amber-900 mb-1",children:"🔒 Data & Privacy"}),t.jsx("p",{className:"text-sm text-amber-800",children:O.data_privacy})]}),t.jsx("div",{className:"grid sm:grid-cols-2 gap-4 pt-4 border-t border-gray-100",children:t.jsxs("div",{className:"flex items-center gap-2",children:[t.jsx(Hi,{className:"w-5 h-5 text-green-600"}),t.jsxs("div",{children:[t.jsx("p",{className:"text-sm text-gray-600",children:"Winst"}),t.jsx("p",{className:"font-semibold text-gray-900",children:O.benefit})]})]})})]})]})]})},T))})]}),K&&t.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.7},className:"bg-gradient-to-r from-green-500 to-emerald-600 rounded-2xl p-8 text-white mb-8",children:[t.jsx("h2",{className:"text-2xl font-bold mb-6",children:"De 48-7 Productiviteitsprognose"}),t.jsxs("div",{className:"grid md:grid-cols-2 gap-8 mb-6",children:[t.jsxs("div",{className:"bg-white/10 backdrop-blur-sm rounded-xl p-6",children:[t.jsx("p",{className:"text-green-100 mb-2",children:"Huidige output"}),t.jsxs("p",{className:"text-5xl font-bold",children:[K.current||100,"%"]})]}),t.jsxs("div",{className:"bg-white/20 backdrop-blur-sm rounded-xl p-6 border-2 border-white/30",children:[t.jsx("p",{className:"text-green-100 mb-2",children:"Output met 48-7 AI-integratie"}),t.jsxs("p",{className:"text-5xl font-bold",children:[K.with_ai||185,"%"]})]})]}),K.drivers&&K.drivers.length>0&&t.jsxs("div",{children:[t.jsx("p",{className:"font-semibold mb-3",children:"Belangrijkste drivers:"}),t.jsx("ul",{className:"space-y-2",children:K.drivers.map((O,T)=>t.jsxs("li",{className:"flex items-start gap-2",children:[t.jsx(vt,{className:"w-5 h-5 mt-0.5 flex-shrink-0"}),t.jsx("span",{children:O})]},T))})]})]}),q.innovative_idea&&t.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.82},className:"bg-gradient-to-br from-purple-600 via-pink-600 to-orange-500 rounded-2xl p-8 mb-8 text-white relative overflow-hidden",children:[t.jsxs("div",{className:"absolute inset-0 opacity-10",children:[t.jsx("div",{className:"absolute top-0 right-0 w-64 h-64 bg-white rounded-full blur-3xl"}),t.jsx("div",{className:"absolute bottom-0 left-0 w-64 h-64 bg-white rounded-full blur-3xl"})]}),t.jsxs("div",{className:"relative z-10",children:[t.jsxs("div",{className:"flex items-start gap-4 mb-6",children:[t.jsx("div",{className:"w-14 h-14 bg-white/20 backdrop-blur-sm rounded-2xl flex items-center justify-center flex-shrink-0",children:t.jsx($s,{className:"w-7 h-7 text-white"})}),t.jsxs("div",{children:[t.jsxs("div",{className:"inline-flex items-center gap-2 px-3 py-1 bg-white/20 backdrop-blur-sm rounded-full text-sm font-semibold mb-2",children:[t.jsx(Tt,{className:"w-4 h-4"}),"Innovatief AI-Idee"]}),t.jsx("h2",{className:"text-3xl font-bold",children:q.innovative_idea.title})]})]}),t.jsxs("div",{className:"space-y-6",children:[t.jsxs("div",{className:"bg-white/10 backdrop-blur-sm rounded-xl p-6",children:[t.jsx("h3",{className:"font-bold text-lg mb-2",children:"💡 Hoe het werkt"}),t.jsx("p",{className:"text-white/90 leading-relaxed",children:q.innovative_idea.description})]}),t.jsxs("div",{className:"grid md:grid-cols-2 gap-4",children:[t.jsxs("div",{className:"bg-white/10 backdrop-blur-sm rounded-xl p-5",children:[t.jsx("h3",{className:"font-bold mb-2",children:"🎯 Onderscheidend vermogen"}),t.jsx("p",{className:"text-white/90 text-sm",children:q.innovative_idea.unique_value})]}),t.jsxs("div",{className:"bg-white/10 backdrop-blur-sm rounded-xl p-5",children:[t.jsx("h3",{className:"font-bold mb-2",children:"📈 Impact"}),t.jsx("p",{className:"text-white/90 text-sm",children:q.innovative_idea.impact})]})]}),t.jsxs("div",{className:"bg-white/10 backdrop-blur-sm rounded-xl p-5",children:[t.jsx("h3",{className:"font-bold mb-2",children:"🔧 Implementatie"}),t.jsx("p",{className:"text-white/90 text-sm",children:q.innovative_idea.implementation})]}),t.jsxs("div",{className:"bg-gradient-to-r from-green-500/20 to-emerald-500/20 backdrop-blur-sm rounded-xl p-5 border-2 border-green-400/30",children:[t.jsxs("h3",{className:"font-bold mb-2 flex items-center gap-2",children:[t.jsx(di,{className:"w-5 h-5"}),"Quick Win (2-4 weken)"]}),t.jsx("p",{className:"text-white/90",children:q.innovative_idea.quick_win})]})]})]})]}),q.training_recommendations&&q.training_recommendations.length>0&&t.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.85},className:"bg-white rounded-2xl p-8 mb-8 border border-gray-100",children:[t.jsxs("div",{className:"flex items-center gap-3 mb-6",children:[t.jsx("div",{className:"w-12 h-12 bg-purple-100 rounded-xl flex items-center justify-center",children:t.jsx(pr,{className:"w-6 h-6 text-purple-600"})}),t.jsx("h2",{className:"text-2xl font-bold text-gray-900",children:"Aanbevolen Trainingen"})]}),t.jsx("div",{className:"space-y-4",children:q.training_recommendations.map((O,T)=>t.jsxs("div",{className:"p-6 bg-purple-50 rounded-xl border-2 border-purple-100",children:[t.jsxs("div",{className:"flex items-start justify-between mb-3",children:[t.jsxs("div",{className:"flex items-start gap-3",children:[t.jsx("div",{className:"w-8 h-8 bg-purple-600 rounded-lg flex items-center justify-center flex-shrink-0 mt-0.5",children:t.jsx("span",{className:"text-white font-bold text-sm",children:T+1})}),t.jsxs("div",{children:[t.jsx("h3",{className:"font-bold text-gray-900 text-lg mb-1",children:O.training_name}),O.target_audience&&t.jsxs("p",{className:"text-sm text-purple-700 font-medium",children:["Doelgroep: ",O.target_audience]})]})]}),t.jsx(fe,{to:oe("Contact")+`?training=${encodeURIComponent(O.training_name)}`,className:"flex-shrink-0 px-4 py-2 bg-purple-600 text-white text-sm font-semibold rounded-lg hover:bg-purple-700 transition-colors",children:"Aanvragen"})]}),O.learning_goals&&t.jsxs("div",{className:"mb-3",children:[t.jsx("p",{className:"text-sm font-medium text-gray-700 mb-1",children:"Leerdoelen:"}),t.jsx("p",{className:"text-sm text-gray-600",children:O.learning_goals})]}),t.jsxs("div",{className:"space-y-2",children:[t.jsxs("div",{children:[t.jsx("p",{className:"text-sm font-medium text-gray-700",children:"Waarom relevant:"}),t.jsx("p",{className:"text-sm text-gray-600",children:O.reason})]}),O.relevance_to_opportunities&&t.jsxs("div",{children:[t.jsx("p",{className:"text-sm font-medium text-gray-700",children:"Link met AI-kansen:"}),t.jsx("p",{className:"text-sm text-gray-600",children:O.relevance_to_opportunities})]}),O.compliance_benefit&&t.jsxs("div",{className:"bg-blue-50 p-2 rounded",children:[t.jsx("p",{className:"text-sm font-medium text-blue-900",children:"Compliance voordeel:"}),t.jsx("p",{className:"text-sm text-blue-800",children:O.compliance_benefit})]})]})]},T))})]}),Q&&t.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.95},className:"bg-white rounded-2xl p-8 mb-8 border border-gray-100",children:[t.jsxs("div",{className:"flex items-center gap-3 mb-6",children:[t.jsx("div",{className:"w-12 h-12 bg-amber-100 rounded-xl flex items-center justify-center",children:t.jsx(qa,{className:"w-6 h-6 text-amber-600"})}),t.jsx("h2",{className:"text-2xl font-bold text-gray-900",children:"Direct Actieplan"})]}),t.jsxs("div",{className:"space-y-6",children:[t.jsxs("div",{children:[t.jsx("p",{className:"text-sm text-gray-600 mb-2",children:"Hoogste prioriteit"}),t.jsx("p",{className:"text-lg font-semibold text-gray-900",children:Q.priority_opportunity})]}),t.jsxs("div",{children:[t.jsx("p",{className:"text-sm text-gray-600 mb-2",children:"Eerste stap"}),t.jsx("p",{className:"text-gray-700",children:Q.first_step})]})]})]}),t.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:1},className:"space-y-6",children:[t.jsxs("div",{className:"bg-gradient-to-r from-blue-600 to-indigo-600 rounded-2xl p-8 text-white text-center",children:[t.jsx("h2",{className:"text-2xl font-bold mb-2",children:"Ontvang dit rapport per e-mail"}),t.jsx("p",{className:"text-blue-100 mb-6 text-lg",children:"We sturen je een link naar dit rapport direct naar je inbox"}),t.jsxs(se,{onClick:()=>setShowEmailForm(!0),className:"inline-flex items-center justify-center gap-2 px-8 py-4 bg-white text-blue-700 font-bold text-lg rounded-xl hover:bg-gray-100 transition-all shadow-lg",children:[t.jsx(Hr,{className:"w-6 h-6"}),"Mail mij dit rapport",t.jsx(He,{className:"w-6 h-6"})]})]}),t.jsxs("div",{className:"grid md:grid-cols-2 gap-6",children:[t.jsxs("div",{className:"bg-gray-900 rounded-2xl p-6 text-white",children:[t.jsx("h3",{className:"text-xl font-bold mb-2",children:"Directe Toelichting"}),t.jsx("p",{className:"text-gray-300 mb-4",children:"Bespreek binnen 15 minuten de mogelijkheden voor jouw bedrijf"}),t.jsxs(fe,{to:oe("Contact"),className:"inline-flex items-center justify-center gap-2 w-full px-6 py-3 bg-white text-gray-900 font-semibold rounded-xl hover:bg-gray-100 transition-all",children:[t.jsx($r,{className:"w-5 h-5"}),"Plan een gesprek"]})]}),t.jsxs("div",{className:"bg-purple-600 rounded-2xl p-6 text-white",children:[t.jsx("h3",{className:"text-xl font-bold mb-2",children:"EU AI Act Check"}),t.jsx("p",{className:"text-purple-100 mb-4",children:"Ontdek welke compliance-eisen gelden voor jouw bedrijf"}),t.jsxs(fe,{to:oe("EuAiActChecker"),className:"inline-flex items-center justify-center gap-2 w-full px-6 py-3 bg-white text-purple-700 font-semibold rounded-xl hover:bg-gray-100 transition-all",children:[t.jsx(Zn,{className:"w-5 h-5"}),"Start AI Act Check"]})]})]})]}),!1]})})}return t.jsx("div",{className:"pt-20 min-h-screen bg-gradient-to-b from-blue-50 to-white",children:t.jsxs("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 py-20",children:[t.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"text-center mb-12",children:[t.jsxs("h1",{className:"text-5xl sm:text-6xl lg:text-7xl font-bold text-[#0D0D0F] mb-8",children:["Ontvang gratis 48-7 ",t.jsx("br",{}),"AI Impact Rapport"]}),t.jsx("p",{className:"text-2xl text-[#292828] max-w-2xl mx-auto",children:"Ontdek in 60 seconden hoe AI jouw bedrijf van 24-7 naar 48-7 brengt"})]}),t.jsx(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.2},className:"bg-white rounded-2xl p-8 shadow-sm border border-gray-100",children:t.jsxs("form",{onSubmit:I,className:"space-y-6",children:[t.jsxs("div",{children:[t.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Website URL *"}),t.jsx(me,{type:"text",placeholder:"jouwbedrijf.nl",value:e,onChange:q=>n(q.target.value),required:!0,className:"text-lg py-6"}),t.jsx("p",{className:"text-sm text-gray-500 mt-1",children:"Vul alleen het domein in, bijv. bedrijf.nl (https:// wordt automatisch toegevoegd)"})]}),t.jsxs("div",{className:"grid sm:grid-cols-2 gap-6",children:[t.jsxs("div",{children:[t.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Bedrijfsnaam (optioneel)"}),t.jsx(me,{type:"text",placeholder:"Je Bedrijf BV",value:r,onChange:q=>i(q.target.value)})]}),t.jsxs("div",{children:[t.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Industrie (optioneel)"}),t.jsx("select",{value:s,onChange:q=>a(q.target.value),className:"w-full px-4 py-3 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500",children:C.map(q=>t.jsx("option",{value:q.value,children:q.label},q.value))})]})]}),t.jsx(se,{type:"submit",disabled:d,className:"w-full py-6 bg-[#FAB868] hover:bg-[#E5A04D] text-[#0D0D0F] font-bold text-lg",children:t.jsxs("span",{className:"flex items-center gap-2 justify-center",children:[t.jsx(Tt,{className:"w-5 h-5"}),d?"Analyseren...":"Start Analyse",t.jsx(He,{className:"w-5 h-5"})]})}),t.jsx("p",{className:"text-xs text-gray-500 text-center",children:"✓ 100% gratis • ✓ Geen verplichtingen • ✓ Email pas in volgende stap"})]})})]})})}const jc=[{id:1,question:"Wat is de grootste bron van chaos op een doorsnee werkdag?",options:[{label:"Iemand mist info en appt drie collega's",themes:["informatie","proces"],signals:["context_switching","informele_afstemming"],severity:2},{label:"Een Excel klopt niet meer",themes:["data"],signals:["single_source_of_truth_missing"],severity:3},{label:"Een systeem doet het niet zoals verwacht",themes:["tooling"],signals:["systeem_onbetrouwbaar"],severity:2},{label:"Ik weet het niet, maar het kost tijd",themes:["ownership"],signals:["onduidelijke_verantwoordelijkheid"],severity:3}]},{id:2,question:"Waar gaat de meeste tijd in zitten aan herhaalwerk?",options:[{label:"Gegevens overtypen tussen systemen",themes:["integratie"],signals:["handmatige_overdracht"],severity:3},{label:"Rapportages maken",themes:["data"],signals:["rapportage_handwerk"],severity:2},{label:"Statusupdates sturen",themes:["communicatie"],signals:["status_fragmenteel"],severity:2},{label:"Fouten herstellen",themes:["kwaliteit"],signals:["foutcorrectie_cyclus"],severity:3}]},{id:3,question:"Hoe neem je belangrijke beslissingen?",options:[{label:"Vertrouw ik op gevoel",themes:["besluitvorming"],signals:["besluit_op_intuitie"],severity:3},{label:"Data uit meerdere tools trekken",themes:["data"],signals:["data_versnippering"],severity:2},{label:"Eén dashboard",themes:["data"],signals:["gecentraliseerd_inzicht"],severity:1},{label:"Besluit uitstellen",themes:["besluitvorming"],signals:["decision_latency"],severity:3}]},{id:4,question:"Wat gebeurt er als jullie plotseling 30% meer orders krijgen?",options:[{label:"Paniek",themes:["schaalbaarheid"],signals:["groei_instabiliteit"],severity:3},{label:"Meer mensen aannemen",themes:["organisatie"],signals:["groei_door_headcount"],severity:2},{label:"Het loopt wel maar trager",themes:["proces"],signals:["schaalbare_knelpunten"],severity:2},{label:"Nauwelijks verschil",themes:["schaalbaarheid"],signals:["schaalbaar_proces"],severity:1}]},{id:5,question:"Hoe zou je je systemenlandschap omschrijven?",options:[{label:"Los zand",themes:["integratie"],signals:["tool_fragmentatie"],severity:3},{label:"Aan elkaar geknoopt",themes:["integratie"],signals:["fragiele_koppelingen"],severity:2},{label:"Redelijk geïntegreerd",themes:["integratie"],signals:["gedeeltelijke_integratie"],severity:1},{label:"Eén logisch geheel",themes:["integratie"],signals:["stabiele_architectuur"],severity:0}]},{id:6,question:"Waar ontstaan de meeste fouten?",options:[{label:"Menselijke invoer",themes:["kwaliteit"],signals:["human_error"],severity:3},{label:"Overdrachten tussen teams",themes:["proces"],signals:["handoff_failure"],severity:2},{label:"Tussen systemen",themes:["integratie"],signals:["sync_fouten"],severity:3},{label:"Nauwelijks fouten",themes:["kwaliteit"],signals:["stabiel_proces"],severity:0}]},{id:7,question:"Waar lekt de meeste tijd weg?",options:[{label:"Zoeken naar info",themes:["informatie"],signals:["informatie_zoekverlies"],severity:3},{label:"Handmatige controles",themes:["kwaliteit"],signals:["controle_handwerk"],severity:2},{label:"Afstemming en overleg",themes:["communicatie"],signals:["overleg_overhead"],severity:2},{label:"Brandjes blussen",themes:["stabiliteit"],signals:["reactief_werken"],severity:3}]},{id:8,question:"Wat is AI voor jullie?",options:[{label:"Iets vaags",themes:["adoptie"],signals:["ai_onbekendheid"],severity:3},{label:"Interessant maar spannend",themes:["adoptie"],signals:["ai_terughoudend"],severity:2},{label:"We experimenteren",themes:["adoptie"],signals:["ai_experiment"],severity:1},{label:"Onderdeel van werk",themes:["adoptie"],signals:["ai_operationeel"],severity:0}]},{id:9,question:"Wat frustreert je het meest?",options:[{label:"Al oplosbare dingen",themes:["ownership"],signals:["structurele_inefficiency"],severity:3},{label:"Systemen praten niet",themes:["integratie"],signals:["data_silo"],severity:3},{label:"Wachten op info",themes:["informatie"],signals:["informatie_afhankelijkheid"],severity:2},{label:"Niet kunnen automatiseren",themes:["innovatie"],signals:["automation_blokkade"],severity:3}]},{id:10,question:"Wat is je ambitie?",options:[{label:"Meer rust",themes:["stabiliteit"],signals:["behoefte_aan_overzicht"],severity:1},{label:"Slimmer werken",themes:["efficiency"],signals:["optimalisatie_drang"],severity:1},{label:"Groeien zonder mensen",themes:["schaalbaarheid"],signals:["leverage_ambitie"],severity:1},{label:"Vooroplopen",themes:["innovatie"],signals:["innovatie_ambitie"],severity:1}]}],_z=e=>e.reactief_werken>=1||e.tool_fragmentatie>=1||e.human_error>=1?"Chaos":e.handmatige_overdracht>=1||e.single_source_of_truth_missing>=1||e.rapportage_handwerk>=1?"Handmatig":e.decision_latency>=1||e.data_versnippering>=1||e.schaalbare_knelpunten>=1?"Groeiend":e.gedeeltelijke_integratie>=1||e.optimalisatie_drang>=1||e.leverage_ambitie>=1?"Automation-ready":e.ai_operationeel>=1||e.stabiele_architectuur>=1||e.schaalbaar_proces>=1?"AI-native":"Groeiend",Sz={single_source_of_truth_missing:"Centrale databron + automatische sync",decision_latency:"Realtime KPI snapshot + alerts",handmatige_overdracht:"Workflow automation via API of event-triggers",tool_fragmentatie:"Integratiehub met vaste datadefinities",data_versnippering:"Data warehouse met geautomatiseerde ETL",reactief_werken:"Proactieve monitoring + predictive alerts",human_error:"Validatie + automation van kritieke invoer",data_silo:"API-gedreven integraties tussen systemen",informatie_zoekverlies:"Centrale kennisbank met AI search",automation_blokkade:"Low-code automation platform"};function Az(){const[e,n]=F.useState(0),[r,i]=F.useState([]),[s,a]=F.useState(null),[o,c]=F.useState(!1),d=jc[e],f=(e+1)/jc.length*100,h=p=>{const g=d.options[p];i([...r,{questionId:d.id,option:g}]),e<jc.length-1?setTimeout(()=>n(e+1),200):m([...r,{questionId:d.id,option:g}])},m=async p=>{var S;c(!0);const g={},b={};let j=0;p.forEach(E=>{E.option.signals.forEach(C=>{g[C]=(g[C]||0)+1}),E.option.themes.forEach(C=>{b[C]=(b[C]||0)+E.option.severity}),j+=E.option.severity});const y=_z(g),x=Object.entries(g).map(([E,C])=>({signal:E,count:C})).sort((E,C)=>C.count-E.count).slice(0,3),N=Object.entries(b).sort((E,C)=>C[1]-E[1])[0][0],w=(S=x[0])==null?void 0:S.signal,k=Sz[w]||"Procesoptimalisatie + automation",A={level:y,top_signals:x.map(E=>E.signal),dominant_theme:N,suggested_intervention:k,peer_context:"MKB-bedrijven met vergelijkbare omvang"};try{const E=await ue.integrations.Core.InvokeLLM({prompt:`Je bent een kritische bedrijfsanalist voor MKB.
Je vermijdt open deuren en managementtaal.
Je benoemt gevolgen, vergelijkt met peers en confronteert.
Je verzint geen feiten buiten de input.
Als de analyse te braaf is, herschrijf je.

Gebruik het scan-profiel hieronder.

Regels:
- Benoem wat dit kost in tijd, focus of groeisnelheid
- Vergelijk met vergelijkbare MKB-bedrijven
- Benoem één ongemakkelijke waarheid
- Geef één concrete eerste ingreep
- Geen algemene termen zoals "te veel handmatig"

Scan-profiel:
${JSON.stringify(A,null,2)}

Geef je antwoord in dit formaat (gebruik deze exact koppen):`,response_json_schema:{type:"object",properties:{onderschatting:{type:"string",description:"Wat jullie waarschijnlijk onderschatten (2-3 zinnen)"},kosten:{type:"string",description:"Wat dit jullie nu echt kost (concreet, met cijfers waar mogelijk)"},peers:{type:"string",description:"Waarom dit bij anderen al anders is (vergelijking)"},eerste_ingreep:{type:"string",description:"Meest logische eerste ingreep (concreet)"},deelbare_uitspraak:{type:"string",description:"Eén deelbare uitspraak - max 12 woorden, schurend maar eerlijk"}}}}),C={level:y,scanProfile:A,llmOutput:E};a(C);try{await ue.functions.invoke("submitAIQuiz",C)}catch(B){console.error("Failed to save quiz submission:",B)}}catch(E){console.error("Error generating analysis:",E);const C={level:y,scanProfile:A,llmOutput:{onderschatting:`Je zit in de "${y}" fase. De grootste bottleneck zit in ${N}.`,kosten:"Dit kost je team waarschijnlijk 10-20 uur per week aan onnodige handmatigheid.",peers:"Vergelijkbare bedrijven zijn al verder met automatisering en data-centralisatie.",eerste_ingreep:k,deelbare_uitspraak:`${y}: Te veel tijd in ${N}`}};a(C);try{await ue.functions.invoke("submitAIQuiz",C)}catch(B){console.error("Failed to save quiz submission:",B)}}c(!1)};if(o)return t.jsx("div",{className:"pt-20 min-h-screen bg-gradient-to-b from-blue-50 to-white",children:t.jsx("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 py-32 text-center",children:t.jsxs(Z.div,{initial:{opacity:0,scale:.9},animate:{opacity:1,scale:1},children:[t.jsx("div",{className:"w-20 h-20 bg-blue-100 rounded-full flex items-center justify-center mx-auto mb-6",children:t.jsxs("svg",{className:"animate-spin w-10 h-10 text-blue-600",viewBox:"0 0 24 24",children:[t.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4",fill:"none"}),t.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4z"})]})}),t.jsx("h1",{className:"text-3xl font-bold text-gray-900 mb-4",children:"We analyseren je antwoorden..."}),t.jsx("p",{className:"text-xl text-gray-600",children:"Dit duurt een paar seconden"})]})})});if(s){const{level:p,scanProfile:g,llmOutput:b}=s;return t.jsx("div",{className:"pt-20 min-h-screen bg-gradient-to-b from-gray-50 to-white",children:t.jsxs("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 py-12",children:[t.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"text-center mb-12",children:[t.jsxs("div",{className:"inline-flex items-center gap-2 px-6 py-3 bg-gradient-to-r from-purple-600 to-pink-600 text-white rounded-full text-lg font-bold mb-6",children:[t.jsx(Tt,{className:"w-5 h-5"}),"Je niveau: ",p]}),t.jsx("h1",{className:"text-4xl font-bold text-gray-900 mb-4",children:b.deelbare_uitspraak})]}),t.jsxs("div",{className:"space-y-6 mb-8",children:[t.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.1},className:"bg-white rounded-2xl p-8 border-2 border-red-100",children:[t.jsxs("div",{className:"flex items-start gap-3 mb-4",children:[t.jsx(Uo,{className:"w-6 h-6 text-red-600 flex-shrink-0 mt-1"}),t.jsx("h2",{className:"text-2xl font-bold text-gray-900",children:"Wat jullie waarschijnlijk onderschatten"})]}),t.jsx("p",{className:"text-lg text-gray-700 leading-relaxed",children:b.onderschatting})]}),t.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.2},className:"bg-white rounded-2xl p-8 border-2 border-orange-100",children:[t.jsxs("div",{className:"flex items-start gap-3 mb-4",children:[t.jsx(Hi,{className:"w-6 h-6 text-orange-600 flex-shrink-0 mt-1"}),t.jsx("h2",{className:"text-2xl font-bold text-gray-900",children:"Wat dit jullie nu echt kost"})]}),t.jsx("p",{className:"text-lg text-gray-700 leading-relaxed",children:b.kosten})]}),t.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.3},className:"bg-white rounded-2xl p-8 border-2 border-blue-100",children:[t.jsx("h2",{className:"text-2xl font-bold text-gray-900 mb-4",children:"Waarom dit bij anderen al anders is"}),t.jsx("p",{className:"text-lg text-gray-700 leading-relaxed",children:b.peers})]}),t.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.4},className:"bg-gradient-to-r from-green-500 to-emerald-600 rounded-2xl p-8 text-white",children:[t.jsx("h2",{className:"text-2xl font-bold mb-4",children:"Meest logische eerste ingreep"}),t.jsx("p",{className:"text-xl leading-relaxed",children:b.eerste_ingreep})]})]}),t.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.5},className:"bg-gray-100 rounded-2xl p-6 text-center mb-8",children:[t.jsxs("p",{className:"text-gray-700 mb-4 font-medium",children:['"',b.deelbare_uitspraak,'"']}),t.jsxs(se,{onClick:()=>{navigator.share&&navigator.share({title:"48-7 AI Readiness Quiz",text:b.deelbare_uitspraak,url:window.location.href})},className:"bg-blue-600 hover:bg-blue-700 text-white",children:[t.jsx(J0,{className:"w-5 h-5 mr-2"}),"Deel je resultaat"]})]}),t.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.6},className:"bg-gradient-to-r from-blue-600 to-indigo-600 rounded-2xl p-8 text-white text-center mb-6",children:[t.jsx("h3",{className:"text-2xl font-bold mb-3",children:"Krijg je volledig Impact Rapport"}),t.jsxs("p",{className:"text-blue-100 text-lg mb-6",children:['Gebaseerd op je "',p,'" niveau krijg je concrete AI-kansen, ROI berekeningen en een implementatie roadmap.']}),t.jsxs(fe,{to:oe("ImpactRapport")+`?level=${encodeURIComponent(p)}`,className:"inline-flex items-center justify-center gap-2 px-8 py-4 bg-white text-blue-700 font-bold text-lg rounded-xl hover:bg-gray-100 transition-all shadow-lg",children:[t.jsx(Tt,{className:"w-6 h-6"}),"Genereer mijn Impact Rapport",t.jsx(He,{className:"w-6 h-6"})]})]}),t.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.7},className:"grid md:grid-cols-2 gap-6",children:[t.jsxs(fe,{to:oe("Contact")+`?ref=quiz&level=${encodeURIComponent(p)}`,className:"bg-gray-900 rounded-2xl p-6 text-white hover:shadow-xl transition-all",children:[t.jsx("h3",{className:"text-xl font-bold mb-2",children:"15-minuten Consult"}),t.jsx("p",{className:"text-gray-300 mb-4",children:"Bespreek je specifieke situatie en krijg direct advies voor de eerste stappen."}),t.jsxs("div",{className:"inline-flex items-center gap-2 font-semibold",children:[t.jsx($r,{className:"w-5 h-5"}),"Plan een gesprek"]})]}),t.jsxs(fe,{to:oe("Training"),className:"bg-purple-600 rounded-2xl p-6 text-white hover:shadow-xl transition-all",children:[t.jsx("h3",{className:"text-xl font-bold mb-2",children:"Relevante Trainingen"}),t.jsxs("p",{className:"text-purple-100 mb-4",children:["Maak je team klaar voor de ",p==="AI-native"?"volgende":"AI"," transformatie."]}),t.jsxs("div",{className:"inline-flex items-center gap-2 font-semibold",children:["Bekijk trainingen ",t.jsx(He,{className:"w-5 h-5"})]})]})]})]})})}return t.jsx("div",{className:"pt-20 min-h-screen bg-gradient-to-b from-blue-50 to-white",children:t.jsxs("div",{className:"max-w-2xl mx-auto px-4 sm:px-6 lg:px-8 py-20",children:[t.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"text-center mb-12",children:[t.jsxs("div",{className:"inline-flex items-center gap-2 px-4 py-2 bg-blue-100 rounded-full text-blue-700 text-sm font-medium mb-6",children:[t.jsx(Tt,{className:"w-4 h-4"}),"AI Readiness Quiz"]}),t.jsx("h1",{className:"text-3xl font-bold text-gray-900 mb-4",children:"Ontdek je AI potentieel"}),t.jsxs("p",{className:"text-gray-600",children:[jc.length," eerlijke vragen. Geen open deuren."]})]}),t.jsxs("div",{className:"mb-8",children:[t.jsxs("div",{className:"flex justify-between text-sm text-gray-500 mb-2",children:[t.jsxs("span",{children:["Vraag ",e+1," van ",jc.length]}),t.jsxs("span",{children:[Math.round(f),"%"]})]}),t.jsx("div",{className:"h-2 bg-gray-200 rounded-full overflow-hidden",children:t.jsx(Z.div,{className:"h-full bg-gradient-to-r from-blue-600 to-blue-500 rounded-full",initial:{width:0},animate:{width:`${f}%`},transition:{duration:.3}})})]}),t.jsx(ai,{mode:"wait",children:t.jsxs(Z.div,{initial:{opacity:0,x:20},animate:{opacity:1,x:0},exit:{opacity:0,x:-20},className:"bg-white rounded-2xl p-8 shadow-sm border border-gray-100",children:[t.jsx("h2",{className:"text-2xl font-bold text-gray-900 mb-6",children:d.question}),t.jsx("div",{className:"space-y-3",children:d.options.map((p,g)=>t.jsx("button",{onClick:()=>h(g),className:"w-full p-5 rounded-xl border-2 border-gray-200 text-left transition-all hover:border-blue-300 hover:bg-blue-50 hover:shadow-md",children:t.jsx("p",{className:"font-semibold text-gray-900 text-lg",children:p.label})},g))})]},e)}),e>0&&t.jsxs("button",{onClick:()=>{n(e-1),i(r.slice(0,-1))},className:"mt-6 flex items-center gap-2 text-gray-600 hover:text-gray-900 transition-colors",children:[t.jsx(ht,{className:"w-4 h-4"}),"Vorige vraag"]})]})})}function Cz(){return t.jsx("div",{className:"pt-20 min-h-screen bg-white",children:t.jsx("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 py-12",children:t.jsxs("div",{className:"bg-[#F4F4F4] rounded-3xl p-12",children:[t.jsxs("div",{className:"flex items-center gap-3 mb-8",children:[t.jsx(Tt,{className:"w-12 h-12 text-[#FAB868]"}),t.jsx("h1",{className:"text-5xl font-bold text-[#0D0D0F]",children:"AI Quiz"})]}),t.jsxs("div",{className:"prose max-w-none prose-headings:text-[#0D0D0F]",children:[t.jsx("h2",{children:"Overzicht"}),t.jsx("p",{children:"De AI Readiness Quiz is een interactieve, 10-vraag deterministische quiz die bedrijven classificeert in AI-gereedheid levels op basis van signaal-analyse. Het genereert een scherp, confronterend resultaat met LLM-gegenereerde teksten."}),t.jsx("h2",{children:"Architectuur"}),t.jsx("h3",{children:"Frontend: pages/AIQuiz.jsx"}),t.jsxs("ul",{children:[t.jsxs("li",{children:[t.jsx("strong",{children:"Framework:"})," React met multi-step state management"]}),t.jsxs("li",{children:[t.jsx("strong",{children:"Logic:"})," Signal-based deterministic classification"]}),t.jsxs("li",{children:[t.jsx("strong",{children:"Backend:"})," Geen dedicated function - LLM direct via Core.InvokeLLM"]}),t.jsxs("li",{children:[t.jsx("strong",{children:"Flow:"}),t.jsxs("ol",{children:[t.jsx("li",{children:"10 vragen met 4 opties elk"}),t.jsx("li",{children:"Signalen en severity worden verzameld"}),t.jsx("li",{children:"Level wordt bepaald via signal counts"}),t.jsx("li",{children:"LLM genereert scherpe, eerlijke teksten"}),t.jsx("li",{children:"Results met CTAs naar Impact Report en Contact"})]})]})]}),t.jsx("h2",{children:"10 Quiz Vragen"}),t.jsxs("div",{className:"space-y-4",children:[t.jsxs("div",{className:"bg-gray-50 p-4 rounded-lg",children:[t.jsx("h4",{className:"font-bold mb-2",children:"1. Chaos"}),t.jsx("p",{className:"text-sm mb-2",children:'"Wat is de grootste bron van chaos op een doorsnee werkdag?"'}),t.jsxs("p",{className:"text-xs text-gray-600",children:[t.jsx("strong",{children:"Signalen:"})," context_switching, informele_afstemming, single_source_of_truth_missing, systeem_onbetrouwbaar, onduidelijke_verantwoordelijkheid"]}),t.jsxs("p",{className:"text-xs text-gray-600",children:[t.jsx("strong",{children:"Themes:"})," informatie, proces, data, tooling, ownership"]})]}),t.jsxs("div",{className:"bg-gray-50 p-4 rounded-lg",children:[t.jsx("h4",{className:"font-bold mb-2",children:"2. Herhaalwerk"}),t.jsx("p",{className:"text-sm mb-2",children:'"Waar gaat de meeste tijd in zitten aan herhaalwerk?"'}),t.jsxs("p",{className:"text-xs text-gray-600",children:[t.jsx("strong",{children:"Signalen:"})," handmatige_overdracht, rapportage_handwerk, status_fragmenteel, foutcorrectie_cyclus"]}),t.jsxs("p",{className:"text-xs text-gray-600",children:[t.jsx("strong",{children:"Themes:"})," integratie, data, communicatie, kwaliteit"]})]}),t.jsxs("div",{className:"bg-gray-50 p-4 rounded-lg",children:[t.jsx("h4",{className:"font-bold mb-2",children:"3. Besluitvorming"}),t.jsx("p",{className:"text-sm mb-2",children:'"Hoe neem je belangrijke beslissingen?"'}),t.jsxs("p",{className:"text-xs text-gray-600",children:[t.jsx("strong",{children:"Signalen:"})," besluit_op_intuitie, data_versnippering, gecentraliseerd_inzicht, decision_latency"]}),t.jsxs("p",{className:"text-xs text-gray-600",children:[t.jsx("strong",{children:"Themes:"})," besluitvorming, data"]})]}),t.jsxs("div",{className:"bg-gray-50 p-4 rounded-lg",children:[t.jsx("h4",{className:"font-bold mb-2",children:"4. Schaalbaarheid"}),t.jsx("p",{className:"text-sm mb-2",children:'"Wat gebeurt er als jullie plotseling 30% meer orders krijgen?"'}),t.jsxs("p",{className:"text-xs text-gray-600",children:[t.jsx("strong",{children:"Signalen:"})," groei_instabiliteit, groei_door_headcount, schaalbare_knelpunten, schaalbaar_proces"]})]}),t.jsxs("div",{className:"bg-gray-50 p-4 rounded-lg",children:[t.jsx("h4",{className:"font-bold mb-2",children:"5. Systemenlandschap"}),t.jsx("p",{className:"text-sm mb-2",children:'"Hoe zou je je systemenlandschap omschrijven?"'}),t.jsxs("p",{className:"text-xs text-gray-600",children:[t.jsx("strong",{children:"Signalen:"})," tool_fragmentatie, fragiele_koppelingen, gedeeltelijke_integratie, stabiele_architectuur"]})]}),t.jsx("p",{className:"text-sm text-gray-500 italic",children:"+ 5 meer vragen over fouten, tijdverlies, AI adoptie, frustratie en ambitie"})]}),t.jsx("h2",{children:"Signal-Based Level Determination"}),t.jsx("pre",{className:"bg-gray-100 p-4 rounded-lg overflow-x-auto",children:`determineLevel(signalCounts) {
  // Chaos
  if (reactief_werken >= 1 OR 
      tool_fragmentatie >= 1 OR 
      human_error >= 1)
    return "Chaos"
  
  // Handmatig
  if (handmatige_overdracht >= 1 OR 
      single_source_of_truth_missing >= 1 OR 
      rapportage_handwerk >= 1)
    return "Handmatig"
  
  // Groeiend
  if (decision_latency >= 1 OR 
      data_versnippering >= 1 OR 
      schaalbare_knelpunten >= 1)
    return "Groeiend"
  
  // Automation-ready
  if (gedeeltelijke_integratie >= 1 OR 
      optimalisatie_drang >= 1 OR 
      leverage_ambitie >= 1)
    return "Automation-ready"
  
  // AI-native
  if (ai_operationeel >= 1 OR 
      stabiele_architectuur >= 1 OR 
      schaalbaar_proces >= 1)
    return "AI-native"
  
  return "Groeiend" // Default
}`}),t.jsx("h2",{children:"Intervention Library"}),t.jsx("p",{children:"Concrete interventies per signaal:"}),t.jsx("pre",{className:"bg-gray-100 p-4 rounded-lg overflow-x-auto text-sm",children:`const interventions = {
  single_source_of_truth_missing: 
    "Centrale databron + automatische sync",
  decision_latency: 
    "Realtime KPI snapshot + alerts",
  handmatige_overdracht: 
    "Workflow automation via API of event-triggers",
  tool_fragmentatie: 
    "Integratiehub met vaste datadefinities",
  data_versnippering: 
    "Data warehouse met geautomatiseerde ETL",
  reactief_werken: 
    "Proactieve monitoring + predictive alerts",
  human_error: 
    "Validatie + automation van kritieke invoer",
  data_silo: 
    "API-gedreven integraties tussen systemen",
  informatie_zoekverlies: 
    "Centrale kennisbank met AI search",
  automation_blokkade: 
    "Low-code automation platform"
}`}),t.jsx("h2",{children:"LLM-Generated Results"}),t.jsx("h3",{children:"Scan Profile"}),t.jsx("pre",{className:"bg-gray-100 p-4 rounded-lg",children:`{
  level: "Chaos|Handmatig|Groeiend|Automation-ready|AI-native",
  top_signals: ["signaal_1", "signaal_2", "signaal_3"],
  dominant_theme: "hoogste_scoring_theme",
  suggested_intervention: "intervention_from_library",
  peer_context: "MKB-bedrijven met vergelijkbare omvang"
}`}),t.jsx("h3",{children:"LLM Prompt"}),t.jsx("pre",{className:"bg-gray-100 p-4 rounded-lg overflow-x-auto",children:`Je bent een kritische bedrijfsanalist voor MKB.
Je vermijdt open deuren en managementtaal.
Je benoemt gevolgen, vergelijkt met peers en confronteert.
Je verzint geen feiten buiten de input.
Als de analyse te braaf is, herschrijf je.

Regels:
- Benoem wat dit kost in tijd, focus of groeisnelheid
- Vergelijk met vergelijkbare MKB-bedrijven
- Benoem één ongemakkelijke waarheid
- Geef één concrete eerste ingreep
- Geen algemene termen zoals "te veel handmatig"

Scan-profiel: {scanProfile JSON}`}),t.jsx("h3",{children:"LLM JSON Schema Output"}),t.jsx("pre",{className:"bg-gray-100 p-4 rounded-lg",children:`{
  "onderschatting": 
    "Wat jullie waarschijnlijk onderschatten (2-3 zinnen)",
  "kosten": 
    "Wat dit jullie nu echt kost (concreet, met cijfers)",
  "peers": 
    "Waarom dit bij anderen al anders is (vergelijking)",
  "eerste_ingreep": 
    "Meest logische eerste ingreep (concreet)",
  "deelbare_uitspraak": 
    "Eén deelbare uitspraak - max 12 woorden"
}`}),t.jsx("h2",{children:"Results Display"}),t.jsx("h3",{children:"1. Hero"}),t.jsxs("div",{className:"bg-gradient-to-r from-purple-600 to-pink-600 text-white p-4 rounded-lg mb-4",children:[t.jsxs("span",{className:"inline-block px-4 py-2 bg-white/20 rounded-full text-sm font-bold mb-2",children:[t.jsx(Tt,{className:"w-4 h-4 inline mr-1"}),"Je niveau: Groeiend"]}),t.jsx("h3",{className:"text-2xl font-bold",children:"Deelbare uitspraak komt hier"})]}),t.jsx("h3",{children:"2. Analyse Secties"}),t.jsxs("div",{className:"space-y-3",children:[t.jsxs("div",{className:"p-4 border-2 border-red-100 bg-white rounded-xl",children:[t.jsxs("div",{className:"flex items-start gap-2 mb-2",children:[t.jsx(qa,{className:"w-5 h-5 text-red-600 mt-1"}),t.jsx("h4",{className:"font-bold",children:"Wat jullie waarschijnlijk onderschatten"})]}),t.jsx("p",{className:"text-sm text-gray-600",children:"LLM output: onderschatting"})]}),t.jsxs("div",{className:"p-4 border-2 border-orange-100 bg-white rounded-xl",children:[t.jsxs("div",{className:"flex items-start gap-2 mb-2",children:[t.jsx(Hi,{className:"w-5 h-5 text-orange-600 mt-1"}),t.jsx("h4",{className:"font-bold",children:"Wat dit jullie nu echt kost"})]}),t.jsx("p",{className:"text-sm text-gray-600",children:"LLM output: kosten (concreet, met cijfers)"})]}),t.jsxs("div",{className:"p-4 border-2 border-blue-100 bg-white rounded-xl",children:[t.jsx("h4",{className:"font-bold mb-1",children:"Waarom dit bij anderen al anders is"}),t.jsx("p",{className:"text-sm text-gray-600",children:"LLM output: peers (vergelijking)"})]}),t.jsxs("div",{className:"p-4 bg-gradient-to-r from-green-500 to-emerald-600 text-white rounded-xl",children:[t.jsx("h4",{className:"font-bold mb-1",children:"Meest logische eerste ingreep"}),t.jsx("p",{className:"text-sm",children:"LLM output: eerste_ingreep"})]})]}),t.jsx("h3",{children:"3. Share Functie"}),t.jsx("p",{children:"Native Web Share API voor deelbare uitspraak"}),t.jsx("h3",{children:"4. Call-to-Actions"}),t.jsxs("ul",{children:[t.jsxs("li",{children:[t.jsx("strong",{children:"Primary:"}),' "Genereer mijn Impact Rapport" → /ImpactRapport?level={level}']}),t.jsxs("li",{children:[t.jsx("strong",{children:"Secondary 1:"}),' "15-minuten Consult" → /Contact?ref=quiz&level={level}']}),t.jsxs("li",{children:[t.jsx("strong",{children:"Secondary 2:"}),' "Relevante Trainingen" → /Training']})]}),t.jsx("h2",{children:"De 5 Levels"}),t.jsxs("div",{className:"space-y-4",children:[t.jsxs("div",{className:"p-4 bg-red-50 border-2 border-red-200 rounded-lg",children:[t.jsx("h4",{className:"font-bold text-red-900 mb-2",children:"Chaos"}),t.jsxs("p",{className:"text-sm text-red-800 mb-2",children:[t.jsx("strong",{children:"Kenmerken:"})," Brandjes blussen, systemen werken niet samen, veel menselijke fouten"]}),t.jsxs("p",{className:"text-sm text-red-700",children:[t.jsx("strong",{children:"Interventie Focus:"})," Stabiliseren, overzicht creëren"]})]}),t.jsxs("div",{className:"p-4 bg-orange-50 border-2 border-orange-200 rounded-lg",children:[t.jsx("h4",{className:"font-bold text-orange-900 mb-2",children:"Handmatig"}),t.jsxs("p",{className:"text-sm text-orange-800 mb-2",children:[t.jsx("strong",{children:"Kenmerken:"})," Data overtypen, Excel als waarheid, rapportage handwerk"]}),t.jsxs("p",{className:"text-sm text-orange-700",children:[t.jsx("strong",{children:"Interventie Focus:"})," Automatiseren, integreren"]})]}),t.jsxs("div",{className:"p-4 bg-yellow-50 border-2 border-yellow-200 rounded-lg",children:[t.jsx("h4",{className:"font-bold text-yellow-900 mb-2",children:"Groeiend"}),t.jsxs("p",{className:"text-sm text-yellow-800 mb-2",children:[t.jsx("strong",{children:"Kenmerken:"})," Beslissingen op gevoel, informatie versnipperd, groei kost mensen"]}),t.jsxs("p",{className:"text-sm text-yellow-700",children:[t.jsx("strong",{children:"Interventie Focus:"})," Data centraliseren, workflows optimaliseren"]})]}),t.jsxs("div",{className:"p-4 bg-blue-50 border-2 border-blue-200 rounded-lg",children:[t.jsx("h4",{className:"font-bold text-blue-900 mb-2",children:"Automation-ready"}),t.jsxs("p",{className:"text-sm text-blue-800 mb-2",children:[t.jsx("strong",{children:"Kenmerken:"})," Systemen deels geïntegreerd, wil slimmer werken, groei zonder headcount"]}),t.jsxs("p",{className:"text-sm text-blue-700",children:[t.jsx("strong",{children:"Interventie Focus:"})," AI agents, advanced automation"]})]}),t.jsxs("div",{className:"p-4 bg-green-50 border-2 border-green-200 rounded-lg",children:[t.jsx("h4",{className:"font-bold text-green-900 mb-2",children:"AI-native"}),t.jsxs("p",{className:"text-sm text-green-800 mb-2",children:[t.jsx("strong",{children:"Kenmerken:"})," AI is operationeel, stabiele architectuur, schaalbare processen"]}),t.jsxs("p",{className:"text-sm text-green-700",children:[t.jsx("strong",{children:"Interventie Focus:"})," Innoveren, vooroplopen"]})]})]}),t.jsx("h2",{children:"LLM Gebruik"}),t.jsxs("ul",{children:[t.jsxs("li",{children:[t.jsx("strong",{children:"Provider:"})," OpenAI (via Base44 Core.InvokeLLM)"]}),t.jsxs("li",{children:[t.jsx("strong",{children:"Toon:"})," Kritisch, confronterend, concreet"]}),t.jsxs("li",{children:[t.jsx("strong",{children:"Anti-patterns:"})," Geen managementjargon, open deuren"]}),t.jsxs("li",{children:[t.jsx("strong",{children:"Fallback:"})," Rule-based output als LLM faalt"]}),t.jsxs("li",{children:[t.jsx("strong",{children:"Verwerkingstijd:"})," 3-5 seconden"]})]}),t.jsx("h2",{children:"Data Structure per Vraag"}),t.jsx("pre",{className:"bg-gray-100 p-4 rounded-lg text-sm",children:`{
  id: number,
  question: "string",
  options: [
    {
      label: "string",
      themes: ["string"],
      signals: ["string"],
      severity: 0-3  // 0=positief, 3=problematisch
    }
  ]
}`}),t.jsx("h2",{children:"Performance"}),t.jsxs("ul",{children:[t.jsxs("li",{children:[t.jsx("strong",{children:"Frontend-only logic:"})," Zeer snel"]}),t.jsxs("li",{children:[t.jsx("strong",{children:"Single LLM call:"})," Alleen voor tekstgeneratie"]}),t.jsxs("li",{children:[t.jsx("strong",{children:"Deterministische classificatie:"})," Consistent"]}),t.jsxs("li",{children:[t.jsx("strong",{children:"Instant feedback:"})," Op vraag selectie"]})]}),t.jsx("h2",{children:"Files"}),t.jsx("ul",{className:"font-mono text-sm",children:t.jsx("li",{children:"pages/AIQuiz.jsx - Complete quiz component (frontend-only)"})}),t.jsx("h2",{children:"Integraties"}),t.jsxs("ul",{children:[t.jsxs("li",{children:[t.jsx("strong",{children:"Impact Report:"})," Level wordt doorgegeven als query parameter"]}),t.jsxs("li",{children:[t.jsx("strong",{children:"Contact:"})," Quiz referentie + level in URL"]}),t.jsxs("li",{children:[t.jsx("strong",{children:"Training:"})," Algemene link zonder parameters"]})]})]})]})})})}function yn(e){const n=Object.prototype.toString.call(e);return e instanceof Date||typeof e=="object"&&n==="[object Date]"?new e.constructor(+e):typeof e=="number"||n==="[object Number]"||typeof e=="string"||n==="[object String]"?new Date(e):new Date(NaN)}function Ki(e,n){return e instanceof Date?new e.constructor(n):new Date(n)}function PE(e,n){const r=yn(e);if(isNaN(n))return Ki(e,NaN);if(!n)return r;const i=r.getDate(),s=Ki(e,r.getTime());s.setMonth(r.getMonth()+n+1,0);const a=s.getDate();return i>=a?s:(r.setFullYear(s.getFullYear(),s.getMonth(),i),r)}const OE=6048e5,Ez=864e5;let Tz={};function Nf(){return Tz}function lu(e,n){var c,d,f,h;const r=Nf(),i=(n==null?void 0:n.weekStartsOn)??((d=(c=n==null?void 0:n.locale)==null?void 0:c.options)==null?void 0:d.weekStartsOn)??r.weekStartsOn??((h=(f=r.locale)==null?void 0:f.options)==null?void 0:h.weekStartsOn)??0,s=yn(e),a=s.getDay(),o=(a<i?7:0)+a-i;return s.setDate(s.getDate()-o),s.setHours(0,0,0,0),s}function Gh(e){return lu(e,{weekStartsOn:1})}function DE(e){const n=yn(e),r=n.getFullYear(),i=Ki(e,0);i.setFullYear(r+1,0,4),i.setHours(0,0,0,0);const s=Gh(i),a=Ki(e,0);a.setFullYear(r,0,4),a.setHours(0,0,0,0);const o=Gh(a);return n.getTime()>=s.getTime()?r+1:n.getTime()>=o.getTime()?r:r-1}function fl(e){const n=yn(e);return n.setHours(0,0,0,0),n}function W2(e){const n=yn(e),r=new Date(Date.UTC(n.getFullYear(),n.getMonth(),n.getDate(),n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds()));return r.setUTCFullYear(n.getFullYear()),+e-+r}function Pz(e,n){const r=fl(e),i=fl(n),s=+r-W2(r),a=+i-W2(i);return Math.round((s-a)/Ez)}function Oz(e){const n=DE(e),r=Ki(e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),Gh(r)}function Dz(e,n){const r=fl(e),i=fl(n);return+r==+i}function Iz(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function Rz(e){if(!Iz(e)&&typeof e!="number")return!1;const n=yn(e);return!isNaN(Number(n))}function Fz(e){const n=yn(e),r=n.getMonth();return n.setFullYear(n.getFullYear(),r+1,0),n.setHours(23,59,59,999),n}function Mz(e,n){const r=yn(e.start),i=yn(e.end);let s=+r>+i;const a=s?+r:+i,o=s?i:r;o.setHours(0,0,0,0);let c=1;const d=[];for(;+o<=a;)d.push(yn(o)),o.setDate(o.getDate()+c),o.setHours(0,0,0,0);return s?d.reverse():d}function Lz(e){const n=yn(e);return n.setDate(1),n.setHours(0,0,0,0),n}function Bz(e){const n=yn(e),r=Ki(e,0);return r.setFullYear(n.getFullYear(),0,1),r.setHours(0,0,0,0),r}const qz={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},zz=(e,n,r)=>{let i;const s=qz[e];return typeof s=="string"?i=s:n===1?i=s.one:i=s.other.replace("{{count}}",n.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"in "+i:i+" ago":i};function $o(e){return(n={})=>{const r=n.width?String(n.width):e.defaultWidth;return e.formats[r]||e.formats[e.defaultWidth]}}const Vz={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Uz={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},$z={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Hz={date:$o({formats:Vz,defaultWidth:"full"}),time:$o({formats:Uz,defaultWidth:"full"}),dateTime:$o({formats:$z,defaultWidth:"full"})},Wz={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Kz=(e,n,r,i)=>Wz[e];function oi(e){return(n,r)=>{const i=r!=null&&r.context?String(r.context):"standalone";let s;if(i==="formatting"&&e.formattingValues){const o=e.defaultFormattingWidth||e.defaultWidth,c=r!=null&&r.width?String(r.width):o;s=e.formattingValues[c]||e.formattingValues[o]}else{const o=e.defaultWidth,c=r!=null&&r.width?String(r.width):e.defaultWidth;s=e.values[c]||e.values[o]}const a=e.argumentCallback?e.argumentCallback(n):n;return s[a]}}const Gz={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Qz={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Yz={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},Xz={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},Jz={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},Zz={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},eV=(e,n)=>{const r=Number(e),i=r%100;if(i>20||i<10)switch(i%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},tV={ordinalNumber:eV,era:oi({values:Gz,defaultWidth:"wide"}),quarter:oi({values:Qz,defaultWidth:"wide",argumentCallback:e=>e-1}),month:oi({values:Yz,defaultWidth:"wide"}),day:oi({values:Xz,defaultWidth:"wide"}),dayPeriod:oi({values:Jz,defaultWidth:"wide",formattingValues:Zz,defaultFormattingWidth:"wide"})};function li(e){return(n,r={})=>{const i=r.width,s=i&&e.matchPatterns[i]||e.matchPatterns[e.defaultMatchWidth],a=n.match(s);if(!a)return null;const o=a[0],c=i&&e.parsePatterns[i]||e.parsePatterns[e.defaultParseWidth],d=Array.isArray(c)?rV(c,m=>m.test(o)):nV(c,m=>m.test(o));let f;f=e.valueCallback?e.valueCallback(d):d,f=r.valueCallback?r.valueCallback(f):f;const h=n.slice(o.length);return{value:f,rest:h}}}function nV(e,n){for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&n(e[r]))return r}function rV(e,n){for(let r=0;r<e.length;r++)if(n(e[r]))return r}function IE(e){return(n,r={})=>{const i=n.match(e.matchPattern);if(!i)return null;const s=i[0],a=n.match(e.parsePattern);if(!a)return null;let o=e.valueCallback?e.valueCallback(a[0]):a[0];o=r.valueCallback?r.valueCallback(o):o;const c=n.slice(s.length);return{value:o,rest:c}}}const iV=/^(\d+)(th|st|nd|rd)?/i,sV=/\d+/i,aV={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},oV={any:[/^b/i,/^(a|c)/i]},lV={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},cV={any:[/1/i,/2/i,/3/i,/4/i]},uV={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},dV={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},hV={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},fV={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},mV={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},pV={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},gV={ordinalNumber:IE({matchPattern:iV,parsePattern:sV,valueCallback:e=>parseInt(e,10)}),era:li({matchPatterns:aV,defaultMatchWidth:"wide",parsePatterns:oV,defaultParseWidth:"any"}),quarter:li({matchPatterns:lV,defaultMatchWidth:"wide",parsePatterns:cV,defaultParseWidth:"any",valueCallback:e=>e+1}),month:li({matchPatterns:uV,defaultMatchWidth:"wide",parsePatterns:dV,defaultParseWidth:"any"}),day:li({matchPatterns:hV,defaultMatchWidth:"wide",parsePatterns:fV,defaultParseWidth:"any"}),dayPeriod:li({matchPatterns:mV,defaultMatchWidth:"any",parsePatterns:pV,defaultParseWidth:"any"})},xV={code:"en-US",formatDistance:zz,formatLong:Hz,formatRelative:Kz,localize:tV,match:gV,options:{weekStartsOn:0,firstWeekContainsDate:1}};function yV(e){const n=yn(e);return Pz(n,Bz(n))+1}function vV(e){const n=yn(e),r=+Gh(n)-+Oz(n);return Math.round(r/OE)+1}function RE(e,n){var h,m,p,g;const r=yn(e),i=r.getFullYear(),s=Nf(),a=(n==null?void 0:n.firstWeekContainsDate)??((m=(h=n==null?void 0:n.locale)==null?void 0:h.options)==null?void 0:m.firstWeekContainsDate)??s.firstWeekContainsDate??((g=(p=s.locale)==null?void 0:p.options)==null?void 0:g.firstWeekContainsDate)??1,o=Ki(e,0);o.setFullYear(i+1,0,a),o.setHours(0,0,0,0);const c=lu(o,n),d=Ki(e,0);d.setFullYear(i,0,a),d.setHours(0,0,0,0);const f=lu(d,n);return r.getTime()>=c.getTime()?i+1:r.getTime()>=f.getTime()?i:i-1}function bV(e,n){var c,d,f,h;const r=Nf(),i=(n==null?void 0:n.firstWeekContainsDate)??((d=(c=n==null?void 0:n.locale)==null?void 0:c.options)==null?void 0:d.firstWeekContainsDate)??r.firstWeekContainsDate??((h=(f=r.locale)==null?void 0:f.options)==null?void 0:h.firstWeekContainsDate)??1,s=RE(e,n),a=Ki(e,0);return a.setFullYear(s,0,i),a.setHours(0,0,0,0),lu(a,n)}function jV(e,n){const r=yn(e),i=+lu(r,n)-+bV(r,n);return Math.round(i/OE)+1}function Et(e,n){const r=e<0?"-":"",i=Math.abs(e).toString().padStart(n,"0");return r+i}const ws={y(e,n){const r=e.getFullYear(),i=r>0?r:1-r;return Et(n==="yy"?i%100:i,n.length)},M(e,n){const r=e.getMonth();return n==="M"?String(r+1):Et(r+1,2)},d(e,n){return Et(e.getDate(),n.length)},a(e,n){const r=e.getHours()/12>=1?"pm":"am";switch(n){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];case"aaaa":default:return r==="am"?"a.m.":"p.m."}},h(e,n){return Et(e.getHours()%12||12,n.length)},H(e,n){return Et(e.getHours(),n.length)},m(e,n){return Et(e.getMinutes(),n.length)},s(e,n){return Et(e.getSeconds(),n.length)},S(e,n){const r=n.length,i=e.getMilliseconds(),s=Math.trunc(i*Math.pow(10,r-3));return Et(s,n.length)}},Co={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},K2={G:function(e,n,r){const i=e.getFullYear()>0?1:0;switch(n){case"G":case"GG":case"GGG":return r.era(i,{width:"abbreviated"});case"GGGGG":return r.era(i,{width:"narrow"});case"GGGG":default:return r.era(i,{width:"wide"})}},y:function(e,n,r){if(n==="yo"){const i=e.getFullYear(),s=i>0?i:1-i;return r.ordinalNumber(s,{unit:"year"})}return ws.y(e,n)},Y:function(e,n,r,i){const s=RE(e,i),a=s>0?s:1-s;if(n==="YY"){const o=a%100;return Et(o,2)}return n==="Yo"?r.ordinalNumber(a,{unit:"year"}):Et(a,n.length)},R:function(e,n){const r=DE(e);return Et(r,n.length)},u:function(e,n){const r=e.getFullYear();return Et(r,n.length)},Q:function(e,n,r){const i=Math.ceil((e.getMonth()+1)/3);switch(n){case"Q":return String(i);case"QQ":return Et(i,2);case"Qo":return r.ordinalNumber(i,{unit:"quarter"});case"QQQ":return r.quarter(i,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(i,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(i,{width:"wide",context:"formatting"})}},q:function(e,n,r){const i=Math.ceil((e.getMonth()+1)/3);switch(n){case"q":return String(i);case"qq":return Et(i,2);case"qo":return r.ordinalNumber(i,{unit:"quarter"});case"qqq":return r.quarter(i,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(i,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(i,{width:"wide",context:"standalone"})}},M:function(e,n,r){const i=e.getMonth();switch(n){case"M":case"MM":return ws.M(e,n);case"Mo":return r.ordinalNumber(i+1,{unit:"month"});case"MMM":return r.month(i,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(i,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(i,{width:"wide",context:"formatting"})}},L:function(e,n,r){const i=e.getMonth();switch(n){case"L":return String(i+1);case"LL":return Et(i+1,2);case"Lo":return r.ordinalNumber(i+1,{unit:"month"});case"LLL":return r.month(i,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(i,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(i,{width:"wide",context:"standalone"})}},w:function(e,n,r,i){const s=jV(e,i);return n==="wo"?r.ordinalNumber(s,{unit:"week"}):Et(s,n.length)},I:function(e,n,r){const i=vV(e);return n==="Io"?r.ordinalNumber(i,{unit:"week"}):Et(i,n.length)},d:function(e,n,r){return n==="do"?r.ordinalNumber(e.getDate(),{unit:"date"}):ws.d(e,n)},D:function(e,n,r){const i=yV(e);return n==="Do"?r.ordinalNumber(i,{unit:"dayOfYear"}):Et(i,n.length)},E:function(e,n,r){const i=e.getDay();switch(n){case"E":case"EE":case"EEE":return r.day(i,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(i,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(i,{width:"short",context:"formatting"});case"EEEE":default:return r.day(i,{width:"wide",context:"formatting"})}},e:function(e,n,r,i){const s=e.getDay(),a=(s-i.weekStartsOn+8)%7||7;switch(n){case"e":return String(a);case"ee":return Et(a,2);case"eo":return r.ordinalNumber(a,{unit:"day"});case"eee":return r.day(s,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(s,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(s,{width:"short",context:"formatting"});case"eeee":default:return r.day(s,{width:"wide",context:"formatting"})}},c:function(e,n,r,i){const s=e.getDay(),a=(s-i.weekStartsOn+8)%7||7;switch(n){case"c":return String(a);case"cc":return Et(a,n.length);case"co":return r.ordinalNumber(a,{unit:"day"});case"ccc":return r.day(s,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(s,{width:"narrow",context:"standalone"});case"cccccc":return r.day(s,{width:"short",context:"standalone"});case"cccc":default:return r.day(s,{width:"wide",context:"standalone"})}},i:function(e,n,r){const i=e.getDay(),s=i===0?7:i;switch(n){case"i":return String(s);case"ii":return Et(s,n.length);case"io":return r.ordinalNumber(s,{unit:"day"});case"iii":return r.day(i,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(i,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(i,{width:"short",context:"formatting"});case"iiii":default:return r.day(i,{width:"wide",context:"formatting"})}},a:function(e,n,r){const s=e.getHours()/12>=1?"pm":"am";switch(n){case"a":case"aa":return r.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(s,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(s,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(s,{width:"wide",context:"formatting"})}},b:function(e,n,r){const i=e.getHours();let s;switch(i===12?s=Co.noon:i===0?s=Co.midnight:s=i/12>=1?"pm":"am",n){case"b":case"bb":return r.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(s,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(s,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(s,{width:"wide",context:"formatting"})}},B:function(e,n,r){const i=e.getHours();let s;switch(i>=17?s=Co.evening:i>=12?s=Co.afternoon:i>=4?s=Co.morning:s=Co.night,n){case"B":case"BB":case"BBB":return r.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(s,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(s,{width:"wide",context:"formatting"})}},h:function(e,n,r){if(n==="ho"){let i=e.getHours()%12;return i===0&&(i=12),r.ordinalNumber(i,{unit:"hour"})}return ws.h(e,n)},H:function(e,n,r){return n==="Ho"?r.ordinalNumber(e.getHours(),{unit:"hour"}):ws.H(e,n)},K:function(e,n,r){const i=e.getHours()%12;return n==="Ko"?r.ordinalNumber(i,{unit:"hour"}):Et(i,n.length)},k:function(e,n,r){let i=e.getHours();return i===0&&(i=24),n==="ko"?r.ordinalNumber(i,{unit:"hour"}):Et(i,n.length)},m:function(e,n,r){return n==="mo"?r.ordinalNumber(e.getMinutes(),{unit:"minute"}):ws.m(e,n)},s:function(e,n,r){return n==="so"?r.ordinalNumber(e.getSeconds(),{unit:"second"}):ws.s(e,n)},S:function(e,n){return ws.S(e,n)},X:function(e,n,r){const i=e.getTimezoneOffset();if(i===0)return"Z";switch(n){case"X":return Q2(i);case"XXXX":case"XX":return wa(i);case"XXXXX":case"XXX":default:return wa(i,":")}},x:function(e,n,r){const i=e.getTimezoneOffset();switch(n){case"x":return Q2(i);case"xxxx":case"xx":return wa(i);case"xxxxx":case"xxx":default:return wa(i,":")}},O:function(e,n,r){const i=e.getTimezoneOffset();switch(n){case"O":case"OO":case"OOO":return"GMT"+G2(i,":");case"OOOO":default:return"GMT"+wa(i,":")}},z:function(e,n,r){const i=e.getTimezoneOffset();switch(n){case"z":case"zz":case"zzz":return"GMT"+G2(i,":");case"zzzz":default:return"GMT"+wa(i,":")}},t:function(e,n,r){const i=Math.trunc(e.getTime()/1e3);return Et(i,n.length)},T:function(e,n,r){const i=e.getTime();return Et(i,n.length)}};function G2(e,n=""){const r=e>0?"-":"+",i=Math.abs(e),s=Math.trunc(i/60),a=i%60;return a===0?r+String(s):r+String(s)+n+Et(a,2)}function Q2(e,n){return e%60===0?(e>0?"-":"+")+Et(Math.abs(e)/60,2):wa(e,n)}function wa(e,n=""){const r=e>0?"-":"+",i=Math.abs(e),s=Et(Math.trunc(i/60),2),a=Et(i%60,2);return r+s+n+a}const Y2=(e,n)=>{switch(e){case"P":return n.date({width:"short"});case"PP":return n.date({width:"medium"});case"PPP":return n.date({width:"long"});case"PPPP":default:return n.date({width:"full"})}},FE=(e,n)=>{switch(e){case"p":return n.time({width:"short"});case"pp":return n.time({width:"medium"});case"ppp":return n.time({width:"long"});case"pppp":default:return n.time({width:"full"})}},wV=(e,n)=>{const r=e.match(/(P+)(p+)?/)||[],i=r[1],s=r[2];if(!s)return Y2(e,n);let a;switch(i){case"P":a=n.dateTime({width:"short"});break;case"PP":a=n.dateTime({width:"medium"});break;case"PPP":a=n.dateTime({width:"long"});break;case"PPPP":default:a=n.dateTime({width:"full"});break}return a.replace("{{date}}",Y2(i,n)).replace("{{time}}",FE(s,n))},NV={p:FE,P:wV},kV=/^D+$/,_V=/^Y+$/,SV=["D","DD","YY","YYYY"];function AV(e){return kV.test(e)}function CV(e){return _V.test(e)}function EV(e,n,r){const i=TV(e,n,r);if(console.warn(i),SV.includes(e))throw new RangeError(i)}function TV(e,n,r){const i=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${n}\`) for formatting ${i} to the input \`${r}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const PV=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,OV=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,DV=/^'([^]*?)'?$/,IV=/''/g,RV=/[a-zA-Z]/;function _t(e,n,r){var h,m,p,g,b,j,y,x;const i=Nf(),s=(r==null?void 0:r.locale)??i.locale??xV,a=(r==null?void 0:r.firstWeekContainsDate)??((m=(h=r==null?void 0:r.locale)==null?void 0:h.options)==null?void 0:m.firstWeekContainsDate)??i.firstWeekContainsDate??((g=(p=i.locale)==null?void 0:p.options)==null?void 0:g.firstWeekContainsDate)??1,o=(r==null?void 0:r.weekStartsOn)??((j=(b=r==null?void 0:r.locale)==null?void 0:b.options)==null?void 0:j.weekStartsOn)??i.weekStartsOn??((x=(y=i.locale)==null?void 0:y.options)==null?void 0:x.weekStartsOn)??0,c=yn(e);if(!Rz(c))throw new RangeError("Invalid time value");let d=n.match(OV).map(N=>{const w=N[0];if(w==="p"||w==="P"){const k=NV[w];return k(N,s.formatLong)}return N}).join("").match(PV).map(N=>{if(N==="''")return{isToken:!1,value:"'"};const w=N[0];if(w==="'")return{isToken:!1,value:FV(N)};if(K2[w])return{isToken:!0,value:N};if(w.match(RV))throw new RangeError("Format string contains an unescaped latin alphabet character `"+w+"`");return{isToken:!1,value:N}});s.localize.preprocessor&&(d=s.localize.preprocessor(c,d));const f={firstWeekContainsDate:a,weekStartsOn:o,locale:s};return d.map(N=>{if(!N.isToken)return N.value;const w=N.value;(!(r!=null&&r.useAdditionalWeekYearTokens)&&CV(w)||!(r!=null&&r.useAdditionalDayOfYearTokens)&&AV(w))&&EV(w,n,String(e));const k=K2[w[0]];return k(c,w,s.localize,f)}).join("")}function FV(e){const n=e.match(DV);return n?n[1].replace(IV,"'"):e}function ME(e){return+yn(e)<Date.now()}function MV(e,n){return PE(e,-1)}function LV(){var o,c;const[e,n]=F.useState(null),{data:r=[],isLoading:i}=ze({queryKey:["ai-quiz-submissions"],queryFn:()=>ue.entities.AIQuizSubmission.list("-created_date")}),s=()=>{const d=[["Email","Naam","Bedrijf","AI Niveau","Score","Datum"],...r.map(m=>[m.email||"",m.name||"",m.company||"",m.level,m.score,_t(new Date(m.created_date),"dd-MM-yyyy HH:mm")])].map(m=>m.join(",")).join(`
`),f=new Blob([d],{type:"text/csv;charset=utf-8;"}),h=document.createElement("a");h.href=URL.createObjectURL(f),h.download=`ai-quiz-submissions-${_t(new Date,"dd-MM-yyyy")}.csv`,h.click()},a=d=>({Chaos:"bg-red-100 text-red-800",Handmatig:"bg-orange-100 text-orange-800",Groeiend:"bg-yellow-100 text-yellow-800","Automation-ready":"bg-blue-100 text-blue-800","AI-native":"bg-green-100 text-green-800"})[d]||"bg-gray-100 text-gray-800";return t.jsx("div",{className:"pt-20 min-h-screen bg-gray-50",children:t.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-12",children:[t.jsxs("div",{className:"flex items-center justify-between mb-8",children:[t.jsxs("div",{className:"flex items-center gap-4",children:[t.jsx(fe,{to:oe("AdminDashboard"),children:t.jsx(se,{variant:"outline",size:"icon",children:t.jsx(ht,{className:"w-5 h-5"})})}),t.jsxs("div",{children:[t.jsx("h1",{className:"text-3xl font-bold text-gray-900",children:"AI Quiz Resultaten"}),t.jsxs("p",{className:"text-gray-600",children:[r.length," quizzen ingevuld"]})]})]}),t.jsxs(se,{onClick:s,disabled:r.length===0,children:[t.jsx(vu,{className:"w-4 h-4 mr-2"}),"Exporteer CSV"]})]}),i?t.jsx("div",{className:"flex justify-center py-12",children:t.jsx("div",{className:"w-8 h-8 border-4 border-blue-600 border-t-transparent rounded-full animate-spin"})}):r.length===0?t.jsxs("div",{className:"bg-white rounded-2xl p-12 text-center",children:[t.jsx(Ut,{className:"w-16 h-16 text-gray-300 mx-auto mb-4"}),t.jsx("h3",{className:"text-xl font-semibold text-gray-900 mb-2",children:"Nog geen resultaten"}),t.jsx("p",{className:"text-gray-600",children:"Er zijn nog geen AI Quiz resultaten"})]}):t.jsxs("div",{className:"grid lg:grid-cols-2 gap-6",children:[t.jsx("div",{className:"space-y-4",children:r.map(d=>t.jsxs("div",{onClick:()=>n(d),className:`bg-white rounded-xl p-6 border-2 cursor-pointer transition-all ${(e==null?void 0:e.id)===d.id?"border-blue-600 shadow-lg":"border-gray-200 hover:border-gray-300"}`,children:[t.jsxs("div",{className:"flex items-start justify-between mb-3",children:[t.jsxs("div",{className:"flex-1",children:[t.jsx("h3",{className:"font-bold text-gray-900",children:d.company||d.name||d.email||"Anoniem"}),d.name&&d.company&&t.jsx("p",{className:"text-sm text-gray-500",children:d.name})]}),t.jsx("span",{className:`px-3 py-1 rounded-full text-xs font-medium ${a(d.level)}`,children:d.level})]}),t.jsxs("div",{className:"flex items-center gap-3 text-sm text-gray-600",children:[t.jsxs("span",{children:["Score: ",d.score]}),t.jsx("span",{children:"•"}),t.jsx("span",{children:_t(new Date(d.created_date),"dd MMM yyyy HH:mm")})]})]},d.id))}),t.jsx("div",{className:"lg:sticky lg:top-24 h-fit",children:e?t.jsxs("div",{className:"bg-white rounded-xl p-6 border border-gray-200",children:[t.jsx("h2",{className:"text-xl font-bold text-gray-900 mb-6",children:"Detail"}),t.jsxs("div",{className:"space-y-4",children:[e.email&&t.jsxs("div",{children:[t.jsx("label",{className:"text-sm font-medium text-gray-600",children:"Email"}),t.jsx("p",{className:"text-gray-900",children:e.email})]}),e.name&&t.jsxs("div",{children:[t.jsx("label",{className:"text-sm font-medium text-gray-600",children:"Naam"}),t.jsx("p",{className:"text-gray-900",children:e.name})]}),e.company&&t.jsxs("div",{children:[t.jsx("label",{className:"text-sm font-medium text-gray-600",children:"Bedrijf"}),t.jsx("p",{className:"text-gray-900",children:e.company})]}),t.jsxs("div",{children:[t.jsx("label",{className:"text-sm font-medium text-gray-600",children:"AI Readiness Niveau"}),t.jsx("span",{className:`inline-block mt-1 px-3 py-1 rounded-full text-sm font-medium ${a(e.level)}`,children:e.level})]}),t.jsxs("div",{children:[t.jsx("label",{className:"text-sm font-medium text-gray-600",children:"Score"}),t.jsx("p",{className:"text-gray-900 font-semibold",children:e.score})]}),((o=e.analysis)==null?void 0:o.report)&&t.jsxs("div",{children:[t.jsx("label",{className:"text-sm font-medium text-gray-600",children:"Analyse"}),t.jsx("p",{className:"text-gray-900 text-sm whitespace-pre-line",children:e.analysis.report})]}),((c=e.analysis)==null?void 0:c.themes)&&Object.keys(e.analysis.themes).length>0&&t.jsxs("div",{children:[t.jsx("label",{className:"text-sm font-medium text-gray-600",children:"Thema's"}),t.jsx("div",{className:"flex flex-wrap gap-2 mt-2",children:Object.entries(e.analysis.themes).map(([d,f])=>t.jsxs("span",{className:"px-2 py-1 bg-gray-100 rounded text-xs",children:[d,": ",f]},d))})]})]})]}):t.jsxs("div",{className:"bg-gray-50 rounded-xl p-12 text-center border-2 border-dashed border-gray-300",children:[t.jsx(Ut,{className:"w-12 h-12 text-gray-400 mx-auto mb-3"}),t.jsx("p",{className:"text-gray-600",children:"Selecteer een resultaat om details te bekijken"})]})})]})]})})}function X2(e,[n,r]){return Math.min(r,Math.max(n,e))}function bt(e,n,{checkForDefaultPrevented:r=!0}={}){return function(s){if(e==null||e(s),r===!1||!s.defaultPrevented)return n==null?void 0:n(s)}}function Za(e,n=[]){let r=[];function i(a,o){const c=F.createContext(o),d=r.length;r=[...r,o];const f=m=>{var x;const{scope:p,children:g,...b}=m,j=((x=p==null?void 0:p[e])==null?void 0:x[d])||c,y=F.useMemo(()=>b,Object.values(b));return t.jsx(j.Provider,{value:y,children:g})};f.displayName=a+"Provider";function h(m,p){var j;const g=((j=p==null?void 0:p[e])==null?void 0:j[d])||c,b=F.useContext(g);if(b)return b;if(o!==void 0)return o;throw new Error(`\`${m}\` must be used within \`${a}\``)}return[f,h]}const s=()=>{const a=r.map(o=>F.createContext(o));return function(c){const d=(c==null?void 0:c[e])||a;return F.useMemo(()=>({[`__scope${e}`]:{...c,[e]:d}}),[c,d])}};return s.scopeName=e,[i,BV(s,...n)]}function BV(...e){const n=e[0];if(e.length===1)return n;const r=()=>{const i=e.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(a){const o=i.reduce((c,{useScope:d,scopeName:f})=>{const m=d(a)[`__scope${f}`];return{...c,...m}},{});return F.useMemo(()=>({[`__scope${n.scopeName}`]:o}),[o])}};return r.scopeName=n.scopeName,r}function LE(e){const n=e+"CollectionProvider",[r,i]=Za(n),[s,a]=r(n,{collectionRef:{current:null},itemMap:new Map}),o=j=>{const{scope:y,children:x}=j,N=Rt.useRef(null),w=Rt.useRef(new Map).current;return t.jsx(s,{scope:y,itemMap:w,collectionRef:N,children:x})};o.displayName=n;const c=e+"CollectionSlot",d=ou(c),f=Rt.forwardRef((j,y)=>{const{scope:x,children:N}=j,w=a(c,x),k=Qt(y,w.collectionRef);return t.jsx(d,{ref:k,children:N})});f.displayName=c;const h=e+"CollectionItemSlot",m="data-radix-collection-item",p=ou(h),g=Rt.forwardRef((j,y)=>{const{scope:x,children:N,...w}=j,k=Rt.useRef(null),A=Qt(y,k),S=a(h,x);return Rt.useEffect(()=>(S.itemMap.set(k,{ref:k,...w}),()=>void S.itemMap.delete(k))),t.jsx(p,{[m]:"",ref:A,children:N})});g.displayName=h;function b(j){const y=a(e+"CollectionConsumer",j);return Rt.useCallback(()=>{const N=y.collectionRef.current;if(!N)return[];const w=Array.from(N.querySelectorAll(`[${m}]`));return Array.from(y.itemMap.values()).sort((S,E)=>w.indexOf(S.ref.current)-w.indexOf(E.ref.current))},[y.collectionRef,y.itemMap])}return[{Provider:o,Slot:f,ItemSlot:g},b,i]}var qV=F.createContext(void 0);function Qv(e){const n=F.useContext(qV);return e||n||"ltr"}var zV=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],jt=zV.reduce((e,n)=>{const r=ou(`Primitive.${n}`),i=F.forwardRef((s,a)=>{const{asChild:o,...c}=s,d=o?r:n;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),t.jsx(d,{...c,ref:a})});return i.displayName=`Primitive.${n}`,{...e,[n]:i}},{});function VV(e,n){e&&ju.flushSync(()=>e.dispatchEvent(n))}function Gs(e){const n=F.useRef(e);return F.useEffect(()=>{n.current=e}),F.useMemo(()=>(...r)=>{var i;return(i=n.current)==null?void 0:i.call(n,...r)},[])}function UV(e,n=globalThis==null?void 0:globalThis.document){const r=Gs(e);F.useEffect(()=>{const i=s=>{s.key==="Escape"&&r(s)};return n.addEventListener("keydown",i,{capture:!0}),()=>n.removeEventListener("keydown",i,{capture:!0})},[r,n])}var $V="DismissableLayer",y0="dismissableLayer.update",HV="dismissableLayer.pointerDownOutside",WV="dismissableLayer.focusOutside",J2,BE=F.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),qE=F.forwardRef((e,n)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:a,onInteractOutside:o,onDismiss:c,...d}=e,f=F.useContext(BE),[h,m]=F.useState(null),p=(h==null?void 0:h.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,g]=F.useState({}),b=Qt(n,E=>m(E)),j=Array.from(f.layers),[y]=[...f.layersWithOutsidePointerEventsDisabled].slice(-1),x=j.indexOf(y),N=h?j.indexOf(h):-1,w=f.layersWithOutsidePointerEventsDisabled.size>0,k=N>=x,A=QV(E=>{const C=E.target,B=[...f.branches].some(I=>I.contains(C));!k||B||(s==null||s(E),o==null||o(E),E.defaultPrevented||c==null||c())},p),S=YV(E=>{const C=E.target;[...f.branches].some(I=>I.contains(C))||(a==null||a(E),o==null||o(E),E.defaultPrevented||c==null||c())},p);return UV(E=>{N===f.layers.size-1&&(i==null||i(E),!E.defaultPrevented&&c&&(E.preventDefault(),c()))},p),F.useEffect(()=>{if(h)return r&&(f.layersWithOutsidePointerEventsDisabled.size===0&&(J2=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),f.layersWithOutsidePointerEventsDisabled.add(h)),f.layers.add(h),Z2(),()=>{r&&f.layersWithOutsidePointerEventsDisabled.size===1&&(p.body.style.pointerEvents=J2)}},[h,p,r,f]),F.useEffect(()=>()=>{h&&(f.layers.delete(h),f.layersWithOutsidePointerEventsDisabled.delete(h),Z2())},[h,f]),F.useEffect(()=>{const E=()=>g({});return document.addEventListener(y0,E),()=>document.removeEventListener(y0,E)},[]),t.jsx(jt.div,{...d,ref:b,style:{pointerEvents:w?k?"auto":"none":void 0,...e.style},onFocusCapture:bt(e.onFocusCapture,S.onFocusCapture),onBlurCapture:bt(e.onBlurCapture,S.onBlurCapture),onPointerDownCapture:bt(e.onPointerDownCapture,A.onPointerDownCapture)})});qE.displayName=$V;var KV="DismissableLayerBranch",GV=F.forwardRef((e,n)=>{const r=F.useContext(BE),i=F.useRef(null),s=Qt(n,i);return F.useEffect(()=>{const a=i.current;if(a)return r.branches.add(a),()=>{r.branches.delete(a)}},[r.branches]),t.jsx(jt.div,{...e,ref:s})});GV.displayName=KV;function QV(e,n=globalThis==null?void 0:globalThis.document){const r=Gs(e),i=F.useRef(!1),s=F.useRef(()=>{});return F.useEffect(()=>{const a=c=>{if(c.target&&!i.current){let d=function(){zE(HV,r,f,{discrete:!0})};const f={originalEvent:c};c.pointerType==="touch"?(n.removeEventListener("click",s.current),s.current=d,n.addEventListener("click",s.current,{once:!0})):d()}else n.removeEventListener("click",s.current);i.current=!1},o=window.setTimeout(()=>{n.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(o),n.removeEventListener("pointerdown",a),n.removeEventListener("click",s.current)}},[n,r]),{onPointerDownCapture:()=>i.current=!0}}function YV(e,n=globalThis==null?void 0:globalThis.document){const r=Gs(e),i=F.useRef(!1);return F.useEffect(()=>{const s=a=>{a.target&&!i.current&&zE(WV,r,{originalEvent:a},{discrete:!1})};return n.addEventListener("focusin",s),()=>n.removeEventListener("focusin",s)},[n,r]),{onFocusCapture:()=>i.current=!0,onBlurCapture:()=>i.current=!1}}function Z2(){const e=new CustomEvent(y0);document.dispatchEvent(e)}function zE(e,n,r,{discrete:i}){const s=r.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});n&&s.addEventListener(e,n,{once:!0}),i?VV(s,a):s.dispatchEvent(a)}var hg=0;function XV(){F.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??ek()),document.body.insertAdjacentElement("beforeend",e[1]??ek()),hg++,()=>{hg===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(n=>n.remove()),hg--}},[])}function ek(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var fg="focusScope.autoFocusOnMount",mg="focusScope.autoFocusOnUnmount",tk={bubbles:!1,cancelable:!0},JV="FocusScope",VE=F.forwardRef((e,n)=>{const{loop:r=!1,trapped:i=!1,onMountAutoFocus:s,onUnmountAutoFocus:a,...o}=e,[c,d]=F.useState(null),f=Gs(s),h=Gs(a),m=F.useRef(null),p=Qt(n,j=>d(j)),g=F.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;F.useEffect(()=>{if(i){let j=function(w){if(g.paused||!c)return;const k=w.target;c.contains(k)?m.current=k:Ss(m.current,{select:!0})},y=function(w){if(g.paused||!c)return;const k=w.relatedTarget;k!==null&&(c.contains(k)||Ss(m.current,{select:!0}))},x=function(w){if(document.activeElement===document.body)for(const A of w)A.removedNodes.length>0&&Ss(c)};document.addEventListener("focusin",j),document.addEventListener("focusout",y);const N=new MutationObserver(x);return c&&N.observe(c,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",j),document.removeEventListener("focusout",y),N.disconnect()}}},[i,c,g.paused]),F.useEffect(()=>{if(c){rk.add(g);const j=document.activeElement;if(!c.contains(j)){const x=new CustomEvent(fg,tk);c.addEventListener(fg,f),c.dispatchEvent(x),x.defaultPrevented||(ZV(iU(UE(c)),{select:!0}),document.activeElement===j&&Ss(c))}return()=>{c.removeEventListener(fg,f),setTimeout(()=>{const x=new CustomEvent(mg,tk);c.addEventListener(mg,h),c.dispatchEvent(x),x.defaultPrevented||Ss(j??document.body,{select:!0}),c.removeEventListener(mg,h),rk.remove(g)},0)}}},[c,f,h,g]);const b=F.useCallback(j=>{if(!r&&!i||g.paused)return;const y=j.key==="Tab"&&!j.altKey&&!j.ctrlKey&&!j.metaKey,x=document.activeElement;if(y&&x){const N=j.currentTarget,[w,k]=eU(N);w&&k?!j.shiftKey&&x===k?(j.preventDefault(),r&&Ss(w,{select:!0})):j.shiftKey&&x===w&&(j.preventDefault(),r&&Ss(k,{select:!0})):x===N&&j.preventDefault()}},[r,i,g.paused]);return t.jsx(jt.div,{tabIndex:-1,...o,ref:p,onKeyDown:b})});VE.displayName=JV;function ZV(e,{select:n=!1}={}){const r=document.activeElement;for(const i of e)if(Ss(i,{select:n}),document.activeElement!==r)return}function eU(e){const n=UE(e),r=nk(n,e),i=nk(n.reverse(),e);return[r,i]}function UE(e){const n=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:i=>{const s=i.tagName==="INPUT"&&i.type==="hidden";return i.disabled||i.hidden||s?NodeFilter.FILTER_SKIP:i.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)n.push(r.currentNode);return n}function nk(e,n){for(const r of e)if(!tU(r,{upTo:n}))return r}function tU(e,{upTo:n}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(n!==void 0&&e===n)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function nU(e){return e instanceof HTMLInputElement&&"select"in e}function Ss(e,{select:n=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&nU(e)&&n&&e.select()}}var rk=rU();function rU(){let e=[];return{add(n){const r=e[0];n!==r&&(r==null||r.pause()),e=ik(e,n),e.unshift(n)},remove(n){var r;e=ik(e,n),(r=e[0])==null||r.resume()}}}function ik(e,n){const r=[...e],i=r.indexOf(n);return i!==-1&&r.splice(i,1),r}function iU(e){return e.filter(n=>n.tagName!=="A")}var In=globalThis!=null&&globalThis.document?F.useLayoutEffect:()=>{},sU=Q0[" useId ".trim().toString()]||(()=>{}),aU=0;function Ou(e){const[n,r]=F.useState(sU());return In(()=>{r(i=>i??String(aU++))},[e]),n?`radix-${n}`:""}const oU=["top","right","bottom","left"],Qs=Math.min,ur=Math.max,Qh=Math.round,ih=Math.floor,xi=e=>({x:e,y:e}),lU={left:"right",right:"left",bottom:"top",top:"bottom"},cU={start:"end",end:"start"};function v0(e,n,r){return ur(e,Qs(n,r))}function Gi(e,n){return typeof e=="function"?e(n):e}function Qi(e){return e.split("-")[0]}function Sl(e){return e.split("-")[1]}function Yv(e){return e==="x"?"y":"x"}function Xv(e){return e==="y"?"height":"width"}const uU=new Set(["top","bottom"]);function hi(e){return uU.has(Qi(e))?"y":"x"}function Jv(e){return Yv(hi(e))}function dU(e,n,r){r===void 0&&(r=!1);const i=Sl(e),s=Jv(e),a=Xv(s);let o=s==="x"?i===(r?"end":"start")?"right":"left":i==="start"?"bottom":"top";return n.reference[a]>n.floating[a]&&(o=Yh(o)),[o,Yh(o)]}function hU(e){const n=Yh(e);return[b0(e),n,b0(n)]}function b0(e){return e.replace(/start|end/g,n=>cU[n])}const sk=["left","right"],ak=["right","left"],fU=["top","bottom"],mU=["bottom","top"];function pU(e,n,r){switch(e){case"top":case"bottom":return r?n?ak:sk:n?sk:ak;case"left":case"right":return n?fU:mU;default:return[]}}function gU(e,n,r,i){const s=Sl(e);let a=pU(Qi(e),r==="start",i);return s&&(a=a.map(o=>o+"-"+s),n&&(a=a.concat(a.map(b0)))),a}function Yh(e){return e.replace(/left|right|bottom|top/g,n=>lU[n])}function xU(e){return{top:0,right:0,bottom:0,left:0,...e}}function $E(e){return typeof e!="number"?xU(e):{top:e,right:e,bottom:e,left:e}}function Xh(e){const{x:n,y:r,width:i,height:s}=e;return{width:i,height:s,top:r,left:n,right:n+i,bottom:r+s,x:n,y:r}}function ok(e,n,r){let{reference:i,floating:s}=e;const a=hi(n),o=Jv(n),c=Xv(o),d=Qi(n),f=a==="y",h=i.x+i.width/2-s.width/2,m=i.y+i.height/2-s.height/2,p=i[c]/2-s[c]/2;let g;switch(d){case"top":g={x:h,y:i.y-s.height};break;case"bottom":g={x:h,y:i.y+i.height};break;case"right":g={x:i.x+i.width,y:m};break;case"left":g={x:i.x-s.width,y:m};break;default:g={x:i.x,y:i.y}}switch(Sl(n)){case"start":g[o]-=p*(r&&f?-1:1);break;case"end":g[o]+=p*(r&&f?-1:1);break}return g}const yU=async(e,n,r)=>{const{placement:i="bottom",strategy:s="absolute",middleware:a=[],platform:o}=r,c=a.filter(Boolean),d=await(o.isRTL==null?void 0:o.isRTL(n));let f=await o.getElementRects({reference:e,floating:n,strategy:s}),{x:h,y:m}=ok(f,i,d),p=i,g={},b=0;for(let j=0;j<c.length;j++){const{name:y,fn:x}=c[j],{x:N,y:w,data:k,reset:A}=await x({x:h,y:m,initialPlacement:i,placement:p,strategy:s,middlewareData:g,rects:f,platform:o,elements:{reference:e,floating:n}});h=N??h,m=w??m,g={...g,[y]:{...g[y],...k}},A&&b<=50&&(b++,typeof A=="object"&&(A.placement&&(p=A.placement),A.rects&&(f=A.rects===!0?await o.getElementRects({reference:e,floating:n,strategy:s}):A.rects),{x:h,y:m}=ok(f,p,d)),j=-1)}return{x:h,y:m,placement:p,strategy:s,middlewareData:g}};async function cu(e,n){var r;n===void 0&&(n={});const{x:i,y:s,platform:a,rects:o,elements:c,strategy:d}=e,{boundary:f="clippingAncestors",rootBoundary:h="viewport",elementContext:m="floating",altBoundary:p=!1,padding:g=0}=Gi(n,e),b=$E(g),y=c[p?m==="floating"?"reference":"floating":m],x=Xh(await a.getClippingRect({element:(r=await(a.isElement==null?void 0:a.isElement(y)))==null||r?y:y.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(c.floating)),boundary:f,rootBoundary:h,strategy:d})),N=m==="floating"?{x:i,y:s,width:o.floating.width,height:o.floating.height}:o.reference,w=await(a.getOffsetParent==null?void 0:a.getOffsetParent(c.floating)),k=await(a.isElement==null?void 0:a.isElement(w))?await(a.getScale==null?void 0:a.getScale(w))||{x:1,y:1}:{x:1,y:1},A=Xh(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:N,offsetParent:w,strategy:d}):N);return{top:(x.top-A.top+b.top)/k.y,bottom:(A.bottom-x.bottom+b.bottom)/k.y,left:(x.left-A.left+b.left)/k.x,right:(A.right-x.right+b.right)/k.x}}const vU=e=>({name:"arrow",options:e,async fn(n){const{x:r,y:i,placement:s,rects:a,platform:o,elements:c,middlewareData:d}=n,{element:f,padding:h=0}=Gi(e,n)||{};if(f==null)return{};const m=$E(h),p={x:r,y:i},g=Jv(s),b=Xv(g),j=await o.getDimensions(f),y=g==="y",x=y?"top":"left",N=y?"bottom":"right",w=y?"clientHeight":"clientWidth",k=a.reference[b]+a.reference[g]-p[g]-a.floating[b],A=p[g]-a.reference[g],S=await(o.getOffsetParent==null?void 0:o.getOffsetParent(f));let E=S?S[w]:0;(!E||!await(o.isElement==null?void 0:o.isElement(S)))&&(E=c.floating[w]||a.floating[b]);const C=k/2-A/2,B=E/2-j[b]/2-1,I=Qs(m[x],B),R=Qs(m[N],B),D=I,q=E-j[b]-R,z=E/2-j[b]/2+C,U=v0(D,z,q),Y=!d.arrow&&Sl(s)!=null&&z!==U&&a.reference[b]/2-(z<D?I:R)-j[b]/2<0,H=Y?z<D?z-D:z-q:0;return{[g]:p[g]+H,data:{[g]:U,centerOffset:z-U-H,...Y&&{alignmentOffset:H}},reset:Y}}}),bU=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(n){var r,i;const{placement:s,middlewareData:a,rects:o,initialPlacement:c,platform:d,elements:f}=n,{mainAxis:h=!0,crossAxis:m=!0,fallbackPlacements:p,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:b="none",flipAlignment:j=!0,...y}=Gi(e,n);if((r=a.arrow)!=null&&r.alignmentOffset)return{};const x=Qi(s),N=hi(c),w=Qi(c)===c,k=await(d.isRTL==null?void 0:d.isRTL(f.floating)),A=p||(w||!j?[Yh(c)]:hU(c)),S=b!=="none";!p&&S&&A.push(...gU(c,j,b,k));const E=[c,...A],C=await cu(n,y),B=[];let I=((i=a.flip)==null?void 0:i.overflows)||[];if(h&&B.push(C[x]),m){const z=dU(s,o,k);B.push(C[z[0]],C[z[1]])}if(I=[...I,{placement:s,overflows:B}],!B.every(z=>z<=0)){var R,D;const z=(((R=a.flip)==null?void 0:R.index)||0)+1,U=E[z];if(U&&(!(m==="alignment"?N!==hi(U):!1)||I.every(K=>hi(K.placement)===N?K.overflows[0]>0:!0)))return{data:{index:z,overflows:I},reset:{placement:U}};let Y=(D=I.filter(H=>H.overflows[0]<=0).sort((H,K)=>H.overflows[1]-K.overflows[1])[0])==null?void 0:D.placement;if(!Y)switch(g){case"bestFit":{var q;const H=(q=I.filter(K=>{if(S){const Q=hi(K.placement);return Q===N||Q==="y"}return!0}).map(K=>[K.placement,K.overflows.filter(Q=>Q>0).reduce((Q,O)=>Q+O,0)]).sort((K,Q)=>K[1]-Q[1])[0])==null?void 0:q[0];H&&(Y=H);break}case"initialPlacement":Y=c;break}if(s!==Y)return{reset:{placement:Y}}}return{}}}};function lk(e,n){return{top:e.top-n.height,right:e.right-n.width,bottom:e.bottom-n.height,left:e.left-n.width}}function ck(e){return oU.some(n=>e[n]>=0)}const jU=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(n){const{rects:r}=n,{strategy:i="referenceHidden",...s}=Gi(e,n);switch(i){case"referenceHidden":{const a=await cu(n,{...s,elementContext:"reference"}),o=lk(a,r.reference);return{data:{referenceHiddenOffsets:o,referenceHidden:ck(o)}}}case"escaped":{const a=await cu(n,{...s,altBoundary:!0}),o=lk(a,r.floating);return{data:{escapedOffsets:o,escaped:ck(o)}}}default:return{}}}}},HE=new Set(["left","top"]);async function wU(e,n){const{placement:r,platform:i,elements:s}=e,a=await(i.isRTL==null?void 0:i.isRTL(s.floating)),o=Qi(r),c=Sl(r),d=hi(r)==="y",f=HE.has(o)?-1:1,h=a&&d?-1:1,m=Gi(n,e);let{mainAxis:p,crossAxis:g,alignmentAxis:b}=typeof m=="number"?{mainAxis:m,crossAxis:0,alignmentAxis:null}:{mainAxis:m.mainAxis||0,crossAxis:m.crossAxis||0,alignmentAxis:m.alignmentAxis};return c&&typeof b=="number"&&(g=c==="end"?b*-1:b),d?{x:g*h,y:p*f}:{x:p*f,y:g*h}}const NU=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(n){var r,i;const{x:s,y:a,placement:o,middlewareData:c}=n,d=await wU(n,e);return o===((r=c.offset)==null?void 0:r.placement)&&(i=c.arrow)!=null&&i.alignmentOffset?{}:{x:s+d.x,y:a+d.y,data:{...d,placement:o}}}}},kU=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(n){const{x:r,y:i,placement:s}=n,{mainAxis:a=!0,crossAxis:o=!1,limiter:c={fn:y=>{let{x,y:N}=y;return{x,y:N}}},...d}=Gi(e,n),f={x:r,y:i},h=await cu(n,d),m=hi(Qi(s)),p=Yv(m);let g=f[p],b=f[m];if(a){const y=p==="y"?"top":"left",x=p==="y"?"bottom":"right",N=g+h[y],w=g-h[x];g=v0(N,g,w)}if(o){const y=m==="y"?"top":"left",x=m==="y"?"bottom":"right",N=b+h[y],w=b-h[x];b=v0(N,b,w)}const j=c.fn({...n,[p]:g,[m]:b});return{...j,data:{x:j.x-r,y:j.y-i,enabled:{[p]:a,[m]:o}}}}}},_U=function(e){return e===void 0&&(e={}),{options:e,fn(n){const{x:r,y:i,placement:s,rects:a,middlewareData:o}=n,{offset:c=0,mainAxis:d=!0,crossAxis:f=!0}=Gi(e,n),h={x:r,y:i},m=hi(s),p=Yv(m);let g=h[p],b=h[m];const j=Gi(c,n),y=typeof j=="number"?{mainAxis:j,crossAxis:0}:{mainAxis:0,crossAxis:0,...j};if(d){const w=p==="y"?"height":"width",k=a.reference[p]-a.floating[w]+y.mainAxis,A=a.reference[p]+a.reference[w]-y.mainAxis;g<k?g=k:g>A&&(g=A)}if(f){var x,N;const w=p==="y"?"width":"height",k=HE.has(Qi(s)),A=a.reference[m]-a.floating[w]+(k&&((x=o.offset)==null?void 0:x[m])||0)+(k?0:y.crossAxis),S=a.reference[m]+a.reference[w]+(k?0:((N=o.offset)==null?void 0:N[m])||0)-(k?y.crossAxis:0);b<A?b=A:b>S&&(b=S)}return{[p]:g,[m]:b}}}},SU=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(n){var r,i;const{placement:s,rects:a,platform:o,elements:c}=n,{apply:d=()=>{},...f}=Gi(e,n),h=await cu(n,f),m=Qi(s),p=Sl(s),g=hi(s)==="y",{width:b,height:j}=a.floating;let y,x;m==="top"||m==="bottom"?(y=m,x=p===(await(o.isRTL==null?void 0:o.isRTL(c.floating))?"start":"end")?"left":"right"):(x=m,y=p==="end"?"top":"bottom");const N=j-h.top-h.bottom,w=b-h.left-h.right,k=Qs(j-h[y],N),A=Qs(b-h[x],w),S=!n.middlewareData.shift;let E=k,C=A;if((r=n.middlewareData.shift)!=null&&r.enabled.x&&(C=w),(i=n.middlewareData.shift)!=null&&i.enabled.y&&(E=N),S&&!p){const I=ur(h.left,0),R=ur(h.right,0),D=ur(h.top,0),q=ur(h.bottom,0);g?C=b-2*(I!==0||R!==0?I+R:ur(h.left,h.right)):E=j-2*(D!==0||q!==0?D+q:ur(h.top,h.bottom))}await d({...n,availableWidth:C,availableHeight:E});const B=await o.getDimensions(c.floating);return b!==B.width||j!==B.height?{reset:{rects:!0}}:{}}}};function kf(){return typeof window<"u"}function Al(e){return WE(e)?(e.nodeName||"").toLowerCase():"#document"}function mr(e){var n;return(e==null||(n=e.ownerDocument)==null?void 0:n.defaultView)||window}function ki(e){var n;return(n=(WE(e)?e.ownerDocument:e.document)||window.document)==null?void 0:n.documentElement}function WE(e){return kf()?e instanceof Node||e instanceof mr(e).Node:!1}function Wr(e){return kf()?e instanceof Element||e instanceof mr(e).Element:!1}function vi(e){return kf()?e instanceof HTMLElement||e instanceof mr(e).HTMLElement:!1}function uk(e){return!kf()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof mr(e).ShadowRoot}const AU=new Set(["inline","contents"]);function Du(e){const{overflow:n,overflowX:r,overflowY:i,display:s}=Kr(e);return/auto|scroll|overlay|hidden|clip/.test(n+i+r)&&!AU.has(s)}const CU=new Set(["table","td","th"]);function EU(e){return CU.has(Al(e))}const TU=[":popover-open",":modal"];function _f(e){return TU.some(n=>{try{return e.matches(n)}catch{return!1}})}const PU=["transform","translate","scale","rotate","perspective"],OU=["transform","translate","scale","rotate","perspective","filter"],DU=["paint","layout","strict","content"];function Zv(e){const n=eb(),r=Wr(e)?Kr(e):e;return PU.some(i=>r[i]?r[i]!=="none":!1)||(r.containerType?r.containerType!=="normal":!1)||!n&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!n&&(r.filter?r.filter!=="none":!1)||OU.some(i=>(r.willChange||"").includes(i))||DU.some(i=>(r.contain||"").includes(i))}function IU(e){let n=Ys(e);for(;vi(n)&&!ml(n);){if(Zv(n))return n;if(_f(n))return null;n=Ys(n)}return null}function eb(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const RU=new Set(["html","body","#document"]);function ml(e){return RU.has(Al(e))}function Kr(e){return mr(e).getComputedStyle(e)}function Sf(e){return Wr(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Ys(e){if(Al(e)==="html")return e;const n=e.assignedSlot||e.parentNode||uk(e)&&e.host||ki(e);return uk(n)?n.host:n}function KE(e){const n=Ys(e);return ml(n)?e.ownerDocument?e.ownerDocument.body:e.body:vi(n)&&Du(n)?n:KE(n)}function uu(e,n,r){var i;n===void 0&&(n=[]),r===void 0&&(r=!0);const s=KE(e),a=s===((i=e.ownerDocument)==null?void 0:i.body),o=mr(s);if(a){const c=j0(o);return n.concat(o,o.visualViewport||[],Du(s)?s:[],c&&r?uu(c):[])}return n.concat(s,uu(s,[],r))}function j0(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function GE(e){const n=Kr(e);let r=parseFloat(n.width)||0,i=parseFloat(n.height)||0;const s=vi(e),a=s?e.offsetWidth:r,o=s?e.offsetHeight:i,c=Qh(r)!==a||Qh(i)!==o;return c&&(r=a,i=o),{width:r,height:i,$:c}}function tb(e){return Wr(e)?e:e.contextElement}function Ho(e){const n=tb(e);if(!vi(n))return xi(1);const r=n.getBoundingClientRect(),{width:i,height:s,$:a}=GE(n);let o=(a?Qh(r.width):r.width)/i,c=(a?Qh(r.height):r.height)/s;return(!o||!Number.isFinite(o))&&(o=1),(!c||!Number.isFinite(c))&&(c=1),{x:o,y:c}}const FU=xi(0);function QE(e){const n=mr(e);return!eb()||!n.visualViewport?FU:{x:n.visualViewport.offsetLeft,y:n.visualViewport.offsetTop}}function MU(e,n,r){return n===void 0&&(n=!1),!r||n&&r!==mr(e)?!1:n}function $a(e,n,r,i){n===void 0&&(n=!1),r===void 0&&(r=!1);const s=e.getBoundingClientRect(),a=tb(e);let o=xi(1);n&&(i?Wr(i)&&(o=Ho(i)):o=Ho(e));const c=MU(a,r,i)?QE(a):xi(0);let d=(s.left+c.x)/o.x,f=(s.top+c.y)/o.y,h=s.width/o.x,m=s.height/o.y;if(a){const p=mr(a),g=i&&Wr(i)?mr(i):i;let b=p,j=j0(b);for(;j&&i&&g!==b;){const y=Ho(j),x=j.getBoundingClientRect(),N=Kr(j),w=x.left+(j.clientLeft+parseFloat(N.paddingLeft))*y.x,k=x.top+(j.clientTop+parseFloat(N.paddingTop))*y.y;d*=y.x,f*=y.y,h*=y.x,m*=y.y,d+=w,f+=k,b=mr(j),j=j0(b)}}return Xh({width:h,height:m,x:d,y:f})}function Af(e,n){const r=Sf(e).scrollLeft;return n?n.left+r:$a(ki(e)).left+r}function YE(e,n){const r=e.getBoundingClientRect(),i=r.left+n.scrollLeft-Af(e,r),s=r.top+n.scrollTop;return{x:i,y:s}}function LU(e){let{elements:n,rect:r,offsetParent:i,strategy:s}=e;const a=s==="fixed",o=ki(i),c=n?_f(n.floating):!1;if(i===o||c&&a)return r;let d={scrollLeft:0,scrollTop:0},f=xi(1);const h=xi(0),m=vi(i);if((m||!m&&!a)&&((Al(i)!=="body"||Du(o))&&(d=Sf(i)),vi(i))){const g=$a(i);f=Ho(i),h.x=g.x+i.clientLeft,h.y=g.y+i.clientTop}const p=o&&!m&&!a?YE(o,d):xi(0);return{width:r.width*f.x,height:r.height*f.y,x:r.x*f.x-d.scrollLeft*f.x+h.x+p.x,y:r.y*f.y-d.scrollTop*f.y+h.y+p.y}}function BU(e){return Array.from(e.getClientRects())}function qU(e){const n=ki(e),r=Sf(e),i=e.ownerDocument.body,s=ur(n.scrollWidth,n.clientWidth,i.scrollWidth,i.clientWidth),a=ur(n.scrollHeight,n.clientHeight,i.scrollHeight,i.clientHeight);let o=-r.scrollLeft+Af(e);const c=-r.scrollTop;return Kr(i).direction==="rtl"&&(o+=ur(n.clientWidth,i.clientWidth)-s),{width:s,height:a,x:o,y:c}}const dk=25;function zU(e,n){const r=mr(e),i=ki(e),s=r.visualViewport;let a=i.clientWidth,o=i.clientHeight,c=0,d=0;if(s){a=s.width,o=s.height;const h=eb();(!h||h&&n==="fixed")&&(c=s.offsetLeft,d=s.offsetTop)}const f=Af(i);if(f<=0){const h=i.ownerDocument,m=h.body,p=getComputedStyle(m),g=h.compatMode==="CSS1Compat"&&parseFloat(p.marginLeft)+parseFloat(p.marginRight)||0,b=Math.abs(i.clientWidth-m.clientWidth-g);b<=dk&&(a-=b)}else f<=dk&&(a+=f);return{width:a,height:o,x:c,y:d}}const VU=new Set(["absolute","fixed"]);function UU(e,n){const r=$a(e,!0,n==="fixed"),i=r.top+e.clientTop,s=r.left+e.clientLeft,a=vi(e)?Ho(e):xi(1),o=e.clientWidth*a.x,c=e.clientHeight*a.y,d=s*a.x,f=i*a.y;return{width:o,height:c,x:d,y:f}}function hk(e,n,r){let i;if(n==="viewport")i=zU(e,r);else if(n==="document")i=qU(ki(e));else if(Wr(n))i=UU(n,r);else{const s=QE(e);i={x:n.x-s.x,y:n.y-s.y,width:n.width,height:n.height}}return Xh(i)}function XE(e,n){const r=Ys(e);return r===n||!Wr(r)||ml(r)?!1:Kr(r).position==="fixed"||XE(r,n)}function $U(e,n){const r=n.get(e);if(r)return r;let i=uu(e,[],!1).filter(c=>Wr(c)&&Al(c)!=="body"),s=null;const a=Kr(e).position==="fixed";let o=a?Ys(e):e;for(;Wr(o)&&!ml(o);){const c=Kr(o),d=Zv(o);!d&&c.position==="fixed"&&(s=null),(a?!d&&!s:!d&&c.position==="static"&&!!s&&VU.has(s.position)||Du(o)&&!d&&XE(e,o))?i=i.filter(h=>h!==o):s=c,o=Ys(o)}return n.set(e,i),i}function HU(e){let{element:n,boundary:r,rootBoundary:i,strategy:s}=e;const o=[...r==="clippingAncestors"?_f(n)?[]:$U(n,this._c):[].concat(r),i],c=o[0],d=o.reduce((f,h)=>{const m=hk(n,h,s);return f.top=ur(m.top,f.top),f.right=Qs(m.right,f.right),f.bottom=Qs(m.bottom,f.bottom),f.left=ur(m.left,f.left),f},hk(n,c,s));return{width:d.right-d.left,height:d.bottom-d.top,x:d.left,y:d.top}}function WU(e){const{width:n,height:r}=GE(e);return{width:n,height:r}}function KU(e,n,r){const i=vi(n),s=ki(n),a=r==="fixed",o=$a(e,!0,a,n);let c={scrollLeft:0,scrollTop:0};const d=xi(0);function f(){d.x=Af(s)}if(i||!i&&!a)if((Al(n)!=="body"||Du(s))&&(c=Sf(n)),i){const g=$a(n,!0,a,n);d.x=g.x+n.clientLeft,d.y=g.y+n.clientTop}else s&&f();a&&!i&&s&&f();const h=s&&!i&&!a?YE(s,c):xi(0),m=o.left+c.scrollLeft-d.x-h.x,p=o.top+c.scrollTop-d.y-h.y;return{x:m,y:p,width:o.width,height:o.height}}function pg(e){return Kr(e).position==="static"}function fk(e,n){if(!vi(e)||Kr(e).position==="fixed")return null;if(n)return n(e);let r=e.offsetParent;return ki(e)===r&&(r=r.ownerDocument.body),r}function JE(e,n){const r=mr(e);if(_f(e))return r;if(!vi(e)){let s=Ys(e);for(;s&&!ml(s);){if(Wr(s)&&!pg(s))return s;s=Ys(s)}return r}let i=fk(e,n);for(;i&&EU(i)&&pg(i);)i=fk(i,n);return i&&ml(i)&&pg(i)&&!Zv(i)?r:i||IU(e)||r}const GU=async function(e){const n=this.getOffsetParent||JE,r=this.getDimensions,i=await r(e.floating);return{reference:KU(e.reference,await n(e.floating),e.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function QU(e){return Kr(e).direction==="rtl"}const YU={convertOffsetParentRelativeRectToViewportRelativeRect:LU,getDocumentElement:ki,getClippingRect:HU,getOffsetParent:JE,getElementRects:GU,getClientRects:BU,getDimensions:WU,getScale:Ho,isElement:Wr,isRTL:QU};function ZE(e,n){return e.x===n.x&&e.y===n.y&&e.width===n.width&&e.height===n.height}function XU(e,n){let r=null,i;const s=ki(e);function a(){var c;clearTimeout(i),(c=r)==null||c.disconnect(),r=null}function o(c,d){c===void 0&&(c=!1),d===void 0&&(d=1),a();const f=e.getBoundingClientRect(),{left:h,top:m,width:p,height:g}=f;if(c||n(),!p||!g)return;const b=ih(m),j=ih(s.clientWidth-(h+p)),y=ih(s.clientHeight-(m+g)),x=ih(h),w={rootMargin:-b+"px "+-j+"px "+-y+"px "+-x+"px",threshold:ur(0,Qs(1,d))||1};let k=!0;function A(S){const E=S[0].intersectionRatio;if(E!==d){if(!k)return o();E?o(!1,E):i=setTimeout(()=>{o(!1,1e-7)},1e3)}E===1&&!ZE(f,e.getBoundingClientRect())&&o(),k=!1}try{r=new IntersectionObserver(A,{...w,root:s.ownerDocument})}catch{r=new IntersectionObserver(A,w)}r.observe(e)}return o(!0),a}function JU(e,n,r,i){i===void 0&&(i={});const{ancestorScroll:s=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:d=!1}=i,f=tb(e),h=s||a?[...f?uu(f):[],...uu(n)]:[];h.forEach(x=>{s&&x.addEventListener("scroll",r,{passive:!0}),a&&x.addEventListener("resize",r)});const m=f&&c?XU(f,r):null;let p=-1,g=null;o&&(g=new ResizeObserver(x=>{let[N]=x;N&&N.target===f&&g&&(g.unobserve(n),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var w;(w=g)==null||w.observe(n)})),r()}),f&&!d&&g.observe(f),g.observe(n));let b,j=d?$a(e):null;d&&y();function y(){const x=$a(e);j&&!ZE(j,x)&&r(),j=x,b=requestAnimationFrame(y)}return r(),()=>{var x;h.forEach(N=>{s&&N.removeEventListener("scroll",r),a&&N.removeEventListener("resize",r)}),m==null||m(),(x=g)==null||x.disconnect(),g=null,d&&cancelAnimationFrame(b)}}const ZU=NU,e$=kU,t$=bU,n$=SU,r$=jU,mk=vU,i$=_U,s$=(e,n,r)=>{const i=new Map,s={platform:YU,...r},a={...s.platform,_c:i};return yU(e,n,{...s,platform:a})};var a$=typeof document<"u",o$=function(){},Th=a$?F.useLayoutEffect:o$;function Jh(e,n){if(e===n)return!0;if(typeof e!=typeof n)return!1;if(typeof e=="function"&&e.toString()===n.toString())return!0;let r,i,s;if(e&&n&&typeof e=="object"){if(Array.isArray(e)){if(r=e.length,r!==n.length)return!1;for(i=r;i--!==0;)if(!Jh(e[i],n[i]))return!1;return!0}if(s=Object.keys(e),r=s.length,r!==Object.keys(n).length)return!1;for(i=r;i--!==0;)if(!{}.hasOwnProperty.call(n,s[i]))return!1;for(i=r;i--!==0;){const a=s[i];if(!(a==="_owner"&&e.$$typeof)&&!Jh(e[a],n[a]))return!1}return!0}return e!==e&&n!==n}function eT(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function pk(e,n){const r=eT(e);return Math.round(n*r)/r}function gg(e){const n=F.useRef(e);return Th(()=>{n.current=e}),n}function l$(e){e===void 0&&(e={});const{placement:n="bottom",strategy:r="absolute",middleware:i=[],platform:s,elements:{reference:a,floating:o}={},transform:c=!0,whileElementsMounted:d,open:f}=e,[h,m]=F.useState({x:0,y:0,strategy:r,placement:n,middlewareData:{},isPositioned:!1}),[p,g]=F.useState(i);Jh(p,i)||g(i);const[b,j]=F.useState(null),[y,x]=F.useState(null),N=F.useCallback(K=>{K!==S.current&&(S.current=K,j(K))},[]),w=F.useCallback(K=>{K!==E.current&&(E.current=K,x(K))},[]),k=a||b,A=o||y,S=F.useRef(null),E=F.useRef(null),C=F.useRef(h),B=d!=null,I=gg(d),R=gg(s),D=gg(f),q=F.useCallback(()=>{if(!S.current||!E.current)return;const K={placement:n,strategy:r,middleware:p};R.current&&(K.platform=R.current),s$(S.current,E.current,K).then(Q=>{const O={...Q,isPositioned:D.current!==!1};z.current&&!Jh(C.current,O)&&(C.current=O,ju.flushSync(()=>{m(O)}))})},[p,n,r,R,D]);Th(()=>{f===!1&&C.current.isPositioned&&(C.current.isPositioned=!1,m(K=>({...K,isPositioned:!1})))},[f]);const z=F.useRef(!1);Th(()=>(z.current=!0,()=>{z.current=!1}),[]),Th(()=>{if(k&&(S.current=k),A&&(E.current=A),k&&A){if(I.current)return I.current(k,A,q);q()}},[k,A,q,I,B]);const U=F.useMemo(()=>({reference:S,floating:E,setReference:N,setFloating:w}),[N,w]),Y=F.useMemo(()=>({reference:k,floating:A}),[k,A]),H=F.useMemo(()=>{const K={position:r,left:0,top:0};if(!Y.floating)return K;const Q=pk(Y.floating,h.x),O=pk(Y.floating,h.y);return c?{...K,transform:"translate("+Q+"px, "+O+"px)",...eT(Y.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:Q,top:O}},[r,c,Y.floating,h.x,h.y]);return F.useMemo(()=>({...h,update:q,refs:U,elements:Y,floatingStyles:H}),[h,q,U,Y,H])}const c$=e=>{function n(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:e,fn(r){const{element:i,padding:s}=typeof e=="function"?e(r):e;return i&&n(i)?i.current!=null?mk({element:i.current,padding:s}).fn(r):{}:i?mk({element:i,padding:s}).fn(r):{}}}},u$=(e,n)=>({...ZU(e),options:[e,n]}),d$=(e,n)=>({...e$(e),options:[e,n]}),h$=(e,n)=>({...i$(e),options:[e,n]}),f$=(e,n)=>({...t$(e),options:[e,n]}),m$=(e,n)=>({...n$(e),options:[e,n]}),p$=(e,n)=>({...r$(e),options:[e,n]}),g$=(e,n)=>({...c$(e),options:[e,n]});var x$="Arrow",tT=F.forwardRef((e,n)=>{const{children:r,width:i=10,height:s=5,...a}=e;return t.jsx(jt.svg,{...a,ref:n,width:i,height:s,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:t.jsx("polygon",{points:"0,0 30,0 15,10"})})});tT.displayName=x$;var y$=tT;function nb(e){const[n,r]=F.useState(void 0);return In(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});const i=new ResizeObserver(s=>{if(!Array.isArray(s)||!s.length)return;const a=s[0];let o,c;if("borderBoxSize"in a){const d=a.borderBoxSize,f=Array.isArray(d)?d[0]:d;o=f.inlineSize,c=f.blockSize}else o=e.offsetWidth,c=e.offsetHeight;r({width:o,height:c})});return i.observe(e,{box:"border-box"}),()=>i.unobserve(e)}else r(void 0)},[e]),n}var rb="Popper",[nT,rT]=Za(rb),[v$,iT]=nT(rb),sT=e=>{const{__scopePopper:n,children:r}=e,[i,s]=F.useState(null);return t.jsx(v$,{scope:n,anchor:i,onAnchorChange:s,children:r})};sT.displayName=rb;var aT="PopperAnchor",oT=F.forwardRef((e,n)=>{const{__scopePopper:r,virtualRef:i,...s}=e,a=iT(aT,r),o=F.useRef(null),c=Qt(n,o),d=F.useRef(null);return F.useEffect(()=>{const f=d.current;d.current=(i==null?void 0:i.current)||o.current,f!==d.current&&a.onAnchorChange(d.current)}),i?null:t.jsx(jt.div,{...s,ref:c})});oT.displayName=aT;var ib="PopperContent",[b$,j$]=nT(ib),lT=F.forwardRef((e,n)=>{var G,te,re,le,ye,be;const{__scopePopper:r,side:i="bottom",sideOffset:s=0,align:a="center",alignOffset:o=0,arrowPadding:c=0,avoidCollisions:d=!0,collisionBoundary:f=[],collisionPadding:h=0,sticky:m="partial",hideWhenDetached:p=!1,updatePositionStrategy:g="optimized",onPlaced:b,...j}=e,y=iT(ib,r),[x,N]=F.useState(null),w=Qt(n,Pe=>N(Pe)),[k,A]=F.useState(null),S=nb(k),E=(S==null?void 0:S.width)??0,C=(S==null?void 0:S.height)??0,B=i+(a!=="center"?"-"+a:""),I=typeof h=="number"?h:{top:0,right:0,bottom:0,left:0,...h},R=Array.isArray(f)?f:[f],D=R.length>0,q={padding:I,boundary:R.filter(N$),altBoundary:D},{refs:z,floatingStyles:U,placement:Y,isPositioned:H,middlewareData:K}=l$({strategy:"fixed",placement:B,whileElementsMounted:(...Pe)=>JU(...Pe,{animationFrame:g==="always"}),elements:{reference:y.anchor},middleware:[u$({mainAxis:s+C,alignmentAxis:o}),d&&d$({mainAxis:!0,crossAxis:!1,limiter:m==="partial"?h$():void 0,...q}),d&&f$({...q}),m$({...q,apply:({elements:Pe,rects:Te,availableWidth:We,availableHeight:ut})=>{const{width:nt,height:ge}=Te.reference,ve=Pe.floating.style;ve.setProperty("--radix-popper-available-width",`${We}px`),ve.setProperty("--radix-popper-available-height",`${ut}px`),ve.setProperty("--radix-popper-anchor-width",`${nt}px`),ve.setProperty("--radix-popper-anchor-height",`${ge}px`)}}),k&&g$({element:k,padding:c}),k$({arrowWidth:E,arrowHeight:C}),p&&p$({strategy:"referenceHidden",...q})]}),[Q,O]=dT(Y),T=Gs(b);In(()=>{H&&(T==null||T())},[H,T]);const V=(G=K.arrow)==null?void 0:G.x,L=(te=K.arrow)==null?void 0:te.y,X=((re=K.arrow)==null?void 0:re.centerOffset)!==0,[J,W]=F.useState();return In(()=>{x&&W(window.getComputedStyle(x).zIndex)},[x]),t.jsx("div",{ref:z.setFloating,"data-radix-popper-content-wrapper":"",style:{...U,transform:H?U.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:J,"--radix-popper-transform-origin":[(le=K.transformOrigin)==null?void 0:le.x,(ye=K.transformOrigin)==null?void 0:ye.y].join(" "),...((be=K.hide)==null?void 0:be.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:t.jsx(b$,{scope:r,placedSide:Q,onArrowChange:A,arrowX:V,arrowY:L,shouldHideArrow:X,children:t.jsx(jt.div,{"data-side":Q,"data-align":O,...j,ref:w,style:{...j.style,animation:H?void 0:"none"}})})})});lT.displayName=ib;var cT="PopperArrow",w$={top:"bottom",right:"left",bottom:"top",left:"right"},uT=F.forwardRef(function(n,r){const{__scopePopper:i,...s}=n,a=j$(cT,i),o=w$[a.placedSide];return t.jsx("span",{ref:a.onArrowChange,style:{position:"absolute",left:a.arrowX,top:a.arrowY,[o]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[a.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[a.placedSide],visibility:a.shouldHideArrow?"hidden":void 0},children:t.jsx(y$,{...s,ref:r,style:{...s.style,display:"block"}})})});uT.displayName=cT;function N$(e){return e!==null}var k$=e=>({name:"transformOrigin",options:e,fn(n){var y,x,N;const{placement:r,rects:i,middlewareData:s}=n,o=((y=s.arrow)==null?void 0:y.centerOffset)!==0,c=o?0:e.arrowWidth,d=o?0:e.arrowHeight,[f,h]=dT(r),m={start:"0%",center:"50%",end:"100%"}[h],p=(((x=s.arrow)==null?void 0:x.x)??0)+c/2,g=(((N=s.arrow)==null?void 0:N.y)??0)+d/2;let b="",j="";return f==="bottom"?(b=o?m:`${p}px`,j=`${-d}px`):f==="top"?(b=o?m:`${p}px`,j=`${i.floating.height+d}px`):f==="right"?(b=`${-d}px`,j=o?m:`${g}px`):f==="left"&&(b=`${i.floating.width+d}px`,j=o?m:`${g}px`),{data:{x:b,y:j}}}});function dT(e){const[n,r="center"]=e.split("-");return[n,r]}var _$=sT,S$=oT,A$=lT,C$=uT,E$="Portal",hT=F.forwardRef((e,n)=>{var c;const{container:r,...i}=e,[s,a]=F.useState(!1);In(()=>a(!0),[]);const o=r||s&&((c=globalThis==null?void 0:globalThis.document)==null?void 0:c.body);return o?OR.createPortal(t.jsx(jt.div,{...i,ref:n}),o):null});hT.displayName=E$;var T$=Q0[" useInsertionEffect ".trim().toString()]||In;function pl({prop:e,defaultProp:n,onChange:r=()=>{},caller:i}){const[s,a,o]=P$({defaultProp:n,onChange:r}),c=e!==void 0,d=c?e:s;{const h=F.useRef(e!==void 0);F.useEffect(()=>{const m=h.current;m!==c&&console.warn(`${i} is changing from ${m?"controlled":"uncontrolled"} to ${c?"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.`),h.current=c},[c,i])}const f=F.useCallback(h=>{var m;if(c){const p=O$(h)?h(e):h;p!==e&&((m=o.current)==null||m.call(o,p))}else a(h)},[c,e,a,o]);return[d,f]}function P$({defaultProp:e,onChange:n}){const[r,i]=F.useState(e),s=F.useRef(r),a=F.useRef(n);return T$(()=>{a.current=n},[n]),F.useEffect(()=>{var o;s.current!==r&&((o=a.current)==null||o.call(a,r),s.current=r)},[r,s]),[r,i,a]}function O$(e){return typeof e=="function"}function sb(e){const n=F.useRef({value:e,previous:e});return F.useMemo(()=>(n.current.value!==e&&(n.current.previous=n.current.value,n.current.value=e),n.current.previous),[e])}var fT=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"}),D$="VisuallyHidden",I$=F.forwardRef((e,n)=>t.jsx(jt.span,{...e,ref:n,style:{...fT,...e.style}}));I$.displayName=D$;var R$=function(e){if(typeof document>"u")return null;var n=Array.isArray(e)?e[0]:e;return n.ownerDocument.body},Eo=new WeakMap,sh=new WeakMap,ah={},xg=0,mT=function(e){return e&&(e.host||mT(e.parentNode))},F$=function(e,n){return n.map(function(r){if(e.contains(r))return r;var i=mT(r);return i&&e.contains(i)?i:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},M$=function(e,n,r,i){var s=F$(n,Array.isArray(e)?e:[e]);ah[r]||(ah[r]=new WeakMap);var a=ah[r],o=[],c=new Set,d=new Set(s),f=function(m){!m||c.has(m)||(c.add(m),f(m.parentNode))};s.forEach(f);var h=function(m){!m||d.has(m)||Array.prototype.forEach.call(m.children,function(p){if(c.has(p))h(p);else try{var g=p.getAttribute(i),b=g!==null&&g!=="false",j=(Eo.get(p)||0)+1,y=(a.get(p)||0)+1;Eo.set(p,j),a.set(p,y),o.push(p),j===1&&b&&sh.set(p,!0),y===1&&p.setAttribute(r,"true"),b||p.setAttribute(i,"true")}catch(x){console.error("aria-hidden: cannot operate on ",p,x)}})};return h(n),c.clear(),xg++,function(){o.forEach(function(m){var p=Eo.get(m)-1,g=a.get(m)-1;Eo.set(m,p),a.set(m,g),p||(sh.has(m)||m.removeAttribute(i),sh.delete(m)),g||m.removeAttribute(r)}),xg--,xg||(Eo=new WeakMap,Eo=new WeakMap,sh=new WeakMap,ah={})}},L$=function(e,n,r){r===void 0&&(r="data-aria-hidden");var i=Array.from(Array.isArray(e)?e:[e]),s=R$(e);return s?(i.push.apply(i,Array.from(s.querySelectorAll("[aria-live], script"))),M$(i,s,r,"aria-hidden")):function(){return null}},ci=function(){return ci=Object.assign||function(n){for(var r,i=1,s=arguments.length;i<s;i++){r=arguments[i];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(n[a]=r[a])}return n},ci.apply(this,arguments)};function pT(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,i=Object.getOwnPropertySymbols(e);s<i.length;s++)n.indexOf(i[s])<0&&Object.prototype.propertyIsEnumerable.call(e,i[s])&&(r[i[s]]=e[i[s]]);return r}function B$(e,n,r){if(r||arguments.length===2)for(var i=0,s=n.length,a;i<s;i++)(a||!(i in n))&&(a||(a=Array.prototype.slice.call(n,0,i)),a[i]=n[i]);return e.concat(a||Array.prototype.slice.call(n))}var Ph="right-scroll-bar-position",Oh="width-before-scroll-bar",q$="with-scroll-bars-hidden",z$="--removed-body-scroll-bar-size";function yg(e,n){return typeof e=="function"?e(n):e&&(e.current=n),e}function V$(e,n){var r=F.useState(function(){return{value:e,callback:n,facade:{get current(){return r.value},set current(i){var s=r.value;s!==i&&(r.value=i,r.callback(i,s))}}}})[0];return r.callback=n,r.facade}var U$=typeof window<"u"?F.useLayoutEffect:F.useEffect,gk=new WeakMap;function $$(e,n){var r=V$(null,function(i){return e.forEach(function(s){return yg(s,i)})});return U$(function(){var i=gk.get(r);if(i){var s=new Set(i),a=new Set(e),o=r.current;s.forEach(function(c){a.has(c)||yg(c,null)}),a.forEach(function(c){s.has(c)||yg(c,o)})}gk.set(r,e)},[e]),r}function H$(e){return e}function W$(e,n){n===void 0&&(n=H$);var r=[],i=!1,s={read:function(){if(i)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]:e},useMedium:function(a){var o=n(a,i);return r.push(o),function(){r=r.filter(function(c){return c!==o})}},assignSyncMedium:function(a){for(i=!0;r.length;){var o=r;r=[],o.forEach(a)}r={push:function(c){return a(c)},filter:function(){return r}}},assignMedium:function(a){i=!0;var o=[];if(r.length){var c=r;r=[],c.forEach(a),o=r}var d=function(){var h=o;o=[],h.forEach(a)},f=function(){return Promise.resolve().then(d)};f(),r={push:function(h){o.push(h),f()},filter:function(h){return o=o.filter(h),r}}}};return s}function K$(e){e===void 0&&(e={});var n=W$(null);return n.options=ci({async:!0,ssr:!1},e),n}var gT=function(e){var n=e.sideCar,r=pT(e,["sideCar"]);if(!n)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var i=n.read();if(!i)throw new Error("Sidecar medium not found");return F.createElement(i,ci({},r))};gT.isSideCarExport=!0;function G$(e,n){return e.useMedium(n),gT}var xT=K$(),vg=function(){},Cf=F.forwardRef(function(e,n){var r=F.useRef(null),i=F.useState({onScrollCapture:vg,onWheelCapture:vg,onTouchMoveCapture:vg}),s=i[0],a=i[1],o=e.forwardProps,c=e.children,d=e.className,f=e.removeScrollBar,h=e.enabled,m=e.shards,p=e.sideCar,g=e.noRelative,b=e.noIsolation,j=e.inert,y=e.allowPinchZoom,x=e.as,N=x===void 0?"div":x,w=e.gapMode,k=pT(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),A=p,S=$$([r,n]),E=ci(ci({},k),s);return F.createElement(F.Fragment,null,h&&F.createElement(A,{sideCar:xT,removeScrollBar:f,shards:m,noRelative:g,noIsolation:b,inert:j,setCallbacks:a,allowPinchZoom:!!y,lockRef:r,gapMode:w}),o?F.cloneElement(F.Children.only(c),ci(ci({},E),{ref:S})):F.createElement(N,ci({},E,{className:d,ref:S}),c))});Cf.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Cf.classNames={fullWidth:Oh,zeroRight:Ph};var Q$=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Y$(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var n=Q$();return n&&e.setAttribute("nonce",n),e}function X$(e,n){e.styleSheet?e.styleSheet.cssText=n:e.appendChild(document.createTextNode(n))}function J$(e){var n=document.head||document.getElementsByTagName("head")[0];n.appendChild(e)}var Z$=function(){var e=0,n=null;return{add:function(r){e==0&&(n=Y$())&&(X$(n,r),J$(n)),e++},remove:function(){e--,!e&&n&&(n.parentNode&&n.parentNode.removeChild(n),n=null)}}},eH=function(){var e=Z$();return function(n,r){F.useEffect(function(){return e.add(n),function(){e.remove()}},[n&&r])}},yT=function(){var e=eH(),n=function(r){var i=r.styles,s=r.dynamic;return e(i,s),null};return n},tH={left:0,top:0,right:0,gap:0},bg=function(e){return parseInt(e||"",10)||0},nH=function(e){var n=window.getComputedStyle(document.body),r=n[e==="padding"?"paddingLeft":"marginLeft"],i=n[e==="padding"?"paddingTop":"marginTop"],s=n[e==="padding"?"paddingRight":"marginRight"];return[bg(r),bg(i),bg(s)]},rH=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return tH;var n=nH(e),r=document.documentElement.clientWidth,i=window.innerWidth;return{left:n[0],top:n[1],right:n[2],gap:Math.max(0,i-r+n[2]-n[0])}},iH=yT(),Wo="data-scroll-locked",sH=function(e,n,r,i){var s=e.left,a=e.top,o=e.right,c=e.gap;return r===void 0&&(r="margin"),`
  .`.concat(q$,` {
   overflow: hidden `).concat(i,`;
   padding-right: `).concat(c,"px ").concat(i,`;
  }
  body[`).concat(Wo,`] {
    overflow: hidden `).concat(i,`;
    overscroll-behavior: contain;
    `).concat([n&&"position: relative ".concat(i,";"),r==="margin"&&`
    padding-left: `.concat(s,`px;
    padding-top: `).concat(a,`px;
    padding-right: `).concat(o,`px;
    margin-left:0;
    margin-top:0;
    margin-right: `).concat(c,"px ").concat(i,`;
    `),r==="padding"&&"padding-right: ".concat(c,"px ").concat(i,";")].filter(Boolean).join(""),`
  }
  
  .`).concat(Ph,` {
    right: `).concat(c,"px ").concat(i,`;
  }
  
  .`).concat(Oh,` {
    margin-right: `).concat(c,"px ").concat(i,`;
  }
  
  .`).concat(Ph," .").concat(Ph,` {
    right: 0 `).concat(i,`;
  }
  
  .`).concat(Oh," .").concat(Oh,` {
    margin-right: 0 `).concat(i,`;
  }
  
  body[`).concat(Wo,`] {
    `).concat(z$,": ").concat(c,`px;
  }
`)},xk=function(){var e=parseInt(document.body.getAttribute(Wo)||"0",10);return isFinite(e)?e:0},aH=function(){F.useEffect(function(){return document.body.setAttribute(Wo,(xk()+1).toString()),function(){var e=xk()-1;e<=0?document.body.removeAttribute(Wo):document.body.setAttribute(Wo,e.toString())}},[])},oH=function(e){var n=e.noRelative,r=e.noImportant,i=e.gapMode,s=i===void 0?"margin":i;aH();var a=F.useMemo(function(){return rH(s)},[s]);return F.createElement(iH,{styles:sH(a,!n,s,r?"":"!important")})},w0=!1;if(typeof window<"u")try{var oh=Object.defineProperty({},"passive",{get:function(){return w0=!0,!0}});window.addEventListener("test",oh,oh),window.removeEventListener("test",oh,oh)}catch{w0=!1}var To=w0?{passive:!1}:!1,lH=function(e){return e.tagName==="TEXTAREA"},vT=function(e,n){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[n]!=="hidden"&&!(r.overflowY===r.overflowX&&!lH(e)&&r[n]==="visible")},cH=function(e){return vT(e,"overflowY")},uH=function(e){return vT(e,"overflowX")},yk=function(e,n){var r=n.ownerDocument,i=n;do{typeof ShadowRoot<"u"&&i instanceof ShadowRoot&&(i=i.host);var s=bT(e,i);if(s){var a=jT(e,i),o=a[1],c=a[2];if(o>c)return!0}i=i.parentNode}while(i&&i!==r.body);return!1},dH=function(e){var n=e.scrollTop,r=e.scrollHeight,i=e.clientHeight;return[n,r,i]},hH=function(e){var n=e.scrollLeft,r=e.scrollWidth,i=e.clientWidth;return[n,r,i]},bT=function(e,n){return e==="v"?cH(n):uH(n)},jT=function(e,n){return e==="v"?dH(n):hH(n)},fH=function(e,n){return e==="h"&&n==="rtl"?-1:1},mH=function(e,n,r,i,s){var a=fH(e,window.getComputedStyle(n).direction),o=a*i,c=r.target,d=n.contains(c),f=!1,h=o>0,m=0,p=0;do{if(!c)break;var g=jT(e,c),b=g[0],j=g[1],y=g[2],x=j-y-a*b;(b||x)&&bT(e,c)&&(m+=x,p+=b);var N=c.parentNode;c=N&&N.nodeType===Node.DOCUMENT_FRAGMENT_NODE?N.host:N}while(!d&&c!==document.body||d&&(n.contains(c)||n===c));return(h&&Math.abs(m)<1||!h&&Math.abs(p)<1)&&(f=!0),f},lh=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},vk=function(e){return[e.deltaX,e.deltaY]},bk=function(e){return e&&"current"in e?e.current:e},pH=function(e,n){return e[0]===n[0]&&e[1]===n[1]},gH=function(e){return`
  .block-interactivity-`.concat(e,` {pointer-events: none;}
  .allow-interactivity-`).concat(e,` {pointer-events: all;}
`)},xH=0,Po=[];function yH(e){var n=F.useRef([]),r=F.useRef([0,0]),i=F.useRef(),s=F.useState(xH++)[0],a=F.useState(yT)[0],o=F.useRef(e);F.useEffect(function(){o.current=e},[e]),F.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(s));var j=B$([e.lockRef.current],(e.shards||[]).map(bk),!0).filter(Boolean);return j.forEach(function(y){return y.classList.add("allow-interactivity-".concat(s))}),function(){document.body.classList.remove("block-interactivity-".concat(s)),j.forEach(function(y){return y.classList.remove("allow-interactivity-".concat(s))})}}},[e.inert,e.lockRef.current,e.shards]);var c=F.useCallback(function(j,y){if("touches"in j&&j.touches.length===2||j.type==="wheel"&&j.ctrlKey)return!o.current.allowPinchZoom;var x=lh(j),N=r.current,w="deltaX"in j?j.deltaX:N[0]-x[0],k="deltaY"in j?j.deltaY:N[1]-x[1],A,S=j.target,E=Math.abs(w)>Math.abs(k)?"h":"v";if("touches"in j&&E==="h"&&S.type==="range")return!1;var C=yk(E,S);if(!C)return!0;if(C?A=E:(A=E==="v"?"h":"v",C=yk(E,S)),!C)return!1;if(!i.current&&"changedTouches"in j&&(w||k)&&(i.current=A),!A)return!0;var B=i.current||A;return mH(B,y,j,B==="h"?w:k)},[]),d=F.useCallback(function(j){var y=j;if(!(!Po.length||Po[Po.length-1]!==a)){var x="deltaY"in y?vk(y):lh(y),N=n.current.filter(function(A){return A.name===y.type&&(A.target===y.target||y.target===A.shadowParent)&&pH(A.delta,x)})[0];if(N&&N.should){y.cancelable&&y.preventDefault();return}if(!N){var w=(o.current.shards||[]).map(bk).filter(Boolean).filter(function(A){return A.contains(y.target)}),k=w.length>0?c(y,w[0]):!o.current.noIsolation;k&&y.cancelable&&y.preventDefault()}}},[]),f=F.useCallback(function(j,y,x,N){var w={name:j,delta:y,target:x,should:N,shadowParent:vH(x)};n.current.push(w),setTimeout(function(){n.current=n.current.filter(function(k){return k!==w})},1)},[]),h=F.useCallback(function(j){r.current=lh(j),i.current=void 0},[]),m=F.useCallback(function(j){f(j.type,vk(j),j.target,c(j,e.lockRef.current))},[]),p=F.useCallback(function(j){f(j.type,lh(j),j.target,c(j,e.lockRef.current))},[]);F.useEffect(function(){return Po.push(a),e.setCallbacks({onScrollCapture:m,onWheelCapture:m,onTouchMoveCapture:p}),document.addEventListener("wheel",d,To),document.addEventListener("touchmove",d,To),document.addEventListener("touchstart",h,To),function(){Po=Po.filter(function(j){return j!==a}),document.removeEventListener("wheel",d,To),document.removeEventListener("touchmove",d,To),document.removeEventListener("touchstart",h,To)}},[]);var g=e.removeScrollBar,b=e.inert;return F.createElement(F.Fragment,null,b?F.createElement(a,{styles:gH(s)}):null,g?F.createElement(oH,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function vH(e){for(var n=null;e!==null;)e instanceof ShadowRoot&&(n=e.host,e=e.host),e=e.parentNode;return n}const bH=G$(xT,yH);var wT=F.forwardRef(function(e,n){return F.createElement(Cf,ci({},e,{ref:n,sideCar:bH}))});wT.classNames=Cf.classNames;var jH=[" ","Enter","ArrowUp","ArrowDown"],wH=[" ","Enter"],Ha="Select",[Ef,Tf,NH]=LE(Ha),[Cl]=Za(Ha,[NH,rT]),Pf=rT(),[kH,Js]=Cl(Ha),[_H,SH]=Cl(Ha),NT=e=>{const{__scopeSelect:n,children:r,open:i,defaultOpen:s,onOpenChange:a,value:o,defaultValue:c,onValueChange:d,dir:f,name:h,autoComplete:m,disabled:p,required:g,form:b}=e,j=Pf(n),[y,x]=F.useState(null),[N,w]=F.useState(null),[k,A]=F.useState(!1),S=Qv(f),[E,C]=pl({prop:i,defaultProp:s??!1,onChange:a,caller:Ha}),[B,I]=pl({prop:o,defaultProp:c,onChange:d,caller:Ha}),R=F.useRef(null),D=y?b||!!y.closest("form"):!0,[q,z]=F.useState(new Set),U=Array.from(q).map(Y=>Y.props.value).join(";");return t.jsx(_$,{...j,children:t.jsxs(kH,{required:g,scope:n,trigger:y,onTriggerChange:x,valueNode:N,onValueNodeChange:w,valueNodeHasChildren:k,onValueNodeHasChildrenChange:A,contentId:Ou(),value:B,onValueChange:I,open:E,onOpenChange:C,dir:S,triggerPointerDownPosRef:R,disabled:p,children:[t.jsx(Ef.Provider,{scope:n,children:t.jsx(_H,{scope:e.__scopeSelect,onNativeOptionAdd:F.useCallback(Y=>{z(H=>new Set(H).add(Y))},[]),onNativeOptionRemove:F.useCallback(Y=>{z(H=>{const K=new Set(H);return K.delete(Y),K})},[]),children:r})}),D?t.jsxs(KT,{"aria-hidden":!0,required:g,tabIndex:-1,name:h,autoComplete:m,value:B,onChange:Y=>I(Y.target.value),disabled:p,form:b,children:[B===void 0?t.jsx("option",{value:""}):null,Array.from(q)]},U):null]})})};NT.displayName=Ha;var kT="SelectTrigger",_T=F.forwardRef((e,n)=>{const{__scopeSelect:r,disabled:i=!1,...s}=e,a=Pf(r),o=Js(kT,r),c=o.disabled||i,d=Qt(n,o.onTriggerChange),f=Tf(r),h=F.useRef("touch"),[m,p,g]=QT(j=>{const y=f().filter(w=>!w.disabled),x=y.find(w=>w.value===o.value),N=YT(y,j,x);N!==void 0&&o.onValueChange(N.value)}),b=j=>{c||(o.onOpenChange(!0),g()),j&&(o.triggerPointerDownPosRef.current={x:Math.round(j.pageX),y:Math.round(j.pageY)})};return t.jsx(S$,{asChild:!0,...a,children:t.jsx(jt.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:c,"data-disabled":c?"":void 0,"data-placeholder":GT(o.value)?"":void 0,...s,ref:d,onClick:bt(s.onClick,j=>{j.currentTarget.focus(),h.current!=="mouse"&&b(j)}),onPointerDown:bt(s.onPointerDown,j=>{h.current=j.pointerType;const y=j.target;y.hasPointerCapture(j.pointerId)&&y.releasePointerCapture(j.pointerId),j.button===0&&j.ctrlKey===!1&&j.pointerType==="mouse"&&(b(j),j.preventDefault())}),onKeyDown:bt(s.onKeyDown,j=>{const y=m.current!=="";!(j.ctrlKey||j.altKey||j.metaKey)&&j.key.length===1&&p(j.key),!(y&&j.key===" ")&&jH.includes(j.key)&&(b(),j.preventDefault())})})})});_T.displayName=kT;var ST="SelectValue",AT=F.forwardRef((e,n)=>{const{__scopeSelect:r,className:i,style:s,children:a,placeholder:o="",...c}=e,d=Js(ST,r),{onValueNodeHasChildrenChange:f}=d,h=a!==void 0,m=Qt(n,d.onValueNodeChange);return In(()=>{f(h)},[f,h]),t.jsx(jt.span,{...c,ref:m,style:{pointerEvents:"none"},children:GT(d.value)?t.jsx(t.Fragment,{children:o}):a})});AT.displayName=ST;var AH="SelectIcon",CT=F.forwardRef((e,n)=>{const{__scopeSelect:r,children:i,...s}=e;return t.jsx(jt.span,{"aria-hidden":!0,...s,ref:n,children:i||"â–¼"})});CT.displayName=AH;var CH="SelectPortal",ET=e=>t.jsx(hT,{asChild:!0,...e});ET.displayName=CH;var Wa="SelectContent",TT=F.forwardRef((e,n)=>{const r=Js(Wa,e.__scopeSelect),[i,s]=F.useState();if(In(()=>{s(new DocumentFragment)},[]),!r.open){const a=i;return a?ju.createPortal(t.jsx(PT,{scope:e.__scopeSelect,children:t.jsx(Ef.Slot,{scope:e.__scopeSelect,children:t.jsx("div",{children:e.children})})}),a):null}return t.jsx(OT,{...e,ref:n})});TT.displayName=Wa;var Br=10,[PT,Zs]=Cl(Wa),EH="SelectContentImpl",TH=ou("SelectContent.RemoveScroll"),OT=F.forwardRef((e,n)=>{const{__scopeSelect:r,position:i="item-aligned",onCloseAutoFocus:s,onEscapeKeyDown:a,onPointerDownOutside:o,side:c,sideOffset:d,align:f,alignOffset:h,arrowPadding:m,collisionBoundary:p,collisionPadding:g,sticky:b,hideWhenDetached:j,avoidCollisions:y,...x}=e,N=Js(Wa,r),[w,k]=F.useState(null),[A,S]=F.useState(null),E=Qt(n,G=>k(G)),[C,B]=F.useState(null),[I,R]=F.useState(null),D=Tf(r),[q,z]=F.useState(!1),U=F.useRef(!1);F.useEffect(()=>{if(w)return L$(w)},[w]),XV();const Y=F.useCallback(G=>{const[te,...re]=D().map(be=>be.ref.current),[le]=re.slice(-1),ye=document.activeElement;for(const be of G)if(be===ye||(be==null||be.scrollIntoView({block:"nearest"}),be===te&&A&&(A.scrollTop=0),be===le&&A&&(A.scrollTop=A.scrollHeight),be==null||be.focus(),document.activeElement!==ye))return},[D,A]),H=F.useCallback(()=>Y([C,w]),[Y,C,w]);F.useEffect(()=>{q&&H()},[q,H]);const{onOpenChange:K,triggerPointerDownPosRef:Q}=N;F.useEffect(()=>{if(w){let G={x:0,y:0};const te=le=>{var ye,be;G={x:Math.abs(Math.round(le.pageX)-(((ye=Q.current)==null?void 0:ye.x)??0)),y:Math.abs(Math.round(le.pageY)-(((be=Q.current)==null?void 0:be.y)??0))}},re=le=>{G.x<=10&&G.y<=10?le.preventDefault():w.contains(le.target)||K(!1),document.removeEventListener("pointermove",te),Q.current=null};return Q.current!==null&&(document.addEventListener("pointermove",te),document.addEventListener("pointerup",re,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",te),document.removeEventListener("pointerup",re,{capture:!0})}}},[w,K,Q]),F.useEffect(()=>{const G=()=>K(!1);return window.addEventListener("blur",G),window.addEventListener("resize",G),()=>{window.removeEventListener("blur",G),window.removeEventListener("resize",G)}},[K]);const[O,T]=QT(G=>{const te=D().filter(ye=>!ye.disabled),re=te.find(ye=>ye.ref.current===document.activeElement),le=YT(te,G,re);le&&setTimeout(()=>le.ref.current.focus())}),V=F.useCallback((G,te,re)=>{const le=!U.current&&!re;(N.value!==void 0&&N.value===te||le)&&(B(G),le&&(U.current=!0))},[N.value]),L=F.useCallback(()=>w==null?void 0:w.focus(),[w]),X=F.useCallback((G,te,re)=>{const le=!U.current&&!re;(N.value!==void 0&&N.value===te||le)&&R(G)},[N.value]),J=i==="popper"?N0:DT,W=J===N0?{side:c,sideOffset:d,align:f,alignOffset:h,arrowPadding:m,collisionBoundary:p,collisionPadding:g,sticky:b,hideWhenDetached:j,avoidCollisions:y}:{};return t.jsx(PT,{scope:r,content:w,viewport:A,onViewportChange:S,itemRefCallback:V,selectedItem:C,onItemLeave:L,itemTextRefCallback:X,focusSelectedItem:H,selectedItemText:I,position:i,isPositioned:q,searchRef:O,children:t.jsx(wT,{as:TH,allowPinchZoom:!0,children:t.jsx(VE,{asChild:!0,trapped:N.open,onMountAutoFocus:G=>{G.preventDefault()},onUnmountAutoFocus:bt(s,G=>{var te;(te=N.trigger)==null||te.focus({preventScroll:!0}),G.preventDefault()}),children:t.jsx(qE,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:a,onPointerDownOutside:o,onFocusOutside:G=>G.preventDefault(),onDismiss:()=>N.onOpenChange(!1),children:t.jsx(J,{role:"listbox",id:N.contentId,"data-state":N.open?"open":"closed",dir:N.dir,onContextMenu:G=>G.preventDefault(),...x,...W,onPlaced:()=>z(!0),ref:E,style:{display:"flex",flexDirection:"column",outline:"none",...x.style},onKeyDown:bt(x.onKeyDown,G=>{const te=G.ctrlKey||G.altKey||G.metaKey;if(G.key==="Tab"&&G.preventDefault(),!te&&G.key.length===1&&T(G.key),["ArrowUp","ArrowDown","Home","End"].includes(G.key)){let le=D().filter(ye=>!ye.disabled).map(ye=>ye.ref.current);if(["ArrowUp","End"].includes(G.key)&&(le=le.slice().reverse()),["ArrowUp","ArrowDown"].includes(G.key)){const ye=G.target,be=le.indexOf(ye);le=le.slice(be+1)}setTimeout(()=>Y(le)),G.preventDefault()}})})})})})})});OT.displayName=EH;var PH="SelectItemAlignedPosition",DT=F.forwardRef((e,n)=>{const{__scopeSelect:r,onPlaced:i,...s}=e,a=Js(Wa,r),o=Zs(Wa,r),[c,d]=F.useState(null),[f,h]=F.useState(null),m=Qt(n,E=>h(E)),p=Tf(r),g=F.useRef(!1),b=F.useRef(!0),{viewport:j,selectedItem:y,selectedItemText:x,focusSelectedItem:N}=o,w=F.useCallback(()=>{if(a.trigger&&a.valueNode&&c&&f&&j&&y&&x){const E=a.trigger.getBoundingClientRect(),C=f.getBoundingClientRect(),B=a.valueNode.getBoundingClientRect(),I=x.getBoundingClientRect();if(a.dir!=="rtl"){const ye=I.left-C.left,be=B.left-ye,Pe=E.left-be,Te=E.width+Pe,We=Math.max(Te,C.width),ut=window.innerWidth-Br,nt=X2(be,[Br,Math.max(Br,ut-We)]);c.style.minWidth=Te+"px",c.style.left=nt+"px"}else{const ye=C.right-I.right,be=window.innerWidth-B.right-ye,Pe=window.innerWidth-E.right-be,Te=E.width+Pe,We=Math.max(Te,C.width),ut=window.innerWidth-Br,nt=X2(be,[Br,Math.max(Br,ut-We)]);c.style.minWidth=Te+"px",c.style.right=nt+"px"}const R=p(),D=window.innerHeight-Br*2,q=j.scrollHeight,z=window.getComputedStyle(f),U=parseInt(z.borderTopWidth,10),Y=parseInt(z.paddingTop,10),H=parseInt(z.borderBottomWidth,10),K=parseInt(z.paddingBottom,10),Q=U+Y+q+K+H,O=Math.min(y.offsetHeight*5,Q),T=window.getComputedStyle(j),V=parseInt(T.paddingTop,10),L=parseInt(T.paddingBottom,10),X=E.top+E.height/2-Br,J=D-X,W=y.offsetHeight/2,G=y.offsetTop+W,te=U+Y+G,re=Q-te;if(te<=X){const ye=R.length>0&&y===R[R.length-1].ref.current;c.style.bottom="0px";const be=f.clientHeight-j.offsetTop-j.offsetHeight,Pe=Math.max(J,W+(ye?L:0)+be+H),Te=te+Pe;c.style.height=Te+"px"}else{const ye=R.length>0&&y===R[0].ref.current;c.style.top="0px";const Pe=Math.max(X,U+j.offsetTop+(ye?V:0)+W)+re;c.style.height=Pe+"px",j.scrollTop=te-X+j.offsetTop}c.style.margin=`${Br}px 0`,c.style.minHeight=O+"px",c.style.maxHeight=D+"px",i==null||i(),requestAnimationFrame(()=>g.current=!0)}},[p,a.trigger,a.valueNode,c,f,j,y,x,a.dir,i]);In(()=>w(),[w]);const[k,A]=F.useState();In(()=>{f&&A(window.getComputedStyle(f).zIndex)},[f]);const S=F.useCallback(E=>{E&&b.current===!0&&(w(),N==null||N(),b.current=!1)},[w,N]);return t.jsx(DH,{scope:r,contentWrapper:c,shouldExpandOnScrollRef:g,onScrollButtonChange:S,children:t.jsx("div",{ref:d,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:k},children:t.jsx(jt.div,{...s,ref:m,style:{boxSizing:"border-box",maxHeight:"100%",...s.style}})})})});DT.displayName=PH;var OH="SelectPopperPosition",N0=F.forwardRef((e,n)=>{const{__scopeSelect:r,align:i="start",collisionPadding:s=Br,...a}=e,o=Pf(r);return t.jsx(A$,{...o,...a,ref:n,align:i,collisionPadding:s,style:{boxSizing:"border-box",...a.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)"}})});N0.displayName=OH;var[DH,ab]=Cl(Wa,{}),k0="SelectViewport",IT=F.forwardRef((e,n)=>{const{__scopeSelect:r,nonce:i,...s}=e,a=Zs(k0,r),o=ab(k0,r),c=Qt(n,a.onViewportChange),d=F.useRef(0);return t.jsxs(t.Fragment,{children:[t.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:i}),t.jsx(Ef.Slot,{scope:r,children:t.jsx(jt.div,{"data-radix-select-viewport":"",role:"presentation",...s,ref:c,style:{position:"relative",flex:1,overflow:"hidden auto",...s.style},onScroll:bt(s.onScroll,f=>{const h=f.currentTarget,{contentWrapper:m,shouldExpandOnScrollRef:p}=o;if(p!=null&&p.current&&m){const g=Math.abs(d.current-h.scrollTop);if(g>0){const b=window.innerHeight-Br*2,j=parseFloat(m.style.minHeight),y=parseFloat(m.style.height),x=Math.max(j,y);if(x<b){const N=x+g,w=Math.min(b,N),k=N-w;m.style.height=w+"px",m.style.bottom==="0px"&&(h.scrollTop=k>0?k:0,m.style.justifyContent="flex-end")}}}d.current=h.scrollTop})})})]})});IT.displayName=k0;var RT="SelectGroup",[IH,RH]=Cl(RT),FH=F.forwardRef((e,n)=>{const{__scopeSelect:r,...i}=e,s=Ou();return t.jsx(IH,{scope:r,id:s,children:t.jsx(jt.div,{role:"group","aria-labelledby":s,...i,ref:n})})});FH.displayName=RT;var FT="SelectLabel",MT=F.forwardRef((e,n)=>{const{__scopeSelect:r,...i}=e,s=RH(FT,r);return t.jsx(jt.div,{id:s.id,...i,ref:n})});MT.displayName=FT;var Zh="SelectItem",[MH,LT]=Cl(Zh),BT=F.forwardRef((e,n)=>{const{__scopeSelect:r,value:i,disabled:s=!1,textValue:a,...o}=e,c=Js(Zh,r),d=Zs(Zh,r),f=c.value===i,[h,m]=F.useState(a??""),[p,g]=F.useState(!1),b=Qt(n,N=>{var w;return(w=d.itemRefCallback)==null?void 0:w.call(d,N,i,s)}),j=Ou(),y=F.useRef("touch"),x=()=>{s||(c.onValueChange(i),c.onOpenChange(!1))};if(i==="")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 t.jsx(MH,{scope:r,value:i,disabled:s,textId:j,isSelected:f,onItemTextChange:F.useCallback(N=>{m(w=>w||((N==null?void 0:N.textContent)??"").trim())},[]),children:t.jsx(Ef.ItemSlot,{scope:r,value:i,disabled:s,textValue:h,children:t.jsx(jt.div,{role:"option","aria-labelledby":j,"data-highlighted":p?"":void 0,"aria-selected":f&&p,"data-state":f?"checked":"unchecked","aria-disabled":s||void 0,"data-disabled":s?"":void 0,tabIndex:s?void 0:-1,...o,ref:b,onFocus:bt(o.onFocus,()=>g(!0)),onBlur:bt(o.onBlur,()=>g(!1)),onClick:bt(o.onClick,()=>{y.current!=="mouse"&&x()}),onPointerUp:bt(o.onPointerUp,()=>{y.current==="mouse"&&x()}),onPointerDown:bt(o.onPointerDown,N=>{y.current=N.pointerType}),onPointerMove:bt(o.onPointerMove,N=>{var w;y.current=N.pointerType,s?(w=d.onItemLeave)==null||w.call(d):y.current==="mouse"&&N.currentTarget.focus({preventScroll:!0})}),onPointerLeave:bt(o.onPointerLeave,N=>{var w;N.currentTarget===document.activeElement&&((w=d.onItemLeave)==null||w.call(d))}),onKeyDown:bt(o.onKeyDown,N=>{var k;((k=d.searchRef)==null?void 0:k.current)!==""&&N.key===" "||(wH.includes(N.key)&&x(),N.key===" "&&N.preventDefault())})})})})});BT.displayName=Zh;var Rc="SelectItemText",qT=F.forwardRef((e,n)=>{const{__scopeSelect:r,className:i,style:s,...a}=e,o=Js(Rc,r),c=Zs(Rc,r),d=LT(Rc,r),f=SH(Rc,r),[h,m]=F.useState(null),p=Qt(n,x=>m(x),d.onItemTextChange,x=>{var N;return(N=c.itemTextRefCallback)==null?void 0:N.call(c,x,d.value,d.disabled)}),g=h==null?void 0:h.textContent,b=F.useMemo(()=>t.jsx("option",{value:d.value,disabled:d.disabled,children:g},d.value),[d.disabled,d.value,g]),{onNativeOptionAdd:j,onNativeOptionRemove:y}=f;return In(()=>(j(b),()=>y(b)),[j,y,b]),t.jsxs(t.Fragment,{children:[t.jsx(jt.span,{id:d.textId,...a,ref:p}),d.isSelected&&o.valueNode&&!o.valueNodeHasChildren?ju.createPortal(a.children,o.valueNode):null]})});qT.displayName=Rc;var zT="SelectItemIndicator",VT=F.forwardRef((e,n)=>{const{__scopeSelect:r,...i}=e;return LT(zT,r).isSelected?t.jsx(jt.span,{"aria-hidden":!0,...i,ref:n}):null});VT.displayName=zT;var _0="SelectScrollUpButton",UT=F.forwardRef((e,n)=>{const r=Zs(_0,e.__scopeSelect),i=ab(_0,e.__scopeSelect),[s,a]=F.useState(!1),o=Qt(n,i.onScrollButtonChange);return In(()=>{if(r.viewport&&r.isPositioned){let c=function(){const f=d.scrollTop>0;a(f)};const d=r.viewport;return c(),d.addEventListener("scroll",c),()=>d.removeEventListener("scroll",c)}},[r.viewport,r.isPositioned]),s?t.jsx(HT,{...e,ref:o,onAutoScroll:()=>{const{viewport:c,selectedItem:d}=r;c&&d&&(c.scrollTop=c.scrollTop-d.offsetHeight)}}):null});UT.displayName=_0;var S0="SelectScrollDownButton",$T=F.forwardRef((e,n)=>{const r=Zs(S0,e.__scopeSelect),i=ab(S0,e.__scopeSelect),[s,a]=F.useState(!1),o=Qt(n,i.onScrollButtonChange);return In(()=>{if(r.viewport&&r.isPositioned){let c=function(){const f=d.scrollHeight-d.clientHeight,h=Math.ceil(d.scrollTop)<f;a(h)};const d=r.viewport;return c(),d.addEventListener("scroll",c),()=>d.removeEventListener("scroll",c)}},[r.viewport,r.isPositioned]),s?t.jsx(HT,{...e,ref:o,onAutoScroll:()=>{const{viewport:c,selectedItem:d}=r;c&&d&&(c.scrollTop=c.scrollTop+d.offsetHeight)}}):null});$T.displayName=S0;var HT=F.forwardRef((e,n)=>{const{__scopeSelect:r,onAutoScroll:i,...s}=e,a=Zs("SelectScrollButton",r),o=F.useRef(null),c=Tf(r),d=F.useCallback(()=>{o.current!==null&&(window.clearInterval(o.current),o.current=null)},[]);return F.useEffect(()=>()=>d(),[d]),In(()=>{var h;const f=c().find(m=>m.ref.current===document.activeElement);(h=f==null?void 0:f.ref.current)==null||h.scrollIntoView({block:"nearest"})},[c]),t.jsx(jt.div,{"aria-hidden":!0,...s,ref:n,style:{flexShrink:0,...s.style},onPointerDown:bt(s.onPointerDown,()=>{o.current===null&&(o.current=window.setInterval(i,50))}),onPointerMove:bt(s.onPointerMove,()=>{var f;(f=a.onItemLeave)==null||f.call(a),o.current===null&&(o.current=window.setInterval(i,50))}),onPointerLeave:bt(s.onPointerLeave,()=>{d()})})}),LH="SelectSeparator",WT=F.forwardRef((e,n)=>{const{__scopeSelect:r,...i}=e;return t.jsx(jt.div,{"aria-hidden":!0,...i,ref:n})});WT.displayName=LH;var A0="SelectArrow",BH=F.forwardRef((e,n)=>{const{__scopeSelect:r,...i}=e,s=Pf(r),a=Js(A0,r),o=Zs(A0,r);return a.open&&o.position==="popper"?t.jsx(C$,{...s,...i,ref:n}):null});BH.displayName=A0;var qH="SelectBubbleInput",KT=F.forwardRef(({__scopeSelect:e,value:n,...r},i)=>{const s=F.useRef(null),a=Qt(i,s),o=sb(n);return F.useEffect(()=>{const c=s.current;if(!c)return;const d=window.HTMLSelectElement.prototype,h=Object.getOwnPropertyDescriptor(d,"value").set;if(o!==n&&h){const m=new Event("change",{bubbles:!0});h.call(c,n),c.dispatchEvent(m)}},[o,n]),t.jsx(jt.select,{...r,style:{...fT,...r.style},ref:a,defaultValue:n})});KT.displayName=qH;function GT(e){return e===""||e===void 0}function QT(e){const n=Gs(e),r=F.useRef(""),i=F.useRef(0),s=F.useCallback(o=>{const c=r.current+o;n(c),(function d(f){r.current=f,window.clearTimeout(i.current),f!==""&&(i.current=window.setTimeout(()=>d(""),1e3))})(c)},[n]),a=F.useCallback(()=>{r.current="",window.clearTimeout(i.current)},[]);return F.useEffect(()=>()=>window.clearTimeout(i.current),[]),[r,s,a]}function YT(e,n,r){const s=n.length>1&&Array.from(n).every(f=>f===n[0])?n[0]:n,a=r?e.indexOf(r):-1;let o=zH(e,Math.max(a,0));s.length===1&&(o=o.filter(f=>f!==r));const d=o.find(f=>f.textValue.toLowerCase().startsWith(s.toLowerCase()));return d!==r?d:void 0}function zH(e,n){return e.map((r,i)=>e[(n+i)%e.length])}var VH=NT,XT=_T,UH=AT,$H=CT,HH=ET,JT=TT,WH=IT,ZT=MT,e6=BT,KH=qT,GH=VT,t6=UT,n6=$T,r6=WT;const Yi=VH,Xi=UH,bi=F.forwardRef(({className:e,children:n,...r},i)=>t.jsxs(XT,{ref:i,className:Gt("flex h-9 w-full items-center justify-between whitespace-nowrap rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background data-[placeholder]:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",e),...r,children:[n,t.jsx($H,{asChild:!0,children:t.jsx(Vo,{className:"h-4 w-4 opacity-50"})})]}));bi.displayName=XT.displayName;const i6=F.forwardRef(({className:e,...n},r)=>t.jsx(t6,{ref:r,className:Gt("flex cursor-default items-center justify-center py-1",e),...n,children:t.jsx(k5,{className:"h-4 w-4"})}));i6.displayName=t6.displayName;const s6=F.forwardRef(({className:e,...n},r)=>t.jsx(n6,{ref:r,className:Gt("flex cursor-default items-center justify-center py-1",e),...n,children:t.jsx(Vo,{className:"h-4 w-4"})}));s6.displayName=n6.displayName;const ji=F.forwardRef(({className:e,children:n,position:r="popper",...i},s)=>t.jsx(HH,{children:t.jsxs(JT,{ref:s,className:Gt("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",e),position:r,...i,children:[t.jsx(i6,{}),t.jsx(WH,{className:Gt("p-1",r==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:n}),t.jsx(s6,{})]})}));ji.displayName=JT.displayName;const QH=F.forwardRef(({className:e,...n},r)=>t.jsx(ZT,{ref:r,className:Gt("px-2 py-1.5 text-sm font-semibold",e),...n}));QH.displayName=ZT.displayName;const St=F.forwardRef(({className:e,children:n,...r},i)=>t.jsxs(e6,{ref:i,className:Gt("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...r,children:[t.jsx("span",{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center",children:t.jsx(GH,{children:t.jsx(Wt,{className:"h-4 w-4"})})}),t.jsx(KH,{children:n})]}));St.displayName=e6.displayName;const YH=F.forwardRef(({className:e,...n},r)=>t.jsx(r6,{ref:r,className:Gt("-mx-1 my-1 h-px bg-muted",e),...n}));YH.displayName=r6.displayName;var jg,jk;function XH(){if(jk)return jg;jk=1;function e(){this.__data__=[],this.size=0}return jg=e,jg}var wg,wk;function a6(){if(wk)return wg;wk=1;function e(n,r){return n===r||n!==n&&r!==r}return wg=e,wg}var Ng,Nk;function Of(){if(Nk)return Ng;Nk=1;var e=a6();function n(r,i){for(var s=r.length;s--;)if(e(r[s][0],i))return s;return-1}return Ng=n,Ng}var kg,kk;function JH(){if(kk)return kg;kk=1;var e=Of(),n=Array.prototype,r=n.splice;function i(s){var a=this.__data__,o=e(a,s);if(o<0)return!1;var c=a.length-1;return o==c?a.pop():r.call(a,o,1),--this.size,!0}return kg=i,kg}var _g,_k;function ZH(){if(_k)return _g;_k=1;var e=Of();function n(r){var i=this.__data__,s=e(i,r);return s<0?void 0:i[s][1]}return _g=n,_g}var Sg,Sk;function eW(){if(Sk)return Sg;Sk=1;var e=Of();function n(r){return e(this.__data__,r)>-1}return Sg=n,Sg}var Ag,Ak;function tW(){if(Ak)return Ag;Ak=1;var e=Of();function n(r,i){var s=this.__data__,a=e(s,r);return a<0?(++this.size,s.push([r,i])):s[a][1]=i,this}return Ag=n,Ag}var Cg,Ck;function Df(){if(Ck)return Cg;Ck=1;var e=XH(),n=JH(),r=ZH(),i=eW(),s=tW();function a(o){var c=-1,d=o==null?0:o.length;for(this.clear();++c<d;){var f=o[c];this.set(f[0],f[1])}}return a.prototype.clear=e,a.prototype.delete=n,a.prototype.get=r,a.prototype.has=i,a.prototype.set=s,Cg=a,Cg}var Eg,Ek;function nW(){if(Ek)return Eg;Ek=1;var e=Df();function n(){this.__data__=new e,this.size=0}return Eg=n,Eg}var Tg,Tk;function rW(){if(Tk)return Tg;Tk=1;function e(n){var r=this.__data__,i=r.delete(n);return this.size=r.size,i}return Tg=e,Tg}var Pg,Pk;function iW(){if(Pk)return Pg;Pk=1;function e(n){return this.__data__.get(n)}return Pg=e,Pg}var Og,Ok;function sW(){if(Ok)return Og;Ok=1;function e(n){return this.__data__.has(n)}return Og=e,Og}var Dg,Dk;function o6(){if(Dk)return Dg;Dk=1;var e=typeof Wd=="object"&&Wd&&Wd.Object===Object&&Wd;return Dg=e,Dg}var Ig,Ik;function es(){if(Ik)return Ig;Ik=1;var e=o6(),n=typeof self=="object"&&self&&self.Object===Object&&self,r=e||n||Function("return this")();return Ig=r,Ig}var Rg,Rk;function ob(){if(Rk)return Rg;Rk=1;var e=es(),n=e.Symbol;return Rg=n,Rg}var Fg,Fk;function aW(){if(Fk)return Fg;Fk=1;var e=ob(),n=Object.prototype,r=n.hasOwnProperty,i=n.toString,s=e?e.toStringTag:void 0;function a(o){var c=r.call(o,s),d=o[s];try{o[s]=void 0;var f=!0}catch{}var h=i.call(o);return f&&(c?o[s]=d:delete o[s]),h}return Fg=a,Fg}var Mg,Mk;function oW(){if(Mk)return Mg;Mk=1;var e=Object.prototype,n=e.toString;function r(i){return n.call(i)}return Mg=r,Mg}var Lg,Lk;function If(){if(Lk)return Lg;Lk=1;var e=ob(),n=aW(),r=oW(),i="[object Null]",s="[object Undefined]",a=e?e.toStringTag:void 0;function o(c){return c==null?c===void 0?s:i:a&&a in Object(c)?n(c):r(c)}return Lg=o,Lg}var Bg,Bk;function l6(){if(Bk)return Bg;Bk=1;function e(n){var r=typeof n;return n!=null&&(r=="object"||r=="function")}return Bg=e,Bg}var qg,qk;function c6(){if(qk)return qg;qk=1;var e=If(),n=l6(),r="[object AsyncFunction]",i="[object Function]",s="[object GeneratorFunction]",a="[object Proxy]";function o(c){if(!n(c))return!1;var d=e(c);return d==i||d==s||d==r||d==a}return qg=o,qg}var zg,zk;function lW(){if(zk)return zg;zk=1;var e=es(),n=e["__core-js_shared__"];return zg=n,zg}var Vg,Vk;function cW(){if(Vk)return Vg;Vk=1;var e=lW(),n=(function(){var i=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||"");return i?"Symbol(src)_1."+i:""})();function r(i){return!!n&&n in i}return Vg=r,Vg}var Ug,Uk;function u6(){if(Uk)return Ug;Uk=1;var e=Function.prototype,n=e.toString;function r(i){if(i!=null){try{return n.call(i)}catch{}try{return i+""}catch{}}return""}return Ug=r,Ug}var $g,$k;function uW(){if($k)return $g;$k=1;var e=c6(),n=cW(),r=l6(),i=u6(),s=/[\\^$.*+?()[\]{}|]/g,a=/^\[object .+?Constructor\]$/,o=Function.prototype,c=Object.prototype,d=o.toString,f=c.hasOwnProperty,h=RegExp("^"+d.call(f).replace(s,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function m(p){if(!r(p)||n(p))return!1;var g=e(p)?h:a;return g.test(i(p))}return $g=m,$g}var Hg,Hk;function dW(){if(Hk)return Hg;Hk=1;function e(n,r){return n==null?void 0:n[r]}return Hg=e,Hg}var Wg,Wk;function El(){if(Wk)return Wg;Wk=1;var e=uW(),n=dW();function r(i,s){var a=n(i,s);return e(a)?a:void 0}return Wg=r,Wg}var Kg,Kk;function lb(){if(Kk)return Kg;Kk=1;var e=El(),n=es(),r=e(n,"Map");return Kg=r,Kg}var Gg,Gk;function Rf(){if(Gk)return Gg;Gk=1;var e=El(),n=e(Object,"create");return Gg=n,Gg}var Qg,Qk;function hW(){if(Qk)return Qg;Qk=1;var e=Rf();function n(){this.__data__=e?e(null):{},this.size=0}return Qg=n,Qg}var Yg,Yk;function fW(){if(Yk)return Yg;Yk=1;function e(n){var r=this.has(n)&&delete this.__data__[n];return this.size-=r?1:0,r}return Yg=e,Yg}var Xg,Xk;function mW(){if(Xk)return Xg;Xk=1;var e=Rf(),n="__lodash_hash_undefined__",r=Object.prototype,i=r.hasOwnProperty;function s(a){var o=this.__data__;if(e){var c=o[a];return c===n?void 0:c}return i.call(o,a)?o[a]:void 0}return Xg=s,Xg}var Jg,Jk;function pW(){if(Jk)return Jg;Jk=1;var e=Rf(),n=Object.prototype,r=n.hasOwnProperty;function i(s){var a=this.__data__;return e?a[s]!==void 0:r.call(a,s)}return Jg=i,Jg}var Zg,Zk;function gW(){if(Zk)return Zg;Zk=1;var e=Rf(),n="__lodash_hash_undefined__";function r(i,s){var a=this.__data__;return this.size+=this.has(i)?0:1,a[i]=e&&s===void 0?n:s,this}return Zg=r,Zg}var ex,e_;function xW(){if(e_)return ex;e_=1;var e=hW(),n=fW(),r=mW(),i=pW(),s=gW();function a(o){var c=-1,d=o==null?0:o.length;for(this.clear();++c<d;){var f=o[c];this.set(f[0],f[1])}}return a.prototype.clear=e,a.prototype.delete=n,a.prototype.get=r,a.prototype.has=i,a.prototype.set=s,ex=a,ex}var tx,t_;function yW(){if(t_)return tx;t_=1;var e=xW(),n=Df(),r=lb();function i(){this.size=0,this.__data__={hash:new e,map:new(r||n),string:new e}}return tx=i,tx}var nx,n_;function vW(){if(n_)return nx;n_=1;function e(n){var r=typeof n;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?n!=="__proto__":n===null}return nx=e,nx}var rx,r_;function Ff(){if(r_)return rx;r_=1;var e=vW();function n(r,i){var s=r.__data__;return e(i)?s[typeof i=="string"?"string":"hash"]:s.map}return rx=n,rx}var ix,i_;function bW(){if(i_)return ix;i_=1;var e=Ff();function n(r){var i=e(this,r).delete(r);return this.size-=i?1:0,i}return ix=n,ix}var sx,s_;function jW(){if(s_)return sx;s_=1;var e=Ff();function n(r){return e(this,r).get(r)}return sx=n,sx}var ax,a_;function wW(){if(a_)return ax;a_=1;var e=Ff();function n(r){return e(this,r).has(r)}return ax=n,ax}var ox,o_;function NW(){if(o_)return ox;o_=1;var e=Ff();function n(r,i){var s=e(this,r),a=s.size;return s.set(r,i),this.size+=s.size==a?0:1,this}return ox=n,ox}var lx,l_;function d6(){if(l_)return lx;l_=1;var e=yW(),n=bW(),r=jW(),i=wW(),s=NW();function a(o){var c=-1,d=o==null?0:o.length;for(this.clear();++c<d;){var f=o[c];this.set(f[0],f[1])}}return a.prototype.clear=e,a.prototype.delete=n,a.prototype.get=r,a.prototype.has=i,a.prototype.set=s,lx=a,lx}var cx,c_;function kW(){if(c_)return cx;c_=1;var e=Df(),n=lb(),r=d6(),i=200;function s(a,o){var c=this.__data__;if(c instanceof e){var d=c.__data__;if(!n||d.length<i-1)return d.push([a,o]),this.size=++c.size,this;c=this.__data__=new r(d)}return c.set(a,o),this.size=c.size,this}return cx=s,cx}var ux,u_;function _W(){if(u_)return ux;u_=1;var e=Df(),n=nW(),r=rW(),i=iW(),s=sW(),a=kW();function o(c){var d=this.__data__=new e(c);this.size=d.size}return o.prototype.clear=n,o.prototype.delete=r,o.prototype.get=i,o.prototype.has=s,o.prototype.set=a,ux=o,ux}var dx,d_;function SW(){if(d_)return dx;d_=1;var e="__lodash_hash_undefined__";function n(r){return this.__data__.set(r,e),this}return dx=n,dx}var hx,h_;function AW(){if(h_)return hx;h_=1;function e(n){return this.__data__.has(n)}return hx=e,hx}var fx,f_;function CW(){if(f_)return fx;f_=1;var e=d6(),n=SW(),r=AW();function i(s){var a=-1,o=s==null?0:s.length;for(this.__data__=new e;++a<o;)this.add(s[a])}return i.prototype.add=i.prototype.push=n,i.prototype.has=r,fx=i,fx}var mx,m_;function EW(){if(m_)return mx;m_=1;function e(n,r){for(var i=-1,s=n==null?0:n.length;++i<s;)if(r(n[i],i,n))return!0;return!1}return mx=e,mx}var px,p_;function TW(){if(p_)return px;p_=1;function e(n,r){return n.has(r)}return px=e,px}var gx,g_;function h6(){if(g_)return gx;g_=1;var e=CW(),n=EW(),r=TW(),i=1,s=2;function a(o,c,d,f,h,m){var p=d&i,g=o.length,b=c.length;if(g!=b&&!(p&&b>g))return!1;var j=m.get(o),y=m.get(c);if(j&&y)return j==c&&y==o;var x=-1,N=!0,w=d&s?new e:void 0;for(m.set(o,c),m.set(c,o);++x<g;){var k=o[x],A=c[x];if(f)var S=p?f(A,k,x,c,o,m):f(k,A,x,o,c,m);if(S!==void 0){if(S)continue;N=!1;break}if(w){if(!n(c,function(E,C){if(!r(w,C)&&(k===E||h(k,E,d,f,m)))return w.push(C)})){N=!1;break}}else if(!(k===A||h(k,A,d,f,m))){N=!1;break}}return m.delete(o),m.delete(c),N}return gx=a,gx}var xx,x_;function PW(){if(x_)return xx;x_=1;var e=es(),n=e.Uint8Array;return xx=n,xx}var yx,y_;function OW(){if(y_)return yx;y_=1;function e(n){var r=-1,i=Array(n.size);return n.forEach(function(s,a){i[++r]=[a,s]}),i}return yx=e,yx}var vx,v_;function DW(){if(v_)return vx;v_=1;function e(n){var r=-1,i=Array(n.size);return n.forEach(function(s){i[++r]=s}),i}return vx=e,vx}var bx,b_;function IW(){if(b_)return bx;b_=1;var e=ob(),n=PW(),r=a6(),i=h6(),s=OW(),a=DW(),o=1,c=2,d="[object Boolean]",f="[object Date]",h="[object Error]",m="[object Map]",p="[object Number]",g="[object RegExp]",b="[object Set]",j="[object String]",y="[object Symbol]",x="[object ArrayBuffer]",N="[object DataView]",w=e?e.prototype:void 0,k=w?w.valueOf:void 0;function A(S,E,C,B,I,R,D){switch(C){case N:if(S.byteLength!=E.byteLength||S.byteOffset!=E.byteOffset)return!1;S=S.buffer,E=E.buffer;case x:return!(S.byteLength!=E.byteLength||!R(new n(S),new n(E)));case d:case f:case p:return r(+S,+E);case h:return S.name==E.name&&S.message==E.message;case g:case j:return S==E+"";case m:var q=s;case b:var z=B&o;if(q||(q=a),S.size!=E.size&&!z)return!1;var U=D.get(S);if(U)return U==E;B|=c,D.set(S,E);var Y=i(q(S),q(E),B,I,R,D);return D.delete(S),Y;case y:if(k)return k.call(S)==k.call(E)}return!1}return bx=A,bx}var jx,j_;function RW(){if(j_)return jx;j_=1;function e(n,r){for(var i=-1,s=r.length,a=n.length;++i<s;)n[a+i]=r[i];return n}return jx=e,jx}var wx,w_;function cb(){if(w_)return wx;w_=1;var e=Array.isArray;return wx=e,wx}var Nx,N_;function FW(){if(N_)return Nx;N_=1;var e=RW(),n=cb();function r(i,s,a){var o=s(i);return n(i)?o:e(o,a(i))}return Nx=r,Nx}var kx,k_;function MW(){if(k_)return kx;k_=1;function e(n,r){for(var i=-1,s=n==null?0:n.length,a=0,o=[];++i<s;){var c=n[i];r(c,i,n)&&(o[a++]=c)}return o}return kx=e,kx}var _x,__;function LW(){if(__)return _x;__=1;function e(){return[]}return _x=e,_x}var Sx,S_;function BW(){if(S_)return Sx;S_=1;var e=MW(),n=LW(),r=Object.prototype,i=r.propertyIsEnumerable,s=Object.getOwnPropertySymbols,a=s?function(o){return o==null?[]:(o=Object(o),e(s(o),function(c){return i.call(o,c)}))}:n;return Sx=a,Sx}var Ax,A_;function qW(){if(A_)return Ax;A_=1;function e(n,r){for(var i=-1,s=Array(n);++i<n;)s[i]=r(i);return s}return Ax=e,Ax}var Cx,C_;function Mf(){if(C_)return Cx;C_=1;function e(n){return n!=null&&typeof n=="object"}return Cx=e,Cx}var Ex,E_;function zW(){if(E_)return Ex;E_=1;var e=If(),n=Mf(),r="[object Arguments]";function i(s){return n(s)&&e(s)==r}return Ex=i,Ex}var Tx,T_;function VW(){if(T_)return Tx;T_=1;var e=zW(),n=Mf(),r=Object.prototype,i=r.hasOwnProperty,s=r.propertyIsEnumerable,a=e((function(){return arguments})())?e:function(o){return n(o)&&i.call(o,"callee")&&!s.call(o,"callee")};return Tx=a,Tx}var Fc={exports:{}},Px,P_;function UW(){if(P_)return Px;P_=1;function e(){return!1}return Px=e,Px}Fc.exports;var O_;function f6(){return O_||(O_=1,(function(e,n){var r=es(),i=UW(),s=n&&!n.nodeType&&n,a=s&&!0&&e&&!e.nodeType&&e,o=a&&a.exports===s,c=o?r.Buffer:void 0,d=c?c.isBuffer:void 0,f=d||i;e.exports=f})(Fc,Fc.exports)),Fc.exports}var Ox,D_;function $W(){if(D_)return Ox;D_=1;var e=9007199254740991,n=/^(?:0|[1-9]\d*)$/;function r(i,s){var a=typeof i;return s=s??e,!!s&&(a=="number"||a!="symbol"&&n.test(i))&&i>-1&&i%1==0&&i<s}return Ox=r,Ox}var Dx,I_;function m6(){if(I_)return Dx;I_=1;var e=9007199254740991;function n(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=e}return Dx=n,Dx}var Ix,R_;function HW(){if(R_)return Ix;R_=1;var e=If(),n=m6(),r=Mf(),i="[object Arguments]",s="[object Array]",a="[object Boolean]",o="[object Date]",c="[object Error]",d="[object Function]",f="[object Map]",h="[object Number]",m="[object Object]",p="[object RegExp]",g="[object Set]",b="[object String]",j="[object WeakMap]",y="[object ArrayBuffer]",x="[object DataView]",N="[object Float32Array]",w="[object Float64Array]",k="[object Int8Array]",A="[object Int16Array]",S="[object Int32Array]",E="[object Uint8Array]",C="[object Uint8ClampedArray]",B="[object Uint16Array]",I="[object Uint32Array]",R={};R[N]=R[w]=R[k]=R[A]=R[S]=R[E]=R[C]=R[B]=R[I]=!0,R[i]=R[s]=R[y]=R[a]=R[x]=R[o]=R[c]=R[d]=R[f]=R[h]=R[m]=R[p]=R[g]=R[b]=R[j]=!1;function D(q){return r(q)&&n(q.length)&&!!R[e(q)]}return Ix=D,Ix}var Rx,F_;function WW(){if(F_)return Rx;F_=1;function e(n){return function(r){return n(r)}}return Rx=e,Rx}var Mc={exports:{}};Mc.exports;var M_;function KW(){return M_||(M_=1,(function(e,n){var r=o6(),i=n&&!n.nodeType&&n,s=i&&!0&&e&&!e.nodeType&&e,a=s&&s.exports===i,o=a&&r.process,c=(function(){try{var d=s&&s.require&&s.require("util").types;return d||o&&o.binding&&o.binding("util")}catch{}})();e.exports=c})(Mc,Mc.exports)),Mc.exports}var Fx,L_;function p6(){if(L_)return Fx;L_=1;var e=HW(),n=WW(),r=KW(),i=r&&r.isTypedArray,s=i?n(i):e;return Fx=s,Fx}var Mx,B_;function GW(){if(B_)return Mx;B_=1;var e=qW(),n=VW(),r=cb(),i=f6(),s=$W(),a=p6(),o=Object.prototype,c=o.hasOwnProperty;function d(f,h){var m=r(f),p=!m&&n(f),g=!m&&!p&&i(f),b=!m&&!p&&!g&&a(f),j=m||p||g||b,y=j?e(f.length,String):[],x=y.length;for(var N in f)(h||c.call(f,N))&&!(j&&(N=="length"||g&&(N=="offset"||N=="parent")||b&&(N=="buffer"||N=="byteLength"||N=="byteOffset")||s(N,x)))&&y.push(N);return y}return Mx=d,Mx}var Lx,q_;function QW(){if(q_)return Lx;q_=1;var e=Object.prototype;function n(r){var i=r&&r.constructor,s=typeof i=="function"&&i.prototype||e;return r===s}return Lx=n,Lx}var Bx,z_;function YW(){if(z_)return Bx;z_=1;function e(n,r){return function(i){return n(r(i))}}return Bx=e,Bx}var qx,V_;function XW(){if(V_)return qx;V_=1;var e=YW(),n=e(Object.keys,Object);return qx=n,qx}var zx,U_;function JW(){if(U_)return zx;U_=1;var e=QW(),n=XW(),r=Object.prototype,i=r.hasOwnProperty;function s(a){if(!e(a))return n(a);var o=[];for(var c in Object(a))i.call(a,c)&&c!="constructor"&&o.push(c);return o}return zx=s,zx}var Vx,$_;function ZW(){if($_)return Vx;$_=1;var e=c6(),n=m6();function r(i){return i!=null&&n(i.length)&&!e(i)}return Vx=r,Vx}var Ux,H_;function eK(){if(H_)return Ux;H_=1;var e=GW(),n=JW(),r=ZW();function i(s){return r(s)?e(s):n(s)}return Ux=i,Ux}var $x,W_;function tK(){if(W_)return $x;W_=1;var e=FW(),n=BW(),r=eK();function i(s){return e(s,r,n)}return $x=i,$x}var Hx,K_;function nK(){if(K_)return Hx;K_=1;var e=tK(),n=1,r=Object.prototype,i=r.hasOwnProperty;function s(a,o,c,d,f,h){var m=c&n,p=e(a),g=p.length,b=e(o),j=b.length;if(g!=j&&!m)return!1;for(var y=g;y--;){var x=p[y];if(!(m?x in o:i.call(o,x)))return!1}var N=h.get(a),w=h.get(o);if(N&&w)return N==o&&w==a;var k=!0;h.set(a,o),h.set(o,a);for(var A=m;++y<g;){x=p[y];var S=a[x],E=o[x];if(d)var C=m?d(E,S,x,o,a,h):d(S,E,x,a,o,h);if(!(C===void 0?S===E||f(S,E,c,d,h):C)){k=!1;break}A||(A=x=="constructor")}if(k&&!A){var B=a.constructor,I=o.constructor;B!=I&&"constructor"in a&&"constructor"in o&&!(typeof B=="function"&&B instanceof B&&typeof I=="function"&&I instanceof I)&&(k=!1)}return h.delete(a),h.delete(o),k}return Hx=s,Hx}var Wx,G_;function rK(){if(G_)return Wx;G_=1;var e=El(),n=es(),r=e(n,"DataView");return Wx=r,Wx}var Kx,Q_;function iK(){if(Q_)return Kx;Q_=1;var e=El(),n=es(),r=e(n,"Promise");return Kx=r,Kx}var Gx,Y_;function sK(){if(Y_)return Gx;Y_=1;var e=El(),n=es(),r=e(n,"Set");return Gx=r,Gx}var Qx,X_;function aK(){if(X_)return Qx;X_=1;var e=El(),n=es(),r=e(n,"WeakMap");return Qx=r,Qx}var Yx,J_;function oK(){if(J_)return Yx;J_=1;var e=rK(),n=lb(),r=iK(),i=sK(),s=aK(),a=If(),o=u6(),c="[object Map]",d="[object Object]",f="[object Promise]",h="[object Set]",m="[object WeakMap]",p="[object DataView]",g=o(e),b=o(n),j=o(r),y=o(i),x=o(s),N=a;return(e&&N(new e(new ArrayBuffer(1)))!=p||n&&N(new n)!=c||r&&N(r.resolve())!=f||i&&N(new i)!=h||s&&N(new s)!=m)&&(N=function(w){var k=a(w),A=k==d?w.constructor:void 0,S=A?o(A):"";if(S)switch(S){case g:return p;case b:return c;case j:return f;case y:return h;case x:return m}return k}),Yx=N,Yx}var Xx,Z_;function lK(){if(Z_)return Xx;Z_=1;var e=_W(),n=h6(),r=IW(),i=nK(),s=oK(),a=cb(),o=f6(),c=p6(),d=1,f="[object Arguments]",h="[object Array]",m="[object Object]",p=Object.prototype,g=p.hasOwnProperty;function b(j,y,x,N,w,k){var A=a(j),S=a(y),E=A?h:s(j),C=S?h:s(y);E=E==f?m:E,C=C==f?m:C;var B=E==m,I=C==m,R=E==C;if(R&&o(j)){if(!o(y))return!1;A=!0,B=!1}if(R&&!B)return k||(k=new e),A||c(j)?n(j,y,x,N,w,k):r(j,y,E,x,N,w,k);if(!(x&d)){var D=B&&g.call(j,"__wrapped__"),q=I&&g.call(y,"__wrapped__");if(D||q){var z=D?j.value():j,U=q?y.value():y;return k||(k=new e),w(z,U,x,N,k)}}return R?(k||(k=new e),i(j,y,x,N,w,k)):!1}return Xx=b,Xx}var Jx,eS;function cK(){if(eS)return Jx;eS=1;var e=lK(),n=Mf();function r(i,s,a,o,c){return i===s?!0:i==null||s==null||!n(i)&&!n(s)?i!==i&&s!==s:e(i,s,a,o,r,c)}return Jx=r,Jx}var Zx,tS;function uK(){if(tS)return Zx;tS=1;var e=cK();function n(r,i){return e(r,i)}return Zx=n,Zx}var Dh={exports:{}};/*!
 * Quill Editor v1.3.7
 * https://quilljs.com/
 * Copyright (c) 2014, Jason Chen
 * Copyright (c) 2013, salesforce.com
 */var dK=Dh.exports,nS;function hK(){return nS||(nS=1,(function(e,n){(function(i,s){e.exports=s()})(typeof self<"u"?self:dK,function(){return(function(r){var i={};function s(a){if(i[a])return i[a].exports;var o=i[a]={i:a,l:!1,exports:{}};return r[a].call(o.exports,o,o.exports,s),o.l=!0,o.exports}return s.m=r,s.c=i,s.d=function(a,o,c){s.o(a,o)||Object.defineProperty(a,o,{configurable:!1,enumerable:!0,get:c})},s.n=function(a){var o=a&&a.__esModule?function(){return a.default}:function(){return a};return s.d(o,"a",o),o},s.o=function(a,o){return Object.prototype.hasOwnProperty.call(a,o)},s.p="",s(s.s=109)})([(function(r,i,s){Object.defineProperty(i,"__esModule",{value:!0});var a=s(17),o=s(18),c=s(19),d=s(45),f=s(46),h=s(47),m=s(48),p=s(49),g=s(12),b=s(32),j=s(33),y=s(31),x=s(1),N={Scope:x.Scope,create:x.create,find:x.find,query:x.query,register:x.register,Container:a.default,Format:o.default,Leaf:c.default,Embed:m.default,Scroll:d.default,Block:h.default,Inline:f.default,Text:p.default,Attributor:{Attribute:g.default,Class:b.default,Style:j.default,Store:y.default}};i.default=N}),(function(r,i,s){var a=this&&this.__extends||(function(){var y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,N){x.__proto__=N}||function(x,N){for(var w in N)N.hasOwnProperty(w)&&(x[w]=N[w])};return function(x,N){y(x,N);function w(){this.constructor=x}x.prototype=N===null?Object.create(N):(w.prototype=N.prototype,new w)}})();Object.defineProperty(i,"__esModule",{value:!0});var o=(function(y){a(x,y);function x(N){var w=this;return N="[Parchment] "+N,w=y.call(this,N)||this,w.message=N,w.name=w.constructor.name,w}return x})(Error);i.ParchmentError=o;var c={},d={},f={},h={};i.DATA_KEY="__blot";var m;(function(y){y[y.TYPE=3]="TYPE",y[y.LEVEL=12]="LEVEL",y[y.ATTRIBUTE=13]="ATTRIBUTE",y[y.BLOT=14]="BLOT",y[y.INLINE=7]="INLINE",y[y.BLOCK=11]="BLOCK",y[y.BLOCK_BLOT=10]="BLOCK_BLOT",y[y.INLINE_BLOT=6]="INLINE_BLOT",y[y.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE",y[y.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE",y[y.ANY=15]="ANY"})(m=i.Scope||(i.Scope={}));function p(y,x){var N=b(y);if(N==null)throw new o("Unable to create "+y+" blot");var w=N,k=y instanceof Node||y.nodeType===Node.TEXT_NODE?y:w.create(x);return new w(k,x)}i.create=p;function g(y,x){return x===void 0&&(x=!1),y==null?null:y[i.DATA_KEY]!=null?y[i.DATA_KEY].blot:x?g(y.parentNode,x):null}i.find=g;function b(y,x){x===void 0&&(x=m.ANY);var N;if(typeof y=="string")N=h[y]||c[y];else if(y instanceof Text||y.nodeType===Node.TEXT_NODE)N=h.text;else if(typeof y=="number")y&m.LEVEL&m.BLOCK?N=h.block:y&m.LEVEL&m.INLINE&&(N=h.inline);else if(y instanceof HTMLElement){var w=(y.getAttribute("class")||"").split(/\s+/);for(var k in w)if(N=d[w[k]],N)break;N=N||f[y.tagName]}return N==null?null:x&m.LEVEL&N.scope&&x&m.TYPE&N.scope?N:null}i.query=b;function j(){for(var y=[],x=0;x<arguments.length;x++)y[x]=arguments[x];if(y.length>1)return y.map(function(k){return j(k)});var N=y[0];if(typeof N.blotName!="string"&&typeof N.attrName!="string")throw new o("Invalid definition");if(N.blotName==="abstract")throw new o("Cannot register abstract class");if(h[N.blotName||N.attrName]=N,typeof N.keyName=="string")c[N.keyName]=N;else if(N.className!=null&&(d[N.className]=N),N.tagName!=null){Array.isArray(N.tagName)?N.tagName=N.tagName.map(function(k){return k.toUpperCase()}):N.tagName=N.tagName.toUpperCase();var w=Array.isArray(N.tagName)?N.tagName:[N.tagName];w.forEach(function(k){(f[k]==null||N.className==null)&&(f[k]=N)})}return N}i.register=j}),(function(r,i,s){var a=s(51),o=s(11),c=s(3),d=s(20),f="\0",h=function(m){Array.isArray(m)?this.ops=m:m!=null&&Array.isArray(m.ops)?this.ops=m.ops:this.ops=[]};h.prototype.insert=function(m,p){var g={};return m.length===0?this:(g.insert=m,p!=null&&typeof p=="object"&&Object.keys(p).length>0&&(g.attributes=p),this.push(g))},h.prototype.delete=function(m){return m<=0?this:this.push({delete:m})},h.prototype.retain=function(m,p){if(m<=0)return this;var g={retain:m};return p!=null&&typeof p=="object"&&Object.keys(p).length>0&&(g.attributes=p),this.push(g)},h.prototype.push=function(m){var p=this.ops.length,g=this.ops[p-1];if(m=c(!0,{},m),typeof g=="object"){if(typeof m.delete=="number"&&typeof g.delete=="number")return this.ops[p-1]={delete:g.delete+m.delete},this;if(typeof g.delete=="number"&&m.insert!=null&&(p-=1,g=this.ops[p-1],typeof g!="object"))return this.ops.unshift(m),this;if(o(m.attributes,g.attributes)){if(typeof m.insert=="string"&&typeof g.insert=="string")return this.ops[p-1]={insert:g.insert+m.insert},typeof m.attributes=="object"&&(this.ops[p-1].attributes=m.attributes),this;if(typeof m.retain=="number"&&typeof g.retain=="number")return this.ops[p-1]={retain:g.retain+m.retain},typeof m.attributes=="object"&&(this.ops[p-1].attributes=m.attributes),this}}return p===this.ops.length?this.ops.push(m):this.ops.splice(p,0,m),this},h.prototype.chop=function(){var m=this.ops[this.ops.length-1];return m&&m.retain&&!m.attributes&&this.ops.pop(),this},h.prototype.filter=function(m){return this.ops.filter(m)},h.prototype.forEach=function(m){this.ops.forEach(m)},h.prototype.map=function(m){return this.ops.map(m)},h.prototype.partition=function(m){var p=[],g=[];return this.forEach(function(b){var j=m(b)?p:g;j.push(b)}),[p,g]},h.prototype.reduce=function(m,p){return this.ops.reduce(m,p)},h.prototype.changeLength=function(){return this.reduce(function(m,p){return p.insert?m+d.length(p):p.delete?m-p.delete:m},0)},h.prototype.length=function(){return this.reduce(function(m,p){return m+d.length(p)},0)},h.prototype.slice=function(m,p){m=m||0,typeof p!="number"&&(p=1/0);for(var g=[],b=d.iterator(this.ops),j=0;j<p&&b.hasNext();){var y;j<m?y=b.next(m-j):(y=b.next(p-j),g.push(y)),j+=d.length(y)}return new h(g)},h.prototype.compose=function(m){var p=d.iterator(this.ops),g=d.iterator(m.ops),b=[],j=g.peek();if(j!=null&&typeof j.retain=="number"&&j.attributes==null){for(var y=j.retain;p.peekType()==="insert"&&p.peekLength()<=y;)y-=p.peekLength(),b.push(p.next());j.retain-y>0&&g.next(j.retain-y)}for(var x=new h(b);p.hasNext()||g.hasNext();)if(g.peekType()==="insert")x.push(g.next());else if(p.peekType()==="delete")x.push(p.next());else{var N=Math.min(p.peekLength(),g.peekLength()),w=p.next(N),k=g.next(N);if(typeof k.retain=="number"){var A={};typeof w.retain=="number"?A.retain=N:A.insert=w.insert;var S=d.attributes.compose(w.attributes,k.attributes,typeof w.retain=="number");if(S&&(A.attributes=S),x.push(A),!g.hasNext()&&o(x.ops[x.ops.length-1],A)){var E=new h(p.rest());return x.concat(E).chop()}}else typeof k.delete=="number"&&typeof w.retain=="number"&&x.push(k)}return x.chop()},h.prototype.concat=function(m){var p=new h(this.ops.slice());return m.ops.length>0&&(p.push(m.ops[0]),p.ops=p.ops.concat(m.ops.slice(1))),p},h.prototype.diff=function(m,p){if(this.ops===m.ops)return new h;var g=[this,m].map(function(N){return N.map(function(w){if(w.insert!=null)return typeof w.insert=="string"?w.insert:f;var k=N===m?"on":"with";throw new Error("diff() called "+k+" non-document")}).join("")}),b=new h,j=a(g[0],g[1],p),y=d.iterator(this.ops),x=d.iterator(m.ops);return j.forEach(function(N){for(var w=N[1].length;w>0;){var k=0;switch(N[0]){case a.INSERT:k=Math.min(x.peekLength(),w),b.push(x.next(k));break;case a.DELETE:k=Math.min(w,y.peekLength()),y.next(k),b.delete(k);break;case a.EQUAL:k=Math.min(y.peekLength(),x.peekLength(),w);var A=y.next(k),S=x.next(k);o(A.insert,S.insert)?b.retain(k,d.attributes.diff(A.attributes,S.attributes)):b.push(S).delete(k);break}w-=k}}),b.chop()},h.prototype.eachLine=function(m,p){p=p||`
`;for(var g=d.iterator(this.ops),b=new h,j=0;g.hasNext();){if(g.peekType()!=="insert")return;var y=g.peek(),x=d.length(y)-g.peekLength(),N=typeof y.insert=="string"?y.insert.indexOf(p,x)-x:-1;if(N<0)b.push(g.next());else if(N>0)b.push(g.next(N));else{if(m(b,g.next(1).attributes||{},j)===!1)return;j+=1,b=new h}}b.length()>0&&m(b,{},j)},h.prototype.transform=function(m,p){if(p=!!p,typeof m=="number")return this.transformPosition(m,p);for(var g=d.iterator(this.ops),b=d.iterator(m.ops),j=new h;g.hasNext()||b.hasNext();)if(g.peekType()==="insert"&&(p||b.peekType()!=="insert"))j.retain(d.length(g.next()));else if(b.peekType()==="insert")j.push(b.next());else{var y=Math.min(g.peekLength(),b.peekLength()),x=g.next(y),N=b.next(y);if(x.delete)continue;N.delete?j.push(N):j.retain(y,d.attributes.transform(x.attributes,N.attributes,p))}return j.chop()},h.prototype.transformPosition=function(m,p){p=!!p;for(var g=d.iterator(this.ops),b=0;g.hasNext()&&b<=m;){var j=g.peekLength(),y=g.peekType();if(g.next(),y==="delete"){m-=Math.min(j,m-b);continue}else y==="insert"&&(b<m||!p)&&(m+=j);b+=j}return m},r.exports=h}),(function(r,i){var s=Object.prototype.hasOwnProperty,a=Object.prototype.toString,o=Object.defineProperty,c=Object.getOwnPropertyDescriptor,d=function(g){return typeof Array.isArray=="function"?Array.isArray(g):a.call(g)==="[object Array]"},f=function(g){if(!g||a.call(g)!=="[object Object]")return!1;var b=s.call(g,"constructor"),j=g.constructor&&g.constructor.prototype&&s.call(g.constructor.prototype,"isPrototypeOf");if(g.constructor&&!b&&!j)return!1;var y;for(y in g);return typeof y>"u"||s.call(g,y)},h=function(g,b){o&&b.name==="__proto__"?o(g,b.name,{enumerable:!0,configurable:!0,value:b.newValue,writable:!0}):g[b.name]=b.newValue},m=function(g,b){if(b==="__proto__")if(s.call(g,b)){if(c)return c(g,b).value}else return;return g[b]};r.exports=function p(){var g,b,j,y,x,N,w=arguments[0],k=1,A=arguments.length,S=!1;for(typeof w=="boolean"&&(S=w,w=arguments[1]||{},k=2),(w==null||typeof w!="object"&&typeof w!="function")&&(w={});k<A;++k)if(g=arguments[k],g!=null)for(b in g)j=m(w,b),y=m(g,b),w!==y&&(S&&y&&(f(y)||(x=d(y)))?(x?(x=!1,N=j&&d(j)?j:[]):N=j&&f(j)?j:{},h(w,{name:b,newValue:p(S,N,y)})):typeof y<"u"&&h(w,{name:b,newValue:y}));return w}}),(function(r,i,s){Object.defineProperty(i,"__esModule",{value:!0}),i.default=i.BlockEmbed=i.bubbleFormats=void 0;var a=(function(){function R(D,q){for(var z=0;z<q.length;z++){var U=q[z];U.enumerable=U.enumerable||!1,U.configurable=!0,"value"in U&&(U.writable=!0),Object.defineProperty(D,U.key,U)}}return function(D,q,z){return q&&R(D.prototype,q),z&&R(D,z),D}})(),o=function R(D,q,z){D===null&&(D=Function.prototype);var U=Object.getOwnPropertyDescriptor(D,q);if(U===void 0){var Y=Object.getPrototypeOf(D);return Y===null?void 0:R(Y,q,z)}else{if("value"in U)return U.value;var H=U.get;return H===void 0?void 0:H.call(z)}},c=s(3),d=w(c),f=s(2),h=w(f),m=s(0),p=w(m),g=s(16),b=w(g),j=s(6),y=w(j),x=s(7),N=w(x);function w(R){return R&&R.__esModule?R:{default:R}}function k(R,D){if(!(R instanceof D))throw new TypeError("Cannot call a class as a function")}function A(R,D){if(!R)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return D&&(typeof D=="object"||typeof D=="function")?D:R}function S(R,D){if(typeof D!="function"&&D!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof D);R.prototype=Object.create(D&&D.prototype,{constructor:{value:R,enumerable:!1,writable:!0,configurable:!0}}),D&&(Object.setPrototypeOf?Object.setPrototypeOf(R,D):R.__proto__=D)}var E=1,C=(function(R){S(D,R);function D(){return k(this,D),A(this,(D.__proto__||Object.getPrototypeOf(D)).apply(this,arguments))}return a(D,[{key:"attach",value:function(){o(D.prototype.__proto__||Object.getPrototypeOf(D.prototype),"attach",this).call(this),this.attributes=new p.default.Attributor.Store(this.domNode)}},{key:"delta",value:function(){return new h.default().insert(this.value(),(0,d.default)(this.formats(),this.attributes.values()))}},{key:"format",value:function(z,U){var Y=p.default.query(z,p.default.Scope.BLOCK_ATTRIBUTE);Y!=null&&this.attributes.attribute(Y,U)}},{key:"formatAt",value:function(z,U,Y,H){this.format(Y,H)}},{key:"insertAt",value:function(z,U,Y){if(typeof U=="string"&&U.endsWith(`
`)){var H=p.default.create(B.blotName);this.parent.insertBefore(H,z===0?this:this.next),H.insertAt(0,U.slice(0,-1))}else o(D.prototype.__proto__||Object.getPrototypeOf(D.prototype),"insertAt",this).call(this,z,U,Y)}}]),D})(p.default.Embed);C.scope=p.default.Scope.BLOCK_BLOT;var B=(function(R){S(D,R);function D(q){k(this,D);var z=A(this,(D.__proto__||Object.getPrototypeOf(D)).call(this,q));return z.cache={},z}return a(D,[{key:"delta",value:function(){return this.cache.delta==null&&(this.cache.delta=this.descendants(p.default.Leaf).reduce(function(z,U){return U.length()===0?z:z.insert(U.value(),I(U))},new h.default).insert(`
`,I(this))),this.cache.delta}},{key:"deleteAt",value:function(z,U){o(D.prototype.__proto__||Object.getPrototypeOf(D.prototype),"deleteAt",this).call(this,z,U),this.cache={}}},{key:"formatAt",value:function(z,U,Y,H){U<=0||(p.default.query(Y,p.default.Scope.BLOCK)?z+U===this.length()&&this.format(Y,H):o(D.prototype.__proto__||Object.getPrototypeOf(D.prototype),"formatAt",this).call(this,z,Math.min(U,this.length()-z-1),Y,H),this.cache={})}},{key:"insertAt",value:function(z,U,Y){if(Y!=null)return o(D.prototype.__proto__||Object.getPrototypeOf(D.prototype),"insertAt",this).call(this,z,U,Y);if(U.length!==0){var H=U.split(`
`),K=H.shift();K.length>0&&(z<this.length()-1||this.children.tail==null?o(D.prototype.__proto__||Object.getPrototypeOf(D.prototype),"insertAt",this).call(this,Math.min(z,this.length()-1),K):this.children.tail.insertAt(this.children.tail.length(),K),this.cache={});var Q=this;H.reduce(function(O,T){return Q=Q.split(O,!0),Q.insertAt(0,T),T.length},z+K.length)}}},{key:"insertBefore",value:function(z,U){var Y=this.children.head;o(D.prototype.__proto__||Object.getPrototypeOf(D.prototype),"insertBefore",this).call(this,z,U),Y instanceof b.default&&Y.remove(),this.cache={}}},{key:"length",value:function(){return this.cache.length==null&&(this.cache.length=o(D.prototype.__proto__||Object.getPrototypeOf(D.prototype),"length",this).call(this)+E),this.cache.length}},{key:"moveChildren",value:function(z,U){o(D.prototype.__proto__||Object.getPrototypeOf(D.prototype),"moveChildren",this).call(this,z,U),this.cache={}}},{key:"optimize",value:function(z){o(D.prototype.__proto__||Object.getPrototypeOf(D.prototype),"optimize",this).call(this,z),this.cache={}}},{key:"path",value:function(z){return o(D.prototype.__proto__||Object.getPrototypeOf(D.prototype),"path",this).call(this,z,!0)}},{key:"removeChild",value:function(z){o(D.prototype.__proto__||Object.getPrototypeOf(D.prototype),"removeChild",this).call(this,z),this.cache={}}},{key:"split",value:function(z){var U=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(U&&(z===0||z>=this.length()-E)){var Y=this.clone();return z===0?(this.parent.insertBefore(Y,this),this):(this.parent.insertBefore(Y,this.next),Y)}else{var H=o(D.prototype.__proto__||Object.getPrototypeOf(D.prototype),"split",this).call(this,z,U);return this.cache={},H}}}]),D})(p.default.Block);B.blotName="block",B.tagName="P",B.defaultChild="break",B.allowedChildren=[y.default,p.default.Embed,N.default];function I(R){var D=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return R==null||(typeof R.formats=="function"&&(D=(0,d.default)(D,R.formats())),R.parent==null||R.parent.blotName=="scroll"||R.parent.statics.scope!==R.statics.scope)?D:I(R.parent,D)}i.bubbleFormats=I,i.BlockEmbed=C,i.default=B}),(function(r,i,s){Object.defineProperty(i,"__esModule",{value:!0}),i.default=i.overload=i.expandConfig=void 0;var a=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Q){return typeof Q}:function(Q){return Q&&typeof Symbol=="function"&&Q.constructor===Symbol&&Q!==Symbol.prototype?"symbol":typeof Q},o=(function(){function Q(O,T){var V=[],L=!0,X=!1,J=void 0;try{for(var W=O[Symbol.iterator](),G;!(L=(G=W.next()).done)&&(V.push(G.value),!(T&&V.length===T));L=!0);}catch(te){X=!0,J=te}finally{try{!L&&W.return&&W.return()}finally{if(X)throw J}}return V}return function(O,T){if(Array.isArray(O))return O;if(Symbol.iterator in Object(O))return Q(O,T);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),c=(function(){function Q(O,T){for(var V=0;V<T.length;V++){var L=T[V];L.enumerable=L.enumerable||!1,L.configurable=!0,"value"in L&&(L.writable=!0),Object.defineProperty(O,L.key,L)}}return function(O,T,V){return T&&Q(O.prototype,T),V&&Q(O,V),O}})();s(50);var d=s(2),f=I(d),h=s(14),m=I(h),p=s(8),g=I(p),b=s(9),j=I(b),y=s(0),x=I(y),N=s(15),w=I(N),k=s(3),A=I(k),S=s(10),E=I(S),C=s(34),B=I(C);function I(Q){return Q&&Q.__esModule?Q:{default:Q}}function R(Q,O,T){return O in Q?Object.defineProperty(Q,O,{value:T,enumerable:!0,configurable:!0,writable:!0}):Q[O]=T,Q}function D(Q,O){if(!(Q instanceof O))throw new TypeError("Cannot call a class as a function")}var q=(0,E.default)("quill"),z=(function(){c(Q,null,[{key:"debug",value:function(T){T===!0&&(T="log"),E.default.level(T)}},{key:"find",value:function(T){return T.__quill||x.default.find(T)}},{key:"import",value:function(T){return this.imports[T]==null&&q.error("Cannot import "+T+". Are you sure it was registered?"),this.imports[T]}},{key:"register",value:function(T,V){var L=this,X=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(typeof T!="string"){var J=T.attrName||T.blotName;typeof J=="string"?this.register("formats/"+J,T,V):Object.keys(T).forEach(function(W){L.register(W,T[W],V)})}else this.imports[T]!=null&&!X&&q.warn("Overwriting "+T+" with",V),this.imports[T]=V,(T.startsWith("blots/")||T.startsWith("formats/"))&&V.blotName!=="abstract"?x.default.register(V):T.startsWith("modules")&&typeof V.register=="function"&&V.register()}}]);function Q(O){var T=this,V=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(D(this,Q),this.options=U(O,V),this.container=this.options.container,this.container==null)return q.error("Invalid Quill container",O);this.options.debug&&Q.debug(this.options.debug);var L=this.container.innerHTML.trim();this.container.classList.add("ql-container"),this.container.innerHTML="",this.container.__quill=this,this.root=this.addContainer("ql-editor"),this.root.classList.add("ql-blank"),this.root.setAttribute("data-gramm",!1),this.scrollingContainer=this.options.scrollingContainer||this.root,this.emitter=new g.default,this.scroll=x.default.create(this.root,{emitter:this.emitter,whitelist:this.options.formats}),this.editor=new m.default(this.scroll),this.selection=new w.default(this.scroll,this.emitter),this.theme=new this.options.theme(this,this.options),this.keyboard=this.theme.addModule("keyboard"),this.clipboard=this.theme.addModule("clipboard"),this.history=this.theme.addModule("history"),this.theme.init(),this.emitter.on(g.default.events.EDITOR_CHANGE,function(J){J===g.default.events.TEXT_CHANGE&&T.root.classList.toggle("ql-blank",T.editor.isBlank())}),this.emitter.on(g.default.events.SCROLL_UPDATE,function(J,W){var G=T.selection.lastRange,te=G&&G.length===0?G.index:void 0;Y.call(T,function(){return T.editor.update(null,W,te)},J)});var X=this.clipboard.convert(`<div class='ql-editor' style="white-space: normal;">`+L+"<p><br></p></div>");this.setContents(X),this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable()}return c(Q,[{key:"addContainer",value:function(T){var V=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(typeof T=="string"){var L=T;T=document.createElement("div"),T.classList.add(L)}return this.container.insertBefore(T,V),T}},{key:"blur",value:function(){this.selection.setRange(null)}},{key:"deleteText",value:function(T,V,L){var X=this,J=H(T,V,L),W=o(J,4);return T=W[0],V=W[1],L=W[3],Y.call(this,function(){return X.editor.deleteText(T,V)},L,T,-1*V)}},{key:"disable",value:function(){this.enable(!1)}},{key:"enable",value:function(){var T=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.scroll.enable(T),this.container.classList.toggle("ql-disabled",!T)}},{key:"focus",value:function(){var T=this.scrollingContainer.scrollTop;this.selection.focus(),this.scrollingContainer.scrollTop=T,this.scrollIntoView()}},{key:"format",value:function(T,V){var L=this,X=arguments.length>2&&arguments[2]!==void 0?arguments[2]:g.default.sources.API;return Y.call(this,function(){var J=L.getSelection(!0),W=new f.default;if(J==null)return W;if(x.default.query(T,x.default.Scope.BLOCK))W=L.editor.formatLine(J.index,J.length,R({},T,V));else{if(J.length===0)return L.selection.format(T,V),W;W=L.editor.formatText(J.index,J.length,R({},T,V))}return L.setSelection(J,g.default.sources.SILENT),W},X)}},{key:"formatLine",value:function(T,V,L,X,J){var W=this,G=void 0,te=H(T,V,L,X,J),re=o(te,4);return T=re[0],V=re[1],G=re[2],J=re[3],Y.call(this,function(){return W.editor.formatLine(T,V,G)},J,T,0)}},{key:"formatText",value:function(T,V,L,X,J){var W=this,G=void 0,te=H(T,V,L,X,J),re=o(te,4);return T=re[0],V=re[1],G=re[2],J=re[3],Y.call(this,function(){return W.editor.formatText(T,V,G)},J,T,0)}},{key:"getBounds",value:function(T){var V=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,L=void 0;typeof T=="number"?L=this.selection.getBounds(T,V):L=this.selection.getBounds(T.index,T.length);var X=this.container.getBoundingClientRect();return{bottom:L.bottom-X.top,height:L.height,left:L.left-X.left,right:L.right-X.left,top:L.top-X.top,width:L.width}}},{key:"getContents",value:function(){var T=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,V=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.getLength()-T,L=H(T,V),X=o(L,2);return T=X[0],V=X[1],this.editor.getContents(T,V)}},{key:"getFormat",value:function(){var T=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.getSelection(!0),V=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return typeof T=="number"?this.editor.getFormat(T,V):this.editor.getFormat(T.index,T.length)}},{key:"getIndex",value:function(T){return T.offset(this.scroll)}},{key:"getLength",value:function(){return this.scroll.length()}},{key:"getLeaf",value:function(T){return this.scroll.leaf(T)}},{key:"getLine",value:function(T){return this.scroll.line(T)}},{key:"getLines",value:function(){var T=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,V=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MAX_VALUE;return typeof T!="number"?this.scroll.lines(T.index,T.length):this.scroll.lines(T,V)}},{key:"getModule",value:function(T){return this.theme.modules[T]}},{key:"getSelection",value:function(){var T=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return T&&this.focus(),this.update(),this.selection.getRange()[0]}},{key:"getText",value:function(){var T=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,V=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.getLength()-T,L=H(T,V),X=o(L,2);return T=X[0],V=X[1],this.editor.getText(T,V)}},{key:"hasFocus",value:function(){return this.selection.hasFocus()}},{key:"insertEmbed",value:function(T,V,L){var X=this,J=arguments.length>3&&arguments[3]!==void 0?arguments[3]:Q.sources.API;return Y.call(this,function(){return X.editor.insertEmbed(T,V,L)},J,T)}},{key:"insertText",value:function(T,V,L,X,J){var W=this,G=void 0,te=H(T,0,L,X,J),re=o(te,4);return T=re[0],G=re[2],J=re[3],Y.call(this,function(){return W.editor.insertText(T,V,G)},J,T,V.length)}},{key:"isEnabled",value:function(){return!this.container.classList.contains("ql-disabled")}},{key:"off",value:function(){return this.emitter.off.apply(this.emitter,arguments)}},{key:"on",value:function(){return this.emitter.on.apply(this.emitter,arguments)}},{key:"once",value:function(){return this.emitter.once.apply(this.emitter,arguments)}},{key:"pasteHTML",value:function(T,V,L){this.clipboard.dangerouslyPasteHTML(T,V,L)}},{key:"removeFormat",value:function(T,V,L){var X=this,J=H(T,V,L),W=o(J,4);return T=W[0],V=W[1],L=W[3],Y.call(this,function(){return X.editor.removeFormat(T,V)},L,T)}},{key:"scrollIntoView",value:function(){this.selection.scrollIntoView(this.scrollingContainer)}},{key:"setContents",value:function(T){var V=this,L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:g.default.sources.API;return Y.call(this,function(){T=new f.default(T);var X=V.getLength(),J=V.editor.deleteText(0,X),W=V.editor.applyDelta(T),G=W.ops[W.ops.length-1];G!=null&&typeof G.insert=="string"&&G.insert[G.insert.length-1]===`
`&&(V.editor.deleteText(V.getLength()-1,1),W.delete(1));var te=J.compose(W);return te},L)}},{key:"setSelection",value:function(T,V,L){if(T==null)this.selection.setRange(null,V||Q.sources.API);else{var X=H(T,V,L),J=o(X,4);T=J[0],V=J[1],L=J[3],this.selection.setRange(new N.Range(T,V),L),L!==g.default.sources.SILENT&&this.selection.scrollIntoView(this.scrollingContainer)}}},{key:"setText",value:function(T){var V=arguments.length>1&&arguments[1]!==void 0?arguments[1]:g.default.sources.API,L=new f.default().insert(T);return this.setContents(L,V)}},{key:"update",value:function(){var T=arguments.length>0&&arguments[0]!==void 0?arguments[0]:g.default.sources.USER,V=this.scroll.update(T);return this.selection.update(T),V}},{key:"updateContents",value:function(T){var V=this,L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:g.default.sources.API;return Y.call(this,function(){return T=new f.default(T),V.editor.applyDelta(T,L)},L,!0)}}]),Q})();z.DEFAULTS={bounds:null,formats:null,modules:{},placeholder:"",readOnly:!1,scrollingContainer:null,strict:!0,theme:"default"},z.events=g.default.events,z.sources=g.default.sources,z.version="1.3.7",z.imports={delta:f.default,parchment:x.default,"core/module":j.default,"core/theme":B.default};function U(Q,O){if(O=(0,A.default)(!0,{container:Q,modules:{clipboard:!0,keyboard:!0,history:!0}},O),!O.theme||O.theme===z.DEFAULTS.theme)O.theme=B.default;else if(O.theme=z.import("themes/"+O.theme),O.theme==null)throw new Error("Invalid theme "+O.theme+". Did you register it?");var T=(0,A.default)(!0,{},O.theme.DEFAULTS);[T,O].forEach(function(X){X.modules=X.modules||{},Object.keys(X.modules).forEach(function(J){X.modules[J]===!0&&(X.modules[J]={})})});var V=Object.keys(T.modules).concat(Object.keys(O.modules)),L=V.reduce(function(X,J){var W=z.import("modules/"+J);return W==null?q.error("Cannot load "+J+" module. Are you sure you registered it?"):X[J]=W.DEFAULTS||{},X},{});return O.modules!=null&&O.modules.toolbar&&O.modules.toolbar.constructor!==Object&&(O.modules.toolbar={container:O.modules.toolbar}),O=(0,A.default)(!0,{},z.DEFAULTS,{modules:L},T,O),["bounds","container","scrollingContainer"].forEach(function(X){typeof O[X]=="string"&&(O[X]=document.querySelector(O[X]))}),O.modules=Object.keys(O.modules).reduce(function(X,J){return O.modules[J]&&(X[J]=O.modules[J]),X},{}),O}function Y(Q,O,T,V){if(this.options.strict&&!this.isEnabled()&&O===g.default.sources.USER)return new f.default;var L=T==null?null:this.getSelection(),X=this.editor.delta,J=Q();if(L!=null&&(T===!0&&(T=L.index),V==null?L=K(L,J,O):V!==0&&(L=K(L,T,V,O)),this.setSelection(L,g.default.sources.SILENT)),J.length()>0){var W,G=[g.default.events.TEXT_CHANGE,J,X,O];if((W=this.emitter).emit.apply(W,[g.default.events.EDITOR_CHANGE].concat(G)),O!==g.default.sources.SILENT){var te;(te=this.emitter).emit.apply(te,G)}}return J}function H(Q,O,T,V,L){var X={};return typeof Q.index=="number"&&typeof Q.length=="number"?typeof O!="number"?(L=V,V=T,T=O,O=Q.length,Q=Q.index):(O=Q.length,Q=Q.index):typeof O!="number"&&(L=V,V=T,T=O,O=0),(typeof T>"u"?"undefined":a(T))==="object"?(X=T,L=V):typeof T=="string"&&(V!=null?X[T]=V:L=T),L=L||g.default.sources.API,[Q,O,X,L]}function K(Q,O,T,V){if(Q==null)return null;var L=void 0,X=void 0;if(O instanceof f.default){var J=[Q.index,Q.index+Q.length].map(function(re){return O.transformPosition(re,V!==g.default.sources.USER)}),W=o(J,2);L=W[0],X=W[1]}else{var G=[Q.index,Q.index+Q.length].map(function(re){return re<O||re===O&&V===g.default.sources.USER?re:T>=0?re+T:Math.max(O,re+T)}),te=o(G,2);L=te[0],X=te[1]}return new N.Range(L,X-L)}i.expandConfig=U,i.overload=H,i.default=z}),(function(r,i,s){Object.defineProperty(i,"__esModule",{value:!0});var a=(function(){function y(x,N){for(var w=0;w<N.length;w++){var k=N[w];k.enumerable=k.enumerable||!1,k.configurable=!0,"value"in k&&(k.writable=!0),Object.defineProperty(x,k.key,k)}}return function(x,N,w){return N&&y(x.prototype,N),w&&y(x,w),x}})(),o=function y(x,N,w){x===null&&(x=Function.prototype);var k=Object.getOwnPropertyDescriptor(x,N);if(k===void 0){var A=Object.getPrototypeOf(x);return A===null?void 0:y(A,N,w)}else{if("value"in k)return k.value;var S=k.get;return S===void 0?void 0:S.call(w)}},c=s(7),d=m(c),f=s(0),h=m(f);function m(y){return y&&y.__esModule?y:{default:y}}function p(y,x){if(!(y instanceof x))throw new TypeError("Cannot call a class as a function")}function g(y,x){if(!y)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return x&&(typeof x=="object"||typeof x=="function")?x:y}function b(y,x){if(typeof x!="function"&&x!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof x);y.prototype=Object.create(x&&x.prototype,{constructor:{value:y,enumerable:!1,writable:!0,configurable:!0}}),x&&(Object.setPrototypeOf?Object.setPrototypeOf(y,x):y.__proto__=x)}var j=(function(y){b(x,y);function x(){return p(this,x),g(this,(x.__proto__||Object.getPrototypeOf(x)).apply(this,arguments))}return a(x,[{key:"formatAt",value:function(w,k,A,S){if(x.compare(this.statics.blotName,A)<0&&h.default.query(A,h.default.Scope.BLOT)){var E=this.isolate(w,k);S&&E.wrap(A,S)}else o(x.prototype.__proto__||Object.getPrototypeOf(x.prototype),"formatAt",this).call(this,w,k,A,S)}},{key:"optimize",value:function(w){if(o(x.prototype.__proto__||Object.getPrototypeOf(x.prototype),"optimize",this).call(this,w),this.parent instanceof x&&x.compare(this.statics.blotName,this.parent.statics.blotName)>0){var k=this.parent.isolate(this.offset(),this.length());this.moveChildren(k),k.wrap(this)}}}],[{key:"compare",value:function(w,k){var A=x.order.indexOf(w),S=x.order.indexOf(k);return A>=0||S>=0?A-S:w===k?0:w<k?-1:1}}]),x})(h.default.Inline);j.allowedChildren=[j,h.default.Embed,d.default],j.order=["cursor","inline","underline","strike","italic","bold","script","link","code"],i.default=j}),(function(r,i,s){Object.defineProperty(i,"__esModule",{value:!0});var a=s(0),o=c(a);function c(p){return p&&p.__esModule?p:{default:p}}function d(p,g){if(!(p instanceof g))throw new TypeError("Cannot call a class as a function")}function f(p,g){if(!p)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g&&(typeof g=="object"||typeof g=="function")?g:p}function h(p,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof g);p.prototype=Object.create(g&&g.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(p,g):p.__proto__=g)}var m=(function(p){h(g,p);function g(){return d(this,g),f(this,(g.__proto__||Object.getPrototypeOf(g)).apply(this,arguments))}return g})(o.default.Text);i.default=m}),(function(r,i,s){Object.defineProperty(i,"__esModule",{value:!0});var a=(function(){function N(w,k){for(var A=0;A<k.length;A++){var S=k[A];S.enumerable=S.enumerable||!1,S.configurable=!0,"value"in S&&(S.writable=!0),Object.defineProperty(w,S.key,S)}}return function(w,k,A){return k&&N(w.prototype,k),A&&N(w,A),w}})(),o=function N(w,k,A){w===null&&(w=Function.prototype);var S=Object.getOwnPropertyDescriptor(w,k);if(S===void 0){var E=Object.getPrototypeOf(w);return E===null?void 0:N(E,k,A)}else{if("value"in S)return S.value;var C=S.get;return C===void 0?void 0:C.call(A)}},c=s(54),d=m(c),f=s(10),h=m(f);function m(N){return N&&N.__esModule?N:{default:N}}function p(N,w){if(!(N instanceof w))throw new TypeError("Cannot call a class as a function")}function g(N,w){if(!N)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return w&&(typeof w=="object"||typeof w=="function")?w:N}function b(N,w){if(typeof w!="function"&&w!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof w);N.prototype=Object.create(w&&w.prototype,{constructor:{value:N,enumerable:!1,writable:!0,configurable:!0}}),w&&(Object.setPrototypeOf?Object.setPrototypeOf(N,w):N.__proto__=w)}var j=(0,h.default)("quill:events"),y=["selectionchange","mousedown","mouseup","click"];y.forEach(function(N){document.addEventListener(N,function(){for(var w=arguments.length,k=Array(w),A=0;A<w;A++)k[A]=arguments[A];[].slice.call(document.querySelectorAll(".ql-container")).forEach(function(S){if(S.__quill&&S.__quill.emitter){var E;(E=S.__quill.emitter).handleDOM.apply(E,k)}})})});var x=(function(N){b(w,N);function w(){p(this,w);var k=g(this,(w.__proto__||Object.getPrototypeOf(w)).call(this));return k.listeners={},k.on("error",j.error),k}return a(w,[{key:"emit",value:function(){j.log.apply(j,arguments),o(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"emit",this).apply(this,arguments)}},{key:"handleDOM",value:function(A){for(var S=arguments.length,E=Array(S>1?S-1:0),C=1;C<S;C++)E[C-1]=arguments[C];(this.listeners[A.type]||[]).forEach(function(B){var I=B.node,R=B.handler;(A.target===I||I.contains(A.target))&&R.apply(void 0,[A].concat(E))})}},{key:"listenDOM",value:function(A,S,E){this.listeners[A]||(this.listeners[A]=[]),this.listeners[A].push({node:S,handler:E})}}]),w})(d.default);x.events={EDITOR_CHANGE:"editor-change",SCROLL_BEFORE_UPDATE:"scroll-before-update",SCROLL_OPTIMIZE:"scroll-optimize",SCROLL_UPDATE:"scroll-update",SELECTION_CHANGE:"selection-change",TEXT_CHANGE:"text-change"},x.sources={API:"api",SILENT:"silent",USER:"user"},i.default=x}),(function(r,i,s){Object.defineProperty(i,"__esModule",{value:!0});function a(c,d){if(!(c instanceof d))throw new TypeError("Cannot call a class as a function")}var o=function c(d){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};a(this,c),this.quill=d,this.options=f};o.DEFAULTS={},i.default=o}),(function(r,i,s){Object.defineProperty(i,"__esModule",{value:!0});var a=["error","warn","log","info"],o="warn";function c(f){if(a.indexOf(f)<=a.indexOf(o)){for(var h,m=arguments.length,p=Array(m>1?m-1:0),g=1;g<m;g++)p[g-1]=arguments[g];(h=console)[f].apply(h,p)}}function d(f){return a.reduce(function(h,m){return h[m]=c.bind(console,m,f),h},{})}c.level=d.level=function(f){o=f},i.default=d}),(function(r,i,s){var a=Array.prototype.slice,o=s(52),c=s(53),d=r.exports=function(p,g,b){return b||(b={}),p===g?!0:p instanceof Date&&g instanceof Date?p.getTime()===g.getTime():!p||!g||typeof p!="object"&&typeof g!="object"?b.strict?p===g:p==g:m(p,g,b)};function f(p){return p==null}function h(p){return!(!p||typeof p!="object"||typeof p.length!="number"||typeof p.copy!="function"||typeof p.slice!="function"||p.length>0&&typeof p[0]!="number")}function m(p,g,b){var j,y;if(f(p)||f(g)||p.prototype!==g.prototype)return!1;if(c(p))return c(g)?(p=a.call(p),g=a.call(g),d(p,g,b)):!1;if(h(p)){if(!h(g)||p.length!==g.length)return!1;for(j=0;j<p.length;j++)if(p[j]!==g[j])return!1;return!0}try{var x=o(p),N=o(g)}catch{return!1}if(x.length!=N.length)return!1;for(x.sort(),N.sort(),j=x.length-1;j>=0;j--)if(x[j]!=N[j])return!1;for(j=x.length-1;j>=0;j--)if(y=x[j],!d(p[y],g[y],b))return!1;return typeof p==typeof g}}),(function(r,i,s){Object.defineProperty(i,"__esModule",{value:!0});var a=s(1),o=(function(){function c(d,f,h){h===void 0&&(h={}),this.attrName=d,this.keyName=f;var m=a.Scope.TYPE&a.Scope.ATTRIBUTE;h.scope!=null?this.scope=h.scope&a.Scope.LEVEL|m:this.scope=a.Scope.ATTRIBUTE,h.whitelist!=null&&(this.whitelist=h.whitelist)}return c.keys=function(d){return[].map.call(d.attributes,function(f){return f.name})},c.prototype.add=function(d,f){return this.canAdd(d,f)?(d.setAttribute(this.keyName,f),!0):!1},c.prototype.canAdd=function(d,f){var h=a.query(d,a.Scope.BLOT&(this.scope|a.Scope.TYPE));return h==null?!1:this.whitelist==null?!0:typeof f=="string"?this.whitelist.indexOf(f.replace(/["']/g,""))>-1:this.whitelist.indexOf(f)>-1},c.prototype.remove=function(d){d.removeAttribute(this.keyName)},c.prototype.value=function(d){var f=d.getAttribute(this.keyName);return this.canAdd(d,f)&&f?f:""},c})();i.default=o}),(function(r,i,s){Object.defineProperty(i,"__esModule",{value:!0}),i.default=i.Code=void 0;var a=(function(){function C(B,I){var R=[],D=!0,q=!1,z=void 0;try{for(var U=B[Symbol.iterator](),Y;!(D=(Y=U.next()).done)&&(R.push(Y.value),!(I&&R.length===I));D=!0);}catch(H){q=!0,z=H}finally{try{!D&&U.return&&U.return()}finally{if(q)throw z}}return R}return function(B,I){if(Array.isArray(B))return B;if(Symbol.iterator in Object(B))return C(B,I);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),o=(function(){function C(B,I){for(var R=0;R<I.length;R++){var D=I[R];D.enumerable=D.enumerable||!1,D.configurable=!0,"value"in D&&(D.writable=!0),Object.defineProperty(B,D.key,D)}}return function(B,I,R){return I&&C(B.prototype,I),R&&C(B,R),B}})(),c=function C(B,I,R){B===null&&(B=Function.prototype);var D=Object.getOwnPropertyDescriptor(B,I);if(D===void 0){var q=Object.getPrototypeOf(B);return q===null?void 0:C(q,I,R)}else{if("value"in D)return D.value;var z=D.get;return z===void 0?void 0:z.call(R)}},d=s(2),f=N(d),h=s(0),m=N(h),p=s(4),g=N(p),b=s(6),j=N(b),y=s(7),x=N(y);function N(C){return C&&C.__esModule?C:{default:C}}function w(C,B){if(!(C instanceof B))throw new TypeError("Cannot call a class as a function")}function k(C,B){if(!C)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return B&&(typeof B=="object"||typeof B=="function")?B:C}function A(C,B){if(typeof B!="function"&&B!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof B);C.prototype=Object.create(B&&B.prototype,{constructor:{value:C,enumerable:!1,writable:!0,configurable:!0}}),B&&(Object.setPrototypeOf?Object.setPrototypeOf(C,B):C.__proto__=B)}var S=(function(C){A(B,C);function B(){return w(this,B),k(this,(B.__proto__||Object.getPrototypeOf(B)).apply(this,arguments))}return B})(j.default);S.blotName="code",S.tagName="CODE";var E=(function(C){A(B,C);function B(){return w(this,B),k(this,(B.__proto__||Object.getPrototypeOf(B)).apply(this,arguments))}return o(B,[{key:"delta",value:function(){var R=this,D=this.domNode.textContent;return D.endsWith(`
`)&&(D=D.slice(0,-1)),D.split(`
`).reduce(function(q,z){return q.insert(z).insert(`
`,R.formats())},new f.default)}},{key:"format",value:function(R,D){if(!(R===this.statics.blotName&&D)){var q=this.descendant(x.default,this.length()-1),z=a(q,1),U=z[0];U!=null&&U.deleteAt(U.length()-1,1),c(B.prototype.__proto__||Object.getPrototypeOf(B.prototype),"format",this).call(this,R,D)}}},{key:"formatAt",value:function(R,D,q,z){if(D!==0&&!(m.default.query(q,m.default.Scope.BLOCK)==null||q===this.statics.blotName&&z===this.statics.formats(this.domNode))){var U=this.newlineIndex(R);if(!(U<0||U>=R+D)){var Y=this.newlineIndex(R,!0)+1,H=U-Y+1,K=this.isolate(Y,H),Q=K.next;K.format(q,z),Q instanceof B&&Q.formatAt(0,R-Y+D-H,q,z)}}}},{key:"insertAt",value:function(R,D,q){if(q==null){var z=this.descendant(x.default,R),U=a(z,2),Y=U[0],H=U[1];Y.insertAt(H,D)}}},{key:"length",value:function(){var R=this.domNode.textContent.length;return this.domNode.textContent.endsWith(`
`)?R:R+1}},{key:"newlineIndex",value:function(R){var D=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(D)return this.domNode.textContent.slice(0,R).lastIndexOf(`
`);var q=this.domNode.textContent.slice(R).indexOf(`
`);return q>-1?R+q:-1}},{key:"optimize",value:function(R){this.domNode.textContent.endsWith(`
`)||this.appendChild(m.default.create("text",`
`)),c(B.prototype.__proto__||Object.getPrototypeOf(B.prototype),"optimize",this).call(this,R);var D=this.next;D!=null&&D.prev===this&&D.statics.blotName===this.statics.blotName&&this.statics.formats(this.domNode)===D.statics.formats(D.domNode)&&(D.optimize(R),D.moveChildren(this),D.remove())}},{key:"replace",value:function(R){c(B.prototype.__proto__||Object.getPrototypeOf(B.prototype),"replace",this).call(this,R),[].slice.call(this.domNode.querySelectorAll("*")).forEach(function(D){var q=m.default.find(D);q==null?D.parentNode.removeChild(D):q instanceof m.default.Embed?q.remove():q.unwrap()})}}],[{key:"create",value:function(R){var D=c(B.__proto__||Object.getPrototypeOf(B),"create",this).call(this,R);return D.setAttribute("spellcheck",!1),D}},{key:"formats",value:function(){return!0}}]),B})(g.default);E.blotName="code-block",E.tagName="PRE",E.TAB="  ",i.Code=S,i.default=E}),(function(r,i,s){Object.defineProperty(i,"__esModule",{value:!0});var a=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Q){return typeof Q}:function(Q){return Q&&typeof Symbol=="function"&&Q.constructor===Symbol&&Q!==Symbol.prototype?"symbol":typeof Q},o=(function(){function Q(O,T){var V=[],L=!0,X=!1,J=void 0;try{for(var W=O[Symbol.iterator](),G;!(L=(G=W.next()).done)&&(V.push(G.value),!(T&&V.length===T));L=!0);}catch(te){X=!0,J=te}finally{try{!L&&W.return&&W.return()}finally{if(X)throw J}}return V}return function(O,T){if(Array.isArray(O))return O;if(Symbol.iterator in Object(O))return Q(O,T);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),c=(function(){function Q(O,T){for(var V=0;V<T.length;V++){var L=T[V];L.enumerable=L.enumerable||!1,L.configurable=!0,"value"in L&&(L.writable=!0),Object.defineProperty(O,L.key,L)}}return function(O,T,V){return T&&Q(O.prototype,T),V&&Q(O,V),O}})(),d=s(2),f=D(d),h=s(20),m=D(h),p=s(0),g=D(p),b=s(13),j=D(b),y=s(24),x=D(y),N=s(4),w=D(N),k=s(16),A=D(k),S=s(21),E=D(S),C=s(11),B=D(C),I=s(3),R=D(I);function D(Q){return Q&&Q.__esModule?Q:{default:Q}}function q(Q,O,T){return O in Q?Object.defineProperty(Q,O,{value:T,enumerable:!0,configurable:!0,writable:!0}):Q[O]=T,Q}function z(Q,O){if(!(Q instanceof O))throw new TypeError("Cannot call a class as a function")}var U=/^[ -~]*$/,Y=(function(){function Q(O){z(this,Q),this.scroll=O,this.delta=this.getDelta()}return c(Q,[{key:"applyDelta",value:function(T){var V=this,L=!1;this.scroll.update();var X=this.scroll.length();return this.scroll.batchStart(),T=K(T),T.reduce(function(J,W){var G=W.retain||W.delete||W.insert.length||1,te=W.attributes||{};if(W.insert!=null){if(typeof W.insert=="string"){var re=W.insert;re.endsWith(`
`)&&L&&(L=!1,re=re.slice(0,-1)),J>=X&&!re.endsWith(`
`)&&(L=!0),V.scroll.insertAt(J,re);var le=V.scroll.line(J),ye=o(le,2),be=ye[0],Pe=ye[1],Te=(0,R.default)({},(0,N.bubbleFormats)(be));if(be instanceof w.default){var We=be.descendant(g.default.Leaf,Pe),ut=o(We,1),nt=ut[0];Te=(0,R.default)(Te,(0,N.bubbleFormats)(nt))}te=m.default.attributes.diff(Te,te)||{}}else if(a(W.insert)==="object"){var ge=Object.keys(W.insert)[0];if(ge==null)return J;V.scroll.insertAt(J,ge,W.insert[ge])}X+=G}return Object.keys(te).forEach(function(ve){V.scroll.formatAt(J,G,ve,te[ve])}),J+G},0),T.reduce(function(J,W){return typeof W.delete=="number"?(V.scroll.deleteAt(J,W.delete),J):J+(W.retain||W.insert.length||1)},0),this.scroll.batchEnd(),this.update(T)}},{key:"deleteText",value:function(T,V){return this.scroll.deleteAt(T,V),this.update(new f.default().retain(T).delete(V))}},{key:"formatLine",value:function(T,V){var L=this,X=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.scroll.update(),Object.keys(X).forEach(function(J){if(!(L.scroll.whitelist!=null&&!L.scroll.whitelist[J])){var W=L.scroll.lines(T,Math.max(V,1)),G=V;W.forEach(function(te){var re=te.length();if(!(te instanceof j.default))te.format(J,X[J]);else{var le=T-te.offset(L.scroll),ye=te.newlineIndex(le+G)-le+1;te.formatAt(le,ye,J,X[J])}G-=re})}}),this.scroll.optimize(),this.update(new f.default().retain(T).retain(V,(0,E.default)(X)))}},{key:"formatText",value:function(T,V){var L=this,X=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return Object.keys(X).forEach(function(J){L.scroll.formatAt(T,V,J,X[J])}),this.update(new f.default().retain(T).retain(V,(0,E.default)(X)))}},{key:"getContents",value:function(T,V){return this.delta.slice(T,T+V)}},{key:"getDelta",value:function(){return this.scroll.lines().reduce(function(T,V){return T.concat(V.delta())},new f.default)}},{key:"getFormat",value:function(T){var V=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,L=[],X=[];V===0?this.scroll.path(T).forEach(function(W){var G=o(W,1),te=G[0];te instanceof w.default?L.push(te):te instanceof g.default.Leaf&&X.push(te)}):(L=this.scroll.lines(T,V),X=this.scroll.descendants(g.default.Leaf,T,V));var J=[L,X].map(function(W){if(W.length===0)return{};for(var G=(0,N.bubbleFormats)(W.shift());Object.keys(G).length>0;){var te=W.shift();if(te==null)return G;G=H((0,N.bubbleFormats)(te),G)}return G});return R.default.apply(R.default,J)}},{key:"getText",value:function(T,V){return this.getContents(T,V).filter(function(L){return typeof L.insert=="string"}).map(function(L){return L.insert}).join("")}},{key:"insertEmbed",value:function(T,V,L){return this.scroll.insertAt(T,V,L),this.update(new f.default().retain(T).insert(q({},V,L)))}},{key:"insertText",value:function(T,V){var L=this,X=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return V=V.replace(/\r\n/g,`
`).replace(/\r/g,`
`),this.scroll.insertAt(T,V),Object.keys(X).forEach(function(J){L.scroll.formatAt(T,V.length,J,X[J])}),this.update(new f.default().retain(T).insert(V,(0,E.default)(X)))}},{key:"isBlank",value:function(){if(this.scroll.children.length==0)return!0;if(this.scroll.children.length>1)return!1;var T=this.scroll.children.head;return T.statics.blotName!==w.default.blotName||T.children.length>1?!1:T.children.head instanceof A.default}},{key:"removeFormat",value:function(T,V){var L=this.getText(T,V),X=this.scroll.line(T+V),J=o(X,2),W=J[0],G=J[1],te=0,re=new f.default;W!=null&&(W instanceof j.default?te=W.newlineIndex(G)-G+1:te=W.length()-G,re=W.delta().slice(G,G+te-1).insert(`
`));var le=this.getContents(T,V+te),ye=le.diff(new f.default().insert(L).concat(re)),be=new f.default().retain(T).concat(ye);return this.applyDelta(be)}},{key:"update",value:function(T){var V=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],L=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0,X=this.delta;if(V.length===1&&V[0].type==="characterData"&&V[0].target.data.match(U)&&g.default.find(V[0].target)){var J=g.default.find(V[0].target),W=(0,N.bubbleFormats)(J),G=J.offset(this.scroll),te=V[0].oldValue.replace(x.default.CONTENTS,""),re=new f.default().insert(te),le=new f.default().insert(J.value()),ye=new f.default().retain(G).concat(re.diff(le,L));T=ye.reduce(function(be,Pe){return Pe.insert?be.insert(Pe.insert,W):be.push(Pe)},new f.default),this.delta=X.compose(T)}else this.delta=this.getDelta(),(!T||!(0,B.default)(X.compose(T),this.delta))&&(T=X.diff(this.delta,L));return T}}]),Q})();function H(Q,O){return Object.keys(O).reduce(function(T,V){return Q[V]==null||(O[V]===Q[V]?T[V]=O[V]:Array.isArray(O[V])?O[V].indexOf(Q[V])<0&&(T[V]=O[V].concat([Q[V]])):T[V]=[O[V],Q[V]]),T},{})}function K(Q){return Q.reduce(function(O,T){if(T.insert===1){var V=(0,E.default)(T.attributes);return delete V.image,O.insert({image:T.attributes.image},V)}if(T.attributes!=null&&(T.attributes.list===!0||T.attributes.bullet===!0)&&(T=(0,E.default)(T),T.attributes.list?T.attributes.list="ordered":(T.attributes.list="bullet",delete T.attributes.bullet)),typeof T.insert=="string"){var L=T.insert.replace(/\r\n/g,`
`).replace(/\r/g,`
`);return O.insert(L,T.attributes)}return O.push(T)},new f.default)}i.default=Y}),(function(r,i,s){Object.defineProperty(i,"__esModule",{value:!0}),i.default=i.Range=void 0;var a=(function(){function C(B,I){var R=[],D=!0,q=!1,z=void 0;try{for(var U=B[Symbol.iterator](),Y;!(D=(Y=U.next()).done)&&(R.push(Y.value),!(I&&R.length===I));D=!0);}catch(H){q=!0,z=H}finally{try{!D&&U.return&&U.return()}finally{if(q)throw z}}return R}return function(B,I){if(Array.isArray(B))return B;if(Symbol.iterator in Object(B))return C(B,I);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),o=(function(){function C(B,I){for(var R=0;R<I.length;R++){var D=I[R];D.enumerable=D.enumerable||!1,D.configurable=!0,"value"in D&&(D.writable=!0),Object.defineProperty(B,D.key,D)}}return function(B,I,R){return I&&C(B.prototype,I),R&&C(B,R),B}})(),c=s(0),d=x(c),f=s(21),h=x(f),m=s(11),p=x(m),g=s(8),b=x(g),j=s(10),y=x(j);function x(C){return C&&C.__esModule?C:{default:C}}function N(C){if(Array.isArray(C)){for(var B=0,I=Array(C.length);B<C.length;B++)I[B]=C[B];return I}else return Array.from(C)}function w(C,B){if(!(C instanceof B))throw new TypeError("Cannot call a class as a function")}var k=(0,y.default)("quill:selection"),A=function C(B){var I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;w(this,C),this.index=B,this.length=I},S=(function(){function C(B,I){var R=this;w(this,C),this.emitter=I,this.scroll=B,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=d.default.create("cursor",this),this.lastRange=this.savedRange=new A(0,0),this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,function(){R.mouseDown||setTimeout(R.update.bind(R,b.default.sources.USER),1)}),this.emitter.on(b.default.events.EDITOR_CHANGE,function(D,q){D===b.default.events.TEXT_CHANGE&&q.length()>0&&R.update(b.default.sources.SILENT)}),this.emitter.on(b.default.events.SCROLL_BEFORE_UPDATE,function(){if(R.hasFocus()){var D=R.getNativeRange();D!=null&&D.start.node!==R.cursor.textNode&&R.emitter.once(b.default.events.SCROLL_UPDATE,function(){try{R.setNativeRange(D.start.node,D.start.offset,D.end.node,D.end.offset)}catch{}})}}),this.emitter.on(b.default.events.SCROLL_OPTIMIZE,function(D,q){if(q.range){var z=q.range,U=z.startNode,Y=z.startOffset,H=z.endNode,K=z.endOffset;R.setNativeRange(U,Y,H,K)}}),this.update(b.default.sources.SILENT)}return o(C,[{key:"handleComposition",value:function(){var I=this;this.root.addEventListener("compositionstart",function(){I.composing=!0}),this.root.addEventListener("compositionend",function(){if(I.composing=!1,I.cursor.parent){var R=I.cursor.restore();if(!R)return;setTimeout(function(){I.setNativeRange(R.startNode,R.startOffset,R.endNode,R.endOffset)},1)}})}},{key:"handleDragging",value:function(){var I=this;this.emitter.listenDOM("mousedown",document.body,function(){I.mouseDown=!0}),this.emitter.listenDOM("mouseup",document.body,function(){I.mouseDown=!1,I.update(b.default.sources.USER)})}},{key:"focus",value:function(){this.hasFocus()||(this.root.focus(),this.setRange(this.savedRange))}},{key:"format",value:function(I,R){if(!(this.scroll.whitelist!=null&&!this.scroll.whitelist[I])){this.scroll.update();var D=this.getNativeRange();if(!(D==null||!D.native.collapsed||d.default.query(I,d.default.Scope.BLOCK))){if(D.start.node!==this.cursor.textNode){var q=d.default.find(D.start.node,!1);if(q==null)return;if(q instanceof d.default.Leaf){var z=q.split(D.start.offset);q.parent.insertBefore(this.cursor,z)}else q.insertBefore(this.cursor,D.start.node);this.cursor.attach()}this.cursor.format(I,R),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}}},{key:"getBounds",value:function(I){var R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,D=this.scroll.length();I=Math.min(I,D-1),R=Math.min(I+R,D-1)-I;var q=void 0,z=this.scroll.leaf(I),U=a(z,2),Y=U[0],H=U[1];if(Y==null)return null;var K=Y.position(H,!0),Q=a(K,2);q=Q[0],H=Q[1];var O=document.createRange();if(R>0){O.setStart(q,H);var T=this.scroll.leaf(I+R),V=a(T,2);if(Y=V[0],H=V[1],Y==null)return null;var L=Y.position(H,!0),X=a(L,2);return q=X[0],H=X[1],O.setEnd(q,H),O.getBoundingClientRect()}else{var J="left",W=void 0;return q instanceof Text?(H<q.data.length?(O.setStart(q,H),O.setEnd(q,H+1)):(O.setStart(q,H-1),O.setEnd(q,H),J="right"),W=O.getBoundingClientRect()):(W=Y.domNode.getBoundingClientRect(),H>0&&(J="right")),{bottom:W.top+W.height,height:W.height,left:W[J],right:W[J],top:W.top,width:0}}}},{key:"getNativeRange",value:function(){var I=document.getSelection();if(I==null||I.rangeCount<=0)return null;var R=I.getRangeAt(0);if(R==null)return null;var D=this.normalizeNative(R);return k.info("getNativeRange",D),D}},{key:"getRange",value:function(){var I=this.getNativeRange();if(I==null)return[null,null];var R=this.normalizedToRange(I);return[R,I]}},{key:"hasFocus",value:function(){return document.activeElement===this.root}},{key:"normalizedToRange",value:function(I){var R=this,D=[[I.start.node,I.start.offset]];I.native.collapsed||D.push([I.end.node,I.end.offset]);var q=D.map(function(Y){var H=a(Y,2),K=H[0],Q=H[1],O=d.default.find(K,!0),T=O.offset(R.scroll);return Q===0?T:O instanceof d.default.Container?T+O.length():T+O.index(K,Q)}),z=Math.min(Math.max.apply(Math,N(q)),this.scroll.length()-1),U=Math.min.apply(Math,[z].concat(N(q)));return new A(U,z-U)}},{key:"normalizeNative",value:function(I){if(!E(this.root,I.startContainer)||!I.collapsed&&!E(this.root,I.endContainer))return null;var R={start:{node:I.startContainer,offset:I.startOffset},end:{node:I.endContainer,offset:I.endOffset},native:I};return[R.start,R.end].forEach(function(D){for(var q=D.node,z=D.offset;!(q instanceof Text)&&q.childNodes.length>0;)if(q.childNodes.length>z)q=q.childNodes[z],z=0;else if(q.childNodes.length===z)q=q.lastChild,z=q instanceof Text?q.data.length:q.childNodes.length+1;else break;D.node=q,D.offset=z}),R}},{key:"rangeToNative",value:function(I){var R=this,D=I.collapsed?[I.index]:[I.index,I.index+I.length],q=[],z=this.scroll.length();return D.forEach(function(U,Y){U=Math.min(z-1,U);var H=void 0,K=R.scroll.leaf(U),Q=a(K,2),O=Q[0],T=Q[1],V=O.position(T,Y!==0),L=a(V,2);H=L[0],T=L[1],q.push(H,T)}),q.length<2&&(q=q.concat(q)),q}},{key:"scrollIntoView",value:function(I){var R=this.lastRange;if(R!=null){var D=this.getBounds(R.index,R.length);if(D!=null){var q=this.scroll.length()-1,z=this.scroll.line(Math.min(R.index,q)),U=a(z,1),Y=U[0],H=Y;if(R.length>0){var K=this.scroll.line(Math.min(R.index+R.length,q)),Q=a(K,1);H=Q[0]}if(!(Y==null||H==null)){var O=I.getBoundingClientRect();D.top<O.top?I.scrollTop-=O.top-D.top:D.bottom>O.bottom&&(I.scrollTop+=D.bottom-O.bottom)}}}}},{key:"setNativeRange",value:function(I,R){var D=arguments.length>2&&arguments[2]!==void 0?arguments[2]:I,q=arguments.length>3&&arguments[3]!==void 0?arguments[3]:R,z=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(k.info("setNativeRange",I,R,D,q),!(I!=null&&(this.root.parentNode==null||I.parentNode==null||D.parentNode==null))){var U=document.getSelection();if(U!=null)if(I!=null){this.hasFocus()||this.root.focus();var Y=(this.getNativeRange()||{}).native;if(Y==null||z||I!==Y.startContainer||R!==Y.startOffset||D!==Y.endContainer||q!==Y.endOffset){I.tagName=="BR"&&(R=[].indexOf.call(I.parentNode.childNodes,I),I=I.parentNode),D.tagName=="BR"&&(q=[].indexOf.call(D.parentNode.childNodes,D),D=D.parentNode);var H=document.createRange();H.setStart(I,R),H.setEnd(D,q),U.removeAllRanges(),U.addRange(H)}}else U.removeAllRanges(),this.root.blur(),document.body.focus()}}},{key:"setRange",value:function(I){var R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,D=arguments.length>2&&arguments[2]!==void 0?arguments[2]:b.default.sources.API;if(typeof R=="string"&&(D=R,R=!1),k.info("setRange",I),I!=null){var q=this.rangeToNative(I);this.setNativeRange.apply(this,N(q).concat([R]))}else this.setNativeRange(null);this.update(D)}},{key:"update",value:function(){var I=arguments.length>0&&arguments[0]!==void 0?arguments[0]:b.default.sources.USER,R=this.lastRange,D=this.getRange(),q=a(D,2),z=q[0],U=q[1];if(this.lastRange=z,this.lastRange!=null&&(this.savedRange=this.lastRange),!(0,p.default)(R,this.lastRange)){var Y;!this.composing&&U!=null&&U.native.collapsed&&U.start.node!==this.cursor.textNode&&this.cursor.restore();var H=[b.default.events.SELECTION_CHANGE,(0,h.default)(this.lastRange),(0,h.default)(R),I];if((Y=this.emitter).emit.apply(Y,[b.default.events.EDITOR_CHANGE].concat(H)),I!==b.default.sources.SILENT){var K;(K=this.emitter).emit.apply(K,H)}}}}]),C})();function E(C,B){try{B.parentNode}catch{return!1}return B instanceof Text&&(B=B.parentNode),C.contains(B)}i.Range=A,i.default=S}),(function(r,i,s){Object.defineProperty(i,"__esModule",{value:!0});var a=(function(){function b(j,y){for(var x=0;x<y.length;x++){var N=y[x];N.enumerable=N.enumerable||!1,N.configurable=!0,"value"in N&&(N.writable=!0),Object.defineProperty(j,N.key,N)}}return function(j,y,x){return y&&b(j.prototype,y),x&&b(j,x),j}})(),o=function b(j,y,x){j===null&&(j=Function.prototype);var N=Object.getOwnPropertyDescriptor(j,y);if(N===void 0){var w=Object.getPrototypeOf(j);return w===null?void 0:b(w,y,x)}else{if("value"in N)return N.value;var k=N.get;return k===void 0?void 0:k.call(x)}},c=s(0),d=f(c);function f(b){return b&&b.__esModule?b:{default:b}}function h(b,j){if(!(b instanceof j))throw new TypeError("Cannot call a class as a function")}function m(b,j){if(!b)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return j&&(typeof j=="object"||typeof j=="function")?j:b}function p(b,j){if(typeof j!="function"&&j!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof j);b.prototype=Object.create(j&&j.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}}),j&&(Object.setPrototypeOf?Object.setPrototypeOf(b,j):b.__proto__=j)}var g=(function(b){p(j,b);function j(){return h(this,j),m(this,(j.__proto__||Object.getPrototypeOf(j)).apply(this,arguments))}return a(j,[{key:"insertInto",value:function(x,N){x.children.length===0?o(j.prototype.__proto__||Object.getPrototypeOf(j.prototype),"insertInto",this).call(this,x,N):this.remove()}},{key:"length",value:function(){return 0}},{key:"value",value:function(){return""}}],[{key:"value",value:function(){}}]),j})(d.default.Embed);g.blotName="break",g.tagName="BR",i.default=g}),(function(r,i,s){var a=this&&this.__extends||(function(){var m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,g){p.__proto__=g}||function(p,g){for(var b in g)g.hasOwnProperty(b)&&(p[b]=g[b])};return function(p,g){m(p,g);function b(){this.constructor=p}p.prototype=g===null?Object.create(g):(b.prototype=g.prototype,new b)}})();Object.defineProperty(i,"__esModule",{value:!0});var o=s(44),c=s(30),d=s(1),f=(function(m){a(p,m);function p(g){var b=m.call(this,g)||this;return b.build(),b}return p.prototype.appendChild=function(g){this.insertBefore(g)},p.prototype.attach=function(){m.prototype.attach.call(this),this.children.forEach(function(g){g.attach()})},p.prototype.build=function(){var g=this;this.children=new o.default,[].slice.call(this.domNode.childNodes).reverse().forEach(function(b){try{var j=h(b);g.insertBefore(j,g.children.head||void 0)}catch(y){if(y instanceof d.ParchmentError)return;throw y}})},p.prototype.deleteAt=function(g,b){if(g===0&&b===this.length())return this.remove();this.children.forEachAt(g,b,function(j,y,x){j.deleteAt(y,x)})},p.prototype.descendant=function(g,b){var j=this.children.find(b),y=j[0],x=j[1];return g.blotName==null&&g(y)||g.blotName!=null&&y instanceof g?[y,x]:y instanceof p?y.descendant(g,x):[null,-1]},p.prototype.descendants=function(g,b,j){b===void 0&&(b=0),j===void 0&&(j=Number.MAX_VALUE);var y=[],x=j;return this.children.forEachAt(b,j,function(N,w,k){(g.blotName==null&&g(N)||g.blotName!=null&&N instanceof g)&&y.push(N),N instanceof p&&(y=y.concat(N.descendants(g,w,x))),x-=k}),y},p.prototype.detach=function(){this.children.forEach(function(g){g.detach()}),m.prototype.detach.call(this)},p.prototype.formatAt=function(g,b,j,y){this.children.forEachAt(g,b,function(x,N,w){x.formatAt(N,w,j,y)})},p.prototype.insertAt=function(g,b,j){var y=this.children.find(g),x=y[0],N=y[1];if(x)x.insertAt(N,b,j);else{var w=j==null?d.create("text",b):d.create(b,j);this.appendChild(w)}},p.prototype.insertBefore=function(g,b){if(this.statics.allowedChildren!=null&&!this.statics.allowedChildren.some(function(j){return g instanceof j}))throw new d.ParchmentError("Cannot insert "+g.statics.blotName+" into "+this.statics.blotName);g.insertInto(this,b)},p.prototype.length=function(){return this.children.reduce(function(g,b){return g+b.length()},0)},p.prototype.moveChildren=function(g,b){this.children.forEach(function(j){g.insertBefore(j,b)})},p.prototype.optimize=function(g){if(m.prototype.optimize.call(this,g),this.children.length===0)if(this.statics.defaultChild!=null){var b=d.create(this.statics.defaultChild);this.appendChild(b),b.optimize(g)}else this.remove()},p.prototype.path=function(g,b){b===void 0&&(b=!1);var j=this.children.find(g,b),y=j[0],x=j[1],N=[[this,g]];return y instanceof p?N.concat(y.path(x,b)):(y!=null&&N.push([y,x]),N)},p.prototype.removeChild=function(g){this.children.remove(g)},p.prototype.replace=function(g){g instanceof p&&g.moveChildren(this),m.prototype.replace.call(this,g)},p.prototype.split=function(g,b){if(b===void 0&&(b=!1),!b){if(g===0)return this;if(g===this.length())return this.next}var j=this.clone();return this.parent.insertBefore(j,this.next),this.children.forEachAt(g,this.length(),function(y,x,N){y=y.split(x,b),j.appendChild(y)}),j},p.prototype.unwrap=function(){this.moveChildren(this.parent,this.next),this.remove()},p.prototype.update=function(g,b){var j=this,y=[],x=[];g.forEach(function(N){N.target===j.domNode&&N.type==="childList"&&(y.push.apply(y,N.addedNodes),x.push.apply(x,N.removedNodes))}),x.forEach(function(N){if(!(N.parentNode!=null&&N.tagName!=="IFRAME"&&document.body.compareDocumentPosition(N)&Node.DOCUMENT_POSITION_CONTAINED_BY)){var w=d.find(N);w!=null&&(w.domNode.parentNode==null||w.domNode.parentNode===j.domNode)&&w.detach()}}),y.filter(function(N){return N.parentNode==j.domNode}).sort(function(N,w){return N===w?0:N.compareDocumentPosition(w)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1}).forEach(function(N){var w=null;N.nextSibling!=null&&(w=d.find(N.nextSibling));var k=h(N);(k.next!=w||k.next==null)&&(k.parent!=null&&k.parent.removeChild(j),j.insertBefore(k,w||void 0))})},p})(c.default);function h(m){var p=d.find(m);if(p==null)try{p=d.create(m)}catch{p=d.create(d.Scope.INLINE),[].slice.call(m.childNodes).forEach(function(b){p.domNode.appendChild(b)}),m.parentNode&&m.parentNode.replaceChild(p.domNode,m),p.attach()}return p}i.default=f}),(function(r,i,s){var a=this&&this.__extends||(function(){var m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,g){p.__proto__=g}||function(p,g){for(var b in g)g.hasOwnProperty(b)&&(p[b]=g[b])};return function(p,g){m(p,g);function b(){this.constructor=p}p.prototype=g===null?Object.create(g):(b.prototype=g.prototype,new b)}})();Object.defineProperty(i,"__esModule",{value:!0});var o=s(12),c=s(31),d=s(17),f=s(1),h=(function(m){a(p,m);function p(g){var b=m.call(this,g)||this;return b.attributes=new c.default(b.domNode),b}return p.formats=function(g){if(typeof this.tagName=="string")return!0;if(Array.isArray(this.tagName))return g.tagName.toLowerCase()},p.prototype.format=function(g,b){var j=f.query(g);j instanceof o.default?this.attributes.attribute(j,b):b&&j!=null&&(g!==this.statics.blotName||this.formats()[g]!==b)&&this.replaceWith(g,b)},p.prototype.formats=function(){var g=this.attributes.values(),b=this.statics.formats(this.domNode);return b!=null&&(g[this.statics.blotName]=b),g},p.prototype.replaceWith=function(g,b){var j=m.prototype.replaceWith.call(this,g,b);return this.attributes.copy(j),j},p.prototype.update=function(g,b){var j=this;m.prototype.update.call(this,g,b),g.some(function(y){return y.target===j.domNode&&y.type==="attributes"})&&this.attributes.build()},p.prototype.wrap=function(g,b){var j=m.prototype.wrap.call(this,g,b);return j instanceof p&&j.statics.scope===this.statics.scope&&this.attributes.move(j),j},p})(d.default);i.default=h}),(function(r,i,s){var a=this&&this.__extends||(function(){var f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,m){h.__proto__=m}||function(h,m){for(var p in m)m.hasOwnProperty(p)&&(h[p]=m[p])};return function(h,m){f(h,m);function p(){this.constructor=h}h.prototype=m===null?Object.create(m):(p.prototype=m.prototype,new p)}})();Object.defineProperty(i,"__esModule",{value:!0});var o=s(30),c=s(1),d=(function(f){a(h,f);function h(){return f!==null&&f.apply(this,arguments)||this}return h.value=function(m){return!0},h.prototype.index=function(m,p){return this.domNode===m||this.domNode.compareDocumentPosition(m)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(p,1):-1},h.prototype.position=function(m,p){var g=[].indexOf.call(this.parent.domNode.childNodes,this.domNode);return m>0&&(g+=1),[this.parent.domNode,g]},h.prototype.value=function(){var m;return m={},m[this.statics.blotName]=this.statics.value(this.domNode)||!0,m},h.scope=c.Scope.INLINE_BLOT,h})(o.default);i.default=d}),(function(r,i,s){var a=s(11),o=s(3),c={attributes:{compose:function(f,h,m){typeof f!="object"&&(f={}),typeof h!="object"&&(h={});var p=o(!0,{},h);m||(p=Object.keys(p).reduce(function(b,j){return p[j]!=null&&(b[j]=p[j]),b},{}));for(var g in f)f[g]!==void 0&&h[g]===void 0&&(p[g]=f[g]);return Object.keys(p).length>0?p:void 0},diff:function(f,h){typeof f!="object"&&(f={}),typeof h!="object"&&(h={});var m=Object.keys(f).concat(Object.keys(h)).reduce(function(p,g){return a(f[g],h[g])||(p[g]=h[g]===void 0?null:h[g]),p},{});return Object.keys(m).length>0?m:void 0},transform:function(f,h,m){if(typeof f!="object")return h;if(typeof h=="object"){if(!m)return h;var p=Object.keys(h).reduce(function(g,b){return f[b]===void 0&&(g[b]=h[b]),g},{});return Object.keys(p).length>0?p:void 0}}},iterator:function(f){return new d(f)},length:function(f){return typeof f.delete=="number"?f.delete:typeof f.retain=="number"?f.retain:typeof f.insert=="string"?f.insert.length:1}};function d(f){this.ops=f,this.index=0,this.offset=0}d.prototype.hasNext=function(){return this.peekLength()<1/0},d.prototype.next=function(f){f||(f=1/0);var h=this.ops[this.index];if(h){var m=this.offset,p=c.length(h);if(f>=p-m?(f=p-m,this.index+=1,this.offset=0):this.offset+=f,typeof h.delete=="number")return{delete:f};var g={};return h.attributes&&(g.attributes=h.attributes),typeof h.retain=="number"?g.retain=f:typeof h.insert=="string"?g.insert=h.insert.substr(m,f):g.insert=h.insert,g}else return{retain:1/0}},d.prototype.peek=function(){return this.ops[this.index]},d.prototype.peekLength=function(){return this.ops[this.index]?c.length(this.ops[this.index])-this.offset:1/0},d.prototype.peekType=function(){return this.ops[this.index]?typeof this.ops[this.index].delete=="number"?"delete":typeof this.ops[this.index].retain=="number"?"retain":"insert":"retain"},d.prototype.rest=function(){if(this.hasNext()){if(this.offset===0)return this.ops.slice(this.index);var f=this.offset,h=this.index,m=this.next(),p=this.ops.slice(this.index);return this.offset=f,this.index=h,[m].concat(p)}else return[]},r.exports=c}),(function(r,i){var s=(function(){function a(j,y){return y!=null&&j instanceof y}var o;try{o=Map}catch{o=function(){}}var c;try{c=Set}catch{c=function(){}}var d;try{d=Promise}catch{d=function(){}}function f(j,y,x,N,w){typeof y=="object"&&(x=y.depth,N=y.prototype,w=y.includeNonEnumerable,y=y.circular);var k=[],A=[],S=typeof Buffer<"u";typeof y>"u"&&(y=!0),typeof x>"u"&&(x=1/0);function E(C,B){if(C===null)return null;if(B===0)return C;var I,R;if(typeof C!="object")return C;if(a(C,o))I=new o;else if(a(C,c))I=new c;else if(a(C,d))I=new d(function(O,T){C.then(function(V){O(E(V,B-1))},function(V){T(E(V,B-1))})});else if(f.__isArray(C))I=[];else if(f.__isRegExp(C))I=new RegExp(C.source,b(C)),C.lastIndex&&(I.lastIndex=C.lastIndex);else if(f.__isDate(C))I=new Date(C.getTime());else{if(S&&Buffer.isBuffer(C))return Buffer.allocUnsafe?I=Buffer.allocUnsafe(C.length):I=new Buffer(C.length),C.copy(I),I;a(C,Error)?I=Object.create(C):typeof N>"u"?(R=Object.getPrototypeOf(C),I=Object.create(R)):(I=Object.create(N),R=N)}if(y){var D=k.indexOf(C);if(D!=-1)return A[D];k.push(C),A.push(I)}a(C,o)&&C.forEach(function(O,T){var V=E(T,B-1),L=E(O,B-1);I.set(V,L)}),a(C,c)&&C.forEach(function(O){var T=E(O,B-1);I.add(T)});for(var q in C){var z;R&&(z=Object.getOwnPropertyDescriptor(R,q)),!(z&&z.set==null)&&(I[q]=E(C[q],B-1))}if(Object.getOwnPropertySymbols)for(var U=Object.getOwnPropertySymbols(C),q=0;q<U.length;q++){var Y=U[q],H=Object.getOwnPropertyDescriptor(C,Y);H&&!H.enumerable&&!w||(I[Y]=E(C[Y],B-1),H.enumerable||Object.defineProperty(I,Y,{enumerable:!1}))}if(w)for(var K=Object.getOwnPropertyNames(C),q=0;q<K.length;q++){var Q=K[q],H=Object.getOwnPropertyDescriptor(C,Q);H&&H.enumerable||(I[Q]=E(C[Q],B-1),Object.defineProperty(I,Q,{enumerable:!1}))}return I}return E(j,x)}f.clonePrototype=function(y){if(y===null)return null;var x=function(){};return x.prototype=y,new x};function h(j){return Object.prototype.toString.call(j)}f.__objToStr=h;function m(j){return typeof j=="object"&&h(j)==="[object Date]"}f.__isDate=m;function p(j){return typeof j=="object"&&h(j)==="[object Array]"}f.__isArray=p;function g(j){return typeof j=="object"&&h(j)==="[object RegExp]"}f.__isRegExp=g;function b(j){var y="";return j.global&&(y+="g"),j.ignoreCase&&(y+="i"),j.multiline&&(y+="m"),y}return f.__getRegExpFlags=b,f})();typeof r=="object"&&r.exports&&(r.exports=s)}),(function(r,i,s){Object.defineProperty(i,"__esModule",{value:!0});var a=(function(){function I(R,D){var q=[],z=!0,U=!1,Y=void 0;try{for(var H=R[Symbol.iterator](),K;!(z=(K=H.next()).done)&&(q.push(K.value),!(D&&q.length===D));z=!0);}catch(Q){U=!0,Y=Q}finally{try{!z&&H.return&&H.return()}finally{if(U)throw Y}}return q}return function(R,D){if(Array.isArray(R))return R;if(Symbol.iterator in Object(R))return I(R,D);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),o=(function(){function I(R,D){for(var q=0;q<D.length;q++){var z=D[q];z.enumerable=z.enumerable||!1,z.configurable=!0,"value"in z&&(z.writable=!0),Object.defineProperty(R,z.key,z)}}return function(R,D,q){return D&&I(R.prototype,D),q&&I(R,q),R}})(),c=function I(R,D,q){R===null&&(R=Function.prototype);var z=Object.getOwnPropertyDescriptor(R,D);if(z===void 0){var U=Object.getPrototypeOf(R);return U===null?void 0:I(U,D,q)}else{if("value"in z)return z.value;var Y=z.get;return Y===void 0?void 0:Y.call(q)}},d=s(0),f=k(d),h=s(8),m=k(h),p=s(4),g=k(p),b=s(16),j=k(b),y=s(13),x=k(y),N=s(25),w=k(N);function k(I){return I&&I.__esModule?I:{default:I}}function A(I,R){if(!(I instanceof R))throw new TypeError("Cannot call a class as a function")}function S(I,R){if(!I)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return R&&(typeof R=="object"||typeof R=="function")?R:I}function E(I,R){if(typeof R!="function"&&R!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof R);I.prototype=Object.create(R&&R.prototype,{constructor:{value:I,enumerable:!1,writable:!0,configurable:!0}}),R&&(Object.setPrototypeOf?Object.setPrototypeOf(I,R):I.__proto__=R)}function C(I){return I instanceof g.default||I instanceof p.BlockEmbed}var B=(function(I){E(R,I);function R(D,q){A(this,R);var z=S(this,(R.__proto__||Object.getPrototypeOf(R)).call(this,D));return z.emitter=q.emitter,Array.isArray(q.whitelist)&&(z.whitelist=q.whitelist.reduce(function(U,Y){return U[Y]=!0,U},{})),z.domNode.addEventListener("DOMNodeInserted",function(){}),z.optimize(),z.enable(),z}return o(R,[{key:"batchStart",value:function(){this.batch=!0}},{key:"batchEnd",value:function(){this.batch=!1,this.optimize()}},{key:"deleteAt",value:function(q,z){var U=this.line(q),Y=a(U,2),H=Y[0],K=Y[1],Q=this.line(q+z),O=a(Q,1),T=O[0];if(c(R.prototype.__proto__||Object.getPrototypeOf(R.prototype),"deleteAt",this).call(this,q,z),T!=null&&H!==T&&K>0){if(H instanceof p.BlockEmbed||T instanceof p.BlockEmbed){this.optimize();return}if(H instanceof x.default){var V=H.newlineIndex(H.length(),!0);if(V>-1&&(H=H.split(V+1),H===T)){this.optimize();return}}else if(T instanceof x.default){var L=T.newlineIndex(0);L>-1&&T.split(L+1)}var X=T.children.head instanceof j.default?null:T.children.head;H.moveChildren(T,X),H.remove()}this.optimize()}},{key:"enable",value:function(){var q=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.domNode.setAttribute("contenteditable",q)}},{key:"formatAt",value:function(q,z,U,Y){this.whitelist!=null&&!this.whitelist[U]||(c(R.prototype.__proto__||Object.getPrototypeOf(R.prototype),"formatAt",this).call(this,q,z,U,Y),this.optimize())}},{key:"insertAt",value:function(q,z,U){if(!(U!=null&&this.whitelist!=null&&!this.whitelist[z])){if(q>=this.length())if(U==null||f.default.query(z,f.default.Scope.BLOCK)==null){var Y=f.default.create(this.statics.defaultChild);this.appendChild(Y),U==null&&z.endsWith(`
`)&&(z=z.slice(0,-1)),Y.insertAt(0,z,U)}else{var H=f.default.create(z,U);this.appendChild(H)}else c(R.prototype.__proto__||Object.getPrototypeOf(R.prototype),"insertAt",this).call(this,q,z,U);this.optimize()}}},{key:"insertBefore",value:function(q,z){if(q.statics.scope===f.default.Scope.INLINE_BLOT){var U=f.default.create(this.statics.defaultChild);U.appendChild(q),q=U}c(R.prototype.__proto__||Object.getPrototypeOf(R.prototype),"insertBefore",this).call(this,q,z)}},{key:"leaf",value:function(q){return this.path(q).pop()||[null,-1]}},{key:"line",value:function(q){return q===this.length()?this.line(q-1):this.descendant(C,q)}},{key:"lines",value:function(){var q=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MAX_VALUE,U=function Y(H,K,Q){var O=[],T=Q;return H.children.forEachAt(K,Q,function(V,L,X){C(V)?O.push(V):V instanceof f.default.Container&&(O=O.concat(Y(V,L,T))),T-=X}),O};return U(this,q,z)}},{key:"optimize",value:function(){var q=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.batch!==!0&&(c(R.prototype.__proto__||Object.getPrototypeOf(R.prototype),"optimize",this).call(this,q,z),q.length>0&&this.emitter.emit(m.default.events.SCROLL_OPTIMIZE,q,z))}},{key:"path",value:function(q){return c(R.prototype.__proto__||Object.getPrototypeOf(R.prototype),"path",this).call(this,q).slice(1)}},{key:"update",value:function(q){if(this.batch!==!0){var z=m.default.sources.USER;typeof q=="string"&&(z=q),Array.isArray(q)||(q=this.observer.takeRecords()),q.length>0&&this.emitter.emit(m.default.events.SCROLL_BEFORE_UPDATE,z,q),c(R.prototype.__proto__||Object.getPrototypeOf(R.prototype),"update",this).call(this,q.concat([])),q.length>0&&this.emitter.emit(m.default.events.SCROLL_UPDATE,z,q)}}}]),R})(f.default.Scroll);B.blotName="scroll",B.className="ql-editor",B.tagName="DIV",B.defaultChild="block",B.allowedChildren=[g.default,p.BlockEmbed,w.default],i.default=B}),(function(r,i,s){Object.defineProperty(i,"__esModule",{value:!0}),i.SHORTKEY=i.default=void 0;var a=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(W){return typeof W}:function(W){return W&&typeof Symbol=="function"&&W.constructor===Symbol&&W!==Symbol.prototype?"symbol":typeof W},o=(function(){function W(G,te){var re=[],le=!0,ye=!1,be=void 0;try{for(var Pe=G[Symbol.iterator](),Te;!(le=(Te=Pe.next()).done)&&(re.push(Te.value),!(te&&re.length===te));le=!0);}catch(We){ye=!0,be=We}finally{try{!le&&Pe.return&&Pe.return()}finally{if(ye)throw be}}return re}return function(G,te){if(Array.isArray(G))return G;if(Symbol.iterator in Object(G))return W(G,te);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),c=(function(){function W(G,te){for(var re=0;re<te.length;re++){var le=te[re];le.enumerable=le.enumerable||!1,le.configurable=!0,"value"in le&&(le.writable=!0),Object.defineProperty(G,le.key,le)}}return function(G,te,re){return te&&W(G.prototype,te),re&&W(G,re),G}})(),d=s(21),f=I(d),h=s(11),m=I(h),p=s(3),g=I(p),b=s(2),j=I(b),y=s(20),x=I(y),N=s(0),w=I(N),k=s(5),A=I(k),S=s(10),E=I(S),C=s(9),B=I(C);function I(W){return W&&W.__esModule?W:{default:W}}function R(W,G,te){return G in W?Object.defineProperty(W,G,{value:te,enumerable:!0,configurable:!0,writable:!0}):W[G]=te,W}function D(W,G){if(!(W instanceof G))throw new TypeError("Cannot call a class as a function")}function q(W,G){if(!W)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return G&&(typeof G=="object"||typeof G=="function")?G:W}function z(W,G){if(typeof G!="function"&&G!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof G);W.prototype=Object.create(G&&G.prototype,{constructor:{value:W,enumerable:!1,writable:!0,configurable:!0}}),G&&(Object.setPrototypeOf?Object.setPrototypeOf(W,G):W.__proto__=G)}var U=(0,E.default)("quill:keyboard"),Y=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey",H=(function(W){z(G,W),c(G,null,[{key:"match",value:function(re,le){return le=J(le),["altKey","ctrlKey","metaKey","shiftKey"].some(function(ye){return!!le[ye]!==re[ye]&&le[ye]!==null})?!1:le.key===(re.which||re.keyCode)}}]);function G(te,re){D(this,G);var le=q(this,(G.__proto__||Object.getPrototypeOf(G)).call(this,te,re));return le.bindings={},Object.keys(le.options.bindings).forEach(function(ye){ye==="list autofill"&&te.scroll.whitelist!=null&&!te.scroll.whitelist.list||le.options.bindings[ye]&&le.addBinding(le.options.bindings[ye])}),le.addBinding({key:G.keys.ENTER,shiftKey:null},V),le.addBinding({key:G.keys.ENTER,metaKey:null,ctrlKey:null,altKey:null},function(){}),/Firefox/i.test(navigator.userAgent)?(le.addBinding({key:G.keys.BACKSPACE},{collapsed:!0},Q),le.addBinding({key:G.keys.DELETE},{collapsed:!0},O)):(le.addBinding({key:G.keys.BACKSPACE},{collapsed:!0,prefix:/^.?$/},Q),le.addBinding({key:G.keys.DELETE},{collapsed:!0,suffix:/^.?$/},O)),le.addBinding({key:G.keys.BACKSPACE},{collapsed:!1},T),le.addBinding({key:G.keys.DELETE},{collapsed:!1},T),le.addBinding({key:G.keys.BACKSPACE,altKey:null,ctrlKey:null,metaKey:null,shiftKey:null},{collapsed:!0,offset:0},Q),le.listen(),le}return c(G,[{key:"addBinding",value:function(re){var le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ye=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},be=J(re);if(be==null||be.key==null)return U.warn("Attempted to add invalid keyboard binding",be);typeof le=="function"&&(le={handler:le}),typeof ye=="function"&&(ye={handler:ye}),be=(0,g.default)(be,le,ye),this.bindings[be.key]=this.bindings[be.key]||[],this.bindings[be.key].push(be)}},{key:"listen",value:function(){var re=this;this.quill.root.addEventListener("keydown",function(le){if(!le.defaultPrevented){var ye=le.which||le.keyCode,be=(re.bindings[ye]||[]).filter(function($e){return G.match(le,$e)});if(be.length!==0){var Pe=re.quill.getSelection();if(!(Pe==null||!re.quill.hasFocus())){var Te=re.quill.getLine(Pe.index),We=o(Te,2),ut=We[0],nt=We[1],ge=re.quill.getLeaf(Pe.index),ve=o(ge,2),Se=ve[0],Oe=ve[1],je=Pe.length===0?[Se,Oe]:re.quill.getLeaf(Pe.index+Pe.length),tt=o(je,2),et=tt[0],rt=tt[1],xe=Se instanceof w.default.Text?Se.value().slice(0,Oe):"",_e=et instanceof w.default.Text?et.value().slice(rt):"",De={collapsed:Pe.length===0,empty:Pe.length===0&&ut.length()<=1,format:re.quill.getFormat(Pe),offset:nt,prefix:xe,suffix:_e},it=be.some(function($e){if($e.collapsed!=null&&$e.collapsed!==De.collapsed||$e.empty!=null&&$e.empty!==De.empty||$e.offset!=null&&$e.offset!==De.offset)return!1;if(Array.isArray($e.format)){if($e.format.every(function(kt){return De.format[kt]==null}))return!1}else if(a($e.format)==="object"&&!Object.keys($e.format).every(function(kt){return $e.format[kt]===!0?De.format[kt]!=null:$e.format[kt]===!1?De.format[kt]==null:(0,m.default)($e.format[kt],De.format[kt])}))return!1;return $e.prefix!=null&&!$e.prefix.test(De.prefix)||$e.suffix!=null&&!$e.suffix.test(De.suffix)?!1:$e.handler.call(re,Pe,De)!==!0});it&&le.preventDefault()}}}})}}]),G})(B.default);H.keys={BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46},H.DEFAULTS={bindings:{bold:X("bold"),italic:X("italic"),underline:X("underline"),indent:{key:H.keys.TAB,format:["blockquote","indent","list"],handler:function(G,te){if(te.collapsed&&te.offset!==0)return!0;this.quill.format("indent","+1",A.default.sources.USER)}},outdent:{key:H.keys.TAB,shiftKey:!0,format:["blockquote","indent","list"],handler:function(G,te){if(te.collapsed&&te.offset!==0)return!0;this.quill.format("indent","-1",A.default.sources.USER)}},"outdent backspace":{key:H.keys.BACKSPACE,collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler:function(G,te){te.format.indent!=null?this.quill.format("indent","-1",A.default.sources.USER):te.format.list!=null&&this.quill.format("list",!1,A.default.sources.USER)}},"indent code-block":L(!0),"outdent code-block":L(!1),"remove tab":{key:H.keys.TAB,shiftKey:!0,collapsed:!0,prefix:/\t$/,handler:function(G){this.quill.deleteText(G.index-1,1,A.default.sources.USER)}},tab:{key:H.keys.TAB,handler:function(G){this.quill.history.cutoff();var te=new j.default().retain(G.index).delete(G.length).insert("	");this.quill.updateContents(te,A.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(G.index+1,A.default.sources.SILENT)}},"list empty enter":{key:H.keys.ENTER,collapsed:!0,format:["list"],empty:!0,handler:function(G,te){this.quill.format("list",!1,A.default.sources.USER),te.format.indent&&this.quill.format("indent",!1,A.default.sources.USER)}},"checklist enter":{key:H.keys.ENTER,collapsed:!0,format:{list:"checked"},handler:function(G){var te=this.quill.getLine(G.index),re=o(te,2),le=re[0],ye=re[1],be=(0,g.default)({},le.formats(),{list:"checked"}),Pe=new j.default().retain(G.index).insert(`
`,be).retain(le.length()-ye-1).retain(1,{list:"unchecked"});this.quill.updateContents(Pe,A.default.sources.USER),this.quill.setSelection(G.index+1,A.default.sources.SILENT),this.quill.scrollIntoView()}},"header enter":{key:H.keys.ENTER,collapsed:!0,format:["header"],suffix:/^$/,handler:function(G,te){var re=this.quill.getLine(G.index),le=o(re,2),ye=le[0],be=le[1],Pe=new j.default().retain(G.index).insert(`
`,te.format).retain(ye.length()-be-1).retain(1,{header:null});this.quill.updateContents(Pe,A.default.sources.USER),this.quill.setSelection(G.index+1,A.default.sources.SILENT),this.quill.scrollIntoView()}},"list autofill":{key:" ",collapsed:!0,format:{list:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler:function(G,te){var re=te.prefix.length,le=this.quill.getLine(G.index),ye=o(le,2),be=ye[0],Pe=ye[1];if(Pe>re)return!0;var Te=void 0;switch(te.prefix.trim()){case"[]":case"[ ]":Te="unchecked";break;case"[x]":Te="checked";break;case"-":case"*":Te="bullet";break;default:Te="ordered"}this.quill.insertText(G.index," ",A.default.sources.USER),this.quill.history.cutoff();var We=new j.default().retain(G.index-Pe).delete(re+1).retain(be.length()-2-Pe).retain(1,{list:Te});this.quill.updateContents(We,A.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(G.index-re,A.default.sources.SILENT)}},"code exit":{key:H.keys.ENTER,collapsed:!0,format:["code-block"],prefix:/\n\n$/,suffix:/^\s+$/,handler:function(G){var te=this.quill.getLine(G.index),re=o(te,2),le=re[0],ye=re[1],be=new j.default().retain(G.index+le.length()-ye-2).retain(1,{"code-block":null}).delete(1);this.quill.updateContents(be,A.default.sources.USER)}},"embed left":K(H.keys.LEFT,!1),"embed left shift":K(H.keys.LEFT,!0),"embed right":K(H.keys.RIGHT,!1),"embed right shift":K(H.keys.RIGHT,!0)}};function K(W,G){var te,re=W===H.keys.LEFT?"prefix":"suffix";return te={key:W,shiftKey:G,altKey:null},R(te,re,/^$/),R(te,"handler",function(ye){var be=ye.index;W===H.keys.RIGHT&&(be+=ye.length+1);var Pe=this.quill.getLeaf(be),Te=o(Pe,1),We=Te[0];return We instanceof w.default.Embed?(W===H.keys.LEFT?G?this.quill.setSelection(ye.index-1,ye.length+1,A.default.sources.USER):this.quill.setSelection(ye.index-1,A.default.sources.USER):G?this.quill.setSelection(ye.index,ye.length+1,A.default.sources.USER):this.quill.setSelection(ye.index+ye.length+1,A.default.sources.USER),!1):!0}),te}function Q(W,G){if(!(W.index===0||this.quill.getLength()<=1)){var te=this.quill.getLine(W.index),re=o(te,1),le=re[0],ye={};if(G.offset===0){var be=this.quill.getLine(W.index-1),Pe=o(be,1),Te=Pe[0];if(Te!=null&&Te.length()>1){var We=le.formats(),ut=this.quill.getFormat(W.index-1,1);ye=x.default.attributes.diff(We,ut)||{}}}var nt=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(G.prefix)?2:1;this.quill.deleteText(W.index-nt,nt,A.default.sources.USER),Object.keys(ye).length>0&&this.quill.formatLine(W.index-nt,nt,ye,A.default.sources.USER),this.quill.focus()}}function O(W,G){var te=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(G.suffix)?2:1;if(!(W.index>=this.quill.getLength()-te)){var re={},le=0,ye=this.quill.getLine(W.index),be=o(ye,1),Pe=be[0];if(G.offset>=Pe.length()-1){var Te=this.quill.getLine(W.index+1),We=o(Te,1),ut=We[0];if(ut){var nt=Pe.formats(),ge=this.quill.getFormat(W.index,1);re=x.default.attributes.diff(nt,ge)||{},le=ut.length()}}this.quill.deleteText(W.index,te,A.default.sources.USER),Object.keys(re).length>0&&this.quill.formatLine(W.index+le-1,te,re,A.default.sources.USER)}}function T(W){var G=this.quill.getLines(W),te={};if(G.length>1){var re=G[0].formats(),le=G[G.length-1].formats();te=x.default.attributes.diff(le,re)||{}}this.quill.deleteText(W,A.default.sources.USER),Object.keys(te).length>0&&this.quill.formatLine(W.index,1,te,A.default.sources.USER),this.quill.setSelection(W.index,A.default.sources.SILENT),this.quill.focus()}function V(W,G){var te=this;W.length>0&&this.quill.scroll.deleteAt(W.index,W.length);var re=Object.keys(G.format).reduce(function(le,ye){return w.default.query(ye,w.default.Scope.BLOCK)&&!Array.isArray(G.format[ye])&&(le[ye]=G.format[ye]),le},{});this.quill.insertText(W.index,`
`,re,A.default.sources.USER),this.quill.setSelection(W.index+1,A.default.sources.SILENT),this.quill.focus(),Object.keys(G.format).forEach(function(le){re[le]==null&&(Array.isArray(G.format[le])||le!=="link"&&te.quill.format(le,G.format[le],A.default.sources.USER))})}function L(W){return{key:H.keys.TAB,shiftKey:!W,format:{"code-block":!0},handler:function(te){var re=w.default.query("code-block"),le=te.index,ye=te.length,be=this.quill.scroll.descendant(re,le),Pe=o(be,2),Te=Pe[0],We=Pe[1];if(Te!=null){var ut=this.quill.getIndex(Te),nt=Te.newlineIndex(We,!0)+1,ge=Te.newlineIndex(ut+We+ye),ve=Te.domNode.textContent.slice(nt,ge).split(`
`);We=0,ve.forEach(function(Se,Oe){W?(Te.insertAt(nt+We,re.TAB),We+=re.TAB.length,Oe===0?le+=re.TAB.length:ye+=re.TAB.length):Se.startsWith(re.TAB)&&(Te.deleteAt(nt+We,re.TAB.length),We-=re.TAB.length,Oe===0?le-=re.TAB.length:ye-=re.TAB.length),We+=Se.length+1}),this.quill.update(A.default.sources.USER),this.quill.setSelection(le,ye,A.default.sources.SILENT)}}}}function X(W){return{key:W[0].toUpperCase(),shortKey:!0,handler:function(te,re){this.quill.format(W,!re.format[W],A.default.sources.USER)}}}function J(W){if(typeof W=="string"||typeof W=="number")return J({key:W});if((typeof W>"u"?"undefined":a(W))==="object"&&(W=(0,f.default)(W,!1)),typeof W.key=="string")if(H.keys[W.key.toUpperCase()]!=null)W.key=H.keys[W.key.toUpperCase()];else if(W.key.length===1)W.key=W.key.toUpperCase().charCodeAt(0);else return null;return W.shortKey&&(W[Y]=W.shortKey,delete W.shortKey),W}i.default=H,i.SHORTKEY=Y}),(function(r,i,s){Object.defineProperty(i,"__esModule",{value:!0});var a=(function(){function x(N,w){var k=[],A=!0,S=!1,E=void 0;try{for(var C=N[Symbol.iterator](),B;!(A=(B=C.next()).done)&&(k.push(B.value),!(w&&k.length===w));A=!0);}catch(I){S=!0,E=I}finally{try{!A&&C.return&&C.return()}finally{if(S)throw E}}return k}return function(N,w){if(Array.isArray(N))return N;if(Symbol.iterator in Object(N))return x(N,w);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),o=function x(N,w,k){N===null&&(N=Function.prototype);var A=Object.getOwnPropertyDescriptor(N,w);if(A===void 0){var S=Object.getPrototypeOf(N);return S===null?void 0:x(S,w,k)}else{if("value"in A)return A.value;var E=A.get;return E===void 0?void 0:E.call(k)}},c=(function(){function x(N,w){for(var k=0;k<w.length;k++){var A=w[k];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(N,A.key,A)}}return function(N,w,k){return w&&x(N.prototype,w),k&&x(N,k),N}})(),d=s(0),f=p(d),h=s(7),m=p(h);function p(x){return x&&x.__esModule?x:{default:x}}function g(x,N){if(!(x instanceof N))throw new TypeError("Cannot call a class as a function")}function b(x,N){if(!x)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return N&&(typeof N=="object"||typeof N=="function")?N:x}function j(x,N){if(typeof N!="function"&&N!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof N);x.prototype=Object.create(N&&N.prototype,{constructor:{value:x,enumerable:!1,writable:!0,configurable:!0}}),N&&(Object.setPrototypeOf?Object.setPrototypeOf(x,N):x.__proto__=N)}var y=(function(x){j(N,x),c(N,null,[{key:"value",value:function(){}}]);function N(w,k){g(this,N);var A=b(this,(N.__proto__||Object.getPrototypeOf(N)).call(this,w));return A.selection=k,A.textNode=document.createTextNode(N.CONTENTS),A.domNode.appendChild(A.textNode),A._length=0,A}return c(N,[{key:"detach",value:function(){this.parent!=null&&this.parent.removeChild(this)}},{key:"format",value:function(k,A){if(this._length!==0)return o(N.prototype.__proto__||Object.getPrototypeOf(N.prototype),"format",this).call(this,k,A);for(var S=this,E=0;S!=null&&S.statics.scope!==f.default.Scope.BLOCK_BLOT;)E+=S.offset(S.parent),S=S.parent;S!=null&&(this._length=N.CONTENTS.length,S.optimize(),S.formatAt(E,N.CONTENTS.length,k,A),this._length=0)}},{key:"index",value:function(k,A){return k===this.textNode?0:o(N.prototype.__proto__||Object.getPrototypeOf(N.prototype),"index",this).call(this,k,A)}},{key:"length",value:function(){return this._length}},{key:"position",value:function(){return[this.textNode,this.textNode.data.length]}},{key:"remove",value:function(){o(N.prototype.__proto__||Object.getPrototypeOf(N.prototype),"remove",this).call(this),this.parent=null}},{key:"restore",value:function(){if(!(this.selection.composing||this.parent==null)){var k=this.textNode,A=this.selection.getNativeRange(),S=void 0,E=void 0,C=void 0;if(A!=null&&A.start.node===k&&A.end.node===k){var B=[k,A.start.offset,A.end.offset];S=B[0],E=B[1],C=B[2]}for(;this.domNode.lastChild!=null&&this.domNode.lastChild!==this.textNode;)this.domNode.parentNode.insertBefore(this.domNode.lastChild,this.domNode);if(this.textNode.data!==N.CONTENTS){var I=this.textNode.data.split(N.CONTENTS).join("");this.next instanceof m.default?(S=this.next.domNode,this.next.insertAt(0,I),this.textNode.data=N.CONTENTS):(this.textNode.data=I,this.parent.insertBefore(f.default.create(this.textNode),this),this.textNode=document.createTextNode(N.CONTENTS),this.domNode.appendChild(this.textNode))}if(this.remove(),E!=null){var R=[E,C].map(function(q){return Math.max(0,Math.min(S.data.length,q-1))}),D=a(R,2);return E=D[0],C=D[1],{startNode:S,startOffset:E,endNode:S,endOffset:C}}}}},{key:"update",value:function(k,A){var S=this;if(k.some(function(C){return C.type==="characterData"&&C.target===S.textNode})){var E=this.restore();E&&(A.range=E)}}},{key:"value",value:function(){return""}}]),N})(f.default.Embed);y.blotName="cursor",y.className="ql-cursor",y.tagName="span",y.CONTENTS="\uFEFF",i.default=y}),(function(r,i,s){Object.defineProperty(i,"__esModule",{value:!0});var a=s(0),o=f(a),c=s(4),d=f(c);function f(b){return b&&b.__esModule?b:{default:b}}function h(b,j){if(!(b instanceof j))throw new TypeError("Cannot call a class as a function")}function m(b,j){if(!b)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return j&&(typeof j=="object"||typeof j=="function")?j:b}function p(b,j){if(typeof j!="function"&&j!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof j);b.prototype=Object.create(j&&j.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}}),j&&(Object.setPrototypeOf?Object.setPrototypeOf(b,j):b.__proto__=j)}var g=(function(b){p(j,b);function j(){return h(this,j),m(this,(j.__proto__||Object.getPrototypeOf(j)).apply(this,arguments))}return j})(o.default.Container);g.allowedChildren=[d.default,c.BlockEmbed,g],i.default=g}),(function(r,i,s){Object.defineProperty(i,"__esModule",{value:!0}),i.ColorStyle=i.ColorClass=i.ColorAttributor=void 0;var a=(function(){function y(x,N){for(var w=0;w<N.length;w++){var k=N[w];k.enumerable=k.enumerable||!1,k.configurable=!0,"value"in k&&(k.writable=!0),Object.defineProperty(x,k.key,k)}}return function(x,N,w){return N&&y(x.prototype,N),w&&y(x,w),x}})(),o=function y(x,N,w){x===null&&(x=Function.prototype);var k=Object.getOwnPropertyDescriptor(x,N);if(k===void 0){var A=Object.getPrototypeOf(x);return A===null?void 0:y(A,N,w)}else{if("value"in k)return k.value;var S=k.get;return S===void 0?void 0:S.call(w)}},c=s(0),d=f(c);function f(y){return y&&y.__esModule?y:{default:y}}function h(y,x){if(!(y instanceof x))throw new TypeError("Cannot call a class as a function")}function m(y,x){if(!y)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return x&&(typeof x=="object"||typeof x=="function")?x:y}function p(y,x){if(typeof x!="function"&&x!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof x);y.prototype=Object.create(x&&x.prototype,{constructor:{value:y,enumerable:!1,writable:!0,configurable:!0}}),x&&(Object.setPrototypeOf?Object.setPrototypeOf(y,x):y.__proto__=x)}var g=(function(y){p(x,y);function x(){return h(this,x),m(this,(x.__proto__||Object.getPrototypeOf(x)).apply(this,arguments))}return a(x,[{key:"value",value:function(w){var k=o(x.prototype.__proto__||Object.getPrototypeOf(x.prototype),"value",this).call(this,w);return k.startsWith("rgb(")?(k=k.replace(/^[^\d]+/,"").replace(/[^\d]+$/,""),"#"+k.split(",").map(function(A){return("00"+parseInt(A).toString(16)).slice(-2)}).join("")):k}}]),x})(d.default.Attributor.Style),b=new d.default.Attributor.Class("color","ql-color",{scope:d.default.Scope.INLINE}),j=new g("color","color",{scope:d.default.Scope.INLINE});i.ColorAttributor=g,i.ColorClass=b,i.ColorStyle=j}),(function(r,i,s){Object.defineProperty(i,"__esModule",{value:!0}),i.sanitize=i.default=void 0;var a=(function(){function j(y,x){for(var N=0;N<x.length;N++){var w=x[N];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(y,w.key,w)}}return function(y,x,N){return x&&j(y.prototype,x),N&&j(y,N),y}})(),o=function j(y,x,N){y===null&&(y=Function.prototype);var w=Object.getOwnPropertyDescriptor(y,x);if(w===void 0){var k=Object.getPrototypeOf(y);return k===null?void 0:j(k,x,N)}else{if("value"in w)return w.value;var A=w.get;return A===void 0?void 0:A.call(N)}},c=s(6),d=f(c);function f(j){return j&&j.__esModule?j:{default:j}}function h(j,y){if(!(j instanceof y))throw new TypeError("Cannot call a class as a function")}function m(j,y){if(!j)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return y&&(typeof y=="object"||typeof y=="function")?y:j}function p(j,y){if(typeof y!="function"&&y!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof y);j.prototype=Object.create(y&&y.prototype,{constructor:{value:j,enumerable:!1,writable:!0,configurable:!0}}),y&&(Object.setPrototypeOf?Object.setPrototypeOf(j,y):j.__proto__=y)}var g=(function(j){p(y,j);function y(){return h(this,y),m(this,(y.__proto__||Object.getPrototypeOf(y)).apply(this,arguments))}return a(y,[{key:"format",value:function(N,w){if(N!==this.statics.blotName||!w)return o(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"format",this).call(this,N,w);w=this.constructor.sanitize(w),this.domNode.setAttribute("href",w)}}],[{key:"create",value:function(N){var w=o(y.__proto__||Object.getPrototypeOf(y),"create",this).call(this,N);return N=this.sanitize(N),w.setAttribute("href",N),w.setAttribute("rel","noopener noreferrer"),w.setAttribute("target","_blank"),w}},{key:"formats",value:function(N){return N.getAttribute("href")}},{key:"sanitize",value:function(N){return b(N,this.PROTOCOL_WHITELIST)?N:this.SANITIZED_URL}}]),y})(d.default);g.blotName="link",g.tagName="A",g.SANITIZED_URL="about:blank",g.PROTOCOL_WHITELIST=["http","https","mailto","tel"];function b(j,y){var x=document.createElement("a");x.href=j;var N=x.href.slice(0,x.href.indexOf(":"));return y.indexOf(N)>-1}i.default=g,i.sanitize=b}),(function(r,i,s){Object.defineProperty(i,"__esModule",{value:!0});var a=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(y){return typeof y}:function(y){return y&&typeof Symbol=="function"&&y.constructor===Symbol&&y!==Symbol.prototype?"symbol":typeof y},o=(function(){function y(x,N){for(var w=0;w<N.length;w++){var k=N[w];k.enumerable=k.enumerable||!1,k.configurable=!0,"value"in k&&(k.writable=!0),Object.defineProperty(x,k.key,k)}}return function(x,N,w){return N&&y(x.prototype,N),w&&y(x,w),x}})(),c=s(23),d=m(c),f=s(107),h=m(f);function m(y){return y&&y.__esModule?y:{default:y}}function p(y,x){if(!(y instanceof x))throw new TypeError("Cannot call a class as a function")}var g=0;function b(y,x){y.setAttribute(x,y.getAttribute(x)!=="true")}var j=(function(){function y(x){var N=this;p(this,y),this.select=x,this.container=document.createElement("span"),this.buildPicker(),this.select.style.display="none",this.select.parentNode.insertBefore(this.container,this.select),this.label.addEventListener("mousedown",function(){N.togglePicker()}),this.label.addEventListener("keydown",function(w){switch(w.keyCode){case d.default.keys.ENTER:N.togglePicker();break;case d.default.keys.ESCAPE:N.escape(),w.preventDefault();break}}),this.select.addEventListener("change",this.update.bind(this))}return o(y,[{key:"togglePicker",value:function(){this.container.classList.toggle("ql-expanded"),b(this.label,"aria-expanded"),b(this.options,"aria-hidden")}},{key:"buildItem",value:function(N){var w=this,k=document.createElement("span");return k.tabIndex="0",k.setAttribute("role","button"),k.classList.add("ql-picker-item"),N.hasAttribute("value")&&k.setAttribute("data-value",N.getAttribute("value")),N.textContent&&k.setAttribute("data-label",N.textContent),k.addEventListener("click",function(){w.selectItem(k,!0)}),k.addEventListener("keydown",function(A){switch(A.keyCode){case d.default.keys.ENTER:w.selectItem(k,!0),A.preventDefault();break;case d.default.keys.ESCAPE:w.escape(),A.preventDefault();break}}),k}},{key:"buildLabel",value:function(){var N=document.createElement("span");return N.classList.add("ql-picker-label"),N.innerHTML=h.default,N.tabIndex="0",N.setAttribute("role","button"),N.setAttribute("aria-expanded","false"),this.container.appendChild(N),N}},{key:"buildOptions",value:function(){var N=this,w=document.createElement("span");w.classList.add("ql-picker-options"),w.setAttribute("aria-hidden","true"),w.tabIndex="-1",w.id="ql-picker-options-"+g,g+=1,this.label.setAttribute("aria-controls",w.id),this.options=w,[].slice.call(this.select.options).forEach(function(k){var A=N.buildItem(k);w.appendChild(A),k.selected===!0&&N.selectItem(A)}),this.container.appendChild(w)}},{key:"buildPicker",value:function(){var N=this;[].slice.call(this.select.attributes).forEach(function(w){N.container.setAttribute(w.name,w.value)}),this.container.classList.add("ql-picker"),this.label=this.buildLabel(),this.buildOptions()}},{key:"escape",value:function(){var N=this;this.close(),setTimeout(function(){return N.label.focus()},1)}},{key:"close",value:function(){this.container.classList.remove("ql-expanded"),this.label.setAttribute("aria-expanded","false"),this.options.setAttribute("aria-hidden","true")}},{key:"selectItem",value:function(N){var w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,k=this.container.querySelector(".ql-selected");if(N!==k&&(k!=null&&k.classList.remove("ql-selected"),N!=null&&(N.classList.add("ql-selected"),this.select.selectedIndex=[].indexOf.call(N.parentNode.children,N),N.hasAttribute("data-value")?this.label.setAttribute("data-value",N.getAttribute("data-value")):this.label.removeAttribute("data-value"),N.hasAttribute("data-label")?this.label.setAttribute("data-label",N.getAttribute("data-label")):this.label.removeAttribute("data-label"),w))){if(typeof Event=="function")this.select.dispatchEvent(new Event("change"));else if((typeof Event>"u"?"undefined":a(Event))==="object"){var A=document.createEvent("Event");A.initEvent("change",!0,!0),this.select.dispatchEvent(A)}this.close()}}},{key:"update",value:function(){var N=void 0;if(this.select.selectedIndex>-1){var w=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];N=this.select.options[this.select.selectedIndex],this.selectItem(w)}else this.selectItem(null);var k=N!=null&&N!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",k)}}]),y})();i.default=j}),(function(r,i,s){Object.defineProperty(i,"__esModule",{value:!0});var a=s(0),o=U(a),c=s(5),d=U(c),f=s(4),h=U(f),m=s(16),p=U(m),g=s(25),b=U(g),j=s(24),y=U(j),x=s(35),N=U(x),w=s(6),k=U(w),A=s(22),S=U(A),E=s(7),C=U(E),B=s(55),I=U(B),R=s(42),D=U(R),q=s(23),z=U(q);function U(Y){return Y&&Y.__esModule?Y:{default:Y}}d.default.register({"blots/block":h.default,"blots/block/embed":f.BlockEmbed,"blots/break":p.default,"blots/container":b.default,"blots/cursor":y.default,"blots/embed":N.default,"blots/inline":k.default,"blots/scroll":S.default,"blots/text":C.default,"modules/clipboard":I.default,"modules/history":D.default,"modules/keyboard":z.default}),o.default.register(h.default,p.default,y.default,k.default,S.default,C.default),i.default=d.default}),(function(r,i,s){Object.defineProperty(i,"__esModule",{value:!0});var a=s(1),o=(function(){function c(d){this.domNode=d,this.domNode[a.DATA_KEY]={blot:this}}return Object.defineProperty(c.prototype,"statics",{get:function(){return this.constructor},enumerable:!0,configurable:!0}),c.create=function(d){if(this.tagName==null)throw new a.ParchmentError("Blot definition missing tagName");var f;return Array.isArray(this.tagName)?(typeof d=="string"&&(d=d.toUpperCase(),parseInt(d).toString()===d&&(d=parseInt(d))),typeof d=="number"?f=document.createElement(this.tagName[d-1]):this.tagName.indexOf(d)>-1?f=document.createElement(d):f=document.createElement(this.tagName[0])):f=document.createElement(this.tagName),this.className&&f.classList.add(this.className),f},c.prototype.attach=function(){this.parent!=null&&(this.scroll=this.parent.scroll)},c.prototype.clone=function(){var d=this.domNode.cloneNode(!1);return a.create(d)},c.prototype.detach=function(){this.parent!=null&&this.parent.removeChild(this),delete this.domNode[a.DATA_KEY]},c.prototype.deleteAt=function(d,f){var h=this.isolate(d,f);h.remove()},c.prototype.formatAt=function(d,f,h,m){var p=this.isolate(d,f);if(a.query(h,a.Scope.BLOT)!=null&&m)p.wrap(h,m);else if(a.query(h,a.Scope.ATTRIBUTE)!=null){var g=a.create(this.statics.scope);p.wrap(g),g.format(h,m)}},c.prototype.insertAt=function(d,f,h){var m=h==null?a.create("text",f):a.create(f,h),p=this.split(d);this.parent.insertBefore(m,p)},c.prototype.insertInto=function(d,f){f===void 0&&(f=null),this.parent!=null&&this.parent.children.remove(this);var h=null;d.children.insertBefore(this,f),f!=null&&(h=f.domNode),(this.domNode.parentNode!=d.domNode||this.domNode.nextSibling!=h)&&d.domNode.insertBefore(this.domNode,h),this.parent=d,this.attach()},c.prototype.isolate=function(d,f){var h=this.split(d);return h.split(f),h},c.prototype.length=function(){return 1},c.prototype.offset=function(d){return d===void 0&&(d=this.parent),this.parent==null||this==d?0:this.parent.children.offset(this)+this.parent.offset(d)},c.prototype.optimize=function(d){this.domNode[a.DATA_KEY]!=null&&delete this.domNode[a.DATA_KEY].mutations},c.prototype.remove=function(){this.domNode.parentNode!=null&&this.domNode.parentNode.removeChild(this.domNode),this.detach()},c.prototype.replace=function(d){d.parent!=null&&(d.parent.insertBefore(this,d.next),d.remove())},c.prototype.replaceWith=function(d,f){var h=typeof d=="string"?a.create(d,f):d;return h.replace(this),h},c.prototype.split=function(d,f){return d===0?this:this.next},c.prototype.update=function(d,f){},c.prototype.wrap=function(d,f){var h=typeof d=="string"?a.create(d,f):d;return this.parent!=null&&this.parent.insertBefore(h,this.next),h.appendChild(this),h},c.blotName="abstract",c})();i.default=o}),(function(r,i,s){Object.defineProperty(i,"__esModule",{value:!0});var a=s(12),o=s(32),c=s(33),d=s(1),f=(function(){function h(m){this.attributes={},this.domNode=m,this.build()}return h.prototype.attribute=function(m,p){p?m.add(this.domNode,p)&&(m.value(this.domNode)!=null?this.attributes[m.attrName]=m:delete this.attributes[m.attrName]):(m.remove(this.domNode),delete this.attributes[m.attrName])},h.prototype.build=function(){var m=this;this.attributes={};var p=a.default.keys(this.domNode),g=o.default.keys(this.domNode),b=c.default.keys(this.domNode);p.concat(g).concat(b).forEach(function(j){var y=d.query(j,d.Scope.ATTRIBUTE);y instanceof a.default&&(m.attributes[y.attrName]=y)})},h.prototype.copy=function(m){var p=this;Object.keys(this.attributes).forEach(function(g){var b=p.attributes[g].value(p.domNode);m.format(g,b)})},h.prototype.move=function(m){var p=this;this.copy(m),Object.keys(this.attributes).forEach(function(g){p.attributes[g].remove(p.domNode)}),this.attributes={}},h.prototype.values=function(){var m=this;return Object.keys(this.attributes).reduce(function(p,g){return p[g]=m.attributes[g].value(m.domNode),p},{})},h})();i.default=f}),(function(r,i,s){var a=this&&this.__extends||(function(){var f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,m){h.__proto__=m}||function(h,m){for(var p in m)m.hasOwnProperty(p)&&(h[p]=m[p])};return function(h,m){f(h,m);function p(){this.constructor=h}h.prototype=m===null?Object.create(m):(p.prototype=m.prototype,new p)}})();Object.defineProperty(i,"__esModule",{value:!0});var o=s(12);function c(f,h){var m=f.getAttribute("class")||"";return m.split(/\s+/).filter(function(p){return p.indexOf(h+"-")===0})}var d=(function(f){a(h,f);function h(){return f!==null&&f.apply(this,arguments)||this}return h.keys=function(m){return(m.getAttribute("class")||"").split(/\s+/).map(function(p){return p.split("-").slice(0,-1).join("-")})},h.prototype.add=function(m,p){return this.canAdd(m,p)?(this.remove(m),m.classList.add(this.keyName+"-"+p),!0):!1},h.prototype.remove=function(m){var p=c(m,this.keyName);p.forEach(function(g){m.classList.remove(g)}),m.classList.length===0&&m.removeAttribute("class")},h.prototype.value=function(m){var p=c(m,this.keyName)[0]||"",g=p.slice(this.keyName.length+1);return this.canAdd(m,g)?g:""},h})(o.default);i.default=d}),(function(r,i,s){var a=this&&this.__extends||(function(){var f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,m){h.__proto__=m}||function(h,m){for(var p in m)m.hasOwnProperty(p)&&(h[p]=m[p])};return function(h,m){f(h,m);function p(){this.constructor=h}h.prototype=m===null?Object.create(m):(p.prototype=m.prototype,new p)}})();Object.defineProperty(i,"__esModule",{value:!0});var o=s(12);function c(f){var h=f.split("-"),m=h.slice(1).map(function(p){return p[0].toUpperCase()+p.slice(1)}).join("");return h[0]+m}var d=(function(f){a(h,f);function h(){return f!==null&&f.apply(this,arguments)||this}return h.keys=function(m){return(m.getAttribute("style")||"").split(";").map(function(p){var g=p.split(":");return g[0].trim()})},h.prototype.add=function(m,p){return this.canAdd(m,p)?(m.style[c(this.keyName)]=p,!0):!1},h.prototype.remove=function(m){m.style[c(this.keyName)]="",m.getAttribute("style")||m.removeAttribute("style")},h.prototype.value=function(m){var p=m.style[c(this.keyName)];return this.canAdd(m,p)?p:""},h})(o.default);i.default=d}),(function(r,i,s){Object.defineProperty(i,"__esModule",{value:!0});var a=(function(){function d(f,h){for(var m=0;m<h.length;m++){var p=h[m];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(f,p.key,p)}}return function(f,h,m){return h&&d(f.prototype,h),m&&d(f,m),f}})();function o(d,f){if(!(d instanceof f))throw new TypeError("Cannot call a class as a function")}var c=(function(){function d(f,h){o(this,d),this.quill=f,this.options=h,this.modules={}}return a(d,[{key:"init",value:function(){var h=this;Object.keys(this.options.modules).forEach(function(m){h.modules[m]==null&&h.addModule(m)})}},{key:"addModule",value:function(h){var m=this.quill.constructor.import("modules/"+h);return this.modules[h]=new m(this.quill,this.options.modules[h]||{}),this.modules[h]}}]),d})();c.DEFAULTS={modules:{}},c.themes={default:c},i.default=c}),(function(r,i,s){Object.defineProperty(i,"__esModule",{value:!0});var a=(function(){function x(N,w){for(var k=0;k<w.length;k++){var A=w[k];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(N,A.key,A)}}return function(N,w,k){return w&&x(N.prototype,w),k&&x(N,k),N}})(),o=function x(N,w,k){N===null&&(N=Function.prototype);var A=Object.getOwnPropertyDescriptor(N,w);if(A===void 0){var S=Object.getPrototypeOf(N);return S===null?void 0:x(S,w,k)}else{if("value"in A)return A.value;var E=A.get;return E===void 0?void 0:E.call(k)}},c=s(0),d=m(c),f=s(7),h=m(f);function m(x){return x&&x.__esModule?x:{default:x}}function p(x,N){if(!(x instanceof N))throw new TypeError("Cannot call a class as a function")}function g(x,N){if(!x)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return N&&(typeof N=="object"||typeof N=="function")?N:x}function b(x,N){if(typeof N!="function"&&N!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof N);x.prototype=Object.create(N&&N.prototype,{constructor:{value:x,enumerable:!1,writable:!0,configurable:!0}}),N&&(Object.setPrototypeOf?Object.setPrototypeOf(x,N):x.__proto__=N)}var j="\uFEFF",y=(function(x){b(N,x);function N(w){p(this,N);var k=g(this,(N.__proto__||Object.getPrototypeOf(N)).call(this,w));return k.contentNode=document.createElement("span"),k.contentNode.setAttribute("contenteditable",!1),[].slice.call(k.domNode.childNodes).forEach(function(A){k.contentNode.appendChild(A)}),k.leftGuard=document.createTextNode(j),k.rightGuard=document.createTextNode(j),k.domNode.appendChild(k.leftGuard),k.domNode.appendChild(k.contentNode),k.domNode.appendChild(k.rightGuard),k}return a(N,[{key:"index",value:function(k,A){return k===this.leftGuard?0:k===this.rightGuard?1:o(N.prototype.__proto__||Object.getPrototypeOf(N.prototype),"index",this).call(this,k,A)}},{key:"restore",value:function(k){var A=void 0,S=void 0,E=k.data.split(j).join("");if(k===this.leftGuard)if(this.prev instanceof h.default){var C=this.prev.length();this.prev.insertAt(C,E),A={startNode:this.prev.domNode,startOffset:C+E.length}}else S=document.createTextNode(E),this.parent.insertBefore(d.default.create(S),this),A={startNode:S,startOffset:E.length};else k===this.rightGuard&&(this.next instanceof h.default?(this.next.insertAt(0,E),A={startNode:this.next.domNode,startOffset:E.length}):(S=document.createTextNode(E),this.parent.insertBefore(d.default.create(S),this.next),A={startNode:S,startOffset:E.length}));return k.data=j,A}},{key:"update",value:function(k,A){var S=this;k.forEach(function(E){if(E.type==="characterData"&&(E.target===S.leftGuard||E.target===S.rightGuard)){var C=S.restore(E.target);C&&(A.range=C)}})}}]),N})(d.default.Embed);i.default=y}),(function(r,i,s){Object.defineProperty(i,"__esModule",{value:!0}),i.AlignStyle=i.AlignClass=i.AlignAttribute=void 0;var a=s(0),o=c(a);function c(p){return p&&p.__esModule?p:{default:p}}var d={scope:o.default.Scope.BLOCK,whitelist:["right","center","justify"]},f=new o.default.Attributor.Attribute("align","align",d),h=new o.default.Attributor.Class("align","ql-align",d),m=new o.default.Attributor.Style("align","text-align",d);i.AlignAttribute=f,i.AlignClass=h,i.AlignStyle=m}),(function(r,i,s){Object.defineProperty(i,"__esModule",{value:!0}),i.BackgroundStyle=i.BackgroundClass=void 0;var a=s(0),o=d(a),c=s(26);function d(m){return m&&m.__esModule?m:{default:m}}var f=new o.default.Attributor.Class("background","ql-bg",{scope:o.default.Scope.INLINE}),h=new c.ColorAttributor("background","background-color",{scope:o.default.Scope.INLINE});i.BackgroundClass=f,i.BackgroundStyle=h}),(function(r,i,s){Object.defineProperty(i,"__esModule",{value:!0}),i.DirectionStyle=i.DirectionClass=i.DirectionAttribute=void 0;var a=s(0),o=c(a);function c(p){return p&&p.__esModule?p:{default:p}}var d={scope:o.default.Scope.BLOCK,whitelist:["rtl"]},f=new o.default.Attributor.Attribute("direction","dir",d),h=new o.default.Attributor.Class("direction","ql-direction",d),m=new o.default.Attributor.Style("direction","direction",d);i.DirectionAttribute=f,i.DirectionClass=h,i.DirectionStyle=m}),(function(r,i,s){Object.defineProperty(i,"__esModule",{value:!0}),i.FontClass=i.FontStyle=void 0;var a=(function(){function x(N,w){for(var k=0;k<w.length;k++){var A=w[k];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(N,A.key,A)}}return function(N,w,k){return w&&x(N.prototype,w),k&&x(N,k),N}})(),o=function x(N,w,k){N===null&&(N=Function.prototype);var A=Object.getOwnPropertyDescriptor(N,w);if(A===void 0){var S=Object.getPrototypeOf(N);return S===null?void 0:x(S,w,k)}else{if("value"in A)return A.value;var E=A.get;return E===void 0?void 0:E.call(k)}},c=s(0),d=f(c);function f(x){return x&&x.__esModule?x:{default:x}}function h(x,N){if(!(x instanceof N))throw new TypeError("Cannot call a class as a function")}function m(x,N){if(!x)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return N&&(typeof N=="object"||typeof N=="function")?N:x}function p(x,N){if(typeof N!="function"&&N!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof N);x.prototype=Object.create(N&&N.prototype,{constructor:{value:x,enumerable:!1,writable:!0,configurable:!0}}),N&&(Object.setPrototypeOf?Object.setPrototypeOf(x,N):x.__proto__=N)}var g={scope:d.default.Scope.INLINE,whitelist:["serif","monospace"]},b=new d.default.Attributor.Class("font","ql-font",g),j=(function(x){p(N,x);function N(){return h(this,N),m(this,(N.__proto__||Object.getPrototypeOf(N)).apply(this,arguments))}return a(N,[{key:"value",value:function(k){return o(N.prototype.__proto__||Object.getPrototypeOf(N.prototype),"value",this).call(this,k).replace(/["']/g,"")}}]),N})(d.default.Attributor.Style),y=new j("font","font-family",g);i.FontStyle=y,i.FontClass=b}),(function(r,i,s){Object.defineProperty(i,"__esModule",{value:!0}),i.SizeStyle=i.SizeClass=void 0;var a=s(0),o=c(a);function c(h){return h&&h.__esModule?h:{default:h}}var d=new o.default.Attributor.Class("size","ql-size",{scope:o.default.Scope.INLINE,whitelist:["small","large","huge"]}),f=new o.default.Attributor.Style("size","font-size",{scope:o.default.Scope.INLINE,whitelist:["10px","18px","32px"]});i.SizeClass=d,i.SizeStyle=f}),(function(r,i,s){r.exports={align:{"":s(76),center:s(77),right:s(78),justify:s(79)},background:s(80),blockquote:s(81),bold:s(82),clean:s(83),code:s(58),"code-block":s(58),color:s(84),direction:{"":s(85),rtl:s(86)},float:{center:s(87),full:s(88),left:s(89),right:s(90)},formula:s(91),header:{1:s(92),2:s(93)},italic:s(94),image:s(95),indent:{"+1":s(96),"-1":s(97)},link:s(98),list:{ordered:s(99),bullet:s(100),check:s(101)},script:{sub:s(102),super:s(103)},strike:s(104),underline:s(105),video:s(106)}}),(function(r,i,s){Object.defineProperty(i,"__esModule",{value:!0}),i.getLastChangeIndex=i.default=void 0;var a=(function(){function w(k,A){for(var S=0;S<A.length;S++){var E=A[S];E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),Object.defineProperty(k,E.key,E)}}return function(k,A,S){return A&&w(k.prototype,A),S&&w(k,S),k}})(),o=s(0),c=p(o),d=s(5),f=p(d),h=s(9),m=p(h);function p(w){return w&&w.__esModule?w:{default:w}}function g(w,k){if(!(w instanceof k))throw new TypeError("Cannot call a class as a function")}function b(w,k){if(!w)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return k&&(typeof k=="object"||typeof k=="function")?k:w}function j(w,k){if(typeof k!="function"&&k!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof k);w.prototype=Object.create(k&&k.prototype,{constructor:{value:w,enumerable:!1,writable:!0,configurable:!0}}),k&&(Object.setPrototypeOf?Object.setPrototypeOf(w,k):w.__proto__=k)}var y=(function(w){j(k,w);function k(A,S){g(this,k);var E=b(this,(k.__proto__||Object.getPrototypeOf(k)).call(this,A,S));return E.lastRecorded=0,E.ignoreChange=!1,E.clear(),E.quill.on(f.default.events.EDITOR_CHANGE,function(C,B,I,R){C!==f.default.events.TEXT_CHANGE||E.ignoreChange||(!E.options.userOnly||R===f.default.sources.USER?E.record(B,I):E.transform(B))}),E.quill.keyboard.addBinding({key:"Z",shortKey:!0},E.undo.bind(E)),E.quill.keyboard.addBinding({key:"Z",shortKey:!0,shiftKey:!0},E.redo.bind(E)),/Win/i.test(navigator.platform)&&E.quill.keyboard.addBinding({key:"Y",shortKey:!0},E.redo.bind(E)),E}return a(k,[{key:"change",value:function(S,E){if(this.stack[S].length!==0){var C=this.stack[S].pop();this.stack[E].push(C),this.lastRecorded=0,this.ignoreChange=!0,this.quill.updateContents(C[S],f.default.sources.USER),this.ignoreChange=!1;var B=N(C[S]);this.quill.setSelection(B)}}},{key:"clear",value:function(){this.stack={undo:[],redo:[]}}},{key:"cutoff",value:function(){this.lastRecorded=0}},{key:"record",value:function(S,E){if(S.ops.length!==0){this.stack.redo=[];var C=this.quill.getContents().diff(E),B=Date.now();if(this.lastRecorded+this.options.delay>B&&this.stack.undo.length>0){var I=this.stack.undo.pop();C=C.compose(I.undo),S=I.redo.compose(S)}else this.lastRecorded=B;this.stack.undo.push({redo:S,undo:C}),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift()}}},{key:"redo",value:function(){this.change("redo","undo")}},{key:"transform",value:function(S){this.stack.undo.forEach(function(E){E.undo=S.transform(E.undo,!0),E.redo=S.transform(E.redo,!0)}),this.stack.redo.forEach(function(E){E.undo=S.transform(E.undo,!0),E.redo=S.transform(E.redo,!0)})}},{key:"undo",value:function(){this.change("undo","redo")}}]),k})(m.default);y.DEFAULTS={delay:1e3,maxStack:100,userOnly:!1};function x(w){var k=w.ops[w.ops.length-1];return k==null?!1:k.insert!=null?typeof k.insert=="string"&&k.insert.endsWith(`
`):k.attributes!=null?Object.keys(k.attributes).some(function(A){return c.default.query(A,c.default.Scope.BLOCK)!=null}):!1}function N(w){var k=w.reduce(function(S,E){return S+=E.delete||0,S},0),A=w.length()-k;return x(w)&&(A-=1),A}i.default=y,i.getLastChangeIndex=N}),(function(r,i,s){Object.defineProperty(i,"__esModule",{value:!0}),i.default=i.BaseTooltip=void 0;var a=(function(){function V(L,X){for(var J=0;J<X.length;J++){var W=X[J];W.enumerable=W.enumerable||!1,W.configurable=!0,"value"in W&&(W.writable=!0),Object.defineProperty(L,W.key,W)}}return function(L,X,J){return X&&V(L.prototype,X),J&&V(L,J),L}})(),o=function V(L,X,J){L===null&&(L=Function.prototype);var W=Object.getOwnPropertyDescriptor(L,X);if(W===void 0){var G=Object.getPrototypeOf(L);return G===null?void 0:V(G,X,J)}else{if("value"in W)return W.value;var te=W.get;return te===void 0?void 0:te.call(J)}},c=s(3),d=B(c),f=s(2),h=B(f),m=s(8),p=B(m),g=s(23),b=B(g),j=s(34),y=B(j),x=s(59),N=B(x),w=s(60),k=B(w),A=s(28),S=B(A),E=s(61),C=B(E);function B(V){return V&&V.__esModule?V:{default:V}}function I(V,L){if(!(V instanceof L))throw new TypeError("Cannot call a class as a function")}function R(V,L){if(!V)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return L&&(typeof L=="object"||typeof L=="function")?L:V}function D(V,L){if(typeof L!="function"&&L!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof L);V.prototype=Object.create(L&&L.prototype,{constructor:{value:V,enumerable:!1,writable:!0,configurable:!0}}),L&&(Object.setPrototypeOf?Object.setPrototypeOf(V,L):V.__proto__=L)}var q=[!1,"center","right","justify"],z=["#000000","#e60000","#ff9900","#ffff00","#008a00","#0066cc","#9933ff","#ffffff","#facccc","#ffebcc","#ffffcc","#cce8cc","#cce0f5","#ebd6ff","#bbbbbb","#f06666","#ffc266","#ffff66","#66b966","#66a3e0","#c285ff","#888888","#a10000","#b26b00","#b2b200","#006100","#0047b2","#6b24b2","#444444","#5c0000","#663d00","#666600","#003700","#002966","#3d1466"],U=[!1,"serif","monospace"],Y=["1","2","3",!1],H=["small",!1,"large","huge"],K=(function(V){D(L,V);function L(X,J){I(this,L);var W=R(this,(L.__proto__||Object.getPrototypeOf(L)).call(this,X,J)),G=function te(re){if(!document.body.contains(X.root))return document.body.removeEventListener("click",te);W.tooltip!=null&&!W.tooltip.root.contains(re.target)&&document.activeElement!==W.tooltip.textbox&&!W.quill.hasFocus()&&W.tooltip.hide(),W.pickers!=null&&W.pickers.forEach(function(le){le.container.contains(re.target)||le.close()})};return X.emitter.listenDOM("click",document.body,G),W}return a(L,[{key:"addModule",value:function(J){var W=o(L.prototype.__proto__||Object.getPrototypeOf(L.prototype),"addModule",this).call(this,J);return J==="toolbar"&&this.extendToolbar(W),W}},{key:"buildButtons",value:function(J,W){J.forEach(function(G){var te=G.getAttribute("class")||"";te.split(/\s+/).forEach(function(re){if(re.startsWith("ql-")&&(re=re.slice(3),W[re]!=null))if(re==="direction")G.innerHTML=W[re][""]+W[re].rtl;else if(typeof W[re]=="string")G.innerHTML=W[re];else{var le=G.value||"";le!=null&&W[re][le]&&(G.innerHTML=W[re][le])}})})}},{key:"buildPickers",value:function(J,W){var G=this;this.pickers=J.map(function(re){if(re.classList.contains("ql-align"))return re.querySelector("option")==null&&T(re,q),new k.default(re,W.align);if(re.classList.contains("ql-background")||re.classList.contains("ql-color")){var le=re.classList.contains("ql-background")?"background":"color";return re.querySelector("option")==null&&T(re,z,le==="background"?"#ffffff":"#000000"),new N.default(re,W[le])}else return re.querySelector("option")==null&&(re.classList.contains("ql-font")?T(re,U):re.classList.contains("ql-header")?T(re,Y):re.classList.contains("ql-size")&&T(re,H)),new S.default(re)});var te=function(){G.pickers.forEach(function(le){le.update()})};this.quill.on(p.default.events.EDITOR_CHANGE,te)}}]),L})(y.default);K.DEFAULTS=(0,d.default)(!0,{},y.default.DEFAULTS,{modules:{toolbar:{handlers:{formula:function(){this.quill.theme.tooltip.edit("formula")},image:function(){var L=this,X=this.container.querySelector("input.ql-image[type=file]");X==null&&(X=document.createElement("input"),X.setAttribute("type","file"),X.setAttribute("accept","image/png, image/gif, image/jpeg, image/bmp, image/x-icon"),X.classList.add("ql-image"),X.addEventListener("change",function(){if(X.files!=null&&X.files[0]!=null){var J=new FileReader;J.onload=function(W){var G=L.quill.getSelection(!0);L.quill.updateContents(new h.default().retain(G.index).delete(G.length).insert({image:W.target.result}),p.default.sources.USER),L.quill.setSelection(G.index+1,p.default.sources.SILENT),X.value=""},J.readAsDataURL(X.files[0])}}),this.container.appendChild(X)),X.click()},video:function(){this.quill.theme.tooltip.edit("video")}}}}});var Q=(function(V){D(L,V);function L(X,J){I(this,L);var W=R(this,(L.__proto__||Object.getPrototypeOf(L)).call(this,X,J));return W.textbox=W.root.querySelector('input[type="text"]'),W.listen(),W}return a(L,[{key:"listen",value:function(){var J=this;this.textbox.addEventListener("keydown",function(W){b.default.match(W,"enter")?(J.save(),W.preventDefault()):b.default.match(W,"escape")&&(J.cancel(),W.preventDefault())})}},{key:"cancel",value:function(){this.hide()}},{key:"edit",value:function(){var J=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"link",W=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),W!=null?this.textbox.value=W:J!==this.root.getAttribute("data-mode")&&(this.textbox.value=""),this.position(this.quill.getBounds(this.quill.selection.savedRange)),this.textbox.select(),this.textbox.setAttribute("placeholder",this.textbox.getAttribute("data-"+J)||""),this.root.setAttribute("data-mode",J)}},{key:"restoreFocus",value:function(){var J=this.quill.scrollingContainer.scrollTop;this.quill.focus(),this.quill.scrollingContainer.scrollTop=J}},{key:"save",value:function(){var J=this.textbox.value;switch(this.root.getAttribute("data-mode")){case"link":{var W=this.quill.root.scrollTop;this.linkRange?(this.quill.formatText(this.linkRange,"link",J,p.default.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",J,p.default.sources.USER)),this.quill.root.scrollTop=W;break}case"video":J=O(J);case"formula":{if(!J)break;var G=this.quill.getSelection(!0);if(G!=null){var te=G.index+G.length;this.quill.insertEmbed(te,this.root.getAttribute("data-mode"),J,p.default.sources.USER),this.root.getAttribute("data-mode")==="formula"&&this.quill.insertText(te+1," ",p.default.sources.USER),this.quill.setSelection(te+2,p.default.sources.USER)}break}}this.textbox.value="",this.hide()}}]),L})(C.default);function O(V){var L=V.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||V.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);return L?(L[1]||"https")+"://www.youtube.com/embed/"+L[2]+"?showinfo=0":(L=V.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?(L[1]||"https")+"://player.vimeo.com/video/"+L[2]+"/":V}function T(V,L){var X=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;L.forEach(function(J){var W=document.createElement("option");J===X?W.setAttribute("selected","selected"):W.setAttribute("value",J),V.appendChild(W)})}i.BaseTooltip=Q,i.default=K}),(function(r,i,s){Object.defineProperty(i,"__esModule",{value:!0});var a=(function(){function o(){this.head=this.tail=null,this.length=0}return o.prototype.append=function(){for(var c=[],d=0;d<arguments.length;d++)c[d]=arguments[d];this.insertBefore(c[0],null),c.length>1&&this.append.apply(this,c.slice(1))},o.prototype.contains=function(c){for(var d,f=this.iterator();d=f();)if(d===c)return!0;return!1},o.prototype.insertBefore=function(c,d){c&&(c.next=d,d!=null?(c.prev=d.prev,d.prev!=null&&(d.prev.next=c),d.prev=c,d===this.head&&(this.head=c)):this.tail!=null?(this.tail.next=c,c.prev=this.tail,this.tail=c):(c.prev=null,this.head=this.tail=c),this.length+=1)},o.prototype.offset=function(c){for(var d=0,f=this.head;f!=null;){if(f===c)return d;d+=f.length(),f=f.next}return-1},o.prototype.remove=function(c){this.contains(c)&&(c.prev!=null&&(c.prev.next=c.next),c.next!=null&&(c.next.prev=c.prev),c===this.head&&(this.head=c.next),c===this.tail&&(this.tail=c.prev),this.length-=1)},o.prototype.iterator=function(c){return c===void 0&&(c=this.head),function(){var d=c;return c!=null&&(c=c.next),d}},o.prototype.find=function(c,d){d===void 0&&(d=!1);for(var f,h=this.iterator();f=h();){var m=f.length();if(c<m||d&&c===m&&(f.next==null||f.next.length()!==0))return[f,c];c-=m}return[null,0]},o.prototype.forEach=function(c){for(var d,f=this.iterator();d=f();)c(d)},o.prototype.forEachAt=function(c,d,f){if(!(d<=0))for(var h=this.find(c),m=h[0],p=h[1],g,b=c-p,j=this.iterator(m);(g=j())&&b<c+d;){var y=g.length();c>b?f(g,c-b,Math.min(d,b+y-c)):f(g,0,Math.min(y,c+d-b)),b+=y}},o.prototype.map=function(c){return this.reduce(function(d,f){return d.push(c(f)),d},[])},o.prototype.reduce=function(c,d){for(var f,h=this.iterator();f=h();)d=c(d,f);return d},o})();i.default=a}),(function(r,i,s){var a=this&&this.__extends||(function(){var m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,g){p.__proto__=g}||function(p,g){for(var b in g)g.hasOwnProperty(b)&&(p[b]=g[b])};return function(p,g){m(p,g);function b(){this.constructor=p}p.prototype=g===null?Object.create(g):(b.prototype=g.prototype,new b)}})();Object.defineProperty(i,"__esModule",{value:!0});var o=s(17),c=s(1),d={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},f=100,h=(function(m){a(p,m);function p(g){var b=m.call(this,g)||this;return b.scroll=b,b.observer=new MutationObserver(function(j){b.update(j)}),b.observer.observe(b.domNode,d),b.attach(),b}return p.prototype.detach=function(){m.prototype.detach.call(this),this.observer.disconnect()},p.prototype.deleteAt=function(g,b){this.update(),g===0&&b===this.length()?this.children.forEach(function(j){j.remove()}):m.prototype.deleteAt.call(this,g,b)},p.prototype.formatAt=function(g,b,j,y){this.update(),m.prototype.formatAt.call(this,g,b,j,y)},p.prototype.insertAt=function(g,b,j){this.update(),m.prototype.insertAt.call(this,g,b,j)},p.prototype.optimize=function(g,b){var j=this;g===void 0&&(g=[]),b===void 0&&(b={}),m.prototype.optimize.call(this,b);for(var y=[].slice.call(this.observer.takeRecords());y.length>0;)g.push(y.pop());for(var x=function(A,S){S===void 0&&(S=!0),!(A==null||A===j)&&A.domNode.parentNode!=null&&(A.domNode[c.DATA_KEY].mutations==null&&(A.domNode[c.DATA_KEY].mutations=[]),S&&x(A.parent))},N=function(A){A.domNode[c.DATA_KEY]==null||A.domNode[c.DATA_KEY].mutations==null||(A instanceof o.default&&A.children.forEach(N),A.optimize(b))},w=g,k=0;w.length>0;k+=1){if(k>=f)throw new Error("[Parchment] Maximum optimize iterations reached");for(w.forEach(function(A){var S=c.find(A.target,!0);S!=null&&(S.domNode===A.target&&(A.type==="childList"?(x(c.find(A.previousSibling,!1)),[].forEach.call(A.addedNodes,function(E){var C=c.find(E,!1);x(C,!1),C instanceof o.default&&C.children.forEach(function(B){x(B,!1)})})):A.type==="attributes"&&x(S.prev)),x(S))}),this.children.forEach(N),w=[].slice.call(this.observer.takeRecords()),y=w.slice();y.length>0;)g.push(y.pop())}},p.prototype.update=function(g,b){var j=this;b===void 0&&(b={}),g=g||this.observer.takeRecords(),g.map(function(y){var x=c.find(y.target,!0);return x==null?null:x.domNode[c.DATA_KEY].mutations==null?(x.domNode[c.DATA_KEY].mutations=[y],x):(x.domNode[c.DATA_KEY].mutations.push(y),null)}).forEach(function(y){y==null||y===j||y.domNode[c.DATA_KEY]==null||y.update(y.domNode[c.DATA_KEY].mutations||[],b)}),this.domNode[c.DATA_KEY].mutations!=null&&m.prototype.update.call(this,this.domNode[c.DATA_KEY].mutations,b),this.optimize(g,b)},p.blotName="scroll",p.defaultChild="block",p.scope=c.Scope.BLOCK_BLOT,p.tagName="DIV",p})(o.default);i.default=h}),(function(r,i,s){var a=this&&this.__extends||(function(){var h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(m,p){m.__proto__=p}||function(m,p){for(var g in p)p.hasOwnProperty(g)&&(m[g]=p[g])};return function(m,p){h(m,p);function g(){this.constructor=m}m.prototype=p===null?Object.create(p):(g.prototype=p.prototype,new g)}})();Object.defineProperty(i,"__esModule",{value:!0});var o=s(18),c=s(1);function d(h,m){if(Object.keys(h).length!==Object.keys(m).length)return!1;for(var p in h)if(h[p]!==m[p])return!1;return!0}var f=(function(h){a(m,h);function m(){return h!==null&&h.apply(this,arguments)||this}return m.formats=function(p){if(p.tagName!==m.tagName)return h.formats.call(this,p)},m.prototype.format=function(p,g){var b=this;p===this.statics.blotName&&!g?(this.children.forEach(function(j){j instanceof o.default||(j=j.wrap(m.blotName,!0)),b.attributes.copy(j)}),this.unwrap()):h.prototype.format.call(this,p,g)},m.prototype.formatAt=function(p,g,b,j){if(this.formats()[b]!=null||c.query(b,c.Scope.ATTRIBUTE)){var y=this.isolate(p,g);y.format(b,j)}else h.prototype.formatAt.call(this,p,g,b,j)},m.prototype.optimize=function(p){h.prototype.optimize.call(this,p);var g=this.formats();if(Object.keys(g).length===0)return this.unwrap();var b=this.next;b instanceof m&&b.prev===this&&d(g,b.formats())&&(b.moveChildren(this),b.remove())},m.blotName="inline",m.scope=c.Scope.INLINE_BLOT,m.tagName="SPAN",m})(o.default);i.default=f}),(function(r,i,s){var a=this&&this.__extends||(function(){var f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,m){h.__proto__=m}||function(h,m){for(var p in m)m.hasOwnProperty(p)&&(h[p]=m[p])};return function(h,m){f(h,m);function p(){this.constructor=h}h.prototype=m===null?Object.create(m):(p.prototype=m.prototype,new p)}})();Object.defineProperty(i,"__esModule",{value:!0});var o=s(18),c=s(1),d=(function(f){a(h,f);function h(){return f!==null&&f.apply(this,arguments)||this}return h.formats=function(m){var p=c.query(h.blotName).tagName;if(m.tagName!==p)return f.formats.call(this,m)},h.prototype.format=function(m,p){c.query(m,c.Scope.BLOCK)!=null&&(m===this.statics.blotName&&!p?this.replaceWith(h.blotName):f.prototype.format.call(this,m,p))},h.prototype.formatAt=function(m,p,g,b){c.query(g,c.Scope.BLOCK)!=null?this.format(g,b):f.prototype.formatAt.call(this,m,p,g,b)},h.prototype.insertAt=function(m,p,g){if(g==null||c.query(p,c.Scope.INLINE)!=null)f.prototype.insertAt.call(this,m,p,g);else{var b=this.split(m),j=c.create(p,g);b.parent.insertBefore(j,b)}},h.prototype.update=function(m,p){navigator.userAgent.match(/Trident/)?this.build():f.prototype.update.call(this,m,p)},h.blotName="block",h.scope=c.Scope.BLOCK_BLOT,h.tagName="P",h})(o.default);i.default=d}),(function(r,i,s){var a=this&&this.__extends||(function(){var d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,h){f.__proto__=h}||function(f,h){for(var m in h)h.hasOwnProperty(m)&&(f[m]=h[m])};return function(f,h){d(f,h);function m(){this.constructor=f}f.prototype=h===null?Object.create(h):(m.prototype=h.prototype,new m)}})();Object.defineProperty(i,"__esModule",{value:!0});var o=s(19),c=(function(d){a(f,d);function f(){return d!==null&&d.apply(this,arguments)||this}return f.formats=function(h){},f.prototype.format=function(h,m){d.prototype.formatAt.call(this,0,this.length(),h,m)},f.prototype.formatAt=function(h,m,p,g){h===0&&m===this.length()?this.format(p,g):d.prototype.formatAt.call(this,h,m,p,g)},f.prototype.formats=function(){return this.statics.formats(this.domNode)},f})(o.default);i.default=c}),(function(r,i,s){var a=this&&this.__extends||(function(){var f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,m){h.__proto__=m}||function(h,m){for(var p in m)m.hasOwnProperty(p)&&(h[p]=m[p])};return function(h,m){f(h,m);function p(){this.constructor=h}h.prototype=m===null?Object.create(m):(p.prototype=m.prototype,new p)}})();Object.defineProperty(i,"__esModule",{value:!0});var o=s(19),c=s(1),d=(function(f){a(h,f);function h(m){var p=f.call(this,m)||this;return p.text=p.statics.value(p.domNode),p}return h.create=function(m){return document.createTextNode(m)},h.value=function(m){var p=m.data;return p.normalize&&(p=p.normalize()),p},h.prototype.deleteAt=function(m,p){this.domNode.data=this.text=this.text.slice(0,m)+this.text.slice(m+p)},h.prototype.index=function(m,p){return this.domNode===m?p:-1},h.prototype.insertAt=function(m,p,g){g==null?(this.text=this.text.slice(0,m)+p+this.text.slice(m),this.domNode.data=this.text):f.prototype.insertAt.call(this,m,p,g)},h.prototype.length=function(){return this.text.length},h.prototype.optimize=function(m){f.prototype.optimize.call(this,m),this.text=this.statics.value(this.domNode),this.text.length===0?this.remove():this.next instanceof h&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())},h.prototype.position=function(m,p){return[this.domNode,m]},h.prototype.split=function(m,p){if(p===void 0&&(p=!1),!p){if(m===0)return this;if(m===this.length())return this.next}var g=c.create(this.domNode.splitText(m));return this.parent.insertBefore(g,this.next),this.text=this.statics.value(this.domNode),g},h.prototype.update=function(m,p){var g=this;m.some(function(b){return b.type==="characterData"&&b.target===g.domNode})&&(this.text=this.statics.value(this.domNode))},h.prototype.value=function(){return this.text},h.blotName="text",h.scope=c.Scope.INLINE_BLOT,h})(o.default);i.default=d}),(function(r,i,s){var a=document.createElement("div");if(a.classList.toggle("test-class",!1),a.classList.contains("test-class")){var o=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(c,d){return arguments.length>1&&!this.contains(c)==!d?d:o.call(this,c)}}String.prototype.startsWith||(String.prototype.startsWith=function(c,d){return d=d||0,this.substr(d,c.length)===c}),String.prototype.endsWith||(String.prototype.endsWith=function(c,d){var f=this.toString();(typeof d!="number"||!isFinite(d)||Math.floor(d)!==d||d>f.length)&&(d=f.length),d-=c.length;var h=f.indexOf(c,d);return h!==-1&&h===d}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(d){if(this===null)throw new TypeError("Array.prototype.find called on null or undefined");if(typeof d!="function")throw new TypeError("predicate must be a function");for(var f=Object(this),h=f.length>>>0,m=arguments[1],p,g=0;g<h;g++)if(p=f[g],d.call(m,p,g,f))return p}}),document.addEventListener("DOMContentLoaded",function(){document.execCommand("enableObjectResizing",!1,!1),document.execCommand("autoUrlDetect",!1,!1)})}),(function(r,i){var s=-1,a=1,o=0;function c(k,A,S){if(k==A)return k?[[o,k]]:[];(S<0||k.length<S)&&(S=null);var E=m(k,A),C=k.substring(0,E);k=k.substring(E),A=A.substring(E),E=p(k,A);var B=k.substring(k.length-E);k=k.substring(0,k.length-E),A=A.substring(0,A.length-E);var I=d(k,A);return C&&I.unshift([o,C]),B&&I.push([o,B]),b(I),S!=null&&(I=x(I,S)),I=N(I),I}function d(k,A){var S;if(!k)return[[a,A]];if(!A)return[[s,k]];var E=k.length>A.length?k:A,C=k.length>A.length?A:k,B=E.indexOf(C);if(B!=-1)return S=[[a,E.substring(0,B)],[o,C],[a,E.substring(B+C.length)]],k.length>A.length&&(S[0][0]=S[2][0]=s),S;if(C.length==1)return[[s,k],[a,A]];var I=g(k,A);if(I){var R=I[0],D=I[1],q=I[2],z=I[3],U=I[4],Y=c(R,q),H=c(D,z);return Y.concat([[o,U]],H)}return f(k,A)}function f(k,A){for(var S=k.length,E=A.length,C=Math.ceil((S+E)/2),B=C,I=2*C,R=new Array(I),D=new Array(I),q=0;q<I;q++)R[q]=-1,D[q]=-1;R[B+1]=0,D[B+1]=0;for(var z=S-E,U=z%2!=0,Y=0,H=0,K=0,Q=0,O=0;O<C;O++){for(var T=-O+Y;T<=O-H;T+=2){var V=B+T,L;T==-O||T!=O&&R[V-1]<R[V+1]?L=R[V+1]:L=R[V-1]+1;for(var X=L-T;L<S&&X<E&&k.charAt(L)==A.charAt(X);)L++,X++;if(R[V]=L,L>S)H+=2;else if(X>E)Y+=2;else if(U){var J=B+z-T;if(J>=0&&J<I&&D[J]!=-1){var W=S-D[J];if(L>=W)return h(k,A,L,X)}}}for(var G=-O+K;G<=O-Q;G+=2){var J=B+G,W;G==-O||G!=O&&D[J-1]<D[J+1]?W=D[J+1]:W=D[J-1]+1;for(var te=W-G;W<S&&te<E&&k.charAt(S-W-1)==A.charAt(E-te-1);)W++,te++;if(D[J]=W,W>S)Q+=2;else if(te>E)K+=2;else if(!U){var V=B+z-G;if(V>=0&&V<I&&R[V]!=-1){var L=R[V],X=B+L-V;if(W=S-W,L>=W)return h(k,A,L,X)}}}}return[[s,k],[a,A]]}function h(k,A,S,E){var C=k.substring(0,S),B=A.substring(0,E),I=k.substring(S),R=A.substring(E),D=c(C,B),q=c(I,R);return D.concat(q)}function m(k,A){if(!k||!A||k.charAt(0)!=A.charAt(0))return 0;for(var S=0,E=Math.min(k.length,A.length),C=E,B=0;S<C;)k.substring(B,C)==A.substring(B,C)?(S=C,B=S):E=C,C=Math.floor((E-S)/2+S);return C}function p(k,A){if(!k||!A||k.charAt(k.length-1)!=A.charAt(A.length-1))return 0;for(var S=0,E=Math.min(k.length,A.length),C=E,B=0;S<C;)k.substring(k.length-C,k.length-B)==A.substring(A.length-C,A.length-B)?(S=C,B=S):E=C,C=Math.floor((E-S)/2+S);return C}function g(k,A){var S=k.length>A.length?k:A,E=k.length>A.length?A:k;if(S.length<4||E.length*2<S.length)return null;function C(H,K,Q){for(var O=H.substring(Q,Q+Math.floor(H.length/4)),T=-1,V="",L,X,J,W;(T=K.indexOf(O,T+1))!=-1;){var G=m(H.substring(Q),K.substring(T)),te=p(H.substring(0,Q),K.substring(0,T));V.length<te+G&&(V=K.substring(T-te,T)+K.substring(T,T+G),L=H.substring(0,Q-te),X=H.substring(Q+G),J=K.substring(0,T-te),W=K.substring(T+G))}return V.length*2>=H.length?[L,X,J,W,V]:null}var B=C(S,E,Math.ceil(S.length/4)),I=C(S,E,Math.ceil(S.length/2)),R;if(!B&&!I)return null;I?B?R=B[4].length>I[4].length?B:I:R=I:R=B;var D,q,z,U;k.length>A.length?(D=R[0],q=R[1],z=R[2],U=R[3]):(z=R[0],U=R[1],D=R[2],q=R[3]);var Y=R[4];return[D,q,z,U,Y]}function b(k){k.push([o,""]);for(var A=0,S=0,E=0,C="",B="",I;A<k.length;)switch(k[A][0]){case a:E++,B+=k[A][1],A++;break;case s:S++,C+=k[A][1],A++;break;case o:S+E>1?(S!==0&&E!==0&&(I=m(B,C),I!==0&&(A-S-E>0&&k[A-S-E-1][0]==o?k[A-S-E-1][1]+=B.substring(0,I):(k.splice(0,0,[o,B.substring(0,I)]),A++),B=B.substring(I),C=C.substring(I)),I=p(B,C),I!==0&&(k[A][1]=B.substring(B.length-I)+k[A][1],B=B.substring(0,B.length-I),C=C.substring(0,C.length-I))),S===0?k.splice(A-E,S+E,[a,B]):E===0?k.splice(A-S,S+E,[s,C]):k.splice(A-S-E,S+E,[s,C],[a,B]),A=A-S-E+(S?1:0)+(E?1:0)+1):A!==0&&k[A-1][0]==o?(k[A-1][1]+=k[A][1],k.splice(A,1)):A++,E=0,S=0,C="",B="";break}k[k.length-1][1]===""&&k.pop();var R=!1;for(A=1;A<k.length-1;)k[A-1][0]==o&&k[A+1][0]==o&&(k[A][1].substring(k[A][1].length-k[A-1][1].length)==k[A-1][1]?(k[A][1]=k[A-1][1]+k[A][1].substring(0,k[A][1].length-k[A-1][1].length),k[A+1][1]=k[A-1][1]+k[A+1][1],k.splice(A-1,1),R=!0):k[A][1].substring(0,k[A+1][1].length)==k[A+1][1]&&(k[A-1][1]+=k[A+1][1],k[A][1]=k[A][1].substring(k[A+1][1].length)+k[A+1][1],k.splice(A+1,1),R=!0)),A++;R&&b(k)}var j=c;j.INSERT=a,j.DELETE=s,j.EQUAL=o,r.exports=j;function y(k,A){if(A===0)return[o,k];for(var S=0,E=0;E<k.length;E++){var C=k[E];if(C[0]===s||C[0]===o){var B=S+C[1].length;if(A===B)return[E+1,k];if(A<B){k=k.slice();var I=A-S,R=[C[0],C[1].slice(0,I)],D=[C[0],C[1].slice(I)];return k.splice(E,1,R,D),[E+1,k]}else S=B}}throw new Error("cursor_pos is out of bounds!")}function x(k,A){var S=y(k,A),E=S[1],C=S[0],B=E[C],I=E[C+1];if(B==null)return k;if(B[0]!==o)return k;if(I!=null&&B[1]+I[1]===I[1]+B[1])return E.splice(C,2,I,B),w(E,C,2);if(I!=null&&I[1].indexOf(B[1])===0){E.splice(C,2,[I[0],B[1]],[0,B[1]]);var R=I[1].slice(B[1].length);return R.length>0&&E.splice(C+2,0,[I[0],R]),w(E,C,3)}else return k}function N(k){for(var A=!1,S=function(I){return I.charCodeAt(0)>=56320&&I.charCodeAt(0)<=57343},E=function(I){return I.charCodeAt(I.length-1)>=55296&&I.charCodeAt(I.length-1)<=56319},C=2;C<k.length;C+=1)k[C-2][0]===o&&E(k[C-2][1])&&k[C-1][0]===s&&S(k[C-1][1])&&k[C][0]===a&&S(k[C][1])&&(A=!0,k[C-1][1]=k[C-2][1].slice(-1)+k[C-1][1],k[C][1]=k[C-2][1].slice(-1)+k[C][1],k[C-2][1]=k[C-2][1].slice(0,-1));if(!A)return k;for(var B=[],C=0;C<k.length;C+=1)k[C][1].length>0&&B.push(k[C]);return B}function w(k,A,S){for(var E=A+S-1;E>=0&&E>=A-1;E--)if(E+1<k.length){var C=k[E],B=k[E+1];C[0]===B[1]&&k.splice(E,2,[C[0],C[1]+B[1]])}return k}}),(function(r,i){i=r.exports=typeof Object.keys=="function"?Object.keys:s,i.shim=s;function s(a){var o=[];for(var c in a)o.push(c);return o}}),(function(r,i){var s=(function(){return Object.prototype.toString.call(arguments)})()=="[object Arguments]";i=r.exports=s?a:o,i.supported=a;function a(c){return Object.prototype.toString.call(c)=="[object Arguments]"}i.unsupported=o;function o(c){return c&&typeof c=="object"&&typeof c.length=="number"&&Object.prototype.hasOwnProperty.call(c,"callee")&&!Object.prototype.propertyIsEnumerable.call(c,"callee")||!1}}),(function(r,i){var s=Object.prototype.hasOwnProperty,a="~";function o(){}Object.create&&(o.prototype=Object.create(null),new o().__proto__||(a=!1));function c(f,h,m){this.fn=f,this.context=h,this.once=m||!1}function d(){this._events=new o,this._eventsCount=0}d.prototype.eventNames=function(){var h=[],m,p;if(this._eventsCount===0)return h;for(p in m=this._events)s.call(m,p)&&h.push(a?p.slice(1):p);return Object.getOwnPropertySymbols?h.concat(Object.getOwnPropertySymbols(m)):h},d.prototype.listeners=function(h,m){var p=a?a+h:h,g=this._events[p];if(m)return!!g;if(!g)return[];if(g.fn)return[g.fn];for(var b=0,j=g.length,y=new Array(j);b<j;b++)y[b]=g[b].fn;return y},d.prototype.emit=function(h,m,p,g,b,j){var y=a?a+h:h;if(!this._events[y])return!1;var x=this._events[y],N=arguments.length,w,k;if(x.fn){switch(x.once&&this.removeListener(h,x.fn,void 0,!0),N){case 1:return x.fn.call(x.context),!0;case 2:return x.fn.call(x.context,m),!0;case 3:return x.fn.call(x.context,m,p),!0;case 4:return x.fn.call(x.context,m,p,g),!0;case 5:return x.fn.call(x.context,m,p,g,b),!0;case 6:return x.fn.call(x.context,m,p,g,b,j),!0}for(k=1,w=new Array(N-1);k<N;k++)w[k-1]=arguments[k];x.fn.apply(x.context,w)}else{var A=x.length,S;for(k=0;k<A;k++)switch(x[k].once&&this.removeListener(h,x[k].fn,void 0,!0),N){case 1:x[k].fn.call(x[k].context);break;case 2:x[k].fn.call(x[k].context,m);break;case 3:x[k].fn.call(x[k].context,m,p);break;case 4:x[k].fn.call(x[k].context,m,p,g);break;default:if(!w)for(S=1,w=new Array(N-1);S<N;S++)w[S-1]=arguments[S];x[k].fn.apply(x[k].context,w)}}return!0},d.prototype.on=function(h,m,p){var g=new c(m,p||this),b=a?a+h:h;return this._events[b]?this._events[b].fn?this._events[b]=[this._events[b],g]:this._events[b].push(g):(this._events[b]=g,this._eventsCount++),this},d.prototype.once=function(h,m,p){var g=new c(m,p||this,!0),b=a?a+h:h;return this._events[b]?this._events[b].fn?this._events[b]=[this._events[b],g]:this._events[b].push(g):(this._events[b]=g,this._eventsCount++),this},d.prototype.removeListener=function(h,m,p,g){var b=a?a+h:h;if(!this._events[b])return this;if(!m)return--this._eventsCount===0?this._events=new o:delete this._events[b],this;var j=this._events[b];if(j.fn)j.fn===m&&(!g||j.once)&&(!p||j.context===p)&&(--this._eventsCount===0?this._events=new o:delete this._events[b]);else{for(var y=0,x=[],N=j.length;y<N;y++)(j[y].fn!==m||g&&!j[y].once||p&&j[y].context!==p)&&x.push(j[y]);x.length?this._events[b]=x.length===1?x[0]:x:--this._eventsCount===0?this._events=new o:delete this._events[b]}return this},d.prototype.removeAllListeners=function(h){var m;return h?(m=a?a+h:h,this._events[m]&&(--this._eventsCount===0?this._events=new o:delete this._events[m])):(this._events=new o,this._eventsCount=0),this},d.prototype.off=d.prototype.removeListener,d.prototype.addListener=d.prototype.on,d.prototype.setMaxListeners=function(){return this},d.prefixed=a,d.EventEmitter=d,typeof r<"u"&&(r.exports=d)}),(function(r,i,s){Object.defineProperty(i,"__esModule",{value:!0}),i.matchText=i.matchSpacing=i.matchNewline=i.matchBlot=i.matchAttributor=i.default=void 0;var a=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(ge){return typeof ge}:function(ge){return ge&&typeof Symbol=="function"&&ge.constructor===Symbol&&ge!==Symbol.prototype?"symbol":typeof ge},o=(function(){function ge(ve,Se){var Oe=[],je=!0,tt=!1,et=void 0;try{for(var rt=ve[Symbol.iterator](),xe;!(je=(xe=rt.next()).done)&&(Oe.push(xe.value),!(Se&&Oe.length===Se));je=!0);}catch(_e){tt=!0,et=_e}finally{try{!je&&rt.return&&rt.return()}finally{if(tt)throw et}}return Oe}return function(ve,Se){if(Array.isArray(ve))return ve;if(Symbol.iterator in Object(ve))return ge(ve,Se);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),c=(function(){function ge(ve,Se){for(var Oe=0;Oe<Se.length;Oe++){var je=Se[Oe];je.enumerable=je.enumerable||!1,je.configurable=!0,"value"in je&&(je.writable=!0),Object.defineProperty(ve,je.key,je)}}return function(ve,Se,Oe){return Se&&ge(ve.prototype,Se),Oe&&ge(ve,Oe),ve}})(),d=s(3),f=D(d),h=s(2),m=D(h),p=s(0),g=D(p),b=s(5),j=D(b),y=s(10),x=D(y),N=s(9),w=D(N),k=s(36),A=s(37),S=s(13),E=D(S),C=s(26),B=s(38),I=s(39),R=s(40);function D(ge){return ge&&ge.__esModule?ge:{default:ge}}function q(ge,ve,Se){return ve in ge?Object.defineProperty(ge,ve,{value:Se,enumerable:!0,configurable:!0,writable:!0}):ge[ve]=Se,ge}function z(ge,ve){if(!(ge instanceof ve))throw new TypeError("Cannot call a class as a function")}function U(ge,ve){if(!ge)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ve&&(typeof ve=="object"||typeof ve=="function")?ve:ge}function Y(ge,ve){if(typeof ve!="function"&&ve!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof ve);ge.prototype=Object.create(ve&&ve.prototype,{constructor:{value:ge,enumerable:!1,writable:!0,configurable:!0}}),ve&&(Object.setPrototypeOf?Object.setPrototypeOf(ge,ve):ge.__proto__=ve)}var H=(0,x.default)("quill:clipboard"),K="__ql-matcher",Q=[[Node.TEXT_NODE,nt],[Node.TEXT_NODE,Te],["br",ye],[Node.ELEMENT_NODE,Te],[Node.ELEMENT_NODE,le],[Node.ELEMENT_NODE,We],[Node.ELEMENT_NODE,re],[Node.ELEMENT_NODE,ut],["li",Pe],["b",te.bind(te,"bold")],["i",te.bind(te,"italic")],["style",be]],O=[k.AlignAttribute,B.DirectionAttribute].reduce(function(ge,ve){return ge[ve.keyName]=ve,ge},{}),T=[k.AlignStyle,A.BackgroundStyle,C.ColorStyle,B.DirectionStyle,I.FontStyle,R.SizeStyle].reduce(function(ge,ve){return ge[ve.keyName]=ve,ge},{}),V=(function(ge){Y(ve,ge);function ve(Se,Oe){z(this,ve);var je=U(this,(ve.__proto__||Object.getPrototypeOf(ve)).call(this,Se,Oe));return je.quill.root.addEventListener("paste",je.onPaste.bind(je)),je.container=je.quill.addContainer("ql-clipboard"),je.container.setAttribute("contenteditable",!0),je.container.setAttribute("tabindex",-1),je.matchers=[],Q.concat(je.options.matchers).forEach(function(tt){var et=o(tt,2),rt=et[0],xe=et[1];!Oe.matchVisual&&xe===We||je.addMatcher(rt,xe)}),je}return c(ve,[{key:"addMatcher",value:function(Oe,je){this.matchers.push([Oe,je])}},{key:"convert",value:function(Oe){if(typeof Oe=="string")return this.container.innerHTML=Oe.replace(/\>\r?\n +\</g,"><"),this.convert();var je=this.quill.getFormat(this.quill.selection.savedRange.index);if(je[E.default.blotName]){var tt=this.container.innerText;return this.container.innerHTML="",new m.default().insert(tt,q({},E.default.blotName,je[E.default.blotName]))}var et=this.prepareMatching(),rt=o(et,2),xe=rt[0],_e=rt[1],De=G(this.container,xe,_e);return J(De,`
`)&&De.ops[De.ops.length-1].attributes==null&&(De=De.compose(new m.default().retain(De.length()-1).delete(1))),H.log("convert",this.container.innerHTML,De),this.container.innerHTML="",De}},{key:"dangerouslyPasteHTML",value:function(Oe,je){var tt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:j.default.sources.API;if(typeof Oe=="string")this.quill.setContents(this.convert(Oe),je),this.quill.setSelection(0,j.default.sources.SILENT);else{var et=this.convert(je);this.quill.updateContents(new m.default().retain(Oe).concat(et),tt),this.quill.setSelection(Oe+et.length(),j.default.sources.SILENT)}}},{key:"onPaste",value:function(Oe){var je=this;if(!(Oe.defaultPrevented||!this.quill.isEnabled())){var tt=this.quill.getSelection(),et=new m.default().retain(tt.index),rt=this.quill.scrollingContainer.scrollTop;this.container.focus(),this.quill.selection.update(j.default.sources.SILENT),setTimeout(function(){et=et.concat(je.convert()).delete(tt.length),je.quill.updateContents(et,j.default.sources.USER),je.quill.setSelection(et.length()-tt.length,j.default.sources.SILENT),je.quill.scrollingContainer.scrollTop=rt,je.quill.focus()},1)}}},{key:"prepareMatching",value:function(){var Oe=this,je=[],tt=[];return this.matchers.forEach(function(et){var rt=o(et,2),xe=rt[0],_e=rt[1];switch(xe){case Node.TEXT_NODE:tt.push(_e);break;case Node.ELEMENT_NODE:je.push(_e);break;default:[].forEach.call(Oe.container.querySelectorAll(xe),function(De){De[K]=De[K]||[],De[K].push(_e)});break}}),[je,tt]}}]),ve})(w.default);V.DEFAULTS={matchers:[],matchVisual:!0};function L(ge,ve,Se){return(typeof ve>"u"?"undefined":a(ve))==="object"?Object.keys(ve).reduce(function(Oe,je){return L(Oe,je,ve[je])},ge):ge.reduce(function(Oe,je){return je.attributes&&je.attributes[ve]?Oe.push(je):Oe.insert(je.insert,(0,f.default)({},q({},ve,Se),je.attributes))},new m.default)}function X(ge){if(ge.nodeType!==Node.ELEMENT_NODE)return{};var ve="__ql-computed-style";return ge[ve]||(ge[ve]=window.getComputedStyle(ge))}function J(ge,ve){for(var Se="",Oe=ge.ops.length-1;Oe>=0&&Se.length<ve.length;--Oe){var je=ge.ops[Oe];if(typeof je.insert!="string")break;Se=je.insert+Se}return Se.slice(-1*ve.length)===ve}function W(ge){if(ge.childNodes.length===0)return!1;var ve=X(ge);return["block","list-item"].indexOf(ve.display)>-1}function G(ge,ve,Se){return ge.nodeType===ge.TEXT_NODE?Se.reduce(function(Oe,je){return je(ge,Oe)},new m.default):ge.nodeType===ge.ELEMENT_NODE?[].reduce.call(ge.childNodes||[],function(Oe,je){var tt=G(je,ve,Se);return je.nodeType===ge.ELEMENT_NODE&&(tt=ve.reduce(function(et,rt){return rt(je,et)},tt),tt=(je[K]||[]).reduce(function(et,rt){return rt(je,et)},tt)),Oe.concat(tt)},new m.default):new m.default}function te(ge,ve,Se){return L(Se,ge,!0)}function re(ge,ve){var Se=g.default.Attributor.Attribute.keys(ge),Oe=g.default.Attributor.Class.keys(ge),je=g.default.Attributor.Style.keys(ge),tt={};return Se.concat(Oe).concat(je).forEach(function(et){var rt=g.default.query(et,g.default.Scope.ATTRIBUTE);rt!=null&&(tt[rt.attrName]=rt.value(ge),tt[rt.attrName])||(rt=O[et],rt!=null&&(rt.attrName===et||rt.keyName===et)&&(tt[rt.attrName]=rt.value(ge)||void 0),rt=T[et],rt!=null&&(rt.attrName===et||rt.keyName===et)&&(rt=T[et],tt[rt.attrName]=rt.value(ge)||void 0))}),Object.keys(tt).length>0&&(ve=L(ve,tt)),ve}function le(ge,ve){var Se=g.default.query(ge);if(Se==null)return ve;if(Se.prototype instanceof g.default.Embed){var Oe={},je=Se.value(ge);je!=null&&(Oe[Se.blotName]=je,ve=new m.default().insert(Oe,Se.formats(ge)))}else typeof Se.formats=="function"&&(ve=L(ve,Se.blotName,Se.formats(ge)));return ve}function ye(ge,ve){return J(ve,`
`)||ve.insert(`
`),ve}function be(){return new m.default}function Pe(ge,ve){var Se=g.default.query(ge);if(Se==null||Se.blotName!=="list-item"||!J(ve,`
`))return ve;for(var Oe=-1,je=ge.parentNode;!je.classList.contains("ql-clipboard");)(g.default.query(je)||{}).blotName==="list"&&(Oe+=1),je=je.parentNode;return Oe<=0?ve:ve.compose(new m.default().retain(ve.length()-1).retain(1,{indent:Oe}))}function Te(ge,ve){return J(ve,`
`)||(W(ge)||ve.length()>0&&ge.nextSibling&&W(ge.nextSibling))&&ve.insert(`
`),ve}function We(ge,ve){if(W(ge)&&ge.nextElementSibling!=null&&!J(ve,`

`)){var Se=ge.offsetHeight+parseFloat(X(ge).marginTop)+parseFloat(X(ge).marginBottom);ge.nextElementSibling.offsetTop>ge.offsetTop+Se*1.5&&ve.insert(`
`)}return ve}function ut(ge,ve){var Se={},Oe=ge.style||{};return Oe.fontStyle&&X(ge).fontStyle==="italic"&&(Se.italic=!0),Oe.fontWeight&&(X(ge).fontWeight.startsWith("bold")||parseInt(X(ge).fontWeight)>=700)&&(Se.bold=!0),Object.keys(Se).length>0&&(ve=L(ve,Se)),parseFloat(Oe.textIndent||0)>0&&(ve=new m.default().insert("	").concat(ve)),ve}function nt(ge,ve){var Se=ge.data;if(ge.parentNode.tagName==="O:P")return ve.insert(Se.trim());if(Se.trim().length===0&&ge.parentNode.classList.contains("ql-clipboard"))return ve;if(!X(ge.parentNode).whiteSpace.startsWith("pre")){var Oe=function(tt,et){return et=et.replace(/[^\u00a0]/g,""),et.length<1&&tt?" ":et};Se=Se.replace(/\r\n/g," ").replace(/\n/g," "),Se=Se.replace(/\s\s+/g,Oe.bind(Oe,!0)),(ge.previousSibling==null&&W(ge.parentNode)||ge.previousSibling!=null&&W(ge.previousSibling))&&(Se=Se.replace(/^\s+/,Oe.bind(Oe,!1))),(ge.nextSibling==null&&W(ge.parentNode)||ge.nextSibling!=null&&W(ge.nextSibling))&&(Se=Se.replace(/\s+$/,Oe.bind(Oe,!1)))}return ve.insert(Se)}i.default=V,i.matchAttributor=re,i.matchBlot=le,i.matchNewline=Te,i.matchSpacing=We,i.matchText=nt}),(function(r,i,s){Object.defineProperty(i,"__esModule",{value:!0});var a=(function(){function b(j,y){for(var x=0;x<y.length;x++){var N=y[x];N.enumerable=N.enumerable||!1,N.configurable=!0,"value"in N&&(N.writable=!0),Object.defineProperty(j,N.key,N)}}return function(j,y,x){return y&&b(j.prototype,y),x&&b(j,x),j}})(),o=function b(j,y,x){j===null&&(j=Function.prototype);var N=Object.getOwnPropertyDescriptor(j,y);if(N===void 0){var w=Object.getPrototypeOf(j);return w===null?void 0:b(w,y,x)}else{if("value"in N)return N.value;var k=N.get;return k===void 0?void 0:k.call(x)}},c=s(6),d=f(c);function f(b){return b&&b.__esModule?b:{default:b}}function h(b,j){if(!(b instanceof j))throw new TypeError("Cannot call a class as a function")}function m(b,j){if(!b)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return j&&(typeof j=="object"||typeof j=="function")?j:b}function p(b,j){if(typeof j!="function"&&j!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof j);b.prototype=Object.create(j&&j.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}}),j&&(Object.setPrototypeOf?Object.setPrototypeOf(b,j):b.__proto__=j)}var g=(function(b){p(j,b);function j(){return h(this,j),m(this,(j.__proto__||Object.getPrototypeOf(j)).apply(this,arguments))}return a(j,[{key:"optimize",value:function(x){o(j.prototype.__proto__||Object.getPrototypeOf(j.prototype),"optimize",this).call(this,x),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}],[{key:"create",value:function(){return o(j.__proto__||Object.getPrototypeOf(j),"create",this).call(this)}},{key:"formats",value:function(){return!0}}]),j})(d.default);g.blotName="bold",g.tagName=["STRONG","B"],i.default=g}),(function(r,i,s){Object.defineProperty(i,"__esModule",{value:!0}),i.addControls=i.default=void 0;var a=(function(){function R(D,q){var z=[],U=!0,Y=!1,H=void 0;try{for(var K=D[Symbol.iterator](),Q;!(U=(Q=K.next()).done)&&(z.push(Q.value),!(q&&z.length===q));U=!0);}catch(O){Y=!0,H=O}finally{try{!U&&K.return&&K.return()}finally{if(Y)throw H}}return z}return function(D,q){if(Array.isArray(D))return D;if(Symbol.iterator in Object(D))return R(D,q);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),o=(function(){function R(D,q){for(var z=0;z<q.length;z++){var U=q[z];U.enumerable=U.enumerable||!1,U.configurable=!0,"value"in U&&(U.writable=!0),Object.defineProperty(D,U.key,U)}}return function(D,q,z){return q&&R(D.prototype,q),z&&R(D,z),D}})(),c=s(2),d=x(c),f=s(0),h=x(f),m=s(5),p=x(m),g=s(10),b=x(g),j=s(9),y=x(j);function x(R){return R&&R.__esModule?R:{default:R}}function N(R,D,q){return D in R?Object.defineProperty(R,D,{value:q,enumerable:!0,configurable:!0,writable:!0}):R[D]=q,R}function w(R,D){if(!(R instanceof D))throw new TypeError("Cannot call a class as a function")}function k(R,D){if(!R)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return D&&(typeof D=="object"||typeof D=="function")?D:R}function A(R,D){if(typeof D!="function"&&D!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof D);R.prototype=Object.create(D&&D.prototype,{constructor:{value:R,enumerable:!1,writable:!0,configurable:!0}}),D&&(Object.setPrototypeOf?Object.setPrototypeOf(R,D):R.__proto__=D)}var S=(0,b.default)("quill:toolbar"),E=(function(R){A(D,R);function D(q,z){w(this,D);var U=k(this,(D.__proto__||Object.getPrototypeOf(D)).call(this,q,z));if(Array.isArray(U.options.container)){var Y=document.createElement("div");B(Y,U.options.container),q.container.parentNode.insertBefore(Y,q.container),U.container=Y}else typeof U.options.container=="string"?U.container=document.querySelector(U.options.container):U.container=U.options.container;if(!(U.container instanceof HTMLElement)){var H;return H=S.error("Container required for toolbar",U.options),k(U,H)}return U.container.classList.add("ql-toolbar"),U.controls=[],U.handlers={},Object.keys(U.options.handlers).forEach(function(K){U.addHandler(K,U.options.handlers[K])}),[].forEach.call(U.container.querySelectorAll("button, select"),function(K){U.attach(K)}),U.quill.on(p.default.events.EDITOR_CHANGE,function(K,Q){K===p.default.events.SELECTION_CHANGE&&U.update(Q)}),U.quill.on(p.default.events.SCROLL_OPTIMIZE,function(){var K=U.quill.selection.getRange(),Q=a(K,1),O=Q[0];U.update(O)}),U}return o(D,[{key:"addHandler",value:function(z,U){this.handlers[z]=U}},{key:"attach",value:function(z){var U=this,Y=[].find.call(z.classList,function(K){return K.indexOf("ql-")===0});if(Y){if(Y=Y.slice(3),z.tagName==="BUTTON"&&z.setAttribute("type","button"),this.handlers[Y]==null){if(this.quill.scroll.whitelist!=null&&this.quill.scroll.whitelist[Y]==null){S.warn("ignoring attaching to disabled format",Y,z);return}if(h.default.query(Y)==null){S.warn("ignoring attaching to nonexistent format",Y,z);return}}var H=z.tagName==="SELECT"?"change":"click";z.addEventListener(H,function(K){var Q=void 0;if(z.tagName==="SELECT"){if(z.selectedIndex<0)return;var O=z.options[z.selectedIndex];O.hasAttribute("selected")?Q=!1:Q=O.value||!1}else z.classList.contains("ql-active")?Q=!1:Q=z.value||!z.hasAttribute("value"),K.preventDefault();U.quill.focus();var T=U.quill.selection.getRange(),V=a(T,1),L=V[0];if(U.handlers[Y]!=null)U.handlers[Y].call(U,Q);else if(h.default.query(Y).prototype instanceof h.default.Embed){if(Q=prompt("Enter "+Y),!Q)return;U.quill.updateContents(new d.default().retain(L.index).delete(L.length).insert(N({},Y,Q)),p.default.sources.USER)}else U.quill.format(Y,Q,p.default.sources.USER);U.update(L)}),this.controls.push([Y,z])}}},{key:"update",value:function(z){var U=z==null?{}:this.quill.getFormat(z);this.controls.forEach(function(Y){var H=a(Y,2),K=H[0],Q=H[1];if(Q.tagName==="SELECT"){var O=void 0;if(z==null)O=null;else if(U[K]==null)O=Q.querySelector("option[selected]");else if(!Array.isArray(U[K])){var T=U[K];typeof T=="string"&&(T=T.replace(/\"/g,'\\"')),O=Q.querySelector('option[value="'+T+'"]')}O==null?(Q.value="",Q.selectedIndex=-1):O.selected=!0}else if(z==null)Q.classList.remove("ql-active");else if(Q.hasAttribute("value")){var V=U[K]===Q.getAttribute("value")||U[K]!=null&&U[K].toString()===Q.getAttribute("value")||U[K]==null&&!Q.getAttribute("value");Q.classList.toggle("ql-active",V)}else Q.classList.toggle("ql-active",U[K]!=null)})}}]),D})(y.default);E.DEFAULTS={};function C(R,D,q){var z=document.createElement("button");z.setAttribute("type","button"),z.classList.add("ql-"+D),q!=null&&(z.value=q),R.appendChild(z)}function B(R,D){Array.isArray(D[0])||(D=[D]),D.forEach(function(q){var z=document.createElement("span");z.classList.add("ql-formats"),q.forEach(function(U){if(typeof U=="string")C(z,U);else{var Y=Object.keys(U)[0],H=U[Y];Array.isArray(H)?I(z,Y,H):C(z,Y,H)}}),R.appendChild(z)})}function I(R,D,q){var z=document.createElement("select");z.classList.add("ql-"+D),q.forEach(function(U){var Y=document.createElement("option");U!==!1?Y.setAttribute("value",U):Y.setAttribute("selected","selected"),z.appendChild(Y)}),R.appendChild(z)}E.DEFAULTS={container:null,handlers:{clean:function(){var D=this,q=this.quill.getSelection();if(q!=null)if(q.length==0){var z=this.quill.getFormat();Object.keys(z).forEach(function(U){h.default.query(U,h.default.Scope.INLINE)!=null&&D.quill.format(U,!1)})}else this.quill.removeFormat(q,p.default.sources.USER)},direction:function(D){var q=this.quill.getFormat().align;D==="rtl"&&q==null?this.quill.format("align","right",p.default.sources.USER):!D&&q==="right"&&this.quill.format("align",!1,p.default.sources.USER),this.quill.format("direction",D,p.default.sources.USER)},indent:function(D){var q=this.quill.getSelection(),z=this.quill.getFormat(q),U=parseInt(z.indent||0);if(D==="+1"||D==="-1"){var Y=D==="+1"?1:-1;z.direction==="rtl"&&(Y*=-1),this.quill.format("indent",U+Y,p.default.sources.USER)}},link:function(D){D===!0&&(D=prompt("Enter link URL:")),this.quill.format("link",D,p.default.sources.USER)},list:function(D){var q=this.quill.getSelection(),z=this.quill.getFormat(q);D==="check"?z.list==="checked"||z.list==="unchecked"?this.quill.format("list",!1,p.default.sources.USER):this.quill.format("list","unchecked",p.default.sources.USER):this.quill.format("list",D,p.default.sources.USER)}}},i.default=E,i.addControls=B}),(function(r,i){r.exports='<svg viewbox="0 0 18 18"> <polyline class="ql-even ql-stroke" points="5 7 3 9 5 11"></polyline> <polyline class="ql-even ql-stroke" points="13 7 15 9 13 11"></polyline> <line class=ql-stroke x1=10 x2=8 y1=5 y2=13></line> </svg>'}),(function(r,i,s){Object.defineProperty(i,"__esModule",{value:!0});var a=(function(){function b(j,y){for(var x=0;x<y.length;x++){var N=y[x];N.enumerable=N.enumerable||!1,N.configurable=!0,"value"in N&&(N.writable=!0),Object.defineProperty(j,N.key,N)}}return function(j,y,x){return y&&b(j.prototype,y),x&&b(j,x),j}})(),o=function b(j,y,x){j===null&&(j=Function.prototype);var N=Object.getOwnPropertyDescriptor(j,y);if(N===void 0){var w=Object.getPrototypeOf(j);return w===null?void 0:b(w,y,x)}else{if("value"in N)return N.value;var k=N.get;return k===void 0?void 0:k.call(x)}},c=s(28),d=f(c);function f(b){return b&&b.__esModule?b:{default:b}}function h(b,j){if(!(b instanceof j))throw new TypeError("Cannot call a class as a function")}function m(b,j){if(!b)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return j&&(typeof j=="object"||typeof j=="function")?j:b}function p(b,j){if(typeof j!="function"&&j!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof j);b.prototype=Object.create(j&&j.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}}),j&&(Object.setPrototypeOf?Object.setPrototypeOf(b,j):b.__proto__=j)}var g=(function(b){p(j,b);function j(y,x){h(this,j);var N=m(this,(j.__proto__||Object.getPrototypeOf(j)).call(this,y));return N.label.innerHTML=x,N.container.classList.add("ql-color-picker"),[].slice.call(N.container.querySelectorAll(".ql-picker-item"),0,7).forEach(function(w){w.classList.add("ql-primary")}),N}return a(j,[{key:"buildItem",value:function(x){var N=o(j.prototype.__proto__||Object.getPrototypeOf(j.prototype),"buildItem",this).call(this,x);return N.style.backgroundColor=x.getAttribute("value")||"",N}},{key:"selectItem",value:function(x,N){o(j.prototype.__proto__||Object.getPrototypeOf(j.prototype),"selectItem",this).call(this,x,N);var w=this.label.querySelector(".ql-color-label"),k=x&&x.getAttribute("data-value")||"";w&&(w.tagName==="line"?w.style.stroke=k:w.style.fill=k)}}]),j})(d.default);i.default=g}),(function(r,i,s){Object.defineProperty(i,"__esModule",{value:!0});var a=(function(){function b(j,y){for(var x=0;x<y.length;x++){var N=y[x];N.enumerable=N.enumerable||!1,N.configurable=!0,"value"in N&&(N.writable=!0),Object.defineProperty(j,N.key,N)}}return function(j,y,x){return y&&b(j.prototype,y),x&&b(j,x),j}})(),o=function b(j,y,x){j===null&&(j=Function.prototype);var N=Object.getOwnPropertyDescriptor(j,y);if(N===void 0){var w=Object.getPrototypeOf(j);return w===null?void 0:b(w,y,x)}else{if("value"in N)return N.value;var k=N.get;return k===void 0?void 0:k.call(x)}},c=s(28),d=f(c);function f(b){return b&&b.__esModule?b:{default:b}}function h(b,j){if(!(b instanceof j))throw new TypeError("Cannot call a class as a function")}function m(b,j){if(!b)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return j&&(typeof j=="object"||typeof j=="function")?j:b}function p(b,j){if(typeof j!="function"&&j!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof j);b.prototype=Object.create(j&&j.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}}),j&&(Object.setPrototypeOf?Object.setPrototypeOf(b,j):b.__proto__=j)}var g=(function(b){p(j,b);function j(y,x){h(this,j);var N=m(this,(j.__proto__||Object.getPrototypeOf(j)).call(this,y));return N.container.classList.add("ql-icon-picker"),[].forEach.call(N.container.querySelectorAll(".ql-picker-item"),function(w){w.innerHTML=x[w.getAttribute("data-value")||""]}),N.defaultItem=N.container.querySelector(".ql-selected"),N.selectItem(N.defaultItem),N}return a(j,[{key:"selectItem",value:function(x,N){o(j.prototype.__proto__||Object.getPrototypeOf(j.prototype),"selectItem",this).call(this,x,N),x=x||this.defaultItem,this.label.innerHTML=x.innerHTML}}]),j})(d.default);i.default=g}),(function(r,i,s){Object.defineProperty(i,"__esModule",{value:!0});var a=(function(){function d(f,h){for(var m=0;m<h.length;m++){var p=h[m];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(f,p.key,p)}}return function(f,h,m){return h&&d(f.prototype,h),m&&d(f,m),f}})();function o(d,f){if(!(d instanceof f))throw new TypeError("Cannot call a class as a function")}var c=(function(){function d(f,h){var m=this;o(this,d),this.quill=f,this.boundsContainer=h||document.body,this.root=f.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,this.quill.root===this.quill.scrollingContainer&&this.quill.root.addEventListener("scroll",function(){m.root.style.marginTop=-1*m.quill.root.scrollTop+"px"}),this.hide()}return a(d,[{key:"hide",value:function(){this.root.classList.add("ql-hidden")}},{key:"position",value:function(h){var m=h.left+h.width/2-this.root.offsetWidth/2,p=h.bottom+this.quill.root.scrollTop;this.root.style.left=m+"px",this.root.style.top=p+"px",this.root.classList.remove("ql-flip");var g=this.boundsContainer.getBoundingClientRect(),b=this.root.getBoundingClientRect(),j=0;if(b.right>g.right&&(j=g.right-b.right,this.root.style.left=m+j+"px"),b.left<g.left&&(j=g.left-b.left,this.root.style.left=m+j+"px"),b.bottom>g.bottom){var y=b.bottom-b.top,x=h.bottom-h.top+y;this.root.style.top=p-x+"px",this.root.classList.add("ql-flip")}return j}},{key:"show",value:function(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}]),d})();i.default=c}),(function(r,i,s){Object.defineProperty(i,"__esModule",{value:!0});var a=(function(){function I(R,D){var q=[],z=!0,U=!1,Y=void 0;try{for(var H=R[Symbol.iterator](),K;!(z=(K=H.next()).done)&&(q.push(K.value),!(D&&q.length===D));z=!0);}catch(Q){U=!0,Y=Q}finally{try{!z&&H.return&&H.return()}finally{if(U)throw Y}}return q}return function(R,D){if(Array.isArray(R))return R;if(Symbol.iterator in Object(R))return I(R,D);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),o=function I(R,D,q){R===null&&(R=Function.prototype);var z=Object.getOwnPropertyDescriptor(R,D);if(z===void 0){var U=Object.getPrototypeOf(R);return U===null?void 0:I(U,D,q)}else{if("value"in z)return z.value;var Y=z.get;return Y===void 0?void 0:Y.call(q)}},c=(function(){function I(R,D){for(var q=0;q<D.length;q++){var z=D[q];z.enumerable=z.enumerable||!1,z.configurable=!0,"value"in z&&(z.writable=!0),Object.defineProperty(R,z.key,z)}}return function(R,D,q){return D&&I(R.prototype,D),q&&I(R,q),R}})(),d=s(3),f=w(d),h=s(8),m=w(h),p=s(43),g=w(p),b=s(27),j=w(b),y=s(15),x=s(41),N=w(x);function w(I){return I&&I.__esModule?I:{default:I}}function k(I,R){if(!(I instanceof R))throw new TypeError("Cannot call a class as a function")}function A(I,R){if(!I)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return R&&(typeof R=="object"||typeof R=="function")?R:I}function S(I,R){if(typeof R!="function"&&R!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof R);I.prototype=Object.create(R&&R.prototype,{constructor:{value:I,enumerable:!1,writable:!0,configurable:!0}}),R&&(Object.setPrototypeOf?Object.setPrototypeOf(I,R):I.__proto__=R)}var E=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]],C=(function(I){S(R,I);function R(D,q){k(this,R),q.modules.toolbar!=null&&q.modules.toolbar.container==null&&(q.modules.toolbar.container=E);var z=A(this,(R.__proto__||Object.getPrototypeOf(R)).call(this,D,q));return z.quill.container.classList.add("ql-snow"),z}return c(R,[{key:"extendToolbar",value:function(q){q.container.classList.add("ql-snow"),this.buildButtons([].slice.call(q.container.querySelectorAll("button")),N.default),this.buildPickers([].slice.call(q.container.querySelectorAll("select")),N.default),this.tooltip=new B(this.quill,this.options.bounds),q.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"K",shortKey:!0},function(z,U){q.handlers.link.call(q,!U.format.link)})}}]),R})(g.default);C.DEFAULTS=(0,f.default)(!0,{},g.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(R){if(R){var D=this.quill.getSelection();if(D==null||D.length==0)return;var q=this.quill.getText(D);/^\S+@\S+\.\S+$/.test(q)&&q.indexOf("mailto:")!==0&&(q="mailto:"+q);var z=this.quill.theme.tooltip;z.edit("link",q)}else this.quill.format("link",!1)}}}}});var B=(function(I){S(R,I);function R(D,q){k(this,R);var z=A(this,(R.__proto__||Object.getPrototypeOf(R)).call(this,D,q));return z.preview=z.root.querySelector("a.ql-preview"),z}return c(R,[{key:"listen",value:function(){var q=this;o(R.prototype.__proto__||Object.getPrototypeOf(R.prototype),"listen",this).call(this),this.root.querySelector("a.ql-action").addEventListener("click",function(z){q.root.classList.contains("ql-editing")?q.save():q.edit("link",q.preview.textContent),z.preventDefault()}),this.root.querySelector("a.ql-remove").addEventListener("click",function(z){if(q.linkRange!=null){var U=q.linkRange;q.restoreFocus(),q.quill.formatText(U,"link",!1,m.default.sources.USER),delete q.linkRange}z.preventDefault(),q.hide()}),this.quill.on(m.default.events.SELECTION_CHANGE,function(z,U,Y){if(z!=null){if(z.length===0&&Y===m.default.sources.USER){var H=q.quill.scroll.descendant(j.default,z.index),K=a(H,2),Q=K[0],O=K[1];if(Q!=null){q.linkRange=new y.Range(z.index-O,Q.length());var T=j.default.formats(Q.domNode);q.preview.textContent=T,q.preview.setAttribute("href",T),q.show(),q.position(q.quill.getBounds(q.linkRange));return}}else delete q.linkRange;q.hide()}})}},{key:"show",value:function(){o(R.prototype.__proto__||Object.getPrototypeOf(R.prototype),"show",this).call(this),this.root.removeAttribute("data-mode")}}]),R})(p.BaseTooltip);B.TEMPLATE=['<a class="ql-preview" rel="noopener noreferrer" target="_blank" href="about:blank"></a>','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-action"></a>','<a class="ql-remove"></a>'].join(""),i.default=C}),(function(r,i,s){Object.defineProperty(i,"__esModule",{value:!0});var a=s(29),o=je(a),c=s(36),d=s(38),f=s(64),h=s(65),m=je(h),p=s(66),g=je(p),b=s(67),j=je(b),y=s(37),x=s(26),N=s(39),w=s(40),k=s(56),A=je(k),S=s(68),E=je(S),C=s(27),B=je(C),I=s(69),R=je(I),D=s(70),q=je(D),z=s(71),U=je(z),Y=s(72),H=je(Y),K=s(73),Q=je(K),O=s(13),T=je(O),V=s(74),L=je(V),X=s(75),J=je(X),W=s(57),G=je(W),te=s(41),re=je(te),le=s(28),ye=je(le),be=s(59),Pe=je(be),Te=s(60),We=je(Te),ut=s(61),nt=je(ut),ge=s(108),ve=je(ge),Se=s(62),Oe=je(Se);function je(tt){return tt&&tt.__esModule?tt:{default:tt}}o.default.register({"attributors/attribute/direction":d.DirectionAttribute,"attributors/class/align":c.AlignClass,"attributors/class/background":y.BackgroundClass,"attributors/class/color":x.ColorClass,"attributors/class/direction":d.DirectionClass,"attributors/class/font":N.FontClass,"attributors/class/size":w.SizeClass,"attributors/style/align":c.AlignStyle,"attributors/style/background":y.BackgroundStyle,"attributors/style/color":x.ColorStyle,"attributors/style/direction":d.DirectionStyle,"attributors/style/font":N.FontStyle,"attributors/style/size":w.SizeStyle},!0),o.default.register({"formats/align":c.AlignClass,"formats/direction":d.DirectionClass,"formats/indent":f.IndentClass,"formats/background":y.BackgroundStyle,"formats/color":x.ColorStyle,"formats/font":N.FontClass,"formats/size":w.SizeClass,"formats/blockquote":m.default,"formats/code-block":T.default,"formats/header":g.default,"formats/list":j.default,"formats/bold":A.default,"formats/code":O.Code,"formats/italic":E.default,"formats/link":B.default,"formats/script":R.default,"formats/strike":q.default,"formats/underline":U.default,"formats/image":H.default,"formats/video":Q.default,"formats/list/item":b.ListItem,"modules/formula":L.default,"modules/syntax":J.default,"modules/toolbar":G.default,"themes/bubble":ve.default,"themes/snow":Oe.default,"ui/icons":re.default,"ui/picker":ye.default,"ui/icon-picker":We.default,"ui/color-picker":Pe.default,"ui/tooltip":nt.default},!0),i.default=o.default}),(function(r,i,s){Object.defineProperty(i,"__esModule",{value:!0}),i.IndentClass=void 0;var a=(function(){function j(y,x){for(var N=0;N<x.length;N++){var w=x[N];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(y,w.key,w)}}return function(y,x,N){return x&&j(y.prototype,x),N&&j(y,N),y}})(),o=function j(y,x,N){y===null&&(y=Function.prototype);var w=Object.getOwnPropertyDescriptor(y,x);if(w===void 0){var k=Object.getPrototypeOf(y);return k===null?void 0:j(k,x,N)}else{if("value"in w)return w.value;var A=w.get;return A===void 0?void 0:A.call(N)}},c=s(0),d=f(c);function f(j){return j&&j.__esModule?j:{default:j}}function h(j,y){if(!(j instanceof y))throw new TypeError("Cannot call a class as a function")}function m(j,y){if(!j)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return y&&(typeof y=="object"||typeof y=="function")?y:j}function p(j,y){if(typeof y!="function"&&y!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof y);j.prototype=Object.create(y&&y.prototype,{constructor:{value:j,enumerable:!1,writable:!0,configurable:!0}}),y&&(Object.setPrototypeOf?Object.setPrototypeOf(j,y):j.__proto__=y)}var g=(function(j){p(y,j);function y(){return h(this,y),m(this,(y.__proto__||Object.getPrototypeOf(y)).apply(this,arguments))}return a(y,[{key:"add",value:function(N,w){if(w==="+1"||w==="-1"){var k=this.value(N)||0;w=w==="+1"?k+1:k-1}return w===0?(this.remove(N),!0):o(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"add",this).call(this,N,w)}},{key:"canAdd",value:function(N,w){return o(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"canAdd",this).call(this,N,w)||o(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"canAdd",this).call(this,N,parseInt(w))}},{key:"value",value:function(N){return parseInt(o(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"value",this).call(this,N))||void 0}}]),y})(d.default.Attributor.Class),b=new g("indent","ql-indent",{scope:d.default.Scope.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});i.IndentClass=b}),(function(r,i,s){Object.defineProperty(i,"__esModule",{value:!0});var a=s(4),o=c(a);function c(p){return p&&p.__esModule?p:{default:p}}function d(p,g){if(!(p instanceof g))throw new TypeError("Cannot call a class as a function")}function f(p,g){if(!p)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g&&(typeof g=="object"||typeof g=="function")?g:p}function h(p,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof g);p.prototype=Object.create(g&&g.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(p,g):p.__proto__=g)}var m=(function(p){h(g,p);function g(){return d(this,g),f(this,(g.__proto__||Object.getPrototypeOf(g)).apply(this,arguments))}return g})(o.default);m.blotName="blockquote",m.tagName="blockquote",i.default=m}),(function(r,i,s){Object.defineProperty(i,"__esModule",{value:!0});var a=(function(){function g(b,j){for(var y=0;y<j.length;y++){var x=j[y];x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),Object.defineProperty(b,x.key,x)}}return function(b,j,y){return j&&g(b.prototype,j),y&&g(b,y),b}})(),o=s(4),c=d(o);function d(g){return g&&g.__esModule?g:{default:g}}function f(g,b){if(!(g instanceof b))throw new TypeError("Cannot call a class as a function")}function h(g,b){if(!g)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return b&&(typeof b=="object"||typeof b=="function")?b:g}function m(g,b){if(typeof b!="function"&&b!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof b);g.prototype=Object.create(b&&b.prototype,{constructor:{value:g,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(g,b):g.__proto__=b)}var p=(function(g){m(b,g);function b(){return f(this,b),h(this,(b.__proto__||Object.getPrototypeOf(b)).apply(this,arguments))}return a(b,null,[{key:"formats",value:function(y){return this.tagName.indexOf(y.tagName)+1}}]),b})(c.default);p.blotName="header",p.tagName=["H1","H2","H3","H4","H5","H6"],i.default=p}),(function(r,i,s){Object.defineProperty(i,"__esModule",{value:!0}),i.default=i.ListItem=void 0;var a=(function(){function k(A,S){for(var E=0;E<S.length;E++){var C=S[E];C.enumerable=C.enumerable||!1,C.configurable=!0,"value"in C&&(C.writable=!0),Object.defineProperty(A,C.key,C)}}return function(A,S,E){return S&&k(A.prototype,S),E&&k(A,E),A}})(),o=function k(A,S,E){A===null&&(A=Function.prototype);var C=Object.getOwnPropertyDescriptor(A,S);if(C===void 0){var B=Object.getPrototypeOf(A);return B===null?void 0:k(B,S,E)}else{if("value"in C)return C.value;var I=C.get;return I===void 0?void 0:I.call(E)}},c=s(0),d=g(c),f=s(4),h=g(f),m=s(25),p=g(m);function g(k){return k&&k.__esModule?k:{default:k}}function b(k,A,S){return A in k?Object.defineProperty(k,A,{value:S,enumerable:!0,configurable:!0,writable:!0}):k[A]=S,k}function j(k,A){if(!(k instanceof A))throw new TypeError("Cannot call a class as a function")}function y(k,A){if(!k)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return A&&(typeof A=="object"||typeof A=="function")?A:k}function x(k,A){if(typeof A!="function"&&A!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof A);k.prototype=Object.create(A&&A.prototype,{constructor:{value:k,enumerable:!1,writable:!0,configurable:!0}}),A&&(Object.setPrototypeOf?Object.setPrototypeOf(k,A):k.__proto__=A)}var N=(function(k){x(A,k);function A(){return j(this,A),y(this,(A.__proto__||Object.getPrototypeOf(A)).apply(this,arguments))}return a(A,[{key:"format",value:function(E,C){E===w.blotName&&!C?this.replaceWith(d.default.create(this.statics.scope)):o(A.prototype.__proto__||Object.getPrototypeOf(A.prototype),"format",this).call(this,E,C)}},{key:"remove",value:function(){this.prev==null&&this.next==null?this.parent.remove():o(A.prototype.__proto__||Object.getPrototypeOf(A.prototype),"remove",this).call(this)}},{key:"replaceWith",value:function(E,C){return this.parent.isolate(this.offset(this.parent),this.length()),E===this.parent.statics.blotName?(this.parent.replaceWith(E,C),this):(this.parent.unwrap(),o(A.prototype.__proto__||Object.getPrototypeOf(A.prototype),"replaceWith",this).call(this,E,C))}}],[{key:"formats",value:function(E){return E.tagName===this.tagName?void 0:o(A.__proto__||Object.getPrototypeOf(A),"formats",this).call(this,E)}}]),A})(h.default);N.blotName="list-item",N.tagName="LI";var w=(function(k){x(A,k),a(A,null,[{key:"create",value:function(E){var C=E==="ordered"?"OL":"UL",B=o(A.__proto__||Object.getPrototypeOf(A),"create",this).call(this,C);return(E==="checked"||E==="unchecked")&&B.setAttribute("data-checked",E==="checked"),B}},{key:"formats",value:function(E){if(E.tagName==="OL")return"ordered";if(E.tagName==="UL")return E.hasAttribute("data-checked")?E.getAttribute("data-checked")==="true"?"checked":"unchecked":"bullet"}}]);function A(S){j(this,A);var E=y(this,(A.__proto__||Object.getPrototypeOf(A)).call(this,S)),C=function(I){if(I.target.parentNode===S){var R=E.statics.formats(S),D=d.default.find(I.target);R==="checked"?D.format("list","unchecked"):R==="unchecked"&&D.format("list","checked")}};return S.addEventListener("touchstart",C),S.addEventListener("mousedown",C),E}return a(A,[{key:"format",value:function(E,C){this.children.length>0&&this.children.tail.format(E,C)}},{key:"formats",value:function(){return b({},this.statics.blotName,this.statics.formats(this.domNode))}},{key:"insertBefore",value:function(E,C){if(E instanceof N)o(A.prototype.__proto__||Object.getPrototypeOf(A.prototype),"insertBefore",this).call(this,E,C);else{var B=C==null?this.length():C.offset(this),I=this.split(B);I.parent.insertBefore(E,I)}}},{key:"optimize",value:function(E){o(A.prototype.__proto__||Object.getPrototypeOf(A.prototype),"optimize",this).call(this,E);var C=this.next;C!=null&&C.prev===this&&C.statics.blotName===this.statics.blotName&&C.domNode.tagName===this.domNode.tagName&&C.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(C.moveChildren(this),C.remove())}},{key:"replace",value:function(E){if(E.statics.blotName!==this.statics.blotName){var C=d.default.create(this.statics.defaultChild);E.moveChildren(C),this.appendChild(C)}o(A.prototype.__proto__||Object.getPrototypeOf(A.prototype),"replace",this).call(this,E)}}]),A})(p.default);w.blotName="list",w.scope=d.default.Scope.BLOCK_BLOT,w.tagName=["OL","UL"],w.defaultChild="list-item",w.allowedChildren=[N],i.ListItem=N,i.default=w}),(function(r,i,s){Object.defineProperty(i,"__esModule",{value:!0});var a=s(56),o=c(a);function c(p){return p&&p.__esModule?p:{default:p}}function d(p,g){if(!(p instanceof g))throw new TypeError("Cannot call a class as a function")}function f(p,g){if(!p)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g&&(typeof g=="object"||typeof g=="function")?g:p}function h(p,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof g);p.prototype=Object.create(g&&g.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(p,g):p.__proto__=g)}var m=(function(p){h(g,p);function g(){return d(this,g),f(this,(g.__proto__||Object.getPrototypeOf(g)).apply(this,arguments))}return g})(o.default);m.blotName="italic",m.tagName=["EM","I"],i.default=m}),(function(r,i,s){Object.defineProperty(i,"__esModule",{value:!0});var a=(function(){function b(j,y){for(var x=0;x<y.length;x++){var N=y[x];N.enumerable=N.enumerable||!1,N.configurable=!0,"value"in N&&(N.writable=!0),Object.defineProperty(j,N.key,N)}}return function(j,y,x){return y&&b(j.prototype,y),x&&b(j,x),j}})(),o=function b(j,y,x){j===null&&(j=Function.prototype);var N=Object.getOwnPropertyDescriptor(j,y);if(N===void 0){var w=Object.getPrototypeOf(j);return w===null?void 0:b(w,y,x)}else{if("value"in N)return N.value;var k=N.get;return k===void 0?void 0:k.call(x)}},c=s(6),d=f(c);function f(b){return b&&b.__esModule?b:{default:b}}function h(b,j){if(!(b instanceof j))throw new TypeError("Cannot call a class as a function")}function m(b,j){if(!b)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return j&&(typeof j=="object"||typeof j=="function")?j:b}function p(b,j){if(typeof j!="function"&&j!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof j);b.prototype=Object.create(j&&j.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}}),j&&(Object.setPrototypeOf?Object.setPrototypeOf(b,j):b.__proto__=j)}var g=(function(b){p(j,b);function j(){return h(this,j),m(this,(j.__proto__||Object.getPrototypeOf(j)).apply(this,arguments))}return a(j,null,[{key:"create",value:function(x){return x==="super"?document.createElement("sup"):x==="sub"?document.createElement("sub"):o(j.__proto__||Object.getPrototypeOf(j),"create",this).call(this,x)}},{key:"formats",value:function(x){if(x.tagName==="SUB")return"sub";if(x.tagName==="SUP")return"super"}}]),j})(d.default);g.blotName="script",g.tagName=["SUB","SUP"],i.default=g}),(function(r,i,s){Object.defineProperty(i,"__esModule",{value:!0});var a=s(6),o=c(a);function c(p){return p&&p.__esModule?p:{default:p}}function d(p,g){if(!(p instanceof g))throw new TypeError("Cannot call a class as a function")}function f(p,g){if(!p)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g&&(typeof g=="object"||typeof g=="function")?g:p}function h(p,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof g);p.prototype=Object.create(g&&g.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(p,g):p.__proto__=g)}var m=(function(p){h(g,p);function g(){return d(this,g),f(this,(g.__proto__||Object.getPrototypeOf(g)).apply(this,arguments))}return g})(o.default);m.blotName="strike",m.tagName="S",i.default=m}),(function(r,i,s){Object.defineProperty(i,"__esModule",{value:!0});var a=s(6),o=c(a);function c(p){return p&&p.__esModule?p:{default:p}}function d(p,g){if(!(p instanceof g))throw new TypeError("Cannot call a class as a function")}function f(p,g){if(!p)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g&&(typeof g=="object"||typeof g=="function")?g:p}function h(p,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof g);p.prototype=Object.create(g&&g.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(p,g):p.__proto__=g)}var m=(function(p){h(g,p);function g(){return d(this,g),f(this,(g.__proto__||Object.getPrototypeOf(g)).apply(this,arguments))}return g})(o.default);m.blotName="underline",m.tagName="U",i.default=m}),(function(r,i,s){Object.defineProperty(i,"__esModule",{value:!0});var a=(function(){function y(x,N){for(var w=0;w<N.length;w++){var k=N[w];k.enumerable=k.enumerable||!1,k.configurable=!0,"value"in k&&(k.writable=!0),Object.defineProperty(x,k.key,k)}}return function(x,N,w){return N&&y(x.prototype,N),w&&y(x,w),x}})(),o=function y(x,N,w){x===null&&(x=Function.prototype);var k=Object.getOwnPropertyDescriptor(x,N);if(k===void 0){var A=Object.getPrototypeOf(x);return A===null?void 0:y(A,N,w)}else{if("value"in k)return k.value;var S=k.get;return S===void 0?void 0:S.call(w)}},c=s(0),d=h(c),f=s(27);function h(y){return y&&y.__esModule?y:{default:y}}function m(y,x){if(!(y instanceof x))throw new TypeError("Cannot call a class as a function")}function p(y,x){if(!y)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return x&&(typeof x=="object"||typeof x=="function")?x:y}function g(y,x){if(typeof x!="function"&&x!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof x);y.prototype=Object.create(x&&x.prototype,{constructor:{value:y,enumerable:!1,writable:!0,configurable:!0}}),x&&(Object.setPrototypeOf?Object.setPrototypeOf(y,x):y.__proto__=x)}var b=["alt","height","width"],j=(function(y){g(x,y);function x(){return m(this,x),p(this,(x.__proto__||Object.getPrototypeOf(x)).apply(this,arguments))}return a(x,[{key:"format",value:function(w,k){b.indexOf(w)>-1?k?this.domNode.setAttribute(w,k):this.domNode.removeAttribute(w):o(x.prototype.__proto__||Object.getPrototypeOf(x.prototype),"format",this).call(this,w,k)}}],[{key:"create",value:function(w){var k=o(x.__proto__||Object.getPrototypeOf(x),"create",this).call(this,w);return typeof w=="string"&&k.setAttribute("src",this.sanitize(w)),k}},{key:"formats",value:function(w){return b.reduce(function(k,A){return w.hasAttribute(A)&&(k[A]=w.getAttribute(A)),k},{})}},{key:"match",value:function(w){return/\.(jpe?g|gif|png)$/.test(w)||/^data:image\/.+;base64/.test(w)}},{key:"sanitize",value:function(w){return(0,f.sanitize)(w,["http","https","data"])?w:"//:0"}},{key:"value",value:function(w){return w.getAttribute("src")}}]),x})(d.default.Embed);j.blotName="image",j.tagName="IMG",i.default=j}),(function(r,i,s){Object.defineProperty(i,"__esModule",{value:!0});var a=(function(){function y(x,N){for(var w=0;w<N.length;w++){var k=N[w];k.enumerable=k.enumerable||!1,k.configurable=!0,"value"in k&&(k.writable=!0),Object.defineProperty(x,k.key,k)}}return function(x,N,w){return N&&y(x.prototype,N),w&&y(x,w),x}})(),o=function y(x,N,w){x===null&&(x=Function.prototype);var k=Object.getOwnPropertyDescriptor(x,N);if(k===void 0){var A=Object.getPrototypeOf(x);return A===null?void 0:y(A,N,w)}else{if("value"in k)return k.value;var S=k.get;return S===void 0?void 0:S.call(w)}},c=s(4),d=s(27),f=h(d);function h(y){return y&&y.__esModule?y:{default:y}}function m(y,x){if(!(y instanceof x))throw new TypeError("Cannot call a class as a function")}function p(y,x){if(!y)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return x&&(typeof x=="object"||typeof x=="function")?x:y}function g(y,x){if(typeof x!="function"&&x!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof x);y.prototype=Object.create(x&&x.prototype,{constructor:{value:y,enumerable:!1,writable:!0,configurable:!0}}),x&&(Object.setPrototypeOf?Object.setPrototypeOf(y,x):y.__proto__=x)}var b=["height","width"],j=(function(y){g(x,y);function x(){return m(this,x),p(this,(x.__proto__||Object.getPrototypeOf(x)).apply(this,arguments))}return a(x,[{key:"format",value:function(w,k){b.indexOf(w)>-1?k?this.domNode.setAttribute(w,k):this.domNode.removeAttribute(w):o(x.prototype.__proto__||Object.getPrototypeOf(x.prototype),"format",this).call(this,w,k)}}],[{key:"create",value:function(w){var k=o(x.__proto__||Object.getPrototypeOf(x),"create",this).call(this,w);return k.setAttribute("frameborder","0"),k.setAttribute("allowfullscreen",!0),k.setAttribute("src",this.sanitize(w)),k}},{key:"formats",value:function(w){return b.reduce(function(k,A){return w.hasAttribute(A)&&(k[A]=w.getAttribute(A)),k},{})}},{key:"sanitize",value:function(w){return f.default.sanitize(w)}},{key:"value",value:function(w){return w.getAttribute("src")}}]),x})(c.BlockEmbed);j.blotName="video",j.className="ql-video",j.tagName="IFRAME",i.default=j}),(function(r,i,s){Object.defineProperty(i,"__esModule",{value:!0}),i.default=i.FormulaBlot=void 0;var a=(function(){function w(k,A){for(var S=0;S<A.length;S++){var E=A[S];E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),Object.defineProperty(k,E.key,E)}}return function(k,A,S){return A&&w(k.prototype,A),S&&w(k,S),k}})(),o=function w(k,A,S){k===null&&(k=Function.prototype);var E=Object.getOwnPropertyDescriptor(k,A);if(E===void 0){var C=Object.getPrototypeOf(k);return C===null?void 0:w(C,A,S)}else{if("value"in E)return E.value;var B=E.get;return B===void 0?void 0:B.call(S)}},c=s(35),d=g(c),f=s(5),h=g(f),m=s(9),p=g(m);function g(w){return w&&w.__esModule?w:{default:w}}function b(w,k){if(!(w instanceof k))throw new TypeError("Cannot call a class as a function")}function j(w,k){if(!w)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return k&&(typeof k=="object"||typeof k=="function")?k:w}function y(w,k){if(typeof k!="function"&&k!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof k);w.prototype=Object.create(k&&k.prototype,{constructor:{value:w,enumerable:!1,writable:!0,configurable:!0}}),k&&(Object.setPrototypeOf?Object.setPrototypeOf(w,k):w.__proto__=k)}var x=(function(w){y(k,w);function k(){return b(this,k),j(this,(k.__proto__||Object.getPrototypeOf(k)).apply(this,arguments))}return a(k,null,[{key:"create",value:function(S){var E=o(k.__proto__||Object.getPrototypeOf(k),"create",this).call(this,S);return typeof S=="string"&&(window.katex.render(S,E,{throwOnError:!1,errorColor:"#f00"}),E.setAttribute("data-value",S)),E}},{key:"value",value:function(S){return S.getAttribute("data-value")}}]),k})(d.default);x.blotName="formula",x.className="ql-formula",x.tagName="SPAN";var N=(function(w){y(k,w),a(k,null,[{key:"register",value:function(){h.default.register(x,!0)}}]);function k(){b(this,k);var A=j(this,(k.__proto__||Object.getPrototypeOf(k)).call(this));if(window.katex==null)throw new Error("Formula module requires KaTeX.");return A}return k})(p.default);i.FormulaBlot=x,i.default=N}),(function(r,i,s){Object.defineProperty(i,"__esModule",{value:!0}),i.default=i.CodeToken=i.CodeBlock=void 0;var a=(function(){function S(E,C){for(var B=0;B<C.length;B++){var I=C[B];I.enumerable=I.enumerable||!1,I.configurable=!0,"value"in I&&(I.writable=!0),Object.defineProperty(E,I.key,I)}}return function(E,C,B){return C&&S(E.prototype,C),B&&S(E,B),E}})(),o=function S(E,C,B){E===null&&(E=Function.prototype);var I=Object.getOwnPropertyDescriptor(E,C);if(I===void 0){var R=Object.getPrototypeOf(E);return R===null?void 0:S(R,C,B)}else{if("value"in I)return I.value;var D=I.get;return D===void 0?void 0:D.call(B)}},c=s(0),d=j(c),f=s(5),h=j(f),m=s(9),p=j(m),g=s(13),b=j(g);function j(S){return S&&S.__esModule?S:{default:S}}function y(S,E){if(!(S instanceof E))throw new TypeError("Cannot call a class as a function")}function x(S,E){if(!S)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return E&&(typeof E=="object"||typeof E=="function")?E:S}function N(S,E){if(typeof E!="function"&&E!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof E);S.prototype=Object.create(E&&E.prototype,{constructor:{value:S,enumerable:!1,writable:!0,configurable:!0}}),E&&(Object.setPrototypeOf?Object.setPrototypeOf(S,E):S.__proto__=E)}var w=(function(S){N(E,S);function E(){return y(this,E),x(this,(E.__proto__||Object.getPrototypeOf(E)).apply(this,arguments))}return a(E,[{key:"replaceWith",value:function(B){this.domNode.textContent=this.domNode.textContent,this.attach(),o(E.prototype.__proto__||Object.getPrototypeOf(E.prototype),"replaceWith",this).call(this,B)}},{key:"highlight",value:function(B){var I=this.domNode.textContent;this.cachedText!==I&&((I.trim().length>0||this.cachedText==null)&&(this.domNode.innerHTML=B(I),this.domNode.normalize(),this.attach()),this.cachedText=I)}}]),E})(b.default);w.className="ql-syntax";var k=new d.default.Attributor.Class("token","hljs",{scope:d.default.Scope.INLINE}),A=(function(S){N(E,S),a(E,null,[{key:"register",value:function(){h.default.register(k,!0),h.default.register(w,!0)}}]);function E(C,B){y(this,E);var I=x(this,(E.__proto__||Object.getPrototypeOf(E)).call(this,C,B));if(typeof I.options.highlight!="function")throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");var R=null;return I.quill.on(h.default.events.SCROLL_OPTIMIZE,function(){clearTimeout(R),R=setTimeout(function(){I.highlight(),R=null},I.options.interval)}),I.highlight(),I}return a(E,[{key:"highlight",value:function(){var B=this;if(!this.quill.selection.composing){this.quill.update(h.default.sources.USER);var I=this.quill.getSelection();this.quill.scroll.descendants(w).forEach(function(R){R.highlight(B.options.highlight)}),this.quill.update(h.default.sources.SILENT),I!=null&&this.quill.setSelection(I,h.default.sources.SILENT)}}}]),E})(p.default);A.DEFAULTS={highlight:(function(){return window.hljs==null?null:function(S){var E=window.hljs.highlightAuto(S);return E.value}})(),interval:1e3},i.CodeBlock=w,i.CodeToken=k,i.default=A}),(function(r,i){r.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=13 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=9 y1=4 y2=4></line> </svg>'}),(function(r,i){r.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=14 x2=4 y1=14 y2=14></line> <line class=ql-stroke x1=12 x2=6 y1=4 y2=4></line> </svg>'}),(function(r,i){r.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=5 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=9 y1=4 y2=4></line> </svg>'}),(function(r,i){r.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=3 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=3 y1=4 y2=4></line> </svg>'}),(function(r,i){r.exports='<svg viewbox="0 0 18 18"> <g class="ql-fill ql-color-label"> <polygon points="6 6.868 6 6 5 6 5 7 5.942 7 6 6.868"></polygon> <rect height=1 width=1 x=4 y=4></rect> <polygon points="6.817 5 6 5 6 6 6.38 6 6.817 5"></polygon> <rect height=1 width=1 x=2 y=6></rect> <rect height=1 width=1 x=3 y=5></rect> <rect height=1 width=1 x=4 y=7></rect> <polygon points="4 11.439 4 11 3 11 3 12 3.755 12 4 11.439"></polygon> <rect height=1 width=1 x=2 y=12></rect> <rect height=1 width=1 x=2 y=9></rect> <rect height=1 width=1 x=2 y=15></rect> <polygon points="4.63 10 4 10 4 11 4.192 11 4.63 10"></polygon> <rect height=1 width=1 x=3 y=8></rect> <path d=M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z></path> <path d=M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z></path> <path d=M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z></path> <rect height=1 width=1 x=12 y=2></rect> <rect height=1 width=1 x=11 y=3></rect> <path d=M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z></path> <rect height=1 width=1 x=2 y=3></rect> <rect height=1 width=1 x=6 y=2></rect> <rect height=1 width=1 x=3 y=2></rect> <rect height=1 width=1 x=5 y=3></rect> <rect height=1 width=1 x=9 y=2></rect> <rect height=1 width=1 x=15 y=14></rect> <polygon points="13.447 10.174 13.469 10.225 13.472 10.232 13.808 11 14 11 14 10 13.37 10 13.447 10.174"></polygon> <rect height=1 width=1 x=13 y=7></rect> <rect height=1 width=1 x=15 y=5></rect> <rect height=1 width=1 x=14 y=6></rect> <rect height=1 width=1 x=15 y=8></rect> <rect height=1 width=1 x=14 y=9></rect> <path d=M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z></path> <rect height=1 width=1 x=14 y=3></rect> <polygon points="12 6.868 12 6 11.62 6 12 6.868"></polygon> <rect height=1 width=1 x=15 y=2></rect> <rect height=1 width=1 x=12 y=5></rect> <rect height=1 width=1 x=13 y=4></rect> <polygon points="12.933 9 13 9 13 8 12.495 8 12.933 9"></polygon> <rect height=1 width=1 x=9 y=14></rect> <rect height=1 width=1 x=8 y=15></rect> <path d=M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z></path> <rect height=1 width=1 x=5 y=15></rect> <path d=M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z></path> <rect height=1 width=1 x=11 y=15></rect> <path d=M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z></path> <rect height=1 width=1 x=14 y=15></rect> <rect height=1 width=1 x=15 y=11></rect> </g> <polyline class=ql-stroke points="5.5 13 9 5 12.5 13"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=11 y2=11></line> </svg>'}),(function(r,i){r.exports='<svg viewbox="0 0 18 18"> <rect class="ql-fill ql-stroke" height=3 width=3 x=4 y=5></rect> <rect class="ql-fill ql-stroke" height=3 width=3 x=11 y=5></rect> <path class="ql-even ql-fill ql-stroke" d=M7,8c0,4.031-3,5-3,5></path> <path class="ql-even ql-fill ql-stroke" d=M14,8c0,4.031-3,5-3,5></path> </svg>'}),(function(r,i){r.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,4H9.5A2.5,2.5,0,0,1,12,6.5v0A2.5,2.5,0,0,1,9.5,9H5A0,0,0,0,1,5,9V4A0,0,0,0,1,5,4Z></path> <path class=ql-stroke d=M5,9h5.5A2.5,2.5,0,0,1,13,11.5v0A2.5,2.5,0,0,1,10.5,14H5a0,0,0,0,1,0,0V9A0,0,0,0,1,5,9Z></path> </svg>'}),(function(r,i){r.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=5 x2=13 y1=3 y2=3></line> <line class=ql-stroke x1=6 x2=9.35 y1=12 y2=3></line> <line class=ql-stroke x1=11 x2=15 y1=11 y2=15></line> <line class=ql-stroke x1=15 x2=11 y1=11 y2=15></line> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=7 x=2 y=14></rect> </svg>'}),(function(r,i){r.exports='<svg viewbox="0 0 18 18"> <line class="ql-color-label ql-stroke ql-transparent" x1=3 x2=15 y1=15 y2=15></line> <polyline class=ql-stroke points="5.5 11 9 3 12.5 11"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=9 y2=9></line> </svg>'}),(function(r,i){r.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="3 11 5 9 3 7 3 11"></polygon> <line class="ql-stroke ql-fill" x1=15 x2=11 y1=4 y2=4></line> <path class=ql-fill d=M11,3a3,3,0,0,0,0,6h1V3H11Z></path> <rect class=ql-fill height=11 width=1 x=11 y=4></rect> <rect class=ql-fill height=11 width=1 x=13 y=4></rect> </svg>'}),(function(r,i){r.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="15 12 13 10 15 8 15 12"></polygon> <line class="ql-stroke ql-fill" x1=9 x2=5 y1=4 y2=4></line> <path class=ql-fill d=M5,3A3,3,0,0,0,5,9H6V3H5Z></path> <rect class=ql-fill height=11 width=1 x=5 y=4></rect> <rect class=ql-fill height=11 width=1 x=7 y=4></rect> </svg>'}),(function(r,i){r.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M14,16H4a1,1,0,0,1,0-2H14A1,1,0,0,1,14,16Z /> <path class=ql-fill d=M14,4H4A1,1,0,0,1,4,2H14A1,1,0,0,1,14,4Z /> <rect class=ql-fill x=3 y=6 width=12 height=6 rx=1 ry=1 /> </svg>'}),(function(r,i){r.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M13,16H5a1,1,0,0,1,0-2h8A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H5A1,1,0,0,1,5,2h8A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=2 y=6 width=14 height=6 rx=1 ry=1 /> </svg>'}),(function(r,i){r.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15,8H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,8Z /> <path class=ql-fill d=M15,12H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,12Z /> <path class=ql-fill d=M15,16H5a1,1,0,0,1,0-2H15A1,1,0,0,1,15,16Z /> <path class=ql-fill d=M15,4H5A1,1,0,0,1,5,2H15A1,1,0,0,1,15,4Z /> <rect class=ql-fill x=2 y=6 width=8 height=6 rx=1 ry=1 /> </svg>'}),(function(r,i){r.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M5,8H3A1,1,0,0,1,3,6H5A1,1,0,0,1,5,8Z /> <path class=ql-fill d=M5,12H3a1,1,0,0,1,0-2H5A1,1,0,0,1,5,12Z /> <path class=ql-fill d=M13,16H3a1,1,0,0,1,0-2H13A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H3A1,1,0,0,1,3,2H13A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=8 y=6 width=8 height=6 rx=1 ry=1 transform="translate(24 18) rotate(-180)"/> </svg>'}),(function(r,i){r.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M11.759,2.482a2.561,2.561,0,0,0-3.53.607A7.656,7.656,0,0,0,6.8,6.2C6.109,9.188,5.275,14.677,4.15,14.927a1.545,1.545,0,0,0-1.3-.933A0.922,0.922,0,0,0,2,15.036S1.954,16,4.119,16s3.091-2.691,3.7-5.553c0.177-.826.36-1.726,0.554-2.6L8.775,6.2c0.381-1.421.807-2.521,1.306-2.676a1.014,1.014,0,0,0,1.02.56A0.966,0.966,0,0,0,11.759,2.482Z></path> <rect class=ql-fill height=1.6 rx=0.8 ry=0.8 width=5 x=5.15 y=6.2></rect> <path class=ql-fill d=M13.663,12.027a1.662,1.662,0,0,1,.266-0.276q0.193,0.069.456,0.138a2.1,2.1,0,0,0,.535.069,1.075,1.075,0,0,0,.767-0.3,1.044,1.044,0,0,0,.314-0.8,0.84,0.84,0,0,0-.238-0.619,0.8,0.8,0,0,0-.594-0.239,1.154,1.154,0,0,0-.781.3,4.607,4.607,0,0,0-.781,1q-0.091.15-.218,0.346l-0.246.38c-0.068-.288-0.137-0.582-0.212-0.885-0.459-1.847-2.494-.984-2.941-0.8-0.482.2-.353,0.647-0.094,0.529a0.869,0.869,0,0,1,1.281.585c0.217,0.751.377,1.436,0.527,2.038a5.688,5.688,0,0,1-.362.467,2.69,2.69,0,0,1-.264.271q-0.221-.08-0.471-0.147a2.029,2.029,0,0,0-.522-0.066,1.079,1.079,0,0,0-.768.3A1.058,1.058,0,0,0,9,15.131a0.82,0.82,0,0,0,.832.852,1.134,1.134,0,0,0,.787-0.3,5.11,5.11,0,0,0,.776-0.993q0.141-.219.215-0.34c0.046-.076.122-0.194,0.223-0.346a2.786,2.786,0,0,0,.918,1.726,2.582,2.582,0,0,0,2.376-.185c0.317-.181.212-0.565,0-0.494A0.807,0.807,0,0,1,14.176,15a5.159,5.159,0,0,1-.913-2.446l0,0Q13.487,12.24,13.663,12.027Z></path> </svg>'}),(function(r,i){r.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm6.06787,9.209H14.98975V7.59863a.54085.54085,0,0,0-.605-.60547h-.62744a1.01119,1.01119,0,0,0-.748.29688L11.645,8.56641a.5435.5435,0,0,0-.022.8584l.28613.30762a.53861.53861,0,0,0,.84717.0332l.09912-.08789a1.2137,1.2137,0,0,0,.2417-.35254h.02246s-.01123.30859-.01123.60547V13.209H12.041a.54085.54085,0,0,0-.605.60547v.43945a.54085.54085,0,0,0,.605.60547h4.02686a.54085.54085,0,0,0,.605-.60547v-.43945A.54085.54085,0,0,0,16.06787,13.209Z /> </svg>'}),(function(r,i){r.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M16.73975,13.81445v.43945a.54085.54085,0,0,1-.605.60547H11.855a.58392.58392,0,0,1-.64893-.60547V14.0127c0-2.90527,3.39941-3.42187,3.39941-4.55469a.77675.77675,0,0,0-.84717-.78125,1.17684,1.17684,0,0,0-.83594.38477c-.2749.26367-.561.374-.85791.13184l-.4292-.34082c-.30811-.24219-.38525-.51758-.1543-.81445a2.97155,2.97155,0,0,1,2.45361-1.17676,2.45393,2.45393,0,0,1,2.68408,2.40918c0,2.45312-3.1792,2.92676-3.27832,3.93848h2.79443A.54085.54085,0,0,1,16.73975,13.81445ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z /> </svg>'}),(function(r,i){r.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=13 y1=4 y2=4></line> <line class=ql-stroke x1=5 x2=11 y1=14 y2=14></line> <line class=ql-stroke x1=8 x2=10 y1=14 y2=4></line> </svg>'}),(function(r,i){r.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=10 width=12 x=3 y=4></rect> <circle class=ql-fill cx=6 cy=7 r=1></circle> <polyline class="ql-even ql-fill" points="5 12 5 11 7 9 8 10 11 7 13 9 13 12 5 12"></polyline> </svg>'}),(function(r,i){r.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class="ql-fill ql-stroke" points="3 7 3 11 5 9 3 7"></polyline> </svg>'}),(function(r,i){r.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="5 7 5 11 3 9 5 7"></polyline> </svg>'}),(function(r,i){r.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=11 y1=7 y2=11></line> <path class="ql-even ql-stroke" d=M8.9,4.577a3.476,3.476,0,0,1,.36,4.679A3.476,3.476,0,0,1,4.577,8.9C3.185,7.5,2.035,6.4,4.217,4.217S7.5,3.185,8.9,4.577Z></path> <path class="ql-even ql-stroke" d=M13.423,9.1a3.476,3.476,0,0,0-4.679-.36,3.476,3.476,0,0,0,.36,4.679c1.392,1.392,2.5,2.542,4.679.36S14.815,10.5,13.423,9.1Z></path> </svg>'}),(function(r,i){r.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=7 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=7 x2=15 y1=14 y2=14></line> <line class="ql-stroke ql-thin" x1=2.5 x2=4.5 y1=5.5 y2=5.5></line> <path class=ql-fill d=M3.5,6A0.5,0.5,0,0,1,3,5.5V3.085l-0.276.138A0.5,0.5,0,0,1,2.053,3c-0.124-.247-0.023-0.324.224-0.447l1-.5A0.5,0.5,0,0,1,4,2.5v3A0.5,0.5,0,0,1,3.5,6Z></path> <path class="ql-stroke ql-thin" d=M4.5,10.5h-2c0-.234,1.85-1.076,1.85-2.234A0.959,0.959,0,0,0,2.5,8.156></path> <path class="ql-stroke ql-thin" d=M2.5,14.846a0.959,0.959,0,0,0,1.85-.109A0.7,0.7,0,0,0,3.75,14a0.688,0.688,0,0,0,.6-0.736,0.959,0.959,0,0,0-1.85-.109></path> </svg>'}),(function(r,i){r.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=6 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=6 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=6 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=3 y1=4 y2=4></line> <line class=ql-stroke x1=3 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=3 y1=14 y2=14></line> </svg>'}),(function(r,i){r.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=9 x2=15 y1=4 y2=4></line> <polyline class=ql-stroke points="3 4 4 5 6 3"></polyline> <line class=ql-stroke x1=9 x2=15 y1=14 y2=14></line> <polyline class=ql-stroke points="3 14 4 15 6 13"></polyline> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="3 9 4 10 6 8"></polyline> </svg>'}),(function(r,i){r.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,15H13.861a3.858,3.858,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.921,1.921,0,0,0,12.021,11.7a0.50013,0.50013,0,1,0,.957.291h0a0.914,0.914,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.076-1.16971,1.86982-1.93971,2.43082A1.45639,1.45639,0,0,0,12,15.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,15Z /> <path class=ql-fill d=M9.65,5.241a1,1,0,0,0-1.409.108L6,7.964,3.759,5.349A1,1,0,0,0,2.192,6.59178Q2.21541,6.6213,2.241,6.649L4.684,9.5,2.241,12.35A1,1,0,0,0,3.71,13.70722q0.02557-.02768.049-0.05722L6,11.036,8.241,13.65a1,1,0,1,0,1.567-1.24277Q9.78459,12.3777,9.759,12.35L7.316,9.5,9.759,6.651A1,1,0,0,0,9.65,5.241Z /> </svg>'}),(function(r,i){r.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,7H13.861a4.015,4.015,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.922,1.922,0,0,0,12.021,3.7a0.5,0.5,0,1,0,.957.291,0.917,0.917,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.077-1.164,1.925-1.934,2.486A1.423,1.423,0,0,0,12,7.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,7Z /> <path class=ql-fill d=M9.651,5.241a1,1,0,0,0-1.41.108L6,7.964,3.759,5.349a1,1,0,1,0-1.519,1.3L4.683,9.5,2.241,12.35a1,1,0,1,0,1.519,1.3L6,11.036,8.241,13.65a1,1,0,0,0,1.519-1.3L7.317,9.5,9.759,6.651A1,1,0,0,0,9.651,5.241Z /> </svg>'}),(function(r,i){r.exports='<svg viewbox="0 0 18 18"> <line class="ql-stroke ql-thin" x1=15.5 x2=2.5 y1=8.5 y2=9.5></line> <path class=ql-fill d=M9.007,8C6.542,7.791,6,7.519,6,6.5,6,5.792,7.283,5,9,5c1.571,0,2.765.679,2.969,1.309a1,1,0,0,0,1.9-.617C13.356,4.106,11.354,3,9,3,6.2,3,4,4.538,4,6.5a3.2,3.2,0,0,0,.5,1.843Z></path> <path class=ql-fill d=M8.984,10C11.457,10.208,12,10.479,12,11.5c0,0.708-1.283,1.5-3,1.5-1.571,0-2.765-.679-2.969-1.309a1,1,0,1,0-1.9.617C4.644,13.894,6.646,15,9,15c2.8,0,5-1.538,5-3.5a3.2,3.2,0,0,0-.5-1.843Z></path> </svg>'}),(function(r,i){r.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,3V9a4.012,4.012,0,0,0,4,4H9a4.012,4.012,0,0,0,4-4V3></path> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=12 x=3 y=15></rect> </svg>'}),(function(r,i){r.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=12 width=12 x=3 y=3></rect> <rect class=ql-fill height=12 width=1 x=5 y=3></rect> <rect class=ql-fill height=12 width=1 x=12 y=3></rect> <rect class=ql-fill height=2 width=8 x=5 y=8></rect> <rect class=ql-fill height=1 width=3 x=3 y=5></rect> <rect class=ql-fill height=1 width=3 x=3 y=7></rect> <rect class=ql-fill height=1 width=3 x=3 y=10></rect> <rect class=ql-fill height=1 width=3 x=3 y=12></rect> <rect class=ql-fill height=1 width=3 x=12 y=5></rect> <rect class=ql-fill height=1 width=3 x=12 y=7></rect> <rect class=ql-fill height=1 width=3 x=12 y=10></rect> <rect class=ql-fill height=1 width=3 x=12 y=12></rect> </svg>'}),(function(r,i){r.exports='<svg viewbox="0 0 18 18"> <polygon class=ql-stroke points="7 11 9 13 11 11 7 11"></polygon> <polygon class=ql-stroke points="7 7 9 5 11 7 7 7"></polygon> </svg>'}),(function(r,i,s){Object.defineProperty(i,"__esModule",{value:!0}),i.default=i.BubbleTooltip=void 0;var a=function E(C,B,I){C===null&&(C=Function.prototype);var R=Object.getOwnPropertyDescriptor(C,B);if(R===void 0){var D=Object.getPrototypeOf(C);return D===null?void 0:E(D,B,I)}else{if("value"in R)return R.value;var q=R.get;return q===void 0?void 0:q.call(I)}},o=(function(){function E(C,B){for(var I=0;I<B.length;I++){var R=B[I];R.enumerable=R.enumerable||!1,R.configurable=!0,"value"in R&&(R.writable=!0),Object.defineProperty(C,R.key,R)}}return function(C,B,I){return B&&E(C.prototype,B),I&&E(C,I),C}})(),c=s(3),d=y(c),f=s(8),h=y(f),m=s(43),p=y(m),g=s(15),b=s(41),j=y(b);function y(E){return E&&E.__esModule?E:{default:E}}function x(E,C){if(!(E instanceof C))throw new TypeError("Cannot call a class as a function")}function N(E,C){if(!E)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return C&&(typeof C=="object"||typeof C=="function")?C:E}function w(E,C){if(typeof C!="function"&&C!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof C);E.prototype=Object.create(C&&C.prototype,{constructor:{value:E,enumerable:!1,writable:!0,configurable:!0}}),C&&(Object.setPrototypeOf?Object.setPrototypeOf(E,C):E.__proto__=C)}var k=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]],A=(function(E){w(C,E);function C(B,I){x(this,C),I.modules.toolbar!=null&&I.modules.toolbar.container==null&&(I.modules.toolbar.container=k);var R=N(this,(C.__proto__||Object.getPrototypeOf(C)).call(this,B,I));return R.quill.container.classList.add("ql-bubble"),R}return o(C,[{key:"extendToolbar",value:function(I){this.tooltip=new S(this.quill,this.options.bounds),this.tooltip.root.appendChild(I.container),this.buildButtons([].slice.call(I.container.querySelectorAll("button")),j.default),this.buildPickers([].slice.call(I.container.querySelectorAll("select")),j.default)}}]),C})(p.default);A.DEFAULTS=(0,d.default)(!0,{},p.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(C){C?this.quill.theme.tooltip.edit():this.quill.format("link",!1)}}}}});var S=(function(E){w(C,E);function C(B,I){x(this,C);var R=N(this,(C.__proto__||Object.getPrototypeOf(C)).call(this,B,I));return R.quill.on(h.default.events.EDITOR_CHANGE,function(D,q,z,U){if(D===h.default.events.SELECTION_CHANGE)if(q!=null&&q.length>0&&U===h.default.sources.USER){R.show(),R.root.style.left="0px",R.root.style.width="",R.root.style.width=R.root.offsetWidth+"px";var Y=R.quill.getLines(q.index,q.length);if(Y.length===1)R.position(R.quill.getBounds(q));else{var H=Y[Y.length-1],K=R.quill.getIndex(H),Q=Math.min(H.length()-1,q.index+q.length-K),O=R.quill.getBounds(new g.Range(K,Q));R.position(O)}}else document.activeElement!==R.textbox&&R.quill.hasFocus()&&R.hide()}),R}return o(C,[{key:"listen",value:function(){var I=this;a(C.prototype.__proto__||Object.getPrototypeOf(C.prototype),"listen",this).call(this),this.root.querySelector(".ql-close").addEventListener("click",function(){I.root.classList.remove("ql-editing")}),this.quill.on(h.default.events.SCROLL_OPTIMIZE,function(){setTimeout(function(){if(!I.root.classList.contains("ql-hidden")){var R=I.quill.getSelection();R!=null&&I.position(I.quill.getBounds(R))}},1)})}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(I){var R=a(C.prototype.__proto__||Object.getPrototypeOf(C.prototype),"position",this).call(this,I),D=this.root.querySelector(".ql-tooltip-arrow");if(D.style.marginLeft="",R===0)return R;D.style.marginLeft=-1*R-D.offsetWidth/2+"px"}}]),C})(m.BaseTooltip);S.TEMPLATE=['<span class="ql-tooltip-arrow"></span>','<div class="ql-tooltip-editor">','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-close"></a>',"</div>"].join(""),i.BubbleTooltip=S,i.default=A}),(function(r,i,s){r.exports=s(63)})]).default})})(Dh)),Dh.exports}var Mr,rS;function fK(){if(rS)return Mr;rS=1;var e=Mr&&Mr.__extends||(function(){var h=function(m,p){return h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,b){g.__proto__=b}||function(g,b){for(var j in b)b.hasOwnProperty(j)&&(g[j]=b[j])},h(m,p)};return function(m,p){h(m,p);function g(){this.constructor=m}m.prototype=p===null?Object.create(p):(g.prototype=p.prototype,new g)}})(),n=Mr&&Mr.__assign||function(){return n=Object.assign||function(h){for(var m,p=1,g=arguments.length;p<g;p++){m=arguments[p];for(var b in m)Object.prototype.hasOwnProperty.call(m,b)&&(h[b]=m[b])}return h},n.apply(this,arguments)},r=Mr&&Mr.__spreadArrays||function(){for(var h=0,m=0,p=arguments.length;m<p;m++)h+=arguments[m].length;for(var g=Array(h),b=0,m=0;m<p;m++)for(var j=arguments[m],y=0,x=j.length;y<x;y++,b++)g[b]=j[y];return g},i=Mr&&Mr.__importDefault||function(h){return h&&h.__esModule?h:{default:h}},s=i(yu()),a=i(Y0()),o=i(uK()),c=i(hK()),d=(function(h){e(m,h);function m(p){var g=h.call(this,p)||this;g.dirtyProps=["modules","formats","bounds","theme","children"],g.cleanProps=["id","className","style","placeholder","tabIndex","onChange","onChangeSelection","onFocus","onBlur","onKeyPress","onKeyDown","onKeyUp"],g.state={generation:0},g.selection=null,g.onEditorChange=function(j,y,x,N){var w,k,A,S;j==="text-change"?(k=(w=g).onEditorChangeText)===null||k===void 0||k.call(w,g.editor.root.innerHTML,y,N,g.unprivilegedEditor):j==="selection-change"&&((S=(A=g).onEditorChangeSelection)===null||S===void 0||S.call(A,y,N,g.unprivilegedEditor))};var b=g.isControlled()?p.value:p.defaultValue;return g.value=b??"",g}return m.prototype.validateProps=function(p){var g;if(s.default.Children.count(p.children)>1)throw new Error("The Quill editing area can only be composed of a single React element.");if(s.default.Children.count(p.children)){var b=s.default.Children.only(p.children);if(((g=b)===null||g===void 0?void 0:g.type)==="textarea")throw new Error("Quill does not support editing on a <textarea>. Use a <div> instead.")}if(this.lastDeltaChangeSet&&p.value===this.lastDeltaChangeSet)throw new Error("You are passing the `delta` object from the `onChange` event back as `value`. You most probably want `editor.getContents()` instead. See: https://github.com/zenoamaro/react-quill#using-deltas")},m.prototype.shouldComponentUpdate=function(p,g){var b=this,j;if(this.validateProps(p),!this.editor||this.state.generation!==g.generation)return!0;if("value"in p){var y=this.getEditorContents(),x=(j=p.value,j??"");this.isEqualValue(x,y)||this.setEditorContents(this.editor,x)}return p.readOnly!==this.props.readOnly&&this.setEditorReadOnly(this.editor,p.readOnly),r(this.cleanProps,this.dirtyProps).some(function(N){return!o.default(p[N],b.props[N])})},m.prototype.shouldComponentRegenerate=function(p){var g=this;return this.dirtyProps.some(function(b){return!o.default(p[b],g.props[b])})},m.prototype.componentDidMount=function(){this.instantiateEditor(),this.setEditorContents(this.editor,this.getEditorContents())},m.prototype.componentWillUnmount=function(){this.destroyEditor()},m.prototype.componentDidUpdate=function(p,g){var b=this;if(this.editor&&this.shouldComponentRegenerate(p)){var j=this.editor.getContents(),y=this.editor.getSelection();this.regenerationSnapshot={delta:j,selection:y},this.setState({generation:this.state.generation+1}),this.destroyEditor()}if(this.state.generation!==g.generation){var x=this.regenerationSnapshot,j=x.delta,N=x.selection;delete this.regenerationSnapshot,this.instantiateEditor();var w=this.editor;w.setContents(j),f(function(){return b.setEditorSelection(w,N)})}},m.prototype.instantiateEditor=function(){this.editor?this.hookEditor(this.editor):this.editor=this.createEditor(this.getEditingArea(),this.getEditorConfig())},m.prototype.destroyEditor=function(){this.editor&&this.unhookEditor(this.editor)},m.prototype.isControlled=function(){return"value"in this.props},m.prototype.getEditorConfig=function(){return{bounds:this.props.bounds,formats:this.props.formats,modules:this.props.modules,placeholder:this.props.placeholder,readOnly:this.props.readOnly,scrollingContainer:this.props.scrollingContainer,tabIndex:this.props.tabIndex,theme:this.props.theme}},m.prototype.getEditor=function(){if(!this.editor)throw new Error("Accessing non-instantiated editor");return this.editor},m.prototype.createEditor=function(p,g){var b=new c.default(p,g);return g.tabIndex!=null&&this.setEditorTabIndex(b,g.tabIndex),this.hookEditor(b),b},m.prototype.hookEditor=function(p){this.unprivilegedEditor=this.makeUnprivilegedEditor(p),p.on("editor-change",this.onEditorChange)},m.prototype.unhookEditor=function(p){p.off("editor-change",this.onEditorChange)},m.prototype.getEditorContents=function(){return this.value},m.prototype.getEditorSelection=function(){return this.selection},m.prototype.isDelta=function(p){return p&&p.ops},m.prototype.isEqualValue=function(p,g){return this.isDelta(p)&&this.isDelta(g)?o.default(p.ops,g.ops):o.default(p,g)},m.prototype.setEditorContents=function(p,g){var b=this;this.value=g;var j=this.getEditorSelection();typeof g=="string"?p.setContents(p.clipboard.convert(g)):p.setContents(g),f(function(){return b.setEditorSelection(p,j)})},m.prototype.setEditorSelection=function(p,g){if(this.selection=g,g){var b=p.getLength();g.index=Math.max(0,Math.min(g.index,b-1)),g.length=Math.max(0,Math.min(g.length,b-1-g.index)),p.setSelection(g)}},m.prototype.setEditorTabIndex=function(p,g){var b,j;!((j=(b=p)===null||b===void 0?void 0:b.scroll)===null||j===void 0)&&j.domNode&&(p.scroll.domNode.tabIndex=g)},m.prototype.setEditorReadOnly=function(p,g){g?p.disable():p.enable()},m.prototype.makeUnprivilegedEditor=function(p){var g=p;return{getHTML:function(){return g.root.innerHTML},getLength:g.getLength.bind(g),getText:g.getText.bind(g),getContents:g.getContents.bind(g),getSelection:g.getSelection.bind(g),getBounds:g.getBounds.bind(g)}},m.prototype.getEditingArea=function(){if(!this.editingArea)throw new Error("Instantiating on missing editing area");var p=a.default.findDOMNode(this.editingArea);if(!p)throw new Error("Cannot find element for editing area");if(p.nodeType===3)throw new Error("Editing area cannot be a text node");return p},m.prototype.renderEditingArea=function(){var p=this,g=this.props,b=g.children,j=g.preserveWhitespace,y=this.state.generation,x={key:y,ref:function(N){p.editingArea=N}};return s.default.Children.count(b)?s.default.cloneElement(s.default.Children.only(b),x):j?s.default.createElement("pre",n({},x)):s.default.createElement("div",n({},x))},m.prototype.render=function(){var p;return s.default.createElement("div",{id:this.props.id,style:this.props.style,key:this.state.generation,className:"quill "+(p=this.props.className,p??""),onKeyPress:this.props.onKeyPress,onKeyDown:this.props.onKeyDown,onKeyUp:this.props.onKeyUp},this.renderEditingArea())},m.prototype.onEditorChangeText=function(p,g,b,j){var y,x;if(this.editor){var N=this.isDelta(this.value)?j.getContents():j.getHTML();N!==this.getEditorContents()&&(this.lastDeltaChangeSet=g,this.value=N,(x=(y=this.props).onChange)===null||x===void 0||x.call(y,p,g,b,j))}},m.prototype.onEditorChangeSelection=function(p,g,b){var j,y,x,N,w,k;if(this.editor){var A=this.getEditorSelection(),S=!A&&p,E=A&&!p;o.default(p,A)||(this.selection=p,(y=(j=this.props).onChangeSelection)===null||y===void 0||y.call(j,p,g,b),S?(N=(x=this.props).onFocus)===null||N===void 0||N.call(x,p,g,b):E&&((k=(w=this.props).onBlur)===null||k===void 0||k.call(w,A,g,b)))}},m.prototype.focus=function(){this.editor&&this.editor.focus()},m.prototype.blur=function(){this.editor&&(this.selection=null,this.editor.blur())},m.displayName="React Quill",m.Quill=c.default,m.defaultProps={theme:"snow",modules:{},readOnly:!1},m})(s.default.Component);function f(h){Promise.resolve().then(h)}return Mr=d,Mr}var mK=fK();const Lf=Ni(mK);function Ji({value:e,onChange:n,placeholder:r}){const[i,s]=Rt.useState(!1),[a,o]=Rt.useState(!1),c=Rt.useRef(null),d=Rt.useCallback(()=>{const m=document.createElement("input");m.setAttribute("type","file"),m.setAttribute("accept","image/*"),m.click(),m.onchange=async()=>{const p=m.files[0];if(p){s(!0);try{const{file_url:g}=await ue.integrations.Core.UploadFile({file:p}),b=c.current.getEditor(),j=b.getSelection();b.insertEmbed(j.index,"image",g)}catch(g){console.error("Error uploading image:",g),alert("Fout bij uploaden van afbeelding")}finally{s(!1)}}}},[]),f=Rt.useMemo(()=>({toolbar:{container:[[{header:[1,2,!1]}],["bold","italic","underline"],[{list:"ordered"},{list:"bullet"}],["link","image"],["clean"]],handlers:{image:d}}}),[d]),h=["header","bold","italic","underline","strike","list","bullet","color","background","link","image"];return t.jsxs("div",{className:"relative",children:[t.jsx("div",{className:"mb-2 flex justify-end",children:t.jsx(se,{type:"button",variant:"outline",size:"sm",onClick:()=>o(!a),children:a?"📝 Rich Editor":"💻 Raw HTML"})}),a?t.jsx("textarea",{value:e||"",onChange:m=>n(m.target.value),placeholder:"Bewerk de ruwe HTML hier...",className:"w-full min-h-[400px] p-4 border border-gray-300 rounded-lg font-mono text-sm focus:outline-none focus:ring-2 focus:ring-blue-500",style:{whiteSpace:"pre-wrap"}}):t.jsxs(t.Fragment,{children:[t.jsx("style",{children:`
            .ql-container {
              min-height: 400px;
              font-size: 16px;
              border-bottom-left-radius: 0.5rem;
              border-bottom-right-radius: 0.5rem;
            }
            .ql-editor {
              min-height: 400px;
              padding: 1rem;
            }
            .ql-toolbar {
              background: #f9fafb;
              border-top-left-radius: 0.5rem;
              border-top-right-radius: 0.5rem;
              border: 1px solid #e5e7eb;
              border-bottom: 1px solid #d1d5db;
            }
            .ql-container {
              border: 1px solid #e5e7eb;
              border-top: none;
            }
            .ql-editor.ql-blank::before {
              color: #9ca3af;
              font-style: normal;
            }
          `}),t.jsx(Lf,{ref:c,theme:"snow",value:e||"",onChange:n,modules:f,formats:h,placeholder:r,className:"bg-white rounded-lg"}),i&&t.jsx("div",{className:"absolute inset-0 bg-white/80 flex items-center justify-center rounded-lg z-10",children:t.jsxs("div",{className:"flex items-center gap-2 text-blue-600",children:[t.jsxs("svg",{className:"animate-spin w-5 h-5",viewBox:"0 0 24 24",children:[t.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4",fill:"none"}),t.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4z"})]}),"Afbeelding uploaden..."]})})]})]})}function ea({value:e,onChange:n,label:r,description:i,recommendedSize:s}){const[a,o]=F.useState(!1),[c,d]=F.useState(!1),f=async h=>{const m=h.target.files[0];if(m){o(!0);try{const{file_url:p}=await ue.integrations.Core.UploadFile({file:m});n(p)}catch(p){console.error("Error uploading image:",p),alert("Fout bij uploaden van afbeelding")}finally{o(!1)}}};return t.jsxs("div",{children:[t.jsxs("div",{className:"mb-2",children:[t.jsx("label",{className:"block text-sm font-medium text-gray-700",children:r}),s&&t.jsxs("span",{className:"text-xs text-gray-500 mt-1 block",children:["Aanbevolen: ",s]})]}),e?t.jsxs("div",{className:"relative",children:[t.jsx("img",{src:e,alt:"Preview",className:"w-full h-48 object-cover rounded-lg border-2 border-gray-200"}),t.jsx(se,{type:"button",size:"sm",variant:"ghost",onClick:()=>n(""),className:"absolute top-2 right-2 bg-white/90 hover:bg-white",children:t.jsx(rn,{className:"w-4 h-4"})})]}):t.jsxs("div",{className:"flex items-center gap-3",children:[t.jsx("input",{type:"file",accept:"image/*",onChange:f,disabled:a,className:"hidden",id:`file-upload-${r}`}),t.jsx("label",{htmlFor:`file-upload-${r}`,className:"cursor-pointer inline-flex items-center gap-2 px-4 py-2 border border-gray-300 rounded-lg text-sm font-medium text-gray-700 bg-white hover:bg-gray-50 transition-colors",children:a?t.jsxs(t.Fragment,{children:[t.jsx("div",{className:"w-4 h-4 border-2 border-blue-600 border-t-transparent rounded-full animate-spin"}),"Uploaden..."]}):t.jsxs(t.Fragment,{children:[t.jsx(TA,{className:"w-4 h-4"}),"Upload"]})}),t.jsx("span",{className:"text-sm text-gray-500",children:"of"}),t.jsx(me,{value:e,onChange:h=>n(h.target.value),placeholder:"Plak afbeelding URL",className:"flex-1"})]})]})}function pK({title:e,content:n,metaDescription:r,metaKeywords:i,slug:s}){const a=[];let o=0;e&&e.length>=50&&e.length<=60?(a.push({label:"Titel lengte optimaal",status:"good"}),o+=20):e&&e.length>0?(a.push({label:"Titel lengte suboptimaal",status:"warning"}),o+=10):a.push({label:"Geen titel",status:"error"}),r&&r.length>=120&&r.length<=160?(a.push({label:"Meta description optimaal",status:"good"}),o+=25):r&&r.length>0?(a.push({label:"Meta description suboptimaal",status:"warning"}),o+=12):a.push({label:"Geen meta description",status:"error"}),i&&i.split(",").filter(h=>h.trim()).length>=3?(a.push({label:"Keywords aanwezig",status:"good"}),o+=15):(a.push({label:"Minimaal 3 keywords nodig",status:"warning"}),o+=5);const c=n?n.split(/\s+/).length:0;c>=300?(a.push({label:"Content lengte voldoende",status:"good"}),o+=20):c>0?(a.push({label:`Content te kort (${c} woorden)`,status:"warning"}),o+=10):a.push({label:"Geen content",status:"error"}),s&&s.length>0&&/^[a-z0-9-]+$/.test(s)?(a.push({label:"URL-vriendelijke slug",status:"good"}),o+=20):(a.push({label:"Slug niet optimaal",status:"warning"}),o+=5);const d=()=>o>=80?"text-green-600":o>=60?"text-yellow-600":"text-red-600",f=()=>o>=80?"bg-green-50 border-green-200":o>=60?"bg-yellow-50 border-yellow-200":"bg-red-50 border-red-200";return t.jsxs("div",{className:`rounded-xl p-6 border-2 ${f()}`,children:[t.jsxs("div",{className:"flex items-center justify-between mb-4",children:[t.jsx("h3",{className:"text-lg font-bold text-gray-900",children:"SEO Score"}),t.jsxs("div",{className:`text-4xl font-bold ${d()}`,children:[o,"/100"]})]}),t.jsx("div",{className:"space-y-2",children:a.map((h,m)=>t.jsxs("div",{className:"flex items-center gap-2",children:[h.status==="good"&&t.jsx(vt,{className:"w-5 h-5 text-green-600"}),h.status==="warning"&&t.jsx(Ms,{className:"w-5 h-5 text-yellow-600"}),h.status==="error"&&t.jsx(Qc,{className:"w-5 h-5 text-red-600"}),t.jsx("span",{className:"text-sm text-gray-700",children:h.label})]},m))}),t.jsx("div",{className:"mt-4 pt-4 border-t border-gray-200",children:t.jsxs("p",{className:"text-xs text-gray-600",children:[o>=80&&"Uitstekend! Je content is goed geoptimaliseerd voor zoekmachines.",o>=60&&o<80&&"Goed bezig! Er zijn nog wat verbeterpunten.",o<60&&"Er is ruimte voor verbetering. Volg de aanbevelingen hierboven."]})})]})}function gK(){const[e,n]=F.useState(null),[r,i]=F.useState(!1),[s,a]=F.useState({title:"",slug:"",excerpt:"",content:"",category:"AI",image_url:"",author:"48-7 Team",read_time:"5 min",published:!1,published_date:"",meta_description:"",meta_keywords:"",canonical_url:""}),o=y=>{a({...s,title:y,slug:y.toLowerCase().replace(/[^a-z0-9\s-]/g,"").replace(/\s+/g,"-").replace(/-+/g,"-")})},c=Yt(),{data:d=[],isLoading:f}=ze({queryKey:["blog"],queryFn:()=>ue.entities.BlogPost.list("-created_date")}),h=Me({mutationFn:y=>ue.entities.BlogPost.create(y),onSuccess:()=>{c.invalidateQueries({queryKey:["blog"]}),g()}}),m=Me({mutationFn:({id:y,data:x})=>ue.entities.BlogPost.update(y,x),onSuccess:()=>{c.invalidateQueries({queryKey:["blog"]}),g()}}),p=Me({mutationFn:y=>ue.entities.BlogPost.delete(y),onSuccess:()=>{c.invalidateQueries({queryKey:["blog"]})}}),g=()=>{n(null),i(!1),a({title:"",slug:"",excerpt:"",content:"",category:"AI",image_url:"",author:"48-7 Team",read_time:"5 min",published:!1,published_date:"",meta_description:"",meta_keywords:"",canonical_url:""})},b=y=>{n(y),a(y)},j=y=>{y.preventDefault();const x={...s};x.published&&!x.published_date&&(x.published_date=new Date().toISOString().split("T")[0]),e?m.mutate({id:e.id,data:x}):h.mutate(x)};return e!==null?t.jsx("div",{className:"pt-20 min-h-screen bg-gray-50",children:t.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-12",children:[t.jsxs("div",{className:"mb-6 flex items-center justify-between",children:[t.jsxs(se,{variant:"outline",onClick:g,className:"gap-2",children:[t.jsx(ht,{className:"w-4 h-4"}),"Terug naar overzicht"]}),t.jsx("div",{className:"flex gap-2",children:t.jsx(se,{variant:r?"default":"outline",onClick:()=>i(!r),children:r?"Bewerken":"Preview"})})]}),r?t.jsx("div",{className:"bg-white rounded-2xl p-8 border border-gray-200",children:t.jsxs("div",{className:"max-w-3xl mx-auto",children:[s.image_url&&t.jsx("img",{src:s.image_url,alt:s.title,className:"w-full h-96 object-cover rounded-xl mb-8"}),t.jsxs("div",{className:"flex items-center gap-4 mb-6 text-sm text-gray-600",children:[t.jsx("span",{className:"px-3 py-1 bg-orange-100 text-orange-800 rounded-full",children:s.category}),t.jsx("span",{children:s.author}),t.jsx("span",{children:"•"}),t.jsx("span",{children:s.read_time}),s.published_date&&t.jsxs(t.Fragment,{children:[t.jsx("span",{children:"•"}),t.jsx("span",{children:new Date(s.published_date).toLocaleDateString("nl-NL")})]})]}),t.jsx("h1",{className:"text-5xl font-bold text-gray-900 mb-6",children:s.title||"Titel van het artikel"}),t.jsx("p",{className:"text-xl text-gray-600 mb-8",children:s.excerpt||"Samenvatting van het artikel..."}),t.jsx("div",{className:"prose prose-lg max-w-none",dangerouslySetInnerHTML:{__html:s.content||"<p>Je content verschijnt hier...</p>"}})]})}):t.jsxs("div",{className:"bg-white rounded-2xl p-8 border border-gray-200",children:[t.jsx("h2",{className:"text-3xl font-bold text-gray-900 mb-8",children:e!=null&&e.id?"Blog Post Bewerken":"Nieuwe Blog Post"}),t.jsxs("form",{onSubmit:j,className:"space-y-6",children:[t.jsxs("div",{className:"grid md:grid-cols-2 gap-6",children:[t.jsxs("div",{children:[t.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Titel *"}),t.jsx(me,{required:!0,value:s.title,onChange:y=>o(y.target.value),placeholder:"De toekomst van AI"})]}),t.jsxs("div",{children:[t.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Slug (URL) *"}),t.jsx(me,{required:!0,value:s.slug,onChange:y=>a({...s,slug:y.target.value}),placeholder:"de-toekomst-van-ai"}),t.jsx("p",{className:"text-xs text-gray-500 mt-1",children:"Slug wordt automatisch gegenereerd o.b.v. titel"})]})]}),t.jsxs("div",{children:[t.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Samenvatting *"}),t.jsx(me,{required:!0,value:s.excerpt,onChange:y=>a({...s,excerpt:y.target.value}),placeholder:"Een korte samenvatting van het artikel..."})]}),t.jsxs("div",{children:[t.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Content *"}),t.jsx("p",{className:"text-xs text-gray-500 mb-2",children:"Volledige inhoud van het artikel"}),t.jsx(Ji,{value:s.content,onChange:y=>a({...s,content:y}),placeholder:"Schrijf je blog artikel... Gebruik de toolbar voor opmaak, voeg afbeeldingen toe, etc."})]}),t.jsxs("div",{className:"grid md:grid-cols-3 gap-6",children:[t.jsxs("div",{children:[t.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Categorie *"}),t.jsxs(Yi,{value:s.category,onValueChange:y=>a({...s,category:y}),children:[t.jsx(bi,{children:t.jsx(Xi,{})}),t.jsxs(ji,{children:[t.jsx(St,{value:"AI",children:"AI"}),t.jsx(St,{value:"Technologie",children:"Technologie"}),t.jsx(St,{value:"Training",children:"Training"}),t.jsx(St,{value:"Case Study",children:"Case Study"}),t.jsx(St,{value:"Nieuws",children:"Nieuws"})]})]})]}),t.jsxs("div",{children:[t.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Auteur"}),t.jsx(me,{value:s.author,onChange:y=>a({...s,author:y.target.value}),placeholder:"48-7 Team"})]}),t.jsxs("div",{children:[t.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Leestijd"}),t.jsx(me,{value:s.read_time,onChange:y=>a({...s,read_time:y.target.value}),placeholder:"5 min"})]})]}),t.jsx(ea,{value:s.image_url,onChange:y=>a({...s,image_url:y}),label:"Featured Image",recommendedSize:"1200x630px"}),t.jsxs("div",{className:"flex items-center gap-6",children:[t.jsxs("div",{className:"flex items-center gap-3",children:[t.jsx("input",{type:"checkbox",id:"published",checked:s.published,onChange:y=>a({...s,published:y.target.checked}),className:"w-4 h-4"}),t.jsx("label",{htmlFor:"published",className:"text-sm font-medium text-gray-700",children:"Publiceren"})]}),s.published&&t.jsx("div",{children:t.jsx(me,{type:"date",value:s.published_date,onChange:y=>a({...s,published_date:y.target.value}),placeholder:"Publicatiedatum"})})]}),t.jsxs("div",{className:"border-t pt-6",children:[t.jsx("h3",{className:"text-lg font-bold text-gray-900 mb-4",children:"SEO Instellingen"}),t.jsxs("div",{className:"grid md:grid-cols-2 gap-6",children:[t.jsxs("div",{className:"space-y-4",children:[t.jsxs("div",{children:[t.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Meta Description (120-160 karakters)"}),t.jsx("textarea",{value:s.meta_description||"",onChange:y=>a({...s,meta_description:y.target.value}),placeholder:"Korte beschrijving voor zoekmachines...",rows:3,maxLength:160,className:"w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-transparent"}),t.jsxs("p",{className:"text-xs text-gray-500 mt-1",children:[(s.meta_description||"").length,"/160 karakters"]})]}),t.jsxs("div",{children:[t.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Meta Keywords (komma gescheiden)"}),t.jsx(me,{value:s.meta_keywords||"",onChange:y=>a({...s,meta_keywords:y.target.value}),placeholder:"AI, machine learning, automatisering"})]}),t.jsxs("div",{children:[t.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Canonical URL (optioneel)"}),t.jsx(me,{value:s.canonical_url||"",onChange:y=>a({...s,canonical_url:y.target.value}),placeholder:"https://48-7.nl/blog/origineel-artikel"}),t.jsx("p",{className:"text-xs text-gray-500 mt-1",children:"Gebruik dit alleen bij duplicate content"})]})]}),t.jsx("div",{children:t.jsx(pK,{title:s.title,content:s.content,metaDescription:s.meta_description,metaKeywords:s.meta_keywords,slug:s.slug})})]})]}),t.jsxs("div",{className:"flex gap-4 pt-6",children:[t.jsxs(se,{type:"submit",className:"flex-1 gap-2",children:[t.jsx(kn,{className:"w-4 h-4"}),e?"Bijwerken":"Aanmaken"]}),t.jsx(se,{type:"button",variant:"outline",onClick:g,children:"Annuleren"})]})]})]})]})}):t.jsx("div",{className:"pt-20 min-h-screen bg-gray-50",children:t.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-12",children:[t.jsxs("div",{className:"flex items-center justify-between mb-8",children:[t.jsxs("div",{children:[t.jsxs(fe,{to:oe("AdminDashboard"),className:"text-blue-600 hover:text-blue-700 mb-2 inline-flex items-center gap-1",children:[t.jsx(ht,{className:"w-4 h-4"}),"Terug naar dashboard"]}),t.jsx("h1",{className:"text-4xl font-bold text-gray-900",children:"Blog"})]}),t.jsxs(se,{onClick:()=>n({}),children:[t.jsx(Pt,{className:"w-5 h-5 mr-2"}),"Nieuw Blog Post"]})]}),f?t.jsx("div",{className:"text-center py-12",children:t.jsx("div",{className:"inline-block w-8 h-8 border-4 border-blue-600 border-t-transparent rounded-full animate-spin"})}):t.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-6",children:d.map(y=>t.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"bg-white rounded-xl p-6 border border-gray-200 hover:shadow-lg transition-shadow",children:[t.jsxs("div",{className:"flex items-start justify-between mb-4",children:[t.jsxs("div",{children:[t.jsx("h3",{className:"font-bold text-lg text-gray-900 mb-1",children:y.title}),t.jsx("p",{className:"text-sm text-gray-600 line-clamp-2",children:y.excerpt}),t.jsxs("div",{className:"flex gap-2 mt-2",children:[t.jsx("span",{className:"inline-block px-2 py-1 bg-orange-100 text-orange-800 text-xs rounded",children:y.category}),t.jsx("span",{className:"inline-block px-2 py-1 bg-gray-100 text-gray-800 text-xs rounded",children:y.read_time})]})]}),y.published?t.jsx("span",{className:"px-2 py-1 bg-green-100 text-green-800 text-xs rounded",children:"Live"}):t.jsx("span",{className:"px-2 py-1 bg-gray-100 text-gray-800 text-xs rounded",children:"Concept"})]}),t.jsxs("div",{className:"flex gap-2 mt-4",children:[t.jsxs(se,{size:"sm",variant:"outline",onClick:()=>b(y),className:"flex-1",children:[t.jsx(Tn,{className:"w-4 h-4 mr-1"}),"Bewerk"]}),t.jsx(se,{size:"sm",variant:"ghost",onClick:()=>{confirm("Weet je zeker dat je dit artikel wilt verwijderen?")&&p.mutate(y.id)},children:t.jsx(wt,{className:"w-4 h-4"})})]})]},y.id))})]})})}function xK(){var y;const[e,n]=F.useState(null),[r,i]=F.useState({client_name:"",slug:"",logo_url:"",industry:"",case_type:"consultancy",challenge:"",solution:"",results:[],quote:"",quote_author:"",quote_role:"",tags:[],featured_on_homepage:!1,homepage_usp:"",homepage_text:"",published:!1,sort_order:0}),s=Yt(),{data:a=[],isLoading:o}=ze({queryKey:["cases"],queryFn:()=>ue.entities.CaseStudy.list("-created_date")}),c=Me({mutationFn:x=>ue.entities.CaseStudy.create(x),onSuccess:()=>{s.invalidateQueries({queryKey:["cases"]}),h()}}),d=Me({mutationFn:({id:x,data:N})=>ue.entities.CaseStudy.update(x,N),onSuccess:()=>{s.invalidateQueries({queryKey:["cases"]}),h()}}),f=Me({mutationFn:x=>ue.entities.CaseStudy.delete(x),onSuccess:()=>{s.invalidateQueries({queryKey:["cases"]})}}),h=()=>{n(null),i({client_name:"",slug:"",featured_image_url:"",industry:"",case_type:"consultancy",challenge:"",solution:"",results:[],quote:"",quote_author:"",quote_role:"",tags:[],featured_on_homepage:!1,homepage_usp:"",homepage_text:"",published:!1,sort_order:0})},m=x=>{n(x),i(x)},p=x=>{x.preventDefault(),e?d.mutate({id:e.id,data:r}):c.mutate(r)},g=()=>{i({...r,results:[...r.results,{value:"",label:""}]})},b=(x,N,w)=>{const k=[...r.results];k[x][N]=w,i({...r,results:k})},j=x=>{i({...r,results:r.results.filter((N,w)=>w!==x)})};return e!==null?t.jsx("div",{className:"pt-20 min-h-screen bg-gray-50",children:t.jsxs("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 py-12",children:[t.jsx("div",{className:"mb-6",children:t.jsxs(se,{variant:"outline",onClick:h,className:"gap-2",children:[t.jsx(ht,{className:"w-4 h-4"}),"Terug naar overzicht"]})}),t.jsxs("div",{className:"bg-white rounded-2xl p-8 border border-gray-200",children:[t.jsx("h2",{className:"text-3xl font-bold text-gray-900 mb-8",children:e?"Case Bewerken":"Nieuwe Case"}),t.jsxs("form",{onSubmit:p,className:"space-y-6",children:[t.jsxs("div",{className:"grid md:grid-cols-2 gap-6",children:[t.jsxs("div",{children:[t.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Klant Naam *"}),t.jsx(me,{required:!0,value:r.client_name,onChange:x=>i({...r,client_name:x.target.value}),placeholder:"Acme Corp"})]}),t.jsxs("div",{children:[t.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Slug (URL) *"}),t.jsx(me,{required:!0,value:r.slug,onChange:x=>i({...r,slug:x.target.value}),placeholder:"acme-corp-ai-transformation"})]})]}),t.jsx(ea,{value:r.featured_image_url,onChange:x=>i({...r,featured_image_url:x}),label:"Featured Afbeelding",recommendedSize:"1200x800px"}),t.jsxs("div",{className:"grid md:grid-cols-2 gap-6",children:[t.jsxs("div",{children:[t.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Branche *"}),t.jsx(me,{required:!0,value:r.industry,onChange:x=>i({...r,industry:x.target.value}),placeholder:"Retail, Healthcare, etc."})]}),t.jsxs("div",{children:[t.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Case Type *"}),t.jsxs(Yi,{value:r.case_type,onValueChange:x=>i({...r,case_type:x}),children:[t.jsx(bi,{children:t.jsx(Xi,{})}),t.jsxs(ji,{children:[t.jsx(St,{value:"consultancy",children:"Consultancy"}),t.jsx(St,{value:"training",children:"Training"}),t.jsx(St,{value:"development",children:"Development"})]})]})]})]}),t.jsxs("div",{children:[t.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Tags (komma gescheiden)"}),t.jsx(me,{value:((y=r.tags)==null?void 0:y.join(", "))||"",onChange:x=>i({...r,tags:x.target.value.split(",").map(N=>N.trim()).filter(Boolean)}),placeholder:"AI, Automatisering, CRM"})]}),t.jsxs("div",{children:[t.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Challenge *"}),t.jsx(Ji,{value:r.challenge,onChange:x=>i({...r,challenge:x}),placeholder:"Beschrijf de uitdaging van de klant..."})]}),t.jsxs("div",{children:[t.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Solution *"}),t.jsx(Ji,{value:r.solution,onChange:x=>i({...r,solution:x}),placeholder:"Beschrijf de oplossing..."})]}),t.jsxs("div",{children:[t.jsxs("div",{className:"flex items-center justify-between mb-4",children:[t.jsx("label",{className:"block text-sm font-medium text-gray-700",children:"Resultaten (3 blokjes)"}),t.jsxs(se,{type:"button",onClick:g,size:"sm",variant:"outline",children:[t.jsx(Pt,{className:"w-4 h-4 mr-1"})," Resultaat"]})]}),t.jsx("div",{className:"space-y-4",children:r.results.map((x,N)=>t.jsxs("div",{className:"flex gap-4 items-start p-4 bg-gray-50 rounded-lg",children:[t.jsxs("div",{className:"flex-1 grid grid-cols-2 gap-4",children:[t.jsx(me,{placeholder:"Waarde (bijv. '5 AI use cases')",value:x.value,onChange:w=>b(N,"value",w.target.value)}),t.jsx(me,{placeholder:"Label (bijv. 'geïdentificeerd')",value:x.label,onChange:w=>b(N,"label",w.target.value)})]}),t.jsx(se,{type:"button",variant:"ghost",size:"sm",onClick:()=>j(N),children:t.jsx(rn,{className:"w-4 h-4"})})]},N))})]}),t.jsxs("div",{className:"space-y-4",children:[t.jsxs("div",{children:[t.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Quote"}),t.jsx(me,{value:r.quote,onChange:x=>i({...r,quote:x.target.value}),placeholder:"De quote van de klant..."})]}),t.jsxs("div",{className:"grid md:grid-cols-2 gap-4",children:[t.jsx(me,{placeholder:"Naam auteur",value:r.quote_author,onChange:x=>i({...r,quote_author:x.target.value})}),t.jsx(me,{placeholder:"Functie",value:r.quote_role,onChange:x=>i({...r,quote_role:x.target.value})})]})]}),t.jsxs("div",{className:"flex items-center gap-3",children:[t.jsx("input",{type:"checkbox",id:"published",checked:r.published,onChange:x=>i({...r,published:x.target.checked}),className:"w-4 h-4"}),t.jsx("label",{htmlFor:"published",className:"text-sm font-medium text-gray-700",children:"Publiceren"})]}),t.jsxs("div",{children:[t.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Titel *"}),t.jsx(me,{required:!0,value:r.homepage_usp||"",onChange:x=>i({...r,homepage_usp:x.target.value}),placeholder:"+85% snellere afhandeling"}),t.jsx("p",{className:"text-sm text-gray-500 mt-1",children:"Dit wordt getoond met een groen pijltje omhoog"})]}),t.jsxs("div",{className:"border-t pt-6 space-y-4",children:[t.jsx("h3",{className:"text-lg font-bold text-gray-900",children:"Homepage weergave"}),t.jsxs("div",{className:"flex items-center gap-3",children:[t.jsx("input",{type:"checkbox",id:"featured_on_homepage",checked:r.featured_on_homepage,onChange:x=>i({...r,featured_on_homepage:x.target.checked}),className:"w-4 h-4"}),t.jsx("label",{htmlFor:"featured_on_homepage",className:"text-sm font-medium text-gray-700",children:"Toon op homepage"})]}),r.featured_on_homepage&&t.jsxs(t.Fragment,{children:[t.jsxs("div",{children:[t.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Homepage tekst (korte beschrijving) *"}),t.jsx(me,{required:!0,value:r.homepage_text||"",onChange:x=>i({...r,homepage_text:x.target.value}),placeholder:"Handmatige verwerking van support tickets kostte het team 20+ uur per week"})]}),t.jsxs("div",{children:[t.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Volgorde op homepage"}),t.jsx(me,{type:"number",value:r.sort_order,onChange:x=>i({...r,sort_order:parseInt(x.target.value)||0})})]})]})]}),t.jsxs("div",{className:"flex gap-4 pt-6",children:[t.jsxs(se,{type:"submit",className:"flex-1 gap-2",children:[t.jsx(kn,{className:"w-4 h-4"}),e?"Bijwerken":"Aanmaken"]}),t.jsx(se,{type:"button",variant:"outline",onClick:h,children:"Annuleren"})]})]})]})]})}):t.jsx("div",{className:"pt-20 min-h-screen bg-gray-50",children:t.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-12",children:[t.jsxs("div",{className:"flex items-center justify-between mb-8",children:[t.jsxs("div",{children:[t.jsxs(fe,{to:oe("AdminDashboard"),className:"text-blue-600 hover:text-blue-700 mb-2 inline-flex items-center gap-1",children:[t.jsx(ht,{className:"w-4 h-4"}),"Terug naar dashboard"]}),t.jsx("h1",{className:"text-4xl font-bold text-gray-900",children:"Cases"})]}),t.jsxs(se,{onClick:()=>n({}),children:[t.jsx(Pt,{className:"w-5 h-5 mr-2"}),"Nieuwe Case"]})]}),o?t.jsx("div",{className:"text-center py-12",children:t.jsx("div",{className:"inline-block w-8 h-8 border-4 border-blue-600 border-t-transparent rounded-full animate-spin"})}):t.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-6",children:a.map(x=>t.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"bg-white rounded-xl p-6 border border-gray-200 hover:shadow-lg transition-shadow",children:[t.jsxs("div",{className:"flex items-start justify-between mb-4",children:[t.jsxs("div",{children:[t.jsx("h3",{className:"font-bold text-lg text-gray-900 mb-1",children:x.client_name}),t.jsx("p",{className:"text-sm text-gray-600",children:x.industry}),t.jsx("span",{className:"inline-block px-2 py-1 bg-blue-100 text-blue-800 text-xs rounded mt-2",children:x.case_type})]}),x.published?t.jsx("span",{className:"px-2 py-1 bg-green-100 text-green-800 text-xs rounded",children:"Gepubliceerd"}):t.jsx("span",{className:"px-2 py-1 bg-gray-100 text-gray-800 text-xs rounded",children:"Concept"})]}),t.jsxs("div",{className:"flex gap-2 mt-4",children:[t.jsxs(se,{size:"sm",variant:"outline",onClick:()=>m(x),className:"flex-1",children:[t.jsx(Tn,{className:"w-4 h-4 mr-1"}),"Bewerk"]}),t.jsx(se,{size:"sm",variant:"ghost",onClick:()=>{confirm("Weet je zeker dat je deze case wilt verwijderen?")&&f.mutate(x.id)},children:t.jsx(wt,{className:"w-4 h-4"})})]})]},x.id))})]})})}var ey={exports:{}},ty,iS;function yK(){if(iS)return ty;iS=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return ty=e,ty}var ny,sS;function vK(){if(sS)return ny;sS=1;var e=yK();function n(){}function r(){}return r.resetWarningCache=n,ny=function(){function i(o,c,d,f,h,m){if(m!==e){var p=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw p.name="Invariant Violation",p}}i.isRequired=i;function s(){return i}var a={array:i,bigint:i,bool:i,func:i,number:i,object:i,string:i,symbol:i,any:i,arrayOf:s,element:i,elementType:i,instanceOf:s,node:i,objectOf:s,oneOf:s,oneOfType:s,shape:s,exact:s,checkPropTypes:r,resetWarningCache:n};return a.PropTypes=a,a},ny}var aS;function bK(){return aS||(aS=1,ey.exports=vK()()),ey.exports}var jK=bK();const zt=Ni(jK);var ry,oS;function wK(){if(oS)return ry;oS=1;function e(c){return c&&typeof c=="object"&&"default"in c?c.default:c}var n=yu(),r=e(n);function i(c,d,f){return d in c?Object.defineProperty(c,d,{value:f,enumerable:!0,configurable:!0,writable:!0}):c[d]=f,c}function s(c,d){c.prototype=Object.create(d.prototype),c.prototype.constructor=c,c.__proto__=d}var a=!!(typeof window<"u"&&window.document&&window.document.createElement);function o(c,d,f){if(typeof c!="function")throw new Error("Expected reducePropsToState to be a function.");if(typeof d!="function")throw new Error("Expected handleStateChangeOnClient to be a function.");if(typeof f<"u"&&typeof f!="function")throw new Error("Expected mapStateOnServer to either be undefined or a function.");function h(m){return m.displayName||m.name||"Component"}return function(p){if(typeof p!="function")throw new Error("Expected WrappedComponent to be a React component.");var g=[],b;function j(){b=c(g.map(function(x){return x.props})),y.canUseDOM?d(b):f&&(b=f(b))}var y=(function(x){s(N,x);function N(){return x.apply(this,arguments)||this}N.peek=function(){return b},N.rewind=function(){if(N.canUseDOM)throw new Error("You may only call rewind() on the server. Call peek() to read the current state.");var A=b;return b=void 0,g=[],A};var w=N.prototype;return w.UNSAFE_componentWillMount=function(){g.push(this),j()},w.componentDidUpdate=function(){j()},w.componentWillUnmount=function(){var A=g.indexOf(this);g.splice(A,1),j()},w.render=function(){return r.createElement(p,this.props)},N})(n.PureComponent);return i(y,"displayName","SideEffect("+h(p)+")"),i(y,"canUseDOM",a),y}}return ry=o,ry}var NK=wK();const kK=Ni(NK);var iy,lS;function _K(){if(lS)return iy;lS=1;var e=typeof Element<"u",n=typeof Map=="function",r=typeof Set=="function",i=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function s(a,o){if(a===o)return!0;if(a&&o&&typeof a=="object"&&typeof o=="object"){if(a.constructor!==o.constructor)return!1;var c,d,f;if(Array.isArray(a)){if(c=a.length,c!=o.length)return!1;for(d=c;d--!==0;)if(!s(a[d],o[d]))return!1;return!0}var h;if(n&&a instanceof Map&&o instanceof Map){if(a.size!==o.size)return!1;for(h=a.entries();!(d=h.next()).done;)if(!o.has(d.value[0]))return!1;for(h=a.entries();!(d=h.next()).done;)if(!s(d.value[1],o.get(d.value[0])))return!1;return!0}if(r&&a instanceof Set&&o instanceof Set){if(a.size!==o.size)return!1;for(h=a.entries();!(d=h.next()).done;)if(!o.has(d.value[0]))return!1;return!0}if(i&&ArrayBuffer.isView(a)&&ArrayBuffer.isView(o)){if(c=a.length,c!=o.length)return!1;for(d=c;d--!==0;)if(a[d]!==o[d])return!1;return!0}if(a.constructor===RegExp)return a.source===o.source&&a.flags===o.flags;if(a.valueOf!==Object.prototype.valueOf&&typeof a.valueOf=="function"&&typeof o.valueOf=="function")return a.valueOf()===o.valueOf();if(a.toString!==Object.prototype.toString&&typeof a.toString=="function"&&typeof o.toString=="function")return a.toString()===o.toString();if(f=Object.keys(a),c=f.length,c!==Object.keys(o).length)return!1;for(d=c;d--!==0;)if(!Object.prototype.hasOwnProperty.call(o,f[d]))return!1;if(e&&a instanceof Element)return!1;for(d=c;d--!==0;)if(!((f[d]==="_owner"||f[d]==="__v"||f[d]==="__o")&&a.$$typeof)&&!s(a[f[d]],o[f[d]]))return!1;return!0}return a!==a&&o!==o}return iy=function(o,c){try{return s(o,c)}catch(d){if((d.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw d}},iy}var SK=_K();const AK=Ni(SK);/*
object-assign
(c) Sindre Sorhus
@license MIT
*/var sy,cS;function CK(){if(cS)return sy;cS=1;var e=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function i(a){if(a==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(a)}function s(){try{if(!Object.assign)return!1;var a=new String("abc");if(a[5]="de",Object.getOwnPropertyNames(a)[0]==="5")return!1;for(var o={},c=0;c<10;c++)o["_"+String.fromCharCode(c)]=c;var d=Object.getOwnPropertyNames(o).map(function(h){return o[h]});if(d.join("")!=="0123456789")return!1;var f={};return"abcdefghijklmnopqrst".split("").forEach(function(h){f[h]=h}),Object.keys(Object.assign({},f)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return sy=s()?Object.assign:function(a,o){for(var c,d=i(a),f,h=1;h<arguments.length;h++){c=Object(arguments[h]);for(var m in c)n.call(c,m)&&(d[m]=c[m]);if(e){f=e(c);for(var p=0;p<f.length;p++)r.call(c,f[p])&&(d[f[p]]=c[f[p]])}}return d},sy}var EK=CK();const TK=Ni(EK);var Ba={BODY:"bodyAttributes",HTML:"htmlAttributes",TITLE:"titleAttributes"},st={BASE:"base",BODY:"body",HEAD:"head",HTML:"html",LINK:"link",META:"meta",NOSCRIPT:"noscript",SCRIPT:"script",STYLE:"style",TITLE:"title"};Object.keys(st).map(function(e){return st[e]});var Vt={CHARSET:"charset",CSS_TEXT:"cssText",HREF:"href",HTTPEQUIV:"http-equiv",INNER_HTML:"innerHTML",ITEM_PROP:"itemprop",NAME:"name",PROPERTY:"property",REL:"rel",SRC:"src",TARGET:"target"},ef={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},du={DEFAULT_TITLE:"defaultTitle",DEFER:"defer",ENCODE_SPECIAL_CHARACTERS:"encodeSpecialCharacters",ON_CHANGE_CLIENT_STATE:"onChangeClientState",TITLE_TEMPLATE:"titleTemplate"},PK=Object.keys(ef).reduce(function(e,n){return e[ef[n]]=n,e},{}),OK=[st.NOSCRIPT,st.SCRIPT,st.STYLE],Ur="data-react-helmet",DK=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},IK=function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")},RK=(function(){function e(n,r){for(var i=0;i<r.length;i++){var s=r[i];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(n,s.key,s)}}return function(n,r,i){return r&&e(n.prototype,r),i&&e(n,i),n}})(),Qn=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},FK=function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof n);e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(e,n):e.__proto__=n)},uS=function(e,n){var r={};for(var i in e)n.indexOf(i)>=0||Object.prototype.hasOwnProperty.call(e,i)&&(r[i]=e[i]);return r},MK=function(e,n){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n&&(typeof n=="object"||typeof n=="function")?n:e},C0=function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return r===!1?String(n):String(n).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")},LK=function(n){var r=Ko(n,st.TITLE),i=Ko(n,du.TITLE_TEMPLATE);if(i&&r)return i.replace(/%s/g,function(){return Array.isArray(r)?r.join(""):r});var s=Ko(n,du.DEFAULT_TITLE);return r||s||void 0},BK=function(n){return Ko(n,du.ON_CHANGE_CLIENT_STATE)||function(){}},ay=function(n,r){return r.filter(function(i){return typeof i[n]<"u"}).map(function(i){return i[n]}).reduce(function(i,s){return Qn({},i,s)},{})},qK=function(n,r){return r.filter(function(i){return typeof i[st.BASE]<"u"}).map(function(i){return i[st.BASE]}).reverse().reduce(function(i,s){if(!i.length)for(var a=Object.keys(s),o=0;o<a.length;o++){var c=a[o],d=c.toLowerCase();if(n.indexOf(d)!==-1&&s[d])return i.concat(s)}return i},[])},wc=function(n,r,i){var s={};return i.filter(function(a){return Array.isArray(a[n])?!0:(typeof a[n]<"u"&&$K("Helmet: "+n+' should be of type "Array". Instead found type "'+DK(a[n])+'"'),!1)}).map(function(a){return a[n]}).reverse().reduce(function(a,o){var c={};o.filter(function(p){for(var g=void 0,b=Object.keys(p),j=0;j<b.length;j++){var y=b[j],x=y.toLowerCase();r.indexOf(x)!==-1&&!(g===Vt.REL&&p[g].toLowerCase()==="canonical")&&!(x===Vt.REL&&p[x].toLowerCase()==="stylesheet")&&(g=x),r.indexOf(y)!==-1&&(y===Vt.INNER_HTML||y===Vt.CSS_TEXT||y===Vt.ITEM_PROP)&&(g=y)}if(!g||!p[g])return!1;var N=p[g].toLowerCase();return s[g]||(s[g]={}),c[g]||(c[g]={}),s[g][N]?!1:(c[g][N]=!0,!0)}).reverse().forEach(function(p){return a.push(p)});for(var d=Object.keys(c),f=0;f<d.length;f++){var h=d[f],m=TK({},s[h],c[h]);s[h]=m}return a},[]).reverse()},Ko=function(n,r){for(var i=n.length-1;i>=0;i--){var s=n[i];if(s.hasOwnProperty(r))return s[r]}return null},zK=function(n){return{baseTag:qK([Vt.HREF,Vt.TARGET],n),bodyAttributes:ay(Ba.BODY,n),defer:Ko(n,du.DEFER),encode:Ko(n,du.ENCODE_SPECIAL_CHARACTERS),htmlAttributes:ay(Ba.HTML,n),linkTags:wc(st.LINK,[Vt.REL,Vt.HREF],n),metaTags:wc(st.META,[Vt.NAME,Vt.CHARSET,Vt.HTTPEQUIV,Vt.PROPERTY,Vt.ITEM_PROP],n),noscriptTags:wc(st.NOSCRIPT,[Vt.INNER_HTML],n),onChangeClientState:BK(n),scriptTags:wc(st.SCRIPT,[Vt.SRC,Vt.INNER_HTML],n),styleTags:wc(st.STYLE,[Vt.CSS_TEXT],n),title:LK(n),titleAttributes:ay(Ba.TITLE,n)}},E0=(function(){var e=Date.now();return function(n){var r=Date.now();r-e>16?(e=r,n(r)):setTimeout(function(){E0(n)},0)}})(),dS=function(n){return clearTimeout(n)},VK=typeof window<"u"?window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||E0:global.requestAnimationFrame||E0,UK=typeof window<"u"?window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||dS:global.cancelAnimationFrame||dS,$K=function(n){return console&&typeof console.warn=="function"&&console.warn(n)},Nc=null,HK=function(n){Nc&&UK(Nc),n.defer?Nc=VK(function(){hS(n,function(){Nc=null})}):(hS(n),Nc=null)},hS=function(n,r){var i=n.baseTag,s=n.bodyAttributes,a=n.htmlAttributes,o=n.linkTags,c=n.metaTags,d=n.noscriptTags,f=n.onChangeClientState,h=n.scriptTags,m=n.styleTags,p=n.title,g=n.titleAttributes;T0(st.BODY,s),T0(st.HTML,a),WK(p,g);var b={baseTag:Oo(st.BASE,i),linkTags:Oo(st.LINK,o),metaTags:Oo(st.META,c),noscriptTags:Oo(st.NOSCRIPT,d),scriptTags:Oo(st.SCRIPT,h),styleTags:Oo(st.STYLE,m)},j={},y={};Object.keys(b).forEach(function(x){var N=b[x],w=N.newTags,k=N.oldTags;w.length&&(j[x]=w),k.length&&(y[x]=b[x].oldTags)}),r&&r(),f(n,j,y)},g6=function(n){return Array.isArray(n)?n.join(""):n},WK=function(n,r){typeof n<"u"&&document.title!==n&&(document.title=g6(n)),T0(st.TITLE,r)},T0=function(n,r){var i=document.getElementsByTagName(n)[0];if(i){for(var s=i.getAttribute(Ur),a=s?s.split(","):[],o=[].concat(a),c=Object.keys(r),d=0;d<c.length;d++){var f=c[d],h=r[f]||"";i.getAttribute(f)!==h&&i.setAttribute(f,h),a.indexOf(f)===-1&&a.push(f);var m=o.indexOf(f);m!==-1&&o.splice(m,1)}for(var p=o.length-1;p>=0;p--)i.removeAttribute(o[p]);a.length===o.length?i.removeAttribute(Ur):i.getAttribute(Ur)!==c.join(",")&&i.setAttribute(Ur,c.join(","))}},Oo=function(n,r){var i=document.head||document.querySelector(st.HEAD),s=i.querySelectorAll(n+"["+Ur+"]"),a=Array.prototype.slice.call(s),o=[],c=void 0;return r&&r.length&&r.forEach(function(d){var f=document.createElement(n);for(var h in d)if(d.hasOwnProperty(h))if(h===Vt.INNER_HTML)f.innerHTML=d.innerHTML;else if(h===Vt.CSS_TEXT)f.styleSheet?f.styleSheet.cssText=d.cssText:f.appendChild(document.createTextNode(d.cssText));else{var m=typeof d[h]>"u"?"":d[h];f.setAttribute(h,m)}f.setAttribute(Ur,"true"),a.some(function(p,g){return c=g,f.isEqualNode(p)})?a.splice(c,1):o.push(f)}),a.forEach(function(d){return d.parentNode.removeChild(d)}),o.forEach(function(d){return i.appendChild(d)}),{oldTags:a,newTags:o}},x6=function(n){return Object.keys(n).reduce(function(r,i){var s=typeof n[i]<"u"?i+'="'+n[i]+'"':""+i;return r?r+" "+s:s},"")},KK=function(n,r,i,s){var a=x6(i),o=g6(r);return a?"<"+n+" "+Ur+'="true" '+a+">"+C0(o,s)+"</"+n+">":"<"+n+" "+Ur+'="true">'+C0(o,s)+"</"+n+">"},GK=function(n,r,i){return r.reduce(function(s,a){var o=Object.keys(a).filter(function(f){return!(f===Vt.INNER_HTML||f===Vt.CSS_TEXT)}).reduce(function(f,h){var m=typeof a[h]>"u"?h:h+'="'+C0(a[h],i)+'"';return f?f+" "+m:m},""),c=a.innerHTML||a.cssText||"",d=OK.indexOf(n)===-1;return s+"<"+n+" "+Ur+'="true" '+o+(d?"/>":">"+c+"</"+n+">")},"")},y6=function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Object.keys(n).reduce(function(i,s){return i[ef[s]||s]=n[s],i},r)},QK=function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Object.keys(n).reduce(function(i,s){return i[PK[s]||s]=n[s],i},r)},YK=function(n,r,i){var s,a=(s={key:r},s[Ur]=!0,s),o=y6(i,a);return[Rt.createElement(st.TITLE,o,r)]},XK=function(n,r){return r.map(function(i,s){var a,o=(a={key:s},a[Ur]=!0,a);return Object.keys(i).forEach(function(c){var d=ef[c]||c;if(d===Vt.INNER_HTML||d===Vt.CSS_TEXT){var f=i.innerHTML||i.cssText;o.dangerouslySetInnerHTML={__html:f}}else o[d]=i[c]}),Rt.createElement(n,o)})},Ii=function(n,r,i){switch(n){case st.TITLE:return{toComponent:function(){return YK(n,r.title,r.titleAttributes)},toString:function(){return KK(n,r.title,r.titleAttributes,i)}};case Ba.BODY:case Ba.HTML:return{toComponent:function(){return y6(r)},toString:function(){return x6(r)}};default:return{toComponent:function(){return XK(n,r)},toString:function(){return GK(n,r,i)}}}},v6=function(n){var r=n.baseTag,i=n.bodyAttributes,s=n.encode,a=n.htmlAttributes,o=n.linkTags,c=n.metaTags,d=n.noscriptTags,f=n.scriptTags,h=n.styleTags,m=n.title,p=m===void 0?"":m,g=n.titleAttributes;return{base:Ii(st.BASE,r,s),bodyAttributes:Ii(Ba.BODY,i,s),htmlAttributes:Ii(Ba.HTML,a,s),link:Ii(st.LINK,o,s),meta:Ii(st.META,c,s),noscript:Ii(st.NOSCRIPT,d,s),script:Ii(st.SCRIPT,f,s),style:Ii(st.STYLE,h,s),title:Ii(st.TITLE,{title:p,titleAttributes:g},s)}},JK=function(n){var r,i;return i=r=(function(s){FK(a,s);function a(){return IK(this,a),MK(this,s.apply(this,arguments))}return a.prototype.shouldComponentUpdate=function(c){return!AK(this.props,c)},a.prototype.mapNestedChildrenToProps=function(c,d){if(!d)return null;switch(c.type){case st.SCRIPT:case st.NOSCRIPT:return{innerHTML:d};case st.STYLE:return{cssText:d}}throw new Error("<"+c.type+" /> elements are self-closing and can not contain children. Refer to our API for more information.")},a.prototype.flattenArrayTypeChildren=function(c){var d,f=c.child,h=c.arrayTypeChildren,m=c.newChildProps,p=c.nestedChildren;return Qn({},h,(d={},d[f.type]=[].concat(h[f.type]||[],[Qn({},m,this.mapNestedChildrenToProps(f,p))]),d))},a.prototype.mapObjectTypeChildren=function(c){var d,f,h=c.child,m=c.newProps,p=c.newChildProps,g=c.nestedChildren;switch(h.type){case st.TITLE:return Qn({},m,(d={},d[h.type]=g,d.titleAttributes=Qn({},p),d));case st.BODY:return Qn({},m,{bodyAttributes:Qn({},p)});case st.HTML:return Qn({},m,{htmlAttributes:Qn({},p)})}return Qn({},m,(f={},f[h.type]=Qn({},p),f))},a.prototype.mapArrayTypeChildrenToProps=function(c,d){var f=Qn({},d);return Object.keys(c).forEach(function(h){var m;f=Qn({},f,(m={},m[h]=c[h],m))}),f},a.prototype.warnOnInvalidChildren=function(c,d){return!0},a.prototype.mapChildrenToProps=function(c,d){var f=this,h={};return Rt.Children.forEach(c,function(m){if(!(!m||!m.props)){var p=m.props,g=p.children,b=uS(p,["children"]),j=QK(b);switch(f.warnOnInvalidChildren(m,g),m.type){case st.LINK:case st.META:case st.NOSCRIPT:case st.SCRIPT:case st.STYLE:h=f.flattenArrayTypeChildren({child:m,arrayTypeChildren:h,newChildProps:j,nestedChildren:g});break;default:d=f.mapObjectTypeChildren({child:m,newProps:d,newChildProps:j,nestedChildren:g});break}}}),d=this.mapArrayTypeChildrenToProps(h,d),d},a.prototype.render=function(){var c=this.props,d=c.children,f=uS(c,["children"]),h=Qn({},f);return d&&(h=this.mapChildrenToProps(d,h)),Rt.createElement(n,h)},RK(a,null,[{key:"canUseDOM",set:function(c){n.canUseDOM=c}}]),a})(Rt.Component),r.propTypes={base:zt.object,bodyAttributes:zt.object,children:zt.oneOfType([zt.arrayOf(zt.node),zt.node]),defaultTitle:zt.string,defer:zt.bool,encodeSpecialCharacters:zt.bool,htmlAttributes:zt.object,link:zt.arrayOf(zt.object),meta:zt.arrayOf(zt.object),noscript:zt.arrayOf(zt.object),onChangeClientState:zt.func,script:zt.arrayOf(zt.object),style:zt.arrayOf(zt.object),title:zt.string,titleAttributes:zt.object,titleTemplate:zt.string},r.defaultProps={defer:!0,encodeSpecialCharacters:!0},r.peek=n.peek,r.rewind=function(){var s=n.rewind();return s||(s=v6({baseTag:[],bodyAttributes:{},htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}})),s},i},ZK=function(){return null},eG=kK(zK,HK,v6)(ZK),gl=JK(eG);gl.renderStatic=gl.rewind;function tG(){const e=jl(),[n,r]=F.useState(!1),[i,s]=F.useState(!0);if(F.useEffect(()=>{(async()=>{try{const d=await ue.auth.me();if((d==null?void 0:d.role)!=="admin"){e(oe("Home"));return}r(!0)}catch{e(oe("Home"))}finally{s(!1)}})()},[e]),i)return t.jsx("div",{className:"pt-20 min-h-screen bg-gray-50 flex items-center justify-center",children:t.jsxs("div",{className:"text-center",children:[t.jsx(Zn,{className:"w-16 h-16 text-gray-400 mx-auto mb-4"}),t.jsx("p",{className:"text-gray-600",children:"Toegang controleren..."})]})});if(!n)return null;const a=[{title:"Cases",description:"Beheer klant case studies",icon:S1,link:oe("AdminCases"),color:"from-blue-500 to-indigo-600"},{title:"Oplossingen",description:"Beheer AI oplossingen & producten",icon:$s,link:oe("AdminOplossingen"),color:"from-blue-600 to-cyan-600"},{title:"Vacatures",description:"Beheer open vacatures",icon:Ka,link:oe("AdminVacatures"),color:"from-purple-500 to-pink-600"},{title:"Trainingen",description:"Beheer trainingsaanbod",icon:pr,link:oe("AdminTrainingen"),color:"from-green-500 to-emerald-600"},{title:"Blog",description:"Beheer blog artikelen",icon:Ut,link:oe("AdminBlog"),color:"from-orange-500 to-red-600"},{title:"Nieuws",description:"Beheer dagelijks AI nieuws",icon:S3,link:oe("AdminNieuws"),color:"from-cyan-500 to-blue-600"},{title:"Reviews",description:"Beheer klantreviews",icon:Fh,link:oe("AdminReviews"),color:"from-yellow-500 to-orange-600"},{title:"Homepage",description:"Beheer homepage secties",icon:Ny,link:oe("AdminHome"),color:"from-teal-500 to-cyan-600"},{title:"Team",description:"Beheer teamleden",icon:zn,link:oe("AdminTeam"),color:"from-indigo-500 to-purple-600"},{title:"Nieuwsbrief",description:"Beheer nieuwsbrief abonnees",icon:Hr,link:oe("AdminNewsletterSubscribers"),color:"from-pink-500 to-rose-600"},{title:"Discovery Formulieren",description:"Bekijk discovery sessie aanvragen",icon:Ut,link:oe("AdminDiscoveryForms"),color:"from-violet-500 to-purple-600"},{title:"EU AI Act Checker",description:"Bekijk EU AI Act analyses",icon:Ut,link:oe("AdminEuAiActSubmissions"),color:"from-blue-500 to-cyan-600"},{title:"AI Impact Scans",description:"Bekijk AI Impact Scan resultaten",icon:Ut,link:oe("AdminImpactScans"),color:"from-emerald-500 to-green-600"},{title:"AI Quiz Resultaten",description:"Bekijk AI Quiz resultaten",icon:Ut,link:oe("AdminAIQuizSubmissions"),color:"from-amber-500 to-yellow-600"}],o=[{title:"Pagina Builder",description:"Bouw en bewerk pagina's",icon:S1,link:oe("AdminPageBuilder"),color:"from-indigo-500 to-purple-600"},{title:"Prompt Library",description:"Beheer AI prompts",icon:Ut,link:oe("AdminPrompts"),color:"from-purple-500 to-pink-600"},{title:"Email Templates",description:"Beheer email templates",icon:Hr,link:oe("AdminEmailTemplates"),color:"from-blue-500 to-cyan-600"},{title:"SEO Tools",description:"Sitemap, robots.txt & SEO",icon:Xc,link:oe("AdminSEO"),color:"from-green-500 to-emerald-600"},{title:"Instellingen",description:"Categorieën & configuratie",icon:Xc,link:oe("AdminSettings"),color:"from-gray-500 to-slate-600"},{title:"Test Scans",description:"Test formulieren met één klik",icon:tI,link:oe("AdminTestScans"),color:"from-red-500 to-orange-600"}];return t.jsxs(t.Fragment,{children:[t.jsx(gl,{children:t.jsx("meta",{name:"robots",content:"noindex, nofollow"})}),t.jsx("div",{className:"pt-20 min-h-screen bg-gradient-to-b from-gray-50 to-white",children:t.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-12",children:[t.jsxs("div",{className:"mb-12 flex items-center justify-between",children:[t.jsxs("div",{children:[t.jsx("h1",{className:"text-4xl font-bold text-gray-900 mb-4",children:"Content Management"}),t.jsx("p",{className:"text-xl text-gray-600",children:"Beheer al je website content op één plek"})]}),t.jsxs(fe,{to:oe("AdminHandleiding"),className:"inline-flex items-center gap-2 px-6 py-3 bg-blue-600 text-white font-semibold rounded-xl hover:bg-blue-700 transition-colors",children:[t.jsx(ll,{className:"w-5 h-5"}),"Handleiding"]})]}),t.jsx("h2",{className:"text-2xl font-bold text-gray-900 mb-6",children:"Content Beheer"}),t.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-6 mb-12",children:a.map((c,d)=>t.jsx(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:d*.1},children:t.jsxs(fe,{to:c.link,className:"block bg-white rounded-2xl p-8 border-2 border-gray-100 hover:border-gray-200 hover:shadow-xl transition-all group",children:[t.jsx("div",{className:`w-16 h-16 bg-gradient-to-br ${c.color} rounded-2xl flex items-center justify-center mb-6 group-hover:scale-110 transition-transform`,children:t.jsx(c.icon,{className:"w-8 h-8 text-white"})}),t.jsx("h3",{className:"text-2xl font-bold text-gray-900 mb-2",children:c.title}),t.jsx("p",{className:"text-gray-600 mb-4",children:c.description}),t.jsxs("div",{className:"flex items-center gap-2 text-gray-900 font-semibold group-hover:gap-3 transition-all",children:["Beheren",t.jsx(He,{className:"w-5 h-5"})]})]})},c.title))}),t.jsx("h2",{className:"text-2xl font-bold text-gray-900 mb-6",children:"Systeem Tools"}),t.jsx("div",{className:"grid md:grid-cols-2 gap-6 mb-12",children:o.map((c,d)=>t.jsx(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:(a.length+d)*.1},children:t.jsxs(fe,{to:c.link,className:"block bg-white rounded-2xl p-8 border-2 border-gray-100 hover:border-gray-200 hover:shadow-xl transition-all group",children:[t.jsx("div",{className:`w-16 h-16 bg-gradient-to-br ${c.color} rounded-2xl flex items-center justify-center mb-6 group-hover:scale-110 transition-transform`,children:t.jsx(c.icon,{className:"w-8 h-8 text-white"})}),t.jsx("h3",{className:"text-2xl font-bold text-gray-900 mb-2",children:c.title}),t.jsx("p",{className:"text-gray-600 mb-4",children:c.description}),t.jsxs("div",{className:"flex items-center gap-2 text-gray-900 font-semibold group-hover:gap-3 transition-all",children:["Openen",t.jsx(He,{className:"w-5 h-5"})]})]})},c.title))}),t.jsxs("div",{className:"mt-16 grid grid-cols-2 md:grid-cols-5 gap-6",children:[t.jsxs("div",{className:"bg-white rounded-xl p-6 border border-gray-100",children:[t.jsx("p",{className:"text-sm text-gray-600 mb-1",children:"Total Cases"}),t.jsx("p",{className:"text-3xl font-bold text-gray-900",children:"12"})]}),t.jsxs("div",{className:"bg-white rounded-xl p-6 border border-gray-100",children:[t.jsx("p",{className:"text-sm text-gray-600 mb-1",children:"Vacatures"}),t.jsx("p",{className:"text-3xl font-bold text-gray-900",children:"5"})]}),t.jsxs("div",{className:"bg-white rounded-xl p-6 border border-gray-100",children:[t.jsx("p",{className:"text-sm text-gray-600 mb-1",children:"Trainingen"}),t.jsx("p",{className:"text-3xl font-bold text-gray-900",children:"18"})]}),t.jsxs("div",{className:"bg-white rounded-xl p-6 border border-gray-100",children:[t.jsx("p",{className:"text-sm text-gray-600 mb-1",children:"Blog Posts"}),t.jsx("p",{className:"text-3xl font-bold text-gray-900",children:"24"})]}),t.jsxs("div",{className:"bg-white rounded-xl p-6 border border-gray-100",children:[t.jsx("p",{className:"text-sm text-gray-600 mb-1",children:"Nieuws Items"}),t.jsx("p",{className:"text-3xl font-bold text-gray-900",children:"156"})]})]})]})})]})}const pt=F.forwardRef(({className:e,...n},r)=>t.jsx("textarea",{className:Gt("flex min-h-[120px] w-full bg-white px-4 py-3 text-base transition-colors placeholder:text-[#9CA3AF] focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50","border-b-2 border-gray-200 focus-visible:border-[#FAB868]","rounded-none resize-none",e),ref:r,...n}));pt.displayName="Textarea";const nG={lessThanXSeconds:{one:"minder dan een seconde",other:"minder dan {{count}} seconden"},xSeconds:{one:"1 seconde",other:"{{count}} seconden"},halfAMinute:"een halve minuut",lessThanXMinutes:{one:"minder dan een minuut",other:"minder dan {{count}} minuten"},xMinutes:{one:"een minuut",other:"{{count}} minuten"},aboutXHours:{one:"ongeveer 1 uur",other:"ongeveer {{count}} uur"},xHours:{one:"1 uur",other:"{{count}} uur"},xDays:{one:"1 dag",other:"{{count}} dagen"},aboutXWeeks:{one:"ongeveer 1 week",other:"ongeveer {{count}} weken"},xWeeks:{one:"1 week",other:"{{count}} weken"},aboutXMonths:{one:"ongeveer 1 maand",other:"ongeveer {{count}} maanden"},xMonths:{one:"1 maand",other:"{{count}} maanden"},aboutXYears:{one:"ongeveer 1 jaar",other:"ongeveer {{count}} jaar"},xYears:{one:"1 jaar",other:"{{count}} jaar"},overXYears:{one:"meer dan 1 jaar",other:"meer dan {{count}} jaar"},almostXYears:{one:"bijna 1 jaar",other:"bijna {{count}} jaar"}},rG=(e,n,r)=>{let i;const s=nG[e];return typeof s=="string"?i=s:n===1?i=s.one:i=s.other.replace("{{count}}",String(n)),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"over "+i:i+" geleden":i},iG={full:"EEEE d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"dd-MM-y"},sG={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},aG={full:"{{date}} 'om' {{time}}",long:"{{date}} 'om' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},oG={date:$o({formats:iG,defaultWidth:"full"}),time:$o({formats:sG,defaultWidth:"full"}),dateTime:$o({formats:aG,defaultWidth:"full"})},lG={lastWeek:"'afgelopen' eeee 'om' p",yesterday:"'gisteren om' p",today:"'vandaag om' p",tomorrow:"'morgen om' p",nextWeek:"eeee 'om' p",other:"P"},cG=(e,n,r,i)=>lG[e],uG={narrow:["v.C.","n.C."],abbreviated:["v.Chr.","n.Chr."],wide:["voor Christus","na Christus"]},dG={narrow:["1","2","3","4"],abbreviated:["K1","K2","K3","K4"],wide:["1e kwartaal","2e kwartaal","3e kwartaal","4e kwartaal"]},hG={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["jan.","feb.","mrt.","apr.","mei","jun.","jul.","aug.","sep.","okt.","nov.","dec."],wide:["januari","februari","maart","april","mei","juni","juli","augustus","september","oktober","november","december"]},fG={narrow:["Z","M","D","W","D","V","Z"],short:["zo","ma","di","wo","do","vr","za"],abbreviated:["zon","maa","din","woe","don","vri","zat"],wide:["zondag","maandag","dinsdag","woensdag","donderdag","vrijdag","zaterdag"]},mG={narrow:{am:"AM",pm:"PM",midnight:"middernacht",noon:"het middaguur",morning:"'s ochtends",afternoon:"'s middags",evening:"'s avonds",night:"'s nachts"},abbreviated:{am:"AM",pm:"PM",midnight:"middernacht",noon:"het middaguur",morning:"'s ochtends",afternoon:"'s middags",evening:"'s avonds",night:"'s nachts"},wide:{am:"AM",pm:"PM",midnight:"middernacht",noon:"het middaguur",morning:"'s ochtends",afternoon:"'s middags",evening:"'s avonds",night:"'s nachts"}},pG=(e,n)=>Number(e)+"e",gG={ordinalNumber:pG,era:oi({values:uG,defaultWidth:"wide"}),quarter:oi({values:dG,defaultWidth:"wide",argumentCallback:e=>e-1}),month:oi({values:hG,defaultWidth:"wide"}),day:oi({values:fG,defaultWidth:"wide"}),dayPeriod:oi({values:mG,defaultWidth:"wide"})},xG=/^(\d+)e?/i,yG=/\d+/i,vG={narrow:/^([vn]\.? ?C\.?)/,abbreviated:/^([vn]\. ?Chr\.?)/,wide:/^((voor|na) Christus)/},bG={any:[/^v/,/^n/]},jG={narrow:/^[1234]/i,abbreviated:/^K[1234]/i,wide:/^[1234]e kwartaal/i},wG={any:[/1/i,/2/i,/3/i,/4/i]},NG={narrow:/^[jfmasond]/i,abbreviated:/^(jan.|feb.|mrt.|apr.|mei|jun.|jul.|aug.|sep.|okt.|nov.|dec.)/i,wide:/^(januari|februari|maart|april|mei|juni|juli|augustus|september|oktober|november|december)/i},kG={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^jan/i,/^feb/i,/^m(r|a)/i,/^apr/i,/^mei/i,/^jun/i,/^jul/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i]},_G={narrow:/^[zmdwv]/i,short:/^(zo|ma|di|wo|do|vr|za)/i,abbreviated:/^(zon|maa|din|woe|don|vri|zat)/i,wide:/^(zondag|maandag|dinsdag|woensdag|donderdag|vrijdag|zaterdag)/i},SG={narrow:[/^z/i,/^m/i,/^d/i,/^w/i,/^d/i,/^v/i,/^z/i],any:[/^zo/i,/^ma/i,/^di/i,/^wo/i,/^do/i,/^vr/i,/^za/i]},AG={any:/^(am|pm|middernacht|het middaguur|'s (ochtends|middags|avonds|nachts))/i},CG={any:{am:/^am/i,pm:/^pm/i,midnight:/^middernacht/i,noon:/^het middaguur/i,morning:/ochtend/i,afternoon:/middag/i,evening:/avond/i,night:/nacht/i}},EG={ordinalNumber:IE({matchPattern:xG,parsePattern:yG,valueCallback:e=>parseInt(e,10)}),era:li({matchPatterns:vG,defaultMatchWidth:"wide",parsePatterns:bG,defaultParseWidth:"any"}),quarter:li({matchPatterns:jG,defaultMatchWidth:"wide",parsePatterns:wG,defaultParseWidth:"any",valueCallback:e=>e+1}),month:li({matchPatterns:NG,defaultMatchWidth:"wide",parsePatterns:kG,defaultParseWidth:"any"}),day:li({matchPatterns:_G,defaultMatchWidth:"wide",parsePatterns:SG,defaultParseWidth:"any"}),dayPeriod:li({matchPatterns:AG,defaultMatchWidth:"any",parsePatterns:CG,defaultParseWidth:"any"})},Aa={code:"nl",formatDistance:rG,formatLong:oG,formatRelative:cG,localize:gG,match:EG,options:{weekStartsOn:1,firstWeekContainsDate:4}};function TG(){var g,b,j,y;const[e,n]=F.useState(null),[r,i]=F.useState("all"),s=Yt(),{data:a}=ze({queryKey:["current-user"],queryFn:()=>ue.auth.me()}),{data:o=[],isLoading:c}=ze({queryKey:["discovery-submissions",r],queryFn:async()=>r==="all"?ue.entities.DiscoveryFormSubmission.list("-created_date"):ue.entities.DiscoveryFormSubmission.filter({status:r},"-created_date")}),d=Me({mutationFn:({id:x,status:N,notities:w})=>ue.entities.DiscoveryFormSubmission.update(x,{status:N,interne_notities:w}),onSuccess:()=>{s.invalidateQueries({queryKey:["discovery-submissions"]})}}),f=Me({mutationFn:x=>ue.entities.DiscoveryFormSubmission.delete(x),onSuccess:()=>{s.invalidateQueries({queryKey:["discovery-submissions"]}),n(null)}}),h=()=>{const x=["Datum","Bedrijf","Contactpersoon","Email","Telefoon","Sector","Medewerkers","Status","Urgentie","Budget"],N=o.map(S=>[_t(new Date(S.created_date),"dd-MM-yyyy HH:mm",{locale:Aa}),S.bedrijfsnaam||"",S.contactpersonen||"",S.email||"",S.telefoon||"",S.sector||"",S.aantal_medewerkers||"",S.status||"",S.urgentie||"",S.budget_range||""]),w=[x.join(","),...N.map(S=>S.map(E=>`"${E}"`).join(","))].join(`
`),k=new Blob([w],{type:"text/csv;charset=utf-8;"}),A=document.createElement("a");A.href=URL.createObjectURL(k),A.download=`discovery-scans-${_t(new Date,"yyyy-MM-dd")}.csv`,A.click()},m=x=>{var A,S,E,C;const N=`# Discovery Scan - ${x.bedrijfsnaam}

**Datum:** ${_t(new Date(x.created_date),"dd MMMM yyyy HH:mm",{locale:Aa})}  
**Status:** ${x.status||"nieuw"}

---

## Bedrijfsgegevens

- **Bedrijfsnaam:** ${x.bedrijfsnaam||"-"}
- **Contactpersonen:** ${x.contactpersonen||"-"}
- **Functies:** ${x.functies||"-"}
- **Email:** ${x.email||"-"}
- **Telefoon:** ${x.telefoon||"-"}
- **Sector:** ${x.sector||"-"}
- **Aantal medewerkers:** ${x.aantal_medewerkers||"-"}
- **Omzet range:** ${x.omzet_range||"-"}

**Kernactiviteit:**  
${x.kernactiviteit||"-"}

---

## Huidige Situatie

**TOP 3 Frustraties/Knelpunten:**

1. ${x.frustratie_1||"-"}
2. ${x.frustratie_2||"-"}
3. ${x.frustratie_3||"-"}

**Meest tijdrovende activiteit:**  
${x.tijdrovende_activiteit||"-"}

**Tijdsbesteding per week:**  
${x.tijdsbesteding_uren||"-"}

**Gemiste kansen:**  
${x.gemiste_kansen||"-"}

---

## Systemen & Data

**Gebruikte systemen:**  
${((A=x.gebruikte_systemen)==null?void 0:A.join(", "))||"-"}

**Systemen gekoppeld:**  
${x.systemen_gekoppeld||"-"}

**Bedrijfskennis locatie:**  
${((S=x.bedrijfskennis_locatie)==null?void 0:S.join(", "))||"-"}

**Informatie vindbaarheid:**  
${x.informatie_vindbaarheid||"-"}

---

## AI-Readiness

**AI gebruik:**  
${x.ai_gebruik||"-"}

**AI tools:**  
${x.ai_tools_welke||"-"}

**AI ervaring:**  
${x.ai_ervaring||"-"}

**Management houding:**  
${x.management_houding||"-"}

**Medewerkers houding:**  
${x.medewerkers_houding||"-"}

**AI zorgen:**  
${x.ai_zorgen||"-"}

---

## Doelen & Verwachtingen

**Redenen contact:**  
${((E=x.redenen_contact)==null?void 0:E.join(", "))||"-"}

**Succesvol resultaat (6-12 maanden):**  
${x.succesvol_resultaat||"-"}

**Urgentie:**  
${x.urgentie||"-"}

**Budget beschikbaar:**  
${x.budget_beschikbaar||"-"}

**Budget range:**  
${x.budget_range||"-"}

---

## Discovery Sessie

**Aanwezigen:**  
${x.aanwezigen||"-"}

**Specifieke onderwerpen:**  
${x.specifieke_onderwerpen||"-"}

**Te delen documenten:**  
${x.te_delen_documenten||"-"}

${((C=x.geupload_documenten)==null?void 0:C.length)>0?`**Geüploade documenten:**
${x.geupload_documenten.map(B=>`- ${B}`).join(`
`)}`:""}

---

## Aanvullende Informatie

${x.overige_informatie||"-"}

---

## Interne Notities

${x.interne_notities||"-"}

---

*Gegenereerd op ${_t(new Date,"dd MMMM yyyy HH:mm",{locale:Aa})}*
`,w=new Blob([N],{type:"text/markdown;charset=utf-8;"}),k=document.createElement("a");k.href=URL.createObjectURL(w),k.download=`discovery-scan-${x.bedrijfsnaam.replace(/[^a-z0-9]/gi,"-").toLowerCase()}-${_t(new Date(x.created_date),"yyyy-MM-dd")}.md`,k.click()},p=x=>{confirm("Weet je zeker dat je deze inzending wilt verwijderen? Dit kan niet ongedaan worden gemaakt.")&&f.mutate(x)};return!a||a.role!=="admin"?t.jsx("div",{className:"min-h-screen bg-gray-50 flex items-center justify-center p-4",children:t.jsxs("div",{className:"bg-white rounded-xl shadow-lg p-8 text-center",children:[t.jsx("h2",{className:"text-2xl font-bold mb-4",children:"Geen toegang"}),t.jsx("p",{className:"text-gray-600",children:"Deze pagina is alleen toegankelijk voor admins."})]})}):c?t.jsx("div",{className:"min-h-screen bg-gray-50 flex items-center justify-center",children:t.jsx(SA,{className:"w-8 h-8 animate-spin text-[#FAB868]"})}):t.jsx("div",{className:"min-h-screen bg-gray-50 py-8",children:t.jsxs("div",{className:"max-w-7xl mx-auto px-4",children:[t.jsxs("div",{className:"mb-8",children:[t.jsx("h1",{className:"text-3xl font-bold mb-2",children:"Discovery Form Inzendingen"}),t.jsx("p",{className:"text-gray-600",children:"Bekijk en beheer ingevulde discovery scans"})]}),t.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 mb-6",children:[t.jsxs("div",{className:"flex gap-2",children:[t.jsxs(se,{variant:r==="all"?"default":"outline",onClick:()=>i("all"),children:["Alles (",o.length,")"]}),t.jsx(se,{variant:r==="nieuw"?"default":"outline",onClick:()=>i("nieuw"),children:"Nieuw"}),t.jsx(se,{variant:r==="bekeken"?"default":"outline",onClick:()=>i("bekeken"),children:"Bekeken"})]}),t.jsxs(se,{onClick:h,variant:"outline",className:"sm:ml-auto",children:[t.jsx(vu,{className:"w-4 h-4 mr-2"}),"Export CSV"]})]}),t.jsx("div",{className:"grid gap-4",children:o.length===0?t.jsxs("div",{className:"bg-white rounded-xl shadow p-8 text-center",children:[t.jsx(Ut,{className:"w-12 h-12 text-gray-400 mx-auto mb-4"}),t.jsx("p",{className:"text-gray-600",children:"Nog geen discovery scans ontvangen"})]}):o.map(x=>t.jsx("div",{className:"bg-white rounded-xl shadow hover:shadow-lg transition-shadow p-6",children:t.jsxs("div",{className:"flex items-start justify-between",children:[t.jsxs("div",{className:"flex-1",children:[t.jsxs("div",{className:"flex items-center gap-3 mb-3",children:[t.jsx("h3",{className:"text-xl font-bold",children:x.bedrijfsnaam}),t.jsx("span",{className:`px-3 py-1 rounded-full text-xs font-semibold ${x.status==="nieuw"?"bg-blue-100 text-blue-700":x.status==="bekeken"?"bg-yellow-100 text-yellow-700":x.status==="sessie_gepland"?"bg-green-100 text-green-700":"bg-gray-100 text-gray-700"}`,children:x.status||"nieuw"})]}),t.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-2 text-sm text-gray-600 mb-4",children:[t.jsxs("div",{className:"flex items-center gap-2",children:[t.jsx(Ga,{className:"w-4 h-4"}),x.contactpersonen," (",x.functies||"Geen functie",")"]}),t.jsxs("div",{className:"flex items-center gap-2",children:[t.jsx(Hr,{className:"w-4 h-4"}),x.email]}),x.telefoon&&t.jsxs("div",{className:"flex items-center gap-2",children:[t.jsx(X0,{className:"w-4 h-4"}),x.telefoon]}),t.jsxs("div",{className:"flex items-center gap-2",children:[t.jsx($r,{className:"w-4 h-4"}),_t(new Date(x.created_date),"dd MMM yyyy HH:mm",{locale:Aa})]})]}),x.sector&&t.jsxs("p",{className:"text-sm text-gray-600 mb-2",children:[t.jsx("strong",{children:"Sector:"})," ",x.sector]}),x.urgentie&&t.jsxs("p",{className:"text-sm text-gray-600",children:[t.jsx("strong",{children:"Urgentie:"})," ",x.urgentie]})]}),t.jsxs(se,{onClick:()=>n(x),size:"sm",variant:"outline",children:[t.jsx(Bs,{className:"w-4 h-4 mr-2"}),"Bekijk Details"]})]})},x.id))}),e&&t.jsx("div",{className:"fixed inset-0 bg-black/50 flex items-start justify-center p-4 z-[200] overflow-y-auto pt-24",children:t.jsxs("div",{className:"bg-white rounded-2xl max-w-4xl w-full my-8 max-h-[calc(100vh-8rem)] overflow-y-auto shadow-2xl",children:[t.jsxs("div",{className:"sticky top-0 bg-white border-b px-6 py-4 flex items-center justify-between",children:[t.jsx("h2",{className:"text-2xl font-bold",children:e.bedrijfsnaam}),t.jsxs("div",{className:"flex items-center gap-2",children:[t.jsxs(se,{variant:"outline",size:"sm",onClick:()=>m(e),children:[t.jsx(G5,{className:"w-4 h-4 mr-2"}),"Export MD"]}),t.jsxs(se,{variant:"outline",size:"sm",onClick:()=>p(e.id),className:"text-red-600 hover:text-red-700 hover:bg-red-50",children:[t.jsx(wt,{className:"w-4 h-4 mr-2"}),"Verwijder"]}),t.jsx(se,{variant:"ghost",size:"sm",onClick:()=>n(null),children:t.jsx(rn,{className:"w-5 h-5"})})]})]}),t.jsxs("div",{className:"p-6 space-y-6",children:[t.jsxs("div",{className:"bg-gray-50 rounded-xl p-4",children:[t.jsx("label",{className:"block font-semibold mb-2",children:"Status"}),t.jsx("div",{className:"flex gap-2 mb-3",children:["nieuw","bekeken","sessie_gepland","afgerond"].map(x=>t.jsx(se,{size:"sm",variant:e.status===x?"default":"outline",onClick:()=>{d.mutate({id:e.id,status:x,notities:e.interne_notities}),n({...e,status:x})},children:x},x))}),t.jsx("label",{className:"block font-semibold mb-2",children:"Interne Notities"}),t.jsx(pt,{value:e.interne_notities||"",onChange:x=>n({...e,interne_notities:x.target.value}),rows:3,placeholder:"Voeg interne notities toe..."}),t.jsx(se,{size:"sm",className:"mt-2",onClick:()=>{d.mutate({id:e.id,status:e.status,notities:e.interne_notities})},children:"Opslaan"})]}),t.jsxs(va,{title:"Bedrijfsgegevens",children:[t.jsx(gt,{label:"Bedrijfsnaam",value:e.bedrijfsnaam}),t.jsx(gt,{label:"Contactpersonen",value:e.contactpersonen}),t.jsx(gt,{label:"Functies",value:e.functies}),t.jsx(gt,{label:"Email",value:e.email}),t.jsx(gt,{label:"Telefoon",value:e.telefoon}),t.jsx(gt,{label:"Sector",value:e.sector}),t.jsx(gt,{label:"Aantal medewerkers",value:e.aantal_medewerkers}),t.jsx(gt,{label:"Omzet range",value:e.omzet_range}),t.jsx(gt,{label:"Kernactiviteit",value:e.kernactiviteit})]}),t.jsxs(va,{title:"Huidige Situatie",children:[t.jsx(gt,{label:"Frustratie 1",value:e.frustratie_1}),t.jsx(gt,{label:"Frustratie 2",value:e.frustratie_2}),t.jsx(gt,{label:"Frustratie 3",value:e.frustratie_3}),t.jsx(gt,{label:"Tijdrovende activiteit",value:e.tijdrovende_activiteit}),t.jsx(gt,{label:"Tijdsbesteding",value:e.tijdsbesteding_uren}),t.jsx(gt,{label:"Gemiste kansen",value:e.gemiste_kansen})]}),t.jsxs(va,{title:"Systemen & Data",children:[t.jsx(gt,{label:"Gebruikte systemen",value:(g=e.gebruikte_systemen)==null?void 0:g.join(", ")}),t.jsx(gt,{label:"Systemen gekoppeld",value:e.systemen_gekoppeld}),t.jsx(gt,{label:"Bedrijfskennis locatie",value:(b=e.bedrijfskennis_locatie)==null?void 0:b.join(", ")}),t.jsx(gt,{label:"Informatie vindbaarheid",value:e.informatie_vindbaarheid})]}),t.jsxs(va,{title:"AI-Readiness",children:[t.jsx(gt,{label:"AI gebruik",value:e.ai_gebruik}),t.jsx(gt,{label:"AI tools",value:e.ai_tools_welke}),t.jsx(gt,{label:"AI ervaring",value:e.ai_ervaring}),t.jsx(gt,{label:"Management houding",value:e.management_houding}),t.jsx(gt,{label:"Medewerkers houding",value:e.medewerkers_houding}),t.jsx(gt,{label:"AI zorgen",value:e.ai_zorgen})]}),t.jsxs(va,{title:"Doelen & Verwachtingen",children:[t.jsx(gt,{label:"Redenen contact",value:(j=e.redenen_contact)==null?void 0:j.join(", ")}),t.jsx(gt,{label:"Succesvol resultaat",value:e.succesvol_resultaat}),t.jsx(gt,{label:"Urgentie",value:e.urgentie}),t.jsx(gt,{label:"Budget beschikbaar",value:e.budget_beschikbaar}),t.jsx(gt,{label:"Budget range",value:e.budget_range})]}),t.jsxs(va,{title:"Discovery Sessie",children:[t.jsx(gt,{label:"Aanwezigen",value:e.aanwezigen}),t.jsx(gt,{label:"Specifieke onderwerpen",value:e.specifieke_onderwerpen}),t.jsx(gt,{label:"Te delen documenten",value:e.te_delen_documenten}),((y=e.geupload_documenten)==null?void 0:y.length)>0&&t.jsxs("div",{children:[t.jsx("span",{className:"font-semibold text-sm text-gray-600",children:"Geüploade documenten:"}),t.jsx("div",{className:"mt-2 space-y-2",children:e.geupload_documenten.map((x,N)=>t.jsxs("a",{href:x,target:"_blank",rel:"noopener noreferrer",className:"block text-blue-600 hover:underline text-sm",children:["📎 ",x.split("/").pop()]},N))})]})]}),t.jsx(va,{title:"Aanvullende Informatie",children:t.jsx(gt,{label:"Overige informatie",value:e.overige_informatie})})]})]})})]})})}function va({title:e,children:n}){return t.jsxs("div",{className:"border-l-4 border-[#FAB868] pl-4",children:[t.jsx("h3",{className:"font-bold text-lg mb-3",children:e}),t.jsx("div",{className:"space-y-2",children:n})]})}function gt({label:e,value:n}){return!n||Array.isArray(n)&&n.length===0?null:t.jsxs("div",{children:[t.jsxs("span",{className:"font-semibold text-sm text-gray-600",children:[e,":"]}),t.jsx("p",{className:"text-gray-900 mt-1",children:n})]})}function PG(){const e=Yt(),[n,r]=F.useState(null),[i,s]=F.useState({template_key:"",name:"",subject:"",body_html:"",description:"",available_placeholders:[],active:!0}),[a,o]=F.useState(!1),[c,d]=F.useState(!1),{data:f=[],isLoading:h}=ze({queryKey:["email-templates"],queryFn:()=>ue.entities.EmailTemplate.list()}),m=Me({mutationFn:w=>ue.entities.EmailTemplate.create(w),onSuccess:()=>{e.invalidateQueries({queryKey:["email-templates"]}),y()}}),p=Me({mutationFn:({id:w,data:k})=>ue.entities.EmailTemplate.update(w,k),onSuccess:()=>{e.invalidateQueries({queryKey:["email-templates"]}),y()}}),g=Me({mutationFn:w=>ue.entities.EmailTemplate.delete(w),onSuccess:()=>{e.invalidateQueries({queryKey:["email-templates"]})}}),b=w=>{r(w),s({template_key:w.template_key,name:w.name,subject:w.subject,body_html:w.body_html,description:w.description||"",available_placeholders:w.available_placeholders||[],active:w.active!==!1}),o(!0)},j=async w=>{w.preventDefault(),n?await p.mutateAsync({id:n.id,data:i}):await m.mutateAsync(i)},y=()=>{r(null),s({template_key:"",name:"",subject:"",body_html:"",description:"",available_placeholders:[],active:!0}),o(!1)},x=async w=>{window.confirm("Weet je zeker dat je deze template wilt verwijderen?")&&await g.mutateAsync(w)},N=[{template_key:"contact_form",name:"Contact Formulier Bevestiging",description:"Bevestiging na contact formulier inzending",available_placeholders:["{{name}}","{{email}}","{{company}}","{{subject}}","{{message}}"]},{template_key:"impact_report_v2",name:"AI Impact Rapport Email",description:"Email met link naar AI Impact Rapport",available_placeholders:["{{name}}","{{email}}","{{company_name}}","{{report_link}}"]},{template_key:"eu_ai_act_report",name:"EU AI Act Rapport Email",description:"Email met EU AI Act analyse PDF",available_placeholders:["{{name}}","{{email}}","{{company}}"]}];return a?t.jsx("div",{className:"min-h-screen bg-gray-50 py-8",children:t.jsxs("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8",children:[t.jsxs("div",{className:"mb-6",children:[t.jsxs(se,{variant:"ghost",onClick:y,className:"mb-4",children:[t.jsx(ht,{className:"w-4 h-4 mr-2"}),"Terug naar overzicht"]}),t.jsx("h1",{className:"text-3xl font-bold text-gray-900",children:n?"Template Bewerken":"Nieuwe Template"})]}),t.jsxs("form",{onSubmit:j,className:"bg-white rounded-xl p-8 space-y-6",children:[t.jsxs("div",{className:"grid md:grid-cols-2 gap-6",children:[t.jsxs("div",{children:[t.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Template Key *"}),t.jsx(me,{required:!0,value:i.template_key,onChange:w=>s({...i,template_key:w.target.value}),placeholder:"contact_form",disabled:!!n}),t.jsx("p",{className:"text-xs text-gray-500 mt-1",children:"Unieke identifier (niet meer aan te passen na aanmaken)"})]}),t.jsxs("div",{children:[t.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Naam *"}),t.jsx(me,{required:!0,value:i.name,onChange:w=>s({...i,name:w.target.value}),placeholder:"Contact Formulier Bevestiging"})]})]}),t.jsxs("div",{children:[t.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Beschrijving"}),t.jsx(me,{value:i.description,onChange:w=>s({...i,description:w.target.value}),placeholder:"Wordt verzonden na..."})]}),t.jsxs("div",{children:[t.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Email Onderwerp *"}),t.jsx(me,{required:!0,value:i.subject,onChange:w=>s({...i,subject:w.target.value}),placeholder:"Je aanvraag is ontvangen"}),t.jsxs("p",{className:"text-xs text-gray-500 mt-1",children:["Gebruik placeholders zoals ","{{name}}"," of ","{{company}}"]})]}),t.jsxs("div",{children:[t.jsxs("div",{className:"flex items-center justify-between mb-2",children:[t.jsx("label",{className:"block text-sm font-medium text-gray-700",children:"Email Body (HTML) *"}),t.jsxs(se,{type:"button",variant:"outline",size:"sm",onClick:()=>d(!c),children:[t.jsx(Bs,{className:"w-4 h-4 mr-2"}),c?"Bewerken":"Preview"]})]}),c?t.jsx("div",{className:"border border-gray-200 rounded-lg p-4 bg-white min-h-[400px]",children:t.jsx("div",{dangerouslySetInnerHTML:{__html:i.body_html}})}):t.jsx(pt,{required:!0,value:i.body_html,onChange:w=>s({...i,body_html:w.target.value}),placeholder:"<h2>Hallo {{name}},</h2><p>Bedankt voor je bericht...</p>",className:"font-mono text-sm min-h-[400px]"}),t.jsx("p",{className:"text-xs text-gray-500 mt-1",children:"HTML formaat. Gebruik placeholders voor dynamische content."})]}),t.jsxs("div",{children:[t.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Beschikbare Placeholders"}),t.jsx(me,{value:i.available_placeholders.join(", "),onChange:w=>s({...i,available_placeholders:w.target.value.split(",").map(k=>k.trim()).filter(Boolean)}),placeholder:"{{name}}, {{email}}, {{company}}"}),t.jsx("p",{className:"text-xs text-gray-500 mt-1",children:"Komma gescheiden (voor documentatie)"})]}),t.jsxs("div",{className:"flex items-center gap-2",children:[t.jsx("input",{type:"checkbox",checked:i.active,onChange:w=>s({...i,active:w.target.checked}),className:"w-4 h-4 text-blue-600 rounded"}),t.jsx("label",{className:"text-sm font-medium text-gray-700",children:"Template actief"})]}),t.jsxs("div",{className:"flex gap-3 pt-4 border-t border-gray-200",children:[t.jsx(se,{type:"button",variant:"outline",onClick:y,children:"Annuleren"}),t.jsxs(se,{type:"submit",className:"bg-blue-600 hover:bg-blue-700",children:[t.jsx(kn,{className:"w-4 h-4 mr-2"}),"Opslaan"]})]})]})]})}):t.jsx("div",{className:"min-h-screen bg-gray-50 py-8",children:t.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[t.jsxs("div",{className:"flex items-center justify-between mb-8",children:[t.jsxs("div",{children:[t.jsxs(fe,{to:oe("AdminDashboard"),className:"inline-flex items-center text-blue-600 hover:text-blue-700 mb-4",children:[t.jsx(ht,{className:"w-4 h-4 mr-2"}),"Terug naar Dashboard"]}),t.jsx("h1",{className:"text-3xl font-bold text-gray-900",children:"Email Templates"}),t.jsx("p",{className:"text-gray-600 mt-2",children:"Beheer email templates voor geautomatiseerde mails"})]}),t.jsxs(se,{onClick:()=>o(!0),className:"bg-blue-600 hover:bg-blue-700",children:[t.jsx(Pt,{className:"w-4 h-4 mr-2"}),"Nieuwe Template"]})]}),f.length===0&&!h&&t.jsxs("div",{className:"bg-yellow-50 border border-yellow-200 rounded-xl p-6 mb-6",children:[t.jsx("h3",{className:"font-semibold text-yellow-900 mb-2",children:"Geen templates gevonden"}),t.jsx("p",{className:"text-yellow-800 mb-4",children:"Maak templates aan voor de volgende emails:"}),t.jsx("div",{className:"space-y-2",children:N.map(w=>t.jsx("div",{className:"bg-white rounded-lg p-4",children:t.jsxs("div",{className:"flex items-center justify-between",children:[t.jsxs("div",{children:[t.jsx("p",{className:"font-semibold text-gray-900",children:w.name}),t.jsx("p",{className:"text-sm text-gray-600",children:w.description}),t.jsxs("p",{className:"text-xs text-gray-500 mt-1",children:["Key: ",t.jsx("code",{className:"bg-gray-100 px-2 py-0.5 rounded",children:w.template_key})]}),t.jsxs("p",{className:"text-xs text-gray-500 mt-1",children:["Placeholders: ",w.available_placeholders.join(", ")]})]}),t.jsx(se,{variant:"outline",onClick:()=>{s({...i,template_key:w.template_key,name:w.name,description:w.description,available_placeholders:w.available_placeholders}),o(!0)},children:"Aanmaken"})]})},w.template_key))})]}),h?t.jsxs("div",{className:"text-center py-12",children:[t.jsx("div",{className:"animate-spin w-8 h-8 border-4 border-blue-600 border-t-transparent rounded-full mx-auto mb-4"}),t.jsx("p",{className:"text-gray-600",children:"Templates laden..."})]}):t.jsx("div",{className:"grid gap-6",children:f.map(w=>t.jsxs("div",{className:"bg-white rounded-xl p-6 border border-gray-200",children:[t.jsxs("div",{className:"flex items-start justify-between mb-4",children:[t.jsxs("div",{className:"flex-1",children:[t.jsxs("div",{className:"flex items-center gap-3 mb-2",children:[t.jsx(Hr,{className:"w-5 h-5 text-blue-600"}),t.jsx("h3",{className:"text-xl font-bold text-gray-900",children:w.name}),!w.active&&t.jsx("span",{className:"px-2 py-1 bg-gray-200 text-gray-700 text-xs rounded-full",children:"Inactief"})]}),w.description&&t.jsx("p",{className:"text-gray-600 mb-2",children:w.description}),t.jsxs("p",{className:"text-sm text-gray-500 mb-2",children:["Key: ",t.jsx("code",{className:"bg-gray-100 px-2 py-0.5 rounded text-xs",children:w.template_key})]}),t.jsx("p",{className:"text-sm font-medium text-gray-700 mb-1",children:"Onderwerp:"}),t.jsx("p",{className:"text-gray-600 mb-3",children:w.subject}),w.available_placeholders&&w.available_placeholders.length>0&&t.jsxs("div",{children:[t.jsx("p",{className:"text-sm font-medium text-gray-700 mb-1",children:"Beschikbare placeholders:"}),t.jsx("div",{className:"flex flex-wrap gap-2",children:w.available_placeholders.map((k,A)=>t.jsx("code",{className:"bg-blue-50 text-blue-700 px-2 py-1 rounded text-xs",children:k},A))})]})]}),t.jsxs("div",{className:"flex gap-2 ml-4",children:[t.jsx(se,{variant:"outline",onClick:()=>b(w),children:"Bewerken"}),t.jsx(se,{variant:"outline",onClick:()=>x(w.id),className:"text-red-600 hover:text-red-700 hover:bg-red-50",children:t.jsx(wt,{className:"w-4 h-4"})})]})]}),t.jsxs("details",{className:"mt-4",children:[t.jsx("summary",{className:"cursor-pointer text-sm font-medium text-gray-700 hover:text-gray-900",children:"Bekijk HTML preview"}),t.jsx("div",{className:"mt-3 p-4 bg-gray-50 rounded-lg border border-gray-200 max-h-96 overflow-y-auto",children:t.jsx("div",{dangerouslySetInnerHTML:{__html:w.body_html}})})]})]},w.id))})]})})}function OG(){var j;const e=jl(),[n,r]=F.useState(!1),[i,s]=F.useState(!0),[a,o]=F.useState(null),c=Yt();F.useEffect(()=>{(async()=>{try{const x=await ue.auth.me();if((x==null?void 0:x.role)!=="admin"){e(oe("Home"));return}r(!0)}catch{e(oe("Home"))}finally{s(!1)}})()},[e]);const{data:d=[],isLoading:f}=ze({queryKey:["eu-ai-act-submissions"],queryFn:()=>ue.entities.EuAiActSubmission.list("-created_date")}),{data:h=[],isLoading:m}=ze({queryKey:["eu-ai-act-requests"],queryFn:()=>ue.entities.EuAiActRequest.list("-created_date")}),p=f||m,g=Me({mutationFn:y=>ue.entities.EuAiActSubmission.delete(y),onSuccess:()=>{c.invalidateQueries({queryKey:["eu-ai-act-submissions"]}),o(null)}}),b=()=>{const y=[["Email","Bedrijf","Website","Rapport Link","Email Verzonden","Datum"],...d.map(w=>{var k;return[w.submitted_by_email||"",((k=w.analysis_result)==null?void 0:k.company_name)||w.company_name||"",w.website_url||w.company_url||"",`https://www.48-7.nl/eu-ai-act-checker?report_id=${w.id}`,w.email_sent?"Ja":"Nee",_t(new Date(w.created_date||w.submitted_at),"dd-MM-yyyy HH:mm")]})].map(w=>w.join(",")).join(`
`),x=new Blob([y],{type:"text/csv;charset=utf-8;"}),N=document.createElement("a");N.href=URL.createObjectURL(x),N.download=`eu-ai-act-submissions-${_t(new Date,"dd-MM-yyyy")}.csv`,N.click()};return i?t.jsx("div",{className:"pt-20 min-h-screen bg-gray-50 flex items-center justify-center",children:t.jsxs("div",{className:"text-center",children:[t.jsx(Zn,{className:"w-16 h-16 text-gray-400 mx-auto mb-4"}),t.jsx("p",{className:"text-gray-600",children:"Toegang controleren..."})]})}):n?t.jsx("div",{className:"pt-20 min-h-screen bg-gray-50",children:t.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-12",children:[t.jsxs("div",{className:"flex items-center justify-between mb-8",children:[t.jsxs("div",{className:"flex items-center gap-4",children:[t.jsx(fe,{to:oe("AdminDashboard"),children:t.jsx(se,{variant:"outline",size:"icon",children:t.jsx(ht,{className:"w-5 h-5"})})}),t.jsxs("div",{children:[t.jsx("h1",{className:"text-3xl font-bold text-gray-900",children:"EU AI Act Inzendingen"}),t.jsxs("p",{className:"text-gray-600",children:[h.length," aanvragen • ",d.length," rapporten"]})]})]}),t.jsxs(se,{onClick:b,disabled:d.length===0,children:[t.jsx(vu,{className:"w-4 h-4 mr-2"}),"Exporteer CSV"]})]}),p?t.jsx("div",{className:"flex justify-center py-12",children:t.jsx("div",{className:"w-8 h-8 border-4 border-blue-600 border-t-transparent rounded-full animate-spin"})}):h.length===0&&d.length===0?t.jsxs("div",{className:"bg-white rounded-2xl p-12 text-center",children:[t.jsx(Ut,{className:"w-16 h-16 text-gray-300 mx-auto mb-4"}),t.jsx("h3",{className:"text-xl font-semibold text-gray-900 mb-2",children:"Nog geen inzendingen"}),t.jsx("p",{className:"text-gray-600",children:"Er zijn nog geen EU AI Act analyses aangevraagd"})]}):t.jsxs("div",{className:"grid lg:grid-cols-2 gap-6",children:[t.jsx("div",{className:"space-y-4",children:h.map(y=>{var w;const x=d.find(k=>k.id===y.submission_id),N={pending:"bg-gray-100 text-gray-700",processing:"bg-blue-100 text-blue-700",completed:"bg-green-100 text-green-700",failed:"bg-red-100 text-red-700"};return t.jsxs("div",{onClick:()=>o(x||y),className:`bg-white rounded-xl p-6 border-2 cursor-pointer transition-all ${(a==null?void 0:a.id)===y.id||(a==null?void 0:a.id)===(x==null?void 0:x.id)?"border-blue-600 shadow-lg":"border-gray-200 hover:border-gray-300"}`,children:[t.jsxs("div",{className:"flex items-start justify-between mb-3",children:[t.jsxs("div",{className:"flex-1",children:[t.jsx("h3",{className:"font-bold text-gray-900",children:((w=x==null?void 0:x.analysis_result)==null?void 0:w.company_name)||y.website_url||"Onbekend bedrijf"}),y.user_email&&t.jsx("p",{className:"text-xs text-blue-600 mt-1",children:y.user_email})]}),t.jsxs("div",{className:"flex items-center gap-2",children:[t.jsx("span",{className:`px-2 py-1 rounded-full text-xs font-semibold ${N[y.status]}`,children:y.status==="pending"?"In wachtrij":y.status==="processing"?"Bezig":y.status==="completed"?"Voltooid":"Gefaald"}),(x==null?void 0:x.email_sent)&&t.jsx(vt,{className:"w-5 h-5 text-green-600"})]})]}),t.jsx("div",{className:"flex items-center gap-3 text-sm text-gray-600",children:t.jsx("span",{children:_t(new Date(y.created_date),"dd MMM yyyy HH:mm")})})]},y.id)})}),t.jsx("div",{className:"lg:sticky lg:top-24 h-fit",children:a?t.jsxs("div",{className:"bg-white rounded-xl p-6 border border-gray-200",children:[t.jsx("h2",{className:"text-xl font-bold text-gray-900 mb-6",children:"Detail"}),t.jsxs("div",{className:"space-y-4",children:[a.status&&t.jsxs("div",{children:[t.jsx("label",{className:"text-sm font-medium text-gray-600",children:"Status"}),t.jsx("p",{className:"text-gray-900 font-semibold",children:a.status==="pending"?"⏳ In wachtrij":a.status==="processing"?"⚙️ Bezig met analyse":a.status==="completed"?"✅ Voltooid":"❌ Gefaald"}),a.error_message&&t.jsx("p",{className:"text-sm text-red-600 mt-1",children:a.error_message})]}),(a.user_name||a.submitted_by_name)&&t.jsxs("div",{children:[t.jsx("label",{className:"text-sm font-medium text-gray-600",children:"Aanvrager naam"}),t.jsx("p",{className:"text-gray-900",children:a.user_name||a.submitted_by_name})]}),(a.user_email||a.submitted_by_email)&&t.jsxs("div",{children:[t.jsx("label",{className:"text-sm font-medium text-gray-600",children:"Aanvrager email"}),t.jsx("p",{className:"text-gray-900",children:a.user_email||a.submitted_by_email})]}),((j=a.analysis_result)==null?void 0:j.company_name)&&t.jsxs("div",{children:[t.jsx("label",{className:"text-sm font-medium text-gray-600",children:"Bedrijf"}),t.jsx("p",{className:"text-gray-900",children:a.analysis_result.company_name})]}),a.website_url&&t.jsxs("div",{children:[t.jsx("label",{className:"text-sm font-medium text-gray-600",children:"Website"}),t.jsxs("a",{href:a.website_url.startsWith("http")?a.website_url:`https://${a.website_url}`,target:"_blank",rel:"noopener noreferrer",className:"text-blue-600 hover:underline flex items-center gap-1",children:[a.website_url,t.jsx(Ls,{className:"w-3 h-3"})]})]}),(a.submission_id||a.analysis_result)&&t.jsxs("div",{children:[t.jsx("label",{className:"text-sm font-medium text-gray-600",children:"Rapport Link"}),t.jsxs("a",{href:`/EuAiActChecker?report_id=${a.submission_id||a.id}`,target:"_blank",rel:"noopener noreferrer",className:"text-blue-600 hover:underline flex items-center gap-1",children:["Bekijk volledige rapport",t.jsx(Ls,{className:"w-3 h-3"})]})]}),a.submitted_by_email&&t.jsxs("div",{children:[t.jsx("label",{className:"text-sm font-medium text-gray-600",children:"Ingediend door"}),t.jsx("p",{className:"text-gray-900",children:a.submitted_by_email})]}),t.jsxs("div",{children:[t.jsx("label",{className:"text-sm font-medium text-gray-600",children:"Email Status"}),t.jsx("div",{className:"flex items-center gap-2 mt-1",children:a.email_sent?t.jsxs(t.Fragment,{children:[t.jsx(vt,{className:"w-5 h-5 text-green-600"}),t.jsxs("span",{className:"text-green-600",children:["Verzonden op ",_t(new Date(a.email_sent_at),"dd MMM yyyy HH:mm")]})]}):t.jsxs(t.Fragment,{children:[t.jsx(Qc,{className:"w-5 h-5 text-red-600"}),t.jsx("span",{className:"text-red-600",children:"Niet verzonden"}),a.email_error&&t.jsx("p",{className:"text-xs text-red-500 mt-1",children:a.email_error})]})})]}),t.jsx("div",{className:"pt-6 border-t border-gray-200 mt-6",children:t.jsxs(se,{variant:"destructive",onClick:()=>{confirm("Weet je zeker dat je deze inzending wilt verwijderen?")&&g.mutate(a.id)},disabled:g.isPending,className:"w-full",children:[t.jsx(wt,{className:"w-4 h-4 mr-2"}),g.isPending?"Verwijderen...":"Verwijderen"]})})]})]}):t.jsxs("div",{className:"bg-gray-50 rounded-xl p-12 text-center border-2 border-dashed border-gray-300",children:[t.jsx(Ut,{className:"w-12 h-12 text-gray-400 mx-auto mb-3"}),t.jsx("p",{className:"text-gray-600",children:"Selecteer een inzending om details te bekijken"})]})})]})]})}):null}function DG(){const[e,n]=F.useState("overzicht"),r=[{id:"overzicht",icon:ll,title:"Overzicht",content:t.jsxs("div",{className:"space-y-4",children:[t.jsx("h3",{className:"text-2xl font-bold text-gray-900",children:"Welkom bij het Content Management Systeem"}),t.jsx("p",{className:"text-gray-700 leading-relaxed",children:"Dit CMS stelt je in staat om alle content op je website te beheren zonder in de code te hoeven duiken. Je kunt blog posts schrijven, cases toevoegen, trainingen beheren, en zelfs statische pagina's aanpassen."}),t.jsxs("div",{className:"bg-blue-50 border border-blue-200 rounded-xl p-4",children:[t.jsx("p",{className:"text-blue-900 font-medium",children:"📍 Je bevindt je nu in het Admin Dashboard"}),t.jsx("p",{className:"text-blue-800 text-sm mt-2",children:"Via het dashboard heb je toegang tot alle beheer functionaliteiten."})]})]})},{id:"blog",icon:Ut,title:"Blog Beheer",content:t.jsxs("div",{className:"space-y-4",children:[t.jsx("h3",{className:"text-2xl font-bold text-gray-900",children:"Blog Posts Beheren"}),t.jsxs("div",{className:"space-y-3",children:[t.jsxs("div",{className:"bg-gray-50 rounded-lg p-4",children:[t.jsx("h4",{className:"font-bold text-gray-900 mb-2",children:"📝 Nieuwe blog post maken"}),t.jsxs("ol",{className:"list-decimal list-inside space-y-2 text-gray-700",children:[t.jsxs("li",{children:["Ga naar ",t.jsx("strong",{children:"AdminDashboard → Blog"})]}),t.jsxs("li",{children:["Klik op ",t.jsx("strong",{children:'"Nieuw Blog Post"'})]}),t.jsx("li",{children:"Vul de velden in (titel, slug, samenvatting, content)"}),t.jsx("li",{children:"Gebruik de rich text editor voor opmaak"}),t.jsx("li",{children:"Voeg een featured image toe via upload of URL"}),t.jsxs("li",{children:["Klik op ",t.jsx("strong",{children:'"Preview"'})," om het resultaat te zien"]}),t.jsxs("li",{children:["Vink ",t.jsx("strong",{children:'"Publiceren"'})," aan om live te zetten"]})]})]}),t.jsxs("div",{className:"bg-gray-50 rounded-lg p-4",children:[t.jsx("h4",{className:"font-bold text-gray-900 mb-2",children:"🖼️ Afbeeldingen in content"}),t.jsx("p",{className:"text-gray-700",children:"Klik op het afbeelding icoon in de rich text editor toolbar. Je kunt een bestand uploaden of een URL plakken. Afbeeldingen worden automatisch ingevoegd op de cursorpositie."})]}),t.jsxs("div",{className:"bg-gray-50 rounded-lg p-4",children:[t.jsx("h4",{className:"font-bold text-gray-900 mb-2",children:"✍️ Opmaak opties"}),t.jsxs("ul",{className:"list-disc list-inside space-y-1 text-gray-700",children:[t.jsxs("li",{children:[t.jsx("strong",{children:"H1, H2"})," voor koppen"]}),t.jsxs("li",{children:[t.jsx("strong",{children:"Bold, Italic, Underline"})," voor tekstopmaak"]}),t.jsxs("li",{children:[t.jsx("strong",{children:"Bullet lists, Numbered lists"})," voor lijsten"]}),t.jsxs("li",{children:[t.jsx("strong",{children:"Links"})," toevoegen met het link icoon"]})]})]})]})]})},{id:"cases",icon:Briefcase,title:"Cases Beheer",content:t.jsxs("div",{className:"space-y-4",children:[t.jsx("h3",{className:"text-2xl font-bold text-gray-900",children:"Case Studies Beheren"}),t.jsxs("div",{className:"space-y-3",children:[t.jsxs("div",{className:"bg-gray-50 rounded-lg p-4",children:[t.jsx("h4",{className:"font-bold text-gray-900 mb-2",children:"📋 Nieuwe case toevoegen"}),t.jsxs("ol",{className:"list-decimal list-inside space-y-2 text-gray-700",children:[t.jsxs("li",{children:["Ga naar ",t.jsx("strong",{children:"AdminDashboard → Cases"})]}),t.jsxs("li",{children:["Klik op ",t.jsx("strong",{children:'"Nieuwe Case"'})]}),t.jsx("li",{children:"Vul klantinformatie in (naam, branche, type)"}),t.jsxs("li",{children:["Beschrijf de ",t.jsx("strong",{children:"uitdaging"})," (gebruik rich text editor)"]}),t.jsxs("li",{children:["Beschrijf de ",t.jsx("strong",{children:"oplossing"})," (gebruik rich text editor)"]}),t.jsxs("li",{children:["Voeg ",t.jsx("strong",{children:"resultaten"})," toe (waarde + label)"]}),t.jsx("li",{children:"Voeg optioneel een quote en tags toe"}),t.jsx("li",{children:"Publiceer de case"})]})]}),t.jsxs("div",{className:"bg-gray-50 rounded-lg p-4",children:[t.jsx("h4",{className:"font-bold text-gray-900 mb-2",children:"🏷️ Case Types"}),t.jsxs("p",{className:"text-gray-700",children:["Je kunt kiezen uit: ",t.jsx("strong",{children:"Consultancy"}),", ",t.jsx("strong",{children:"Training"}),", en ",t.jsx("strong",{children:"Development"}),". Nieuwe types toevoegen? Ga naar ",t.jsx("strong",{children:"Instellingen"}),"."]})]})]})]})},{id:"paginas",icon:A1,title:"Pagina's Beheren",content:t.jsxs("div",{className:"space-y-4",children:[t.jsx("h3",{className:"text-2xl font-bold text-gray-900",children:"Statische Pagina's Bewerken"}),t.jsxs("div",{className:"space-y-3",children:[t.jsxs("div",{className:"bg-gray-50 rounded-lg p-4",children:[t.jsx("h4",{className:"font-bold text-gray-900 mb-2",children:"🎨 Pagina content bewerken"}),t.jsxs("ol",{className:"list-decimal list-inside space-y-2 text-gray-700",children:[t.jsxs("li",{children:["Ga naar ",t.jsx("strong",{children:"AdminDashboard → Pagina Editor"})]}),t.jsx("li",{children:"Selecteer de pagina die je wilt bewerken (bijv. AI Consultancy)"}),t.jsx("li",{children:"Bekijk bestaande content secties of maak nieuwe aan"}),t.jsxs("li",{children:["Elke sectie heeft een unieke ",t.jsx("strong",{children:"section_key"})]}),t.jsx("li",{children:"Gebruik de rich text editor voor de content"}),t.jsx("li",{children:"Sla op en bekijk de wijzigingen in de preview"})]})]}),t.jsxs("div",{className:"bg-orange-50 border border-orange-200 rounded-lg p-4",children:[t.jsx("h4",{className:"font-bold text-orange-900 mb-2",children:"⚠️ Belangrijk"}),t.jsx("p",{className:"text-orange-800",children:"Het wijzigen van pagina content via de Pagina Editor werkt alleen als de pagina code is aangepast om content uit de database te laden. Sommige pagina's zijn nog hardcoded. Vraag je developer om pagina's dynamisch te maken."})]})]})]})},{id:"instellingen",icon:Xc,title:"Instellingen",content:t.jsxs("div",{className:"space-y-4",children:[t.jsx("h3",{className:"text-2xl font-bold text-gray-900",children:"Categorieën & Instellingen"}),t.jsxs("div",{className:"space-y-3",children:[t.jsxs("div",{className:"bg-gray-50 rounded-lg p-4",children:[t.jsx("h4",{className:"font-bold text-gray-900 mb-2",children:"🏷️ Categorieën beheren"}),t.jsxs("p",{className:"text-gray-700 mb-3",children:["Ga naar ",t.jsx("strong",{children:"AdminDashboard → Instellingen"})," om categorieën te beheren voor:"]}),t.jsxs("ul",{className:"list-disc list-inside space-y-1 text-gray-700",children:[t.jsxs("li",{children:[t.jsx("strong",{children:"Blog Categorieën"})," (AI, Technologie, Training, etc.)"]}),t.jsxs("li",{children:[t.jsx("strong",{children:"Case Types"})," (Consultancy, Training, Development)"]}),t.jsxs("li",{children:[t.jsx("strong",{children:"Training Categorieën"})," (Basis, Gevorderd, Leiderschap, etc.)"]})]})]}),t.jsxs("div",{className:"bg-yellow-50 border border-yellow-200 rounded-lg p-4",children:[t.jsx("h4",{className:"font-bold text-yellow-900 mb-2",children:"💡 Let op"}),t.jsxs("p",{className:"text-yellow-800 text-sm",children:["Wijzigingen in de Instellingen pagina zijn lokaal. Voor permanente wijzigingen moet je de",t.jsx("strong",{children:" entity schemas"})," aanpassen via ",t.jsx("strong",{children:"Platform Dashboard → Code → Entities"}),"."]})]})]})]})},{id:"database",icon:NA,title:"Database",content:t.jsxs("div",{className:"space-y-4",children:[t.jsx("h3",{className:"text-2xl font-bold text-gray-900",children:"Database & Entities"}),t.jsxs("div",{className:"space-y-3",children:[t.jsxs("div",{className:"bg-gray-50 rounded-lg p-4",children:[t.jsx("h4",{className:"font-bold text-gray-900 mb-2",children:"🗄️ Directe database toegang"}),t.jsxs("p",{className:"text-gray-700 mb-3",children:["Via het ",t.jsx("strong",{children:"Platform Dashboard → Data"})," kun je direct records bekijken en bewerken:"]}),t.jsxs("ul",{className:"list-disc list-inside space-y-1 text-gray-700",children:[t.jsx("li",{children:"Zie alle BlogPosts, CaseStudies, Trainingen, etc."}),t.jsx("li",{children:"Bewerk individuele records"}),t.jsx("li",{children:"Verwijder oude content"}),t.jsx("li",{children:"Gebruik filters om specifieke records te vinden"})]})]}),t.jsxs("div",{className:"bg-gray-50 rounded-lg p-4",children:[t.jsx("h4",{className:"font-bold text-gray-900 mb-2",children:"⚙️ Entity schemas aanpassen"}),t.jsx("p",{className:"text-gray-700 mb-3",children:"Wil je nieuwe velden toevoegen of categorieën wijzigen?"}),t.jsxs("ol",{className:"list-decimal list-inside space-y-2 text-gray-700",children:[t.jsxs("li",{children:["Ga naar ",t.jsx("strong",{children:"Platform Dashboard → Code → Entities"})]}),t.jsx("li",{children:"Klik op de entity die je wilt aanpassen (bijv. BlogPost)"}),t.jsx("li",{children:"Pas het JSON schema aan"}),t.jsx("li",{children:"Sla op - de wijzigingen zijn direct actief"})]})]})]})]})},{id:"tips",icon:T5,title:"Tips & Tricks",content:t.jsxs("div",{className:"space-y-4",children:[t.jsx("h3",{className:"text-2xl font-bold text-gray-900",children:"Handige Tips"}),t.jsxs("div",{className:"space-y-3",children:[t.jsxs("div",{className:"bg-green-50 border border-green-200 rounded-lg p-4",children:[t.jsx("h4",{className:"font-bold text-green-900 mb-2",children:"✅ Best Practices"}),t.jsxs("ul",{className:"list-disc list-inside space-y-2 text-green-800",children:[t.jsx("li",{children:'Gebruik duidelijke, beschrijvende slugs (bijv. "ai-voor-beginners")'}),t.jsx("li",{children:"Voeg altijd een featured image toe voor betere presentatie"}),t.jsx("li",{children:"Gebruik de preview functie voordat je publiceert"}),t.jsx("li",{children:"Bewaar drafts - publiceer pas als alles klopt"}),t.jsx("li",{children:"Gebruik tags om content gemakkelijk te kunnen filteren"})]})]}),t.jsxs("div",{className:"bg-blue-50 border border-blue-200 rounded-lg p-4",children:[t.jsx("h4",{className:"font-bold text-blue-900 mb-2",children:"⌨️ Sneltoetsen"}),t.jsxs("ul",{className:"list-disc list-inside space-y-1 text-blue-800",children:[t.jsxs("li",{children:[t.jsx("strong",{children:"Ctrl/Cmd + B"})," - Bold text"]}),t.jsxs("li",{children:[t.jsx("strong",{children:"Ctrl/Cmd + I"})," - Italic text"]}),t.jsxs("li",{children:[t.jsx("strong",{children:"Ctrl/Cmd + U"})," - Underline text"]}),t.jsxs("li",{children:[t.jsx("strong",{children:"Enter"})," bij invoervelden - Voeg item toe"]})]})]}),t.jsxs("div",{className:"bg-purple-50 border border-purple-200 rounded-lg p-4",children:[t.jsx("h4",{className:"font-bold text-purple-900 mb-2",children:"🎯 Workflow tip"}),t.jsxs("p",{className:"text-purple-800",children:["Gebruik ",t.jsx("strong",{children:"AdminDashboard"})," als je startpunt. Van daaruit heb je toegang tot alle content management tools. Bookmark deze pagina voor snelle toegang!"]})]})]})]})}];return t.jsx("div",{className:"pt-20 min-h-screen bg-gradient-to-b from-blue-50 to-white",children:t.jsxs("div",{className:"max-w-6xl mx-auto px-4 sm:px-6 lg:px-8 py-12",children:[t.jsx("div",{className:"mb-6",children:t.jsxs(fe,{to:oe("AdminDashboard"),className:"text-blue-600 hover:text-blue-700 inline-flex items-center gap-1",children:[t.jsx(ht,{className:"w-4 h-4"}),"Terug naar dashboard"]})}),t.jsxs("div",{className:"mb-12 text-center",children:[t.jsx("div",{className:"inline-flex items-center justify-center w-20 h-20 bg-blue-600 rounded-2xl mb-6",children:t.jsx(ll,{className:"w-10 h-10 text-white"})}),t.jsx("h1",{className:"text-5xl font-bold text-gray-900 mb-4",children:"CMS Handleiding"}),t.jsx("p",{className:"text-xl text-gray-600",children:"Alles wat je moet weten om je website content te beheren"})]}),t.jsx("div",{className:"space-y-4",children:r.map(i=>t.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"bg-white rounded-2xl border-2 border-gray-100 overflow-hidden",children:[t.jsxs("button",{onClick:()=>n(e===i.id?null:i.id),className:"w-full flex items-center justify-between p-6 hover:bg-gray-50 transition-colors",children:[t.jsxs("div",{className:"flex items-center gap-4",children:[t.jsx("div",{className:"w-12 h-12 bg-blue-100 rounded-xl flex items-center justify-center",children:t.jsx(i.icon,{className:"w-6 h-6 text-blue-600"})}),t.jsx("h2",{className:"text-2xl font-bold text-gray-900",children:i.title})]}),e===i.id?t.jsx(Vo,{className:"w-6 h-6 text-gray-400"}):t.jsx(jA,{className:"w-6 h-6 text-gray-400"})]}),e===i.id&&t.jsx(Z.div,{initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},className:"border-t border-gray-100",children:t.jsx("div",{className:"p-8",children:i.content})})]},i.id))}),t.jsxs("div",{className:"mt-12 bg-gradient-to-r from-blue-600 to-indigo-600 rounded-2xl p-8 text-white",children:[t.jsx("h3",{className:"text-2xl font-bold mb-6",children:"Snelle Links"}),t.jsxs("div",{className:"grid md:grid-cols-3 gap-4",children:[t.jsxs(fe,{to:oe("AdminBlog"),className:"bg-white/10 hover:bg-white/20 rounded-xl p-4 transition-colors",children:[t.jsx(Ut,{className:"w-6 h-6 mb-2"}),t.jsx("p",{className:"font-semibold",children:"Blog Beheer"})]}),t.jsxs(fe,{to:oe("AdminCases"),className:"bg-white/10 hover:bg-white/20 rounded-xl p-4 transition-colors",children:[t.jsx(A1,{className:"w-6 h-6 mb-2"}),t.jsx("p",{className:"font-semibold",children:"Cases Beheer"})]}),t.jsxs(fe,{to:oe("AdminSettings"),className:"bg-white/10 hover:bg-white/20 rounded-xl p-4 transition-colors",children:[t.jsx(Xc,{className:"w-6 h-6 mb-2"}),t.jsx("p",{className:"font-semibold",children:"Instellingen"})]})]})]})]})})}var oy="rovingFocusGroup.onEntryFocus",IG={bubbles:!1,cancelable:!0},Iu="RovingFocusGroup",[P0,b6,RG]=LE(Iu),[FG,j6]=Za(Iu,[RG]),[MG,LG]=FG(Iu),w6=F.forwardRef((e,n)=>t.jsx(P0.Provider,{scope:e.__scopeRovingFocusGroup,children:t.jsx(P0.Slot,{scope:e.__scopeRovingFocusGroup,children:t.jsx(BG,{...e,ref:n})})}));w6.displayName=Iu;var BG=F.forwardRef((e,n)=>{const{__scopeRovingFocusGroup:r,orientation:i,loop:s=!1,dir:a,currentTabStopId:o,defaultCurrentTabStopId:c,onCurrentTabStopIdChange:d,onEntryFocus:f,preventScrollOnEntryFocus:h=!1,...m}=e,p=F.useRef(null),g=Qt(n,p),b=Qv(a),[j,y]=pl({prop:o,defaultProp:c??null,onChange:d,caller:Iu}),[x,N]=F.useState(!1),w=Gs(f),k=b6(r),A=F.useRef(!1),[S,E]=F.useState(0);return F.useEffect(()=>{const C=p.current;if(C)return C.addEventListener(oy,w),()=>C.removeEventListener(oy,w)},[w]),t.jsx(MG,{scope:r,orientation:i,dir:b,loop:s,currentTabStopId:j,onItemFocus:F.useCallback(C=>y(C),[y]),onItemShiftTab:F.useCallback(()=>N(!0),[]),onFocusableItemAdd:F.useCallback(()=>E(C=>C+1),[]),onFocusableItemRemove:F.useCallback(()=>E(C=>C-1),[]),children:t.jsx(jt.div,{tabIndex:x||S===0?-1:0,"data-orientation":i,...m,ref:g,style:{outline:"none",...e.style},onMouseDown:bt(e.onMouseDown,()=>{A.current=!0}),onFocus:bt(e.onFocus,C=>{const B=!A.current;if(C.target===C.currentTarget&&B&&!x){const I=new CustomEvent(oy,IG);if(C.currentTarget.dispatchEvent(I),!I.defaultPrevented){const R=k().filter(Y=>Y.focusable),D=R.find(Y=>Y.active),q=R.find(Y=>Y.id===j),U=[D,q,...R].filter(Boolean).map(Y=>Y.ref.current);_6(U,h)}}A.current=!1}),onBlur:bt(e.onBlur,()=>N(!1))})})}),N6="RovingFocusGroupItem",k6=F.forwardRef((e,n)=>{const{__scopeRovingFocusGroup:r,focusable:i=!0,active:s=!1,tabStopId:a,children:o,...c}=e,d=Ou(),f=a||d,h=LG(N6,r),m=h.currentTabStopId===f,p=b6(r),{onFocusableItemAdd:g,onFocusableItemRemove:b,currentTabStopId:j}=h;return F.useEffect(()=>{if(i)return g(),()=>b()},[i,g,b]),t.jsx(P0.ItemSlot,{scope:r,id:f,focusable:i,active:s,children:t.jsx(jt.span,{tabIndex:m?0:-1,"data-orientation":h.orientation,...c,ref:n,onMouseDown:bt(e.onMouseDown,y=>{i?h.onItemFocus(f):y.preventDefault()}),onFocus:bt(e.onFocus,()=>h.onItemFocus(f)),onKeyDown:bt(e.onKeyDown,y=>{if(y.key==="Tab"&&y.shiftKey){h.onItemShiftTab();return}if(y.target!==y.currentTarget)return;const x=VG(y,h.orientation,h.dir);if(x!==void 0){if(y.metaKey||y.ctrlKey||y.altKey||y.shiftKey)return;y.preventDefault();let w=p().filter(k=>k.focusable).map(k=>k.ref.current);if(x==="last")w.reverse();else if(x==="prev"||x==="next"){x==="prev"&&w.reverse();const k=w.indexOf(y.currentTarget);w=h.loop?UG(w,k+1):w.slice(k+1)}setTimeout(()=>_6(w))}}),children:typeof o=="function"?o({isCurrentTabStop:m,hasTabStop:j!=null}):o})})});k6.displayName=N6;var qG={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function zG(e,n){return n!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function VG(e,n,r){const i=zG(e.key,r);if(!(n==="vertical"&&["ArrowLeft","ArrowRight"].includes(i))&&!(n==="horizontal"&&["ArrowUp","ArrowDown"].includes(i)))return qG[i]}function _6(e,n=!1){const r=document.activeElement;for(const i of e)if(i===r||(i.focus({preventScroll:n}),document.activeElement!==r))return}function UG(e,n){return e.map((r,i)=>e[(n+i)%e.length])}var $G=w6,HG=k6;function WG(e,n){return F.useReducer((r,i)=>n[r][i]??r,e)}var ub=e=>{const{present:n,children:r}=e,i=KG(n),s=typeof r=="function"?r({present:i.isPresent}):F.Children.only(r),a=Qt(i.ref,GG(s));return typeof r=="function"||i.isPresent?F.cloneElement(s,{ref:a}):null};ub.displayName="Presence";function KG(e){const[n,r]=F.useState(),i=F.useRef(null),s=F.useRef(e),a=F.useRef("none"),o=e?"mounted":"unmounted",[c,d]=WG(o,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return F.useEffect(()=>{const f=ch(i.current);a.current=c==="mounted"?f:"none"},[c]),In(()=>{const f=i.current,h=s.current;if(h!==e){const p=a.current,g=ch(f);e?d("MOUNT"):g==="none"||(f==null?void 0:f.display)==="none"?d("UNMOUNT"):d(h&&p!==g?"ANIMATION_OUT":"UNMOUNT"),s.current=e}},[e,d]),In(()=>{if(n){let f;const h=n.ownerDocument.defaultView??window,m=g=>{const j=ch(i.current).includes(CSS.escape(g.animationName));if(g.target===n&&j&&(d("ANIMATION_END"),!s.current)){const y=n.style.animationFillMode;n.style.animationFillMode="forwards",f=h.setTimeout(()=>{n.style.animationFillMode==="forwards"&&(n.style.animationFillMode=y)})}},p=g=>{g.target===n&&(a.current=ch(i.current))};return n.addEventListener("animationstart",p),n.addEventListener("animationcancel",m),n.addEventListener("animationend",m),()=>{h.clearTimeout(f),n.removeEventListener("animationstart",p),n.removeEventListener("animationcancel",m),n.removeEventListener("animationend",m)}}else d("ANIMATION_END")},[n,d]),{isPresent:["mounted","unmountSuspended"].includes(c),ref:F.useCallback(f=>{i.current=f?getComputedStyle(f):null,r(f)},[])}}function ch(e){return(e==null?void 0:e.animationName)||"none"}function GG(e){var i,s;let n=(i=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:i.get,r=n&&"isReactWarning"in n&&n.isReactWarning;return r?e.ref:(n=(s=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:s.get,r=n&&"isReactWarning"in n&&n.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var Bf="Tabs",[QG]=Za(Bf,[j6]),S6=j6(),[YG,db]=QG(Bf),A6=F.forwardRef((e,n)=>{const{__scopeTabs:r,value:i,onValueChange:s,defaultValue:a,orientation:o="horizontal",dir:c,activationMode:d="automatic",...f}=e,h=Qv(c),[m,p]=pl({prop:i,onChange:s,defaultProp:a??"",caller:Bf});return t.jsx(YG,{scope:r,baseId:Ou(),value:m,onValueChange:p,orientation:o,dir:h,activationMode:d,children:t.jsx(jt.div,{dir:h,"data-orientation":o,...f,ref:n})})});A6.displayName=Bf;var C6="TabsList",E6=F.forwardRef((e,n)=>{const{__scopeTabs:r,loop:i=!0,...s}=e,a=db(C6,r),o=S6(r);return t.jsx($G,{asChild:!0,...o,orientation:a.orientation,dir:a.dir,loop:i,children:t.jsx(jt.div,{role:"tablist","aria-orientation":a.orientation,...s,ref:n})})});E6.displayName=C6;var T6="TabsTrigger",P6=F.forwardRef((e,n)=>{const{__scopeTabs:r,value:i,disabled:s=!1,...a}=e,o=db(T6,r),c=S6(r),d=I6(o.baseId,i),f=R6(o.baseId,i),h=i===o.value;return t.jsx(HG,{asChild:!0,...c,focusable:!s,active:h,children:t.jsx(jt.button,{type:"button",role:"tab","aria-selected":h,"aria-controls":f,"data-state":h?"active":"inactive","data-disabled":s?"":void 0,disabled:s,id:d,...a,ref:n,onMouseDown:bt(e.onMouseDown,m=>{!s&&m.button===0&&m.ctrlKey===!1?o.onValueChange(i):m.preventDefault()}),onKeyDown:bt(e.onKeyDown,m=>{[" ","Enter"].includes(m.key)&&o.onValueChange(i)}),onFocus:bt(e.onFocus,()=>{const m=o.activationMode!=="manual";!h&&!s&&m&&o.onValueChange(i)})})})});P6.displayName=T6;var O6="TabsContent",D6=F.forwardRef((e,n)=>{const{__scopeTabs:r,value:i,forceMount:s,children:a,...o}=e,c=db(O6,r),d=I6(c.baseId,i),f=R6(c.baseId,i),h=i===c.value,m=F.useRef(h);return F.useEffect(()=>{const p=requestAnimationFrame(()=>m.current=!1);return()=>cancelAnimationFrame(p)},[]),t.jsx(ub,{present:s||h,children:({present:p})=>t.jsx(jt.div,{"data-state":h?"active":"inactive","data-orientation":c.orientation,role:"tabpanel","aria-labelledby":d,hidden:!p,id:f,tabIndex:0,...o,ref:n,style:{...e.style,animationDuration:m.current?"0s":void 0},children:p&&a})})});D6.displayName=O6;function I6(e,n){return`${e}-trigger-${n}`}function R6(e,n){return`${e}-content-${n}`}var XG=A6,F6=E6,M6=P6,L6=D6;const JG=XG,B6=F.forwardRef(({className:e,...n},r)=>t.jsx(F6,{ref:r,className:Gt("inline-flex h-9 items-center justify-center rounded-lg bg-muted p-1 text-muted-foreground",e),...n}));B6.displayName=F6.displayName;const Ro=F.forwardRef(({className:e,...n},r)=>t.jsx(M6,{ref:r,className:Gt("inline-flex items-center justify-center whitespace-nowrap rounded-md px-3 py-1 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow",e),...n}));Ro.displayName=M6.displayName;const Fo=F.forwardRef(({className:e,...n},r)=>t.jsx(L6,{ref:r,className:Gt("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",e),...n}));Fo.displayName=L6.displayName;function ZG(){const[e,n]=F.useState("services"),[r,i]=F.useState({type:null,id:null}),[s,a]=F.useState({}),o=Yt(),{data:c=[]}=ze({queryKey:["homeServices"],queryFn:()=>ue.entities.HomeService.list("sort_order")}),{data:d=[]}=ze({queryKey:["homeBenefits"],queryFn:()=>ue.entities.HomeBenefit.list("sort_order")}),{data:f=[]}=ze({queryKey:["processSteps"],queryFn:()=>ue.entities.ProcessStep.list("step_number")}),{data:h=[]}=ze({queryKey:["teamMembers"],queryFn:()=>ue.entities.TeamMember.list("sort_order")}),{data:m=[]}=ze({queryKey:["homeCTAs"],queryFn:()=>ue.entities.HomeCTA.list("sort_order")}),{data:p=[]}=ze({queryKey:["homeSections"],queryFn:()=>ue.entities.HomeSection.list("sort_order"),initialData:[]}),g=Me({mutationFn:({entity:C,data:B})=>ue.entities[C].create(B),onSuccess:(C,B)=>{o.invalidateQueries({queryKey:[x(B.entity)]}),N()}}),b=Me({mutationFn:({entity:C,id:B,data:I})=>ue.entities[C].update(B,I),onSuccess:(C,B)=>{o.invalidateQueries({queryKey:[x(B.entity)]}),N()}}),j=Me({mutationFn:({entity:C,id:B})=>ue.entities[C].delete(B),onSuccess:(C,B)=>{o.invalidateQueries({queryKey:[x(B.entity)]})}}),y=Me({mutationFn:({id:C,data:B})=>ue.entities.HomeSection.update(C,B),onSuccess:()=>{o.invalidateQueries({queryKey:["homeSections"]})},onError:C=>{console.error("Failed to update section:",C),alert("Kon sectie niet updaten. Probeer het opnieuw.")}}),x=C=>({HomeService:"homeServices",HomeBenefit:"homeBenefits",ProcessStep:"processSteps",TeamMember:"teamMembers",HomeCTA:"homeCTAs"})[C],N=()=>{i({type:null,id:null}),a({})},w=(C,B)=>{i({type:C,id:B.id}),a(B)},k=(C,B)=>{C.preventDefault(),r.id?b.mutate({entity:B,id:r.id,data:s}):g.mutate({entity:B,data:s})},A=()=>{a({...s,tags:[...s.tags||[],""]})},S=(C,B)=>{const I=[...s.tags];I[C]=B,a({...s,tags:I})},E=C=>{const B=s.tags.filter((I,R)=>R!==C);a({...s,tags:B})};return t.jsx("div",{className:"pt-20 min-h-screen bg-gray-50",children:t.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-12",children:[t.jsxs("div",{className:"flex items-center gap-4 mb-8",children:[t.jsx(fe,{to:oe("AdminDashboard"),children:t.jsx(se,{variant:"outline",size:"icon",children:t.jsx(ht,{className:"w-5 h-5"})})}),t.jsxs("div",{children:[t.jsx("h1",{className:"text-3xl font-bold text-gray-900",children:"Homepage Beheren"}),t.jsx("p",{className:"text-gray-600",children:"Beheer alle secties van de homepage"})]})]}),t.jsxs("div",{className:"mb-8 bg-white rounded-2xl p-6 border border-gray-200",children:[t.jsx("h2",{className:"text-xl font-bold text-gray-900 mb-4",children:"Homepage Secties Aan/Uit"}),t.jsx("p",{className:"text-gray-600 mb-4",children:"Schakel secties in of uit om ze te tonen op de homepage"}),t.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-4",children:p.map(C=>t.jsxs("div",{className:"flex items-center justify-between p-4 bg-gray-50 rounded-lg hover:bg-gray-100 transition-colors",children:[t.jsx("span",{className:"font-medium text-gray-900",children:C.title||C.section_key}),t.jsxs("label",{className:"relative inline-flex items-center cursor-pointer",children:[t.jsx("input",{type:"checkbox",checked:C.active,disabled:y.isPending,onChange:B=>y.mutate({id:C.id,data:{active:B.target.checked}}),className:"sr-only peer"}),t.jsx("div",{className:`w-11 h-6 bg-gray-200 peer-focus:outline-none peer-focus:ring-4 peer-focus:ring-blue-300 rounded-full peer peer-checked:after:translate-x-full peer-checked:after:border-white after:content-[''] after:absolute after:top-[2px] after:left-[2px] after:bg-white after:border-gray-300 after:border after:rounded-full after:h-5 after:w-5 after:transition-all peer-checked:bg-blue-600 ${y.isPending?"opacity-50 cursor-not-allowed":""}`})]})]},C.id))})]}),t.jsxs(JG,{value:e,onValueChange:n,children:[t.jsxs(B6,{className:"mb-8",children:[t.jsxs(Ro,{value:"services",children:["Diensten (",c.length,")"]}),t.jsxs(Ro,{value:"benefits",children:["Waarom 48-7 (",d.length,")"]}),t.jsxs(Ro,{value:"process",children:["Proces (",f.length,")"]}),t.jsxs(Ro,{value:"team",children:["Team (",h.length,")"]}),t.jsxs(Ro,{value:"ctas",children:["CTA's (",m.length,")"]})]}),t.jsxs(Fo,{value:"services",children:[t.jsxs("div",{className:"bg-white rounded-2xl p-8 border border-gray-200 mb-8",children:[t.jsx("h2",{className:"text-xl font-bold mb-6",children:r.type==="HomeService"?"Dienst Bewerken":"Nieuwe Dienst"}),t.jsxs("form",{onSubmit:C=>k(C,"HomeService"),className:"space-y-6",children:[t.jsx(me,{placeholder:"Titel (bijv. AI Consultancy)",value:s.title||"",onChange:C=>a({...s,title:C.target.value}),required:!0}),t.jsx(pt,{placeholder:"Beschrijving",value:s.description||"",onChange:C=>a({...s,description:C.target.value}),required:!0}),t.jsx(me,{placeholder:"Icon naam (bijv. Lightbulb, Code, Headphones)",value:s.icon||"",onChange:C=>a({...s,icon:C.target.value}),required:!0}),t.jsx(me,{placeholder:"Link URL (optioneel)",value:s.link_url||"",onChange:C=>a({...s,link_url:C.target.value})}),t.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[t.jsx(me,{type:"number",placeholder:"Volgorde",value:s.sort_order||0,onChange:C=>a({...s,sort_order:parseInt(C.target.value)})}),t.jsxs("select",{value:s.active??!0,onChange:C=>a({...s,active:C.target.value==="true"}),className:"w-full h-12 px-4 border-b-2 border-gray-200 focus:border-[#FAB868] bg-white",children:[t.jsx("option",{value:"true",children:"Actief"}),t.jsx("option",{value:"false",children:"Inactief"})]})]}),t.jsxs("div",{className:"flex gap-3",children:[t.jsx(se,{type:"submit",children:"Opslaan"}),r.type==="HomeService"&&t.jsx(se,{type:"button",variant:"outline",onClick:N,children:"Annuleren"})]})]})]}),t.jsx("div",{className:"grid md:grid-cols-2 gap-6",children:c.map(C=>t.jsxs("div",{className:"bg-white rounded-2xl p-6 border-2 border-gray-200",children:[t.jsxs("div",{className:"flex justify-between items-start mb-4",children:[t.jsx("h3",{className:"font-bold text-lg",children:C.title}),t.jsxs("div",{className:"flex gap-2",children:[t.jsx(se,{size:"sm",variant:"ghost",onClick:()=>w("HomeService",C),children:t.jsx(Tn,{className:"w-4 h-4"})}),t.jsx(se,{size:"sm",variant:"ghost",onClick:()=>j.mutate({entity:"HomeService",id:C.id}),children:t.jsx(wt,{className:"w-4 h-4"})})]})]}),t.jsx("p",{className:"text-gray-600 text-sm mb-2",children:C.description}),t.jsxs("p",{className:"text-xs text-gray-500",children:["Icon: ",C.icon]})]},C.id))})]}),t.jsxs(Fo,{value:"benefits",children:[t.jsxs("div",{className:"bg-white rounded-2xl p-8 border border-gray-200 mb-8",children:[t.jsx("h2",{className:"text-xl font-bold mb-6",children:r.type==="HomeBenefit"?"Voordeel Bewerken":"Nieuw Voordeel"}),t.jsxs("form",{onSubmit:C=>k(C,"HomeBenefit"),className:"space-y-6",children:[t.jsx(me,{placeholder:"Titel (bijv. Kennis uit het bedrijfsleven)",value:s.title||"",onChange:C=>a({...s,title:C.target.value}),required:!0}),t.jsx(pt,{placeholder:"Beschrijving",value:s.description||"",onChange:C=>a({...s,description:C.target.value}),required:!0}),t.jsx(me,{placeholder:"Icon naam (bijv. Briefcase, Layers, Building2)",value:s.icon||"",onChange:C=>a({...s,icon:C.target.value}),required:!0}),t.jsxs("div",{children:[t.jsx("label",{className:"block text-sm font-medium mb-2",children:"Tags"}),(s.tags||[]).map((C,B)=>t.jsxs("div",{className:"flex gap-2 mb-2",children:[t.jsx(me,{value:C,onChange:I=>S(B,I.target.value),placeholder:"Tag"}),t.jsx(se,{type:"button",variant:"outline",onClick:()=>E(B),children:t.jsx(wt,{className:"w-4 h-4"})})]},B)),t.jsxs(se,{type:"button",variant:"outline",onClick:A,children:[t.jsx(Pt,{className:"w-4 h-4 mr-2"})," Tag toevoegen"]})]}),t.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[t.jsx(me,{type:"number",placeholder:"Volgorde",value:s.sort_order||0,onChange:C=>a({...s,sort_order:parseInt(C.target.value)})}),t.jsxs("select",{value:s.active??!0,onChange:C=>a({...s,active:C.target.value==="true"}),className:"w-full h-12 px-4 border-b-2 border-gray-200 focus:border-[#FAB868] bg-white",children:[t.jsx("option",{value:"true",children:"Actief"}),t.jsx("option",{value:"false",children:"Inactief"})]})]}),t.jsxs("div",{className:"flex gap-3",children:[t.jsx(se,{type:"submit",children:"Opslaan"}),r.type==="HomeBenefit"&&t.jsx(se,{type:"button",variant:"outline",onClick:N,children:"Annuleren"})]})]})]}),t.jsx("div",{className:"grid md:grid-cols-2 gap-6",children:d.map(C=>t.jsxs("div",{className:"bg-white rounded-2xl p-6 border-2 border-gray-200",children:[t.jsxs("div",{className:"flex justify-between items-start mb-4",children:[t.jsx("h3",{className:"font-bold text-lg",children:C.title}),t.jsxs("div",{className:"flex gap-2",children:[t.jsx(se,{size:"sm",variant:"ghost",onClick:()=>w("HomeBenefit",C),children:t.jsx(Tn,{className:"w-4 h-4"})}),t.jsx(se,{size:"sm",variant:"ghost",onClick:()=>j.mutate({entity:"HomeBenefit",id:C.id}),children:t.jsx(wt,{className:"w-4 h-4"})})]})]}),t.jsx("p",{className:"text-gray-600 text-sm mb-2",children:C.description}),C.tags&&C.tags.length>0&&t.jsx("div",{className:"flex flex-wrap gap-2 mt-2",children:C.tags.map((B,I)=>t.jsx("span",{className:"text-xs bg-gray-100 px-2 py-1 rounded",children:B},I))})]},C.id))})]}),t.jsxs(Fo,{value:"process",children:[t.jsxs("div",{className:"bg-white rounded-2xl p-8 border border-gray-200 mb-8",children:[t.jsx("h2",{className:"text-xl font-bold mb-6",children:r.type==="ProcessStep"?"Stap Bewerken":"Nieuwe Stap"}),t.jsxs("form",{onSubmit:C=>k(C,"ProcessStep"),className:"space-y-6",children:[t.jsx(me,{type:"number",placeholder:"Stap nummer (1, 2, 3, 4)",value:s.step_number||"",onChange:C=>a({...s,step_number:parseInt(C.target.value)}),required:!0}),t.jsx(me,{placeholder:"Titel (bijv. Analyse)",value:s.title||"",onChange:C=>a({...s,title:C.target.value}),required:!0}),t.jsx(pt,{placeholder:"Beschrijving",value:s.description||"",onChange:C=>a({...s,description:C.target.value}),required:!0}),t.jsx(me,{placeholder:"Icon naam (bijv. Search, Map, Rocket)",value:s.icon||"",onChange:C=>a({...s,icon:C.target.value}),required:!0}),t.jsxs("select",{value:s.active??!0,onChange:C=>a({...s,active:C.target.value==="true"}),className:"w-full h-12 px-4 border-b-2 border-gray-200 focus:border-[#FAB868] bg-white",children:[t.jsx("option",{value:"true",children:"Actief"}),t.jsx("option",{value:"false",children:"Inactief"})]}),t.jsxs("div",{className:"flex gap-3",children:[t.jsx(se,{type:"submit",children:"Opslaan"}),r.type==="ProcessStep"&&t.jsx(se,{type:"button",variant:"outline",onClick:N,children:"Annuleren"})]})]})]}),t.jsx("div",{className:"grid md:grid-cols-2 gap-6",children:f.map(C=>t.jsxs("div",{className:"bg-white rounded-2xl p-6 border-2 border-gray-200",children:[t.jsxs("div",{className:"flex justify-between items-start mb-4",children:[t.jsxs("div",{className:"flex items-center gap-3",children:[t.jsxs("span",{className:"text-2xl font-bold text-blue-600",children:["0",C.step_number]}),t.jsx("h3",{className:"font-bold text-lg",children:C.title})]}),t.jsxs("div",{className:"flex gap-2",children:[t.jsx(se,{size:"sm",variant:"ghost",onClick:()=>w("ProcessStep",C),children:t.jsx(Tn,{className:"w-4 h-4"})}),t.jsx(se,{size:"sm",variant:"ghost",onClick:()=>j.mutate({entity:"ProcessStep",id:C.id}),children:t.jsx(wt,{className:"w-4 h-4"})})]})]}),t.jsx("p",{className:"text-gray-600 text-sm",children:C.description})]},C.id))})]}),t.jsxs(Fo,{value:"team",children:[t.jsxs("div",{className:"bg-white rounded-2xl p-8 border border-gray-200 mb-8",children:[t.jsx("h2",{className:"text-xl font-bold mb-6",children:r.type==="TeamMember"?"Teamlid Bewerken":"Nieuw Teamlid"}),t.jsxs("form",{onSubmit:C=>k(C,"TeamMember"),className:"space-y-6",children:[t.jsx(me,{placeholder:"Naam",value:s.name||"",onChange:C=>a({...s,name:C.target.value}),required:!0}),t.jsx(me,{placeholder:"Functie (bijv. Founder & CEO)",value:s.role||"",onChange:C=>a({...s,role:C.target.value}),required:!0}),t.jsx(ea,{label:"Foto",value:s.image_url,onChange:C=>a({...s,image_url:C}),recommendedSize:"500x500px"}),t.jsx(pt,{placeholder:"Bio (optioneel)",value:s.bio||"",onChange:C=>a({...s,bio:C.target.value})}),t.jsx(me,{placeholder:"LinkedIn URL (optioneel)",value:s.linkedin_url||"",onChange:C=>a({...s,linkedin_url:C.target.value})}),t.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[t.jsx(me,{type:"number",placeholder:"Volgorde",value:s.sort_order||0,onChange:C=>a({...s,sort_order:parseInt(C.target.value)})}),t.jsxs("select",{value:s.active??!0,onChange:C=>a({...s,active:C.target.value==="true"}),className:"w-full h-12 px-4 border-b-2 border-gray-200 focus:border-[#FAB868] bg-white",children:[t.jsx("option",{value:"true",children:"Actief"}),t.jsx("option",{value:"false",children:"Inactief"})]})]}),t.jsxs("div",{className:"flex gap-3",children:[t.jsx(se,{type:"submit",children:"Opslaan"}),r.type==="TeamMember"&&t.jsx(se,{type:"button",variant:"outline",onClick:N,children:"Annuleren"})]})]})]}),t.jsx("div",{className:"grid md:grid-cols-3 gap-6",children:h.map(C=>t.jsxs("div",{className:"bg-white rounded-2xl p-6 border-2 border-gray-200",children:[C.image_url&&t.jsx("img",{src:C.image_url,alt:C.name,className:"w-full h-48 object-cover rounded-xl mb-4"}),t.jsxs("div",{className:"flex justify-between items-start mb-2",children:[t.jsxs("div",{children:[t.jsx("h3",{className:"font-bold",children:C.name}),t.jsx("p",{className:"text-sm text-gray-600",children:C.role})]}),t.jsxs("div",{className:"flex gap-2",children:[t.jsx(se,{size:"sm",variant:"ghost",onClick:()=>w("TeamMember",C),children:t.jsx(Tn,{className:"w-4 h-4"})}),t.jsx(se,{size:"sm",variant:"ghost",onClick:()=>j.mutate({entity:"TeamMember",id:C.id}),children:t.jsx(wt,{className:"w-4 h-4"})})]})]})]},C.id))})]}),t.jsxs(Fo,{value:"ctas",children:[t.jsxs("div",{className:"bg-white rounded-2xl p-8 border border-gray-200 mb-8",children:[t.jsx("h2",{className:"text-xl font-bold mb-6",children:r.type==="HomeCTA"?"CTA Bewerken":"Nieuwe CTA"}),t.jsxs("form",{onSubmit:C=>k(C,"HomeCTA"),className:"space-y-6",children:[t.jsx(me,{placeholder:"Titel (bijv. AI Quiz)",value:s.title||"",onChange:C=>a({...s,title:C.target.value}),required:!0}),t.jsx(pt,{placeholder:"Beschrijving",value:s.description||"",onChange:C=>a({...s,description:C.target.value}),required:!0}),t.jsx(me,{placeholder:"Button tekst (bijv. Start de quiz)",value:s.button_text||"",onChange:C=>a({...s,button_text:C.target.value}),required:!0}),t.jsx(me,{placeholder:"Button URL",value:s.button_url||"",onChange:C=>a({...s,button_url:C.target.value}),required:!0}),t.jsx(me,{placeholder:"Icon naam (bijv. Sparkles, Calendar, GraduationCap)",value:s.icon||"",onChange:C=>a({...s,icon:C.target.value}),required:!0}),t.jsxs("div",{className:"grid grid-cols-3 gap-4",children:[t.jsx(me,{type:"number",placeholder:"Volgorde",value:s.sort_order||0,onChange:C=>a({...s,sort_order:parseInt(C.target.value)})}),t.jsxs("select",{value:s.featured??!1,onChange:C=>a({...s,featured:C.target.value==="true"}),className:"w-full h-12 px-4 border-b-2 border-gray-200 focus:border-[#FAB868] bg-white",children:[t.jsx("option",{value:"false",children:"Normaal"}),t.jsx("option",{value:"true",children:"Featured (blauw)"})]}),t.jsxs("select",{value:s.active??!0,onChange:C=>a({...s,active:C.target.value==="true"}),className:"w-full h-12 px-4 border-b-2 border-gray-200 focus:border-[#FAB868] bg-white",children:[t.jsx("option",{value:"true",children:"Actief"}),t.jsx("option",{value:"false",children:"Inactief"})]})]}),t.jsxs("div",{className:"flex gap-3",children:[t.jsx(se,{type:"submit",children:"Opslaan"}),r.type==="HomeCTA"&&t.jsx(se,{type:"button",variant:"outline",onClick:N,children:"Annuleren"})]})]})]}),t.jsx("div",{className:"grid md:grid-cols-2 gap-6",children:m.map(C=>t.jsxs("div",{className:`rounded-2xl p-6 border-2 ${C.featured?"bg-blue-600 text-white border-blue-700":"bg-white border-gray-200"}`,children:[t.jsxs("div",{className:"flex justify-between items-start mb-4",children:[t.jsx("h3",{className:"font-bold text-lg",children:C.title}),t.jsxs("div",{className:"flex gap-2",children:[t.jsx(se,{size:"sm",variant:"ghost",onClick:()=>w("HomeCTA",C),children:t.jsx(Tn,{className:"w-4 h-4"})}),t.jsx(se,{size:"sm",variant:"ghost",onClick:()=>j.mutate({entity:"HomeCTA",id:C.id}),children:t.jsx(wt,{className:"w-4 h-4"})})]})]}),t.jsx("p",{className:`text-sm mb-2 ${C.featured?"text-white/90":"text-gray-600"}`,children:C.description}),t.jsxs("p",{className:"text-xs opacity-70",children:["Button: ",C.button_text]})]},C.id))})]})]})]})})}function eQ(){var j,y,x,N,w,k,A;const e=jl(),[n,r]=F.useState(!1),[i,s]=F.useState(!0),[a,o]=F.useState(null),c=Yt();F.useEffect(()=>{(async()=>{try{const E=await ue.auth.me();if((E==null?void 0:E.role)!=="admin"){e(oe("Home"));return}r(!0)}catch{e(oe("Home"))}finally{s(!1)}})()},[e]);const{data:d=[],isLoading:f}=ze({queryKey:["impact-scan-submissions"],queryFn:()=>ue.entities.ImpactScanSubmission2.list("-created_date")}),{data:h=[],isLoading:m}=ze({queryKey:["impact-scan-requests"],queryFn:()=>ue.entities.ImpactScanRequest.list("-created_date")}),p=f||m,g=Me({mutationFn:S=>ue.entities.ImpactScanSubmission2.delete(S),onSuccess:()=>{c.invalidateQueries({queryKey:["impact-scan-submissions"]}),o(null)}}),b=()=>{const S=[["Website URL","Bedrijfsnaam","Branche","Email aanvrager","Datum","Rapport Link"],...d.map(B=>{var I,R,D,q;return[B.website_url||"",B.company_name||((R=(I=B.report_data)==null?void 0:I.company_profile)==null?void 0:R.name)||"",B.industry||((q=(D=B.report_data)==null?void 0:D.company_profile)==null?void 0:q.sector)||"",B.submitted_by_email||"",_t(new Date(B.created_date),"dd-MM-yyyy HH:mm"),`https://48-7.nl/AIImpactRapport?report_id=${B.id}`]})].map(B=>B.join(",")).join(`
`),E=new Blob([S],{type:"text/csv;charset=utf-8;"}),C=document.createElement("a");C.href=URL.createObjectURL(E),C.download=`impact-scans-${_t(new Date,"dd-MM-yyyy")}.csv`,C.click()};return i?t.jsx("div",{className:"pt-20 min-h-screen bg-gray-50 flex items-center justify-center",children:t.jsxs("div",{className:"text-center",children:[t.jsx(Zn,{className:"w-16 h-16 text-gray-400 mx-auto mb-4"}),t.jsx("p",{className:"text-gray-600",children:"Toegang controleren..."})]})}):n?t.jsx("div",{className:"pt-20 min-h-screen bg-gray-50",children:t.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-12",children:[t.jsxs("div",{className:"flex items-center justify-between mb-8",children:[t.jsxs("div",{className:"flex items-center gap-4",children:[t.jsx(fe,{to:oe("AdminDashboard"),children:t.jsx(se,{variant:"outline",size:"icon",children:t.jsx(ht,{className:"w-5 h-5"})})}),t.jsxs("div",{children:[t.jsx("h1",{className:"text-3xl font-bold text-gray-900",children:"AI Impact Scans"}),t.jsxs("p",{className:"text-gray-600",children:[h.length," aanvragen • ",d.length," rapporten"]})]})]}),t.jsxs(se,{onClick:b,disabled:d.length===0,children:[t.jsx(vu,{className:"w-4 h-4 mr-2"}),"Exporteer CSV"]})]}),p?t.jsx("div",{className:"flex justify-center py-12",children:t.jsx("div",{className:"w-8 h-8 border-4 border-blue-600 border-t-transparent rounded-full animate-spin"})}):h.length===0&&d.length===0?t.jsxs("div",{className:"bg-white rounded-2xl p-12 text-center",children:[t.jsx(Ut,{className:"w-16 h-16 text-gray-300 mx-auto mb-4"}),t.jsx("h3",{className:"text-xl font-semibold text-gray-900 mb-2",children:"Nog geen scans"}),t.jsx("p",{className:"text-gray-600",children:"Er zijn nog geen AI Impact Scans aangevraagd"})]}):t.jsxs("div",{className:"grid lg:grid-cols-2 gap-6",children:[t.jsxs("div",{className:"space-y-4",children:[h.map(S=>{const E=d.find(B=>B.id===S.submission_id),C={pending:"bg-gray-100 text-gray-700",processing:"bg-blue-100 text-blue-700",completed:"bg-green-100 text-green-700",failed:"bg-red-100 text-red-700"};return t.jsxs("div",{onClick:()=>o(E||S),className:`bg-white rounded-xl p-6 border-2 cursor-pointer transition-all ${(a==null?void 0:a.id)===S.id||(a==null?void 0:a.id)===(E==null?void 0:E.id)?"border-blue-600 shadow-lg":"border-gray-200 hover:border-gray-300"}`,children:[t.jsxs("div",{className:"flex items-start justify-between mb-3",children:[t.jsxs("div",{className:"flex-1",children:[t.jsx("h3",{className:"font-bold text-gray-900",children:S.user_name||(E==null?void 0:E.company_name)||S.company_name||S.website_url||"Onbekend Bedrijf"}),t.jsx("p",{className:"text-sm text-gray-500",children:S.company_name||(E==null?void 0:E.company_name)||""}),S.user_email&&t.jsx("p",{className:"text-sm text-gray-400",children:S.user_email})]}),t.jsxs("div",{className:"flex items-center gap-2",children:[t.jsx("span",{className:`px-2 py-1 rounded-full text-xs font-semibold ${C[S.status]}`,children:S.status==="pending"?"In wachtrij":S.status==="processing"?"Bezig":S.status==="completed"?"Voltooid":"Gefaald"}),(E==null?void 0:E.email_sent)&&t.jsx(vt,{className:"w-5 h-5 text-green-600"})]})]}),t.jsx("div",{className:"flex items-center gap-3 text-sm text-gray-600",children:t.jsx("span",{children:_t(new Date(S.created_date),"dd MMM yyyy HH:mm")})})]},S.id)}),d.filter(S=>!h.find(E=>E.submission_id===S.id)).map(S=>{var E,C;return t.jsxs("div",{onClick:()=>o(S),className:`bg-white rounded-xl p-6 border-2 cursor-pointer transition-all ${(a==null?void 0:a.id)===S.id?"border-blue-600 shadow-lg":"border-gray-200 hover:border-gray-300"}`,children:[t.jsxs("div",{className:"flex items-start justify-between mb-3",children:[t.jsxs("div",{className:"flex-1",children:[t.jsx("h3",{className:"font-bold text-gray-900",children:((C=(E=S.report_data)==null?void 0:E.company_profile)==null?void 0:C.name)||S.company_name||S.website_url||"Onbekend Bedrijf"}),S.company_name&&t.jsx("p",{className:"text-sm text-gray-500",children:S.company_name}),S.submitted_by_email&&t.jsx("p",{className:"text-sm text-gray-400",children:S.submitted_by_email})]}),S.email_sent?t.jsx(vt,{className:"w-5 h-5 text-green-600"}):t.jsx(Qc,{className:"w-5 h-5 text-gray-400"})]}),t.jsx("div",{className:"flex items-center gap-3 text-sm text-gray-600",children:t.jsx("span",{children:_t(new Date(S.created_date),"dd MMM yyyy HH:mm")})})]},S.id)})]}),t.jsx("div",{className:"lg:sticky lg:top-24 h-fit",children:a?t.jsxs("div",{className:"bg-white rounded-xl p-6 border border-gray-200",children:[t.jsx("h2",{className:"text-xl font-bold text-gray-900 mb-6",children:"Detail"}),t.jsxs("div",{className:"space-y-4",children:[a.status&&t.jsxs("div",{children:[t.jsx("label",{className:"text-sm font-medium text-gray-600",children:"Status"}),t.jsx("p",{className:"text-gray-900 font-semibold",children:a.status==="pending"?"⏳ In wachtrij":a.status==="processing"?"⚙️ Bezig met genereren":a.status==="completed"?"✅ Voltooid":"❌ Gefaald"}),a.error_message&&t.jsx("p",{className:"text-sm text-red-600 mt-1",children:a.error_message})]}),a.submission_id&&t.jsxs("div",{children:[t.jsx("label",{className:"text-sm font-medium text-gray-600",children:"Rapport Link"}),t.jsx("div",{className:"flex items-center gap-2 mt-1",children:t.jsxs("a",{href:`/AIImpactRapport?report_id=${a.submission_id}`,target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-2 text-blue-600 hover:text-blue-800 transition-colors",children:[t.jsx(Ls,{className:"w-4 h-4"}),"Bekijk rapport"]})})]}),a.report_data&&t.jsxs("div",{children:[t.jsx("label",{className:"text-sm font-medium text-gray-600",children:"Rapport Link"}),t.jsx("div",{className:"flex items-center gap-2 mt-1",children:t.jsxs("a",{href:`/AIImpactRapport?report_id=${a.id}`,target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-2 text-blue-600 hover:text-blue-800 transition-colors",children:[t.jsx(Ls,{className:"w-4 h-4"}),"Bekijk rapport"]})})]}),t.jsxs("div",{children:[t.jsx("label",{className:"text-sm font-medium text-gray-600",children:"Website URL"}),t.jsx("p",{className:"text-gray-900",children:a.website_url})]}),t.jsxs("div",{children:[t.jsx("label",{className:"text-sm font-medium text-gray-600",children:"Bedrijfsnaam"}),t.jsx("p",{className:"text-gray-900",children:a.company_name||((y=(j=a.report_data)==null?void 0:j.company_profile)==null?void 0:y.name)||"Niet opgegeven"})]}),t.jsxs("div",{children:[t.jsx("label",{className:"text-sm font-medium text-gray-600",children:"Branche"}),t.jsx("p",{className:"text-gray-900",children:a.industry||((N=(x=a.report_data)==null?void 0:x.company_profile)==null?void 0:N.sector)||"Niet opgegeven"})]}),t.jsxs("div",{children:[t.jsx("label",{className:"text-sm font-medium text-gray-600",children:"Email aanvrager"}),t.jsx("p",{className:"text-gray-900",children:a.user_email||a.submitted_by_email||"Niet opgegeven"})]}),a.user_name&&t.jsxs("div",{children:[t.jsx("label",{className:"text-sm font-medium text-gray-600",children:"Naam aanvrager"}),t.jsx("p",{className:"text-gray-900",children:a.user_name})]}),((w=a.report_data)==null?void 0:w.quick_scan)&&t.jsxs("div",{children:[t.jsx("label",{className:"text-sm font-medium text-gray-600",children:"Quick Scan"}),t.jsx("p",{className:"text-gray-900 text-sm",children:a.report_data.quick_scan.focus||"Niet beschikbaar"})]}),((A=(k=a.report_data)==null?void 0:k.opportunities)==null?void 0:A.length)>0&&t.jsxs("div",{children:[t.jsxs("label",{className:"text-sm font-medium text-gray-600",children:["AI Kansen (",a.report_data.opportunities.length,")"]}),t.jsx("ul",{className:"list-disc list-inside text-sm text-gray-900 space-y-1 mt-1",children:a.report_data.opportunities.map((S,E)=>t.jsx("li",{children:S.title},E))})]}),t.jsxs("div",{children:[t.jsx("label",{className:"text-sm font-medium text-gray-600",children:"Email Status"}),t.jsx("div",{className:"flex items-center gap-2 mt-1",children:a.email_sent?t.jsxs(t.Fragment,{children:[t.jsx(vt,{className:"w-5 h-5 text-green-600"}),t.jsxs("span",{className:"text-green-600",children:["Verzonden op ",_t(new Date(a.email_sent_at),"dd MMM yyyy HH:mm")]})]}):t.jsxs(t.Fragment,{children:[t.jsx(Qc,{className:"w-5 h-5 text-gray-400"}),t.jsx("span",{className:"text-gray-600",children:"Niet verzonden"}),a.email_error&&t.jsx("p",{className:"text-xs text-red-500 mt-1",children:a.email_error})]})})]}),t.jsx("div",{className:"pt-6 border-t border-gray-200 mt-6",children:t.jsxs(se,{variant:"destructive",onClick:()=>{confirm("Weet je zeker dat je deze scan wilt verwijderen?")&&g.mutate(a.id)},disabled:g.isPending,className:"w-full",children:[t.jsx(wt,{className:"w-4 h-4 mr-2"}),g.isPending?"Verwijderen...":"Verwijderen"]})})]})]}):t.jsxs("div",{className:"bg-gray-50 rounded-xl p-12 text-center border-2 border-dashed border-gray-300",children:[t.jsx(Ut,{className:"w-12 h-12 text-gray-400 mx-auto mb-3"}),t.jsx("p",{className:"text-gray-600",children:"Selecteer een scan om details te bekijken"})]})})]})]})}):null}function tQ(){const{data:e=[],isLoading:n}=ze({queryKey:["newsletter-subscribers"],queryFn:()=>ue.entities.NewsletterSubscriber.list("-subscription_date")}),r=()=>{const i=[["Email","Inschrijfdatum","Bron","Status"],...e.map(o=>[o.email,o.subscription_date?_t(new Date(o.subscription_date),"dd-MM-yyyy HH:mm"):"",o.source||"onbekend",o.is_active?"Actief":"Inactief"])].map(o=>o.join(",")).join(`
`),s=new Blob([i],{type:"text/csv;charset=utf-8;"}),a=document.createElement("a");a.href=URL.createObjectURL(s),a.download=`nieuwsbrief-subscribers-${_t(new Date,"dd-MM-yyyy")}.csv`,a.click()};return t.jsx("div",{className:"pt-20 min-h-screen bg-gray-50",children:t.jsxs("div",{className:"max-w-6xl mx-auto px-4 sm:px-6 lg:px-8 py-12",children:[t.jsxs("div",{className:"flex items-center justify-between mb-8",children:[t.jsxs("div",{className:"flex items-center gap-4",children:[t.jsx(fe,{to:oe("AdminDashboard"),children:t.jsx(se,{variant:"outline",size:"icon",children:t.jsx(ht,{className:"w-5 h-5"})})}),t.jsxs("div",{children:[t.jsx("h1",{className:"text-3xl font-bold text-gray-900",children:"Nieuwsbrief Inschrijvingen"}),t.jsxs("p",{className:"text-gray-600",children:[e.length," abonnees"]})]})]}),t.jsxs(se,{onClick:r,disabled:e.length===0,children:[t.jsx(vu,{className:"w-4 h-4 mr-2"}),"Exporteer CSV"]})]}),n?t.jsx("div",{className:"flex justify-center py-12",children:t.jsx("div",{className:"w-8 h-8 border-4 border-blue-600 border-t-transparent rounded-full animate-spin"})}):e.length===0?t.jsxs("div",{className:"bg-white rounded-2xl p-12 text-center",children:[t.jsx(Hr,{className:"w-16 h-16 text-gray-300 mx-auto mb-4"}),t.jsx("h3",{className:"text-xl font-semibold text-gray-900 mb-2",children:"Nog geen inschrijvingen"}),t.jsx("p",{className:"text-gray-600",children:"Er zijn nog geen nieuwsbrief abonnees"})]}):t.jsx("div",{className:"bg-white rounded-2xl border border-gray-200 overflow-hidden",children:t.jsx("div",{className:"overflow-x-auto",children:t.jsxs("table",{className:"w-full",children:[t.jsx("thead",{className:"bg-gray-50",children:t.jsxs("tr",{children:[t.jsx("th",{className:"px-6 py-4 text-left text-sm font-semibold text-gray-900",children:"Email"}),t.jsx("th",{className:"px-6 py-4 text-left text-sm font-semibold text-gray-900",children:"Inschrijfdatum"}),t.jsx("th",{className:"px-6 py-4 text-left text-sm font-semibold text-gray-900",children:"Bron"}),t.jsx("th",{className:"px-6 py-4 text-left text-sm font-semibold text-gray-900",children:"Status"})]})}),t.jsx("tbody",{className:"divide-y divide-gray-200",children:e.map(i=>t.jsxs("tr",{className:"hover:bg-gray-50",children:[t.jsx("td",{className:"px-6 py-4 text-sm text-gray-900",children:i.email}),t.jsx("td",{className:"px-6 py-4 text-sm text-gray-600",children:i.subscription_date?_t(new Date(i.subscription_date),"dd MMM yyyy HH:mm"):"-"}),t.jsx("td",{className:"px-6 py-4 text-sm text-gray-600",children:i.source||"onbekend"}),t.jsx("td",{className:"px-6 py-4",children:t.jsx("span",{className:`inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium ${i.is_active?"bg-green-100 text-green-800":"bg-gray-100 text-gray-800"}`,children:i.is_active?"Actief":"Inactief"})})]},i.id))})]})})})]})})}function nQ(){const[e,n]=F.useState(null),[r,i]=F.useState({title:"",video_url:"",publication_date:"",short_description:"",articles:[]}),s=Yt(),{data:a=[],isLoading:o}=ze({queryKey:["nieuws"],queryFn:()=>ue.entities.DailyAINews.list("-publication_date")}),c=Me({mutationFn:y=>ue.entities.DailyAINews.create(y),onSuccess:()=>{s.invalidateQueries({queryKey:["nieuws"]}),h()}}),d=Me({mutationFn:({id:y,data:x})=>ue.entities.DailyAINews.update(y,x),onSuccess:()=>{s.invalidateQueries({queryKey:["nieuws"]}),h()}}),f=Me({mutationFn:y=>ue.entities.DailyAINews.delete(y),onSuccess:()=>{s.invalidateQueries({queryKey:["nieuws"]})}}),h=()=>{n(null),i({title:"",video_url:"",publication_date:"",short_description:"",articles:[]})},m=y=>{n(y),i(y)},p=y=>{y.preventDefault(),e?d.mutate({id:e.id,data:r}):c.mutate(r)},g=()=>{i({...r,articles:[...r.articles,{article_title:"",article_content:"",source_url:"",image_url:""}]})},b=(y,x,N)=>{const w=[...r.articles];w[y][x]=N,i({...r,articles:w})},j=y=>{i({...r,articles:r.articles.filter((x,N)=>N!==y)})};return e!==null?t.jsx("div",{className:"pt-20 min-h-screen bg-gray-50",children:t.jsxs("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 py-12",children:[t.jsx("div",{className:"mb-6",children:t.jsxs(se,{variant:"outline",onClick:h,className:"gap-2",children:[t.jsx(ht,{className:"w-4 h-4"}),"Terug naar overzicht"]})}),t.jsxs("div",{className:"bg-white rounded-2xl p-8 border border-gray-200",children:[t.jsx("h2",{className:"text-3xl font-bold text-gray-900 mb-8",children:e?"Nieuws Bewerken":"Nieuw Nieuws Item"}),t.jsxs("form",{onSubmit:p,className:"space-y-6",children:[t.jsxs("div",{children:[t.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Titel *"}),t.jsx(me,{required:!0,value:r.title,onChange:y=>i({...r,title:y.target.value}),placeholder:"AI in 48 seconden - 7 januari 2026"})]}),t.jsxs("div",{className:"grid md:grid-cols-2 gap-6",children:[t.jsxs("div",{children:[t.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Video URL *"}),t.jsx(me,{required:!0,value:r.video_url,onChange:y=>i({...r,video_url:y.target.value}),placeholder:"https://youtube.com/embed/..."})]}),t.jsxs("div",{children:[t.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Publicatiedatum *"}),t.jsx(me,{required:!0,type:"date",value:r.publication_date,onChange:y=>i({...r,publication_date:y.target.value})})]})]}),t.jsxs("div",{children:[t.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Korte beschrijving"}),t.jsx(me,{value:r.short_description,onChange:y=>i({...r,short_description:y.target.value}),placeholder:"Samenvatting voor sociale media..."})]}),t.jsxs("div",{children:[t.jsxs("div",{className:"flex items-center justify-between mb-4",children:[t.jsx("label",{className:"block text-sm font-medium text-gray-700",children:"Nieuwsartikelen"}),t.jsxs(se,{type:"button",onClick:g,size:"sm",variant:"outline",children:[t.jsx(Pt,{className:"w-4 h-4 mr-1"})," Artikel"]})]}),t.jsx("div",{className:"space-y-6",children:r.articles.map((y,x)=>t.jsxs("div",{className:"p-6 bg-gray-50 rounded-xl border-2 border-gray-200",children:[t.jsxs("div",{className:"flex items-center justify-between mb-4",children:[t.jsxs("h4",{className:"font-semibold text-gray-900",children:["Artikel ",x+1]}),t.jsx(se,{type:"button",variant:"ghost",size:"sm",onClick:()=>j(x),children:t.jsx(rn,{className:"w-4 h-4"})})]}),t.jsxs("div",{className:"space-y-4",children:[t.jsx(me,{placeholder:"Artikel titel",value:y.article_title,onChange:N=>b(x,"article_title",N.target.value)}),t.jsx(Ji,{value:y.article_content,onChange:N=>b(x,"article_content",N),placeholder:"Artikel inhoud..."}),t.jsxs("div",{className:"grid md:grid-cols-2 gap-4",children:[t.jsx(me,{placeholder:"Bron URL",value:y.source_url,onChange:N=>b(x,"source_url",N.target.value)}),t.jsx(me,{placeholder:"Afbeelding URL",value:y.image_url,onChange:N=>b(x,"image_url",N.target.value)})]})]})]},x))})]}),t.jsxs("div",{className:"flex gap-4 pt-6",children:[t.jsxs(se,{type:"submit",className:"flex-1 gap-2",children:[t.jsx(kn,{className:"w-4 h-4"}),e?"Bijwerken":"Aanmaken"]}),t.jsx(se,{type:"button",variant:"outline",onClick:h,children:"Annuleren"})]})]})]})]})}):t.jsx("div",{className:"pt-20 min-h-screen bg-gray-50",children:t.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-12",children:[t.jsxs("div",{className:"flex items-center justify-between mb-8",children:[t.jsxs("div",{children:[t.jsxs(fe,{to:oe("AdminDashboard"),className:"text-blue-600 hover:text-blue-700 mb-2 inline-flex items-center gap-1",children:[t.jsx(ht,{className:"w-4 h-4"}),"Terug naar dashboard"]}),t.jsx("h1",{className:"text-4xl font-bold text-gray-900",children:"Dagelijks AI Nieuws"})]}),t.jsxs(se,{onClick:()=>n({}),children:[t.jsx(Pt,{className:"w-5 h-5 mr-2"}),"Nieuw Nieuws Item"]})]}),o?t.jsx("div",{className:"text-center py-12",children:t.jsx("div",{className:"inline-block w-8 h-8 border-4 border-blue-600 border-t-transparent rounded-full animate-spin"})}):t.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-6",children:a.map(y=>{var x;return t.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"bg-white rounded-xl p-6 border border-gray-200 hover:shadow-lg transition-shadow",children:[t.jsxs("div",{className:"mb-4",children:[t.jsx("h3",{className:"font-bold text-lg text-gray-900 mb-2",children:y.title}),t.jsx("p",{className:"text-sm text-gray-600",children:new Date(y.publication_date).toLocaleDateString("nl-NL",{day:"numeric",month:"long",year:"numeric"})}),t.jsxs("p",{className:"text-sm text-gray-500 mt-2",children:[((x=y.articles)==null?void 0:x.length)||0," artikelen"]})]}),t.jsxs("div",{className:"flex gap-2 mt-4",children:[t.jsxs(se,{size:"sm",variant:"outline",onClick:()=>m(y),className:"flex-1",children:[t.jsx(Tn,{className:"w-4 h-4 mr-1"}),"Bewerk"]}),t.jsx(se,{size:"sm",variant:"ghost",onClick:()=>{confirm("Weet je zeker dat je dit nieuws item wilt verwijderen?")&&f.mutate(y.id)},children:t.jsx(wt,{className:"w-4 h-4"})})]})]},y.id)})})]})})}function rQ(){const[e,n]=F.useState(null),[r,i]=F.useState(!1),s=Yt(),{data:a=[],isLoading:o}=ze({queryKey:["admin-solutions"],queryFn:()=>ue.entities.Solution.list("-sort_order",100),initialData:[]}),c=Me({mutationFn:b=>ue.entities.Solution.create(b),onSuccess:()=>{s.invalidateQueries({queryKey:["admin-solutions"]}),i(!1),n(null)}}),d=Me({mutationFn:({id:b,data:j})=>ue.entities.Solution.update(b,j),onSuccess:()=>{s.invalidateQueries({queryKey:["admin-solutions"]}),i(!1),n(null)}}),f=Me({mutationFn:b=>ue.entities.Solution.delete(b),onSuccess:()=>{s.invalidateQueries({queryKey:["admin-solutions"]})}}),h=b=>{b.preventDefault();const j=new FormData(b.target),y={title:j.get("title"),slug:j.get("slug"),subtitle:j.get("subtitle"),hero_title:j.get("hero_title"),hero_description:j.get("hero_description"),hero_image:j.get("hero_image"),short_description:j.get("short_description"),cta_title:j.get("cta_title"),cta_description:j.get("cta_description"),cta_button_text:j.get("cta_button_text"),cta_button_link:j.get("cta_button_link"),meta_description:j.get("meta_description"),published:j.get("published")==="on",featured:j.get("featured")==="on",sort_order:parseInt(j.get("sort_order"))||0,features:(e==null?void 0:e.features)||[],statistics:(e==null?void 0:e.statistics)||[],how_it_works:(e==null?void 0:e.how_it_works)||[],use_cases:(e==null?void 0:e.use_cases)||[],benefits:(e==null?void 0:e.benefits)||[],testimonial:(e==null?void 0:e.testimonial)||{}};e!=null&&e.id?d.mutate({id:e.id,data:y}):c.mutate(y)},m=b=>{n(b),i(!0)},p=b=>{confirm("Weet je zeker dat je deze oplossing wilt verwijderen?")&&f.mutate(b)},g=()=>{n({title:"",slug:"",subtitle:"",hero_title:"",hero_description:"",hero_image:"",short_description:"",published:!1,featured:!1,sort_order:0,features:[],statistics:[],how_it_works:[],use_cases:[],benefits:[],testimonial:{}}),i(!0)};return r?t.jsx("div",{className:"min-h-screen bg-gray-50 p-8",children:t.jsxs("div",{className:"max-w-4xl mx-auto",children:[t.jsxs("div",{className:"flex items-center justify-between mb-8",children:[t.jsx("h1",{className:"text-3xl font-bold",children:e!=null&&e.id?"Oplossing Bewerken":"Nieuwe Oplossing"}),t.jsxs(se,{onClick:()=>{i(!1),n(null)},variant:"outline",children:[t.jsx(rn,{className:"w-4 h-4 mr-2"}),"Annuleren"]})]}),t.jsxs("form",{onSubmit:h,className:"bg-white rounded-lg p-8 space-y-6",children:[t.jsxs("div",{className:"space-y-4",children:[t.jsx("h2",{className:"text-xl font-bold",children:"Basis Informatie"}),t.jsxs("div",{children:[t.jsx("label",{className:"block text-sm font-medium mb-1",children:"Titel *"}),t.jsx(me,{name:"title",defaultValue:e==null?void 0:e.title,required:!0})]}),t.jsxs("div",{children:[t.jsx("label",{className:"block text-sm font-medium mb-1",children:"Slug (URL) *"}),t.jsx(me,{name:"slug",defaultValue:e==null?void 0:e.slug,required:!0,placeholder:"bijv: ai-chatbot-platform"})]}),t.jsxs("div",{children:[t.jsx("label",{className:"block text-sm font-medium mb-1",children:"Subtitel"}),t.jsx(me,{name:"subtitle",defaultValue:e==null?void 0:e.subtitle})]}),t.jsxs("div",{children:[t.jsx("label",{className:"block text-sm font-medium mb-1",children:"Korte Beschrijving *"}),t.jsx(pt,{name:"short_description",defaultValue:e==null?void 0:e.short_description,required:!0,rows:3})]})]}),t.jsxs("div",{className:"space-y-4 border-t pt-6",children:[t.jsx("h2",{className:"text-xl font-bold",children:"Hero Sectie"}),t.jsxs("div",{children:[t.jsx("label",{className:"block text-sm font-medium mb-1",children:"Hero Titel"}),t.jsx(me,{name:"hero_title",defaultValue:e==null?void 0:e.hero_title})]}),t.jsxs("div",{children:[t.jsx("label",{className:"block text-sm font-medium mb-1",children:"Hero Beschrijving"}),t.jsx(pt,{name:"hero_description",defaultValue:e==null?void 0:e.hero_description,rows:3})]}),t.jsx(ea,{label:"Hero Afbeelding",name:"hero_image",value:e==null?void 0:e.hero_image,onChange:b=>n({...e,hero_image:b})})]}),t.jsxs("div",{className:"space-y-4 border-t pt-6",children:[t.jsx("h2",{className:"text-xl font-bold",children:"Call-to-Action"}),t.jsxs("div",{children:[t.jsx("label",{className:"block text-sm font-medium mb-1",children:"CTA Titel"}),t.jsx(me,{name:"cta_title",defaultValue:e==null?void 0:e.cta_title})]}),t.jsxs("div",{children:[t.jsx("label",{className:"block text-sm font-medium mb-1",children:"CTA Beschrijving"}),t.jsx(me,{name:"cta_description",defaultValue:e==null?void 0:e.cta_description})]}),t.jsxs("div",{children:[t.jsx("label",{className:"block text-sm font-medium mb-1",children:"CTA Button Tekst"}),t.jsx(me,{name:"cta_button_text",defaultValue:e==null?void 0:e.cta_button_text})]}),t.jsxs("div",{children:[t.jsx("label",{className:"block text-sm font-medium mb-1",children:"CTA Button Link"}),t.jsx(me,{name:"cta_button_link",defaultValue:e==null?void 0:e.cta_button_link})]})]}),t.jsxs("div",{className:"space-y-4 border-t pt-6",children:[t.jsx("h2",{className:"text-xl font-bold",children:"SEO & Publicatie"}),t.jsxs("div",{children:[t.jsx("label",{className:"block text-sm font-medium mb-1",children:"Meta Beschrijving"}),t.jsx(pt,{name:"meta_description",defaultValue:e==null?void 0:e.meta_description,rows:2})]}),t.jsxs("div",{children:[t.jsx("label",{className:"block text-sm font-medium mb-1",children:"Volgorde"}),t.jsx(me,{name:"sort_order",type:"number",defaultValue:(e==null?void 0:e.sort_order)||0})]}),t.jsxs("div",{className:"flex gap-6",children:[t.jsxs("label",{className:"flex items-center gap-2",children:[t.jsx("input",{type:"checkbox",name:"published",defaultChecked:e==null?void 0:e.published,className:"rounded"}),t.jsx("span",{className:"text-sm font-medium",children:"Gepubliceerd"})]}),t.jsxs("label",{className:"flex items-center gap-2",children:[t.jsx("input",{type:"checkbox",name:"featured",defaultChecked:e==null?void 0:e.featured,className:"rounded"}),t.jsx("span",{className:"text-sm font-medium",children:"Uitgelicht op homepage"})]})]})]}),t.jsx("div",{className:"bg-blue-50 border border-blue-200 rounded-lg p-4",children:t.jsxs("p",{className:"text-sm text-blue-800",children:[t.jsx("strong",{children:"Let op:"})," Voor het bewerken van Features, Statistieken, Stappen, Use Cases en Benefits, ga naar de database editor of gebruik de API. Deze zijn nog niet beschikbaar in dit formulier."]})}),t.jsxs("div",{className:"flex gap-4",children:[t.jsxs(se,{type:"submit",disabled:c.isPending||d.isPending,children:[t.jsx(kn,{className:"w-4 h-4 mr-2"}),e!=null&&e.id?"Bijwerken":"Aanmaken"]}),t.jsx(se,{type:"button",variant:"outline",onClick:()=>{i(!1),n(null)},children:"Annuleren"})]})]})]})}):t.jsx("div",{className:"min-h-screen bg-gray-50 p-8",children:t.jsxs("div",{className:"max-w-7xl mx-auto",children:[t.jsxs("div",{className:"flex items-center justify-between mb-8",children:[t.jsxs("div",{className:"flex items-center gap-4",children:[t.jsx(fe,{to:oe("AdminDashboard"),children:t.jsxs(se,{variant:"outline",size:"sm",children:[t.jsx(ht,{className:"w-4 h-4 mr-2"}),"Terug"]})}),t.jsx("h1",{className:"text-3xl font-bold",children:"AI Oplossingen Beheer"})]}),t.jsxs("div",{className:"flex gap-3",children:[t.jsx(fe,{to:oe("Oplossingen"),target:"_blank",children:t.jsxs(se,{variant:"outline",children:[t.jsx(Bs,{className:"w-4 h-4 mr-2"}),"Bekijk Pagina"]})}),t.jsxs(se,{onClick:g,children:[t.jsx(Pt,{className:"w-4 h-4 mr-2"}),"Nieuwe Oplossing"]})]})]}),o?t.jsx("div",{className:"text-center py-12",children:t.jsx("div",{className:"inline-block w-8 h-8 border-4 border-blue-600 border-t-transparent rounded-full animate-spin"})}):a.length===0?t.jsxs("div",{className:"bg-white rounded-lg p-12 text-center",children:[t.jsx("p",{className:"text-gray-600 mb-4",children:"Nog geen oplossingen aangemaakt"}),t.jsxs(se,{onClick:g,children:[t.jsx(Pt,{className:"w-4 h-4 mr-2"}),"Maak je eerste oplossing"]})]}):t.jsx("div",{className:"grid gap-6",children:a.map(b=>t.jsx("div",{className:"bg-white rounded-lg p-6 border border-gray-200",children:t.jsxs("div",{className:"flex items-start justify-between",children:[t.jsxs("div",{className:"flex-1",children:[t.jsxs("div",{className:"flex items-center gap-3 mb-2",children:[t.jsx("h3",{className:"text-xl font-bold",children:b.title}),b.published?t.jsx("span",{className:"px-2 py-1 bg-green-100 text-green-800 text-xs font-semibold rounded",children:"Gepubliceerd"}):t.jsx("span",{className:"px-2 py-1 bg-gray-100 text-gray-800 text-xs font-semibold rounded",children:"Concept"}),b.featured&&t.jsx("span",{className:"px-2 py-1 bg-blue-100 text-blue-800 text-xs font-semibold rounded",children:"Uitgelicht"})]}),b.subtitle&&t.jsx("p",{className:"text-sm text-blue-600 font-medium mb-2",children:b.subtitle}),t.jsx("p",{className:"text-gray-600 mb-2",children:b.short_description}),t.jsxs("p",{className:"text-sm text-gray-500",children:["Slug: ",b.slug]})]}),t.jsxs("div",{className:"flex gap-2 ml-4",children:[t.jsx(fe,{to:oe(`OplossingDetail?slug=${b.slug}`),target:"_blank",children:t.jsx(se,{variant:"outline",size:"sm",children:t.jsx(Bs,{className:"w-4 h-4"})})}),t.jsx(se,{variant:"outline",size:"sm",onClick:()=>m(b),children:t.jsx(Tn,{className:"w-4 h-4"})}),t.jsx(se,{variant:"outline",size:"sm",onClick:()=>p(b.id),className:"text-red-600 hover:text-red-700",children:t.jsx(wt,{className:"w-4 h-4"})})]})]})},b.id))})]})})}function iQ(){const[e,n]=F.useState("AIConsultancy"),[r,i]=F.useState(null),[s,a]=F.useState({section_type:"custom",section_key:"",title:"",subtitle:"",content:"",image_url:"",cta_text:"",cta_link:"",items:[]}),o=Yt(),c=[{value:"AIConsultancy",label:"AI Consultancy"},{value:"AIDevelopment",label:"AI Development"},{value:"DevelopmentSupport",label:"Development Support"}],d=[{value:"hero",label:"Hero (Hoofdbanner)"},{value:"services",label:"Services (Diensten)"},{value:"process",label:"Process (Proces)"},{value:"benefits",label:"Benefits (Voordelen)"},{value:"cta",label:"CTA (Call to Action)"},{value:"custom",label:"Custom (Vrije sectie)"}],{data:f=[],isLoading:h}=ze({queryKey:["pageSections",e],queryFn:()=>ue.entities.PageSection.filter({page_name:e},"sort_order")}),m=Me({mutationFn:k=>ue.entities.PageSection.create({...k,page_name:e}),onSuccess:()=>{o.invalidateQueries({queryKey:["pageSections",e]}),b()}}),p=Me({mutationFn:({id:k,data:A})=>ue.entities.PageSection.update(k,A),onSuccess:()=>{o.invalidateQueries({queryKey:["pageSections",e]}),b()}}),g=Me({mutationFn:k=>ue.entities.PageSection.delete(k),onSuccess:()=>{o.invalidateQueries({queryKey:["pageSections",e]})}}),b=()=>{i(null),a({section_type:"custom",section_key:"",title:"",subtitle:"",content:"",image_url:"",cta_text:"",cta_link:"",items:[],active:!0})},j=k=>{i(k),a({section_type:k.section_type,section_key:k.section_key,title:k.title||"",subtitle:k.subtitle||"",content:k.content||"",image_url:k.image_url||"",cta_text:k.cta_text||"",cta_link:k.cta_link||"",items:k.items||[],active:k.active!==!1})},y=k=>{k.preventDefault();const A={...s,sort_order:r?r.sort_order:f.length,active:s.active!==!1};r?p.mutate({id:r.id,data:A}):m.mutate(A)},x=()=>{a({...s,items:[...s.items,{title:"",description:"",icon:""}]})},N=(k,A,S)=>{const E=[...s.items];E[k][A]=S,a({...s,items:E})},w=k=>{a({...s,items:s.items.filter((A,S)=>S!==k)})};return t.jsx("div",{className:"pt-20 min-h-screen bg-gray-50",children:t.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-12",children:[t.jsx("div",{className:"mb-6",children:t.jsxs(fe,{to:oe("AdminDashboard"),className:"text-blue-600 hover:text-blue-700 inline-flex items-center gap-1",children:[t.jsx(ht,{className:"w-4 h-4"}),"Terug naar dashboard"]})}),t.jsxs("div",{className:"mb-8",children:[t.jsx("h1",{className:"text-4xl font-bold text-gray-900 mb-2",children:"Pagina Builder"}),t.jsx("p",{className:"text-lg text-gray-600",children:"Bouw en beheer pagina secties met een drag-and-drop interface"})]}),t.jsxs("div",{className:"bg-white rounded-2xl p-6 border border-gray-200 mb-8",children:[t.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-3",children:"Selecteer Pagina"}),t.jsx("div",{className:"flex gap-2 flex-wrap",children:c.map(k=>t.jsx(se,{variant:e===k.value?"default":"outline",onClick:()=>{n(k.value),b()},children:k.label},k.value))})]}),t.jsxs("div",{className:"grid lg:grid-cols-2 gap-8",children:[t.jsx("div",{children:t.jsxs("div",{className:"bg-white rounded-2xl p-6 border border-gray-200",children:[t.jsxs("div",{className:"flex items-center justify-between mb-6",children:[t.jsx("h2",{className:"text-2xl font-bold text-gray-900",children:"Pagina Secties"}),t.jsxs(se,{onClick:()=>b(),children:[t.jsx(Pt,{className:"w-4 h-4 mr-2"}),"Nieuwe Sectie"]})]}),h?t.jsx("div",{className:"text-center py-8",children:t.jsx("div",{className:"inline-block w-8 h-8 border-4 border-blue-600 border-t-transparent rounded-full animate-spin"})}):f.length===0?t.jsxs("div",{className:"text-center py-12 bg-gray-50 rounded-lg",children:[t.jsx("p",{className:"text-gray-600 mb-2",children:"Nog geen secties op deze pagina"}),t.jsx("p",{className:"text-sm text-gray-500",children:'Klik op "Nieuwe Sectie" om te beginnen'})]}):t.jsx("div",{className:"space-y-3",children:f.map(k=>t.jsx("div",{className:`p-4 rounded-lg hover:bg-gray-100 transition-colors border-l-4 ${k.active?"bg-gray-50 border-blue-500":"bg-red-50 border-red-400 opacity-60"}`,children:t.jsxs("div",{className:"flex items-start justify-between",children:[t.jsxs("div",{className:"flex-1",children:[t.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[t.jsx("span",{className:`text-xs font-semibold uppercase ${k.active?"text-blue-600":"text-red-600"}`,children:k.section_type}),t.jsxs("span",{className:"text-xs text-gray-500",children:["#",k.sort_order]}),!k.active&&t.jsx("span",{className:"text-xs bg-red-100 text-red-700 px-2 py-0.5 rounded",children:"INACTIEF"})]}),t.jsx("p",{className:"font-bold text-gray-900",children:k.title||k.section_key}),k.subtitle&&t.jsx("p",{className:"text-sm text-gray-600 mt-1",children:k.subtitle})]}),t.jsxs("div",{className:"flex gap-2 ml-4",children:[t.jsx(se,{size:"sm",variant:"ghost",onClick:()=>j(k),children:t.jsx(Tn,{className:"w-4 h-4"})}),t.jsx(se,{size:"sm",variant:"ghost",onClick:()=>{confirm("Weet je zeker dat je deze sectie wilt verwijderen?")&&g.mutate(k.id)},children:t.jsx(wt,{className:"w-4 h-4"})})]})]})},k.id))})]})}),t.jsx("div",{children:t.jsxs("div",{className:"bg-white rounded-2xl p-6 border border-gray-200 sticky top-24",children:[t.jsx("h2",{className:"text-2xl font-bold text-gray-900 mb-6",children:r?"Sectie Bewerken":"Nieuwe Sectie"}),t.jsxs("form",{onSubmit:y,className:"space-y-6",children:[t.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[t.jsxs("div",{children:[t.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Sectie Type *"}),t.jsxs(Yi,{value:s.section_type,onValueChange:k=>a({...s,section_type:k}),children:[t.jsx(bi,{children:t.jsx(Xi,{})}),t.jsx(ji,{children:d.map(k=>t.jsx(St,{value:k.value,children:k.label},k.value))})]})]}),t.jsxs("div",{children:[t.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Sectie Key *"}),t.jsx(me,{required:!0,value:s.section_key,onChange:k=>a({...s,section_key:k.target.value}),placeholder:"bijv. hero_main"})]})]}),t.jsxs("div",{children:[t.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Titel"}),t.jsx(me,{value:s.title,onChange:k=>a({...s,title:k.target.value}),placeholder:"Sectie titel..."})]}),t.jsxs("div",{children:[t.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Subtitel / Beschrijving"}),t.jsx(pt,{value:s.subtitle,onChange:k=>a({...s,subtitle:k.target.value}),placeholder:"Korte beschrijving...",rows:2})]}),t.jsxs("div",{children:[t.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Content (Rich Text)"}),t.jsx(Ji,{value:s.content,onChange:k=>a({...s,content:k}),placeholder:"Schrijf de content voor deze sectie..."})]}),t.jsx(ea,{value:s.image_url,onChange:k=>a({...s,image_url:k}),label:"Afbeelding",recommendedSize:"1200x800px"}),t.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[t.jsxs("div",{children:[t.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"CTA Tekst"}),t.jsx(me,{value:s.cta_text,onChange:k=>a({...s,cta_text:k.target.value}),placeholder:"Neem contact op"})]}),t.jsxs("div",{children:[t.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"CTA Link"}),t.jsx(me,{value:s.cta_link,onChange:k=>a({...s,cta_link:k.target.value}),placeholder:"/contact"})]})]}),t.jsx("div",{children:t.jsxs("label",{className:"flex items-center gap-2 cursor-pointer",children:[t.jsx("input",{type:"checkbox",checked:s.active!==!1,onChange:k=>a({...s,active:k.target.checked}),className:"w-4 h-4 text-blue-600 rounded"}),t.jsx("span",{className:"text-sm font-medium text-gray-700",children:"Sectie actief (toon op pagina)"})]})}),t.jsxs("div",{className:"border-t pt-6",children:[t.jsxs("div",{className:"flex items-center justify-between mb-4",children:[t.jsx("label",{className:"block text-sm font-medium text-gray-700",children:"Items (voor services, process, benefits secties)"}),t.jsxs(se,{type:"button",size:"sm",onClick:x,children:[t.jsx(Pt,{className:"w-4 h-4 mr-1"}),"Item toevoegen"]})]}),s.items.length>0&&t.jsx("div",{className:"space-y-4",children:s.items.map((k,A)=>t.jsxs("div",{className:"p-4 bg-gray-50 rounded-lg space-y-3",children:[t.jsxs("div",{className:"flex items-center justify-between",children:[t.jsxs("span",{className:"text-sm font-semibold text-gray-700",children:["Item #",A+1]}),t.jsx(se,{type:"button",size:"sm",variant:"ghost",onClick:()=>w(A),children:t.jsx(wt,{className:"w-4 h-4"})})]}),t.jsx(me,{placeholder:"Titel",value:k.title||"",onChange:S=>N(A,"title",S.target.value)}),t.jsx(pt,{placeholder:"Beschrijving",value:k.description||"",onChange:S=>N(A,"description",S.target.value),rows:2}),t.jsx(me,{placeholder:"Icon naam (bijv. Target, Brain, Code)",value:k.icon||"",onChange:S=>N(A,"icon",S.target.value)})]},A))})]}),t.jsxs("div",{className:"flex gap-4",children:[t.jsxs(se,{type:"submit",className:"flex-1",children:[t.jsx(kn,{className:"w-4 h-4 mr-2"}),r?"Bijwerken":"Aanmaken"]}),r&&t.jsx(se,{type:"button",variant:"outline",onClick:b,children:"Annuleren"})]})]})]})})]})]})})}function sQ(){const[e,n]=F.useState("AIConsultancy"),[r,i]=F.useState(null),[s,a]=F.useState({section_key:"",content:"",content_type:"html"}),o=Yt(),c=[{value:"AIConsultancy",label:"AI Consultancy"},{value:"AIDevelopment",label:"AI Development"},{value:"DevelopmentSupport",label:"Development Support"},{value:"Home",label:"Home"}],{data:d=[],isLoading:f}=ze({queryKey:["pageContent",e],queryFn:()=>ue.entities.PageContent.filter({page_name:e})}),h=Me({mutationFn:y=>ue.entities.PageContent.create({...y,page_name:e}),onSuccess:()=>{o.invalidateQueries({queryKey:["pageContent",e]}),g()}}),m=Me({mutationFn:({id:y,data:x})=>ue.entities.PageContent.update(y,x),onSuccess:()=>{o.invalidateQueries({queryKey:["pageContent",e]}),g()}}),p=Me({mutationFn:y=>ue.entities.PageContent.delete(y),onSuccess:()=>{o.invalidateQueries({queryKey:["pageContent",e]})}}),g=()=>{i(null),a({section_key:"",content:"",content_type:"html"})},b=y=>{i(y.id),a({section_key:y.section_key,content:y.content,content_type:y.content_type||"html"})},j=y=>{y.preventDefault(),r?m.mutate({id:r,data:s}):h.mutate(s)};return t.jsx("div",{className:"pt-20 min-h-screen bg-gray-50",children:t.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-12",children:[t.jsx("div",{className:"mb-6",children:t.jsxs(fe,{to:oe("AdminDashboard"),className:"text-blue-600 hover:text-blue-700 inline-flex items-center gap-1",children:[t.jsx(ht,{className:"w-4 h-4"}),"Terug naar dashboard"]})}),t.jsxs("div",{className:"mb-8",children:[t.jsx("h1",{className:"text-4xl font-bold text-gray-900 mb-2",children:"Pagina Editor"}),t.jsx("p",{className:"text-lg text-gray-600",children:"Beheer de content van statische pagina's zoals AI Consultancy, Development Support, etc."})]}),t.jsxs("div",{className:"bg-white rounded-2xl p-6 border border-gray-200 mb-8",children:[t.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-3",children:"Selecteer Pagina"}),t.jsx("div",{className:"flex gap-2 flex-wrap",children:c.map(y=>t.jsx(se,{variant:e===y.value?"default":"outline",onClick:()=>n(y.value),children:y.label},y.value))})]}),t.jsxs("div",{className:"grid lg:grid-cols-2 gap-8",children:[t.jsx("div",{children:t.jsxs("div",{className:"bg-white rounded-2xl p-6 border border-gray-200",children:[t.jsxs("div",{className:"flex items-center justify-between mb-6",children:[t.jsx("h2",{className:"text-2xl font-bold text-gray-900",children:"Content Secties"}),t.jsxs(se,{onClick:()=>g(),children:[t.jsx(Pt,{className:"w-4 h-4 mr-2"}),"Nieuw"]})]}),f?t.jsx("div",{className:"text-center py-8",children:t.jsx("div",{className:"inline-block w-8 h-8 border-4 border-blue-600 border-t-transparent rounded-full animate-spin"})}):d.length===0?t.jsxs("div",{className:"text-center py-12 text-gray-500",children:[t.jsx("p",{children:"Nog geen content secties."}),t.jsx("p",{className:"text-sm mt-2",children:'Klik op "Nieuw" om te beginnen.'})]}):t.jsx("div",{className:"space-y-3",children:d.map(y=>{var x;return t.jsx("div",{className:"p-4 bg-gray-50 rounded-lg hover:bg-gray-100 transition-colors",children:t.jsxs("div",{className:"flex items-start justify-between",children:[t.jsxs("div",{className:"flex-1",children:[t.jsx("p",{className:"font-semibold text-gray-900",children:y.section_key}),t.jsxs("p",{className:"text-sm text-gray-600 line-clamp-2 mt-1",children:[(x=y.content)==null?void 0:x.substring(0,100),"..."]})]}),t.jsxs("div",{className:"flex gap-2 ml-4",children:[t.jsx(se,{size:"sm",variant:"ghost",onClick:()=>b(y),children:t.jsx(Tn,{className:"w-4 h-4"})}),t.jsx(se,{size:"sm",variant:"ghost",onClick:()=>{confirm("Weet je zeker dat je deze sectie wilt verwijderen?")&&p.mutate(y.id)},children:t.jsx(wt,{className:"w-4 h-4"})})]})]})},y.id)})})]})}),t.jsx("div",{children:t.jsxs("div",{className:"bg-white rounded-2xl p-6 border border-gray-200 sticky top-24",children:[t.jsx("h2",{className:"text-2xl font-bold text-gray-900 mb-6",children:r?"Sectie Bewerken":"Nieuwe Sectie"}),t.jsxs("form",{onSubmit:j,className:"space-y-6",children:[t.jsxs("div",{children:[t.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Sectie Key *"}),t.jsx(me,{required:!0,value:s.section_key,onChange:y=>a({...s,section_key:y.target.value}),placeholder:"bijv. hero_title, services_intro"}),t.jsx("p",{className:"text-xs text-gray-500 mt-1",children:"Unieke identifier voor deze sectie"})]}),t.jsxs("div",{children:[t.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Content *"}),t.jsx(Ji,{value:s.content,onChange:y=>a({...s,content:y}),placeholder:"Schrijf de content voor deze sectie..."})]}),t.jsxs("div",{className:"flex gap-4",children:[t.jsxs(se,{type:"submit",className:"flex-1",children:[t.jsx(kn,{className:"w-4 h-4 mr-2"}),r?"Bijwerken":"Aanmaken"]}),r&&t.jsx(se,{type:"button",variant:"outline",onClick:g,children:"Annuleren"})]})]})]})})]}),t.jsxs("div",{className:"mt-8 bg-blue-50 border border-blue-200 rounded-2xl p-6",children:[t.jsx("h3",{className:"font-bold text-blue-900 mb-2",children:"💡 Hoe werkt dit?"}),t.jsxs("ul",{className:"text-blue-800 space-y-1 text-sm",children:[t.jsx("li",{children:'• Maak content secties aan met een unieke "section_key"'}),t.jsx("li",{children:"• Gebruik deze keys in je pagina code om dynamische content te laden"}),t.jsxs("li",{children:["• Bijvoorbeeld: ",t.jsx("code",{className:"bg-blue-100 px-1 rounded",children:"hero_title"}),", ",t.jsx("code",{className:"bg-blue-100 px-1 rounded",children:"services_description"})]}),t.jsx("li",{children:"• Content wordt opgeslagen in de PageContent entity"})]})]})]})})}function aQ(){const e=Yt(),[n,r]=F.useState(null),[i,s]=F.useState(!1),[a,o]=F.useState({name:"",type:"main_analysis",prompt_template:"",is_active:!0,priority:0}),[c,d]=F.useState("all"),{data:f=[],isLoading:h}=ze({queryKey:["impact-prompts"],queryFn:()=>ue.entities.ImpactReportPrompt.list("-priority")}),m=Me({mutationFn:E=>ue.entities.ImpactReportPrompt.create(E),onSuccess:()=>{e.invalidateQueries({queryKey:["impact-prompts"]}),s(!1),b()}}),p=Me({mutationFn:({id:E,data:C})=>ue.entities.ImpactReportPrompt.update(E,C),onSuccess:()=>{e.invalidateQueries({queryKey:["impact-prompts"]}),r(null),b()}}),g=Me({mutationFn:E=>ue.entities.ImpactReportPrompt.delete(E),onSuccess:()=>{e.invalidateQueries({queryKey:["impact-prompts"]})}}),b=()=>{o({name:"",type:"main_analysis",prompt_template:"",is_active:!0,priority:0})},j=E=>{r(E.id),o({name:E.name,type:E.type,prompt_template:E.prompt_template,is_active:E.is_active,priority:E.priority||0})},y=()=>{n?p.mutate({id:n,data:a}):m.mutate(a)},x=()=>{r(null),s(!1),b()},N=E=>{navigator.clipboard.writeText(E.prompt_template),alert("Prompt gekopieerd naar klembord!")},w=[{value:"main_analysis",label:"Hoofd Analyse",color:"blue"},{value:"quick_scan",label:"Quick Scan",color:"green"},{value:"opportunities",label:"AI Kansen",color:"purple"},{value:"productivity",label:"Productiviteit",color:"orange"},{value:"action_plan",label:"Actieplan",color:"red"}],k=c==="all"?f:f.filter(E=>E.type===c),A=E=>{const C=w.find(B=>B.value===E);return C?C.label:E},S=E=>{const C=w.find(B=>B.value===E);return C?C.color:"gray"};return h?t.jsx("div",{className:"pt-20 min-h-screen bg-gradient-to-b from-gray-50 to-white flex items-center justify-center",children:t.jsxs("div",{className:"text-center",children:[t.jsx("div",{className:"w-16 h-16 border-4 border-blue-600 border-t-transparent rounded-full animate-spin mx-auto mb-4"}),t.jsx("p",{className:"text-gray-600",children:"Prompts laden..."})]})}):t.jsx("div",{className:"pt-20 min-h-screen bg-gradient-to-b from-gray-50 to-white",children:t.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-12",children:[t.jsxs("div",{className:"mb-8",children:[t.jsx("h1",{className:"text-4xl font-bold text-gray-900 mb-4",children:"Prompt Library"}),t.jsx("p",{className:"text-xl text-gray-600",children:"Beheer alle AI prompts die worden gebruikt op de website"})]}),t.jsxs("div",{className:"mb-8 flex items-center justify-between",children:[t.jsxs("div",{className:"flex items-center gap-2",children:[t.jsxs("button",{onClick:()=>d("all"),className:`px-4 py-2 rounded-lg font-medium transition-colors ${c==="all"?"bg-blue-600 text-white":"bg-white text-gray-700 border border-gray-200 hover:bg-gray-50"}`,children:["Alle (",f.length,")"]}),w.map(E=>{const C=f.filter(B=>B.type===E.value).length;return t.jsxs("button",{onClick:()=>d(E.value),className:`px-4 py-2 rounded-lg font-medium transition-colors ${c===E.value?`bg-${E.color}-600 text-white`:"bg-white text-gray-700 border border-gray-200 hover:bg-gray-50"}`,children:[E.label," (",C,")"]},E.value)})]}),!i&&!n&&t.jsxs(se,{onClick:()=>s(!0),className:"bg-blue-600 hover:bg-blue-700 text-white",children:[t.jsx(Pt,{className:"w-5 h-5 mr-2"}),"Nieuwe Prompt"]})]}),(i||n)&&t.jsxs(Z.div,{initial:{opacity:0,y:-20},animate:{opacity:1,y:0},className:"bg-white rounded-2xl p-8 border-2 border-blue-200 mb-8",children:[t.jsx("h2",{className:"text-2xl font-bold text-gray-900 mb-6",children:n?"Prompt Bewerken":"Nieuwe Prompt Maken"}),t.jsxs("div",{className:"space-y-6",children:[t.jsxs("div",{className:"grid md:grid-cols-2 gap-6",children:[t.jsxs("div",{children:[t.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Naam *"}),t.jsx(me,{value:a.name,onChange:E=>o({...a,name:E.target.value}),placeholder:"Bijv: Impact Report Hoofd Prompt v2"})]}),t.jsxs("div",{children:[t.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Type *"}),t.jsx("select",{value:a.type,onChange:E=>o({...a,type:E.target.value}),className:"w-full px-4 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500",children:w.map(E=>t.jsx("option",{value:E.value,children:E.label},E.value))})]})]}),t.jsxs("div",{className:"grid md:grid-cols-2 gap-6",children:[t.jsxs("div",{children:[t.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Prioriteit"}),t.jsx(me,{type:"number",value:a.priority,onChange:E=>o({...a,priority:parseInt(E.target.value)||0}),placeholder:"0"}),t.jsx("p",{className:"text-xs text-gray-500 mt-1",children:"Hoger getal = hogere prioriteit"})]}),t.jsx("div",{children:t.jsxs("label",{className:"flex items-center gap-2 cursor-pointer",children:[t.jsx("input",{type:"checkbox",checked:a.is_active,onChange:E=>o({...a,is_active:E.target.checked}),className:"w-5 h-5 text-blue-600 rounded focus:ring-blue-500"}),t.jsx("span",{className:"text-sm font-medium text-gray-700",children:"Actief"})]})})]}),t.jsxs("div",{children:[t.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Prompt Template *"}),t.jsx(pt,{value:a.prompt_template,onChange:E=>o({...a,prompt_template:E.target.value}),placeholder:"Schrijf hier je prompt template...",className:"min-h-96 font-mono text-sm"}),t.jsxs("p",{className:"text-xs text-gray-500 mt-1",children:["Gebruik placeholders zoals ","${website_content}",", ","${industry}",", etc."]})]}),t.jsxs("div",{className:"flex gap-3",children:[t.jsxs(se,{onClick:y,disabled:!a.name||!a.prompt_template,className:"bg-blue-600 hover:bg-blue-700 text-white",children:[t.jsx(kn,{className:"w-5 h-5 mr-2"}),"Opslaan"]}),t.jsxs(se,{onClick:x,variant:"outline",children:[t.jsx(rn,{className:"w-5 h-5 mr-2"}),"Annuleren"]})]})]})]}),t.jsx("div",{className:"space-y-4",children:k.length===0?t.jsxs("div",{className:"text-center py-12 bg-white rounded-2xl border border-gray-200",children:[t.jsx(Ut,{className:"w-16 h-16 text-gray-400 mx-auto mb-4"}),t.jsx("p",{className:"text-gray-600",children:"Geen prompts gevonden"})]}):k.map((E,C)=>t.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:C*.05},className:"bg-white rounded-2xl p-6 border border-gray-200 hover:border-gray-300 transition-all",children:[t.jsxs("div",{className:"flex items-start justify-between mb-4",children:[t.jsxs("div",{className:"flex items-center gap-3",children:[t.jsx("div",{className:`w-12 h-12 bg-${S(E.type)}-100 rounded-xl flex items-center justify-center`,children:t.jsx(Ut,{className:`w-6 h-6 text-${S(E.type)}-600`})}),t.jsxs("div",{children:[t.jsx("h3",{className:"text-xl font-bold text-gray-900",children:E.name}),t.jsxs("div",{className:"flex items-center gap-2 mt-1",children:[t.jsx("span",{className:`px-2 py-1 rounded text-xs font-semibold bg-${S(E.type)}-100 text-${S(E.type)}-800`,children:A(E.type)}),E.is_active?t.jsxs("span",{className:"px-2 py-1 rounded text-xs font-semibold bg-green-100 text-green-800 flex items-center gap-1",children:[t.jsx(vt,{className:"w-3 h-3"}),"Actief"]}):t.jsxs("span",{className:"px-2 py-1 rounded text-xs font-semibold bg-gray-100 text-gray-800 flex items-center gap-1",children:[t.jsx(Ms,{className:"w-3 h-3"}),"Inactief"]}),E.priority>0&&t.jsxs("span",{className:"px-2 py-1 rounded text-xs font-semibold bg-amber-100 text-amber-800",children:["Prioriteit: ",E.priority]})]})]})]}),t.jsxs("div",{className:"flex items-center gap-2",children:[t.jsx("button",{onClick:()=>N(E),className:"p-2 text-gray-600 hover:text-blue-600 hover:bg-blue-50 rounded-lg transition-colors",title:"Kopieer prompt",children:t.jsx(B5,{className:"w-5 h-5"})}),t.jsx("button",{onClick:()=>j(E),className:"p-2 text-gray-600 hover:text-blue-600 hover:bg-blue-50 rounded-lg transition-colors",title:"Bewerk",children:t.jsx(Tn,{className:"w-5 h-5"})}),t.jsx("button",{onClick:()=>{confirm(`Weet je zeker dat je "${E.name}" wilt verwijderen?`)&&g.mutate(E.id)},className:"p-2 text-gray-600 hover:text-red-600 hover:bg-red-50 rounded-lg transition-colors",title:"Verwijderen",children:t.jsx(wt,{className:"w-5 h-5"})})]})]}),t.jsx("div",{className:"bg-gray-50 rounded-lg p-4 border border-gray-200",children:t.jsx("p",{className:"text-sm text-gray-600 font-mono whitespace-pre-wrap line-clamp-3",children:E.prompt_template})}),t.jsxs("div",{className:"flex items-center gap-4 mt-3 text-sm text-gray-500",children:[t.jsxs("span",{className:"flex items-center gap-1",children:[t.jsx(n3,{className:"w-4 h-4"}),"Gemaakt: ",new Date(E.created_date).toLocaleDateString("nl-NL")]}),E.updated_date&&t.jsxs("span",{children:["Bijgewerkt: ",new Date(E.updated_date).toLocaleDateString("nl-NL")]})]})]},E.id))})]})})}function oQ(){const[e,n]=F.useState(null),[r,i]=F.useState({text:"",author:"",role:"",rating:5,active:!0,sort_order:0}),s=Yt(),{data:a=[],isLoading:o}=ze({queryKey:["reviews"],queryFn:()=>ue.entities.Review.list("sort_order")}),c=Me({mutationFn:g=>ue.entities.Review.create(g),onSuccess:()=>{s.invalidateQueries({queryKey:["reviews"]}),h()}}),d=Me({mutationFn:({id:g,data:b})=>ue.entities.Review.update(g,b),onSuccess:()=>{s.invalidateQueries({queryKey:["reviews"]}),h()}}),f=Me({mutationFn:g=>ue.entities.Review.delete(g),onSuccess:()=>{s.invalidateQueries({queryKey:["reviews"]})}}),h=()=>{n(null),i({text:"",author:"",role:"",rating:5,active:!0,sort_order:0})},m=g=>{n(g.id),i(g)},p=g=>{g.preventDefault(),e?d.mutate({id:e,data:r}):c.mutate(r)};return t.jsx("div",{className:"pt-20 min-h-screen bg-gray-50",children:t.jsxs("div",{className:"max-w-5xl mx-auto px-4 sm:px-6 lg:px-8 py-12",children:[t.jsxs("div",{className:"flex items-center gap-4 mb-8",children:[t.jsx(fe,{to:oe("AdminDashboard"),children:t.jsx(se,{variant:"outline",size:"icon",children:t.jsx(ht,{className:"w-5 h-5"})})}),t.jsxs("div",{children:[t.jsx("h1",{className:"text-3xl font-bold text-gray-900",children:"Reviews Beheren"}),t.jsx("p",{className:"text-gray-600",children:"Beheer klantreviews voor de homepage"})]})]}),t.jsxs("div",{className:"bg-white rounded-2xl p-8 border border-gray-200 mb-8",children:[t.jsx("h2",{className:"text-xl font-bold mb-6",children:e?"Review Bewerken":"Nieuwe Review"}),t.jsxs("form",{onSubmit:p,className:"space-y-6",children:[t.jsxs("div",{children:[t.jsx("label",{className:"block text-sm font-medium mb-2",children:"Review Tekst *"}),t.jsx(pt,{value:r.text,onChange:g=>i({...r,text:g.target.value}),placeholder:"Wat zegt de klant over jullie?",className:"min-h-[120px]",required:!0})]}),t.jsxs("div",{className:"grid md:grid-cols-2 gap-6",children:[t.jsxs("div",{children:[t.jsx("label",{className:"block text-sm font-medium mb-2",children:"Naam Auteur *"}),t.jsx(me,{value:r.author,onChange:g=>i({...r,author:g.target.value}),placeholder:"Bijv. Paul van Beckhoven",required:!0})]}),t.jsxs("div",{children:[t.jsx("label",{className:"block text-sm font-medium mb-2",children:"Functie & Bedrijf *"}),t.jsx(me,{value:r.role,onChange:g=>i({...r,role:g.target.value}),placeholder:"Bijv. CEO, HIPHOT",required:!0})]})]}),t.jsxs("div",{className:"grid md:grid-cols-3 gap-6",children:[t.jsxs("div",{children:[t.jsx("label",{className:"block text-sm font-medium mb-2",children:"Rating (sterren)"}),t.jsx("div",{className:"flex items-center gap-2",children:[1,2,3,4,5].map(g=>t.jsx("button",{type:"button",onClick:()=>i({...r,rating:g}),className:"p-1",children:t.jsx(Fh,{className:`w-6 h-6 ${g<=r.rating?"fill-yellow-400 text-yellow-400":"text-gray-300"}`})},g))})]}),t.jsxs("div",{children:[t.jsx("label",{className:"block text-sm font-medium mb-2",children:"Sorteervolgorde"}),t.jsx(me,{type:"number",value:r.sort_order,onChange:g=>i({...r,sort_order:parseInt(g.target.value)})})]}),t.jsxs("div",{children:[t.jsx("label",{className:"block text-sm font-medium mb-2",children:"Status"}),t.jsxs("select",{value:r.active,onChange:g=>i({...r,active:g.target.value==="true"}),className:"w-full h-12 px-4 border-b-2 border-gray-200 focus:border-[#FAB868] bg-white",children:[t.jsx("option",{value:"true",children:"Actief"}),t.jsx("option",{value:"false",children:"Inactief"})]})]})]}),t.jsxs("div",{className:"flex gap-3",children:[t.jsx(se,{type:"submit",disabled:c.isPending||d.isPending,children:e?"Bijwerken":"Toevoegen"}),e&&t.jsx(se,{type:"button",variant:"outline",onClick:h,children:"Annuleren"})]})]})]}),t.jsxs("div",{className:"space-y-4",children:[t.jsxs("h2",{className:"text-xl font-bold",children:["Huidige Reviews (",a.length,")"]}),o?t.jsx("div",{className:"text-center py-12 text-gray-500",children:"Laden..."}):a.length===0?t.jsx("div",{className:"bg-white rounded-2xl p-12 border border-gray-200 text-center",children:t.jsx("p",{className:"text-gray-500",children:"Nog geen reviews. Voeg de eerste toe!"})}):t.jsx("div",{className:"grid md:grid-cols-2 gap-6",children:a.map(g=>t.jsxs("div",{className:`bg-white rounded-2xl p-6 border-2 ${g.active?"border-gray-200":"border-red-200 opacity-60"}`,children:[t.jsxs("div",{className:"flex items-start justify-between mb-4",children:[t.jsx("div",{className:"flex items-center gap-1",children:[...Array(g.rating)].map((b,j)=>t.jsx(Fh,{className:"w-4 h-4 fill-yellow-400 text-yellow-400"},j))}),t.jsxs("div",{className:"flex items-center gap-2",children:[t.jsx(se,{size:"sm",variant:"ghost",onClick:()=>m(g),children:t.jsx(Tn,{className:"w-4 h-4"})}),t.jsx(se,{size:"sm",variant:"ghost",onClick:()=>f.mutate(g.id),children:t.jsx(wt,{className:"w-4 h-4"})})]})]}),t.jsxs("p",{className:"text-gray-700 mb-4 italic",children:['"',g.text,'"']}),t.jsxs("div",{className:"border-t pt-4",children:[t.jsx("p",{className:"font-semibold text-gray-900",children:g.author}),t.jsx("p",{className:"text-sm text-gray-500",children:g.role})]}),!g.active&&t.jsx("div",{className:"mt-3 text-xs text-red-600 font-medium",children:"Inactief"})]},g.id))})]})]})})}function lQ(){const[e,n]=F.useState(""),r=Yt(),{data:i,isLoading:s}=ze({queryKey:["robotsTxt"],queryFn:async()=>{const d=await ue.entities.PageContent.filter({page_name:"SEO",section_key:"robots_txt"});return d&&d.length>0?(n(d[0].content),d[0]):null}}),a=Me({mutationFn:async d=>i?ue.entities.PageContent.update(i.id,{content:d}):ue.entities.PageContent.create({page_name:"SEO",section_key:"robots_txt",content:d,content_type:"text"}),onSuccess:()=>{r.invalidateQueries({queryKey:["robotsTxt"]}),alert("Robots.txt opgeslagen!")}}),o=()=>{a.mutate(e)},c=`User-agent: *
Allow: /

# Disallow admin pages
Disallow: /Admin*

# Sitemap
Sitemap: https://48-7.nl/sitemap.xml

# Crawl-delay
Crawl-delay: 1`;return t.jsx("div",{className:"pt-20 min-h-screen bg-gray-50",children:t.jsxs("div",{className:"max-w-5xl mx-auto px-4 sm:px-6 lg:px-8 py-12",children:[t.jsx("div",{className:"mb-6",children:t.jsxs(fe,{to:oe("AdminDashboard"),className:"text-blue-600 hover:text-blue-700 inline-flex items-center gap-1",children:[t.jsx(ht,{className:"w-4 h-4"}),"Terug naar dashboard"]})}),t.jsxs("div",{className:"mb-8",children:[t.jsx("h1",{className:"text-4xl font-bold text-gray-900 mb-2",children:"SEO Tools"}),t.jsx("p",{className:"text-lg text-gray-600",children:"Beheer robots.txt, sitemap en andere SEO instellingen"})]}),t.jsxs("div",{className:"grid md:grid-cols-2 gap-6 mb-8",children:[t.jsxs("div",{className:"bg-white rounded-2xl p-6 border border-gray-200",children:[t.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[t.jsx("div",{className:"w-12 h-12 bg-green-100 rounded-xl flex items-center justify-center",children:t.jsx(J5,{className:"w-6 h-6 text-green-600"})}),t.jsxs("div",{children:[t.jsx("h3",{className:"text-xl font-bold text-gray-900",children:"Sitemap.xml"}),t.jsx("p",{className:"text-sm text-gray-600",children:"XML sitemap voor zoekmachines"})]})]}),t.jsx("p",{className:"text-gray-700 mb-4",children:"De sitemap wordt automatisch gegenereerd op basis van je gepubliceerde content."}),t.jsxs("button",{onClick:async()=>{const d=await ue.functions.invoke("sitemap",{}),f=new Blob([d.data],{type:"application/xml"}),h=window.URL.createObjectURL(f);window.open(h,"_blank")},className:"inline-flex items-center gap-2 text-blue-600 hover:text-blue-700 font-medium",children:["Bekijk sitemap",t.jsx(Ls,{className:"w-4 h-4"})]})]}),t.jsxs("div",{className:"bg-white rounded-2xl p-6 border border-gray-200",children:[t.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[t.jsx("div",{className:"w-12 h-12 bg-purple-100 rounded-xl flex items-center justify-center",children:t.jsx(bA,{className:"w-6 h-6 text-purple-600"})}),t.jsxs("div",{children:[t.jsx("h3",{className:"text-xl font-bold text-gray-900",children:"LLM.txt"}),t.jsx("p",{className:"text-sm text-gray-600",children:"Content voor AI crawlers"})]})]}),t.jsx("p",{className:"text-gray-700 mb-4",children:"LLM.txt helpt AI systemen je site te begrijpen. Wordt automatisch gegenereerd."}),t.jsxs("button",{onClick:async()=>{const d=await ue.functions.invoke("llmtxt",{}),f=new Blob([d.data],{type:"text/plain"}),h=window.URL.createObjectURL(f);window.open(h,"_blank")},className:"inline-flex items-center gap-2 text-blue-600 hover:text-blue-700 font-medium",children:["Bekijk llm.txt",t.jsx(Ls,{className:"w-4 h-4"})]})]})]}),t.jsxs("div",{className:"bg-white rounded-2xl p-8 border border-gray-200",children:[t.jsxs("div",{className:"flex items-center gap-3 mb-6",children:[t.jsx("div",{className:"w-12 h-12 bg-blue-100 rounded-xl flex items-center justify-center",children:t.jsx(Ut,{className:"w-6 h-6 text-blue-600"})}),t.jsxs("div",{children:[t.jsx("h3",{className:"text-2xl font-bold text-gray-900",children:"Robots.txt"}),t.jsx("p",{className:"text-gray-600",children:"Configureer welke pagina's zoekmachines mogen crawlen"})]})]}),s?t.jsx("div",{className:"text-center py-8",children:t.jsx("div",{className:"inline-block w-8 h-8 border-4 border-blue-600 border-t-transparent rounded-full animate-spin"})}):t.jsxs(t.Fragment,{children:[t.jsxs("div",{className:"mb-4",children:[t.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Robots.txt Content"}),t.jsx(pt,{value:e,onChange:d=>n(d.target.value),placeholder:c,rows:15,className:"font-mono text-sm"}),t.jsx("p",{className:"text-xs text-gray-500 mt-2",children:"Let op: Gebruik correcte syntax. Verkeerde configuratie kan invloed hebben op je SEO."})]}),t.jsxs("div",{className:"flex gap-4",children:[t.jsxs(se,{onClick:o,className:"gap-2",children:[t.jsx(kn,{className:"w-4 h-4"}),"Opslaan"]}),t.jsx(se,{variant:"outline",onClick:()=>n(c),children:"Reset naar default"}),t.jsxs("button",{onClick:async()=>{const d=await ue.functions.invoke("robotstxt",{}),f=new Blob([d.data],{type:"text/plain"}),h=window.URL.createObjectURL(f);window.open(h,"_blank")},className:"inline-flex items-center gap-2 px-4 py-2 text-blue-600 hover:text-blue-700 font-medium",children:["Bekijk live versie",t.jsx(Ls,{className:"w-4 h-4"})]})]})]})]}),t.jsxs("div",{className:"mt-8 bg-blue-50 border border-blue-200 rounded-2xl p-6",children:[t.jsx("h3",{className:"font-bold text-blue-900 mb-3",children:"📚 SEO Documentatie"}),t.jsxs("ul",{className:"text-blue-800 space-y-2 text-sm",children:[t.jsxs("li",{children:["• ",t.jsx("strong",{children:"Sitemap.xml:"})," Via backend function 'sitemap' - automatisch bijgewerkt"]}),t.jsxs("li",{children:["• ",t.jsx("strong",{children:"Robots.txt:"})," Via backend function 'robotstxt' - configureerbaar via deze pagina"]}),t.jsxs("li",{children:["• ",t.jsx("strong",{children:"LLM.txt:"})," Via backend function 'llmtxt' - geoptimaliseerd voor AI crawlers"]}),t.jsx("li",{children:"• Deze functions zijn toegankelijk via het Base44 function endpoint systeem"}),t.jsx("li",{children:"• SEO meta tags worden automatisch gegenereerd per pagina"}),t.jsx("li",{children:"• Canonical URLs voorkomen duplicate content issues"})]})]})]})})}var qf="Switch",[cQ]=Za(qf),[uQ,dQ]=cQ(qf),q6=F.forwardRef((e,n)=>{const{__scopeSwitch:r,name:i,checked:s,defaultChecked:a,required:o,disabled:c,value:d="on",onCheckedChange:f,form:h,...m}=e,[p,g]=F.useState(null),b=Qt(n,w=>g(w)),j=F.useRef(!1),y=p?h||!!p.closest("form"):!0,[x,N]=pl({prop:s,defaultProp:a??!1,onChange:f,caller:qf});return t.jsxs(uQ,{scope:r,checked:x,disabled:c,children:[t.jsx(jt.button,{type:"button",role:"switch","aria-checked":x,"aria-required":o,"data-state":$6(x),"data-disabled":c?"":void 0,disabled:c,value:d,...m,ref:b,onClick:bt(e.onClick,w=>{N(k=>!k),y&&(j.current=w.isPropagationStopped(),j.current||w.stopPropagation())})}),y&&t.jsx(U6,{control:p,bubbles:!j.current,name:i,value:d,checked:x,required:o,disabled:c,form:h,style:{transform:"translateX(-100%)"}})]})});q6.displayName=qf;var z6="SwitchThumb",V6=F.forwardRef((e,n)=>{const{__scopeSwitch:r,...i}=e,s=dQ(z6,r);return t.jsx(jt.span,{"data-state":$6(s.checked),"data-disabled":s.disabled?"":void 0,...i,ref:n})});V6.displayName=z6;var hQ="SwitchBubbleInput",U6=F.forwardRef(({__scopeSwitch:e,control:n,checked:r,bubbles:i=!0,...s},a)=>{const o=F.useRef(null),c=Qt(o,a),d=sb(r),f=nb(n);return F.useEffect(()=>{const h=o.current;if(!h)return;const m=window.HTMLInputElement.prototype,g=Object.getOwnPropertyDescriptor(m,"checked").set;if(d!==r&&g){const b=new Event("click",{bubbles:i});g.call(h,r),h.dispatchEvent(b)}},[d,r,i]),t.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:r,...s,tabIndex:-1,ref:c,style:{...s.style,...f,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});U6.displayName=hQ;function $6(e){return e?"checked":"unchecked"}var H6=q6,fQ=V6;const Hc=F.forwardRef(({className:e,...n},r)=>t.jsx(H6,{className:Gt("peer inline-flex h-5 w-9 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent shadow-sm transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input",e),...n,ref:r,children:t.jsx(fQ,{className:Gt("pointer-events-none block h-4 w-4 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-4 data-[state=unchecked]:translate-x-0")})}));Hc.displayName=H6.displayName;function mQ(){const[e,n]=F.useState({type:"blog",name:"",slug:""}),[r,i]=F.useState(null),[s,a]=F.useState(""),[o,c]=F.useState({linkedin:"",instagram:"",twitter:"",youtube:""}),[d,f]=F.useState(!0),[h,m]=F.useState(!0),[p,g]=F.useState(!0),b=Yt(),{data:j=[],isLoading:y}=ze({queryKey:["categories"],queryFn:()=>ue.entities.Category.list("sort_order")}),{data:x=[]}=ze({queryKey:["site-settings"],queryFn:()=>ue.entities.SiteSettings.list()});Rt.useEffect(()=>{const z=x.find(V=>V.setting_key==="logo_url");z&&a(z.value);const U=x.find(V=>V.setting_key==="linkedin_url"),Y=x.find(V=>V.setting_key==="instagram_url"),H=x.find(V=>V.setting_key==="twitter_url"),K=x.find(V=>V.setting_key==="youtube_url"),Q=x.find(V=>V.setting_key==="show_blog"),O=x.find(V=>V.setting_key==="show_news"),T=x.find(V=>V.setting_key==="show_training_calendar");c({linkedin:(U==null?void 0:U.value)||"",instagram:(Y==null?void 0:Y.value)||"",twitter:(H==null?void 0:H.value)||"",youtube:(K==null?void 0:K.value)||""}),f((Q==null?void 0:Q.value)!=="false"),m((O==null?void 0:O.value)!=="false"),g((T==null?void 0:T.value)!=="false")},[x]);const N=Me({mutationFn:z=>ue.entities.Category.create(z),onSuccess:()=>{b.invalidateQueries({queryKey:["categories"]}),n({type:"blog",name:"",slug:""})}});Me({mutationFn:({id:z,data:U})=>ue.entities.Category.update(z,U),onSuccess:()=>{b.invalidateQueries({queryKey:["categories"]}),i(null)}});const w=Me({mutationFn:z=>ue.entities.Category.delete(z),onSuccess:()=>{b.invalidateQueries({queryKey:["categories"]})}}),k=Me({mutationFn:async z=>{const U=x.find(Y=>Y.setting_key==="logo_url");return U?ue.entities.SiteSettings.update(U.id,{value:z}):ue.entities.SiteSettings.create({setting_key:"logo_url",value:z,description:"Website logo URL"})},onSuccess:()=>{b.invalidateQueries({queryKey:["site-settings"]}),alert("Logo succesvol opgeslagen!")}}),A=Me({mutationFn:async({key:z,value:U,description:Y})=>{const H=x.find(K=>K.setting_key===z);return H?ue.entities.SiteSettings.update(H.id,{value:String(U)}):ue.entities.SiteSettings.create({setting_key:z,value:String(U),description:Y})},onSuccess:()=>{b.invalidateQueries({queryKey:["site-settings"]})}}),S=async()=>{try{await Promise.all([A.mutateAsync({key:"linkedin_url",value:o.linkedin,description:"LinkedIn URL"}),A.mutateAsync({key:"instagram_url",value:o.instagram,description:"Instagram URL"}),A.mutateAsync({key:"twitter_url",value:o.twitter,description:"Twitter URL"}),A.mutateAsync({key:"youtube_url",value:o.youtube,description:"YouTube URL"})]),alert("Social media URLs opgeslagen!")}catch{alert("Er ging iets mis bij het opslaan")}},E=async z=>{f(z),await A.mutateAsync({key:"show_blog",value:z?"true":"false",description:"Blog zichtbaar"})},C=async z=>{m(z),await A.mutateAsync({key:"show_news",value:z?"true":"false",description:"Nieuws zichtbaar"})},B=async z=>{g(z),await A.mutateAsync({key:"show_training_calendar",value:z?"true":"false",description:"Training kalender zichtbaar"})},I=z=>{e.name.trim()&&N.mutate({type:z,name:e.name.trim(),slug:e.slug||e.name.toLowerCase().replace(/\s+/g,"-"),active:!0})},R=j.filter(z=>z.type==="blog"),D=j.filter(z=>z.type==="case"),q=j.filter(z=>z.type==="training");return t.jsx("div",{className:"pt-20 min-h-screen bg-gray-50",children:t.jsxs("div",{className:"max-w-5xl mx-auto px-4 sm:px-6 lg:px-8 py-12",children:[t.jsx("div",{className:"mb-6",children:t.jsxs(fe,{to:oe("AdminDashboard"),className:"text-blue-600 hover:text-blue-700 inline-flex items-center gap-1",children:[t.jsx(ht,{className:"w-4 h-4"}),"Terug naar dashboard"]})}),t.jsxs("div",{className:"mb-8",children:[t.jsx("h1",{className:"text-4xl font-bold text-gray-900 mb-2",children:"Instellingen"}),t.jsx("p",{className:"text-lg text-gray-600",children:"Beheer categorieën, tags en andere globale instellingen"})]}),t.jsx("div",{className:"space-y-8",children:y?t.jsx("div",{className:"text-center py-12",children:t.jsx("div",{className:"inline-block w-8 h-8 border-4 border-blue-600 border-t-transparent rounded-full animate-spin"})}):t.jsxs(t.Fragment,{children:[t.jsxs("div",{className:"bg-white rounded-2xl p-8 border border-gray-200",children:[t.jsxs("div",{className:"flex items-center gap-3 mb-6",children:[t.jsx(s3,{className:"w-6 h-6 text-gray-900"}),t.jsx("h2",{className:"text-2xl font-bold text-gray-900",children:"Website Logo"})]}),t.jsx("p",{className:"text-gray-600 mb-6",children:"Upload een nieuw logo voor de website. Dit logo wordt gebruikt in de header en footer."}),t.jsx(ea,{value:s,onChange:a,label:"Logo"}),s&&t.jsxs("div",{className:"mt-4 p-4 bg-gray-50 rounded-lg",children:[t.jsx("p",{className:"text-sm text-gray-600 mb-2",children:"Preview:"}),t.jsx("img",{src:s,alt:"Logo preview",className:"h-12"})]}),t.jsxs(se,{onClick:()=>k.mutate(s),disabled:!s||k.isPending,className:"mt-4",children:[t.jsx(kn,{className:"w-4 h-4 mr-2"}),k.isPending?"Opslaan...":"Logo opslaan"]})]}),t.jsxs("div",{className:"bg-white rounded-2xl p-8 border border-gray-200",children:[t.jsx("h2",{className:"text-2xl font-bold text-gray-900 mb-6",children:"Social Media Kanalen"}),t.jsx("p",{className:"text-gray-600 mb-6",children:"Voer de volledige URLs in voor je social media kanalen. Laat velden leeg om ze te verbergen."}),t.jsxs("div",{className:"space-y-4",children:[t.jsxs("div",{children:[t.jsxs("label",{className:"flex items-center gap-2 text-sm font-medium text-gray-700 mb-2",children:[t.jsx(Hs,{className:"w-4 h-4 text-blue-600"}),"LinkedIn"]}),t.jsx(me,{value:o.linkedin,onChange:z=>c({...o,linkedin:z.target.value}),placeholder:"https://linkedin.com/company/jouw-bedrijf"})]}),t.jsxs("div",{children:[t.jsxs("label",{className:"flex items-center gap-2 text-sm font-medium text-gray-700 mb-2",children:[t.jsx(Yc,{className:"w-4 h-4 text-pink-600"}),"Instagram"]}),t.jsx(me,{value:o.instagram,onChange:z=>c({...o,instagram:z.target.value}),placeholder:"https://instagram.com/jouw-bedrijf"})]}),t.jsxs("div",{children:[t.jsxs("label",{className:"flex items-center gap-2 text-sm font-medium text-gray-700 mb-2",children:[t.jsx(EA,{className:"w-4 h-4 text-blue-400"}),"Twitter/X"]}),t.jsx(me,{value:o.twitter,onChange:z=>c({...o,twitter:z.target.value}),placeholder:"https://twitter.com/jouw-bedrijf"})]}),t.jsxs("div",{children:[t.jsxs("label",{className:"flex items-center gap-2 text-sm font-medium text-gray-700 mb-2",children:[t.jsx(Jc,{className:"w-4 h-4 text-red-600"}),"YouTube"]}),t.jsx(me,{value:o.youtube,onChange:z=>c({...o,youtube:z.target.value}),placeholder:"https://youtube.com/@jouw-kanaal"})]})]}),t.jsxs(se,{onClick:S,disabled:A.isPending,className:"mt-6",children:[t.jsx(kn,{className:"w-4 h-4 mr-2"}),"Social media opslaan"]})]}),t.jsxs("div",{className:"bg-white rounded-2xl p-8 border border-gray-200",children:[t.jsx("h2",{className:"text-2xl font-bold text-gray-900 mb-6",children:"Content Zichtbaarheid"}),t.jsx("p",{className:"text-gray-600 mb-6",children:"Schakel content secties in of uit. Dit verbergt ook menu-items en gerelateerde blokken."}),t.jsxs("div",{className:"space-y-4",children:[t.jsxs("div",{className:"flex items-center justify-between p-4 bg-gray-50 rounded-lg",children:[t.jsxs("div",{className:"flex items-center gap-3",children:[d?t.jsx(Bs,{className:"w-5 h-5 text-green-600"}):t.jsx(qp,{className:"w-5 h-5 text-gray-400"}),t.jsxs("div",{children:[t.jsx("p",{className:"font-medium text-gray-900",children:"Blog"}),t.jsx("p",{className:"text-sm text-gray-600",children:"Toon blog artikelen en menu-items"})]})]}),t.jsx(Hc,{checked:d,onCheckedChange:E})]}),t.jsxs("div",{className:"flex items-center justify-between p-4 bg-gray-50 rounded-lg",children:[t.jsxs("div",{className:"flex items-center gap-3",children:[h?t.jsx(Bs,{className:"w-5 h-5 text-green-600"}):t.jsx(qp,{className:"w-5 h-5 text-gray-400"}),t.jsxs("div",{children:[t.jsx("p",{className:"font-medium text-gray-900",children:"AI Nieuws"}),t.jsx("p",{className:"text-sm text-gray-600",children:"Toon nieuws pagina, menu-items en Daily AI Nieuws blokken"})]})]}),t.jsx(Hc,{checked:h,onCheckedChange:C})]}),t.jsxs("div",{className:"flex items-center justify-between p-4 bg-gray-50 rounded-lg",children:[t.jsxs("div",{className:"flex items-center gap-3",children:[p?t.jsx(Bs,{className:"w-5 h-5 text-green-600"}):t.jsx(qp,{className:"w-5 h-5 text-gray-400"}),t.jsxs("div",{children:[t.jsx("p",{className:"font-medium text-gray-900",children:"Training Kalender"}),t.jsx("p",{className:"text-sm text-gray-600",children:"Toon kalender optie op trainingen pagina"})]})]}),t.jsx(Hc,{checked:p,onCheckedChange:B})]})]})]}),t.jsxs("div",{className:"bg-white rounded-2xl p-8 border border-gray-200",children:[t.jsx("h2",{className:"text-2xl font-bold text-gray-900 mb-6",children:"Blog Categorieën"}),t.jsx("div",{className:"space-y-3 mb-6",children:R.map(z=>t.jsxs("div",{className:"flex items-center justify-between p-4 bg-gray-50 rounded-lg",children:[t.jsxs("div",{children:[t.jsx("span",{className:"font-medium text-gray-900",children:z.name}),t.jsxs("span",{className:"text-sm text-gray-500 ml-2",children:["(",z.slug,")"]})]}),t.jsx(se,{size:"sm",variant:"ghost",onClick:()=>{confirm(`Weet je zeker dat je "${z.name}" wilt verwijderen?`)&&w.mutate(z.id)},children:t.jsx(wt,{className:"w-4 h-4"})})]},z.id))}),t.jsxs("div",{className:"flex gap-3",children:[t.jsx(me,{value:e.type==="blog"?e.name:"",onChange:z=>n({type:"blog",name:z.target.value,slug:z.target.value.toLowerCase().replace(/\s+/g,"-")}),placeholder:"Nieuwe categorie...",onKeyPress:z=>z.key==="Enter"&&I("blog")}),t.jsxs(se,{onClick:()=>I("blog"),children:[t.jsx(Pt,{className:"w-4 h-4 mr-2"}),"Toevoegen"]})]})]}),t.jsxs("div",{className:"bg-white rounded-2xl p-8 border border-gray-200",children:[t.jsx("h2",{className:"text-2xl font-bold text-gray-900 mb-6",children:"Case Types"}),t.jsx("div",{className:"space-y-3 mb-6",children:D.map(z=>t.jsxs("div",{className:"flex items-center justify-between p-4 bg-gray-50 rounded-lg",children:[t.jsxs("div",{children:[t.jsx("span",{className:"font-medium text-gray-900",children:z.name}),t.jsxs("span",{className:"text-sm text-gray-500 ml-2",children:["(",z.slug,")"]})]}),t.jsx(se,{size:"sm",variant:"ghost",onClick:()=>{confirm(`Weet je zeker dat je "${z.name}" wilt verwijderen?`)&&w.mutate(z.id)},children:t.jsx(wt,{className:"w-4 h-4"})})]},z.id))}),t.jsxs("div",{className:"flex gap-3",children:[t.jsx(me,{value:e.type==="case"?e.name:"",onChange:z=>n({type:"case",name:z.target.value,slug:z.target.value.toLowerCase().replace(/\s+/g,"-")}),placeholder:"Nieuw type...",onKeyPress:z=>z.key==="Enter"&&I("case")}),t.jsxs(se,{onClick:()=>I("case"),children:[t.jsx(Pt,{className:"w-4 h-4 mr-2"}),"Toevoegen"]})]})]}),t.jsxs("div",{className:"bg-white rounded-2xl p-8 border border-gray-200",children:[t.jsx("h2",{className:"text-2xl font-bold text-gray-900 mb-6",children:"Training Categorieën"}),t.jsx("div",{className:"space-y-3 mb-6",children:q.map(z=>t.jsxs("div",{className:"flex items-center justify-between p-4 bg-gray-50 rounded-lg",children:[t.jsxs("div",{children:[t.jsx("span",{className:"font-medium text-gray-900",children:z.name}),t.jsxs("span",{className:"text-sm text-gray-500 ml-2",children:["(",z.slug,")"]})]}),t.jsx(se,{size:"sm",variant:"ghost",onClick:()=>{confirm(`Weet je zeker dat je "${z.name}" wilt verwijderen?`)&&w.mutate(z.id)},children:t.jsx(wt,{className:"w-4 h-4"})})]},z.id))}),t.jsxs("div",{className:"flex gap-3",children:[t.jsx(me,{value:e.type==="training"?e.name:"",onChange:z=>n({type:"training",name:z.target.value,slug:z.target.value.toLowerCase().replace(/\s+/g,"-")}),placeholder:"Nieuwe categorie...",onKeyPress:z=>z.key==="Enter"&&I("training")}),t.jsxs(se,{onClick:()=>I("training"),children:[t.jsx(Pt,{className:"w-4 h-4 mr-2"}),"Toevoegen"]})]})]}),t.jsxs("div",{className:"bg-green-50 border border-green-200 rounded-2xl p-6",children:[t.jsx("h3",{className:"font-bold text-green-900 mb-2",children:"✅ Categorieën worden direct opgeslagen"}),t.jsx("p",{className:"text-green-800",children:"Alle wijzigingen worden meteen in de database opgeslagen en zijn direct beschikbaar in je blog, cases en trainingen."})]})]})})]})})}function pQ(){const[e,n]=F.useState(!1),[r,i]=F.useState({name:"",role:"",image_url:"",bio:"",linkedin_url:"",show_on_homepage:!1,show_on_about_page:!0,active:!0,sort_order:0}),s=Yt(),{data:a=[],isLoading:o}=ze({queryKey:["teamMembers"],queryFn:()=>ue.entities.TeamMember.list("sort_order"),initialData:[]}),c=Me({mutationFn:b=>ue.entities.TeamMember.create(b),onSuccess:()=>{s.invalidateQueries({queryKey:["teamMembers"]}),h()}}),d=Me({mutationFn:({id:b,data:j})=>ue.entities.TeamMember.update(b,j),onSuccess:()=>{s.invalidateQueries({queryKey:["teamMembers"]}),h()}}),f=Me({mutationFn:b=>ue.entities.TeamMember.delete(b),onSuccess:()=>{s.invalidateQueries({queryKey:["teamMembers"]})}}),h=()=>{i({name:"",role:"",image_url:"",bio:"",linkedin_url:"",show_on_homepage:!1,show_on_about_page:!0,active:!0,sort_order:0}),n(!1)},m=b=>{i(b),n(b.id)},p=b=>{b.preventDefault(),e?d.mutate({id:e,data:r}):c.mutate(r)},g=b=>{confirm("Weet je zeker dat je dit teamlid wilt verwijderen?")&&f.mutate(b)};return e!==!1?t.jsx("div",{className:"pt-20 min-h-screen bg-gradient-to-b from-gray-50 to-white",children:t.jsxs("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 py-12",children:[t.jsxs("div",{className:"mb-8",children:[t.jsxs(fe,{to:oe("AdminDashboard"),className:"inline-flex items-center gap-2 text-gray-600 hover:text-gray-900 mb-4",children:[t.jsx(ht,{className:"w-4 h-4"}),"Terug naar dashboard"]}),t.jsx("h1",{className:"text-4xl font-bold text-gray-900",children:e?"Teamlid bewerken":"Nieuw teamlid"})]}),t.jsxs("form",{onSubmit:p,className:"bg-white rounded-2xl p-8 shadow-sm border border-gray-200 space-y-6",children:[t.jsxs("div",{children:[t.jsx("label",{className:"block text-sm font-semibold text-gray-900 mb-2",children:"Naam *"}),t.jsx(me,{value:r.name,onChange:b=>i({...r,name:b.target.value}),required:!0,placeholder:"Jan van der Berg"})]}),t.jsxs("div",{children:[t.jsx("label",{className:"block text-sm font-semibold text-gray-900 mb-2",children:"Functie/Rol *"}),t.jsx(me,{value:r.role,onChange:b=>i({...r,role:b.target.value}),required:!0,placeholder:"Founder & CEO"})]}),t.jsx(ea,{label:"Profielfoto",value:r.image_url,onChange:b=>i({...r,image_url:b})}),t.jsxs("div",{children:[t.jsx("label",{className:"block text-sm font-semibold text-gray-900 mb-2",children:"Bio (optioneel)"}),t.jsx(pt,{value:r.bio||"",onChange:b=>i({...r,bio:b.target.value}),placeholder:"Korte bio over dit teamlid...",className:"h-24"})]}),t.jsxs("div",{children:[t.jsx("label",{className:"block text-sm font-semibold text-gray-900 mb-2",children:"LinkedIn URL (optioneel)"}),t.jsx(me,{value:r.linkedin_url||"",onChange:b=>i({...r,linkedin_url:b.target.value}),placeholder:"https://linkedin.com/in/..."})]}),t.jsxs("div",{children:[t.jsx("label",{className:"block text-sm font-semibold text-gray-900 mb-2",children:"Sorteervolgorde"}),t.jsx(me,{type:"number",value:r.sort_order,onChange:b=>i({...r,sort_order:parseInt(b.target.value)||0})})]}),t.jsxs("div",{className:"border-t pt-6 space-y-4",children:[t.jsx("h3",{className:"text-lg font-bold text-gray-900",children:"Weergave instellingen"}),t.jsxs("div",{className:"flex items-center gap-3",children:[t.jsx("input",{type:"checkbox",id:"show_on_homepage",checked:r.show_on_homepage,onChange:b=>i({...r,show_on_homepage:b.target.checked}),className:"w-4 h-4"}),t.jsxs("label",{htmlFor:"show_on_homepage",className:"flex items-center gap-2 text-gray-900 cursor-pointer",children:[t.jsx(Ny,{className:"w-4 h-4"}),"Toon op homepage"]})]}),t.jsxs("div",{className:"flex items-center gap-3",children:[t.jsx("input",{type:"checkbox",id:"show_on_about_page",checked:r.show_on_about_page,onChange:b=>i({...r,show_on_about_page:b.target.checked}),className:"w-4 h-4"}),t.jsxs("label",{htmlFor:"show_on_about_page",className:"flex items-center gap-2 text-gray-900 cursor-pointer",children:[t.jsx(zn,{className:"w-4 h-4"}),"Toon op 'The AI Professionals' pagina"]})]}),t.jsxs("div",{className:"flex items-center gap-3",children:[t.jsx("input",{type:"checkbox",id:"active",checked:r.active,onChange:b=>i({...r,active:b.target.checked}),className:"w-4 h-4"}),t.jsx("label",{htmlFor:"active",className:"text-gray-900 cursor-pointer",children:"Actief"})]})]}),t.jsxs("div",{className:"flex gap-4 pt-6",children:[t.jsx(se,{type:"submit",className:"flex-1",children:e?"Opslaan":"Aanmaken"}),t.jsx(se,{type:"button",variant:"outline",onClick:h,children:"Annuleren"})]})]})]})}):t.jsx("div",{className:"pt-20 min-h-screen bg-gradient-to-b from-gray-50 to-white",children:t.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-12",children:[t.jsxs("div",{className:"mb-8 flex items-center justify-between",children:[t.jsxs("div",{children:[t.jsxs(fe,{to:oe("AdminDashboard"),className:"inline-flex items-center gap-2 text-gray-600 hover:text-gray-900 mb-4",children:[t.jsx(ht,{className:"w-4 h-4"}),"Terug naar dashboard"]}),t.jsx("h1",{className:"text-4xl font-bold text-gray-900",children:"Team Beheer"}),t.jsx("p",{className:"text-gray-600 mt-2",children:"Beheer alle teamleden en hun weergave op de website"})]}),t.jsxs(se,{onClick:()=>n(!0),children:[t.jsx(Pt,{className:"w-4 h-4 mr-2"}),"Nieuw teamlid"]})]}),o?t.jsx("div",{className:"text-center py-12",children:t.jsx("p",{className:"text-gray-600",children:"Laden..."})}):t.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-6",children:a.map(b=>t.jsxs("div",{className:"bg-white rounded-2xl overflow-hidden border border-gray-200 hover:shadow-lg transition-all",children:[b.image_url&&t.jsx("div",{className:"aspect-square overflow-hidden bg-gray-100",children:t.jsx("img",{src:b.image_url,alt:b.name,className:"w-full h-full object-cover"})}),t.jsxs("div",{className:"p-6",children:[t.jsxs("div",{className:"flex items-start justify-between mb-4",children:[t.jsxs("div",{children:[t.jsx("h3",{className:"font-bold text-lg text-gray-900",children:b.name}),t.jsx("p",{className:"text-gray-600 text-sm",children:b.role})]}),!b.active&&t.jsx("span",{className:"text-xs px-2 py-1 bg-gray-100 text-gray-600 rounded",children:"Inactief"})]}),t.jsxs("div",{className:"flex flex-wrap gap-2 mb-4",children:[b.show_on_homepage&&t.jsxs("span",{className:"text-xs px-2 py-1 bg-blue-100 text-blue-700 rounded flex items-center gap-1",children:[t.jsx(Ny,{className:"w-3 h-3"}),"Homepage"]}),b.show_on_about_page&&t.jsxs("span",{className:"text-xs px-2 py-1 bg-green-100 text-green-700 rounded flex items-center gap-1",children:[t.jsx(zn,{className:"w-3 h-3"}),"About"]})]}),t.jsxs("div",{className:"flex gap-2",children:[t.jsxs(se,{variant:"outline",size:"sm",onClick:()=>m(b),className:"flex-1",children:[t.jsx(T3,{className:"w-4 h-4 mr-2"}),"Bewerken"]}),t.jsx(se,{variant:"outline",size:"sm",onClick:()=>g(b.id),className:"text-red-600 hover:bg-red-50",children:t.jsx(wt,{className:"w-4 h-4"})})]})]})]},b.id))})]})})}function gQ(){const e=jl(),[n,r]=F.useState(!1),[i,s]=F.useState(!0),[a,o]=F.useState(null),[c,d]=F.useState(null),[f,h]=F.useState(!1),[m,p]=F.useState(!1);F.useEffect(()=>{(async()=>{try{const x=await ue.auth.me();if((x==null?void 0:x.role)!=="admin"){e(oe("Home"));return}r(!0)}catch{e(oe("Home"))}finally{s(!1)}})()},[e]);const g=async()=>{var y,x;h(!0),o({status:"testing",message:"Aanvraag wordt ingediend..."});try{const{data:N}=await ue.functions.invoke("createImpactScanRequest",{website_url:"https://vitaal050.nl",company_name:"TEST - Vitaal050",industry:"technology",user_email:"hallo@48-7.nl",user_name:"Test Admin"});N.success?o({status:"success",message:`✅ Aanvraag succesvol ingediend! Request ID: ${N.request_id}`,requestId:N.request_id}):o({status:"error",message:N.error||"Onbekende fout"})}catch(N){console.error("Test Impact Scan error:",N),o({status:"error",message:((x=(y=N.response)==null?void 0:y.data)==null?void 0:x.error)||N.message||"Er ging iets mis"})}finally{h(!1)}},b=async()=>{var y,x;p(!0),d({status:"testing",message:"Aanvraag wordt ingediend..."});try{const{data:N}=await ue.functions.invoke("createEuAiActRequest",{website_url:"https://vitaal050.nl",company_description:"Digital marketing en consultancy bedrijf gespecialiseerd in AI-implementaties",questionnaire:{sector:"it",target_audience:"businesses",ai_usage:"active",ai_purpose:["Klantenservice (chatbots, mail)","Marketing / content"],ai_decisions:"no",human_oversight:"yes",high_risk_processes:["Geen van bovenstaande"],processes_personal_data:"yes",sensitive_personal_data:"no",ai_origin:"tools",ai_transparency:"partially",ai_responsible:"yes",risk_evaluation:"yes",user_notification:"yes"},user_email:"hallo@48-7.nl",user_name:"Test Admin"});N.success?d({status:"success",message:`✅ Aanvraag succesvol ingediend! Request ID: ${N.request_id}`,requestId:N.request_id}):d({status:"error",message:N.error||"Onbekende fout"})}catch(N){console.error("Test EU AI Act error:",N),d({status:"error",message:((x=(y=N.response)==null?void 0:y.data)==null?void 0:x.error)||N.message||"Er ging iets mis"})}finally{p(!1)}},j=({status:y,title:x})=>y?t.jsx(Z.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},className:`mt-4 p-4 rounded-lg border-2 ${y.status==="success"?"bg-green-50 border-green-200":y.status==="error"?"bg-red-50 border-red-200":"bg-blue-50 border-blue-200"}`,children:t.jsxs("div",{className:"flex items-start gap-3",children:[y.status==="success"?t.jsx(vt,{className:"w-5 h-5 text-green-600 mt-0.5"}):y.status==="error"?t.jsx(Qc,{className:"w-5 h-5 text-red-600 mt-0.5"}):t.jsx(Ms,{className:"w-5 h-5 text-blue-600 mt-0.5 animate-pulse"}),t.jsxs("div",{className:"flex-1",children:[t.jsx("p",{className:`font-medium ${y.status==="success"?"text-green-900":y.status==="error"?"text-red-900":"text-blue-900"}`,children:y.message}),y.status==="success"&&t.jsxs("div",{className:"mt-3 space-y-2",children:[t.jsx("p",{className:"text-sm text-gray-700",children:"De aanvraag is succesvol ingediend. De automatisering zal nu:"}),t.jsxs("ul",{className:"text-sm text-gray-600 space-y-1 ml-4",children:[t.jsx("li",{children:"• De analyse uitvoeren (dit kan 1-2 minuten duren)"}),t.jsx("li",{children:"• Het rapport genereren"}),t.jsx("li",{children:"• Een email sturen naar hallo@48-7.nl"})]}),t.jsx("p",{className:"text-sm font-medium text-gray-700 mt-3",children:"✉️ Check je inbox over een paar minuten"})]})]})]})}):null;return i?t.jsx("div",{className:"pt-20 min-h-screen bg-gray-50 flex items-center justify-center",children:t.jsxs("div",{className:"text-center",children:[t.jsx(Zn,{className:"w-16 h-16 text-gray-400 mx-auto mb-4"}),t.jsx("p",{className:"text-gray-600",children:"Toegang controleren..."})]})}):n?t.jsx("div",{className:"pt-20 min-h-screen bg-gray-50",children:t.jsxs("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 py-12",children:[t.jsxs("div",{className:"flex items-center gap-4 mb-8",children:[t.jsx(fe,{to:oe("AdminDashboard"),children:t.jsx(se,{variant:"outline",size:"icon",children:t.jsx(ht,{className:"w-5 h-5"})})}),t.jsxs("div",{children:[t.jsx("h1",{className:"text-3xl font-bold text-gray-900",children:"Test Scans"}),t.jsx("p",{className:"text-gray-600",children:"Test de scan formulieren met vooringevulde data"})]})]}),t.jsxs("div",{className:"space-y-6",children:[t.jsxs("div",{className:"bg-white rounded-2xl p-8 border border-gray-200",children:[t.jsx("div",{className:"flex items-start justify-between mb-4",children:t.jsxs("div",{children:[t.jsx("h2",{className:"text-xl font-bold text-gray-900 mb-2",children:"AI Impact Scan"}),t.jsx("p",{className:"text-gray-600 text-sm",children:"Test de volledige flow: aanvraag → voorlopige analyse → rapport generatie → email verzending"})]})}),t.jsxs("div",{className:"bg-gray-50 p-4 rounded-lg mb-4",children:[t.jsx("p",{className:"text-sm font-medium text-gray-700 mb-2",children:"Test data:"}),t.jsxs("ul",{className:"text-sm text-gray-600 space-y-1",children:[t.jsx("li",{children:"• Website: https://vitaal050.nl"}),t.jsx("li",{children:"• Bedrijf: TEST - Vitaal050"}),t.jsx("li",{children:"• Branche: Technology"}),t.jsx("li",{children:"• Email: hallo@48-7.nl"})]})]}),t.jsxs(se,{onClick:g,disabled:f,className:"w-full bg-blue-600 hover:bg-blue-700",children:[t.jsx(ky,{className:"w-4 h-4 mr-2"}),f?"Test wordt uitgevoerd...":"Test AI Impact Scan"]}),t.jsx(j,{status:a,title:"AI Impact Scan"})]}),t.jsxs("div",{className:"bg-white rounded-2xl p-8 border border-gray-200",children:[t.jsx("div",{className:"flex items-start justify-between mb-4",children:t.jsxs("div",{children:[t.jsx("h2",{className:"text-xl font-bold text-gray-900 mb-2",children:"EU AI Act Checker"}),t.jsx("p",{className:"text-gray-600 text-sm",children:"Test de volledige flow: aanvraag → compliance analyse → rapport generatie → email verzending"})]})}),t.jsxs("div",{className:"bg-gray-50 p-4 rounded-lg mb-4",children:[t.jsx("p",{className:"text-sm font-medium text-gray-700 mb-2",children:"Test data:"}),t.jsxs("ul",{className:"text-sm text-gray-600 space-y-1",children:[t.jsx("li",{children:"• Website: https://vitaal050.nl"}),t.jsx("li",{children:"• Beschrijving: Digital marketing & AI consultancy"}),t.jsx("li",{children:"• Vragenlijst: Ingevuld met realistische antwoorden"}),t.jsx("li",{children:"• Email: hallo@48-7.nl"})]})]}),t.jsxs(se,{onClick:b,disabled:m,className:"w-full bg-purple-600 hover:bg-purple-700",children:[t.jsx(ky,{className:"w-4 h-4 mr-2"}),m?"Test wordt uitgevoerd...":"Test EU AI Act Checker"]}),t.jsx(j,{status:c,title:"EU AI Act Checker"})]}),t.jsx("div",{className:"bg-blue-50 rounded-2xl p-6 border-2 border-blue-200",children:t.jsxs("div",{className:"flex items-start gap-3",children:[t.jsx(Hr,{className:"w-6 h-6 text-blue-600 mt-1"}),t.jsxs("div",{children:[t.jsx("h3",{className:"font-bold text-blue-900 mb-2",children:"Hoe het werkt"}),t.jsxs("ul",{className:"text-sm text-blue-800 space-y-2",children:[t.jsx("li",{children:"1. Klik op een test knop om een aanvraag in te dienen"}),t.jsx("li",{children:"2. De entity automation triggert automatisch de processing functie"}),t.jsx("li",{children:"3. De analyse wordt uitgevoerd (1-2 minuten)"}),t.jsx("li",{children:"4. Een email wordt verzonden naar hallo@48-7.nl"}),t.jsx("li",{children:"5. Bekijk de aanvragen in de Admin Impact Scans / EU AI Act Inzendingen pagina's"})]})]})]})}),t.jsxs("div",{className:"flex gap-4",children:[t.jsx(fe,{to:oe("AdminImpactScans"),className:"flex-1",children:t.jsx(se,{variant:"outline",className:"w-full",children:"Bekijk Impact Scan Aanvragen"})}),t.jsx(fe,{to:oe("AdminEuAiActSubmissions"),className:"flex-1",children:t.jsx(se,{variant:"outline",className:"w-full",children:"Bekijk EU AI Act Aanvragen"})})]})]})]})}):null}function xQ(){const[e,n]=F.useState(null),[r,i]=F.useState({title:"",slug:"",category:"Basis",duration:"",description:"",full_description:"",learning_goals:[],target_audience:"",price:"",image_url:"",sessions:[],active:!0}),s=Yt(),{data:a=[],isLoading:o}=ze({queryKey:["trainingen"],queryFn:()=>ue.entities.Training.list("-created_date")}),c=Me({mutationFn:w=>ue.entities.Training.create(w),onSuccess:()=>{s.invalidateQueries({queryKey:["trainingen"]}),h()}}),d=Me({mutationFn:({id:w,data:k})=>ue.entities.Training.update(w,k),onSuccess:()=>{s.invalidateQueries({queryKey:["trainingen"]}),h()}}),f=Me({mutationFn:w=>ue.entities.Training.delete(w),onSuccess:()=>{s.invalidateQueries({queryKey:["trainingen"]})}}),h=()=>{n(null),i({title:"",slug:"",category:"Basis",duration:"",description:"",full_description:"",learning_goals:[],target_audience:"",price:"",image_url:"",sessions:[],active:!0})},m=w=>{n(w),i({...w,learning_goals:w.learning_goals||[],sessions:w.sessions||[]})},p=w=>{w.preventDefault(),e&&e.id?d.mutate({id:e.id,data:r}):c.mutate(r)},g=()=>{i({...r,learning_goals:[...r.learning_goals,""]})},b=(w,k)=>{const A=[...r.learning_goals];A[w]=k,i({...r,learning_goals:A})},j=w=>{i({...r,learning_goals:r.learning_goals.filter((k,A)=>A!==w)})},y=()=>{i({...r,sessions:[...r.sessions,{date:"",capacity:10,enrolled:0,location:"Groningen"}]})},x=(w,k,A)=>{const S=[...r.sessions];S[w][k]=A,i({...r,sessions:S})},N=w=>{i({...r,sessions:r.sessions.filter((k,A)=>A!==w)})};return e!==null?t.jsx("div",{className:"pt-20 min-h-screen bg-gray-50",children:t.jsxs("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 py-12",children:[t.jsx("div",{className:"mb-6",children:t.jsxs(se,{variant:"outline",onClick:h,className:"gap-2",children:[t.jsx(ht,{className:"w-4 h-4"}),"Terug naar overzicht"]})}),t.jsxs("div",{className:"bg-white rounded-2xl p-8 border border-gray-200",children:[t.jsx("h2",{className:"text-3xl font-bold text-gray-900 mb-8",children:e!=null&&e.id?"Training Bewerken":"Nieuwe Training"}),t.jsxs("form",{onSubmit:p,className:"space-y-6",children:[t.jsxs("div",{className:"grid md:grid-cols-2 gap-6",children:[t.jsxs("div",{children:[t.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Titel *"}),t.jsx(me,{required:!0,value:r.title,onChange:w=>i({...r,title:w.target.value}),placeholder:"AI voor Beginners"})]}),t.jsxs("div",{children:[t.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Slug (URL) *"}),t.jsx(me,{required:!0,value:r.slug,onChange:w=>i({...r,slug:w.target.value}),placeholder:"ai-voor-beginners"})]})]}),t.jsxs("div",{className:"grid md:grid-cols-2 gap-6",children:[t.jsxs("div",{children:[t.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Categorie *"}),t.jsxs(Yi,{value:r.category,onValueChange:w=>i({...r,category:w}),children:[t.jsx(bi,{children:t.jsx(Xi,{})}),t.jsxs(ji,{children:[t.jsx(St,{value:"Basis",children:"Basis"}),t.jsx(St,{value:"Gevorderd",children:"Gevorderd"}),t.jsx(St,{value:"Leiderschap",children:"Leiderschap"}),t.jsx(St,{value:"Technisch",children:"Technisch"})]})]})]}),t.jsxs("div",{children:[t.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Duur *"}),t.jsx(me,{required:!0,value:r.duration,onChange:w=>i({...r,duration:w.target.value}),placeholder:"1 dag, 3 uur, etc."})]})]}),t.jsxs("div",{children:[t.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Korte beschrijving *"}),t.jsx(me,{required:!0,value:r.description,onChange:w=>i({...r,description:w.target.value}),placeholder:"Een korte samenvatting..."})]}),t.jsxs("div",{children:[t.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Volledige beschrijving"}),t.jsx(Ji,{value:r.full_description,onChange:w=>i({...r,full_description:w}),placeholder:"Volledige training beschrijving..."})]}),t.jsxs("div",{children:[t.jsxs("div",{className:"flex items-center justify-between mb-4",children:[t.jsx("label",{className:"block text-sm font-medium text-gray-700",children:"Leerdoelen"}),t.jsxs(se,{type:"button",onClick:g,size:"sm",variant:"outline",children:[t.jsx(Pt,{className:"w-4 h-4 mr-1"})," Leerdoel"]})]}),t.jsx("div",{className:"space-y-2",children:r.learning_goals.map((w,k)=>t.jsxs("div",{className:"flex gap-2",children:[t.jsx(me,{value:w,onChange:A=>b(k,A.target.value),placeholder:"Bijv. Begrijpen van AI concepten"}),t.jsx(se,{type:"button",variant:"ghost",size:"sm",onClick:()=>j(k),children:t.jsx(rn,{className:"w-4 h-4"})})]},k))})]}),t.jsxs("div",{children:[t.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Doelgroep"}),t.jsx(me,{value:r.target_audience,onChange:w=>i({...r,target_audience:w.target.value}),placeholder:"Managers, developers, etc."})]}),t.jsxs("div",{children:[t.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Prijs"}),t.jsx(me,{value:r.price,onChange:w=>i({...r,price:w.target.value}),placeholder:"Op aanvraag / €1.500"})]}),t.jsx(ea,{value:r.image_url,onChange:w=>i({...r,image_url:w}),label:"Training Afbeelding",recommendedSize:"800x600px"}),t.jsxs("div",{className:"border-t-2 border-gray-100 pt-6",children:[t.jsxs("div",{className:"flex items-center justify-between mb-4",children:[t.jsxs("label",{className:"block text-sm font-medium text-gray-700",children:[t.jsx($r,{className:"w-4 h-4 inline mr-2"}),"Geplande sessies"]}),t.jsxs(se,{type:"button",onClick:y,size:"sm",variant:"outline",children:[t.jsx(Pt,{className:"w-4 h-4 mr-1"})," Sessie"]})]}),t.jsx("div",{className:"space-y-4",children:r.sessions.map((w,k)=>t.jsxs("div",{className:"p-4 bg-gray-50 rounded-xl border border-gray-200",children:[t.jsxs("div",{className:"grid md:grid-cols-2 gap-4 mb-3",children:[t.jsxs("div",{children:[t.jsx("label",{className:"block text-xs font-medium text-gray-600 mb-1",children:"Datum & Tijd *"}),t.jsx(me,{type:"datetime-local",value:w.date,onChange:A=>x(k,"date",A.target.value),required:!0})]}),t.jsxs("div",{children:[t.jsx("label",{className:"block text-xs font-medium text-gray-600 mb-1",children:"Locatie *"}),t.jsx(me,{value:w.location,onChange:A=>x(k,"location",A.target.value),placeholder:"Groningen / Online",required:!0})]})]}),t.jsxs("div",{className:"grid md:grid-cols-2 gap-4",children:[t.jsxs("div",{children:[t.jsx("label",{className:"block text-xs font-medium text-gray-600 mb-1",children:"Max. capaciteit *"}),t.jsx(me,{type:"number",min:"1",value:w.capacity,onChange:A=>x(k,"capacity",parseInt(A.target.value)),required:!0})]}),t.jsxs("div",{children:[t.jsx("label",{className:"block text-xs font-medium text-gray-600 mb-1",children:"Ingeschreven"}),t.jsx(me,{type:"number",min:"0",value:w.enrolled,onChange:A=>x(k,"enrolled",parseInt(A.target.value))})]})]}),t.jsx("div",{className:"mt-3 flex justify-end",children:t.jsxs(se,{type:"button",variant:"ghost",size:"sm",onClick:()=>N(k),children:[t.jsx(wt,{className:"w-4 h-4 mr-1"}),"Verwijder"]})})]},k))})]}),t.jsxs("div",{className:"flex items-center gap-3",children:[t.jsx("input",{type:"checkbox",id:"active",checked:r.active,onChange:w=>i({...r,active:w.target.checked}),className:"w-4 h-4"}),t.jsx("label",{htmlFor:"active",className:"text-sm font-medium text-gray-700",children:"Actief (zichtbaar op website)"})]}),t.jsxs("div",{className:"flex gap-4 pt-6",children:[t.jsxs(se,{type:"submit",className:"flex-1 gap-2",children:[t.jsx(kn,{className:"w-4 h-4"}),e!=null&&e.id?"Bijwerken":"Aanmaken"]}),t.jsx(se,{type:"button",variant:"outline",onClick:h,children:"Annuleren"})]})]})]})]})}):t.jsx("div",{className:"pt-20 min-h-screen bg-gray-50",children:t.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-12",children:[t.jsxs("div",{className:"flex items-center justify-between mb-8",children:[t.jsxs("div",{children:[t.jsxs(fe,{to:oe("AdminDashboard"),className:"text-blue-600 hover:text-blue-700 mb-2 inline-flex items-center gap-1",children:[t.jsx(ht,{className:"w-4 h-4"}),"Terug naar dashboard"]}),t.jsx("h1",{className:"text-4xl font-bold text-gray-900",children:"Trainingen"})]}),t.jsxs(se,{onClick:()=>n({}),children:[t.jsx(Pt,{className:"w-5 h-5 mr-2"}),"Nieuwe Training"]})]}),o?t.jsx("div",{className:"text-center py-12",children:t.jsx("div",{className:"inline-block w-8 h-8 border-4 border-blue-600 border-t-transparent rounded-full animate-spin"})}):t.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-6",children:a.map(w=>t.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"bg-white rounded-xl p-6 border border-gray-200 hover:shadow-lg transition-shadow",children:[t.jsxs("div",{className:"flex items-start justify-between mb-4",children:[t.jsxs("div",{children:[t.jsx("h3",{className:"font-bold text-lg text-gray-900 mb-1",children:w.title}),t.jsx("p",{className:"text-sm text-gray-600",children:w.duration}),t.jsx("span",{className:"inline-block px-2 py-1 bg-green-100 text-green-800 text-xs rounded mt-2",children:w.category})]}),w.active?t.jsx("span",{className:"px-2 py-1 bg-green-100 text-green-800 text-xs rounded",children:"Actief"}):t.jsx("span",{className:"px-2 py-1 bg-gray-100 text-gray-800 text-xs rounded",children:"Inactief"})]}),t.jsxs("div",{className:"flex gap-2 mt-4",children:[t.jsxs(se,{size:"sm",variant:"outline",onClick:()=>m(w),className:"flex-1",children:[t.jsx(Tn,{className:"w-4 h-4 mr-1"}),"Bewerk"]}),t.jsx(se,{size:"sm",variant:"ghost",onClick:()=>{confirm("Weet je zeker dat je deze training wilt verwijderen?")&&f.mutate(w.id)},children:t.jsx(wt,{className:"w-4 h-4"})})]})]},w.id))})]})})}function yQ(){const[e,n]=F.useState(null),[r,i]=F.useState({title:"",slug:"",level:"Medior",location:"",employment_type:"Fulltime",salary_range:"",description:"",role_summary:"",requirements:[],responsibilities:[],benefits:[],active:!0}),s=Yt(),{data:a=[],isLoading:o}=ze({queryKey:["vacatures"],queryFn:()=>ue.entities.Vacature.list("-created_date")}),c=Me({mutationFn:y=>ue.entities.Vacature.create(y),onSuccess:()=>{s.invalidateQueries({queryKey:["vacatures"]}),h()}}),d=Me({mutationFn:({id:y,data:x})=>ue.entities.Vacature.update(y,x),onSuccess:()=>{s.invalidateQueries({queryKey:["vacatures"]}),h()}}),f=Me({mutationFn:y=>ue.entities.Vacature.delete(y),onSuccess:()=>{s.invalidateQueries({queryKey:["vacatures"]})}}),h=()=>{n(null),i({title:"",slug:"",level:"Medior",location:"",employment_type:"Fulltime",salary_range:"",description:"",role_summary:"",requirements:[],responsibilities:[],benefits:[],active:!0})},m=y=>{n(y),i(y)},p=y=>{y.preventDefault(),e?d.mutate({id:e.id,data:r}):c.mutate(r)},g=y=>{i({...r,[y]:[...r[y],""]})},b=(y,x,N)=>{const w=[...r[y]];w[x]=N,i({...r,[y]:w})},j=(y,x)=>{i({...r,[y]:r[y].filter((N,w)=>w!==x)})};return e!==null?t.jsx("div",{className:"pt-20 min-h-screen bg-gray-50",children:t.jsxs("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 py-12",children:[t.jsx("div",{className:"mb-6",children:t.jsxs(se,{variant:"outline",onClick:h,className:"gap-2",children:[t.jsx(ht,{className:"w-4 h-4"}),"Terug naar overzicht"]})}),t.jsxs("div",{className:"bg-white rounded-2xl p-8 border border-gray-200",children:[t.jsx("h2",{className:"text-3xl font-bold text-gray-900 mb-8",children:e?"Vacature Bewerken":"Nieuwe Vacature"}),t.jsxs("form",{onSubmit:p,className:"space-y-6",children:[t.jsxs("div",{className:"grid md:grid-cols-2 gap-6",children:[t.jsxs("div",{children:[t.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Functietitel *"}),t.jsx(me,{required:!0,value:r.title,onChange:y=>i({...r,title:y.target.value}),placeholder:"AI Engineer"})]}),t.jsxs("div",{children:[t.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Slug (URL) *"}),t.jsx(me,{required:!0,value:r.slug,onChange:y=>i({...r,slug:y.target.value}),placeholder:"ai-engineer-groningen"})]})]}),t.jsxs("div",{className:"grid md:grid-cols-3 gap-6",children:[t.jsxs("div",{children:[t.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Niveau *"}),t.jsxs(Yi,{value:r.level,onValueChange:y=>i({...r,level:y}),children:[t.jsx(bi,{children:t.jsx(Xi,{})}),t.jsxs(ji,{children:[t.jsx(St,{value:"Junior",children:"Junior"}),t.jsx(St,{value:"Medior",children:"Medior"}),t.jsx(St,{value:"Senior",children:"Senior"}),t.jsx(St,{value:"Lead",children:"Lead"})]})]})]}),t.jsxs("div",{children:[t.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Locatie *"}),t.jsx(me,{required:!0,value:r.location,onChange:y=>i({...r,location:y.target.value}),placeholder:"Groningen / Remote"})]}),t.jsxs("div",{children:[t.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Type *"}),t.jsxs(Yi,{value:r.employment_type,onValueChange:y=>i({...r,employment_type:y}),children:[t.jsx(bi,{children:t.jsx(Xi,{})}),t.jsxs(ji,{children:[t.jsx(St,{value:"Fulltime",children:"Fulltime"}),t.jsx(St,{value:"Parttime",children:"Parttime"}),t.jsx(St,{value:"Contract",children:"Contract"})]})]})]})]}),t.jsxs("div",{children:[t.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Salarisindicatie"}),t.jsx(me,{value:r.salary_range,onChange:y=>i({...r,salary_range:y.target.value}),placeholder:"€3.500 - €5.000 per maand"})]}),t.jsxs("div",{children:[t.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Korte samenvatting"}),t.jsx(me,{value:r.role_summary,onChange:y=>i({...r,role_summary:y.target.value}),placeholder:"Een korte samenvatting van de rol..."})]}),t.jsxs("div",{children:[t.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Functieomschrijving *"}),t.jsx(Ji,{value:r.description,onChange:y=>i({...r,description:y}),placeholder:"Beschrijf de functie in detail..."})]}),t.jsxs("div",{children:[t.jsxs("div",{className:"flex items-center justify-between mb-4",children:[t.jsx("label",{className:"block text-sm font-medium text-gray-700",children:"Vereisten"}),t.jsxs(se,{type:"button",onClick:()=>g("requirements"),size:"sm",variant:"outline",children:[t.jsx(Pt,{className:"w-4 h-4 mr-1"})," Vereiste"]})]}),t.jsx("div",{className:"space-y-2",children:r.requirements.map((y,x)=>t.jsxs("div",{className:"flex gap-2",children:[t.jsx(me,{value:y,onChange:N=>b("requirements",x,N.target.value),placeholder:"Bijv. Python, 3+ jaar ervaring"}),t.jsx(se,{type:"button",variant:"ghost",size:"sm",onClick:()=>j("requirements",x),children:t.jsx(rn,{className:"w-4 h-4"})})]},x))})]}),t.jsxs("div",{children:[t.jsxs("div",{className:"flex items-center justify-between mb-4",children:[t.jsx("label",{className:"block text-sm font-medium text-gray-700",children:"Verantwoordelijkheden"}),t.jsxs(se,{type:"button",onClick:()=>g("responsibilities"),size:"sm",variant:"outline",children:[t.jsx(Pt,{className:"w-4 h-4 mr-1"})," Verantwoordelijkheid"]})]}),t.jsx("div",{className:"space-y-2",children:r.responsibilities.map((y,x)=>t.jsxs("div",{className:"flex gap-2",children:[t.jsx(me,{value:y,onChange:N=>b("responsibilities",x,N.target.value),placeholder:"Bijv. Ontwikkelen van AI modellen"}),t.jsx(se,{type:"button",variant:"ghost",size:"sm",onClick:()=>j("responsibilities",x),children:t.jsx(rn,{className:"w-4 h-4"})})]},x))})]}),t.jsxs("div",{children:[t.jsxs("div",{className:"flex items-center justify-between mb-4",children:[t.jsx("label",{className:"block text-sm font-medium text-gray-700",children:"Wat we bieden"}),t.jsxs(se,{type:"button",onClick:()=>g("benefits"),size:"sm",variant:"outline",children:[t.jsx(Pt,{className:"w-4 h-4 mr-1"})," Voordeel"]})]}),t.jsx("div",{className:"space-y-2",children:r.benefits.map((y,x)=>t.jsxs("div",{className:"flex gap-2",children:[t.jsx(me,{value:y,onChange:N=>b("benefits",x,N.target.value),placeholder:"Bijv. Flexibele werktijden"}),t.jsx(se,{type:"button",variant:"ghost",size:"sm",onClick:()=>j("benefits",x),children:t.jsx(rn,{className:"w-4 h-4"})})]},x))})]}),t.jsxs("div",{className:"flex items-center gap-3",children:[t.jsx("input",{type:"checkbox",id:"active",checked:r.active,onChange:y=>i({...r,active:y.target.checked}),className:"w-4 h-4"}),t.jsx("label",{htmlFor:"active",className:"text-sm font-medium text-gray-700",children:"Actief (zichtbaar op website)"})]}),t.jsxs("div",{className:"flex gap-4 pt-6",children:[t.jsxs(se,{type:"submit",className:"flex-1 gap-2",children:[t.jsx(kn,{className:"w-4 h-4"}),e?"Bijwerken":"Aanmaken"]}),t.jsx(se,{type:"button",variant:"outline",onClick:h,children:"Annuleren"})]})]})]})]})}):t.jsx("div",{className:"pt-20 min-h-screen bg-gray-50",children:t.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-12",children:[t.jsxs("div",{className:"flex items-center justify-between mb-8",children:[t.jsxs("div",{children:[t.jsxs(fe,{to:oe("AdminDashboard"),className:"text-blue-600 hover:text-blue-700 mb-2 inline-flex items-center gap-1",children:[t.jsx(ht,{className:"w-4 h-4"}),"Terug naar dashboard"]}),t.jsx("h1",{className:"text-4xl font-bold text-gray-900",children:"Vacatures"})]}),t.jsxs(se,{onClick:()=>n({}),children:[t.jsx(Pt,{className:"w-5 h-5 mr-2"}),"Nieuwe Vacature"]})]}),o?t.jsx("div",{className:"text-center py-12",children:t.jsx("div",{className:"inline-block w-8 h-8 border-4 border-blue-600 border-t-transparent rounded-full animate-spin"})}):t.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-6",children:a.map(y=>t.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"bg-white rounded-xl p-6 border border-gray-200 hover:shadow-lg transition-shadow",children:[t.jsxs("div",{className:"flex items-start justify-between mb-4",children:[t.jsxs("div",{children:[t.jsx("h3",{className:"font-bold text-lg text-gray-900 mb-1",children:y.title}),t.jsx("p",{className:"text-sm text-gray-600",children:y.location}),t.jsxs("div",{className:"flex gap-2 mt-2",children:[t.jsx("span",{className:"inline-block px-2 py-1 bg-blue-100 text-blue-800 text-xs rounded",children:y.level}),t.jsx("span",{className:"inline-block px-2 py-1 bg-purple-100 text-purple-800 text-xs rounded",children:y.employment_type})]})]}),y.active?t.jsx("span",{className:"px-2 py-1 bg-green-100 text-green-800 text-xs rounded",children:"Actief"}):t.jsx("span",{className:"px-2 py-1 bg-gray-100 text-gray-800 text-xs rounded",children:"Inactief"})]}),t.jsxs("div",{className:"flex gap-2 mt-4",children:[t.jsxs(se,{size:"sm",variant:"outline",onClick:()=>m(y),className:"flex-1",children:[t.jsx(Tn,{className:"w-4 h-4 mr-1"}),"Bewerk"]}),t.jsx(se,{size:"sm",variant:"ghost",onClick:()=>{confirm("Weet je zeker dat je deze vacature wilt verwijderen?")&&f.mutate(y.id)},children:t.jsx(wt,{className:"w-4 h-4"})})]})]},y.id))})]})})}const vQ=[{id:"all",label:"Alle"},{id:"trends",label:"Trends"},{id:"tips",label:"Tips"},{id:"strategy",label:"Strategie"},{id:"cases",label:"Cases"}];function bQ(){const[e,n]=F.useState("all"),[r,i]=F.useState(""),{data:s=[],isLoading:a}=ze({queryKey:["blog"],queryFn:()=>ue.entities.BlogPost.filter({published:!0},"-published_date")}),o=s.filter(f=>{const h=e==="all"||f.category===e,m=f.title.toLowerCase().includes(r.toLowerCase())||f.excerpt.toLowerCase().includes(r.toLowerCase());return h&&m}),c=s.find(f=>f.featured),d=o.filter(f=>!f.featured);return t.jsxs("div",{className:"pt-20",children:[t.jsx("section",{className:"py-16 bg-[#0D0D0F]",children:t.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:t.jsxs("div",{className:"flex flex-col lg:flex-row items-center gap-8",children:[t.jsx("div",{className:"w-24 h-24 bg-[#FAB868] rounded-full flex items-center justify-center flex-shrink-0",children:t.jsx(of,{className:"w-12 h-12 text-[#0D0D0F]"})}),t.jsxs("div",{className:"flex-1 text-center lg:text-left",children:[t.jsx("h1",{className:"text-3xl font-bold text-white mb-3",children:"Daily AI Nieuws in 48 seconden"}),t.jsx("p",{className:"text-[#9CA3AF] mb-6",children:"Elke dag de belangrijkste AI ontwikkelingen, compact samengevat."}),t.jsxs("div",{className:"flex flex-wrap items-center justify-center lg:justify-start gap-4",children:[t.jsxs("button",{className:"px-6 py-3 bg-[#FAB868] text-[#0D0D0F] font-semibold rounded-full hover:bg-[#E5A04D] transition-colors flex items-center gap-2",children:[t.jsx("svg",{className:"w-5 h-5",fill:"currentColor",viewBox:"0 0 24 24",children:t.jsx("path",{d:"M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zm4.586 10.707l-6 4A1 1 0 019 16V8a1 1 0 011.586-.816l6 4a1 1 0 010 1.632z"})}),"Luister nu"]}),t.jsxs("button",{className:"px-6 py-3 border-2 border-[#FAB868] text-white font-semibold rounded-full hover:bg-[#FAB868]/10 transition-colors flex items-center gap-2",children:[t.jsx(Hr,{className:"w-5 h-5"}),"Ontvang per email"]})]})]})]})})}),t.jsx("section",{className:"py-8 border-b border-gray-100 bg-white",children:t.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:t.jsxs("div",{className:"flex flex-col sm:flex-row items-center gap-4",children:[t.jsxs("div",{className:"relative w-full sm:w-64",children:[t.jsx(zi,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-5 h-5 text-gray-400"}),t.jsx("input",{type:"text",placeholder:"Zoek artikelen...",value:r,onChange:f=>i(f.target.value),className:"w-full pl-10 pr-4 py-2 border border-gray-200 rounded-xl focus:outline-none focus:border-blue-500"})]}),t.jsxs("div",{className:"flex items-center gap-2 overflow-x-auto pb-2 sm:pb-0",children:[t.jsx(af,{className:"w-5 h-5 text-gray-400 flex-shrink-0"}),vQ.map(f=>t.jsx("button",{onClick:()=>n(f.id),className:`px-4 py-2 rounded-full text-sm font-medium whitespace-nowrap transition-all ${e===f.id?"bg-[#FAB868] text-[#0D0D0F]":"bg-[#F4F4F4] text-[#0D0D0F] hover:bg-[#E5E5E5]"}`,children:f.label},f.id))]})]})})}),c&&e==="all"&&!r&&t.jsx("section",{className:"py-12",children:t.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:t.jsx(Z.article,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"group",children:t.jsxs(fe,{to:oe(`BlogDetail?slug=${c.slug}`),className:"grid lg:grid-cols-2 gap-8 bg-[#F4F4F4] rounded-3xl overflow-hidden hover:bg-[#E5E5E5] transition-colors",children:[t.jsx("div",{className:"aspect-video lg:aspect-auto overflow-hidden",children:c.image_url&&t.jsx("img",{src:c.image_url,alt:c.title,loading:"eager",className:"w-full h-full object-cover group-hover:scale-105 transition-transform duration-500"})}),t.jsxs("div",{className:"p-8 lg:py-12 flex flex-col justify-center",children:[t.jsxs("div",{className:"flex items-center gap-3 text-sm text-[#9CA3AF] mb-4",children:[t.jsx("span",{className:"px-3 py-1 bg-[#FAB868] text-[#0D0D0F] rounded-full font-medium",children:"Featured"}),t.jsx("span",{children:c.published_date?new Date(c.published_date).toLocaleDateString("nl-NL"):c.date}),t.jsx("span",{children:"•"}),t.jsxs("span",{className:"flex items-center gap-1",children:[t.jsx(Dn,{className:"w-4 h-4"}),c.read_time]})]}),t.jsx("h2",{className:"text-3xl font-bold text-[#0D0D0F] mb-4 group-hover:text-[#FAB868] transition-colors",children:c.title}),t.jsx("p",{className:"text-[#0D0D0F]/80 text-lg mb-6",children:c.excerpt}),t.jsxs("div",{className:"flex items-center gap-2 text-[#FAB868] font-semibold",children:["Lees meer",t.jsx(He,{className:"w-5 h-5 group-hover:translate-x-1 transition-transform"})]})]})]})})})}),t.jsx("section",{className:"py-12",children:t.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[a?t.jsx("div",{className:"text-center py-12",children:t.jsx("div",{className:"inline-block w-8 h-8 border-4 border-blue-600 border-t-transparent rounded-full animate-spin"})}):t.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-8",children:d.map((f,h)=>t.jsx(Z.article,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:h*.1},children:t.jsxs(fe,{to:oe(`BlogDetail?slug=${f.slug}`),className:"group block",children:[t.jsxs("div",{className:"relative rounded-2xl overflow-hidden mb-4 aspect-[16/10] bg-gray-200",children:[f.image_url?t.jsx("img",{src:f.image_url,alt:f.title,loading:"lazy",className:"w-full h-full object-cover group-hover:scale-105 transition-transform duration-500"}):t.jsx("div",{className:"w-full h-full flex items-center justify-center",children:t.jsx(ll,{className:"w-12 h-12 text-gray-400"})}),t.jsx("div",{className:"absolute top-4 left-4",children:t.jsx("span",{className:"px-3 py-1 bg-[#F4F4F4] rounded-full text-sm font-medium text-[#0D0D0F]",children:f.category.charAt(0).toUpperCase()+f.category.slice(1)})})]}),t.jsxs("div",{className:"flex items-center gap-3 text-sm text-[#9CA3AF] mb-3",children:[t.jsx("span",{children:f.published_date?new Date(f.published_date).toLocaleDateString("nl-NL"):f.date}),t.jsx("span",{children:"•"}),t.jsxs("span",{className:"flex items-center gap-1",children:[t.jsx(Dn,{className:"w-4 h-4 text-[#FAB868]"}),f.read_time]})]}),t.jsx("h3",{className:"text-xl font-bold text-[#0D0D0F] mb-2 group-hover:text-[#FAB868] transition-colors line-clamp-2",children:f.title}),t.jsx("p",{className:"text-[#0D0D0F]/80 line-clamp-2",children:f.excerpt})]})},h))}),!a&&o.length===0&&t.jsx("div",{className:"text-center py-12",children:t.jsx("p",{className:"text-gray-500",children:"Geen artikelen gevonden voor je zoekopdracht."})})]})}),t.jsx("section",{className:"py-20 bg-[#F4F4F4]",children:t.jsxs("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 text-center",children:[t.jsx("h2",{className:"text-4xl font-bold text-[#0D0D0F] mb-6",children:"Blijf op de hoogte"}),t.jsx("p",{className:"text-xl text-[#9CA3AF] mb-8",children:"Ontvang wekelijks de beste AI insights"}),t.jsxs("div",{className:"flex flex-col sm:flex-row gap-3 max-w-md mx-auto",children:[t.jsx("input",{type:"email",placeholder:"je@email.nl",className:"flex-1 px-5 py-3 rounded-full focus:outline-none border-2 border-gray-200"}),t.jsx("button",{className:"px-6 py-3 bg-[#0D0D0F] text-white font-semibold rounded-full hover:bg-[#1a1a1c] transition-colors",children:"Aanmelden"})]})]})})]})}function jQ(e,n){const r={};return(e[e.length-1]===""?[...e,""]:e).join((r.padRight?" ":"")+","+(r.padLeft===!1?"":" ")).trim()}const wQ=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,NQ=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,kQ={};function fS(e,n){return(kQ.jsx?NQ:wQ).test(e)}const _Q=/[ \t\n\f\r]/g;function SQ(e){return typeof e=="object"?e.type==="text"?mS(e.value):!1:mS(e)}function mS(e){return e.replace(_Q,"")===""}class Ru{constructor(n,r,i){this.normal=r,this.property=n,i&&(this.space=i)}}Ru.prototype.normal={};Ru.prototype.property={};Ru.prototype.space=void 0;function W6(e,n){const r={},i={};for(const s of e)Object.assign(r,s.property),Object.assign(i,s.normal);return new Ru(r,i,n)}function O0(e){return e.toLowerCase()}class rr{constructor(n,r){this.attribute=r,this.property=n}}rr.prototype.attribute="";rr.prototype.booleanish=!1;rr.prototype.boolean=!1;rr.prototype.commaOrSpaceSeparated=!1;rr.prototype.commaSeparated=!1;rr.prototype.defined=!1;rr.prototype.mustUseProperty=!1;rr.prototype.number=!1;rr.prototype.overloadedBoolean=!1;rr.prototype.property="";rr.prototype.spaceSeparated=!1;rr.prototype.space=void 0;let AQ=0;const ot=eo(),on=eo(),D0=eo(),Ae=eo(),It=eo(),Go=eo(),cr=eo();function eo(){return 2**++AQ}const I0=Object.freeze(Object.defineProperty({__proto__:null,boolean:ot,booleanish:on,commaOrSpaceSeparated:cr,commaSeparated:Go,number:Ae,overloadedBoolean:D0,spaceSeparated:It},Symbol.toStringTag,{value:"Module"})),ly=Object.keys(I0);class hb extends rr{constructor(n,r,i,s){let a=-1;if(super(n,r),pS(this,"space",s),typeof i=="number")for(;++a<ly.length;){const o=ly[a];pS(this,ly[a],(i&I0[o])===I0[o])}}}hb.prototype.defined=!0;function pS(e,n,r){r&&(e[n]=r)}function Tl(e){const n={},r={};for(const[i,s]of Object.entries(e.properties)){const a=new hb(i,e.transform(e.attributes||{},i),s,e.space);e.mustUseProperty&&e.mustUseProperty.includes(i)&&(a.mustUseProperty=!0),n[i]=a,r[O0(i)]=i,r[O0(a.attribute)]=i}return new Ru(n,r,e.space)}const K6=Tl({properties:{ariaActiveDescendant:null,ariaAtomic:on,ariaAutoComplete:null,ariaBusy:on,ariaChecked:on,ariaColCount:Ae,ariaColIndex:Ae,ariaColSpan:Ae,ariaControls:It,ariaCurrent:null,ariaDescribedBy:It,ariaDetails:null,ariaDisabled:on,ariaDropEffect:It,ariaErrorMessage:null,ariaExpanded:on,ariaFlowTo:It,ariaGrabbed:on,ariaHasPopup:null,ariaHidden:on,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:It,ariaLevel:Ae,ariaLive:null,ariaModal:on,ariaMultiLine:on,ariaMultiSelectable:on,ariaOrientation:null,ariaOwns:It,ariaPlaceholder:null,ariaPosInSet:Ae,ariaPressed:on,ariaReadOnly:on,ariaRelevant:null,ariaRequired:on,ariaRoleDescription:It,ariaRowCount:Ae,ariaRowIndex:Ae,ariaRowSpan:Ae,ariaSelected:on,ariaSetSize:Ae,ariaSort:null,ariaValueMax:Ae,ariaValueMin:Ae,ariaValueNow:Ae,ariaValueText:null,role:null},transform(e,n){return n==="role"?n:"aria-"+n.slice(4).toLowerCase()}});function G6(e,n){return n in e?e[n]:n}function Q6(e,n){return G6(e,n.toLowerCase())}const CQ=Tl({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Go,acceptCharset:It,accessKey:It,action:null,allow:null,allowFullScreen:ot,allowPaymentRequest:ot,allowUserMedia:ot,alt:null,as:null,async:ot,autoCapitalize:null,autoComplete:It,autoFocus:ot,autoPlay:ot,blocking:It,capture:null,charSet:null,checked:ot,cite:null,className:It,cols:Ae,colSpan:null,content:null,contentEditable:on,controls:ot,controlsList:It,coords:Ae|Go,crossOrigin:null,data:null,dateTime:null,decoding:null,default:ot,defer:ot,dir:null,dirName:null,disabled:ot,download:D0,draggable:on,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:ot,formTarget:null,headers:It,height:Ae,hidden:D0,high:Ae,href:null,hrefLang:null,htmlFor:It,httpEquiv:It,id:null,imageSizes:null,imageSrcSet:null,inert:ot,inputMode:null,integrity:null,is:null,isMap:ot,itemId:null,itemProp:It,itemRef:It,itemScope:ot,itemType:It,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:ot,low:Ae,manifest:null,max:null,maxLength:Ae,media:null,method:null,min:null,minLength:Ae,multiple:ot,muted:ot,name:null,nonce:null,noModule:ot,noValidate:ot,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:ot,optimum:Ae,pattern:null,ping:It,placeholder:null,playsInline:ot,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:ot,referrerPolicy:null,rel:It,required:ot,reversed:ot,rows:Ae,rowSpan:Ae,sandbox:It,scope:null,scoped:ot,seamless:ot,selected:ot,shadowRootClonable:ot,shadowRootDelegatesFocus:ot,shadowRootMode:null,shape:null,size:Ae,sizes:null,slot:null,span:Ae,spellCheck:on,src:null,srcDoc:null,srcLang:null,srcSet:null,start:Ae,step:null,style:null,tabIndex:Ae,target:null,title:null,translate:null,type:null,typeMustMatch:ot,useMap:null,value:on,width:Ae,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:It,axis:null,background:null,bgColor:null,border:Ae,borderColor:null,bottomMargin:Ae,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:ot,declare:ot,event:null,face:null,frame:null,frameBorder:null,hSpace:Ae,leftMargin:Ae,link:null,longDesc:null,lowSrc:null,marginHeight:Ae,marginWidth:Ae,noResize:ot,noHref:ot,noShade:ot,noWrap:ot,object:null,profile:null,prompt:null,rev:null,rightMargin:Ae,rules:null,scheme:null,scrolling:on,standby:null,summary:null,text:null,topMargin:Ae,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Ae,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:ot,disableRemotePlayback:ot,prefix:null,property:null,results:Ae,security:null,unselectable:null},space:"html",transform:Q6}),EQ=Tl({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:cr,accentHeight:Ae,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:Ae,amplitude:Ae,arabicForm:null,ascent:Ae,attributeName:null,attributeType:null,azimuth:Ae,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:Ae,by:null,calcMode:null,capHeight:Ae,className:It,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:Ae,diffuseConstant:Ae,direction:null,display:null,dur:null,divisor:Ae,dominantBaseline:null,download:ot,dx:null,dy:null,edgeMode:null,editable:null,elevation:Ae,enableBackground:null,end:null,event:null,exponent:Ae,externalResourcesRequired:null,fill:null,fillOpacity:Ae,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Go,g2:Go,glyphName:Go,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:Ae,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:Ae,horizOriginX:Ae,horizOriginY:Ae,id:null,ideographic:Ae,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:Ae,k:Ae,k1:Ae,k2:Ae,k3:Ae,k4:Ae,kernelMatrix:cr,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:Ae,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:Ae,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:Ae,overlineThickness:Ae,paintOrder:null,panose1:null,path:null,pathLength:Ae,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:It,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Ae,pointsAtY:Ae,pointsAtZ:Ae,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:cr,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:cr,rev:cr,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:cr,requiredFeatures:cr,requiredFonts:cr,requiredFormats:cr,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:Ae,specularExponent:Ae,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:Ae,strikethroughThickness:Ae,string:null,stroke:null,strokeDashArray:cr,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:Ae,strokeOpacity:Ae,strokeWidth:null,style:null,surfaceScale:Ae,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:cr,tabIndex:Ae,tableValues:null,target:null,targetX:Ae,targetY:Ae,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:cr,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:Ae,underlineThickness:Ae,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:Ae,values:null,vAlphabetic:Ae,vMathematical:Ae,vectorEffect:null,vHanging:Ae,vIdeographic:Ae,version:null,vertAdvY:Ae,vertOriginX:Ae,vertOriginY:Ae,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:Ae,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:G6}),Y6=Tl({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,n){return"xlink:"+n.slice(5).toLowerCase()}}),X6=Tl({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Q6}),J6=Tl({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,n){return"xml:"+n.slice(3).toLowerCase()}}),TQ={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},PQ=/[A-Z]/g,gS=/-[a-z]/g,OQ=/^data[-\w.:]+$/i;function DQ(e,n){const r=O0(n);let i=n,s=rr;if(r in e.normal)return e.property[e.normal[r]];if(r.length>4&&r.slice(0,4)==="data"&&OQ.test(n)){if(n.charAt(4)==="-"){const a=n.slice(5).replace(gS,RQ);i="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=n.slice(4);if(!gS.test(a)){let o=a.replace(PQ,IQ);o.charAt(0)!=="-"&&(o="-"+o),n="data"+o}}s=hb}return new s(i,n)}function IQ(e){return"-"+e.toLowerCase()}function RQ(e){return e.charAt(1).toUpperCase()}const FQ=W6([K6,CQ,Y6,X6,J6],"html"),fb=W6([K6,EQ,Y6,X6,J6],"svg");function MQ(e){return e.join(" ").trim()}var Do={},cy,xS;function LQ(){if(xS)return cy;xS=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,r=/^\s*/,i=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,s=/^:\s*/,a=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,o=/^[;\s]*/,c=/^\s+|\s+$/g,d=`
`,f="/",h="*",m="",p="comment",g="declaration";cy=function(j,y){if(typeof j!="string")throw new TypeError("First argument must be a string");if(!j)return[];y=y||{};var x=1,N=1;function w(q){var z=q.match(n);z&&(x+=z.length);var U=q.lastIndexOf(d);N=~U?q.length-U:N+q.length}function k(){var q={line:x,column:N};return function(z){return z.position=new A(q),C(),z}}function A(q){this.start=q,this.end={line:x,column:N},this.source=y.source}A.prototype.content=j;function S(q){var z=new Error(y.source+":"+x+":"+N+": "+q);if(z.reason=q,z.filename=y.source,z.line=x,z.column=N,z.source=j,!y.silent)throw z}function E(q){var z=q.exec(j);if(z){var U=z[0];return w(U),j=j.slice(U.length),z}}function C(){E(r)}function B(q){var z;for(q=q||[];z=I();)z!==!1&&q.push(z);return q}function I(){var q=k();if(!(f!=j.charAt(0)||h!=j.charAt(1))){for(var z=2;m!=j.charAt(z)&&(h!=j.charAt(z)||f!=j.charAt(z+1));)++z;if(z+=2,m===j.charAt(z-1))return S("End of comment missing");var U=j.slice(2,z-2);return N+=2,w(U),j=j.slice(z),N+=2,q({type:p,comment:U})}}function R(){var q=k(),z=E(i);if(z){if(I(),!E(s))return S("property missing ':'");var U=E(a),Y=q({type:g,property:b(z[0].replace(e,m)),value:U?b(U[0].replace(e,m)):m});return E(o),Y}}function D(){var q=[];B(q);for(var z;z=R();)z!==!1&&(q.push(z),B(q));return q}return C(),D()};function b(j){return j?j.replace(c,m):m}return cy}var yS;function BQ(){if(yS)return Do;yS=1;var e=Do&&Do.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(Do,"__esModule",{value:!0}),Do.default=r;var n=e(LQ());function r(i,s){var a=null;if(!i||typeof i!="string")return a;var o=(0,n.default)(i),c=typeof s=="function";return o.forEach(function(d){if(d.type==="declaration"){var f=d.property,h=d.value;c?s(f,h,d):h&&(a=a||{},a[f]=h)}}),a}return Do}var kc={},vS;function qQ(){if(vS)return kc;vS=1,Object.defineProperty(kc,"__esModule",{value:!0}),kc.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,n=/-([a-z])/g,r=/^[^-]+$/,i=/^-(webkit|moz|ms|o|khtml)-/,s=/^-(ms)-/,a=function(f){return!f||r.test(f)||e.test(f)},o=function(f,h){return h.toUpperCase()},c=function(f,h){return"".concat(h,"-")},d=function(f,h){return h===void 0&&(h={}),a(f)?f:(f=f.toLowerCase(),h.reactCompat?f=f.replace(s,c):f=f.replace(i,c),f.replace(n,o))};return kc.camelCase=d,kc}var _c,bS;function zQ(){if(bS)return _c;bS=1;var e=_c&&_c.__importDefault||function(s){return s&&s.__esModule?s:{default:s}},n=e(BQ()),r=qQ();function i(s,a){var o={};return!s||typeof s!="string"||(0,n.default)(s,function(c,d){c&&d&&(o[(0,r.camelCase)(c,a)]=d)}),o}return i.default=i,_c=i,_c}var VQ=zQ();const UQ=Ni(VQ),Z6=eP("end"),mb=eP("start");function eP(e){return n;function n(r){const i=r&&r.position&&r.position[e]||{};if(typeof i.line=="number"&&i.line>0&&typeof i.column=="number"&&i.column>0)return{line:i.line,column:i.column,offset:typeof i.offset=="number"&&i.offset>-1?i.offset:void 0}}}function $Q(e){const n=mb(e),r=Z6(e);if(n&&r)return{start:n,end:r}}function Wc(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?jS(e.position):"start"in e||"end"in e?jS(e):"line"in e||"column"in e?R0(e):""}function R0(e){return wS(e&&e.line)+":"+wS(e&&e.column)}function jS(e){return R0(e&&e.start)+"-"+R0(e&&e.end)}function wS(e){return e&&typeof e=="number"?e:1}class Rn extends Error{constructor(n,r,i){super(),typeof r=="string"&&(i=r,r=void 0);let s="",a={},o=!1;if(r&&("line"in r&&"column"in r?a={place:r}:"start"in r&&"end"in r?a={place:r}:"type"in r?a={ancestors:[r],place:r.position}:a={...r}),typeof n=="string"?s=n:!a.cause&&n&&(o=!0,s=n.message,a.cause=n),!a.ruleId&&!a.source&&typeof i=="string"){const d=i.indexOf(":");d===-1?a.ruleId=i:(a.source=i.slice(0,d),a.ruleId=i.slice(d+1))}if(!a.place&&a.ancestors&&a.ancestors){const d=a.ancestors[a.ancestors.length-1];d&&(a.place=d.position)}const c=a.place&&"start"in a.place?a.place.start:a.place;this.ancestors=a.ancestors||void 0,this.cause=a.cause||void 0,this.column=c?c.column:void 0,this.fatal=void 0,this.file="",this.message=s,this.line=c?c.line:void 0,this.name=Wc(a.place)||"1:1",this.place=a.place||void 0,this.reason=this.message,this.ruleId=a.ruleId||void 0,this.source=a.source||void 0,this.stack=o&&a.cause&&typeof a.cause.stack=="string"?a.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}Rn.prototype.file="";Rn.prototype.name="";Rn.prototype.reason="";Rn.prototype.message="";Rn.prototype.stack="";Rn.prototype.column=void 0;Rn.prototype.line=void 0;Rn.prototype.ancestors=void 0;Rn.prototype.cause=void 0;Rn.prototype.fatal=void 0;Rn.prototype.place=void 0;Rn.prototype.ruleId=void 0;Rn.prototype.source=void 0;const pb={}.hasOwnProperty,HQ=new Map,WQ=/[A-Z]/g,KQ=new Set(["table","tbody","thead","tfoot","tr"]),GQ=new Set(["td","th"]),tP="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function QQ(e,n){if(!n||n.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const r=n.filePath||void 0;let i;if(n.development){if(typeof n.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");i=rY(r,n.jsxDEV)}else{if(typeof n.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof n.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");i=nY(r,n.jsx,n.jsxs)}const s={Fragment:n.Fragment,ancestors:[],components:n.components||{},create:i,elementAttributeNameCase:n.elementAttributeNameCase||"react",evaluater:n.createEvaluater?n.createEvaluater():void 0,filePath:r,ignoreInvalidStyle:n.ignoreInvalidStyle||!1,passKeys:n.passKeys!==!1,passNode:n.passNode||!1,schema:n.space==="svg"?fb:FQ,stylePropertyNameCase:n.stylePropertyNameCase||"dom",tableCellAlignToStyle:n.tableCellAlignToStyle!==!1},a=nP(s,e,void 0);return a&&typeof a!="string"?a:s.create(e,s.Fragment,{children:a||void 0},void 0)}function nP(e,n,r){if(n.type==="element")return YQ(e,n,r);if(n.type==="mdxFlowExpression"||n.type==="mdxTextExpression")return XQ(e,n);if(n.type==="mdxJsxFlowElement"||n.type==="mdxJsxTextElement")return ZQ(e,n,r);if(n.type==="mdxjsEsm")return JQ(e,n);if(n.type==="root")return eY(e,n,r);if(n.type==="text")return tY(e,n)}function YQ(e,n,r){const i=e.schema;let s=i;n.tagName.toLowerCase()==="svg"&&i.space==="html"&&(s=fb,e.schema=s),e.ancestors.push(n);const a=iP(e,n.tagName,!1),o=iY(e,n);let c=xb(e,n);return KQ.has(n.tagName)&&(c=c.filter(function(d){return typeof d=="string"?!SQ(d):!0})),rP(e,o,a,n),gb(o,c),e.ancestors.pop(),e.schema=i,e.create(n,a,o,r)}function XQ(e,n){if(n.data&&n.data.estree&&e.evaluater){const i=n.data.estree.body[0];return i.type,e.evaluater.evaluateExpression(i.expression)}hu(e,n.position)}function JQ(e,n){if(n.data&&n.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(n.data.estree);hu(e,n.position)}function ZQ(e,n,r){const i=e.schema;let s=i;n.name==="svg"&&i.space==="html"&&(s=fb,e.schema=s),e.ancestors.push(n);const a=n.name===null?e.Fragment:iP(e,n.name,!0),o=sY(e,n),c=xb(e,n);return rP(e,o,a,n),gb(o,c),e.ancestors.pop(),e.schema=i,e.create(n,a,o,r)}function eY(e,n,r){const i={};return gb(i,xb(e,n)),e.create(n,e.Fragment,i,r)}function tY(e,n){return n.value}function rP(e,n,r,i){typeof r!="string"&&r!==e.Fragment&&e.passNode&&(n.node=i)}function gb(e,n){if(n.length>0){const r=n.length>1?n:n[0];r&&(e.children=r)}}function nY(e,n,r){return i;function i(s,a,o,c){const f=Array.isArray(o.children)?r:n;return c?f(a,o,c):f(a,o)}}function rY(e,n){return r;function r(i,s,a,o){const c=Array.isArray(a.children),d=mb(i);return n(s,a,o,c,{columnNumber:d?d.column-1:void 0,fileName:e,lineNumber:d?d.line:void 0},void 0)}}function iY(e,n){const r={};let i,s;for(s in n.properties)if(s!=="children"&&pb.call(n.properties,s)){const a=aY(e,s,n.properties[s]);if(a){const[o,c]=a;e.tableCellAlignToStyle&&o==="align"&&typeof c=="string"&&GQ.has(n.tagName)?i=c:r[o]=c}}if(i){const a=r.style||(r.style={});a[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=i}return r}function sY(e,n){const r={};for(const i of n.attributes)if(i.type==="mdxJsxExpressionAttribute")if(i.data&&i.data.estree&&e.evaluater){const a=i.data.estree.body[0];a.type;const o=a.expression;o.type;const c=o.properties[0];c.type,Object.assign(r,e.evaluater.evaluateExpression(c.argument))}else hu(e,n.position);else{const s=i.name;let a;if(i.value&&typeof i.value=="object")if(i.value.data&&i.value.data.estree&&e.evaluater){const c=i.value.data.estree.body[0];c.type,a=e.evaluater.evaluateExpression(c.expression)}else hu(e,n.position);else a=i.value===null?!0:i.value;r[s]=a}return r}function xb(e,n){const r=[];let i=-1;const s=e.passKeys?new Map:HQ;for(;++i<n.children.length;){const a=n.children[i];let o;if(e.passKeys){const d=a.type==="element"?a.tagName:a.type==="mdxJsxFlowElement"||a.type==="mdxJsxTextElement"?a.name:void 0;if(d){const f=s.get(d)||0;o=d+"-"+f,s.set(d,f+1)}}const c=nP(e,a,o);c!==void 0&&r.push(c)}return r}function aY(e,n,r){const i=DQ(e.schema,n);if(!(r==null||typeof r=="number"&&Number.isNaN(r))){if(Array.isArray(r)&&(r=i.commaSeparated?jQ(r):MQ(r)),i.property==="style"){let s=typeof r=="object"?r:oY(e,String(r));return e.stylePropertyNameCase==="css"&&(s=lY(s)),["style",s]}return[e.elementAttributeNameCase==="react"&&i.space?TQ[i.property]||i.property:i.attribute,r]}}function oY(e,n){try{return UQ(n,{reactCompat:!0})}catch(r){if(e.ignoreInvalidStyle)return{};const i=r,s=new Rn("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:i,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw s.file=e.filePath||void 0,s.url=tP+"#cannot-parse-style-attribute",s}}function iP(e,n,r){let i;if(!r)i={type:"Literal",value:n};else if(n.includes(".")){const s=n.split(".");let a=-1,o;for(;++a<s.length;){const c=fS(s[a])?{type:"Identifier",name:s[a]}:{type:"Literal",value:s[a]};o=o?{type:"MemberExpression",object:o,property:c,computed:!!(a&&c.type==="Literal"),optional:!1}:c}i=o}else i=fS(n)&&!/^[a-z]/.test(n)?{type:"Identifier",name:n}:{type:"Literal",value:n};if(i.type==="Literal"){const s=i.value;return pb.call(e.components,s)?e.components[s]:s}if(e.evaluater)return e.evaluater.evaluateExpression(i);hu(e)}function hu(e,n){const r=new Rn("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:n,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw r.file=e.filePath||void 0,r.url=tP+"#cannot-handle-mdx-estrees-without-createevaluater",r}function lY(e){const n={};let r;for(r in e)pb.call(e,r)&&(n[cY(r)]=e[r]);return n}function cY(e){let n=e.replace(WQ,uY);return n.slice(0,3)==="ms-"&&(n="-"+n),n}function uY(e){return"-"+e.toLowerCase()}const uy={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},dY={};function hY(e,n){const r=dY,i=typeof r.includeImageAlt=="boolean"?r.includeImageAlt:!0,s=typeof r.includeHtml=="boolean"?r.includeHtml:!0;return sP(e,i,s)}function sP(e,n,r){if(fY(e)){if("value"in e)return e.type==="html"&&!r?"":e.value;if(n&&"alt"in e&&e.alt)return e.alt;if("children"in e)return NS(e.children,n,r)}return Array.isArray(e)?NS(e,n,r):""}function NS(e,n,r){const i=[];let s=-1;for(;++s<e.length;)i[s]=sP(e[s],n,r);return i.join("")}function fY(e){return!!(e&&typeof e=="object")}const kS=document.createElement("i");function yb(e){const n="&"+e+";";kS.innerHTML=n;const r=kS.textContent;return r.charCodeAt(r.length-1)===59&&e!=="semi"||r===n?!1:r}function wi(e,n,r,i){const s=e.length;let a=0,o;if(n<0?n=-n>s?0:s+n:n=n>s?s:n,r=r>0?r:0,i.length<1e4)o=Array.from(i),o.unshift(n,r),e.splice(...o);else for(r&&e.splice(n,r);a<i.length;)o=i.slice(a,a+1e4),o.unshift(n,0),e.splice(...o),a+=1e4,n+=1e4}function Cr(e,n){return e.length>0?(wi(e,e.length,0,n),e):n}const _S={}.hasOwnProperty;function mY(e){const n={};let r=-1;for(;++r<e.length;)pY(n,e[r]);return n}function pY(e,n){let r;for(r in n){const s=(_S.call(e,r)?e[r]:void 0)||(e[r]={}),a=n[r];let o;if(a)for(o in a){_S.call(s,o)||(s[o]=[]);const c=a[o];gY(s[o],Array.isArray(c)?c:c?[c]:[])}}}function gY(e,n){let r=-1;const i=[];for(;++r<n.length;)(n[r].add==="after"?e:i).push(n[r]);wi(e,0,0,i)}function aP(e,n){const r=Number.parseInt(e,n);return r<9||r===11||r>13&&r<32||r>126&&r<160||r>55295&&r<57344||r>64975&&r<65008||(r&65535)===65535||(r&65535)===65534||r>1114111?"�":String.fromCodePoint(r)}function Qo(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const ui=ta(/[A-Za-z]/),hr=ta(/[\dA-Za-z]/),xY=ta(/[#-'*+\--9=?A-Z^-~]/);function F0(e){return e!==null&&(e<32||e===127)}const M0=ta(/\d/),yY=ta(/[\dA-Fa-f]/),vY=ta(/[!-/:-@[-`{-~]/);function Ze(e){return e!==null&&e<-2}function nr(e){return e!==null&&(e<0||e===32)}function Nt(e){return e===-2||e===-1||e===32}const bY=ta(new RegExp("\\p{P}|\\p{S}","u")),jY=ta(/\s/);function ta(e){return n;function n(r){return r!==null&&r>-1&&e.test(String.fromCharCode(r))}}function Pl(e){const n=[];let r=-1,i=0,s=0;for(;++r<e.length;){const a=e.charCodeAt(r);let o="";if(a===37&&hr(e.charCodeAt(r+1))&&hr(e.charCodeAt(r+2)))s=2;else if(a<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(a))||(o=String.fromCharCode(a));else if(a>55295&&a<57344){const c=e.charCodeAt(r+1);a<56320&&c>56319&&c<57344?(o=String.fromCharCode(a,c),s=1):o="�"}else o=String.fromCharCode(a);o&&(n.push(e.slice(i,r),encodeURIComponent(o)),i=r+s+1,o=""),s&&(r+=s,s=0)}return n.join("")+e.slice(i)}function Ft(e,n,r,i){const s=i?i-1:Number.POSITIVE_INFINITY;let a=0;return o;function o(d){return Nt(d)?(e.enter(r),c(d)):n(d)}function c(d){return Nt(d)&&a++<s?(e.consume(d),c):(e.exit(r),n(d))}}const wY={tokenize:NY};function NY(e){const n=e.attempt(this.parser.constructs.contentInitial,i,s);let r;return n;function i(c){if(c===null){e.consume(c);return}return e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),Ft(e,n,"linePrefix")}function s(c){return e.enter("paragraph"),a(c)}function a(c){const d=e.enter("chunkText",{contentType:"text",previous:r});return r&&(r.next=d),r=d,o(c)}function o(c){if(c===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(c);return}return Ze(c)?(e.consume(c),e.exit("chunkText"),a):(e.consume(c),o)}}const kY={tokenize:_Y},SS={tokenize:SY};function _Y(e){const n=this,r=[];let i=0,s,a,o;return c;function c(w){if(i<r.length){const k=r[i];return n.containerState=k[1],e.attempt(k[0].continuation,d,f)(w)}return f(w)}function d(w){if(i++,n.containerState._closeFlow){n.containerState._closeFlow=void 0,s&&N();const k=n.events.length;let A=k,S;for(;A--;)if(n.events[A][0]==="exit"&&n.events[A][1].type==="chunkFlow"){S=n.events[A][1].end;break}x(i);let E=k;for(;E<n.events.length;)n.events[E][1].end={...S},E++;return wi(n.events,A+1,0,n.events.slice(k)),n.events.length=E,f(w)}return c(w)}function f(w){if(i===r.length){if(!s)return p(w);if(s.currentConstruct&&s.currentConstruct.concrete)return b(w);n.interrupt=!!(s.currentConstruct&&!s._gfmTableDynamicInterruptHack)}return n.containerState={},e.check(SS,h,m)(w)}function h(w){return s&&N(),x(i),p(w)}function m(w){return n.parser.lazy[n.now().line]=i!==r.length,o=n.now().offset,b(w)}function p(w){return n.containerState={},e.attempt(SS,g,b)(w)}function g(w){return i++,r.push([n.currentConstruct,n.containerState]),p(w)}function b(w){if(w===null){s&&N(),x(0),e.consume(w);return}return s=s||n.parser.flow(n.now()),e.enter("chunkFlow",{_tokenizer:s,contentType:"flow",previous:a}),j(w)}function j(w){if(w===null){y(e.exit("chunkFlow"),!0),x(0),e.consume(w);return}return Ze(w)?(e.consume(w),y(e.exit("chunkFlow")),i=0,n.interrupt=void 0,c):(e.consume(w),j)}function y(w,k){const A=n.sliceStream(w);if(k&&A.push(null),w.previous=a,a&&(a.next=w),a=w,s.defineSkip(w.start),s.write(A),n.parser.lazy[w.start.line]){let S=s.events.length;for(;S--;)if(s.events[S][1].start.offset<o&&(!s.events[S][1].end||s.events[S][1].end.offset>o))return;const E=n.events.length;let C=E,B,I;for(;C--;)if(n.events[C][0]==="exit"&&n.events[C][1].type==="chunkFlow"){if(B){I=n.events[C][1].end;break}B=!0}for(x(i),S=E;S<n.events.length;)n.events[S][1].end={...I},S++;wi(n.events,C+1,0,n.events.slice(E)),n.events.length=S}}function x(w){let k=r.length;for(;k-- >w;){const A=r[k];n.containerState=A[1],A[0].exit.call(n,e)}r.length=w}function N(){s.write([null]),a=void 0,s=void 0,n.containerState._closeFlow=void 0}}function SY(e,n,r){return Ft(e,e.attempt(this.parser.constructs.document,n,r),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function AS(e){if(e===null||nr(e)||jY(e))return 1;if(bY(e))return 2}function vb(e,n,r){const i=[];let s=-1;for(;++s<e.length;){const a=e[s].resolveAll;a&&!i.includes(a)&&(n=a(n,r),i.push(a))}return n}const L0={name:"attention",resolveAll:AY,tokenize:CY};function AY(e,n){let r=-1,i,s,a,o,c,d,f,h;for(;++r<e.length;)if(e[r][0]==="enter"&&e[r][1].type==="attentionSequence"&&e[r][1]._close){for(i=r;i--;)if(e[i][0]==="exit"&&e[i][1].type==="attentionSequence"&&e[i][1]._open&&n.sliceSerialize(e[i][1]).charCodeAt(0)===n.sliceSerialize(e[r][1]).charCodeAt(0)){if((e[i][1]._close||e[r][1]._open)&&(e[r][1].end.offset-e[r][1].start.offset)%3&&!((e[i][1].end.offset-e[i][1].start.offset+e[r][1].end.offset-e[r][1].start.offset)%3))continue;d=e[i][1].end.offset-e[i][1].start.offset>1&&e[r][1].end.offset-e[r][1].start.offset>1?2:1;const m={...e[i][1].end},p={...e[r][1].start};CS(m,-d),CS(p,d),o={type:d>1?"strongSequence":"emphasisSequence",start:m,end:{...e[i][1].end}},c={type:d>1?"strongSequence":"emphasisSequence",start:{...e[r][1].start},end:p},a={type:d>1?"strongText":"emphasisText",start:{...e[i][1].end},end:{...e[r][1].start}},s={type:d>1?"strong":"emphasis",start:{...o.start},end:{...c.end}},e[i][1].end={...o.start},e[r][1].start={...c.end},f=[],e[i][1].end.offset-e[i][1].start.offset&&(f=Cr(f,[["enter",e[i][1],n],["exit",e[i][1],n]])),f=Cr(f,[["enter",s,n],["enter",o,n],["exit",o,n],["enter",a,n]]),f=Cr(f,vb(n.parser.constructs.insideSpan.null,e.slice(i+1,r),n)),f=Cr(f,[["exit",a,n],["enter",c,n],["exit",c,n],["exit",s,n]]),e[r][1].end.offset-e[r][1].start.offset?(h=2,f=Cr(f,[["enter",e[r][1],n],["exit",e[r][1],n]])):h=0,wi(e,i-1,r-i+3,f),r=i+f.length-h-2;break}}for(r=-1;++r<e.length;)e[r][1].type==="attentionSequence"&&(e[r][1].type="data");return e}function CY(e,n){const r=this.parser.constructs.attentionMarkers.null,i=this.previous,s=AS(i);let a;return o;function o(d){return a=d,e.enter("attentionSequence"),c(d)}function c(d){if(d===a)return e.consume(d),c;const f=e.exit("attentionSequence"),h=AS(d),m=!h||h===2&&s||r.includes(d),p=!s||s===2&&h||r.includes(i);return f._open=!!(a===42?m:m&&(s||!p)),f._close=!!(a===42?p:p&&(h||!m)),n(d)}}function CS(e,n){e.column+=n,e.offset+=n,e._bufferIndex+=n}const EY={name:"autolink",tokenize:TY};function TY(e,n,r){let i=0;return s;function s(g){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(g),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),a}function a(g){return ui(g)?(e.consume(g),o):g===64?r(g):f(g)}function o(g){return g===43||g===45||g===46||hr(g)?(i=1,c(g)):f(g)}function c(g){return g===58?(e.consume(g),i=0,d):(g===43||g===45||g===46||hr(g))&&i++<32?(e.consume(g),c):(i=0,f(g))}function d(g){return g===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(g),e.exit("autolinkMarker"),e.exit("autolink"),n):g===null||g===32||g===60||F0(g)?r(g):(e.consume(g),d)}function f(g){return g===64?(e.consume(g),h):xY(g)?(e.consume(g),f):r(g)}function h(g){return hr(g)?m(g):r(g)}function m(g){return g===46?(e.consume(g),i=0,h):g===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(g),e.exit("autolinkMarker"),e.exit("autolink"),n):p(g)}function p(g){if((g===45||hr(g))&&i++<63){const b=g===45?p:m;return e.consume(g),b}return r(g)}}const zf={partial:!0,tokenize:PY};function PY(e,n,r){return i;function i(a){return Nt(a)?Ft(e,s,"linePrefix")(a):s(a)}function s(a){return a===null||Ze(a)?n(a):r(a)}}const oP={continuation:{tokenize:DY},exit:IY,name:"blockQuote",tokenize:OY};function OY(e,n,r){const i=this;return s;function s(o){if(o===62){const c=i.containerState;return c.open||(e.enter("blockQuote",{_container:!0}),c.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(o),e.exit("blockQuoteMarker"),a}return r(o)}function a(o){return Nt(o)?(e.enter("blockQuotePrefixWhitespace"),e.consume(o),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),n):(e.exit("blockQuotePrefix"),n(o))}}function DY(e,n,r){const i=this;return s;function s(o){return Nt(o)?Ft(e,a,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o):a(o)}function a(o){return e.attempt(oP,n,r)(o)}}function IY(e){e.exit("blockQuote")}const lP={name:"characterEscape",tokenize:RY};function RY(e,n,r){return i;function i(a){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(a),e.exit("escapeMarker"),s}function s(a){return vY(a)?(e.enter("characterEscapeValue"),e.consume(a),e.exit("characterEscapeValue"),e.exit("characterEscape"),n):r(a)}}const cP={name:"characterReference",tokenize:FY};function FY(e,n,r){const i=this;let s=0,a,o;return c;function c(m){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(m),e.exit("characterReferenceMarker"),d}function d(m){return m===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(m),e.exit("characterReferenceMarkerNumeric"),f):(e.enter("characterReferenceValue"),a=31,o=hr,h(m))}function f(m){return m===88||m===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(m),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),a=6,o=yY,h):(e.enter("characterReferenceValue"),a=7,o=M0,h(m))}function h(m){if(m===59&&s){const p=e.exit("characterReferenceValue");return o===hr&&!yb(i.sliceSerialize(p))?r(m):(e.enter("characterReferenceMarker"),e.consume(m),e.exit("characterReferenceMarker"),e.exit("characterReference"),n)}return o(m)&&s++<a?(e.consume(m),h):r(m)}}const ES={partial:!0,tokenize:LY},TS={concrete:!0,name:"codeFenced",tokenize:MY};function MY(e,n,r){const i=this,s={partial:!0,tokenize:A};let a=0,o=0,c;return d;function d(S){return f(S)}function f(S){const E=i.events[i.events.length-1];return a=E&&E[1].type==="linePrefix"?E[2].sliceSerialize(E[1],!0).length:0,c=S,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),h(S)}function h(S){return S===c?(o++,e.consume(S),h):o<3?r(S):(e.exit("codeFencedFenceSequence"),Nt(S)?Ft(e,m,"whitespace")(S):m(S))}function m(S){return S===null||Ze(S)?(e.exit("codeFencedFence"),i.interrupt?n(S):e.check(ES,j,k)(S)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),p(S))}function p(S){return S===null||Ze(S)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),m(S)):Nt(S)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),Ft(e,g,"whitespace")(S)):S===96&&S===c?r(S):(e.consume(S),p)}function g(S){return S===null||Ze(S)?m(S):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),b(S))}function b(S){return S===null||Ze(S)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),m(S)):S===96&&S===c?r(S):(e.consume(S),b)}function j(S){return e.attempt(s,k,y)(S)}function y(S){return e.enter("lineEnding"),e.consume(S),e.exit("lineEnding"),x}function x(S){return a>0&&Nt(S)?Ft(e,N,"linePrefix",a+1)(S):N(S)}function N(S){return S===null||Ze(S)?e.check(ES,j,k)(S):(e.enter("codeFlowValue"),w(S))}function w(S){return S===null||Ze(S)?(e.exit("codeFlowValue"),N(S)):(e.consume(S),w)}function k(S){return e.exit("codeFenced"),n(S)}function A(S,E,C){let B=0;return I;function I(U){return S.enter("lineEnding"),S.consume(U),S.exit("lineEnding"),R}function R(U){return S.enter("codeFencedFence"),Nt(U)?Ft(S,D,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(U):D(U)}function D(U){return U===c?(S.enter("codeFencedFenceSequence"),q(U)):C(U)}function q(U){return U===c?(B++,S.consume(U),q):B>=o?(S.exit("codeFencedFenceSequence"),Nt(U)?Ft(S,z,"whitespace")(U):z(U)):C(U)}function z(U){return U===null||Ze(U)?(S.exit("codeFencedFence"),E(U)):C(U)}}}function LY(e,n,r){const i=this;return s;function s(o){return o===null?r(o):(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),a)}function a(o){return i.parser.lazy[i.now().line]?r(o):n(o)}}const dy={name:"codeIndented",tokenize:qY},BY={partial:!0,tokenize:zY};function qY(e,n,r){const i=this;return s;function s(f){return e.enter("codeIndented"),Ft(e,a,"linePrefix",5)(f)}function a(f){const h=i.events[i.events.length-1];return h&&h[1].type==="linePrefix"&&h[2].sliceSerialize(h[1],!0).length>=4?o(f):r(f)}function o(f){return f===null?d(f):Ze(f)?e.attempt(BY,o,d)(f):(e.enter("codeFlowValue"),c(f))}function c(f){return f===null||Ze(f)?(e.exit("codeFlowValue"),o(f)):(e.consume(f),c)}function d(f){return e.exit("codeIndented"),n(f)}}function zY(e,n,r){const i=this;return s;function s(o){return i.parser.lazy[i.now().line]?r(o):Ze(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),s):Ft(e,a,"linePrefix",5)(o)}function a(o){const c=i.events[i.events.length-1];return c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?n(o):Ze(o)?s(o):r(o)}}const VY={name:"codeText",previous:$Y,resolve:UY,tokenize:HY};function UY(e){let n=e.length-4,r=3,i,s;if((e[r][1].type==="lineEnding"||e[r][1].type==="space")&&(e[n][1].type==="lineEnding"||e[n][1].type==="space")){for(i=r;++i<n;)if(e[i][1].type==="codeTextData"){e[r][1].type="codeTextPadding",e[n][1].type="codeTextPadding",r+=2,n-=2;break}}for(i=r-1,n++;++i<=n;)s===void 0?i!==n&&e[i][1].type!=="lineEnding"&&(s=i):(i===n||e[i][1].type==="lineEnding")&&(e[s][1].type="codeTextData",i!==s+2&&(e[s][1].end=e[i-1][1].end,e.splice(s+2,i-s-2),n-=i-s-2,i=s+2),s=void 0);return e}function $Y(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function HY(e,n,r){let i=0,s,a;return o;function o(m){return e.enter("codeText"),e.enter("codeTextSequence"),c(m)}function c(m){return m===96?(e.consume(m),i++,c):(e.exit("codeTextSequence"),d(m))}function d(m){return m===null?r(m):m===32?(e.enter("space"),e.consume(m),e.exit("space"),d):m===96?(a=e.enter("codeTextSequence"),s=0,h(m)):Ze(m)?(e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),d):(e.enter("codeTextData"),f(m))}function f(m){return m===null||m===32||m===96||Ze(m)?(e.exit("codeTextData"),d(m)):(e.consume(m),f)}function h(m){return m===96?(e.consume(m),s++,h):s===i?(e.exit("codeTextSequence"),e.exit("codeText"),n(m)):(a.type="codeTextData",f(m))}}class WY{constructor(n){this.left=n?[...n]:[],this.right=[]}get(n){if(n<0||n>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+n+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return n<this.left.length?this.left[n]:this.right[this.right.length-n+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(n,r){const i=r??Number.POSITIVE_INFINITY;return i<this.left.length?this.left.slice(n,i):n>this.left.length?this.right.slice(this.right.length-i+this.left.length,this.right.length-n+this.left.length).reverse():this.left.slice(n).concat(this.right.slice(this.right.length-i+this.left.length).reverse())}splice(n,r,i){const s=r||0;this.setCursor(Math.trunc(n));const a=this.right.splice(this.right.length-s,Number.POSITIVE_INFINITY);return i&&Sc(this.left,i),a.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(n){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(n)}pushMany(n){this.setCursor(Number.POSITIVE_INFINITY),Sc(this.left,n)}unshift(n){this.setCursor(0),this.right.push(n)}unshiftMany(n){this.setCursor(0),Sc(this.right,n.reverse())}setCursor(n){if(!(n===this.left.length||n>this.left.length&&this.right.length===0||n<0&&this.left.length===0))if(n<this.left.length){const r=this.left.splice(n,Number.POSITIVE_INFINITY);Sc(this.right,r.reverse())}else{const r=this.right.splice(this.left.length+this.right.length-n,Number.POSITIVE_INFINITY);Sc(this.left,r.reverse())}}}function Sc(e,n){let r=0;if(n.length<1e4)e.push(...n);else for(;r<n.length;)e.push(...n.slice(r,r+1e4)),r+=1e4}function uP(e){const n={};let r=-1,i,s,a,o,c,d,f;const h=new WY(e);for(;++r<h.length;){for(;r in n;)r=n[r];if(i=h.get(r),r&&i[1].type==="chunkFlow"&&h.get(r-1)[1].type==="listItemPrefix"&&(d=i[1]._tokenizer.events,a=0,a<d.length&&d[a][1].type==="lineEndingBlank"&&(a+=2),a<d.length&&d[a][1].type==="content"))for(;++a<d.length&&d[a][1].type!=="content";)d[a][1].type==="chunkText"&&(d[a][1]._isInFirstContentOfListItem=!0,a++);if(i[0]==="enter")i[1].contentType&&(Object.assign(n,KY(h,r)),r=n[r],f=!0);else if(i[1]._container){for(a=r,s=void 0;a--;)if(o=h.get(a),o[1].type==="lineEnding"||o[1].type==="lineEndingBlank")o[0]==="enter"&&(s&&(h.get(s)[1].type="lineEndingBlank"),o[1].type="lineEnding",s=a);else if(!(o[1].type==="linePrefix"||o[1].type==="listItemIndent"))break;s&&(i[1].end={...h.get(s)[1].start},c=h.slice(s,r),c.unshift(i),h.splice(s,r-s+1,c))}}return wi(e,0,Number.POSITIVE_INFINITY,h.slice(0)),!f}function KY(e,n){const r=e.get(n)[1],i=e.get(n)[2];let s=n-1;const a=[];let o=r._tokenizer;o||(o=i.parser[r.contentType](r.start),r._contentTypeTextTrailing&&(o._contentTypeTextTrailing=!0));const c=o.events,d=[],f={};let h,m,p=-1,g=r,b=0,j=0;const y=[j];for(;g;){for(;e.get(++s)[1]!==g;);a.push(s),g._tokenizer||(h=i.sliceStream(g),g.next||h.push(null),m&&o.defineSkip(g.start),g._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=!0),o.write(h),g._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=void 0)),m=g,g=g.next}for(g=r;++p<c.length;)c[p][0]==="exit"&&c[p-1][0]==="enter"&&c[p][1].type===c[p-1][1].type&&c[p][1].start.line!==c[p][1].end.line&&(j=p+1,y.push(j),g._tokenizer=void 0,g.previous=void 0,g=g.next);for(o.events=[],g?(g._tokenizer=void 0,g.previous=void 0):y.pop(),p=y.length;p--;){const x=c.slice(y[p],y[p+1]),N=a.pop();d.push([N,N+x.length-1]),e.splice(N,2,x)}for(d.reverse(),p=-1;++p<d.length;)f[b+d[p][0]]=b+d[p][1],b+=d[p][1]-d[p][0]-1;return f}const GY={resolve:YY,tokenize:XY},QY={partial:!0,tokenize:JY};function YY(e){return uP(e),e}function XY(e,n){let r;return i;function i(c){return e.enter("content"),r=e.enter("chunkContent",{contentType:"content"}),s(c)}function s(c){return c===null?a(c):Ze(c)?e.check(QY,o,a)(c):(e.consume(c),s)}function a(c){return e.exit("chunkContent"),e.exit("content"),n(c)}function o(c){return e.consume(c),e.exit("chunkContent"),r.next=e.enter("chunkContent",{contentType:"content",previous:r}),r=r.next,s}}function JY(e,n,r){const i=this;return s;function s(o){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),Ft(e,a,"linePrefix")}function a(o){if(o===null||Ze(o))return r(o);const c=i.events[i.events.length-1];return!i.parser.constructs.disable.null.includes("codeIndented")&&c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?n(o):e.interrupt(i.parser.constructs.flow,r,n)(o)}}function dP(e,n,r,i,s,a,o,c,d){const f=d||Number.POSITIVE_INFINITY;let h=0;return m;function m(x){return x===60?(e.enter(i),e.enter(s),e.enter(a),e.consume(x),e.exit(a),p):x===null||x===32||x===41||F0(x)?r(x):(e.enter(i),e.enter(o),e.enter(c),e.enter("chunkString",{contentType:"string"}),j(x))}function p(x){return x===62?(e.enter(a),e.consume(x),e.exit(a),e.exit(s),e.exit(i),n):(e.enter(c),e.enter("chunkString",{contentType:"string"}),g(x))}function g(x){return x===62?(e.exit("chunkString"),e.exit(c),p(x)):x===null||x===60||Ze(x)?r(x):(e.consume(x),x===92?b:g)}function b(x){return x===60||x===62||x===92?(e.consume(x),g):g(x)}function j(x){return!h&&(x===null||x===41||nr(x))?(e.exit("chunkString"),e.exit(c),e.exit(o),e.exit(i),n(x)):h<f&&x===40?(e.consume(x),h++,j):x===41?(e.consume(x),h--,j):x===null||x===32||x===40||F0(x)?r(x):(e.consume(x),x===92?y:j)}function y(x){return x===40||x===41||x===92?(e.consume(x),j):j(x)}}function hP(e,n,r,i,s,a){const o=this;let c=0,d;return f;function f(g){return e.enter(i),e.enter(s),e.consume(g),e.exit(s),e.enter(a),h}function h(g){return c>999||g===null||g===91||g===93&&!d||g===94&&!c&&"_hiddenFootnoteSupport"in o.parser.constructs?r(g):g===93?(e.exit(a),e.enter(s),e.consume(g),e.exit(s),e.exit(i),n):Ze(g)?(e.enter("lineEnding"),e.consume(g),e.exit("lineEnding"),h):(e.enter("chunkString",{contentType:"string"}),m(g))}function m(g){return g===null||g===91||g===93||Ze(g)||c++>999?(e.exit("chunkString"),h(g)):(e.consume(g),d||(d=!Nt(g)),g===92?p:m)}function p(g){return g===91||g===92||g===93?(e.consume(g),c++,m):m(g)}}function fP(e,n,r,i,s,a){let o;return c;function c(p){return p===34||p===39||p===40?(e.enter(i),e.enter(s),e.consume(p),e.exit(s),o=p===40?41:p,d):r(p)}function d(p){return p===o?(e.enter(s),e.consume(p),e.exit(s),e.exit(i),n):(e.enter(a),f(p))}function f(p){return p===o?(e.exit(a),d(o)):p===null?r(p):Ze(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),Ft(e,f,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),h(p))}function h(p){return p===o||p===null||Ze(p)?(e.exit("chunkString"),f(p)):(e.consume(p),p===92?m:h)}function m(p){return p===o||p===92?(e.consume(p),h):h(p)}}function Kc(e,n){let r;return i;function i(s){return Ze(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),r=!0,i):Nt(s)?Ft(e,i,r?"linePrefix":"lineSuffix")(s):n(s)}}const ZY={name:"definition",tokenize:tX},eX={partial:!0,tokenize:nX};function tX(e,n,r){const i=this;let s;return a;function a(g){return e.enter("definition"),o(g)}function o(g){return hP.call(i,e,c,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(g)}function c(g){return s=Qo(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)),g===58?(e.enter("definitionMarker"),e.consume(g),e.exit("definitionMarker"),d):r(g)}function d(g){return nr(g)?Kc(e,f)(g):f(g)}function f(g){return dP(e,h,r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(g)}function h(g){return e.attempt(eX,m,m)(g)}function m(g){return Nt(g)?Ft(e,p,"whitespace")(g):p(g)}function p(g){return g===null||Ze(g)?(e.exit("definition"),i.parser.defined.push(s),n(g)):r(g)}}function nX(e,n,r){return i;function i(c){return nr(c)?Kc(e,s)(c):r(c)}function s(c){return fP(e,a,r,"definitionTitle","definitionTitleMarker","definitionTitleString")(c)}function a(c){return Nt(c)?Ft(e,o,"whitespace")(c):o(c)}function o(c){return c===null||Ze(c)?n(c):r(c)}}const rX={name:"hardBreakEscape",tokenize:iX};function iX(e,n,r){return i;function i(a){return e.enter("hardBreakEscape"),e.consume(a),s}function s(a){return Ze(a)?(e.exit("hardBreakEscape"),n(a)):r(a)}}const sX={name:"headingAtx",resolve:aX,tokenize:oX};function aX(e,n){let r=e.length-2,i=3,s,a;return e[i][1].type==="whitespace"&&(i+=2),r-2>i&&e[r][1].type==="whitespace"&&(r-=2),e[r][1].type==="atxHeadingSequence"&&(i===r-1||r-4>i&&e[r-2][1].type==="whitespace")&&(r-=i+1===r?2:4),r>i&&(s={type:"atxHeadingText",start:e[i][1].start,end:e[r][1].end},a={type:"chunkText",start:e[i][1].start,end:e[r][1].end,contentType:"text"},wi(e,i,r-i+1,[["enter",s,n],["enter",a,n],["exit",a,n],["exit",s,n]])),e}function oX(e,n,r){let i=0;return s;function s(h){return e.enter("atxHeading"),a(h)}function a(h){return e.enter("atxHeadingSequence"),o(h)}function o(h){return h===35&&i++<6?(e.consume(h),o):h===null||nr(h)?(e.exit("atxHeadingSequence"),c(h)):r(h)}function c(h){return h===35?(e.enter("atxHeadingSequence"),d(h)):h===null||Ze(h)?(e.exit("atxHeading"),n(h)):Nt(h)?Ft(e,c,"whitespace")(h):(e.enter("atxHeadingText"),f(h))}function d(h){return h===35?(e.consume(h),d):(e.exit("atxHeadingSequence"),c(h))}function f(h){return h===null||h===35||nr(h)?(e.exit("atxHeadingText"),c(h)):(e.consume(h),f)}}const lX=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],PS=["pre","script","style","textarea"],cX={concrete:!0,name:"htmlFlow",resolveTo:hX,tokenize:fX},uX={partial:!0,tokenize:pX},dX={partial:!0,tokenize:mX};function hX(e){let n=e.length;for(;n--&&!(e[n][0]==="enter"&&e[n][1].type==="htmlFlow"););return n>1&&e[n-2][1].type==="linePrefix"&&(e[n][1].start=e[n-2][1].start,e[n+1][1].start=e[n-2][1].start,e.splice(n-2,2)),e}function fX(e,n,r){const i=this;let s,a,o,c,d;return f;function f(L){return h(L)}function h(L){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(L),m}function m(L){return L===33?(e.consume(L),p):L===47?(e.consume(L),a=!0,j):L===63?(e.consume(L),s=3,i.interrupt?n:O):ui(L)?(e.consume(L),o=String.fromCharCode(L),y):r(L)}function p(L){return L===45?(e.consume(L),s=2,g):L===91?(e.consume(L),s=5,c=0,b):ui(L)?(e.consume(L),s=4,i.interrupt?n:O):r(L)}function g(L){return L===45?(e.consume(L),i.interrupt?n:O):r(L)}function b(L){const X="CDATA[";return L===X.charCodeAt(c++)?(e.consume(L),c===X.length?i.interrupt?n:D:b):r(L)}function j(L){return ui(L)?(e.consume(L),o=String.fromCharCode(L),y):r(L)}function y(L){if(L===null||L===47||L===62||nr(L)){const X=L===47,J=o.toLowerCase();return!X&&!a&&PS.includes(J)?(s=1,i.interrupt?n(L):D(L)):lX.includes(o.toLowerCase())?(s=6,X?(e.consume(L),x):i.interrupt?n(L):D(L)):(s=7,i.interrupt&&!i.parser.lazy[i.now().line]?r(L):a?N(L):w(L))}return L===45||hr(L)?(e.consume(L),o+=String.fromCharCode(L),y):r(L)}function x(L){return L===62?(e.consume(L),i.interrupt?n:D):r(L)}function N(L){return Nt(L)?(e.consume(L),N):I(L)}function w(L){return L===47?(e.consume(L),I):L===58||L===95||ui(L)?(e.consume(L),k):Nt(L)?(e.consume(L),w):I(L)}function k(L){return L===45||L===46||L===58||L===95||hr(L)?(e.consume(L),k):A(L)}function A(L){return L===61?(e.consume(L),S):Nt(L)?(e.consume(L),A):w(L)}function S(L){return L===null||L===60||L===61||L===62||L===96?r(L):L===34||L===39?(e.consume(L),d=L,E):Nt(L)?(e.consume(L),S):C(L)}function E(L){return L===d?(e.consume(L),d=null,B):L===null||Ze(L)?r(L):(e.consume(L),E)}function C(L){return L===null||L===34||L===39||L===47||L===60||L===61||L===62||L===96||nr(L)?A(L):(e.consume(L),C)}function B(L){return L===47||L===62||Nt(L)?w(L):r(L)}function I(L){return L===62?(e.consume(L),R):r(L)}function R(L){return L===null||Ze(L)?D(L):Nt(L)?(e.consume(L),R):r(L)}function D(L){return L===45&&s===2?(e.consume(L),Y):L===60&&s===1?(e.consume(L),H):L===62&&s===4?(e.consume(L),T):L===63&&s===3?(e.consume(L),O):L===93&&s===5?(e.consume(L),Q):Ze(L)&&(s===6||s===7)?(e.exit("htmlFlowData"),e.check(uX,V,q)(L)):L===null||Ze(L)?(e.exit("htmlFlowData"),q(L)):(e.consume(L),D)}function q(L){return e.check(dX,z,V)(L)}function z(L){return e.enter("lineEnding"),e.consume(L),e.exit("lineEnding"),U}function U(L){return L===null||Ze(L)?q(L):(e.enter("htmlFlowData"),D(L))}function Y(L){return L===45?(e.consume(L),O):D(L)}function H(L){return L===47?(e.consume(L),o="",K):D(L)}function K(L){if(L===62){const X=o.toLowerCase();return PS.includes(X)?(e.consume(L),T):D(L)}return ui(L)&&o.length<8?(e.consume(L),o+=String.fromCharCode(L),K):D(L)}function Q(L){return L===93?(e.consume(L),O):D(L)}function O(L){return L===62?(e.consume(L),T):L===45&&s===2?(e.consume(L),O):D(L)}function T(L){return L===null||Ze(L)?(e.exit("htmlFlowData"),V(L)):(e.consume(L),T)}function V(L){return e.exit("htmlFlow"),n(L)}}function mX(e,n,r){const i=this;return s;function s(o){return Ze(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),a):r(o)}function a(o){return i.parser.lazy[i.now().line]?r(o):n(o)}}function pX(e,n,r){return i;function i(s){return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),e.attempt(zf,n,r)}}const gX={name:"htmlText",tokenize:xX};function xX(e,n,r){const i=this;let s,a,o;return c;function c(O){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(O),d}function d(O){return O===33?(e.consume(O),f):O===47?(e.consume(O),A):O===63?(e.consume(O),w):ui(O)?(e.consume(O),C):r(O)}function f(O){return O===45?(e.consume(O),h):O===91?(e.consume(O),a=0,b):ui(O)?(e.consume(O),N):r(O)}function h(O){return O===45?(e.consume(O),g):r(O)}function m(O){return O===null?r(O):O===45?(e.consume(O),p):Ze(O)?(o=m,H(O)):(e.consume(O),m)}function p(O){return O===45?(e.consume(O),g):m(O)}function g(O){return O===62?Y(O):O===45?p(O):m(O)}function b(O){const T="CDATA[";return O===T.charCodeAt(a++)?(e.consume(O),a===T.length?j:b):r(O)}function j(O){return O===null?r(O):O===93?(e.consume(O),y):Ze(O)?(o=j,H(O)):(e.consume(O),j)}function y(O){return O===93?(e.consume(O),x):j(O)}function x(O){return O===62?Y(O):O===93?(e.consume(O),x):j(O)}function N(O){return O===null||O===62?Y(O):Ze(O)?(o=N,H(O)):(e.consume(O),N)}function w(O){return O===null?r(O):O===63?(e.consume(O),k):Ze(O)?(o=w,H(O)):(e.consume(O),w)}function k(O){return O===62?Y(O):w(O)}function A(O){return ui(O)?(e.consume(O),S):r(O)}function S(O){return O===45||hr(O)?(e.consume(O),S):E(O)}function E(O){return Ze(O)?(o=E,H(O)):Nt(O)?(e.consume(O),E):Y(O)}function C(O){return O===45||hr(O)?(e.consume(O),C):O===47||O===62||nr(O)?B(O):r(O)}function B(O){return O===47?(e.consume(O),Y):O===58||O===95||ui(O)?(e.consume(O),I):Ze(O)?(o=B,H(O)):Nt(O)?(e.consume(O),B):Y(O)}function I(O){return O===45||O===46||O===58||O===95||hr(O)?(e.consume(O),I):R(O)}function R(O){return O===61?(e.consume(O),D):Ze(O)?(o=R,H(O)):Nt(O)?(e.consume(O),R):B(O)}function D(O){return O===null||O===60||O===61||O===62||O===96?r(O):O===34||O===39?(e.consume(O),s=O,q):Ze(O)?(o=D,H(O)):Nt(O)?(e.consume(O),D):(e.consume(O),z)}function q(O){return O===s?(e.consume(O),s=void 0,U):O===null?r(O):Ze(O)?(o=q,H(O)):(e.consume(O),q)}function z(O){return O===null||O===34||O===39||O===60||O===61||O===96?r(O):O===47||O===62||nr(O)?B(O):(e.consume(O),z)}function U(O){return O===47||O===62||nr(O)?B(O):r(O)}function Y(O){return O===62?(e.consume(O),e.exit("htmlTextData"),e.exit("htmlText"),n):r(O)}function H(O){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(O),e.exit("lineEnding"),K}function K(O){return Nt(O)?Ft(e,Q,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(O):Q(O)}function Q(O){return e.enter("htmlTextData"),o(O)}}const bb={name:"labelEnd",resolveAll:jX,resolveTo:wX,tokenize:NX},yX={tokenize:kX},vX={tokenize:_X},bX={tokenize:SX};function jX(e){let n=-1;const r=[];for(;++n<e.length;){const i=e[n][1];if(r.push(e[n]),i.type==="labelImage"||i.type==="labelLink"||i.type==="labelEnd"){const s=i.type==="labelImage"?4:2;i.type="data",n+=s}}return e.length!==r.length&&wi(e,0,e.length,r),e}function wX(e,n){let r=e.length,i=0,s,a,o,c;for(;r--;)if(s=e[r][1],a){if(s.type==="link"||s.type==="labelLink"&&s._inactive)break;e[r][0]==="enter"&&s.type==="labelLink"&&(s._inactive=!0)}else if(o){if(e[r][0]==="enter"&&(s.type==="labelImage"||s.type==="labelLink")&&!s._balanced&&(a=r,s.type!=="labelLink")){i=2;break}}else s.type==="labelEnd"&&(o=r);const d={type:e[a][1].type==="labelLink"?"link":"image",start:{...e[a][1].start},end:{...e[e.length-1][1].end}},f={type:"label",start:{...e[a][1].start},end:{...e[o][1].end}},h={type:"labelText",start:{...e[a+i+2][1].end},end:{...e[o-2][1].start}};return c=[["enter",d,n],["enter",f,n]],c=Cr(c,e.slice(a+1,a+i+3)),c=Cr(c,[["enter",h,n]]),c=Cr(c,vb(n.parser.constructs.insideSpan.null,e.slice(a+i+4,o-3),n)),c=Cr(c,[["exit",h,n],e[o-2],e[o-1],["exit",f,n]]),c=Cr(c,e.slice(o+1)),c=Cr(c,[["exit",d,n]]),wi(e,a,e.length,c),e}function NX(e,n,r){const i=this;let s=i.events.length,a,o;for(;s--;)if((i.events[s][1].type==="labelImage"||i.events[s][1].type==="labelLink")&&!i.events[s][1]._balanced){a=i.events[s][1];break}return c;function c(p){return a?a._inactive?m(p):(o=i.parser.defined.includes(Qo(i.sliceSerialize({start:a.end,end:i.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(p),e.exit("labelMarker"),e.exit("labelEnd"),d):r(p)}function d(p){return p===40?e.attempt(yX,h,o?h:m)(p):p===91?e.attempt(vX,h,o?f:m)(p):o?h(p):m(p)}function f(p){return e.attempt(bX,h,m)(p)}function h(p){return n(p)}function m(p){return a._balanced=!0,r(p)}}function kX(e,n,r){return i;function i(m){return e.enter("resource"),e.enter("resourceMarker"),e.consume(m),e.exit("resourceMarker"),s}function s(m){return nr(m)?Kc(e,a)(m):a(m)}function a(m){return m===41?h(m):dP(e,o,c,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(m)}function o(m){return nr(m)?Kc(e,d)(m):h(m)}function c(m){return r(m)}function d(m){return m===34||m===39||m===40?fP(e,f,r,"resourceTitle","resourceTitleMarker","resourceTitleString")(m):h(m)}function f(m){return nr(m)?Kc(e,h)(m):h(m)}function h(m){return m===41?(e.enter("resourceMarker"),e.consume(m),e.exit("resourceMarker"),e.exit("resource"),n):r(m)}}function _X(e,n,r){const i=this;return s;function s(c){return hP.call(i,e,a,o,"reference","referenceMarker","referenceString")(c)}function a(c){return i.parser.defined.includes(Qo(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)))?n(c):r(c)}function o(c){return r(c)}}function SX(e,n,r){return i;function i(a){return e.enter("reference"),e.enter("referenceMarker"),e.consume(a),e.exit("referenceMarker"),s}function s(a){return a===93?(e.enter("referenceMarker"),e.consume(a),e.exit("referenceMarker"),e.exit("reference"),n):r(a)}}const AX={name:"labelStartImage",resolveAll:bb.resolveAll,tokenize:CX};function CX(e,n,r){const i=this;return s;function s(c){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(c),e.exit("labelImageMarker"),a}function a(c){return c===91?(e.enter("labelMarker"),e.consume(c),e.exit("labelMarker"),e.exit("labelImage"),o):r(c)}function o(c){return c===94&&"_hiddenFootnoteSupport"in i.parser.constructs?r(c):n(c)}}const EX={name:"labelStartLink",resolveAll:bb.resolveAll,tokenize:TX};function TX(e,n,r){const i=this;return s;function s(o){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(o),e.exit("labelMarker"),e.exit("labelLink"),a}function a(o){return o===94&&"_hiddenFootnoteSupport"in i.parser.constructs?r(o):n(o)}}const hy={name:"lineEnding",tokenize:PX};function PX(e,n){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),Ft(e,n,"linePrefix")}}const Ih={name:"thematicBreak",tokenize:OX};function OX(e,n,r){let i=0,s;return a;function a(f){return e.enter("thematicBreak"),o(f)}function o(f){return s=f,c(f)}function c(f){return f===s?(e.enter("thematicBreakSequence"),d(f)):i>=3&&(f===null||Ze(f))?(e.exit("thematicBreak"),n(f)):r(f)}function d(f){return f===s?(e.consume(f),i++,d):(e.exit("thematicBreakSequence"),Nt(f)?Ft(e,c,"whitespace")(f):c(f))}}const Yn={continuation:{tokenize:FX},exit:LX,name:"list",tokenize:RX},DX={partial:!0,tokenize:BX},IX={partial:!0,tokenize:MX};function RX(e,n,r){const i=this,s=i.events[i.events.length-1];let a=s&&s[1].type==="linePrefix"?s[2].sliceSerialize(s[1],!0).length:0,o=0;return c;function c(g){const b=i.containerState.type||(g===42||g===43||g===45?"listUnordered":"listOrdered");if(b==="listUnordered"?!i.containerState.marker||g===i.containerState.marker:M0(g)){if(i.containerState.type||(i.containerState.type=b,e.enter(b,{_container:!0})),b==="listUnordered")return e.enter("listItemPrefix"),g===42||g===45?e.check(Ih,r,f)(g):f(g);if(!i.interrupt||g===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),d(g)}return r(g)}function d(g){return M0(g)&&++o<10?(e.consume(g),d):(!i.interrupt||o<2)&&(i.containerState.marker?g===i.containerState.marker:g===41||g===46)?(e.exit("listItemValue"),f(g)):r(g)}function f(g){return e.enter("listItemMarker"),e.consume(g),e.exit("listItemMarker"),i.containerState.marker=i.containerState.marker||g,e.check(zf,i.interrupt?r:h,e.attempt(DX,p,m))}function h(g){return i.containerState.initialBlankLine=!0,a++,p(g)}function m(g){return Nt(g)?(e.enter("listItemPrefixWhitespace"),e.consume(g),e.exit("listItemPrefixWhitespace"),p):r(g)}function p(g){return i.containerState.size=a+i.sliceSerialize(e.exit("listItemPrefix"),!0).length,n(g)}}function FX(e,n,r){const i=this;return i.containerState._closeFlow=void 0,e.check(zf,s,a);function s(c){return i.containerState.furtherBlankLines=i.containerState.furtherBlankLines||i.containerState.initialBlankLine,Ft(e,n,"listItemIndent",i.containerState.size+1)(c)}function a(c){return i.containerState.furtherBlankLines||!Nt(c)?(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,o(c)):(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,e.attempt(IX,n,o)(c))}function o(c){return i.containerState._closeFlow=!0,i.interrupt=void 0,Ft(e,e.attempt(Yn,n,r),"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(c)}}function MX(e,n,r){const i=this;return Ft(e,s,"listItemIndent",i.containerState.size+1);function s(a){const o=i.events[i.events.length-1];return o&&o[1].type==="listItemIndent"&&o[2].sliceSerialize(o[1],!0).length===i.containerState.size?n(a):r(a)}}function LX(e){e.exit(this.containerState.type)}function BX(e,n,r){const i=this;return Ft(e,s,"listItemPrefixWhitespace",i.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function s(a){const o=i.events[i.events.length-1];return!Nt(a)&&o&&o[1].type==="listItemPrefixWhitespace"?n(a):r(a)}}const OS={name:"setextUnderline",resolveTo:qX,tokenize:zX};function qX(e,n){let r=e.length,i,s,a;for(;r--;)if(e[r][0]==="enter"){if(e[r][1].type==="content"){i=r;break}e[r][1].type==="paragraph"&&(s=r)}else e[r][1].type==="content"&&e.splice(r,1),!a&&e[r][1].type==="definition"&&(a=r);const o={type:"setextHeading",start:{...e[i][1].start},end:{...e[e.length-1][1].end}};return e[s][1].type="setextHeadingText",a?(e.splice(s,0,["enter",o,n]),e.splice(a+1,0,["exit",e[i][1],n]),e[i][1].end={...e[a][1].end}):e[i][1]=o,e.push(["exit",o,n]),e}function zX(e,n,r){const i=this;let s;return a;function a(f){let h=i.events.length,m;for(;h--;)if(i.events[h][1].type!=="lineEnding"&&i.events[h][1].type!=="linePrefix"&&i.events[h][1].type!=="content"){m=i.events[h][1].type==="paragraph";break}return!i.parser.lazy[i.now().line]&&(i.interrupt||m)?(e.enter("setextHeadingLine"),s=f,o(f)):r(f)}function o(f){return e.enter("setextHeadingLineSequence"),c(f)}function c(f){return f===s?(e.consume(f),c):(e.exit("setextHeadingLineSequence"),Nt(f)?Ft(e,d,"lineSuffix")(f):d(f))}function d(f){return f===null||Ze(f)?(e.exit("setextHeadingLine"),n(f)):r(f)}}const VX={tokenize:UX};function UX(e){const n=this,r=e.attempt(zf,i,e.attempt(this.parser.constructs.flowInitial,s,Ft(e,e.attempt(this.parser.constructs.flow,s,e.attempt(GY,s)),"linePrefix")));return r;function i(a){if(a===null){e.consume(a);return}return e.enter("lineEndingBlank"),e.consume(a),e.exit("lineEndingBlank"),n.currentConstruct=void 0,r}function s(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),n.currentConstruct=void 0,r}}const $X={resolveAll:pP()},HX=mP("string"),WX=mP("text");function mP(e){return{resolveAll:pP(e==="text"?KX:void 0),tokenize:n};function n(r){const i=this,s=this.parser.constructs[e],a=r.attempt(s,o,c);return o;function o(h){return f(h)?a(h):c(h)}function c(h){if(h===null){r.consume(h);return}return r.enter("data"),r.consume(h),d}function d(h){return f(h)?(r.exit("data"),a(h)):(r.consume(h),d)}function f(h){if(h===null)return!0;const m=s[h];let p=-1;if(m)for(;++p<m.length;){const g=m[p];if(!g.previous||g.previous.call(i,i.previous))return!0}return!1}}}function pP(e){return n;function n(r,i){let s=-1,a;for(;++s<=r.length;)a===void 0?r[s]&&r[s][1].type==="data"&&(a=s,s++):(!r[s]||r[s][1].type!=="data")&&(s!==a+2&&(r[a][1].end=r[s-1][1].end,r.splice(a+2,s-a-2),s=a+2),a=void 0);return e?e(r,i):r}}function KX(e,n){let r=0;for(;++r<=e.length;)if((r===e.length||e[r][1].type==="lineEnding")&&e[r-1][1].type==="data"){const i=e[r-1][1],s=n.sliceStream(i);let a=s.length,o=-1,c=0,d;for(;a--;){const f=s[a];if(typeof f=="string"){for(o=f.length;f.charCodeAt(o-1)===32;)c++,o--;if(o)break;o=-1}else if(f===-2)d=!0,c++;else if(f!==-1){a++;break}}if(n._contentTypeTextTrailing&&r===e.length&&(c=0),c){const f={type:r===e.length||d||c<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:a?o:i.start._bufferIndex+o,_index:i.start._index+a,line:i.end.line,column:i.end.column-c,offset:i.end.offset-c},end:{...i.end}};i.end={...f.start},i.start.offset===i.end.offset?Object.assign(i,f):(e.splice(r,0,["enter",f,n],["exit",f,n]),r+=2)}r++}return e}const GX={42:Yn,43:Yn,45:Yn,48:Yn,49:Yn,50:Yn,51:Yn,52:Yn,53:Yn,54:Yn,55:Yn,56:Yn,57:Yn,62:oP},QX={91:ZY},YX={[-2]:dy,[-1]:dy,32:dy},XX={35:sX,42:Ih,45:[OS,Ih],60:cX,61:OS,95:Ih,96:TS,126:TS},JX={38:cP,92:lP},ZX={[-5]:hy,[-4]:hy,[-3]:hy,33:AX,38:cP,42:L0,60:[EY,gX],91:EX,92:[rX,lP],93:bb,95:L0,96:VY},eJ={null:[L0,$X]},tJ={null:[42,95]},nJ={null:[]},rJ=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:tJ,contentInitial:QX,disable:nJ,document:GX,flow:XX,flowInitial:YX,insideSpan:eJ,string:JX,text:ZX},Symbol.toStringTag,{value:"Module"}));function iJ(e,n,r){let i={_bufferIndex:-1,_index:0,line:r&&r.line||1,column:r&&r.column||1,offset:r&&r.offset||0};const s={},a=[];let o=[],c=[];const d={attempt:E(A),check:E(S),consume:N,enter:w,exit:k,interrupt:E(S,{interrupt:!0})},f={code:null,containerState:{},defineSkip:j,events:[],now:b,parser:e,previous:null,sliceSerialize:p,sliceStream:g,write:m};let h=n.tokenize.call(f,d);return n.resolveAll&&a.push(n),f;function m(R){return o=Cr(o,R),y(),o[o.length-1]!==null?[]:(C(n,0),f.events=vb(a,f.events,f),f.events)}function p(R,D){return aJ(g(R),D)}function g(R){return sJ(o,R)}function b(){const{_bufferIndex:R,_index:D,line:q,column:z,offset:U}=i;return{_bufferIndex:R,_index:D,line:q,column:z,offset:U}}function j(R){s[R.line]=R.column,I()}function y(){let R;for(;i._index<o.length;){const D=o[i._index];if(typeof D=="string")for(R=i._index,i._bufferIndex<0&&(i._bufferIndex=0);i._index===R&&i._bufferIndex<D.length;)x(D.charCodeAt(i._bufferIndex));else x(D)}}function x(R){h=h(R)}function N(R){Ze(R)?(i.line++,i.column=1,i.offset+=R===-3?2:1,I()):R!==-1&&(i.column++,i.offset++),i._bufferIndex<0?i._index++:(i._bufferIndex++,i._bufferIndex===o[i._index].length&&(i._bufferIndex=-1,i._index++)),f.previous=R}function w(R,D){const q=D||{};return q.type=R,q.start=b(),f.events.push(["enter",q,f]),c.push(q),q}function k(R){const D=c.pop();return D.end=b(),f.events.push(["exit",D,f]),D}function A(R,D){C(R,D.from)}function S(R,D){D.restore()}function E(R,D){return q;function q(z,U,Y){let H,K,Q,O;return Array.isArray(z)?V(z):"tokenize"in z?V([z]):T(z);function T(W){return G;function G(te){const re=te!==null&&W[te],le=te!==null&&W.null,ye=[...Array.isArray(re)?re:re?[re]:[],...Array.isArray(le)?le:le?[le]:[]];return V(ye)(te)}}function V(W){return H=W,K=0,W.length===0?Y:L(W[K])}function L(W){return G;function G(te){return O=B(),Q=W,W.partial||(f.currentConstruct=W),W.name&&f.parser.constructs.disable.null.includes(W.name)?J():W.tokenize.call(D?Object.assign(Object.create(f),D):f,d,X,J)(te)}}function X(W){return R(Q,O),U}function J(W){return O.restore(),++K<H.length?L(H[K]):Y}}}function C(R,D){R.resolveAll&&!a.includes(R)&&a.push(R),R.resolve&&wi(f.events,D,f.events.length-D,R.resolve(f.events.slice(D),f)),R.resolveTo&&(f.events=R.resolveTo(f.events,f))}function B(){const R=b(),D=f.previous,q=f.currentConstruct,z=f.events.length,U=Array.from(c);return{from:z,restore:Y};function Y(){i=R,f.previous=D,f.currentConstruct=q,f.events.length=z,c=U,I()}}function I(){i.line in s&&i.column<2&&(i.column=s[i.line],i.offset+=s[i.line]-1)}}function sJ(e,n){const r=n.start._index,i=n.start._bufferIndex,s=n.end._index,a=n.end._bufferIndex;let o;if(r===s)o=[e[r].slice(i,a)];else{if(o=e.slice(r,s),i>-1){const c=o[0];typeof c=="string"?o[0]=c.slice(i):o.shift()}a>0&&o.push(e[s].slice(0,a))}return o}function aJ(e,n){let r=-1;const i=[];let s;for(;++r<e.length;){const a=e[r];let o;if(typeof a=="string")o=a;else switch(a){case-5:{o="\r";break}case-4:{o=`
`;break}case-3:{o=`\r
`;break}case-2:{o=n?" ":"	";break}case-1:{if(!n&&s)continue;o=" ";break}default:o=String.fromCharCode(a)}s=a===-2,i.push(o)}return i.join("")}function oJ(e){const i={constructs:mY([rJ,...(e||{}).extensions||[]]),content:s(wY),defined:[],document:s(kY),flow:s(VX),lazy:{},string:s(HX),text:s(WX)};return i;function s(a){return o;function o(c){return iJ(i,a,c)}}}function lJ(e){for(;!uP(e););return e}const DS=/[\0\t\n\r]/g;function cJ(){let e=1,n="",r=!0,i;return s;function s(a,o,c){const d=[];let f,h,m,p,g;for(a=n+(typeof a=="string"?a.toString():new TextDecoder(o||void 0).decode(a)),m=0,n="",r&&(a.charCodeAt(0)===65279&&m++,r=void 0);m<a.length;){if(DS.lastIndex=m,f=DS.exec(a),p=f&&f.index!==void 0?f.index:a.length,g=a.charCodeAt(p),!f){n=a.slice(m);break}if(g===10&&m===p&&i)d.push(-3),i=void 0;else switch(i&&(d.push(-5),i=void 0),m<p&&(d.push(a.slice(m,p)),e+=p-m),g){case 0:{d.push(65533),e++;break}case 9:{for(h=Math.ceil(e/4)*4,d.push(-2);e++<h;)d.push(-1);break}case 10:{d.push(-4),e=1;break}default:i=!0,e=1}m=p+1}return c&&(i&&d.push(-5),n&&d.push(n),d.push(null)),d}}const uJ=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function dJ(e){return e.replace(uJ,hJ)}function hJ(e,n,r){if(n)return n;if(r.charCodeAt(0)===35){const s=r.charCodeAt(1),a=s===120||s===88;return aP(r.slice(a?2:1),a?16:10)}return yb(r)||e}const gP={}.hasOwnProperty;function fJ(e,n,r){return typeof n!="string"&&(r=n,n=void 0),mJ(r)(lJ(oJ(r).document().write(cJ()(e,n,!0))))}function mJ(e){const n={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:a(ve),autolinkProtocol:B,autolinkEmail:B,atxHeading:a(We),blockQuote:a(le),characterEscape:B,characterReference:B,codeFenced:a(ye),codeFencedFenceInfo:o,codeFencedFenceMeta:o,codeIndented:a(ye,o),codeText:a(be,o),codeTextData:B,data:B,codeFlowValue:B,definition:a(Pe),definitionDestinationString:o,definitionLabelString:o,definitionTitleString:o,emphasis:a(Te),hardBreakEscape:a(ut),hardBreakTrailing:a(ut),htmlFlow:a(nt,o),htmlFlowData:B,htmlText:a(nt,o),htmlTextData:B,image:a(ge),label:o,link:a(ve),listItem:a(Oe),listItemValue:p,listOrdered:a(Se,m),listUnordered:a(Se),paragraph:a(je),reference:L,referenceString:o,resourceDestinationString:o,resourceTitleString:o,setextHeading:a(We),strong:a(tt),thematicBreak:a(rt)},exit:{atxHeading:d(),atxHeadingSequence:A,autolink:d(),autolinkEmail:re,autolinkProtocol:te,blockQuote:d(),characterEscapeValue:I,characterReferenceMarkerHexadecimal:J,characterReferenceMarkerNumeric:J,characterReferenceValue:W,characterReference:G,codeFenced:d(y),codeFencedFence:j,codeFencedFenceInfo:g,codeFencedFenceMeta:b,codeFlowValue:I,codeIndented:d(x),codeText:d(U),codeTextData:I,data:I,definition:d(),definitionDestinationString:k,definitionLabelString:N,definitionTitleString:w,emphasis:d(),hardBreakEscape:d(D),hardBreakTrailing:d(D),htmlFlow:d(q),htmlFlowData:I,htmlText:d(z),htmlTextData:I,image:d(H),label:Q,labelText:K,lineEnding:R,link:d(Y),listItem:d(),listOrdered:d(),listUnordered:d(),paragraph:d(),referenceString:X,resourceDestinationString:O,resourceTitleString:T,resource:V,setextHeading:d(C),setextHeadingLineSequence:E,setextHeadingText:S,strong:d(),thematicBreak:d()}};xP(n,(e||{}).mdastExtensions||[]);const r={};return i;function i(xe){let _e={type:"root",children:[]};const De={stack:[_e],tokenStack:[],config:n,enter:c,exit:f,buffer:o,resume:h,data:r},it=[];let $e=-1;for(;++$e<xe.length;)if(xe[$e][1].type==="listOrdered"||xe[$e][1].type==="listUnordered")if(xe[$e][0]==="enter")it.push($e);else{const kt=it.pop();$e=s(xe,kt,$e)}for($e=-1;++$e<xe.length;){const kt=n[xe[$e][0]];gP.call(kt,xe[$e][1].type)&&kt[xe[$e][1].type].call(Object.assign({sliceSerialize:xe[$e][2].sliceSerialize},De),xe[$e][1])}if(De.tokenStack.length>0){const kt=De.tokenStack[De.tokenStack.length-1];(kt[1]||IS).call(De,void 0,kt[0])}for(_e.position={start:Ns(xe.length>0?xe[0][1].start:{line:1,column:1,offset:0}),end:Ns(xe.length>0?xe[xe.length-2][1].end:{line:1,column:1,offset:0})},$e=-1;++$e<n.transforms.length;)_e=n.transforms[$e](_e)||_e;return _e}function s(xe,_e,De){let it=_e-1,$e=-1,kt=!1,Er,Vn,ts,ra;for(;++it<=De;){const vn=xe[it];switch(vn[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{vn[0]==="enter"?$e++:$e--,ra=void 0;break}case"lineEndingBlank":{vn[0]==="enter"&&(Er&&!ra&&!$e&&!ts&&(ts=it),ra=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:ra=void 0}if(!$e&&vn[0]==="enter"&&vn[1].type==="listItemPrefix"||$e===-1&&vn[0]==="exit"&&(vn[1].type==="listUnordered"||vn[1].type==="listOrdered")){if(Er){let Qr=it;for(Vn=void 0;Qr--;){const ir=xe[Qr];if(ir[1].type==="lineEnding"||ir[1].type==="lineEndingBlank"){if(ir[0]==="exit")continue;Vn&&(xe[Vn][1].type="lineEndingBlank",kt=!0),ir[1].type="lineEnding",Vn=Qr}else if(!(ir[1].type==="linePrefix"||ir[1].type==="blockQuotePrefix"||ir[1].type==="blockQuotePrefixWhitespace"||ir[1].type==="blockQuoteMarker"||ir[1].type==="listItemIndent"))break}ts&&(!Vn||ts<Vn)&&(Er._spread=!0),Er.end=Object.assign({},Vn?xe[Vn][1].start:vn[1].end),xe.splice(Vn||it,0,["exit",Er,vn[2]]),it++,De++}if(vn[1].type==="listItemPrefix"){const Qr={type:"listItem",_spread:!1,start:Object.assign({},vn[1].start),end:void 0};Er=Qr,xe.splice(it,0,["enter",Qr,vn[2]]),it++,De++,ts=void 0,ra=!0}}}return xe[_e][1]._spread=kt,De}function a(xe,_e){return De;function De(it){c.call(this,xe(it),it),_e&&_e.call(this,it)}}function o(){this.stack.push({type:"fragment",children:[]})}function c(xe,_e,De){this.stack[this.stack.length-1].children.push(xe),this.stack.push(xe),this.tokenStack.push([_e,De||void 0]),xe.position={start:Ns(_e.start),end:void 0}}function d(xe){return _e;function _e(De){xe&&xe.call(this,De),f.call(this,De)}}function f(xe,_e){const De=this.stack.pop(),it=this.tokenStack.pop();if(it)it[0].type!==xe.type&&(_e?_e.call(this,xe,it[0]):(it[1]||IS).call(this,xe,it[0]));else throw new Error("Cannot close `"+xe.type+"` ("+Wc({start:xe.start,end:xe.end})+"): it’s not open");De.position.end=Ns(xe.end)}function h(){return hY(this.stack.pop())}function m(){this.data.expectingFirstListItemValue=!0}function p(xe){if(this.data.expectingFirstListItemValue){const _e=this.stack[this.stack.length-2];_e.start=Number.parseInt(this.sliceSerialize(xe),10),this.data.expectingFirstListItemValue=void 0}}function g(){const xe=this.resume(),_e=this.stack[this.stack.length-1];_e.lang=xe}function b(){const xe=this.resume(),_e=this.stack[this.stack.length-1];_e.meta=xe}function j(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function y(){const xe=this.resume(),_e=this.stack[this.stack.length-1];_e.value=xe.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function x(){const xe=this.resume(),_e=this.stack[this.stack.length-1];_e.value=xe.replace(/(\r?\n|\r)$/g,"")}function N(xe){const _e=this.resume(),De=this.stack[this.stack.length-1];De.label=_e,De.identifier=Qo(this.sliceSerialize(xe)).toLowerCase()}function w(){const xe=this.resume(),_e=this.stack[this.stack.length-1];_e.title=xe}function k(){const xe=this.resume(),_e=this.stack[this.stack.length-1];_e.url=xe}function A(xe){const _e=this.stack[this.stack.length-1];if(!_e.depth){const De=this.sliceSerialize(xe).length;_e.depth=De}}function S(){this.data.setextHeadingSlurpLineEnding=!0}function E(xe){const _e=this.stack[this.stack.length-1];_e.depth=this.sliceSerialize(xe).codePointAt(0)===61?1:2}function C(){this.data.setextHeadingSlurpLineEnding=void 0}function B(xe){const De=this.stack[this.stack.length-1].children;let it=De[De.length-1];(!it||it.type!=="text")&&(it=et(),it.position={start:Ns(xe.start),end:void 0},De.push(it)),this.stack.push(it)}function I(xe){const _e=this.stack.pop();_e.value+=this.sliceSerialize(xe),_e.position.end=Ns(xe.end)}function R(xe){const _e=this.stack[this.stack.length-1];if(this.data.atHardBreak){const De=_e.children[_e.children.length-1];De.position.end=Ns(xe.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&n.canContainEols.includes(_e.type)&&(B.call(this,xe),I.call(this,xe))}function D(){this.data.atHardBreak=!0}function q(){const xe=this.resume(),_e=this.stack[this.stack.length-1];_e.value=xe}function z(){const xe=this.resume(),_e=this.stack[this.stack.length-1];_e.value=xe}function U(){const xe=this.resume(),_e=this.stack[this.stack.length-1];_e.value=xe}function Y(){const xe=this.stack[this.stack.length-1];if(this.data.inReference){const _e=this.data.referenceType||"shortcut";xe.type+="Reference",xe.referenceType=_e,delete xe.url,delete xe.title}else delete xe.identifier,delete xe.label;this.data.referenceType=void 0}function H(){const xe=this.stack[this.stack.length-1];if(this.data.inReference){const _e=this.data.referenceType||"shortcut";xe.type+="Reference",xe.referenceType=_e,delete xe.url,delete xe.title}else delete xe.identifier,delete xe.label;this.data.referenceType=void 0}function K(xe){const _e=this.sliceSerialize(xe),De=this.stack[this.stack.length-2];De.label=dJ(_e),De.identifier=Qo(_e).toLowerCase()}function Q(){const xe=this.stack[this.stack.length-1],_e=this.resume(),De=this.stack[this.stack.length-1];if(this.data.inReference=!0,De.type==="link"){const it=xe.children;De.children=it}else De.alt=_e}function O(){const xe=this.resume(),_e=this.stack[this.stack.length-1];_e.url=xe}function T(){const xe=this.resume(),_e=this.stack[this.stack.length-1];_e.title=xe}function V(){this.data.inReference=void 0}function L(){this.data.referenceType="collapsed"}function X(xe){const _e=this.resume(),De=this.stack[this.stack.length-1];De.label=_e,De.identifier=Qo(this.sliceSerialize(xe)).toLowerCase(),this.data.referenceType="full"}function J(xe){this.data.characterReferenceType=xe.type}function W(xe){const _e=this.sliceSerialize(xe),De=this.data.characterReferenceType;let it;De?(it=aP(_e,De==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):it=yb(_e);const $e=this.stack[this.stack.length-1];$e.value+=it}function G(xe){const _e=this.stack.pop();_e.position.end=Ns(xe.end)}function te(xe){I.call(this,xe);const _e=this.stack[this.stack.length-1];_e.url=this.sliceSerialize(xe)}function re(xe){I.call(this,xe);const _e=this.stack[this.stack.length-1];_e.url="mailto:"+this.sliceSerialize(xe)}function le(){return{type:"blockquote",children:[]}}function ye(){return{type:"code",lang:null,meta:null,value:""}}function be(){return{type:"inlineCode",value:""}}function Pe(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Te(){return{type:"emphasis",children:[]}}function We(){return{type:"heading",depth:0,children:[]}}function ut(){return{type:"break"}}function nt(){return{type:"html",value:""}}function ge(){return{type:"image",title:null,url:"",alt:null}}function ve(){return{type:"link",title:null,url:"",children:[]}}function Se(xe){return{type:"list",ordered:xe.type==="listOrdered",start:null,spread:xe._spread,children:[]}}function Oe(xe){return{type:"listItem",spread:xe._spread,checked:null,children:[]}}function je(){return{type:"paragraph",children:[]}}function tt(){return{type:"strong",children:[]}}function et(){return{type:"text",value:""}}function rt(){return{type:"thematicBreak"}}}function Ns(e){return{line:e.line,column:e.column,offset:e.offset}}function xP(e,n){let r=-1;for(;++r<n.length;){const i=n[r];Array.isArray(i)?xP(e,i):pJ(e,i)}}function pJ(e,n){let r;for(r in n)if(gP.call(n,r))switch(r){case"canContainEols":{const i=n[r];i&&e[r].push(...i);break}case"transforms":{const i=n[r];i&&e[r].push(...i);break}case"enter":case"exit":{const i=n[r];i&&Object.assign(e[r],i);break}}}function IS(e,n){throw e?new Error("Cannot close `"+e.type+"` ("+Wc({start:e.start,end:e.end})+"): a different token (`"+n.type+"`, "+Wc({start:n.start,end:n.end})+") is open"):new Error("Cannot close document, a token (`"+n.type+"`, "+Wc({start:n.start,end:n.end})+") is still open")}function gJ(e){const n=this;n.parser=r;function r(i){return fJ(i,{...n.data("settings"),...e,extensions:n.data("micromarkExtensions")||[],mdastExtensions:n.data("fromMarkdownExtensions")||[]})}}function xJ(e,n){const r={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(n),!0)};return e.patch(n,r),e.applyData(n,r)}function yJ(e,n){const r={type:"element",tagName:"br",properties:{},children:[]};return e.patch(n,r),[e.applyData(n,r),{type:"text",value:`
`}]}function vJ(e,n){const r=n.value?n.value+`
`:"",i={};n.lang&&(i.className=["language-"+n.lang]);let s={type:"element",tagName:"code",properties:i,children:[{type:"text",value:r}]};return n.meta&&(s.data={meta:n.meta}),e.patch(n,s),s=e.applyData(n,s),s={type:"element",tagName:"pre",properties:{},children:[s]},e.patch(n,s),s}function bJ(e,n){const r={type:"element",tagName:"del",properties:{},children:e.all(n)};return e.patch(n,r),e.applyData(n,r)}function jJ(e,n){const r={type:"element",tagName:"em",properties:{},children:e.all(n)};return e.patch(n,r),e.applyData(n,r)}function wJ(e,n){const r=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",i=String(n.identifier).toUpperCase(),s=Pl(i.toLowerCase()),a=e.footnoteOrder.indexOf(i);let o,c=e.footnoteCounts.get(i);c===void 0?(c=0,e.footnoteOrder.push(i),o=e.footnoteOrder.length):o=a+1,c+=1,e.footnoteCounts.set(i,c);const d={type:"element",tagName:"a",properties:{href:"#"+r+"fn-"+s,id:r+"fnref-"+s+(c>1?"-"+c:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(o)}]};e.patch(n,d);const f={type:"element",tagName:"sup",properties:{},children:[d]};return e.patch(n,f),e.applyData(n,f)}function NJ(e,n){const r={type:"element",tagName:"h"+n.depth,properties:{},children:e.all(n)};return e.patch(n,r),e.applyData(n,r)}function kJ(e,n){if(e.options.allowDangerousHtml){const r={type:"raw",value:n.value};return e.patch(n,r),e.applyData(n,r)}}function yP(e,n){const r=n.referenceType;let i="]";if(r==="collapsed"?i+="[]":r==="full"&&(i+="["+(n.label||n.identifier)+"]"),n.type==="imageReference")return[{type:"text",value:"!["+n.alt+i}];const s=e.all(n),a=s[0];a&&a.type==="text"?a.value="["+a.value:s.unshift({type:"text",value:"["});const o=s[s.length-1];return o&&o.type==="text"?o.value+=i:s.push({type:"text",value:i}),s}function _J(e,n){const r=String(n.identifier).toUpperCase(),i=e.definitionById.get(r);if(!i)return yP(e,n);const s={src:Pl(i.url||""),alt:n.alt};i.title!==null&&i.title!==void 0&&(s.title=i.title);const a={type:"element",tagName:"img",properties:s,children:[]};return e.patch(n,a),e.applyData(n,a)}function SJ(e,n){const r={src:Pl(n.url)};n.alt!==null&&n.alt!==void 0&&(r.alt=n.alt),n.title!==null&&n.title!==void 0&&(r.title=n.title);const i={type:"element",tagName:"img",properties:r,children:[]};return e.patch(n,i),e.applyData(n,i)}function AJ(e,n){const r={type:"text",value:n.value.replace(/\r?\n|\r/g," ")};e.patch(n,r);const i={type:"element",tagName:"code",properties:{},children:[r]};return e.patch(n,i),e.applyData(n,i)}function CJ(e,n){const r=String(n.identifier).toUpperCase(),i=e.definitionById.get(r);if(!i)return yP(e,n);const s={href:Pl(i.url||"")};i.title!==null&&i.title!==void 0&&(s.title=i.title);const a={type:"element",tagName:"a",properties:s,children:e.all(n)};return e.patch(n,a),e.applyData(n,a)}function EJ(e,n){const r={href:Pl(n.url)};n.title!==null&&n.title!==void 0&&(r.title=n.title);const i={type:"element",tagName:"a",properties:r,children:e.all(n)};return e.patch(n,i),e.applyData(n,i)}function TJ(e,n,r){const i=e.all(n),s=r?PJ(r):vP(n),a={},o=[];if(typeof n.checked=="boolean"){const h=i[0];let m;h&&h.type==="element"&&h.tagName==="p"?m=h:(m={type:"element",tagName:"p",properties:{},children:[]},i.unshift(m)),m.children.length>0&&m.children.unshift({type:"text",value:" "}),m.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:n.checked,disabled:!0},children:[]}),a.className=["task-list-item"]}let c=-1;for(;++c<i.length;){const h=i[c];(s||c!==0||h.type!=="element"||h.tagName!=="p")&&o.push({type:"text",value:`
`}),h.type==="element"&&h.tagName==="p"&&!s?o.push(...h.children):o.push(h)}const d=i[i.length-1];d&&(s||d.type!=="element"||d.tagName!=="p")&&o.push({type:"text",value:`
`});const f={type:"element",tagName:"li",properties:a,children:o};return e.patch(n,f),e.applyData(n,f)}function PJ(e){let n=!1;if(e.type==="list"){n=e.spread||!1;const r=e.children;let i=-1;for(;!n&&++i<r.length;)n=vP(r[i])}return n}function vP(e){const n=e.spread;return n??e.children.length>1}function OJ(e,n){const r={},i=e.all(n);let s=-1;for(typeof n.start=="number"&&n.start!==1&&(r.start=n.start);++s<i.length;){const o=i[s];if(o.type==="element"&&o.tagName==="li"&&o.properties&&Array.isArray(o.properties.className)&&o.properties.className.includes("task-list-item")){r.className=["contains-task-list"];break}}const a={type:"element",tagName:n.ordered?"ol":"ul",properties:r,children:e.wrap(i,!0)};return e.patch(n,a),e.applyData(n,a)}function DJ(e,n){const r={type:"element",tagName:"p",properties:{},children:e.all(n)};return e.patch(n,r),e.applyData(n,r)}function IJ(e,n){const r={type:"root",children:e.wrap(e.all(n))};return e.patch(n,r),e.applyData(n,r)}function RJ(e,n){const r={type:"element",tagName:"strong",properties:{},children:e.all(n)};return e.patch(n,r),e.applyData(n,r)}function FJ(e,n){const r=e.all(n),i=r.shift(),s=[];if(i){const o={type:"element",tagName:"thead",properties:{},children:e.wrap([i],!0)};e.patch(n.children[0],o),s.push(o)}if(r.length>0){const o={type:"element",tagName:"tbody",properties:{},children:e.wrap(r,!0)},c=mb(n.children[1]),d=Z6(n.children[n.children.length-1]);c&&d&&(o.position={start:c,end:d}),s.push(o)}const a={type:"element",tagName:"table",properties:{},children:e.wrap(s,!0)};return e.patch(n,a),e.applyData(n,a)}function MJ(e,n,r){const i=r?r.children:void 0,a=(i?i.indexOf(n):1)===0?"th":"td",o=r&&r.type==="table"?r.align:void 0,c=o?o.length:n.children.length;let d=-1;const f=[];for(;++d<c;){const m=n.children[d],p={},g=o?o[d]:void 0;g&&(p.align=g);let b={type:"element",tagName:a,properties:p,children:[]};m&&(b.children=e.all(m),e.patch(m,b),b=e.applyData(m,b)),f.push(b)}const h={type:"element",tagName:"tr",properties:{},children:e.wrap(f,!0)};return e.patch(n,h),e.applyData(n,h)}function LJ(e,n){const r={type:"element",tagName:"td",properties:{},children:e.all(n)};return e.patch(n,r),e.applyData(n,r)}const RS=9,FS=32;function BJ(e){const n=String(e),r=/\r?\n|\r/g;let i=r.exec(n),s=0;const a=[];for(;i;)a.push(MS(n.slice(s,i.index),s>0,!0),i[0]),s=i.index+i[0].length,i=r.exec(n);return a.push(MS(n.slice(s),s>0,!1)),a.join("")}function MS(e,n,r){let i=0,s=e.length;if(n){let a=e.codePointAt(i);for(;a===RS||a===FS;)i++,a=e.codePointAt(i)}if(r){let a=e.codePointAt(s-1);for(;a===RS||a===FS;)s--,a=e.codePointAt(s-1)}return s>i?e.slice(i,s):""}function qJ(e,n){const r={type:"text",value:BJ(String(n.value))};return e.patch(n,r),e.applyData(n,r)}function zJ(e,n){const r={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(n,r),e.applyData(n,r)}const VJ={blockquote:xJ,break:yJ,code:vJ,delete:bJ,emphasis:jJ,footnoteReference:wJ,heading:NJ,html:kJ,imageReference:_J,image:SJ,inlineCode:AJ,linkReference:CJ,link:EJ,listItem:TJ,list:OJ,paragraph:DJ,root:IJ,strong:RJ,table:FJ,tableCell:LJ,tableRow:MJ,text:qJ,thematicBreak:zJ,toml:uh,yaml:uh,definition:uh,footnoteDefinition:uh};function uh(){}const bP=-1,Vf=0,Gc=1,tf=2,jb=3,wb=4,Nb=5,kb=6,jP=7,wP=8,LS=typeof self=="object"?self:globalThis,UJ=(e,n)=>{const r=(s,a)=>(e.set(a,s),s),i=s=>{if(e.has(s))return e.get(s);const[a,o]=n[s];switch(a){case Vf:case bP:return r(o,s);case Gc:{const c=r([],s);for(const d of o)c.push(i(d));return c}case tf:{const c=r({},s);for(const[d,f]of o)c[i(d)]=i(f);return c}case jb:return r(new Date(o),s);case wb:{const{source:c,flags:d}=o;return r(new RegExp(c,d),s)}case Nb:{const c=r(new Map,s);for(const[d,f]of o)c.set(i(d),i(f));return c}case kb:{const c=r(new Set,s);for(const d of o)c.add(i(d));return c}case jP:{const{name:c,message:d}=o;return r(new LS[c](d),s)}case wP:return r(BigInt(o),s);case"BigInt":return r(Object(BigInt(o)),s);case"ArrayBuffer":return r(new Uint8Array(o).buffer,o);case"DataView":{const{buffer:c}=new Uint8Array(o);return r(new DataView(c),o)}}return r(new LS[a](o),s)};return i},BS=e=>UJ(new Map,e)(0),Io="",{toString:$J}={},{keys:HJ}=Object,Ac=e=>{const n=typeof e;if(n!=="object"||!e)return[Vf,n];const r=$J.call(e).slice(8,-1);switch(r){case"Array":return[Gc,Io];case"Object":return[tf,Io];case"Date":return[jb,Io];case"RegExp":return[wb,Io];case"Map":return[Nb,Io];case"Set":return[kb,Io];case"DataView":return[Gc,r]}return r.includes("Array")?[Gc,r]:r.includes("Error")?[jP,r]:[tf,r]},dh=([e,n])=>e===Vf&&(n==="function"||n==="symbol"),WJ=(e,n,r,i)=>{const s=(o,c)=>{const d=i.push(o)-1;return r.set(c,d),d},a=o=>{if(r.has(o))return r.get(o);let[c,d]=Ac(o);switch(c){case Vf:{let h=o;switch(d){case"bigint":c=wP,h=o.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+d);h=null;break;case"undefined":return s([bP],o)}return s([c,h],o)}case Gc:{if(d){let p=o;return d==="DataView"?p=new Uint8Array(o.buffer):d==="ArrayBuffer"&&(p=new Uint8Array(o)),s([d,[...p]],o)}const h=[],m=s([c,h],o);for(const p of o)h.push(a(p));return m}case tf:{if(d)switch(d){case"BigInt":return s([d,o.toString()],o);case"Boolean":case"Number":case"String":return s([d,o.valueOf()],o)}if(n&&"toJSON"in o)return a(o.toJSON());const h=[],m=s([c,h],o);for(const p of HJ(o))(e||!dh(Ac(o[p])))&&h.push([a(p),a(o[p])]);return m}case jb:return s([c,o.toISOString()],o);case wb:{const{source:h,flags:m}=o;return s([c,{source:h,flags:m}],o)}case Nb:{const h=[],m=s([c,h],o);for(const[p,g]of o)(e||!(dh(Ac(p))||dh(Ac(g))))&&h.push([a(p),a(g)]);return m}case kb:{const h=[],m=s([c,h],o);for(const p of o)(e||!dh(Ac(p)))&&h.push(a(p));return m}}const{message:f}=o;return s([c,{name:d,message:f}],o)};return a},qS=(e,{json:n,lossy:r}={})=>{const i=[];return WJ(!(n||r),!!n,new Map,i)(e),i},nf=typeof structuredClone=="function"?(e,n)=>n&&("json"in n||"lossy"in n)?BS(qS(e,n)):structuredClone(e):(e,n)=>BS(qS(e,n));function KJ(e,n){const r=[{type:"text",value:"↩"}];return n>1&&r.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(n)}]}),r}function GJ(e,n){return"Back to reference "+(e+1)+(n>1?"-"+n:"")}function QJ(e){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=e.options.footnoteBackContent||KJ,i=e.options.footnoteBackLabel||GJ,s=e.options.footnoteLabel||"Footnotes",a=e.options.footnoteLabelTagName||"h2",o=e.options.footnoteLabelProperties||{className:["sr-only"]},c=[];let d=-1;for(;++d<e.footnoteOrder.length;){const f=e.footnoteById.get(e.footnoteOrder[d]);if(!f)continue;const h=e.all(f),m=String(f.identifier).toUpperCase(),p=Pl(m.toLowerCase());let g=0;const b=[],j=e.footnoteCounts.get(m);for(;j!==void 0&&++g<=j;){b.length>0&&b.push({type:"text",value:" "});let N=typeof r=="string"?r:r(d,g);typeof N=="string"&&(N={type:"text",value:N}),b.push({type:"element",tagName:"a",properties:{href:"#"+n+"fnref-"+p+(g>1?"-"+g:""),dataFootnoteBackref:"",ariaLabel:typeof i=="string"?i:i(d,g),className:["data-footnote-backref"]},children:Array.isArray(N)?N:[N]})}const y=h[h.length-1];if(y&&y.type==="element"&&y.tagName==="p"){const N=y.children[y.children.length-1];N&&N.type==="text"?N.value+=" ":y.children.push({type:"text",value:" "}),y.children.push(...b)}else h.push(...b);const x={type:"element",tagName:"li",properties:{id:n+"fn-"+p},children:e.wrap(h,!0)};e.patch(f,x),c.push(x)}if(c.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:a,properties:{...nf(o),id:"footnote-label"},children:[{type:"text",value:s}]},{type:"text",value:`
`},{type:"element",tagName:"ol",properties:{},children:e.wrap(c,!0)},{type:"text",value:`
`}]}}const NP=(function(e){if(e==null)return ZJ;if(typeof e=="function")return Uf(e);if(typeof e=="object")return Array.isArray(e)?YJ(e):XJ(e);if(typeof e=="string")return JJ(e);throw new Error("Expected function, string, or object as test")});function YJ(e){const n=[];let r=-1;for(;++r<e.length;)n[r]=NP(e[r]);return Uf(i);function i(...s){let a=-1;for(;++a<n.length;)if(n[a].apply(this,s))return!0;return!1}}function XJ(e){const n=e;return Uf(r);function r(i){const s=i;let a;for(a in e)if(s[a]!==n[a])return!1;return!0}}function JJ(e){return Uf(n);function n(r){return r&&r.type===e}}function Uf(e){return n;function n(r,i,s){return!!(eZ(r)&&e.call(this,r,typeof i=="number"?i:void 0,s||void 0))}}function ZJ(){return!0}function eZ(e){return e!==null&&typeof e=="object"&&"type"in e}const kP=[],tZ=!0,zS=!1,nZ="skip";function rZ(e,n,r,i){let s;typeof n=="function"&&typeof r!="function"?(i=r,r=n):s=n;const a=NP(s),o=i?-1:1;c(e,void 0,[])();function c(d,f,h){const m=d&&typeof d=="object"?d:{};if(typeof m.type=="string"){const g=typeof m.tagName=="string"?m.tagName:typeof m.name=="string"?m.name:void 0;Object.defineProperty(p,"name",{value:"node ("+(d.type+(g?"<"+g+">":""))+")"})}return p;function p(){let g=kP,b,j,y;if((!n||a(d,f,h[h.length-1]||void 0))&&(g=iZ(r(d,h)),g[0]===zS))return g;if("children"in d&&d.children){const x=d;if(x.children&&g[0]!==nZ)for(j=(i?x.children.length:-1)+o,y=h.concat(x);j>-1&&j<x.children.length;){const N=x.children[j];if(b=c(N,j,y)(),b[0]===zS)return b;j=typeof b[1]=="number"?b[1]:j+o}}return g}}}function iZ(e){return Array.isArray(e)?e:typeof e=="number"?[tZ,e]:e==null?kP:[e]}function _P(e,n,r,i){let s,a,o;typeof n=="function"&&typeof r!="function"?(a=void 0,o=n,s=r):(a=n,o=r,s=i),rZ(e,a,c,s);function c(d,f){const h=f[f.length-1],m=h?h.children.indexOf(d):void 0;return o(d,m,h)}}const B0={}.hasOwnProperty,sZ={};function aZ(e,n){const r=n||sZ,i=new Map,s=new Map,a=new Map,o={...VJ,...r.handlers},c={all:f,applyData:lZ,definitionById:i,footnoteById:s,footnoteCounts:a,footnoteOrder:[],handlers:o,one:d,options:r,patch:oZ,wrap:uZ};return _P(e,function(h){if(h.type==="definition"||h.type==="footnoteDefinition"){const m=h.type==="definition"?i:s,p=String(h.identifier).toUpperCase();m.has(p)||m.set(p,h)}}),c;function d(h,m){const p=h.type,g=c.handlers[p];if(B0.call(c.handlers,p)&&g)return g(c,h,m);if(c.options.passThrough&&c.options.passThrough.includes(p)){if("children"in h){const{children:j,...y}=h,x=nf(y);return x.children=c.all(h),x}return nf(h)}return(c.options.unknownHandler||cZ)(c,h,m)}function f(h){const m=[];if("children"in h){const p=h.children;let g=-1;for(;++g<p.length;){const b=c.one(p[g],h);if(b){if(g&&p[g-1].type==="break"&&(!Array.isArray(b)&&b.type==="text"&&(b.value=VS(b.value)),!Array.isArray(b)&&b.type==="element")){const j=b.children[0];j&&j.type==="text"&&(j.value=VS(j.value))}Array.isArray(b)?m.push(...b):m.push(b)}}}return m}}function oZ(e,n){e.position&&(n.position=$Q(e))}function lZ(e,n){let r=n;if(e&&e.data){const i=e.data.hName,s=e.data.hChildren,a=e.data.hProperties;if(typeof i=="string")if(r.type==="element")r.tagName=i;else{const o="children"in r?r.children:[r];r={type:"element",tagName:i,properties:{},children:o}}r.type==="element"&&a&&Object.assign(r.properties,nf(a)),"children"in r&&r.children&&s!==null&&s!==void 0&&(r.children=s)}return r}function cZ(e,n){const r=n.data||{},i="value"in n&&!(B0.call(r,"hProperties")||B0.call(r,"hChildren"))?{type:"text",value:n.value}:{type:"element",tagName:"div",properties:{},children:e.all(n)};return e.patch(n,i),e.applyData(n,i)}function uZ(e,n){const r=[];let i=-1;for(n&&r.push({type:"text",value:`
`});++i<e.length;)i&&r.push({type:"text",value:`
`}),r.push(e[i]);return n&&e.length>0&&r.push({type:"text",value:`
`}),r}function VS(e){let n=0,r=e.charCodeAt(n);for(;r===9||r===32;)n++,r=e.charCodeAt(n);return e.slice(n)}function US(e,n){const r=aZ(e,n),i=r.one(e,void 0),s=QJ(r),a=Array.isArray(i)?{type:"root",children:i}:i||{type:"root",children:[]};return s&&a.children.push({type:"text",value:`
`},s),a}function dZ(e,n){return e&&"run"in e?async function(r,i){const s=US(r,{file:i,...n});await e.run(s,i)}:function(r,i){return US(r,{file:i,...e||n})}}function $S(e){if(e)throw e}var fy,HS;function hZ(){if(HS)return fy;HS=1;var e=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=Object.defineProperty,i=Object.getOwnPropertyDescriptor,s=function(f){return typeof Array.isArray=="function"?Array.isArray(f):n.call(f)==="[object Array]"},a=function(f){if(!f||n.call(f)!=="[object Object]")return!1;var h=e.call(f,"constructor"),m=f.constructor&&f.constructor.prototype&&e.call(f.constructor.prototype,"isPrototypeOf");if(f.constructor&&!h&&!m)return!1;var p;for(p in f);return typeof p>"u"||e.call(f,p)},o=function(f,h){r&&h.name==="__proto__"?r(f,h.name,{enumerable:!0,configurable:!0,value:h.newValue,writable:!0}):f[h.name]=h.newValue},c=function(f,h){if(h==="__proto__")if(e.call(f,h)){if(i)return i(f,h).value}else return;return f[h]};return fy=function d(){var f,h,m,p,g,b,j=arguments[0],y=1,x=arguments.length,N=!1;for(typeof j=="boolean"&&(N=j,j=arguments[1]||{},y=2),(j==null||typeof j!="object"&&typeof j!="function")&&(j={});y<x;++y)if(f=arguments[y],f!=null)for(h in f)m=c(j,h),p=c(f,h),j!==p&&(N&&p&&(a(p)||(g=s(p)))?(g?(g=!1,b=m&&s(m)?m:[]):b=m&&a(m)?m:{},o(j,{name:h,newValue:d(N,b,p)})):typeof p<"u"&&o(j,{name:h,newValue:p}));return j},fy}var fZ=hZ();const my=Ni(fZ);function q0(e){if(typeof e!="object"||e===null)return!1;const n=Object.getPrototypeOf(e);return(n===null||n===Object.prototype||Object.getPrototypeOf(n)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function mZ(){const e=[],n={run:r,use:i};return n;function r(...s){let a=-1;const o=s.pop();if(typeof o!="function")throw new TypeError("Expected function as last argument, not "+o);c(null,...s);function c(d,...f){const h=e[++a];let m=-1;if(d){o(d);return}for(;++m<s.length;)(f[m]===null||f[m]===void 0)&&(f[m]=s[m]);s=f,h?pZ(h,c)(...f):o(null,...f)}}function i(s){if(typeof s!="function")throw new TypeError("Expected `middelware` to be a function, not "+s);return e.push(s),n}}function pZ(e,n){let r;return i;function i(...o){const c=e.length>o.length;let d;c&&o.push(s);try{d=e.apply(this,o)}catch(f){const h=f;if(c&&r)throw h;return s(h)}c||(d&&d.then&&typeof d.then=="function"?d.then(a,s):d instanceof Error?s(d):a(d))}function s(o,...c){r||(r=!0,n(o,...c))}function a(o){s(null,o)}}const ni={basename:gZ,dirname:xZ,extname:yZ,join:vZ,sep:"/"};function gZ(e,n){if(n!==void 0&&typeof n!="string")throw new TypeError('"ext" argument must be a string');Fu(e);let r=0,i=-1,s=e.length,a;if(n===void 0||n.length===0||n.length>e.length){for(;s--;)if(e.codePointAt(s)===47){if(a){r=s+1;break}}else i<0&&(a=!0,i=s+1);return i<0?"":e.slice(r,i)}if(n===e)return"";let o=-1,c=n.length-1;for(;s--;)if(e.codePointAt(s)===47){if(a){r=s+1;break}}else o<0&&(a=!0,o=s+1),c>-1&&(e.codePointAt(s)===n.codePointAt(c--)?c<0&&(i=s):(c=-1,i=o));return r===i?i=o:i<0&&(i=e.length),e.slice(r,i)}function xZ(e){if(Fu(e),e.length===0)return".";let n=-1,r=e.length,i;for(;--r;)if(e.codePointAt(r)===47){if(i){n=r;break}}else i||(i=!0);return n<0?e.codePointAt(0)===47?"/":".":n===1&&e.codePointAt(0)===47?"//":e.slice(0,n)}function yZ(e){Fu(e);let n=e.length,r=-1,i=0,s=-1,a=0,o;for(;n--;){const c=e.codePointAt(n);if(c===47){if(o){i=n+1;break}continue}r<0&&(o=!0,r=n+1),c===46?s<0?s=n:a!==1&&(a=1):s>-1&&(a=-1)}return s<0||r<0||a===0||a===1&&s===r-1&&s===i+1?"":e.slice(s,r)}function vZ(...e){let n=-1,r;for(;++n<e.length;)Fu(e[n]),e[n]&&(r=r===void 0?e[n]:r+"/"+e[n]);return r===void 0?".":bZ(r)}function bZ(e){Fu(e);const n=e.codePointAt(0)===47;let r=jZ(e,!n);return r.length===0&&!n&&(r="."),r.length>0&&e.codePointAt(e.length-1)===47&&(r+="/"),n?"/"+r:r}function jZ(e,n){let r="",i=0,s=-1,a=0,o=-1,c,d;for(;++o<=e.length;){if(o<e.length)c=e.codePointAt(o);else{if(c===47)break;c=47}if(c===47){if(!(s===o-1||a===1))if(s!==o-1&&a===2){if(r.length<2||i!==2||r.codePointAt(r.length-1)!==46||r.codePointAt(r.length-2)!==46){if(r.length>2){if(d=r.lastIndexOf("/"),d!==r.length-1){d<0?(r="",i=0):(r=r.slice(0,d),i=r.length-1-r.lastIndexOf("/")),s=o,a=0;continue}}else if(r.length>0){r="",i=0,s=o,a=0;continue}}n&&(r=r.length>0?r+"/..":"..",i=2)}else r.length>0?r+="/"+e.slice(s+1,o):r=e.slice(s+1,o),i=o-s-1;s=o,a=0}else c===46&&a>-1?a++:a=-1}return r}function Fu(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const wZ={cwd:NZ};function NZ(){return"/"}function z0(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function kZ(e){if(typeof e=="string")e=new URL(e);else if(!z0(e)){const n=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw n.code="ERR_INVALID_ARG_TYPE",n}if(e.protocol!=="file:"){const n=new TypeError("The URL must be of scheme file");throw n.code="ERR_INVALID_URL_SCHEME",n}return _Z(e)}function _Z(e){if(e.hostname!==""){const i=new TypeError('File URL host must be "localhost" or empty on darwin');throw i.code="ERR_INVALID_FILE_URL_HOST",i}const n=e.pathname;let r=-1;for(;++r<n.length;)if(n.codePointAt(r)===37&&n.codePointAt(r+1)===50){const i=n.codePointAt(r+2);if(i===70||i===102){const s=new TypeError("File URL path must not include encoded / characters");throw s.code="ERR_INVALID_FILE_URL_PATH",s}}return decodeURIComponent(n)}const py=["history","path","basename","stem","extname","dirname"];class SP{constructor(n){let r;n?z0(n)?r={path:n}:typeof n=="string"||SZ(n)?r={value:n}:r=n:r={},this.cwd="cwd"in r?"":wZ.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let i=-1;for(;++i<py.length;){const a=py[i];a in r&&r[a]!==void 0&&r[a]!==null&&(this[a]=a==="history"?[...r[a]]:r[a])}let s;for(s in r)py.includes(s)||(this[s]=r[s])}get basename(){return typeof this.path=="string"?ni.basename(this.path):void 0}set basename(n){xy(n,"basename"),gy(n,"basename"),this.path=ni.join(this.dirname||"",n)}get dirname(){return typeof this.path=="string"?ni.dirname(this.path):void 0}set dirname(n){WS(this.basename,"dirname"),this.path=ni.join(n||"",this.basename)}get extname(){return typeof this.path=="string"?ni.extname(this.path):void 0}set extname(n){if(gy(n,"extname"),WS(this.dirname,"extname"),n){if(n.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(n.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=ni.join(this.dirname,this.stem+(n||""))}get path(){return this.history[this.history.length-1]}set path(n){z0(n)&&(n=kZ(n)),xy(n,"path"),this.path!==n&&this.history.push(n)}get stem(){return typeof this.path=="string"?ni.basename(this.path,this.extname):void 0}set stem(n){xy(n,"stem"),gy(n,"stem"),this.path=ni.join(this.dirname||"",n+(this.extname||""))}fail(n,r,i){const s=this.message(n,r,i);throw s.fatal=!0,s}info(n,r,i){const s=this.message(n,r,i);return s.fatal=void 0,s}message(n,r,i){const s=new Rn(n,r,i);return this.path&&(s.name=this.path+":"+s.name,s.file=this.path),s.fatal=!1,this.messages.push(s),s}toString(n){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(n||void 0).decode(this.value)}}function gy(e,n){if(e&&e.includes(ni.sep))throw new Error("`"+n+"` cannot be a path: did not expect `"+ni.sep+"`")}function xy(e,n){if(!e)throw new Error("`"+n+"` cannot be empty")}function WS(e,n){if(!e)throw new Error("Setting `"+n+"` requires `path` to be set too")}function SZ(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const AZ=(function(e){const i=this.constructor.prototype,s=i[e],a=function(){return s.apply(a,arguments)};return Object.setPrototypeOf(a,i),a}),CZ={}.hasOwnProperty;class _b extends AZ{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=mZ()}copy(){const n=new _b;let r=-1;for(;++r<this.attachers.length;){const i=this.attachers[r];n.use(...i)}return n.data(my(!0,{},this.namespace)),n}data(n,r){return typeof n=="string"?arguments.length===2?(by("data",this.frozen),this.namespace[n]=r,this):CZ.call(this.namespace,n)&&this.namespace[n]||void 0:n?(by("data",this.frozen),this.namespace=n,this):this.namespace}freeze(){if(this.frozen)return this;const n=this;for(;++this.freezeIndex<this.attachers.length;){const[r,...i]=this.attachers[this.freezeIndex];if(i[0]===!1)continue;i[0]===!0&&(i[0]=void 0);const s=r.call(n,...i);typeof s=="function"&&this.transformers.use(s)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(n){this.freeze();const r=hh(n),i=this.parser||this.Parser;return yy("parse",i),i(String(r),r)}process(n,r){const i=this;return this.freeze(),yy("process",this.parser||this.Parser),vy("process",this.compiler||this.Compiler),r?s(void 0,r):new Promise(s);function s(a,o){const c=hh(n),d=i.parse(c);i.run(d,c,function(h,m,p){if(h||!m||!p)return f(h);const g=m,b=i.stringify(g,p);PZ(b)?p.value=b:p.result=b,f(h,p)});function f(h,m){h||!m?o(h):a?a(m):r(void 0,m)}}}processSync(n){let r=!1,i;return this.freeze(),yy("processSync",this.parser||this.Parser),vy("processSync",this.compiler||this.Compiler),this.process(n,s),GS("processSync","process",r),i;function s(a,o){r=!0,$S(a),i=o}}run(n,r,i){KS(n),this.freeze();const s=this.transformers;return!i&&typeof r=="function"&&(i=r,r=void 0),i?a(void 0,i):new Promise(a);function a(o,c){const d=hh(r);s.run(n,d,f);function f(h,m,p){const g=m||n;h?c(h):o?o(g):i(void 0,g,p)}}}runSync(n,r){let i=!1,s;return this.run(n,r,a),GS("runSync","run",i),s;function a(o,c){$S(o),s=c,i=!0}}stringify(n,r){this.freeze();const i=hh(r),s=this.compiler||this.Compiler;return vy("stringify",s),KS(n),s(n,i)}use(n,...r){const i=this.attachers,s=this.namespace;if(by("use",this.frozen),n!=null)if(typeof n=="function")d(n,r);else if(typeof n=="object")Array.isArray(n)?c(n):o(n);else throw new TypeError("Expected usable value, not `"+n+"`");return this;function a(f){if(typeof f=="function")d(f,[]);else if(typeof f=="object")if(Array.isArray(f)){const[h,...m]=f;d(h,m)}else o(f);else throw new TypeError("Expected usable value, not `"+f+"`")}function o(f){if(!("plugins"in f)&&!("settings"in f))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");c(f.plugins),f.settings&&(s.settings=my(!0,s.settings,f.settings))}function c(f){let h=-1;if(f!=null)if(Array.isArray(f))for(;++h<f.length;){const m=f[h];a(m)}else throw new TypeError("Expected a list of plugins, not `"+f+"`")}function d(f,h){let m=-1,p=-1;for(;++m<i.length;)if(i[m][0]===f){p=m;break}if(p===-1)i.push([f,...h]);else if(h.length>0){let[g,...b]=h;const j=i[p][1];q0(j)&&q0(g)&&(g=my(!0,j,g)),i[p]=[f,g,...b]}}}}const EZ=new _b().freeze();function yy(e,n){if(typeof n!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function vy(e,n){if(typeof n!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function by(e,n){if(n)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function KS(e){if(!q0(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function GS(e,n,r){if(!r)throw new Error("`"+e+"` finished async. Use `"+n+"` instead")}function hh(e){return TZ(e)?e:new SP(e)}function TZ(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function PZ(e){return typeof e=="string"||OZ(e)}function OZ(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const DZ="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",QS=[],YS={allowDangerousHtml:!0},IZ=/^(https?|ircs?|mailto|xmpp)$/i,RZ=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function $f(e){const n=FZ(e),r=MZ(e);return LZ(n.runSync(n.parse(r),r),e)}function FZ(e){const n=e.rehypePlugins||QS,r=e.remarkPlugins||QS,i=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...YS}:YS;return EZ().use(gJ).use(r).use(dZ,i).use(n)}function MZ(e){const n=e.children||"",r=new SP;return typeof n=="string"&&(r.value=n),r}function LZ(e,n){const r=n.allowedElements,i=n.allowElement,s=n.components,a=n.disallowedElements,o=n.skipHtml,c=n.unwrapDisallowed,d=n.urlTransform||BZ;for(const h of RZ)Object.hasOwn(n,h.from)&&(""+h.from+(h.to?"use `"+h.to+"` instead":"remove it")+DZ+h.id,void 0);return n.className&&(e={type:"element",tagName:"div",properties:{className:n.className},children:e.type==="root"?e.children:[e]}),_P(e,f),QQ(e,{Fragment:t.Fragment,components:s,ignoreInvalidStyle:!0,jsx:t.jsx,jsxs:t.jsxs,passKeys:!0,passNode:!0});function f(h,m,p){if(h.type==="raw"&&p&&typeof m=="number")return o?p.children.splice(m,1):p.children[m]={type:"text",value:h.value},m;if(h.type==="element"){let g;for(g in uy)if(Object.hasOwn(uy,g)&&Object.hasOwn(h.properties,g)){const b=h.properties[g],j=uy[g];(j===null||j.includes(h.tagName))&&(h.properties[g]=d(String(b||""),g,h))}}if(h.type==="element"){let g=r?!r.includes(h.tagName):a?a.includes(h.tagName):!1;if(!g&&i&&typeof m=="number"&&(g=!i(h,m,p)),g&&p&&typeof m=="number")return c&&h.children?p.children.splice(m,1,...h.children):p.children.splice(m,1),m}}}function BZ(e){const n=e.indexOf(":"),r=e.indexOf("?"),i=e.indexOf("#"),s=e.indexOf("/");return n===-1||s!==-1&&n>s||r!==-1&&n>r||i!==-1&&n>i||IZ.test(e.slice(0,n))?e:""}function qZ(){var o,c;const n=new URLSearchParams(window.location.search).get("slug"),{data:r=[],isLoading:i}=ze({queryKey:["blog",n],queryFn:()=>ue.entities.BlogPost.filter({slug:n,published:!0}),enabled:!!n}),s=r[0];if(i)return t.jsx("div",{className:"pt-20 min-h-screen flex items-center justify-center bg-white",children:t.jsx("div",{className:"inline-block animate-spin rounded-full h-12 w-12 border-b-2 border-[#FAB868]"})});if(!s)return t.jsx("div",{className:"pt-20 min-h-screen flex items-center justify-center bg-white",children:t.jsx("h1",{className:"text-2xl font-bold text-[#0D0D0F]",children:"Artikel niet gevonden."})});const a=((o=s.content)==null?void 0:o.includes("<"))&&((c=s.content)==null?void 0:c.includes(">"));return t.jsxs("div",{className:"pt-20 bg-white",children:[t.jsxs(gl,{children:[t.jsx("title",{children:s.meta_title||`${s.title} - 48-7 Blog`}),t.jsx("meta",{name:"description",content:s.meta_description||s.excerpt}),s.meta_keywords&&t.jsx("meta",{name:"keywords",content:s.meta_keywords}),s.canonical_url&&t.jsx("link",{rel:"canonical",href:s.canonical_url}),t.jsx("meta",{property:"og:title",content:s.title}),t.jsx("meta",{property:"og:description",content:s.excerpt}),t.jsx("meta",{property:"og:type",content:"article"}),s.image_url&&t.jsx("meta",{property:"og:image",content:s.image_url}),t.jsx("meta",{name:"twitter:card",content:"summary_large_image"}),t.jsx("meta",{name:"twitter:title",content:s.title}),t.jsx("meta",{name:"twitter:description",content:s.excerpt}),s.image_url&&t.jsx("meta",{name:"twitter:image",content:s.image_url}),t.jsx("script",{type:"application/ld+json",children:JSON.stringify({"@context":"https://schema.org","@type":"BlogPosting",headline:s.title,description:s.excerpt,image:s.image_url,datePublished:s.published_date,dateModified:s.updated_date||s.published_date,author:{"@type":"Organization",name:s.author||"48-7"},publisher:{"@type":"Organization",name:"48-7",logo:{"@type":"ImageObject",url:"https://qtrypzzcjebvfcihiynt.supabase.co/storage/v1/object/public/base44-prod/public/695a3d411fa079edce588856/ead83115b_48-7logo.png"}}})})]}),t.jsxs("section",{className:"relative overflow-hidden py-20 bg-[#F4F4F4]",children:[s.image_url&&t.jsx("img",{src:s.image_url,alt:s.title,className:"absolute inset-0 w-full h-full object-cover opacity-30"}),t.jsx("div",{className:"relative max-w-4xl mx-auto px-4 sm:px-6 lg:px-8",children:t.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},children:[t.jsxs(fe,{to:oe("Blog"),className:"inline-flex items-center text-[#0D0D0F] hover:text-[#FAB868] transition-colors mb-6",children:[t.jsx(ht,{className:"w-4 h-4 mr-2"})," Terug naar Blog"]}),t.jsx("h1",{className:"text-5xl sm:text-6xl font-bold text-[#0D0D0F] mb-6 leading-tight",children:s.title}),t.jsx("p",{className:"text-xl text-[#9CA3AF] mb-8",children:s.excerpt}),t.jsxs("div",{className:"flex flex-wrap items-center gap-x-6 gap-y-2 text-base text-[#0D0D0F]",children:[t.jsxs("div",{className:"flex items-center gap-2",children:[t.jsx(lI,{className:"w-5 h-5 text-[#FAB868]"}),t.jsx("span",{children:s.author||"48-7 Team"})]}),t.jsxs("div",{className:"flex items-center gap-2",children:[t.jsx(g5,{className:"w-5 h-5 text-[#FAB868]"}),t.jsx("span",{children:s.published_date?new Date(s.published_date).toLocaleDateString("nl-NL"):""})]}),t.jsxs("div",{className:"flex items-center gap-2",children:[t.jsx(Dn,{className:"w-5 h-5 text-[#FAB868]"}),t.jsx("span",{children:s.read_time})]}),t.jsxs("div",{className:"flex items-center gap-2",children:[t.jsx(J3,{className:"w-5 h-5 text-[#FAB868]"}),t.jsx("span",{children:s.category})]})]})]})})]}),t.jsx("section",{className:"py-20",children:t.jsx("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8",children:t.jsx(Z.article,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.2},className:"prose prose-xl max-w-none prose-headings:text-[#0D0D0F] prose-headings:font-bold prose-p:text-[#0D0D0F]/80 prose-p:leading-relaxed prose-a:text-[#FAB868] prose-strong:text-[#0D0D0F] prose-li:text-[#0D0D0F]/80",children:a?t.jsx("div",{dangerouslySetInnerHTML:{__html:s.content}}):t.jsx($f,{children:s.content})})})}),t.jsx("section",{className:"py-20 bg-[#F4F4F4]",children:t.jsxs("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 text-center",children:[t.jsx("h2",{className:"text-5xl font-bold text-[#0D0D0F] mb-6",children:"Meer lezen?"}),t.jsxs(fe,{to:oe("Blog"),className:"inline-flex items-center gap-2 px-10 py-5 bg-[#0D0D0F] text-white font-semibold rounded-full hover:bg-[#1a1a1c] transition-all text-lg",children:[t.jsx(ll,{className:"w-5 h-5"}),"Ga naar Blog",t.jsx(He,{className:"w-5 h-5"})]})]})})]})}function Hf({variant:e="default"}){const[n,r]=F.useState(""),[i,s]=F.useState(!1),a=jl(),o=async c=>{if(c.preventDefault(),!n)return;const d=n.replace(/^(https?:\/\/)?(www\.)?/,"").replace(/\/$/,"");a(oe("AIImpactRapport")+`?url=${encodeURIComponent(d)}`)};return e==="compact"?t.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"bg-[#F4F4F4] rounded-3xl p-8",children:[t.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[t.jsx("div",{className:"w-12 h-12 bg-[#FAB868] rounded-full flex items-center justify-center",children:t.jsx(di,{className:"w-6 h-6 text-[#0D0D0F]"})}),t.jsxs("div",{children:[t.jsx("h3",{className:"text-xl font-bold text-[#0D0D0F]",children:"Gratis AI Impact Analyse"}),t.jsx("p",{className:"text-[#9CA3AF] text-sm",children:"Ontdek je potentieel in 60 seconden"})]})]}),t.jsxs("form",{onSubmit:o,className:"flex gap-3",children:[t.jsx(me,{type:"text",placeholder:"jouwbedrijf.nl",value:n,onChange:c=>r(c.target.value),required:!0,className:"flex-1"}),t.jsx(se,{type:"submit",disabled:i,className:"bg-[#FAB868] text-[#0D0D0F] hover:bg-[#E5A04D] font-semibold",children:i?"...":t.jsx(He,{className:"w-5 h-5"})})]})]}):t.jsx(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"bg-[#FAB868] rounded-3xl p-12 md:p-16 relative overflow-hidden",children:t.jsxs("div",{className:"relative z-10",children:[t.jsxs("div",{className:"flex items-center gap-4 mb-6",children:[t.jsx("div",{className:"w-16 h-16 bg-[#0D0D0F] rounded-full flex items-center justify-center",children:t.jsx(Tt,{className:"w-8 h-8 text-white"})}),t.jsx("div",{children:t.jsx("h2",{className:"text-3xl md:text-4xl font-bold text-[#0D0D0F]",children:"Gratis AI Impact Rapport van jouw bedrijf"})})]}),t.jsx("p",{className:"text-xl text-[#0D0D0F]/80 mb-8 max-w-2xl",children:"Vul je website URL in en ontvang binnen 60 seconden een gepersonaliseerd rapport met concrete AI kansen."}),t.jsxs("form",{onSubmit:o,className:"flex flex-col sm:flex-row gap-4",children:[t.jsx(me,{type:"text",placeholder:"jouwbedrijf.nl",value:n,onChange:c=>r(c.target.value),required:!0,className:"flex-1 px-6 py-6 text-lg bg-white rounded-xl"}),t.jsx(se,{type:"submit",disabled:i,className:"px-8 py-6 bg-[#0D0D0F] text-white hover:bg-[#1a1a1c] font-bold text-lg",children:i?t.jsxs("span",{className:"flex items-center gap-2",children:[t.jsxs("svg",{className:"animate-spin w-5 h-5",viewBox:"0 0 24 24",children:[t.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4",fill:"none"}),t.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4z"})]}),"Analyseren..."]}):t.jsxs("span",{className:"flex items-center gap-2",children:[t.jsx(Tt,{className:"w-5 h-5"}),"Genereer rapport"]})})]}),t.jsx("p",{className:"text-sm text-[#0D0D0F]/70 mt-4",children:"✓ 100% gratis • ✓ Geen verplichtingen • ✓ Direct resultaat"})]})})}function zZ(){const[e,n]=F.useState("all"),{data:r=[],isLoading:i}=ze({queryKey:["cases"],queryFn:()=>ue.entities.CaseStudy.filter({published:!0},"-created_date")}),s=[{id:"all",label:"Alle Cases"},{id:"consultancy",label:"Consultancy"},{id:"development",label:"Development"},{id:"training",label:"Training"}],a=e==="all"?r:r.filter(o=>o.case_type===e);return t.jsxs("div",{className:"pt-20",children:[t.jsx("section",{className:"py-20 bg-gradient-to-b from-gray-50 to-white",children:t.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[t.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"text-center max-w-3xl mx-auto",children:[t.jsx("h1",{className:"text-4xl sm:text-5xl font-bold text-gray-900 mb-6",children:"Resultaten die spreken"}),t.jsx("p",{className:"text-xl text-gray-600",children:"Bekijk hoe wij MKB-bedrijven helpen hun productiviteit te verdubbelen met AI"})]}),t.jsx(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.2},className:"mt-12 flex justify-center",children:t.jsxs(fe,{to:oe("AIImpactRapport"),className:"inline-flex items-center gap-2 bg-[#FAB868] rounded-lg px-3 py-1.5 hover:bg-[#E5A04D] transition-all hover:shadow-lg",children:[t.jsx("span",{className:"text-sm font-bold text-[#0D0D0F]",children:"Ontdek jouw AI-kansen"}),t.jsx(He,{className:"w-4 h-4 text-[#0D0D0F]"})]})})]})}),t.jsx("section",{className:"py-8 border-b border-gray-100 bg-white",children:t.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:t.jsxs("div",{className:"flex items-center gap-2 overflow-x-auto pb-2",children:[t.jsx(af,{className:"w-5 h-5 text-gray-400 flex-shrink-0"}),s.map(o=>t.jsx("button",{onClick:()=>n(o.id),className:`px-4 py-2 rounded-full text-sm font-medium whitespace-nowrap transition-all ${e===o.id?"bg-gray-900 text-white":"bg-gray-100 text-gray-700 hover:bg-gray-200"}`,children:o.label},o.id))]})})}),t.jsx("section",{className:"py-16",children:t.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:i?t.jsx("div",{className:"text-center py-12",children:t.jsx("div",{className:"inline-block w-8 h-8 border-4 border-blue-600 border-t-transparent rounded-full animate-spin"})}):a.length===0?t.jsx("div",{className:"text-center py-12",children:t.jsx("p",{className:"text-gray-600",children:"Geen cases gevonden"})}):t.jsx("div",{className:"space-y-16",children:a.map((o,c)=>t.jsx(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"bg-white rounded-3xl overflow-hidden border border-gray-100 shadow-sm hover:shadow-xl transition-all",children:t.jsxs("div",{className:"grid lg:grid-cols-2",children:[t.jsxs("div",{className:"relative h-64 lg:h-auto",children:[o.featured_image_url&&t.jsx("img",{src:o.featured_image_url,alt:o.client_name,className:"w-full h-full object-cover"}),t.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-black/60 to-transparent lg:bg-gradient-to-r"}),t.jsxs("div",{className:"absolute bottom-6 left-6 text-white",children:[t.jsx("span",{className:"inline-flex items-center gap-1 px-3 py-1 bg-blue-100 text-blue-800 rounded-full text-sm font-medium mb-2",children:o.case_type.charAt(0).toUpperCase()+o.case_type.slice(1)}),t.jsx("h2",{className:"text-2xl font-bold",children:o.client_name}),t.jsx("p",{className:"text-white/80",children:o.industry})]})]}),t.jsxs("div",{className:"p-4 sm:p-8 lg:p-12",children:[o.homepage_usp&&t.jsx("div",{className:"mb-6",children:t.jsxs("div",{className:"flex items-center gap-2 text-green-600",children:[t.jsx(Hi,{className:"w-5 h-5"}),t.jsx("h3",{className:"text-lg sm:text-xl font-bold",children:o.homepage_usp})]})}),t.jsxs("div",{className:"mb-4 sm:mb-6",children:[t.jsx("h3",{className:"text-xs sm:text-sm font-semibold text-gray-500 uppercase tracking-wider mb-2",children:"Challenge"}),t.jsx("div",{className:"text-sm sm:text-base text-gray-700 prose prose-sm",dangerouslySetInnerHTML:{__html:o.challenge}})]}),t.jsxs("div",{className:"mb-4 sm:mb-6",children:[t.jsx("h3",{className:"text-xs sm:text-sm font-semibold text-gray-500 uppercase tracking-wider mb-2",children:"Oplossing"}),t.jsx("div",{className:"text-sm sm:text-base text-gray-700 prose prose-sm",dangerouslySetInnerHTML:{__html:o.solution}})]}),o.results&&o.results.length>0&&t.jsx("div",{className:"grid grid-cols-3 gap-2 sm:gap-4 mb-4 sm:mb-8",children:o.results.map((d,f)=>t.jsxs("div",{className:"text-center p-2 sm:p-4 bg-gray-50 rounded-xl",children:[t.jsx("p",{className:"text-lg sm:text-2xl font-bold text-gray-900 leading-tight",children:d.value}),t.jsx("p",{className:"text-xs sm:text-sm text-gray-600 mt-1",children:d.label})]},f))}),o.quote&&t.jsxs("div",{className:"bg-gray-50 rounded-xl p-4 sm:p-6",children:[t.jsx(AA,{className:"w-6 h-6 sm:w-8 sm:h-8 text-gray-300 mb-2 sm:mb-3"}),t.jsxs("p",{className:"text-sm sm:text-base text-gray-700 italic mb-2 sm:mb-3",children:['"',o.quote,'"']}),t.jsxs("p",{className:"text-xs sm:text-sm font-semibold text-gray-900",children:[o.quote_author,o.quote_role&&`, ${o.quote_role}`]})]})]})]})},o.id))})})}),t.jsx("section",{className:"py-16 bg-gray-50",children:t.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[t.jsxs("div",{className:"text-center mb-8",children:[t.jsx("h2",{className:"text-3xl font-bold text-gray-900 mb-4",children:"Wat kan AI voor jouw bedrijf betekenen?"}),t.jsx("p",{className:"text-xl text-gray-600",children:"Ontvang een gepersonaliseerde analyse met concrete AI kansen"})]}),t.jsx(Hf,{})]})}),t.jsx("section",{className:"py-20 bg-gray-900",children:t.jsxs("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 text-center",children:[t.jsx("h2",{className:"text-3xl font-bold text-white mb-6",children:"Klaar voor jouw succesverhaal?"}),t.jsx("p",{className:"text-xl text-gray-400 mb-8",children:"Ontdek hoe wij jouw bedrijf kunnen helpen met AI"}),t.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 justify-center",children:[t.jsxs(fe,{to:oe("AIQuiz"),className:"inline-flex items-center justify-center gap-2 px-8 py-4 bg-gradient-to-r from-blue-600 to-blue-700 text-white font-semibold rounded-2xl hover:shadow-xl transition-all",children:["Doe de AI Quiz",t.jsx(He,{className:"w-5 h-5"})]}),t.jsx(fe,{to:oe("Contact"),className:"inline-flex items-center justify-center gap-2 px-8 py-4 bg-white text-gray-900 font-semibold rounded-2xl hover:shadow-xl transition-all",children:"Plan een gesprek"})]})]})})]})}function VZ(){var A,S,E,C;const[e,n]=F.useState({name:"",email:"",phone:"",company:"",subject:"",message:""}),[r,i]=F.useState(!1),[s,a]=F.useState(!1),[o,c]=F.useState({}),[d,f]=F.useState(null),{data:h=[]}=ze({queryKey:["site-settings"],queryFn:()=>ue.entities.SiteSettings.list()}),m=(A=h.find(B=>B.setting_key==="linkedin_url"))==null?void 0:A.value,p=(S=h.find(B=>B.setting_key==="twitter_url"))==null?void 0:S.value,g=(E=h.find(B=>B.setting_key==="instagram_url"))==null?void 0:E.value,b=(C=h.find(B=>B.setting_key==="youtube_url"))==null?void 0:C.value,j=new URLSearchParams(window.location.search),y=j.get("training"),x=j.get("ref"),N=j.get("level");Rt.useEffect(()=>{y?n(B=>({...B,subject:"training",message:`Ik ben geïnteresseerd in de training: ${y}`})):x==="quiz"&&N&&n(B=>({...B,subject:"consultancy",message:`Ik heb de AI Quiz gedaan en zit in het "${N}" niveau. Ik wil graag meer weten over de mogelijkheden voor mijn bedrijf.`}))},[y,x,N]);const w=()=>{const B={};(!e.name||e.name.trim().length<2)&&(B.name="Naam moet minimaal 2 karakters bevatten");const I=/^[^\s@]+@[^\s@]+\.[^\s@]+$/;if((!e.email||!I.test(e.email))&&(B.email="Voer een geldig e-mailadres in"),e.phone){const R=/^(\+31|0031|0)[1-9][0-9]{8}$/,D=e.phone.replace(/[\s\-\(\)]/g,"");R.test(D)||(B.phone="Voer een geldig Nederlands telefoonnummer in (bijv. 06-12345678)")}return e.subject||(B.subject="Selecteer een onderwerp"),(!e.message||e.message.trim().length<10)&&(B.message="Bericht moet minimaal 10 karakters bevatten"),e.message&&e.message.length>2e3&&(B.message="Bericht mag maximaal 2000 karakters bevatten"),c(B),Object.keys(B).length===0},k=async B=>{if(B.preventDefault(),!!w()){i(!0);try{const{data:I}=await ue.functions.invoke("sendContactForm",e);a(!0)}catch(I){console.error("Error submitting form:",I),f("Er ging iets mis bij het verzenden. Probeer het later opnieuw.")}finally{i(!1)}}};return s?t.jsx("div",{className:"pt-20 min-h-screen bg-gradient-to-b from-gray-50 to-white",children:t.jsx("div",{className:"max-w-xl mx-auto px-4 sm:px-6 lg:px-8 py-32 text-center",children:t.jsxs(Z.div,{initial:{opacity:0,scale:.9},animate:{opacity:1,scale:1},children:[t.jsx("div",{className:"w-20 h-20 bg-green-100 rounded-full flex items-center justify-center mx-auto mb-6",children:t.jsx(vt,{className:"w-10 h-10 text-green-600"})}),t.jsx("h1",{className:"text-3xl font-bold text-gray-900 mb-4",children:"Bericht verzonden!"}),t.jsx("p",{className:"text-xl text-gray-600 mb-8",children:"Bedankt voor je bericht. We nemen binnen 24 uur contact met je op."}),t.jsxs(fe,{to:oe("Home"),className:"inline-flex items-center gap-2 px-6 py-3 bg-gray-900 text-white font-semibold rounded-xl hover:bg-gray-800 transition-colors",children:["Terug naar home",t.jsx(He,{className:"w-5 h-5"})]})]})})}):t.jsxs("div",{className:"pt-20",children:[t.jsx("section",{className:"py-20 bg-white",children:t.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[t.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"text-center max-w-3xl mx-auto mb-16",children:[t.jsx("h1",{className:"text-5xl sm:text-6xl font-bold text-[#0D0D0F] mb-6",children:"Neem contact op"}),t.jsx("p",{className:"text-2xl text-[#9CA3AF]",children:"Benieuwd hoe AI jouw bedrijf kan helpen?"})]}),t.jsxs("div",{className:"grid md:grid-cols-3 gap-6 max-w-4xl mx-auto mb-16",children:[t.jsxs(Z.a,{href:"tel:+31201234567",initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.1},className:"flex items-center gap-4 p-6 bg-[#F4F4F4] rounded-2xl border border-gray-100 hover:shadow-lg hover:border-[#FAB868] transition-all group",children:[t.jsx("div",{className:"w-14 h-14 bg-[#FAB868] rounded-2xl flex items-center justify-center group-hover:bg-[#E5A04D] transition-colors",children:t.jsx(X0,{className:"w-6 h-6 text-[#0D0D0F]"})}),t.jsxs("div",{children:[t.jsx("p",{className:"font-semibold text-[#0D0D0F]",children:"Bel ons"}),t.jsx("p",{className:"text-[#9CA3AF]",children:"+31 085-06 01 487"})]})]}),t.jsxs(Z.a,{href:"mailto:info@48-7.nl",initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.2},className:"flex items-center gap-4 p-6 bg-[#F4F4F4] rounded-2xl border border-gray-100 hover:shadow-lg hover:border-[#FAB868] transition-all group",children:[t.jsx("div",{className:"w-14 h-14 bg-[#FAB868] rounded-2xl flex items-center justify-center group-hover:bg-[#E5A04D] transition-colors",children:t.jsx(Hr,{className:"w-6 h-6 text-[#0D0D0F]"})}),t.jsxs("div",{children:[t.jsx("p",{className:"font-semibold text-[#0D0D0F]",children:"Email ons"}),t.jsx("p",{className:"text-[#9CA3AF]",children:"hallo@48-7.nl"})]})]}),t.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.3},className:"flex items-center gap-4 p-6 bg-[#F4F4F4] rounded-2xl border border-gray-100",children:[t.jsx("div",{className:"w-14 h-14 bg-[#FAB868] rounded-2xl flex items-center justify-center",children:t.jsx(Dn,{className:"w-6 h-6 text-[#0D0D0F]"})}),t.jsxs("div",{children:[t.jsx("p",{className:"font-semibold text-[#0D0D0F]",children:"Openingstijden"}),t.jsx("p",{className:"text-[#9CA3AF]",children:"Ma-Vr 9:00 - 18:00"})]})]})]})]})}),t.jsx("section",{className:"py-16",children:t.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:t.jsxs("div",{className:"grid lg:grid-cols-2 gap-12",children:[t.jsx(Z.div,{initial:{opacity:0,x:-20},animate:{opacity:1,x:0},children:t.jsxs("div",{className:"bg-white rounded-3xl p-8 border-2 border-gray-100 shadow-sm",children:[t.jsx("h2",{className:"text-3xl font-bold text-[#0D0D0F] mb-6",children:"Stuur een bericht"}),d&&t.jsx("div",{className:"mb-4 p-3 bg-red-50 border border-red-200 rounded-lg",children:t.jsx("p",{className:"text-sm text-red-600",children:d})}),t.jsxs("form",{onSubmit:k,className:"space-y-5",children:[t.jsxs("div",{className:"grid sm:grid-cols-2 gap-5",children:[t.jsxs("div",{children:[t.jsx("label",{className:"block text-sm font-medium text-[#0D0D0F] mb-1",children:"Naam *"}),t.jsx(me,{required:!0,value:e.name,onChange:B=>{n({...e,name:B.target.value}),o.name&&c({...o,name:null})},placeholder:"Je volledige naam",className:o.name?"border-red-500":""}),o.name&&t.jsx("p",{className:"text-red-500 text-xs mt-1",children:o.name})]}),t.jsxs("div",{children:[t.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-1",children:"Email *"}),t.jsx(me,{required:!0,type:"email",value:e.email,onChange:B=>{n({...e,email:B.target.value}),o.email&&c({...o,email:null})},placeholder:"je@bedrijf.nl",className:o.email?"border-red-500":""}),o.email&&t.jsx("p",{className:"text-red-500 text-xs mt-1",children:o.email})]})]}),t.jsxs("div",{className:"grid sm:grid-cols-2 gap-5",children:[t.jsxs("div",{children:[t.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-1",children:"Telefoon"}),t.jsx(me,{type:"tel",value:e.phone,onChange:B=>{n({...e,phone:B.target.value}),o.phone&&c({...o,phone:null})},placeholder:"+31 6 12345678",className:o.phone?"border-red-500":""}),o.phone&&t.jsx("p",{className:"text-red-500 text-xs mt-1",children:o.phone})]}),t.jsxs("div",{children:[t.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-1",children:"Bedrijf"}),t.jsx(me,{value:e.company,onChange:B=>n({...e,company:B.target.value}),placeholder:"Je bedrijfsnaam"})]})]}),t.jsxs("div",{children:[t.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-1",children:"Onderwerp *"}),t.jsxs(Yi,{value:e.subject,onValueChange:B=>{n({...e,subject:B}),o.subject&&c({...o,subject:null})},children:[t.jsx(bi,{className:o.subject?"border-red-500":"",children:t.jsx(Xi,{placeholder:"Selecteer een onderwerp"})}),t.jsxs(ji,{children:[t.jsx(St,{value:"consultancy",children:"AI Consultancy"}),t.jsx(St,{value:"development",children:"AI Development"}),t.jsx(St,{value:"training",children:"AI Training"}),t.jsx(St,{value:"support",children:"Development Support"}),t.jsx(St,{value:"other",children:"Anders"})]})]}),o.subject&&t.jsx("p",{className:"text-red-500 text-xs mt-1",children:o.subject})]}),t.jsxs("div",{children:[t.jsxs("label",{className:"block text-sm font-medium text-gray-700 mb-1",children:["Bericht * ",t.jsxs("span",{className:"text-gray-400 text-xs",children:["(",e.message.length,"/2000)"]})]}),t.jsx(pt,{required:!0,value:e.message,onChange:B=>{n({...e,message:B.target.value}),o.message&&c({...o,message:null})},placeholder:"Vertel ons over je vraag of project...",className:`h-32 ${o.message?"border-red-500":""}`,maxLength:2e3}),o.message&&t.jsx("p",{className:"text-red-500 text-xs mt-1",children:o.message})]}),t.jsx(se,{type:"submit",disabled:r,className:"w-full py-5 bg-[#0D0D0F] hover:bg-[#1a1a1c] text-white font-semibold rounded-full",children:r?t.jsxs("span",{className:"flex items-center gap-2",children:[t.jsxs("svg",{className:"animate-spin w-5 h-5",viewBox:"0 0 24 24",children:[t.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4",fill:"none"}),t.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4z"})]}),"Verzenden..."]}):t.jsxs("span",{className:"flex items-center gap-2 justify-center",children:[t.jsx(U3,{className:"w-5 h-5"}),"Verstuur bericht"]})})]})]})}),t.jsxs(Z.div,{initial:{opacity:0,x:20},animate:{opacity:1,x:0},className:"space-y-8",children:[t.jsx(Hf,{variant:"compact"}),t.jsxs("div",{className:"bg-[#FAB868] rounded-3xl p-8",children:[t.jsxs("div",{className:"flex items-center gap-4 mb-4",children:[t.jsx("div",{className:"w-12 h-12 bg-[#0D0D0F] rounded-full flex items-center justify-center",children:t.jsx(Tt,{className:"w-6 h-6 text-white"})}),t.jsxs("div",{children:[t.jsx("h3",{className:"text-xl font-bold text-[#0D0D0F]",children:"Of doe de AI Quiz"}),t.jsx("p",{className:"text-[#0D0D0F]/70",children:"Ontdek je AI potentieel in 2 minuten"})]})]}),t.jsxs(fe,{to:oe("AIQuiz"),className:"inline-flex items-center gap-2 px-6 py-3 bg-[#0D0D0F] text-white font-semibold rounded-full hover:bg-[#1a1a1c] transition-all",children:["Start de AI Quiz",t.jsx(He,{className:"w-5 h-5"})]})]}),t.jsxs("div",{className:"bg-white rounded-3xl p-8 border-2 border-gray-100",children:[t.jsx("h3",{className:"text-2xl font-bold text-[#0D0D0F] mb-6",children:"Bezoek ons"}),t.jsx("div",{className:"space-y-4",children:t.jsxs("div",{className:"flex items-start gap-4",children:[t.jsx("div",{className:"w-10 h-10 bg-[#F4F4F4] rounded-full flex items-center justify-center flex-shrink-0",children:t.jsx(bu,{className:"w-5 h-5 text-[#0D0D0F]"})}),t.jsxs("div",{children:[t.jsx("p",{className:"font-medium text-[#0D0D0F]",children:"48-7 B.V."}),t.jsx("p",{className:"text-[#9CA3AF]",children:"Euvelgunnerweg 25a"}),t.jsx("p",{className:"text-[#9CA3AF]",children:"9723 CV Groningen"})]})]})}),t.jsx("div",{className:"mt-6 rounded-2xl overflow-hidden h-48 bg-gray-100",children:t.jsx("iframe",{src:"https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d2429.2344!2d6.556!3d53.212!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x47b59dd4b1c1c1c1%3A0x1234567890!2sEuvelgunnerweg%2025a%2C%209723%20CV%20Groningen!5e0!3m2!1snl!2snl!4v1705858800000",width:"100%",height:"100%",style:{border:0},allowFullScreen:"",loading:"lazy",referrerPolicy:"no-referrer-when-downgrade",title:"48-7 locatie Groningen"})})]}),(m||p||g||b)&&t.jsxs("div",{className:"bg-white rounded-3xl p-8 border-2 border-gray-100",children:[t.jsx("h3",{className:"text-2xl font-bold text-[#0D0D0F] mb-4",children:"Volg ons"}),t.jsx("p",{className:"text-[#9CA3AF] mb-6",children:"Blijf op de hoogte"}),t.jsxs("div",{className:"flex items-center gap-4",children:[m&&t.jsx("a",{href:m,target:"_blank",rel:"noopener noreferrer",className:"w-12 h-12 bg-[#F4F4F4] rounded-full flex items-center justify-center hover:bg-[#FAB868] transition-colors text-[#0D0D0F]",children:t.jsx(Hs,{className:"w-6 h-6"})}),p&&t.jsx("a",{href:p,target:"_blank",rel:"noopener noreferrer",className:"w-12 h-12 bg-[#F4F4F4] rounded-full flex items-center justify-center hover:bg-[#FAB868] transition-colors text-[#0D0D0F]",children:t.jsx("svg",{className:"w-6 h-6",fill:"currentColor",viewBox:"0 0 24 24",children:t.jsx("path",{d:"M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z"})})}),g&&t.jsx("a",{href:g,target:"_blank",rel:"noopener noreferrer",className:"w-12 h-12 bg-[#F4F4F4] rounded-full flex items-center justify-center hover:bg-[#FAB868] transition-colors text-[#0D0D0F]",children:t.jsx(Yc,{className:"w-6 h-6"})}),b&&t.jsx("a",{href:b,target:"_blank",rel:"noopener noreferrer",className:"w-12 h-12 bg-[#F4F4F4] rounded-full flex items-center justify-center hover:bg-[#FAB868] transition-colors text-[#0D0D0F]",children:t.jsx(Jc,{className:"w-6 h-6"})})]})]})]})]})})})]})}const UZ=["Home","Contact","Diensten","Training","Cases","Blog","Vacatures","OverOns"];function $Z(){const[e,n]=F.useState(null),[r,i]=F.useState({page_name:"",section_key:"",content:"",content_type:"html",language:"nl"}),s=Yt(),{data:a=[],isLoading:o}=ze({queryKey:["pageContents"],queryFn:()=>ue.entities.PageContent.list()}),c=Me({mutationFn:b=>ue.entities.PageContent.create(b),onSuccess:()=>{s.invalidateQueries({queryKey:["pageContents"]}),h()}}),d=Me({mutationFn:({id:b,data:j})=>ue.entities.PageContent.update(b,j),onSuccess:()=>{s.invalidateQueries({queryKey:["pageContents"]}),h()}}),f=Me({mutationFn:b=>ue.entities.PageContent.delete(b),onSuccess:()=>{s.invalidateQueries({queryKey:["pageContents"]})}}),h=()=>{n(null),i({page_name:"",section_key:"",content:"",content_type:"html",language:"nl"})},m=b=>{n(b),i(b)},p=b=>{b.preventDefault(),e?d.mutate({id:e.id,data:r}):c.mutate(r)},g=a.reduce((b,j)=>(b[j.page_name]||(b[j.page_name]=[]),b[j.page_name].push(j),b),{});return e!==null?t.jsx("div",{className:"pt-20 min-h-screen bg-gray-50",children:t.jsxs("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 py-12",children:[t.jsx("div",{className:"mb-6",children:t.jsxs(se,{variant:"outline",onClick:h,className:"gap-2",children:[t.jsx(ht,{className:"w-4 h-4"}),"Terug naar overzicht"]})}),t.jsxs("div",{className:"bg-white rounded-2xl p-8 border border-gray-200",children:[t.jsx("h2",{className:"text-3xl font-bold text-gray-900 mb-8",children:e!=null&&e.id?"Content Bewerken":"Nieuwe Content"}),t.jsxs("form",{onSubmit:p,className:"space-y-6",children:[t.jsxs("div",{className:"grid md:grid-cols-2 gap-6",children:[t.jsxs("div",{children:[t.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Pagina *"}),t.jsxs(Yi,{value:r.page_name,onValueChange:b=>i({...r,page_name:b}),children:[t.jsx(bi,{children:t.jsx(Xi,{placeholder:"Selecteer een pagina"})}),t.jsx(ji,{children:UZ.map(b=>t.jsx(St,{value:b,children:b},b))})]})]}),t.jsxs("div",{children:[t.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Sectie Key *"}),t.jsx(me,{required:!0,value:r.section_key,onChange:b=>i({...r,section_key:b.target.value}),placeholder:"hero_title, about_description, etc."})]})]}),t.jsxs("div",{children:[t.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Content Type"}),t.jsxs(Yi,{value:r.content_type,onValueChange:b=>i({...r,content_type:b}),children:[t.jsx(bi,{children:t.jsx(Xi,{})}),t.jsxs(ji,{children:[t.jsx(St,{value:"text",children:"Plain Text"}),t.jsx(St,{value:"html",children:"HTML/Rich Text"}),t.jsx(St,{value:"markdown",children:"Markdown"})]})]})]}),t.jsxs("div",{children:[t.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Content *"}),r.content_type==="html"?t.jsx(Ji,{value:r.content,onChange:b=>i({...r,content:b}),placeholder:"Schrijf je content..."}):t.jsx("textarea",{required:!0,value:r.content,onChange:b=>i({...r,content:b.target.value}),placeholder:"Schrijf je content...",className:"w-full min-h-[200px] px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-transparent"})]}),t.jsxs("div",{className:"flex gap-4 pt-6",children:[t.jsxs(se,{type:"submit",className:"flex-1 gap-2",children:[t.jsx(kn,{className:"w-4 h-4"}),e!=null&&e.id?"Bijwerken":"Aanmaken"]}),t.jsx(se,{type:"button",variant:"outline",onClick:h,children:"Annuleren"})]})]})]})]})}):t.jsx("div",{className:"pt-20 min-h-screen bg-gray-50",children:t.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-12",children:[t.jsxs("div",{className:"flex items-center justify-between mb-8",children:[t.jsxs("div",{children:[t.jsxs(fe,{to:oe("AdminDashboard"),className:"text-blue-600 hover:text-blue-700 mb-2 inline-flex items-center gap-1",children:[t.jsx(ht,{className:"w-4 h-4"}),"Terug naar dashboard"]}),t.jsx("h1",{className:"text-4xl font-bold text-gray-900",children:"Content Beheer"}),t.jsx("p",{className:"text-gray-600 mt-2",children:"Beheer statische content op je pagina's"})]}),t.jsxs(se,{onClick:()=>n({}),children:[t.jsx(Pt,{className:"w-5 h-5 mr-2"}),"Nieuwe Content"]})]}),o?t.jsx("div",{className:"text-center py-12",children:t.jsx("div",{className:"inline-block w-8 h-8 border-4 border-blue-600 border-t-transparent rounded-full animate-spin"})}):Object.keys(g).length===0?t.jsxs("div",{className:"bg-white rounded-xl p-12 text-center border border-gray-200",children:[t.jsx("p",{className:"text-gray-600 mb-4",children:"Nog geen content toegevoegd"}),t.jsxs(se,{onClick:()=>n({}),children:[t.jsx(Pt,{className:"w-5 h-5 mr-2"}),"Voeg eerste content toe"]})]}):t.jsx("div",{className:"space-y-8",children:Object.entries(g).map(([b,j])=>t.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"bg-white rounded-xl p-6 border border-gray-200",children:[t.jsx("h2",{className:"text-2xl font-bold text-gray-900 mb-4",children:b}),t.jsx("div",{className:"space-y-3",children:j.map(y=>t.jsxs("div",{className:"flex items-center justify-between p-4 bg-gray-50 rounded-lg hover:bg-gray-100 transition-colors",children:[t.jsxs("div",{className:"flex-1",children:[t.jsx("p",{className:"font-semibold text-gray-900",children:y.section_key}),t.jsxs("p",{className:"text-sm text-gray-600 line-clamp-1",children:[y.content.replace(/<[^>]*>/g,"").substring(0,100),"..."]}),t.jsx("span",{className:"inline-block mt-1 px-2 py-1 bg-blue-100 text-blue-800 text-xs rounded",children:y.content_type})]}),t.jsxs("div",{className:"flex gap-2 ml-4",children:[t.jsxs(se,{size:"sm",variant:"outline",onClick:()=>m(y),children:[t.jsx(Tn,{className:"w-4 h-4 mr-1"}),"Bewerk"]}),t.jsx(se,{size:"sm",variant:"ghost",onClick:()=>{confirm("Weet je zeker dat je dit wilt verwijderen?")&&f.mutate(y.id)},children:t.jsx(wt,{className:"w-4 h-4"})})]})]},y.id))})]},b))})]})})}function HZ(){const[e,n]=F.useState("pages"),[r,i]=F.useState(null),[s,a]=F.useState(!1),o=Yt(),{data:c=[]}=ze({queryKey:["pageContents"],queryFn:()=>ue.entities.PageContent.list()}),{data:d=[]}=ze({queryKey:["blogPosts"],queryFn:()=>ue.entities.BlogPost.list()}),{data:f=[]}=ze({queryKey:["trainings"],queryFn:()=>ue.entities.Training.list()}),h=Me({mutationFn:w=>ue.entities.PageContent.create(w),onSuccess:()=>{o.invalidateQueries({queryKey:["pageContents"]}),a(!1),i(null)}}),m=Me({mutationFn:({id:w,data:k})=>ue.entities.PageContent.update(w,k),onSuccess:()=>{o.invalidateQueries({queryKey:["pageContents"]}),a(!1),i(null)}}),p=Me({mutationFn:w=>ue.entities.PageContent.delete(w),onSuccess:()=>o.invalidateQueries({queryKey:["pageContents"]})}),g=Me({mutationFn:w=>ue.entities.BlogPost.create(w),onSuccess:()=>{o.invalidateQueries({queryKey:["blogPosts"]}),a(!1),i(null)}}),b=Me({mutationFn:({id:w,data:k})=>ue.entities.BlogPost.update(w,k),onSuccess:()=>{o.invalidateQueries({queryKey:["blogPosts"]}),a(!1),i(null)}}),j=Me({mutationFn:w=>ue.entities.BlogPost.delete(w),onSuccess:()=>o.invalidateQueries({queryKey:["blogPosts"]})}),y=Me({mutationFn:w=>ue.entities.Training.create(w),onSuccess:()=>{o.invalidateQueries({queryKey:["trainings"]}),a(!1),i(null)}}),x=Me({mutationFn:({id:w,data:k})=>ue.entities.Training.update(w,k),onSuccess:()=>{o.invalidateQueries({queryKey:["trainings"]}),a(!1),i(null)}}),N=Me({mutationFn:w=>ue.entities.Training.delete(w),onSuccess:()=>o.invalidateQueries({queryKey:["trainings"]})});return t.jsx("div",{className:"pt-20 min-h-screen bg-gray-50",children:t.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-12",children:[t.jsxs("div",{className:"mb-8",children:[t.jsx("h1",{className:"text-4xl font-bold text-gray-900 mb-2",children:"Content Management"}),t.jsx("p",{className:"text-gray-600",children:"Beheer pagina's, blogs en trainingen"})]}),t.jsxs("div",{className:"flex gap-2 mb-8 border-b border-gray-200",children:[t.jsxs("button",{onClick:()=>n("pages"),className:`px-6 py-3 font-medium transition-colors ${e==="pages"?"text-[#FAB868] border-b-2 border-[#FAB868]":"text-gray-600 hover:text-gray-900"}`,children:["Pagina Content (",c.length,")"]}),t.jsxs("button",{onClick:()=>n("blogs"),className:`px-6 py-3 font-medium transition-colors ${e==="blogs"?"text-[#FAB868] border-b-2 border-[#FAB868]":"text-gray-600 hover:text-gray-900"}`,children:["Blog Posts (",d.length,")"]}),t.jsxs("button",{onClick:()=>n("trainings"),className:`px-6 py-3 font-medium transition-colors ${e==="trainings"?"text-[#FAB868] border-b-2 border-[#FAB868]":"text-gray-600 hover:text-gray-900"}`,children:["Trainingen (",f.length,")"]})]}),t.jsxs(se,{onClick:()=>{i(null),a(!0)},className:"mb-6",children:[t.jsx(Pt,{className:"w-4 h-4 mr-2"}),"Nieuwe ",e==="pages"?"Pagina Content":e==="blogs"?"Blog Post":"Training"]}),e==="pages"&&t.jsx("div",{className:"space-y-4",children:c.map(w=>t.jsx("div",{className:"bg-white rounded-2xl p-6 border border-gray-200",children:t.jsxs("div",{className:"flex justify-between items-start",children:[t.jsxs("div",{className:"flex-1",children:[t.jsxs("h3",{className:"font-bold text-lg mb-1",children:[w.page_name," - ",w.section_key]}),t.jsx("p",{className:"text-gray-600 text-sm mb-2",children:w.content_type}),t.jsx("p",{className:"text-gray-700 line-clamp-2",children:w.content})]}),t.jsxs("div",{className:"flex gap-2",children:[t.jsx(se,{variant:"ghost",size:"icon",onClick:()=>{i(w),a(!0)},children:t.jsx(Bc,{className:"w-4 h-4"})}),t.jsx(se,{variant:"ghost",size:"icon",onClick:()=>{confirm("Weet je zeker dat je dit wilt verwijderen?")&&p.mutate(w.id)},children:t.jsx(wt,{className:"w-4 h-4"})})]})]})},w.id))}),e==="blogs"&&t.jsx("div",{className:"space-y-4",children:d.map(w=>t.jsx("div",{className:"bg-white rounded-2xl p-6 border border-gray-200",children:t.jsxs("div",{className:"flex justify-between items-start",children:[t.jsxs("div",{className:"flex-1",children:[t.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[t.jsx("h3",{className:"font-bold text-lg",children:w.title}),w.published&&t.jsx("span",{className:"px-2 py-1 bg-green-100 text-green-800 text-xs rounded-full",children:"Gepubliceerd"})]}),t.jsxs("p",{className:"text-gray-600 text-sm mb-2",children:[w.category," • ",w.read_time]}),t.jsx("p",{className:"text-gray-700 line-clamp-2",children:w.excerpt})]}),t.jsxs("div",{className:"flex gap-2",children:[t.jsx(se,{variant:"ghost",size:"icon",onClick:()=>{i(w),a(!0)},children:t.jsx(Bc,{className:"w-4 h-4"})}),t.jsx(se,{variant:"ghost",size:"icon",onClick:()=>{confirm("Weet je zeker dat je dit wilt verwijderen?")&&j.mutate(w.id)},children:t.jsx(wt,{className:"w-4 h-4"})})]})]})},w.id))}),e==="trainings"&&t.jsx("div",{className:"space-y-4",children:f.map(w=>t.jsx("div",{className:"bg-white rounded-2xl p-6 border border-gray-200",children:t.jsxs("div",{className:"flex justify-between items-start",children:[t.jsxs("div",{className:"flex-1",children:[t.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[t.jsx("h3",{className:"font-bold text-lg",children:w.title}),w.active&&t.jsx("span",{className:"px-2 py-1 bg-green-100 text-green-800 text-xs rounded-full",children:"Actief"})]}),t.jsxs("p",{className:"text-gray-600 text-sm mb-2",children:[w.category," • ",w.duration]}),t.jsx("p",{className:"text-gray-700 line-clamp-2",children:w.description})]}),t.jsxs("div",{className:"flex gap-2",children:[t.jsx(se,{variant:"ghost",size:"icon",onClick:()=>{i(w),a(!0)},children:t.jsx(Bc,{className:"w-4 h-4"})}),t.jsx(se,{variant:"ghost",size:"icon",onClick:()=>{confirm("Weet je zeker dat je dit wilt verwijderen?")&&N.mutate(w.id)},children:t.jsx(wt,{className:"w-4 h-4"})})]})]})},w.id))}),s&&t.jsx("div",{className:"fixed inset-0 bg-black/50 backdrop-blur-sm z-50 flex items-center justify-center p-4",children:t.jsxs("div",{className:"bg-white rounded-2xl p-8 max-w-2xl w-full max-h-[90vh] overflow-y-auto",children:[t.jsxs("div",{className:"flex justify-between items-center mb-6",children:[t.jsxs("h2",{className:"text-2xl font-bold",children:[r?"Bewerk":"Nieuwe"," ",e==="pages"?"Pagina Content":e==="blogs"?"Blog Post":"Training"]}),t.jsx(se,{variant:"ghost",size:"icon",onClick:()=>{a(!1),i(null)},children:t.jsx(rn,{className:"w-5 h-5"})})]}),e==="pages"&&t.jsx(WZ,{editingItem:r,onSubmit:w=>{r?m.mutate({id:r.id,data:w}):h.mutate(w)},onCancel:()=>a(!1)}),e==="blogs"&&t.jsx(KZ,{editingItem:r,onSubmit:w=>{r?b.mutate({id:r.id,data:w}):g.mutate(w)},onCancel:()=>a(!1)}),e==="trainings"&&t.jsx(GZ,{editingItem:r,onSubmit:w=>{r?x.mutate({id:r.id,data:w}):y.mutate(w)},onCancel:()=>a(!1)})]})})]})})}function WZ({editingItem:e,onSubmit:n,onCancel:r}){const[i,s]=F.useState(e||{page_name:"",section_key:"",content:"",content_type:"text",language:"nl"});return t.jsxs("form",{onSubmit:a=>{a.preventDefault(),n(i)},className:"space-y-4",children:[t.jsxs("div",{children:[t.jsx("label",{className:"block text-sm font-medium mb-1",children:"Pagina Naam"}),t.jsx(me,{required:!0,value:i.page_name,onChange:a=>s({...i,page_name:a.target.value}),placeholder:"bijv. Home, About, Contact"})]}),t.jsxs("div",{children:[t.jsx("label",{className:"block text-sm font-medium mb-1",children:"Sectie Key"}),t.jsx(me,{required:!0,value:i.section_key,onChange:a=>s({...i,section_key:a.target.value}),placeholder:"bijv. hero_title, about_description"})]}),t.jsxs("div",{children:[t.jsx("label",{className:"block text-sm font-medium mb-1",children:"Content Type"}),t.jsxs("select",{value:i.content_type,onChange:a=>s({...i,content_type:a.target.value}),className:"w-full px-4 py-3 border-b-2 border-gray-200 focus:border-[#FAB868] focus:outline-none",children:[t.jsx("option",{value:"text",children:"Text"}),t.jsx("option",{value:"html",children:"HTML"}),t.jsx("option",{value:"markdown",children:"Markdown"})]})]}),t.jsxs("div",{children:[t.jsx("label",{className:"block text-sm font-medium mb-1",children:"Content"}),i.content_type==="html"?t.jsx("div",{className:"border-b-2 border-gray-200 focus-within:border-[#FAB868]",children:t.jsx(Lf,{theme:"snow",value:i.content,onChange:a=>s({...i,content:a}),modules:{toolbar:[[{header:[1,2,3,!1]}],["bold","italic","underline","strike"],[{list:"ordered"},{list:"bullet"}],["link","image"],["clean"]]}})}):t.jsx(pt,{required:!0,value:i.content,onChange:a=>s({...i,content:a.target.value}),className:"min-h-48",placeholder:i.content_type==="markdown"?`# Heading

**Bold text**

- Lijst item`:"Tekst"})]}),t.jsxs("div",{className:"flex gap-3 pt-4",children:[t.jsx(se,{type:"button",variant:"outline",onClick:r,className:"flex-1",children:"Annuleren"}),t.jsxs(se,{type:"submit",className:"flex-1",children:[t.jsx(kn,{className:"w-4 h-4 mr-2"}),"Opslaan"]})]})]})}function KZ({editingItem:e,onSubmit:n,onCancel:r}){const[i,s]=F.useState(e||{title:"",slug:"",excerpt:"",content:"",category:"AI",image_url:"",author:"48-7 Team",read_time:"5 min",published:!1,published_date:new Date().toISOString().split("T")[0]});return t.jsxs("form",{onSubmit:a=>{a.preventDefault(),n(i)},className:"space-y-4",children:[t.jsxs("div",{children:[t.jsx("label",{className:"block text-sm font-medium mb-1",children:"Titel"}),t.jsx(me,{required:!0,value:i.title,onChange:a=>s({...i,title:a.target.value})})]}),t.jsxs("div",{children:[t.jsx("label",{className:"block text-sm font-medium mb-1",children:"Slug (URL)"}),t.jsx(me,{required:!0,value:i.slug,onChange:a=>s({...i,slug:a.target.value}),placeholder:"url-vriendelijke-versie"})]}),t.jsxs("div",{children:[t.jsx("label",{className:"block text-sm font-medium mb-1",children:"Categorie"}),t.jsxs("select",{value:i.category,onChange:a=>s({...i,category:a.target.value}),className:"w-full px-4 py-3 border-b-2 border-gray-200 focus:border-[#FAB868] focus:outline-none",children:[t.jsx("option",{value:"AI",children:"AI"}),t.jsx("option",{value:"Technologie",children:"Technologie"}),t.jsx("option",{value:"Training",children:"Training"}),t.jsx("option",{value:"Case Study",children:"Case Study"}),t.jsx("option",{value:"Nieuws",children:"Nieuws"})]})]}),t.jsxs("div",{children:[t.jsx("label",{className:"block text-sm font-medium mb-1",children:"Excerpt"}),t.jsx(pt,{required:!0,value:i.excerpt,onChange:a=>s({...i,excerpt:a.target.value})})]}),t.jsxs("div",{children:[t.jsx("label",{className:"block text-sm font-medium mb-1",children:"Content (Rich Text Editor)"}),t.jsx("div",{className:"border-b-2 border-gray-200 focus-within:border-[#FAB868]",children:t.jsx(Lf,{theme:"snow",value:i.content,onChange:a=>s({...i,content:a}),modules:{toolbar:[[{header:[1,2,3,!1]}],["bold","italic","underline","strike"],[{list:"ordered"},{list:"bullet"}],["link","image","video"],[{color:[]},{background:[]}],["clean"]]},style:{minHeight:"300px"}})}),t.jsx("p",{className:"text-xs text-gray-500 mt-2",children:"Tip: Plak afbeelding URLs direct of gebruik de image button. Output is HTML."})]}),t.jsxs("div",{children:[t.jsx("label",{className:"block text-sm font-medium mb-1",children:"Image URL"}),t.jsx(me,{value:i.image_url,onChange:a=>s({...i,image_url:a.target.value})})]}),t.jsxs("div",{className:"flex items-center gap-2",children:[t.jsx("input",{type:"checkbox",checked:i.published,onChange:a=>s({...i,published:a.target.checked}),className:"w-4 h-4"}),t.jsx("label",{className:"text-sm font-medium",children:"Publiceren"})]}),t.jsxs("div",{className:"flex gap-3 pt-4",children:[t.jsx(se,{type:"button",variant:"outline",onClick:r,className:"flex-1",children:"Annuleren"}),t.jsxs(se,{type:"submit",className:"flex-1",children:[t.jsx(kn,{className:"w-4 h-4 mr-2"}),"Opslaan"]})]})]})}function GZ({editingItem:e,onSubmit:n,onCancel:r}){const[i,s]=F.useState(e||{title:"",slug:"",category:"Basis",duration:"",description:"",full_description:"",learning_goals:[],target_audience:"",price:"",image_url:"",active:!0});return t.jsxs("form",{onSubmit:a=>{a.preventDefault(),n(i)},className:"space-y-4",children:[t.jsxs("div",{children:[t.jsx("label",{className:"block text-sm font-medium mb-1",children:"Titel"}),t.jsx(me,{required:!0,value:i.title,onChange:a=>s({...i,title:a.target.value})})]}),t.jsxs("div",{children:[t.jsx("label",{className:"block text-sm font-medium mb-1",children:"Slug (URL)"}),t.jsx(me,{required:!0,value:i.slug,onChange:a=>s({...i,slug:a.target.value})})]}),t.jsxs("div",{children:[t.jsx("label",{className:"block text-sm font-medium mb-1",children:"Categorie"}),t.jsxs("select",{value:i.category,onChange:a=>s({...i,category:a.target.value}),className:"w-full px-4 py-3 border-b-2 border-gray-200 focus:border-[#FAB868] focus:outline-none",children:[t.jsx("option",{value:"Basis",children:"Basis"}),t.jsx("option",{value:"Gevorderd",children:"Gevorderd"}),t.jsx("option",{value:"Leiderschap",children:"Leiderschap"}),t.jsx("option",{value:"Technisch",children:"Technisch"})]})]}),t.jsxs("div",{children:[t.jsx("label",{className:"block text-sm font-medium mb-1",children:"Duur"}),t.jsx(me,{required:!0,value:i.duration,onChange:a=>s({...i,duration:a.target.value}),placeholder:"bijv. 1 dag, 2 uur"})]}),t.jsxs("div",{children:[t.jsx("label",{className:"block text-sm font-medium mb-1",children:"Korte Beschrijving"}),t.jsx(pt,{required:!0,value:i.description,onChange:a=>s({...i,description:a.target.value})})]}),t.jsxs("div",{children:[t.jsx("label",{className:"block text-sm font-medium mb-1",children:"Volledige Beschrijving (Rich Text)"}),t.jsx("div",{className:"border-b-2 border-gray-200 focus-within:border-[#FAB868]",children:t.jsx(Lf,{theme:"snow",value:i.full_description,onChange:a=>s({...i,full_description:a}),modules:{toolbar:[[{header:[1,2,3,!1]}],["bold","italic","underline"],[{list:"ordered"},{list:"bullet"}],["link"],["clean"]]},style:{minHeight:"200px"}})})]}),t.jsxs("div",{children:[t.jsx("label",{className:"block text-sm font-medium mb-1",children:"Doelgroep"}),t.jsx(me,{value:i.target_audience,onChange:a=>s({...i,target_audience:a.target.value})})]}),t.jsxs("div",{children:[t.jsx("label",{className:"block text-sm font-medium mb-1",children:"Prijs"}),t.jsx(me,{value:i.price,onChange:a=>s({...i,price:a.target.value}),placeholder:"bijv. €1.500 ex. BTW"})]}),t.jsxs("div",{className:"flex items-center gap-2",children:[t.jsx("input",{type:"checkbox",checked:i.active,onChange:a=>s({...i,active:a.target.checked}),className:"w-4 h-4"}),t.jsx("label",{className:"text-sm font-medium",children:"Actief"})]}),t.jsxs("div",{className:"flex gap-3 pt-4",children:[t.jsx(se,{type:"button",variant:"outline",onClick:r,className:"flex-1",children:"Annuleren"}),t.jsxs(se,{type:"submit",className:"flex-1",children:[t.jsx(kn,{className:"w-4 h-4 mr-2"}),"Opslaan"]})]})]})}function QZ(){return t.jsxs("div",{className:"pt-20",children:[t.jsxs("section",{className:"relative bg-white pt-32 pb-20 overflow-hidden",children:[t.jsx("div",{className:"absolute top-0 right-0 w-[600px] h-[600px] bg-[#FAB868]/5 rounded-full blur-3xl"}),t.jsx("div",{className:"relative max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:t.jsxs("div",{className:"grid lg:grid-cols-2 gap-20 items-center",children:[t.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"max-w-2xl",children:[t.jsx("h1",{className:"text-5xl sm:text-6xl lg:text-7xl font-bold text-[#0D0D0F] leading-[1.1] mb-8",children:"AI Development Support"}),t.jsx("p",{className:"text-2xl text-[#9CA3AF] mb-8 leading-relaxed",children:"Snel bouwen met AI, zonder technische risico's"}),t.jsxs("div",{className:"bg-[#F4F4F4] rounded-2xl p-6 mb-12",children:[t.jsx("h3",{className:"text-xl font-bold text-[#0D0D0F] mb-3",children:"Vibe coding en AI-assisted development maken teams razendsnel."}),t.jsx("p",{className:"text-lg text-[#0D0D0F]/80",children:"Maar hoe weet je zeker dat wat je oplevert veilig, overdraagbaar en toekomstbestendig is?"})]}),t.jsx("p",{className:"text-xl text-[#0D0D0F] font-semibold mb-12",children:"Met AI Development Support ondersteunen wij teams die zelf bouwen met AI — zodat snelheid niet ten koste gaat van kwaliteit."}),t.jsx("div",{className:"flex flex-col sm:flex-row gap-4",children:t.jsxs(fe,{to:oe("Contact"),className:"inline-flex items-center justify-center gap-2 px-10 py-5 bg-[#FAB868] text-[#0D0D0F] font-semibold rounded-full hover:bg-[#E5A04D] transition-all text-lg",children:["Bespreek je situatie",t.jsx(He,{className:"w-5 h-5"})]})})]}),t.jsx(Z.div,{initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},transition:{delay:.3},className:"hidden lg:block",children:t.jsx("img",{src:"https://images.unsplash.com/photo-1517694712202-14dd9538aa97?w=1200&auto=format&fit=crop",alt:"AI Development Support",className:"w-full h-[600px] object-cover rounded-3xl shadow-2xl"})})]})})]}),t.jsx("section",{className:"py-32 bg-[#F4F4F4]",children:t.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:t.jsxs("div",{className:"grid lg:grid-cols-2 gap-16 items-center",children:[t.jsx(Z.div,{initial:{opacity:0,x:-20},whileInView:{opacity:1,x:0},viewport:{once:!0},children:t.jsx("img",{src:"https://images.unsplash.com/photo-1522071820081-009f0129c71c?w=1200&auto=format&fit=crop",alt:"Team building with AI",className:"w-full h-[500px] object-cover rounded-3xl shadow-xl"})}),t.jsxs(Z.div,{initial:{opacity:0,x:20},whileInView:{opacity:1,x:0},viewport:{once:!0},children:[t.jsx("h2",{className:"text-5xl font-bold text-[#0D0D0F] mb-6",children:"Voor teams die met AI bouwen"}),t.jsx("p",{className:"text-2xl text-[#9CA3AF] mb-8",children:"Deze dienst is er voor developmentteams die werken met vibe coding tools zoals Cursor, Codex, Claude Code of Lovable en:"}),t.jsxs("div",{className:"space-y-4",children:[t.jsxs("div",{className:"flex items-start gap-4",children:[t.jsx("div",{className:"w-8 h-8 bg-[#FAB868] rounded-full flex items-center justify-center flex-shrink-0 mt-1",children:t.jsx(Wt,{className:"w-5 h-5 text-[#0D0D0F]"})}),t.jsx("p",{className:"text-xl text-[#0D0D0F]/80",children:"snel itereren met AI"})]}),t.jsxs("div",{className:"flex items-start gap-4",children:[t.jsx("div",{className:"w-8 h-8 bg-[#FAB868] rounded-full flex items-center justify-center flex-shrink-0 mt-1",children:t.jsx(Wt,{className:"w-5 h-5 text-[#0D0D0F]"})}),t.jsx("p",{className:"text-xl text-[#0D0D0F]/80",children:"eigenaarschap willen houden"})]}),t.jsxs("div",{className:"flex items-start gap-4",children:[t.jsx("div",{className:"w-8 h-8 bg-[#FAB868] rounded-full flex items-center justify-center flex-shrink-0 mt-1",children:t.jsx(Wt,{className:"w-5 h-5 text-[#0D0D0F]"})}),t.jsx("p",{className:"text-xl text-[#0D0D0F]/80",children:"maar zekerheid zoeken over hun technische keuzes"})]})]})]})]})})}),t.jsx("section",{className:"py-32 bg-white",children:t.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[t.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-center mb-20",children:[t.jsx("h2",{className:"text-5xl sm:text-6xl font-bold text-[#0D0D0F] mb-6",children:"Waar wij op letten"}),t.jsx("p",{className:"text-2xl text-[#9CA3AF] max-w-3xl mx-auto mb-4",children:"Wij helpen teams antwoord krijgen op cruciale vragen:"})]}),t.jsxs("div",{className:"grid md:grid-cols-2 lg:grid-cols-4 gap-8 mb-12",children:[t.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:.1},className:"bg-[#F4F4F4] rounded-3xl p-8 text-center",children:[t.jsx("div",{className:"w-16 h-16 bg-[#FAB868] rounded-full flex items-center justify-center mx-auto mb-4",children:t.jsx(CA,{className:"w-8 h-8 text-[#0D0D0F]"})}),t.jsx("h3",{className:"text-xl font-bold text-[#0D0D0F] mb-3",children:"Is de code veilig?"}),t.jsx("p",{className:"text-lg text-[#9CA3AF]",children:"Ook in koppeling met bestaande systemen en databronnen."})]}),t.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:.2},className:"bg-[#F4F4F4] rounded-3xl p-8 text-center",children:[t.jsx("div",{className:"w-16 h-16 bg-[#FAB868] rounded-full flex items-center justify-center mx-auto mb-4",children:t.jsx(lf,{className:"w-8 h-8 text-[#0D0D0F]"})}),t.jsx("h3",{className:"text-xl font-bold text-[#0D0D0F] mb-3",children:"Is de juiste architectuur gekozen?"}),t.jsx("p",{className:"text-lg text-[#9CA3AF]",children:"Schaalbaar, onderhoudbaar en logisch opgebouwd."})]}),t.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:.3},className:"bg-[#F4F4F4] rounded-3xl p-8 text-center",children:[t.jsx("div",{className:"w-16 h-16 bg-[#FAB868] rounded-full flex items-center justify-center mx-auto mb-4",children:t.jsx(zn,{className:"w-8 h-8 text-[#0D0D0F]"})}),t.jsx("h3",{className:"text-xl font-bold text-[#0D0D0F] mb-3",children:"Is de code overdraagbaar?"}),t.jsx("p",{className:"text-lg text-[#9CA3AF]",children:"Begrijpelijk, gedocumenteerd en niet afhankelijk van één persoon."})]}),t.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:.4},className:"bg-[#F4F4F4] rounded-3xl p-8 text-center",children:[t.jsx("div",{className:"w-16 h-16 bg-[#FAB868] rounded-full flex items-center justify-center mx-auto mb-4",children:t.jsx(F3,{className:"w-8 h-8 text-[#0D0D0F]"})}),t.jsx("h3",{className:"text-xl font-bold text-[#0D0D0F] mb-3",children:"Kan het worden doorontwikkeld?"}),t.jsx("p",{className:"text-lg text-[#9CA3AF]",children:"Klaar voor upgrades, nieuwe modellen en toekomstige eisen."})]})]})]})}),t.jsx("section",{className:"py-32 bg-[#F4F4F4]",children:t.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[t.jsx(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-center mb-20",children:t.jsx("h2",{className:"text-5xl sm:text-6xl font-bold text-[#0D0D0F] mb-6",children:"Wat we doen (en wat niet)"})}),t.jsxs("div",{className:"grid lg:grid-cols-2 gap-12",children:[t.jsxs("div",{className:"bg-white rounded-3xl p-8 shadow-xl",children:[t.jsx("h3",{className:"text-3xl font-bold text-[#0D0D0F] mb-6",children:"Wij doen wel"}),t.jsxs("ul",{className:"space-y-4",children:[t.jsxs("li",{className:"flex items-start gap-4",children:[t.jsx("div",{className:"w-8 h-8 bg-[#FAB868] rounded-full flex items-center justify-center flex-shrink-0 mt-1",children:t.jsx(Wt,{className:"w-5 h-5 text-[#0D0D0F]"})}),t.jsx("p",{className:"text-xl text-[#0D0D0F]/80",children:"Code- en architectuurreviews"})]}),t.jsxs("li",{className:"flex items-start gap-4",children:[t.jsx("div",{className:"w-8 h-8 bg-[#FAB868] rounded-full flex items-center justify-center flex-shrink-0 mt-1",children:t.jsx(Wt,{className:"w-5 h-5 text-[#0D0D0F]"})}),t.jsx("p",{className:"text-xl text-[#0D0D0F]/80",children:"Begeleiding bij AI-assisted development"})]}),t.jsxs("li",{className:"flex items-start gap-4",children:[t.jsx("div",{className:"w-8 h-8 bg-[#FAB868] rounded-full flex items-center justify-center flex-shrink-0 mt-1",children:t.jsx(Wt,{className:"w-5 h-5 text-[#0D0D0F]"})}),t.jsx("p",{className:"text-xl text-[#0D0D0F]/80",children:"Helpen bij framework-keuzes (React, Next en alternatieven)"})]}),t.jsxs("li",{className:"flex items-start gap-4",children:[t.jsx("div",{className:"w-8 h-8 bg-[#FAB868] rounded-full flex items-center justify-center flex-shrink-0 mt-1",children:t.jsx(Wt,{className:"w-5 h-5 text-[#0D0D0F]"})}),t.jsx("p",{className:"text-xl text-[#0D0D0F]/80",children:"Meedenken over architectuur, integraties, security en structuur"})]}),t.jsxs("li",{className:"flex items-start gap-4",children:[t.jsx("div",{className:"w-8 h-8 bg-[#FAB868] rounded-full flex items-center justify-center flex-shrink-0 mt-1",children:t.jsx(Wt,{className:"w-5 h-5 text-[#0D0D0F]"})}),t.jsx("p",{className:"text-xl text-[#0D0D0F]/80",children:"Kennisoverdracht aan het team"})]})]})]}),t.jsxs("div",{className:"bg-white rounded-3xl p-8 shadow-xl",children:[t.jsx("h3",{className:"text-3xl font-bold text-[#0D0D0F] mb-6",children:"Wij doen niet"}),t.jsxs("ul",{className:"space-y-4",children:[t.jsxs("li",{className:"flex items-start gap-4",children:[t.jsx("div",{className:"w-8 h-8 bg-gray-200 rounded-full flex items-center justify-center flex-shrink-0 mt-1",children:t.jsx(rn,{className:"w-5 h-5 text-gray-500"})}),t.jsx("p",{className:"text-xl text-[#0D0D0F]/80",children:"Jullie team overnemen"})]}),t.jsxs("li",{className:"flex items-start gap-4",children:[t.jsx("div",{className:"w-8 h-8 bg-gray-200 rounded-full flex items-center justify-center flex-shrink-0 mt-1",children:t.jsx(rn,{className:"w-5 h-5 text-gray-500"})}),t.jsx("p",{className:"text-xl text-[#0D0D0F]/80",children:"Black-box oplossingen bouwen"})]})]}),t.jsx("p",{className:"text-xl text-[#0D0D0F] font-semibold mt-8",children:"Jullie blijven bouwen. Wij bewaken de kwaliteit."})]})]})]})}),t.jsx("section",{className:"py-32 bg-white",children:t.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[t.jsx(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-center mb-20",children:t.jsx("h2",{className:"text-5xl sm:text-6xl font-bold text-[#0D0D0F] mb-6",children:"Hoe we samenwerken"})}),t.jsxs("div",{className:"grid md:grid-cols-3 gap-8",children:[t.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:.1},className:"bg-[#F4F4F4] rounded-3xl p-8 text-center",children:[t.jsx("div",{className:"w-16 h-16 bg-[#FAB868] rounded-full flex items-center justify-center mx-auto mb-4",children:t.jsx(Dn,{className:"w-8 h-8 text-[#0D0D0F]"})}),t.jsx("h3",{className:"text-xl font-bold text-[#0D0D0F] mb-3",children:"Retainer"}),t.jsx("p",{className:"text-lg text-[#9CA3AF]",children:"structurele begeleiding & reviews"})]}),t.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:.2},className:"bg-[#F4F4F4] rounded-3xl p-8 text-center",children:[t.jsx("div",{className:"w-16 h-16 bg-[#FAB868] rounded-full flex items-center justify-center mx-auto mb-4",children:t.jsx(D5,{className:"w-8 h-8 text-[#0D0D0F]"})}),t.jsx("h3",{className:"text-xl font-bold text-[#0D0D0F] mb-3",children:"Projectmatig"}),t.jsx("p",{className:"text-lg text-[#9CA3AF]",children:"toetsing van een AI-oplossing"})]}),t.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:.3},className:"bg-[#F4F4F4] rounded-3xl p-8 text-center",children:[t.jsx("div",{className:"w-16 h-16 bg-[#FAB868] rounded-full flex items-center justify-center mx-auto mb-4",children:t.jsx(zn,{className:"w-8 h-8 text-[#0D0D0F]"})}),t.jsx("h3",{className:"text-xl font-bold text-[#0D0D0F] mb-3",children:"Tijdelijke versterking"}),t.jsx("p",{className:"text-lg text-[#9CA3AF]",children:"altijd met kennisoverdracht"})]})]}),t.jsx(Z.p,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-xl text-[#0D0D0F] font-semibold text-center mt-12",children:"Flexibel, zonder lock-in."})]})}),t.jsx("section",{className:"py-32 bg-[#F4F4F4]",children:t.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[t.jsx(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-center mb-20",children:t.jsx("h2",{className:"text-5xl sm:text-6xl font-bold text-[#0D0D0F] mb-6",children:"Waarom 48-7"})}),t.jsxs("div",{className:"grid md:grid-cols-2 gap-8 max-w-4xl mx-auto",children:[t.jsxs("div",{className:"flex items-center gap-3 text-xl text-[#0D0D0F]",children:[t.jsx(Wt,{className:"w-6 h-6 text-[#FAB868]"}),"Ervaren developers met echte AI-kennis"]}),t.jsxs("div",{className:"flex items-center gap-3 text-xl text-[#0D0D0F]",children:[t.jsx(Wt,{className:"w-6 h-6 text-[#FAB868]"}),"Begrip van bestaande softwarelandschappen"]}),t.jsxs("div",{className:"flex items-center gap-3 text-xl text-[#0D0D0F]",children:[t.jsx(Wt,{className:"w-6 h-6 text-[#FAB868]"}),"Praktisch, nuchter en zonder hype"]}),t.jsxs("div",{className:"flex items-center gap-3 text-xl text-[#0D0D0F]",children:[t.jsx(Wt,{className:"w-6 h-6 text-[#FAB868]"}),"Gericht op MKB+ teams die snelheid én controle willen"]})]}),t.jsx(Z.p,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-3xl text-[#0D0D0F] font-bold text-center mt-12",children:"Werk je met AI, maar wil je zeker weten dat het technisch klopt?"})]})}),t.jsx("section",{className:"py-32 bg-[#0D0D0F]",children:t.jsxs("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 text-center",children:[t.jsx("h2",{className:"text-5xl font-bold text-white mb-6",children:"Bespreek je situatie"}),t.jsx("p",{className:"text-2xl text-[#9CA3AF] mb-12",children:"Snel bouwen met AI, zonder technische risico's"}),t.jsxs(fe,{to:oe("Contact"),className:"inline-flex items-center gap-2 px-10 py-5 bg-[#FAB868] text-[#0D0D0F] font-semibold rounded-full hover:bg-[#E5A04D] transition-all text-lg",children:["Plan een gesprek",t.jsx(He,{className:"w-5 h-5"})]})]})})]})}function YZ(){const e=[{icon:$s,title:"AI Consultancy",description:"Van strategie tot roadmap. Wij helpen je de juiste AI kansen te identificeren en een praktisch implementatieplan te ontwikkelen dat past bij jouw organisatie.",features:["AI Strategie & Visie","Innoveren met AI","AI Readiness Assessments","ROI & Business Cases","Interim AI Product Managers"],href:oe("AIConsultancy"),image:"https://images.unsplash.com/photo-1552664730-d307ca884978?w=1200&auto=format&fit=crop",bgLight:"bg-amber-50",color:"#f59e0b"},{icon:wA,title:"AI Software Development",description:"Wij ontwikkelen AI-oplossingen die echt in productie gaan. Schaalbare software die past binnen jouw bestaande IT-landschap.",features:["AI Agents & Automatisering","AI Search & E-commerce","AI Customer Care","Prototypes naar Productie","Integraties met bestaande systemen"],href:oe("AIDevelopment"),image:"https://images.unsplash.com/photo-1555949963-aa79dcee981c?w=1200&auto=format&fit=crop",bgLight:"bg-blue-50",color:"#3b82f6"},{icon:of,title:"AI Development Support",description:"Ondersteuning voor developmentteams die zelf bouwen met AI, zodat snelheid niet ten koste gaat van kwaliteit, veiligheid en onderhoudbaarheid.",features:["Code- en architectuurreviews","Begeleiding bij AI-assisted development","Framework-keuzes & architectuuradvies","AI Security Audits","Kennisoverdracht aan het team"],href:oe("DevelopmentSupport"),image:"https://images.unsplash.com/photo-1522071820081-009f0129c71c?w=1200&auto=format&fit=crop",bgLight:"bg-emerald-50",color:"#10b981"},{icon:pr,title:"AI Training & Workshops",description:"Maak je team AI-ready met onze praktijkgerichte trainingen. Van basis tot gevorderd, voor elk niveau en elke rol binnen je organisatie.",features:["AI Geletterdheid","Vibe Coding","AI Agents Bouwen","Microsoft Copilot","AI & Sales"],href:oe("Training"),image:"https://images.unsplash.com/photo-1524178232363-1fb2b075b655?w=1200&auto=format&fit=crop",bgLight:"bg-purple-50",color:"#a855f7"}],n=[{icon:Ga,value:"50+",label:"Projecten afgerond"},{icon:zn,value:"500+",label:"Professionals getraind"},{icon:di,value:"2x",label:"Gemiddelde productiviteitswinst"}];return t.jsxs("div",{className:"pt-20",children:[t.jsx("section",{className:"py-20 bg-gradient-to-b from-gray-50 to-white",children:t.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[t.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"text-center max-w-3xl mx-auto mb-16",children:[t.jsxs("div",{className:"inline-flex items-center gap-2 px-4 py-2 bg-blue-100 rounded-full text-blue-700 text-sm font-medium mb-6",children:[t.jsx(Tt,{className:"w-4 h-4"}),"Full-Service AI Agency"]}),t.jsx("h1",{className:"text-4xl sm:text-5xl font-bold text-gray-900 mb-6",children:"Full-Service AI voor MKB"}),t.jsx("p",{className:"text-xl text-gray-600",children:"Van strategie tot implementatie, van training tot doorontwikkeling. Wij bieden alles wat je nodig hebt om AI succesvol in te zetten."})]}),t.jsx(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.2},className:"grid md:grid-cols-3 gap-6 max-w-3xl mx-auto",children:n.map((r,i)=>t.jsxs("div",{className:"text-center p-6 bg-white rounded-2xl border border-gray-100",children:[t.jsx(r.icon,{className:"w-8 h-8 text-blue-600 mx-auto mb-3"}),t.jsx("p",{className:"text-3xl font-bold text-gray-900",children:r.value}),t.jsx("p",{className:"text-gray-600",children:r.label})]},i))})]})}),t.jsx("section",{className:"py-20",children:t.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:t.jsx("div",{className:"space-y-16",children:e.map((r,i)=>t.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:`grid lg:grid-cols-2 gap-12 items-center ${i%2===1?"lg:flex-row-reverse":""}`,children:[t.jsxs("div",{className:i%2===1?"lg:order-2":"",children:[t.jsx("div",{className:`w-16 h-16 ${r.bgLight} rounded-2xl flex items-center justify-center mb-6`,children:t.jsx(r.icon,{className:"w-8 h-8",style:{color:r.color}})}),t.jsx("h2",{className:"text-3xl font-bold text-gray-900 mb-4",children:r.title}),t.jsx("p",{className:"text-xl text-gray-600 mb-8",children:r.description}),t.jsx("ul",{className:"space-y-3 mb-8",children:r.features.map((s,a)=>t.jsxs("li",{className:"flex items-center gap-3",children:[t.jsx("div",{className:`w-6 h-6 rounded-full ${r.bgLight} flex items-center justify-center`,children:t.jsx(Wt,{className:"w-4 h-4",style:{color:r.color}})}),t.jsx("span",{className:"text-gray-700",children:s})]},a))}),t.jsxs(fe,{to:r.href,className:"inline-flex items-center gap-2 px-6 py-3 bg-gray-900 text-white font-semibold rounded-xl hover:bg-gray-800 transition-colors",children:["Meer over ",r.title,t.jsx(He,{className:"w-5 h-5"})]})]}),t.jsx("div",{className:`relative ${i%2===1?"lg:order-1":""}`,children:t.jsx("img",{src:r.image,alt:r.title,className:"w-full aspect-square object-cover rounded-3xl shadow-xl"})})]},i))})})}),t.jsx("section",{className:"py-16 bg-gray-50",children:t.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:t.jsx(Hf,{})})}),t.jsx("section",{className:"py-20 bg-gray-900",children:t.jsx("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 text-center",children:t.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},children:[t.jsx("h2",{className:"text-3xl sm:text-4xl font-bold text-white mb-6",children:"Niet zeker welke dienst je nodig hebt?"}),t.jsx("p",{className:"text-xl text-gray-400 mb-8",children:"Doe onze AI Quiz en ontdek in 2 minuten welke AI oplossingen het beste passen bij jouw bedrijf."}),t.jsxs(fe,{to:oe("AIQuiz"),className:"inline-flex items-center gap-2 px-8 py-4 bg-gradient-to-r from-blue-600 to-blue-700 text-white font-semibold rounded-2xl hover:shadow-xl hover:shadow-blue-500/30 transition-all",children:[t.jsx(Tt,{className:"w-5 h-5"}),"Start de AI Quiz",t.jsx(He,{className:"w-5 h-5"})]})]})})})]})}var Wf="Checkbox",[XZ]=Za(Wf),[JZ,Sb]=XZ(Wf);function ZZ(e){const{__scopeCheckbox:n,checked:r,children:i,defaultChecked:s,disabled:a,form:o,name:c,onCheckedChange:d,required:f,value:h="on",internal_do_not_use_render:m}=e,[p,g]=pl({prop:r,defaultProp:s??!1,onChange:d,caller:Wf}),[b,j]=F.useState(null),[y,x]=F.useState(null),N=F.useRef(!1),w=b?!!o||!!b.closest("form"):!0,k={checked:p,disabled:a,setChecked:g,control:b,setControl:j,name:c,form:o,value:h,hasConsumerStoppedPropagationRef:N,required:f,defaultChecked:Us(s)?!1:s,isFormControl:w,bubbleInput:y,setBubbleInput:x};return t.jsx(JZ,{scope:n,...k,children:eee(m)?m(k):i})}var AP="CheckboxTrigger",CP=F.forwardRef(({__scopeCheckbox:e,onKeyDown:n,onClick:r,...i},s)=>{const{control:a,value:o,disabled:c,checked:d,required:f,setControl:h,setChecked:m,hasConsumerStoppedPropagationRef:p,isFormControl:g,bubbleInput:b}=Sb(AP,e),j=Qt(s,h),y=F.useRef(d);return F.useEffect(()=>{const x=a==null?void 0:a.form;if(x){const N=()=>m(y.current);return x.addEventListener("reset",N),()=>x.removeEventListener("reset",N)}},[a,m]),t.jsx(jt.button,{type:"button",role:"checkbox","aria-checked":Us(d)?"mixed":d,"aria-required":f,"data-state":DP(d),"data-disabled":c?"":void 0,disabled:c,value:o,...i,ref:j,onKeyDown:bt(n,x=>{x.key==="Enter"&&x.preventDefault()}),onClick:bt(r,x=>{m(N=>Us(N)?!0:!N),b&&g&&(p.current=x.isPropagationStopped(),p.current||x.stopPropagation())})})});CP.displayName=AP;var Ab=F.forwardRef((e,n)=>{const{__scopeCheckbox:r,name:i,checked:s,defaultChecked:a,required:o,disabled:c,value:d,onCheckedChange:f,form:h,...m}=e;return t.jsx(ZZ,{__scopeCheckbox:r,checked:s,defaultChecked:a,disabled:c,required:o,onCheckedChange:f,name:i,form:h,value:d,internal_do_not_use_render:({isFormControl:p})=>t.jsxs(t.Fragment,{children:[t.jsx(CP,{...m,ref:n,__scopeCheckbox:r}),p&&t.jsx(OP,{__scopeCheckbox:r})]})})});Ab.displayName=Wf;var EP="CheckboxIndicator",TP=F.forwardRef((e,n)=>{const{__scopeCheckbox:r,forceMount:i,...s}=e,a=Sb(EP,r);return t.jsx(ub,{present:i||Us(a.checked)||a.checked===!0,children:t.jsx(jt.span,{"data-state":DP(a.checked),"data-disabled":a.disabled?"":void 0,...s,ref:n,style:{pointerEvents:"none",...e.style}})})});TP.displayName=EP;var PP="CheckboxBubbleInput",OP=F.forwardRef(({__scopeCheckbox:e,...n},r)=>{const{control:i,hasConsumerStoppedPropagationRef:s,checked:a,defaultChecked:o,required:c,disabled:d,name:f,value:h,form:m,bubbleInput:p,setBubbleInput:g}=Sb(PP,e),b=Qt(r,g),j=sb(a),y=nb(i);F.useEffect(()=>{const N=p;if(!N)return;const w=window.HTMLInputElement.prototype,A=Object.getOwnPropertyDescriptor(w,"checked").set,S=!s.current;if(j!==a&&A){const E=new Event("click",{bubbles:S});N.indeterminate=Us(a),A.call(N,Us(a)?!1:a),N.dispatchEvent(E)}},[p,j,a,s]);const x=F.useRef(Us(a)?!1:a);return t.jsx(jt.input,{type:"checkbox","aria-hidden":!0,defaultChecked:o??x.current,required:c,disabled:d,name:f,value:h,form:m,...n,tabIndex:-1,ref:b,style:{...n.style,...y,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});OP.displayName=PP;function eee(e){return typeof e=="function"}function Us(e){return e==="indeterminate"}function DP(e){return Us(e)?"indeterminate":e?"checked":"unchecked"}const Rh=F.forwardRef(({className:e,...n},r)=>t.jsx(Ab,{ref:r,className:Gt("peer h-4 w-4 shrink-0 rounded-sm border border-primary shadow focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",e),...n,children:t.jsx(TP,{className:Gt("flex items-center justify-center text-current"),children:t.jsx(Wt,{className:"h-4 w-4"})})}));Rh.displayName=Ab.displayName;function tee(){const[e,n]=F.useState({bedrijfsnaam:"",contactpersonen:"",functies:"",email:"",telefoon:"",sector:"",aantal_medewerkers:"",omzet_range:"",kernactiviteit:"",frustratie_1:"",frustratie_2:"",frustratie_3:"",tijdrovende_activiteit:"",tijdsbesteding_uren:"",gemiste_kansen:"",gebruikte_systemen:[],systemen_gekoppeld:"",bedrijfskennis_locatie:[],informatie_vindbaarheid:"",ai_gebruik:"",ai_tools_welke:"",ai_ervaring:"",management_houding:"",medewerkers_houding:"",ai_zorgen:"",redenen_contact:[],succesvol_resultaat:"",urgentie:"",budget_beschikbaar:"",budget_range:"",aanwezigen:"",specifieke_onderwerpen:"",te_delen_documenten:"",geupload_documenten:[],overige_informatie:""}),[r,i]=F.useState(!1),[s,a]=F.useState(!1),[o,c]=F.useState(""),[d,f]=F.useState(""),[h,m]=F.useState(!1),[p,g]=F.useState({}),[b,j]=F.useState([]),y=(S,E)=>{n(C=>({...C,[S]:E}))},x=(S,E,C)=>{n(B=>({...B,[S]:C?[...B[S],E]:B[S].filter(I=>I!==E)}))},N=async S=>{var C;const E=Array.from(S.target.files);if(E.length!==0){m(!0);try{const B=[];for(const I of E){const R=await ue.integrations.Core.UploadFile({file:I}),D=R.file_url||((C=R.data)==null?void 0:C.file_url);if(!D)throw new Error("Bestands-URL ontbreekt na uploaden.");B.push(D)}n(I=>({...I,geupload_documenten:[...I.geupload_documenten,...B]}))}catch(B){f("Er ging iets mis bij het uploaden van bestanden."),console.error(B)}finally{m(!1)}}},w=S=>{n(E=>({...E,geupload_documenten:E.geupload_documenten.filter(C=>C!==S)}))},k=()=>{const S={};(!e.bedrijfsnaam||e.bedrijfsnaam.trim().length<2)&&(S.bedrijfsnaam="Bedrijfsnaam is verplicht"),(!e.contactpersonen||e.contactpersonen.trim().length<2)&&(S.contactpersonen="Contactpersoon is verplicht");const E=/^[^\s@]+@[^\s@]+\.[^\s@]+$/;if((!e.email||!E.test(e.email))&&(S.email="Voer een geldig e-mailadres in"),e.telefoon){const C=/^(\+31|0031|0)[1-9][0-9]{8}$/,B=e.telefoon.replace(/[\s\-\(\)]/g,"");C.test(B)||(S.telefoon="Voer een geldig Nederlands telefoonnummer in")}return g(S),Object.keys(S).length===0},A=async S=>{if(S.preventDefault(),!k()){f("Er zijn validatiefouten in het formulier. Controleer de rode velden."),window.scrollTo(0,0);return}i(!0),f(""),j([]);try{const E=await ue.functions.invoke("submitDiscoveryForm",e);E.data.success?(c(E.data.id||""),a(!0),window.scrollTo(0,0)):(f(E.data.error||"Er ging iets mis"),E.data.validation_errors&&j(E.data.validation_errors))}catch(E){console.error("Form submission error:",E),f("Netwerkfout: kon geen verbinding maken met de server. Probeer het later opnieuw.")}finally{i(!1)}};return s?t.jsx("div",{className:"min-h-screen bg-gradient-to-br from-gray-50 to-gray-100 py-20",children:t.jsx("div",{className:"max-w-2xl mx-auto px-4",children:t.jsxs("div",{className:"bg-white rounded-3xl shadow-xl p-12 text-center",children:[t.jsx(C5,{className:"w-20 h-20 text-green-500 mx-auto mb-6"}),t.jsx("h1",{className:"text-3xl font-bold mb-4",children:"Bedankt!"}),t.jsx("p",{className:"text-lg text-gray-600 mb-6",children:"We hebben jullie Discovery Scan succesvol ontvangen en nemen deze zo snel mogelijk door."}),o&&t.jsxs("div",{className:"bg-blue-50 border border-blue-200 rounded-xl p-4 mb-6",children:[t.jsx("p",{className:"text-sm text-gray-600 mb-1",children:"Referentienummer:"}),t.jsx("p",{className:"text-lg font-mono font-bold text-blue-700",children:o})]})]})})}):t.jsx("div",{className:"min-h-screen bg-gradient-to-br from-gray-50 to-gray-100 py-12",children:t.jsx("div",{className:"max-w-4xl mx-auto px-4",children:t.jsxs("div",{className:"bg-white rounded-3xl shadow-xl p-8 md:p-12",children:[t.jsxs("div",{className:"mb-12",children:[t.jsx("h1",{className:"text-4xl font-bold mb-4",children:"48-7 AI Discovery - Pre-Meeting Scan"}),t.jsx("div",{className:"bg-blue-50 border-l-4 border-blue-500 p-4 mb-6",children:t.jsx("p",{className:"text-gray-700",children:"Bedankt voor jullie interesse in 48-7 AI Consultancy. Om onze discovery-sessie zo waardevol mogelijk te maken, vragen we jullie om deze korte scan vooraf in te vullen."})}),t.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4 text-sm",children:[t.jsxs("div",{className:"flex items-center gap-2",children:[t.jsx("span",{className:"font-semibold",children:"⏱️ Invultijd:"}),t.jsx("span",{children:"Ongeveer 10-15 minuten"})]}),t.jsxs("div",{className:"flex items-center gap-2",children:[t.jsx("span",{className:"font-semibold",children:"🔒 Privacy:"}),t.jsx("span",{children:"Gegevens worden vertrouwelijk behandeld"})]})]})]}),t.jsxs("form",{onSubmit:A,className:"space-y-12",children:[t.jsxs("section",{children:[t.jsx("h2",{className:"text-2xl font-bold mb-6 pb-2 border-b-2 border-[#FAB868]",children:"DEEL 1: Bedrijfsgegevens"}),t.jsxs("div",{className:"space-y-6",children:[t.jsxs("div",{children:[t.jsx("label",{className:"block font-semibold mb-2",children:"Bedrijfsnaam *"}),t.jsx(me,{required:!0,value:e.bedrijfsnaam,onChange:S=>{y("bedrijfsnaam",S.target.value),p.bedrijfsnaam&&g({...p,bedrijfsnaam:null})},className:p.bedrijfsnaam?"border-red-500":""}),p.bedrijfsnaam&&t.jsx("p",{className:"text-red-500 text-xs mt-1",children:p.bedrijfsnaam})]}),t.jsxs("div",{children:[t.jsx("label",{className:"block font-semibold mb-2",children:"Contactpersoon(en) tijdens sessie *"}),t.jsx(me,{required:!0,value:e.contactpersonen,onChange:S=>{y("contactpersonen",S.target.value),p.contactpersonen&&g({...p,contactpersonen:null})},className:p.contactpersonen?"border-red-500":""}),p.contactpersonen&&t.jsx("p",{className:"text-red-500 text-xs mt-1",children:p.contactpersonen})]}),t.jsxs("div",{children:[t.jsx("label",{className:"block font-semibold mb-2",children:"Functie(s)"}),t.jsx(me,{value:e.functies,onChange:S=>y("functies",S.target.value)})]}),t.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[t.jsxs("div",{children:[t.jsx("label",{className:"block font-semibold mb-2",children:"E-mail *"}),t.jsx(me,{type:"email",required:!0,value:e.email,onChange:S=>{y("email",S.target.value),p.email&&g({...p,email:null})},className:p.email?"border-red-500":""}),p.email&&t.jsx("p",{className:"text-red-500 text-xs mt-1",children:p.email})]}),t.jsxs("div",{children:[t.jsx("label",{className:"block font-semibold mb-2",children:"Telefoon"}),t.jsx(me,{type:"tel",value:e.telefoon,onChange:S=>{y("telefoon",S.target.value),p.telefoon&&g({...p,telefoon:null})},placeholder:"+31 6 12345678",className:p.telefoon?"border-red-500":""}),p.telefoon&&t.jsx("p",{className:"text-red-500 text-xs mt-1",children:p.telefoon})]})]}),t.jsxs("div",{children:[t.jsx("label",{className:"block font-semibold mb-2",children:"In welke sector/branche zijn jullie actief?"}),t.jsx(me,{value:e.sector,onChange:S=>y("sector",S.target.value)})]}),t.jsxs("div",{children:[t.jsx("label",{className:"block font-semibold mb-3",children:"Hoeveel medewerkers heeft jullie organisatie?"}),t.jsx("div",{className:"space-y-2",children:["1-10","11-25","26-50","51-100","100+"].map(S=>t.jsxs("label",{className:"flex items-center gap-2 cursor-pointer",children:[t.jsx("input",{type:"radio",name:"aantal_medewerkers",value:S,checked:e.aantal_medewerkers===S,onChange:E=>y("aantal_medewerkers",E.target.value),className:"w-4 h-4"}),t.jsx("span",{children:S})]},S))})]}),t.jsxs("div",{children:[t.jsx("label",{className:"block font-semibold mb-3",children:"Omzet range (optioneel)"}),t.jsx("div",{className:"space-y-2",children:["< €500k","€500k - €1M","€1M - €5M","€5M - €10M","€10M+","Geef ik liever niet aan"].map(S=>t.jsxs("label",{className:"flex items-center gap-2 cursor-pointer",children:[t.jsx("input",{type:"radio",name:"omzet_range",value:S,checked:e.omzet_range===S,onChange:E=>y("omzet_range",E.target.value),className:"w-4 h-4"}),t.jsx("span",{children:S})]},S))})]}),t.jsxs("div",{children:[t.jsxs("label",{className:"block font-semibold mb-2",children:["Beschrijf jullie kernactiviteit in één zin",t.jsx("br",{}),t.jsx("span",{className:"text-sm font-normal text-gray-600",children:"(Wat doen jullie en voor wie?)"})]}),t.jsx(pt,{value:e.kernactiviteit,onChange:S=>y("kernactiviteit",S.target.value),rows:3})]})]})]}),t.jsxs("section",{children:[t.jsx("h2",{className:"text-2xl font-bold mb-6 pb-2 border-b-2 border-[#FAB868]",children:"DEEL 2: Huidige Situatie"}),t.jsxs("div",{className:"space-y-6",children:[t.jsxs("div",{children:[t.jsx("label",{className:"block font-semibold mb-3",children:"Wat zijn op dit moment jullie TOP 3 frustraties of knelpunten in de dagelijkse bedrijfsvoering?"}),t.jsxs("div",{className:"space-y-3",children:[t.jsxs("div",{children:[t.jsx("label",{className:"block text-sm mb-1",children:"1."}),t.jsx(pt,{value:e.frustratie_1,onChange:S=>y("frustratie_1",S.target.value),rows:2})]}),t.jsxs("div",{children:[t.jsx("label",{className:"block text-sm mb-1",children:"2."}),t.jsx(pt,{value:e.frustratie_2,onChange:S=>y("frustratie_2",S.target.value),rows:2})]}),t.jsxs("div",{children:[t.jsx("label",{className:"block text-sm mb-1",children:"3."}),t.jsx(pt,{value:e.frustratie_3,onChange:S=>y("frustratie_3",S.target.value),rows:2})]})]})]}),t.jsxs("div",{children:[t.jsx("label",{className:"block font-semibold mb-2",children:"Aan welke activiteit zijn jullie (of jullie team) het meeste tijd kwijt die eigenlijk efficiënter zou kunnen?"}),t.jsx(pt,{value:e.tijdrovende_activiteit,onChange:S=>y("tijdrovende_activiteit",S.target.value),rows:3})]}),t.jsxs("div",{children:[t.jsx("label",{className:"block font-semibold mb-3",children:"Als je een ruwe schatting maakt, hoeveel tijd gaat hier per week in zitten?"}),t.jsx("div",{className:"space-y-2",children:["Minder dan 5 uur","5-10 uur","10-20 uur","20-40 uur","Meer dan 40 uur"].map(S=>t.jsxs("label",{className:"flex items-center gap-2 cursor-pointer",children:[t.jsx("input",{type:"radio",name:"tijdsbesteding_uren",value:S,checked:e.tijdsbesteding_uren===S,onChange:E=>y("tijdsbesteding_uren",E.target.value),className:"w-4 h-4"}),t.jsx("span",{children:S})]},S))})]}),t.jsxs("div",{children:[t.jsxs("label",{className:"block font-semibold mb-2",children:["Welke kansen laat jullie nu liggen door gebrek aan tijd, mensen of middelen?",t.jsx("br",{}),t.jsx("span",{className:"text-sm font-normal text-gray-600",children:"(Bijvoorbeeld: meer klanten kunnen helpen, betere service, nieuwe producten ontwikkelen, etc.)"})]}),t.jsx(pt,{value:e.gemiste_kansen,onChange:S=>y("gemiste_kansen",S.target.value),rows:4})]})]})]}),t.jsxs("section",{children:[t.jsx("h2",{className:"text-2xl font-bold mb-6 pb-2 border-b-2 border-[#FAB868]",children:"DEEL 3: Systemen & Data"}),t.jsxs("div",{className:"space-y-6",children:[t.jsxs("div",{children:[t.jsxs("label",{className:"block font-semibold mb-3",children:["Welke systemen/tools gebruiken jullie dagelijks?",t.jsx("br",{}),t.jsx("span",{className:"text-sm font-normal text-gray-600",children:"(Meerdere antwoorden mogelijk)"})]}),t.jsx("div",{className:"space-y-2",children:["CRM (bijv. Salesforce, HubSpot, Pipedrive)","ERP (bijv. Exact, Afas, SAP)","Email (bijv. Gmail, Outlook)","Projectmanagement (bijv. Asana, Monday, Jira)","Communicatie (bijv. Teams, Slack, WhatsApp)","Boekhouding (bijv. Exact Online, Twinfield)","Spreadsheets (Excel, Google Sheets)","Documenten (Word, Google Docs, SharePoint)","Website/E-commerce","Anders"].map(S=>t.jsxs("label",{className:"flex items-center gap-2 cursor-pointer",children:[t.jsx(Rh,{checked:e.gebruikte_systemen.includes(S),onCheckedChange:E=>x("gebruikte_systemen",S,E)}),t.jsx("span",{children:S})]},S))})]}),t.jsxs("div",{children:[t.jsx("label",{className:"block font-semibold mb-3",children:"Zijn jullie systemen aan elkaar gekoppeld?"}),t.jsx("div",{className:"space-y-2",children:["Ja, de meeste systemen zijn geïntegreerd","Gedeeltelijk, sommige wel, sommige niet","Nee, alles werkt los van elkaar","Weet ik niet"].map(S=>t.jsxs("label",{className:"flex items-center gap-2 cursor-pointer",children:[t.jsx("input",{type:"radio",name:"systemen_gekoppeld",value:S,checked:e.systemen_gekoppeld===S,onChange:E=>y("systemen_gekoppeld",E.target.value),className:"w-4 h-4"}),t.jsx("span",{children:S})]},S))})]}),t.jsxs("div",{children:[t.jsxs("label",{className:"block font-semibold mb-3",children:["Waar zit jullie belangrijkste bedrijfskennis?",t.jsx("br",{}),t.jsx("span",{className:"text-sm font-normal text-gray-600",children:"(Meerdere antwoorden mogelijk)"})]}),t.jsx("div",{className:"space-y-2",children:["In de hoofden van medewerkers","In documenten (Word, PDF)","In databases/systemen","In spreadsheets","In emails","In chat-systemen (Teams, Slack)","We hebben eigenlijk weinig gedocumenteerd","Anders"].map(S=>t.jsxs("label",{className:"flex items-center gap-2 cursor-pointer",children:[t.jsx(Rh,{checked:e.bedrijfskennis_locatie.includes(S),onCheckedChange:E=>x("bedrijfskennis_locatie",S,E)}),t.jsx("span",{children:S})]},S))})]}),t.jsxs("div",{children:[t.jsx("label",{className:"block font-semibold mb-3",children:"Hoe makkelijk kunnen medewerkers informatie vinden die ze nodig hebben?"}),t.jsx("div",{className:"space-y-2",children:["Heel makkelijk, alles is goed georganiseerd","Redelijk, met wat zoeken lukt het wel","Moeilijk, we zijn veel tijd kwijt aan zoeken","Zeer moeilijk, kennis verdwijnt bij vertrek personeel"].map(S=>t.jsxs("label",{className:"flex items-center gap-2 cursor-pointer",children:[t.jsx("input",{type:"radio",name:"informatie_vindbaarheid",value:S,checked:e.informatie_vindbaarheid===S,onChange:E=>y("informatie_vindbaarheid",E.target.value),className:"w-4 h-4"}),t.jsx("span",{children:S})]},S))})]})]})]}),t.jsxs("section",{children:[t.jsx("h2",{className:"text-2xl font-bold mb-6 pb-2 border-b-2 border-[#FAB868]",children:"DEEL 4: AI-Readiness"}),t.jsxs("div",{className:"space-y-6",children:[t.jsxs("div",{children:[t.jsx("label",{className:"block font-semibold mb-3",children:"Gebruiken jullie of jullie team al AI-tools?"}),t.jsx("div",{className:"space-y-2",children:["Nee, nog helemaal niet","Ja, af en toe (bijv. ChatGPT voor losse vragen)","Ja, regelmatig voor specifieke taken","Ja, geïntegreerd in onze werkprocessen"].map(S=>t.jsxs("label",{className:"flex items-center gap-2 cursor-pointer",children:[t.jsx("input",{type:"radio",name:"ai_gebruik",value:S,checked:e.ai_gebruik===S,onChange:E=>y("ai_gebruik",E.target.value),className:"w-4 h-4"}),t.jsx("span",{children:S})]},S))})]}),t.jsxs("div",{children:[t.jsx("label",{className:"block font-semibold mb-2",children:"Zo ja, welke AI-tools gebruiken jullie en waarvoor?"}),t.jsx(pt,{value:e.ai_tools_welke,onChange:S=>y("ai_tools_welke",S.target.value),rows:3})]}),t.jsxs("div",{children:[t.jsx("label",{className:"block font-semibold mb-3",children:"Wat is jullie ervaring met AI tot nu toe?"}),t.jsx("div",{className:"space-y-2",children:["Zeer positief, we zien veel waarde","Positief, het helpt hier en daar","Neutraal, nog geen duidelijke mening","Negatief, valt tegen","We hebben nog geen ervaring","Anders"].map(S=>t.jsxs("label",{className:"flex items-center gap-2 cursor-pointer",children:[t.jsx("input",{type:"radio",name:"ai_ervaring",value:S,checked:e.ai_ervaring===S,onChange:E=>y("ai_ervaring",E.target.value),className:"w-4 h-4"}),t.jsx("span",{children:S})]},S))})]}),t.jsxs("div",{children:[t.jsx("label",{className:"block font-semibold mb-3",children:"Hoe kijkt het management/eigenaar aan tegen AI?"}),t.jsx("div",{className:"space-y-2",children:["Zeer enthousiast, wil er graag mee aan de slag","Positief, open voor mogelijkheden","Afwachtend, eerst zien dan geloven","Sceptisch, ziet vooral risico's","Neutraal/geen sterke mening","Verschillend per persoon"].map(S=>t.jsxs("label",{className:"flex items-center gap-2 cursor-pointer",children:[t.jsx("input",{type:"radio",name:"management_houding",value:S,checked:e.management_houding===S,onChange:E=>y("management_houding",E.target.value),className:"w-4 h-4"}),t.jsx("span",{children:S})]},S))})]}),t.jsxs("div",{children:[t.jsx("label",{className:"block font-semibold mb-3",children:"Hoe kijken medewerkers aan tegen AI?"}),t.jsx("div",{className:"space-y-2",children:["Enthousiast, willen ermee experimenteren","Positief, als het helpt is het goed","Neutraal, geen sterke mening","Bezorgd over impact op hun werk/rol","Weerstand, liever niet","Verschillend per persoon"].map(S=>t.jsxs("label",{className:"flex items-center gap-2 cursor-pointer",children:[t.jsx("input",{type:"radio",name:"medewerkers_houding",value:S,checked:e.medewerkers_houding===S,onChange:E=>y("medewerkers_houding",E.target.value),className:"w-4 h-4"}),t.jsx("span",{children:S})]},S))})]}),t.jsxs("div",{children:[t.jsx("label",{className:"block font-semibold mb-2",children:"Zijn er specifieke zorgen of vragen over AI?"}),t.jsx(pt,{value:e.ai_zorgen,onChange:S=>y("ai_zorgen",S.target.value),rows:3})]})]})]}),t.jsxs("section",{children:[t.jsx("h2",{className:"text-2xl font-bold mb-6 pb-2 border-b-2 border-[#FAB868]",children:"DEEL 5: Doelen & Verwachtingen"}),t.jsxs("div",{className:"space-y-6",children:[t.jsxs("div",{children:[t.jsxs("label",{className:"block font-semibold mb-3",children:["Wat is de belangrijkste reden om met 48-7 in gesprek te gaan?",t.jsx("br",{}),t.jsx("span",{className:"text-sm font-normal text-gray-600",children:"(Meerdere antwoorden mogelijk)"})]}),t.jsx("div",{className:"space-y-2",children:["Tijd besparen op repetitieve taken","Productiviteit verhogen","Kosten verlagen","Omzet verhogen","Betere service aan klanten","Schaalbaarheid vergroten","Concurrentievoordeel behalen","Kennis beter behouden/delen","Betere beslissingen kunnen nemen","Algemene verkenning wat AI kan betekenen","Anders"].map(S=>t.jsxs("label",{className:"flex items-center gap-2 cursor-pointer",children:[t.jsx(Rh,{checked:e.redenen_contact.includes(S),onCheckedChange:E=>x("redenen_contact",S,E)}),t.jsx("span",{children:S})]},S))})]}),t.jsxs("div",{children:[t.jsx("label",{className:"block font-semibold mb-2",children:"Als jullie over 6-12 maanden terugkijken, wat zou dan een succesvol resultaat zijn?"}),t.jsx(pt,{value:e.succesvol_resultaat,onChange:S=>y("succesvol_resultaat",S.target.value),rows:4})]}),t.jsxs("div",{children:[t.jsx("label",{className:"block font-semibold mb-3",children:"Hoe urgent is dit voor jullie?"}),t.jsx("div",{className:"space-y-2",children:["Zeer urgent, we willen zo snel mogelijk starten","Redelijk urgent, binnen 1-3 maanden","Niet urgent, we verkennen nog","Afhankelijk van wat we ontdekken"].map(S=>t.jsxs("label",{className:"flex items-center gap-2 cursor-pointer",children:[t.jsx("input",{type:"radio",name:"urgentie",value:S,checked:e.urgentie===S,onChange:E=>y("urgentie",E.target.value),className:"w-4 h-4"}),t.jsx("span",{children:S})]},S))})]}),t.jsxs("div",{children:[t.jsx("label",{className:"block font-semibold mb-3",children:"Is er budget beschikbaar voor AI-implementatie?"}),t.jsx("div",{className:"space-y-2",children:["Ja, budget is gereserveerd","Mogelijk, bij goede business case","Beperkt, moeten klein beginnen","Nee, nog niet in huidige planning","Weet ik nog niet","Geef ik liever tijdens gesprek aan"].map(S=>t.jsxs("label",{className:"flex items-center gap-2 cursor-pointer",children:[t.jsx("input",{type:"radio",name:"budget_beschikbaar",value:S,checked:e.budget_beschikbaar===S,onChange:E=>y("budget_beschikbaar",E.target.value),className:"w-4 h-4"}),t.jsx("span",{children:S})]},S))})]}),t.jsxs("div",{children:[t.jsx("label",{className:"block font-semibold mb-3",children:"Indicatie budget range (optioneel)"}),t.jsx("div",{className:"space-y-2",children:["< €5.000","€5.000 - €15.000","€15.000 - €30.000","€30.000 - €50.000","€50.000+","Geef ik liever niet aan"].map(S=>t.jsxs("label",{className:"flex items-center gap-2 cursor-pointer",children:[t.jsx("input",{type:"radio",name:"budget_range",value:S,checked:e.budget_range===S,onChange:E=>y("budget_range",E.target.value),className:"w-4 h-4"}),t.jsx("span",{children:S})]},S))})]})]})]}),t.jsxs("section",{children:[t.jsx("h2",{className:"text-2xl font-bold mb-6 pb-2 border-b-2 border-[#FAB868]",children:"DEEL 6: Discovery Sessie"}),t.jsxs("div",{className:"space-y-6",children:[t.jsxs("div",{children:[t.jsx("label",{className:"block font-semibold mb-2",children:"Zijn er specifieke onderwerpen die jullie zeker besproken willen hebben?"}),t.jsx(pt,{value:e.specifieke_onderwerpen,onChange:S=>y("specifieke_onderwerpen",S.target.value),rows:4})]}),t.jsxs("div",{children:[t.jsxs("label",{className:"block font-semibold mb-2",children:["Zijn er documenten/informatie die jullie vooraf willen delen?",t.jsx("br",{}),t.jsx("span",{className:"text-sm font-normal text-gray-600",children:"(Bijvoorbeeld: organogram, processchema's, huidige toolstack, eerdere analyses)"})]}),t.jsx(pt,{value:e.te_delen_documenten,onChange:S=>y("te_delen_documenten",S.target.value),rows:3,placeholder:"Beschrijf welke documenten je wilt delen..."}),t.jsxs("div",{className:"mt-4",children:[t.jsx("label",{className:"block font-semibold mb-2",children:"Upload documenten"}),t.jsxs("div",{className:"border-2 border-dashed border-gray-300 rounded-xl p-6 text-center",children:[t.jsx("input",{type:"file",multiple:!0,onChange:N,disabled:h,className:"hidden",id:"file-upload",accept:".pdf,.doc,.docx,.xls,.xlsx,.ppt,.pptx,.jpg,.jpeg,.png"}),t.jsxs("label",{htmlFor:"file-upload",className:"cursor-pointer flex flex-col items-center",children:[t.jsx(TA,{className:"w-8 h-8 text-gray-400 mb-2"}),t.jsx("span",{className:"text-sm text-gray-600",children:h?"Bezig met uploaden...":"Klik om bestanden te uploaden"}),t.jsx("span",{className:"text-xs text-gray-400 mt-1",children:"PDF, Word, Excel, PowerPoint, afbeeldingen"})]})]}),e.geupload_documenten.length>0&&t.jsx("div",{className:"mt-3 space-y-2",children:e.geupload_documenten.map((S,E)=>t.jsxs("div",{className:"flex items-center justify-between bg-gray-50 p-3 rounded-lg",children:[t.jsx("span",{className:"text-sm text-gray-700 truncate flex-1",children:S.split("/").pop()}),t.jsx("button",{type:"button",onClick:()=>w(S),className:"ml-2 text-red-600 hover:text-red-800",children:t.jsx(rn,{className:"w-4 h-4"})})]},E))})]})]})]})]}),t.jsxs("section",{children:[t.jsx("h2",{className:"text-2xl font-bold mb-6 pb-2 border-b-2 border-[#FAB868]",children:"DEEL 7: Aanvullende Informatie"}),t.jsx("div",{className:"space-y-6",children:t.jsxs("div",{children:[t.jsx("label",{className:"block font-semibold mb-2",children:"Is er nog iets dat wij zouden moeten weten voordat we met jullie in gesprek gaan?"}),t.jsx(pt,{value:e.overige_informatie,onChange:S=>y("overige_informatie",S.target.value),rows:5})]})})]}),d&&t.jsxs("div",{className:"bg-red-50 border-l-4 border-red-500 p-4 text-red-700",children:[t.jsx("p",{className:"font-semibold mb-2",children:d}),b.length>0&&t.jsx("ul",{className:"list-disc list-inside text-sm space-y-1 mt-2",children:b.map((S,E)=>t.jsx("li",{children:S},E))})]}),t.jsx("div",{className:"pt-6 border-t-2",children:t.jsx(se,{type:"submit",disabled:r,className:"w-full md:w-auto px-12 py-6 text-lg bg-[#FAB868] hover:bg-[#E5A04D] text-[#0D0D0F] font-bold",children:r?t.jsxs(t.Fragment,{children:[t.jsx(SA,{className:"w-5 h-5 mr-2 animate-spin"}),"Verzenden..."]}):"Discovery Scan Verzenden"})})]})]})})})}function nee(){const[e,n]=F.useState("input"),[r,i]=F.useState({url:"",description:""}),[s,a]=F.useState({sector:"",target_audience:"",ai_usage:"",ai_purpose:[],ai_decisions:"",human_oversight:"",high_risk_processes:[],processes_personal_data:"",sensitive_personal_data:"",ai_origin:"",ai_transparency:"",ai_responsible:"",risk_evaluation:"",user_notification:""}),[o,c]=F.useState(!1),[d,f]=F.useState(null),[h,m]=F.useState(null),[p,g]=F.useState(null),[b,j]=F.useState(!1),[y,x]=F.useState([]),[N,w]=F.useState(!1),[k,A]=F.useState({name:"",email:""}),[S,E]=F.useState(!1),[C,B]=F.useState(!1),[I,R]=F.useState(!1);F.useEffect(()=>{const K=new URLSearchParams(window.location.search).get("report_id");K&&D(K)},[]),F.useEffect(()=>{(e==="submitted"||e==="results")&&window.scrollTo({top:0,behavior:"smooth"})},[e]);const D=async H=>{var K,Q;R(!0),g(null);try{const{data:O}=await ue.functions.invoke("getEuAiActReport",{submission_id:H});O.success&&O.analysis?(f(O.analysis),m(H),n("results")):g(O.error||"Rapport niet gevonden")}catch(O){console.error("Error loading shared report:",O),g(((Q=(K=O.response)==null?void 0:K.data)==null?void 0:Q.error)||O.message||"Kon rapport niet laden. Controleer de link en probeer opnieuw.")}finally{R(!1)}},q=H=>{if(H.preventDefault(),!r.url&&!r.description){g("Vul een website URL of beschrijving in");return}n("questionnaire")},z=async()=>{if(!k.email||!k.name){g("Vul je naam en email in om de analyse te ontvangen"),window.scrollTo({top:0,behavior:"smooth"});return}n("analyzing"),c(!0),g(null),f(null);try{const{data:H}=await ue.functions.invoke("createEuAiActRequest",{website_url:r.url,company_description:r.description,questionnaire:s,user_email:k.email,user_name:k.name});if(H.success){if(H.submission_id)try{const K=await ue.functions.invoke("sendEuAiActReport",{submission_id:H.submission_id,recipient_email:k.email,recipient_name:k.name});console.log("Email sent:",K.data)}catch(K){console.error("Email send error:",K)}n("submitted"),window.scrollTo({top:0,behavior:"smooth"})}else g(H.error||"Er ging iets mis bij het indienen van de aanvraag"),window.scrollTo({top:0,behavior:"smooth"}),n("questionnaire")}catch(H){console.error("Error submitting request:",H),g("Kon de aanvraag niet indienen. Probeer het opnieuw."),n("questionnaire")}finally{c(!1)}},U=H=>{switch(H==null?void 0:H.toLowerCase()){case"onaanvaardbaar":return t.jsx(Ms,{className:"w-6 h-6 text-red-600"});case"hoog":return t.jsx(Uo,{className:"w-6 h-6 text-orange-600"});case"beperkt":return t.jsx(gh,{className:"w-6 h-6 text-yellow-600"});case"minimaal":return t.jsx(vt,{className:"w-6 h-6 text-green-600"});default:return t.jsx(gh,{className:"w-6 h-6 text-gray-600"})}},Y=H=>{switch(H==null?void 0:H.toLowerCase()){case"onaanvaardbaar":return"bg-red-50 border-red-200";case"hoog":return"bg-orange-50 border-orange-200";case"beperkt":return"bg-yellow-50 border-yellow-200";case"minimaal":return"bg-green-50 border-green-200";default:return"bg-gray-50 border-gray-200"}};return e==="questionnaire"?t.jsx("div",{className:"pt-20 min-h-screen bg-gradient-to-b from-blue-50 to-white",children:t.jsxs("div",{className:"max-w-3xl mx-auto px-4 sm:px-6 lg:px-8 py-12",children:[t.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"text-center mb-8",children:[t.jsxs("div",{className:"inline-flex items-center gap-2 px-4 py-2 bg-blue-100 rounded-full text-blue-700 text-sm font-medium mb-6",children:[t.jsx(Zn,{className:"w-4 h-4"}),"Stap 2 van 3: Vragenlijst"]}),t.jsx("h1",{className:"text-3xl font-bold text-gray-900 mb-4",children:"Vertel ons meer over je AI-gebruik"}),t.jsx("p",{className:"text-gray-600",children:"Dit helpt ons een nauwkeurigere compliance-analyse te maken"})]}),t.jsxs("div",{className:"bg-white rounded-2xl p-8 border border-gray-100 space-y-8",children:[t.jsxs("div",{children:[t.jsx("h3",{className:"text-lg font-bold text-gray-900 mb-4",children:"Bedrijfscontext"}),t.jsxs("div",{className:"space-y-4",children:[t.jsxs("div",{children:[t.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"In welke sector is jullie bedrijf actief?"}),t.jsxs("select",{value:s.sector,onChange:H=>a({...s,sector:H.target.value}),className:"w-full px-4 py-3 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500",children:[t.jsx("option",{value:"",children:"Selecteer sector"}),t.jsx("option",{value:"retail",children:"Retail / e-commerce"}),t.jsx("option",{value:"financial",children:"Financieel"}),t.jsx("option",{value:"hr",children:"HR / recruitment"}),t.jsx("option",{value:"healthcare",children:"Zorg"}),t.jsx("option",{value:"industry",children:"Industrie / logistiek"}),t.jsx("option",{value:"marketing",children:"Marketing / media"}),t.jsx("option",{value:"it",children:"IT / SaaS"}),t.jsx("option",{value:"government",children:"Overheid / semi-overheid"}),t.jsx("option",{value:"other",children:"Anders"})]})]}),t.jsxs("div",{children:[t.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Voor wie zijn jullie diensten vooral bedoeld?"}),t.jsxs("select",{value:s.target_audience,onChange:H=>a({...s,target_audience:H.target.value}),className:"w-full px-4 py-3 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500",children:[t.jsx("option",{value:"",children:"Selecteer doelgroep"}),t.jsx("option",{value:"consumers",children:"Consumenten"}),t.jsx("option",{value:"businesses",children:"Bedrijven"}),t.jsx("option",{value:"both",children:"Beide"})]})]})]})]}),t.jsxs("div",{children:[t.jsx("h3",{className:"text-lg font-bold text-gray-900 mb-4",children:"AI gebruik"}),t.jsxs("div",{className:"space-y-4",children:[t.jsxs("div",{children:[t.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Wordt AI gebruikt binnen jullie organisatie?"}),t.jsxs("select",{value:s.ai_usage,onChange:H=>a({...s,ai_usage:H.target.value}),className:"w-full px-4 py-3 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500",children:[t.jsx("option",{value:"",children:"Selecteer"}),t.jsx("option",{value:"active",children:"Ja, actief"}),t.jsx("option",{value:"limited",children:"Ja, beperkt / experimenten"}),t.jsx("option",{value:"no",children:"Nee"}),t.jsx("option",{value:"unknown",children:"Weet ik niet"})]})]}),(s.ai_usage==="active"||s.ai_usage==="limited")&&t.jsxs("div",{children:[t.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Waarvoor gebruiken jullie AI vooral? (meerdere keuzes mogelijk)"}),t.jsx("div",{className:"space-y-2",children:["Klantenservice (chatbots, mail)","Marketing / content","Analyse / voorspellingen","Besluitvorming","Product / software","HR","Anders"].map(H=>t.jsxs("label",{className:"flex items-center gap-2",children:[t.jsx("input",{type:"checkbox",checked:s.ai_purpose.includes(H),onChange:K=>{K.target.checked?a({...s,ai_purpose:[...s.ai_purpose,H]}):a({...s,ai_purpose:s.ai_purpose.filter(Q=>Q!==H)})},className:"w-4 h-4 text-blue-600 rounded focus:ring-blue-500"}),t.jsx("span",{className:"text-gray-700",children:H})]},H))})]})]})]}),t.jsxs("div",{children:[t.jsx("h3",{className:"text-lg font-bold text-gray-900 mb-4",children:"Impact op mensen"}),t.jsxs("div",{className:"space-y-4",children:[t.jsxs("div",{children:[t.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Neemt AI beslissingen die directe gevolgen hebben voor mensen?"}),t.jsx("p",{className:"text-xs text-gray-500 mb-2",children:"Bijv: afwijzing sollicitant, kredietscore, prijsbepaling, toegang tot dienst"}),t.jsxs("select",{value:s.ai_decisions,onChange:H=>a({...s,ai_decisions:H.target.value}),className:"w-full px-4 py-3 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500",children:[t.jsx("option",{value:"",children:"Selecteer"}),t.jsx("option",{value:"yes",children:"Ja"}),t.jsx("option",{value:"no",children:"Nee"}),t.jsx("option",{value:"unknown",children:"Weet ik niet"})]})]}),t.jsxs("div",{children:[t.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Is er altijd een mens die de AI-uitkomst controleert of kan overrulen?"}),t.jsxs("select",{value:s.human_oversight,onChange:H=>a({...s,human_oversight:H.target.value}),className:"w-full px-4 py-3 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500",children:[t.jsx("option",{value:"",children:"Selecteer"}),t.jsx("option",{value:"yes",children:"Ja"}),t.jsx("option",{value:"sometimes",children:"Soms"}),t.jsx("option",{value:"no",children:"Nee"})]})]})]})]}),t.jsxs("div",{children:[t.jsx("h3",{className:"text-lg font-bold text-gray-900 mb-4",children:"Gevoelige toepassingen"}),t.jsxs("div",{className:"space-y-4",children:[t.jsxs("div",{children:[t.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Wordt AI gebruikt in één van deze processen? (meerdere keuzes mogelijk)"}),t.jsx("div",{className:"space-y-2",children:["Werving & selectie","Beoordeling medewerkers","Krediet / financiële beoordeling","Fraude-detectie","Toegang tot diensten of producten","Biometrie (gezicht, stem, gedrag)","Geen van bovenstaande"].map(H=>t.jsxs("label",{className:"flex items-center gap-2",children:[t.jsx("input",{type:"checkbox",checked:s.high_risk_processes.includes(H),onChange:K=>{K.target.checked?a({...s,high_risk_processes:[...s.high_risk_processes,H]}):a({...s,high_risk_processes:s.high_risk_processes.filter(Q=>Q!==H)})},className:"w-4 h-4 text-blue-600 rounded focus:ring-blue-500"}),t.jsx("span",{className:"text-gray-700",children:H})]},H))})]}),t.jsxs("div",{children:[t.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Verwerkt AI persoonsgegevens?"}),t.jsxs("select",{value:s.processes_personal_data,onChange:H=>a({...s,processes_personal_data:H.target.value}),className:"w-full px-4 py-3 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500",children:[t.jsx("option",{value:"",children:"Selecteer"}),t.jsx("option",{value:"yes",children:"Ja"}),t.jsx("option",{value:"no",children:"Nee"}),t.jsx("option",{value:"unknown",children:"Weet ik niet"})]})]}),s.processes_personal_data==="yes"&&t.jsxs("div",{children:[t.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Gaat het om gevoelige persoonsgegevens?"}),t.jsx("p",{className:"text-xs text-gray-500 mb-2",children:"Bijv: gezondheid, etniciteit, biometrie"}),t.jsxs("select",{value:s.sensitive_personal_data,onChange:H=>a({...s,sensitive_personal_data:H.target.value}),className:"w-full px-4 py-3 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500",children:[t.jsx("option",{value:"",children:"Selecteer"}),t.jsx("option",{value:"yes",children:"Ja"}),t.jsx("option",{value:"no",children:"Nee"}),t.jsx("option",{value:"unknown",children:"Weet ik niet"})]})]})]})]}),t.jsxs("div",{children:[t.jsx("h3",{className:"text-lg font-bold text-gray-900 mb-4",children:"Software & herkomst"}),t.jsxs("div",{className:"space-y-4",children:[t.jsxs("div",{children:[t.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Hoe komt de AI tot stand?"}),t.jsxs("select",{value:s.ai_origin,onChange:H=>a({...s,ai_origin:H.target.value}),className:"w-full px-4 py-3 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500",children:[t.jsx("option",{value:"",children:"Selecteer"}),t.jsx("option",{value:"self_developed",children:"Zelf ontwikkeld"}),t.jsx("option",{value:"vendor",children:"Ingekocht bij leverancier"}),t.jsx("option",{value:"tools",children:"Via tools zoals ChatGPT, Copilot, Midjourney"}),t.jsx("option",{value:"combination",children:"Combinatie"})]})]}),t.jsxs("div",{children:[t.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Weten jullie hoe de AI tot zijn uitkomsten komt?"}),t.jsxs("select",{value:s.ai_transparency,onChange:H=>a({...s,ai_transparency:H.target.value}),className:"w-full px-4 py-3 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500",children:[t.jsx("option",{value:"",children:"Selecteer"}),t.jsx("option",{value:"well_documented",children:"Ja, goed gedocumenteerd"}),t.jsx("option",{value:"partially",children:"Gedeeltelijk"}),t.jsx("option",{value:"no",children:"Nee"})]})]})]})]}),t.jsxs("div",{children:[t.jsx("h3",{className:"text-lg font-bold text-gray-900 mb-4",children:"Governance & compliance"}),t.jsxs("div",{className:"space-y-4",children:[t.jsxs("div",{children:[t.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Is iemand formeel verantwoordelijk voor AI binnen de organisatie?"}),t.jsxs("select",{value:s.ai_responsible,onChange:H=>a({...s,ai_responsible:H.target.value}),className:"w-full px-4 py-3 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500",children:[t.jsx("option",{value:"",children:"Selecteer"}),t.jsx("option",{value:"yes",children:"Ja"}),t.jsx("option",{value:"no",children:"Nee"})]})]}),t.jsxs("div",{children:[t.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Worden AI-risico's periodiek geëvalueerd?"}),t.jsxs("select",{value:s.risk_evaluation,onChange:H=>a({...s,risk_evaluation:H.target.value}),className:"w-full px-4 py-3 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500",children:[t.jsx("option",{value:"",children:"Selecteer"}),t.jsx("option",{value:"yes",children:"Ja"}),t.jsx("option",{value:"no",children:"Nee"}),t.jsx("option",{value:"unknown",children:"Weet ik niet"})]})]}),t.jsxs("div",{children:[t.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Informeren jullie gebruikers dat AI wordt ingezet?"}),t.jsxs("select",{value:s.user_notification,onChange:H=>a({...s,user_notification:H.target.value}),className:"w-full px-4 py-3 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500",children:[t.jsx("option",{value:"",children:"Selecteer"}),t.jsx("option",{value:"yes",children:"Ja"}),t.jsx("option",{value:"sometimes",children:"Soms"}),t.jsx("option",{value:"no",children:"Nee"})]})]})]})]}),t.jsxs("div",{children:[t.jsx("h3",{className:"text-lg font-bold text-gray-900 mb-4",children:"Ontvang je analyse"}),t.jsxs("div",{className:"grid sm:grid-cols-2 gap-4",children:[t.jsxs("div",{children:[t.jsxs("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:["Naam ",t.jsx("span",{className:"text-red-600 font-bold text-lg",children:"*"})]}),t.jsx("p",{className:"text-xs text-gray-500 mb-2",children:"(Verplicht veld)"}),t.jsx(me,{type:"text",placeholder:"Je naam",value:k.name,onChange:H=>A({...k,name:H.target.value}),className:k.name?"":"border-red-300 bg-red-50",required:!0})]}),t.jsxs("div",{children:[t.jsxs("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:["Email ",t.jsx("span",{className:"text-red-600 font-bold text-lg",children:"*"})]}),t.jsx("p",{className:"text-xs text-gray-500 mb-2",children:"(Verplicht veld)"}),t.jsx(me,{type:"email",placeholder:"je@email.nl",value:k.email,onChange:H=>A({...k,email:H.target.value}),className:k.email?"":"border-red-300 bg-red-50",required:!0})]})]})]}),t.jsxs("div",{className:"flex gap-4 pt-6 border-t border-gray-200",children:[t.jsx(se,{variant:"outline",onClick:()=>n("input"),className:"flex-1",children:"Vorige"}),t.jsx(se,{onClick:z,disabled:o||!k.email||!k.name,className:"flex-1 bg-blue-600 hover:bg-blue-700",children:o?"Indienen...":"Analyseer"})]})]})]})}):I?t.jsx("div",{className:"pt-20 min-h-screen bg-gradient-to-b from-blue-50 to-white",children:t.jsx("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 py-32 text-center",children:t.jsxs(Z.div,{initial:{opacity:0,scale:.9},animate:{opacity:1,scale:1},children:[t.jsx("div",{className:"w-20 h-20 bg-blue-100 rounded-full flex items-center justify-center mx-auto mb-6",children:t.jsxs("svg",{className:"animate-spin w-10 h-10 text-blue-600",viewBox:"0 0 24 24",children:[t.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4",fill:"none"}),t.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4z"})]})}),t.jsx("h1",{className:"text-3xl font-bold text-gray-900 mb-4",children:"Rapport aan het laden..."})]})})}):e==="submitted"?t.jsx("div",{className:"pt-20 min-h-screen bg-gradient-to-b from-green-50 to-white",children:t.jsx("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 py-32 text-center",children:t.jsxs(Z.div,{initial:{opacity:0,scale:.9},animate:{opacity:1,scale:1},children:[t.jsx("div",{className:"w-20 h-20 bg-green-100 rounded-full flex items-center justify-center mx-auto mb-6",children:t.jsx(vt,{className:"w-10 h-10 text-green-600"})}),t.jsx("h1",{className:"text-3xl font-bold text-gray-900 mb-4",children:"Aanvraag ontvangen!"}),t.jsxs("p",{className:"text-xl text-gray-600 mb-8",children:["Je ontvangt de EU AI Act compliance analyse binnen enkele minuten per email op ",t.jsx("strong",{children:k.email})]}),t.jsxs("div",{className:"bg-white rounded-2xl p-6 max-w-md mx-auto border border-gray-100 mb-8",children:[t.jsx("p",{className:"text-sm text-gray-600 mb-4",children:"De analyse wordt momenteel uitgevoerd. Dit kan enkele minuten duren omdat we:"}),t.jsxs("ul",{className:"text-left space-y-2 text-sm text-gray-700",children:[t.jsxs("li",{className:"flex items-start gap-2",children:[t.jsx(vt,{className:"w-4 h-4 text-green-500 mt-0.5 flex-shrink-0"}),t.jsx("span",{children:"Je bedrijfscontext analyseren"})]}),t.jsxs("li",{className:"flex items-start gap-2",children:[t.jsx(vt,{className:"w-4 h-4 text-green-500 mt-0.5 flex-shrink-0"}),t.jsx("span",{children:"AI-toepassingen classificeren"})]}),t.jsxs("li",{className:"flex items-start gap-2",children:[t.jsx(vt,{className:"w-4 h-4 text-green-500 mt-0.5 flex-shrink-0"}),t.jsx("span",{children:"Compliance vereisten bepalen"})]})]})]}),t.jsx(se,{onClick:()=>window.location.href=oe("Home"),className:"bg-gray-900 text-white hover:bg-gray-800",children:"Terug naar home"})]})})}):p?t.jsx("div",{className:"pt-20 min-h-screen bg-gradient-to-b from-red-50 to-white",children:t.jsx("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 py-32 text-center",children:t.jsxs(Z.div,{initial:{opacity:0,scale:.9},animate:{opacity:1,scale:1},children:[t.jsx("div",{className:"w-20 h-20 bg-red-100 rounded-full flex items-center justify-center mx-auto mb-6",children:t.jsx(Ms,{className:"w-10 h-10 text-red-600"})}),t.jsx("h1",{className:"text-3xl font-bold text-gray-900 mb-4",children:"Er ging iets mis"}),t.jsx("p",{className:"text-xl text-gray-600 mb-8",children:p}),t.jsx(se,{onClick:()=>{g(null),i({url:"",description:""})},className:"bg-gray-900 text-white hover:bg-gray-800",children:"Probeer opnieuw"})]})})}):d?t.jsx("div",{className:"pt-20 min-h-screen bg-gradient-to-b from-gray-50 to-white",children:t.jsxs("div",{className:"max-w-5xl mx-auto px-4 sm:px-6 lg:px-8 py-12",children:[t.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"text-center mb-12",children:[t.jsxs("div",{className:"inline-flex items-center gap-2 px-4 py-2 bg-blue-100 rounded-full text-blue-700 text-sm font-medium mb-6",children:[t.jsx(Zn,{className:"w-4 h-4"}),"EU AI Act Compliance Check"]}),t.jsx("h1",{className:"text-4xl font-bold text-gray-900 mb-4",children:d.company_name}),t.jsx("p",{className:"text-xl text-gray-600",children:"Compliance analyse voor de EU AI Act"})]}),d.company_overview&&t.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.1},className:"bg-white rounded-2xl p-8 mb-8 border border-gray-100",children:[t.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[t.jsx(Ga,{className:"w-6 h-6 text-blue-600"}),t.jsx("h2",{className:"text-2xl font-bold text-gray-900",children:"Bedrijfsoverzicht"})]}),t.jsx("p",{className:"text-gray-700",children:d.company_overview})]}),d.identified_ai_applications&&d.identified_ai_applications.length>0&&t.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.2},className:"bg-white rounded-2xl p-8 mb-8 border border-gray-100",children:[t.jsx("h2",{className:"text-2xl font-bold text-gray-900 mb-6",children:"Geïdentificeerde AI Toepassingen"}),t.jsx("div",{className:"space-y-4",children:d.identified_ai_applications.map((H,K)=>{var Q,O,T;return t.jsx("div",{className:`p-6 rounded-xl border-2 ${Y(H.risk_level)}`,children:t.jsxs("div",{className:"flex items-start gap-4",children:[U(H.risk_level),t.jsxs("div",{className:"flex-1",children:[t.jsxs("div",{className:"flex items-start justify-between mb-2",children:[t.jsx("h3",{className:"text-lg font-bold text-gray-900",children:H.application_name}),t.jsx("span",{className:`px-3 py-1 rounded-full text-sm font-semibold ${((Q=H.risk_level)==null?void 0:Q.toLowerCase())==="onaanvaardbaar"?"bg-red-100 text-red-800":((O=H.risk_level)==null?void 0:O.toLowerCase())==="hoog"?"bg-orange-100 text-orange-800":((T=H.risk_level)==null?void 0:T.toLowerCase())==="beperkt"?"bg-yellow-100 text-yellow-800":"bg-green-100 text-green-800"}`,children:H.risk_level})]}),t.jsx("p",{className:"text-gray-700 mb-3",children:H.description}),H.applicable_articles&&t.jsxs("div",{className:"bg-blue-50 p-3 rounded-lg mb-3",children:[t.jsx("p",{className:"text-sm font-medium text-blue-900 mb-1",children:"📜 Van toepassing:"}),t.jsx("p",{className:"text-sm text-blue-800",children:H.applicable_articles})]}),t.jsxs("div",{className:"bg-white/50 p-3 rounded-lg mb-3",children:[t.jsx("p",{className:"text-sm font-medium text-gray-700 mb-1",children:"⚖️ Risicorechtvaardiging:"}),t.jsx("p",{className:"text-sm text-gray-600",children:H.risk_justification})]}),H.detailed_explanation&&t.jsxs("div",{className:"bg-gray-50 p-3 rounded-lg",children:[t.jsx("p",{className:"text-sm font-medium text-gray-700 mb-1",children:"💡 Gedetailleerde uitleg:"}),t.jsx("p",{className:"text-sm text-gray-600",children:H.detailed_explanation})]})]})]})},K)})})]}),t.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.3},className:"bg-orange-50 rounded-2xl p-8 mb-8 border-2 border-orange-200",children:[t.jsxs("div",{className:"flex items-center gap-3 mb-6",children:[t.jsx(Uo,{className:"w-6 h-6 text-orange-600"}),t.jsx("h2",{className:"text-2xl font-bold text-gray-900",children:"Hoog-Risico Compliance"})]}),!d.high_risk_compliance||!d.high_risk_compliance.applicable_articles&&(!d.high_risk_compliance.required_measures||d.high_risk_compliance.required_measures.length===0)&&!d.high_risk_compliance.documentation_requirements&&!d.high_risk_compliance.conformity_assessment?t.jsxs("div",{className:"text-center py-8",children:[t.jsx(vt,{className:"w-12 h-12 text-green-600 mx-auto mb-3"}),t.jsx("p",{className:"text-lg font-semibold text-gray-900 mb-2",children:"Niet van toepassing"}),t.jsx("p",{className:"text-gray-600",children:"Er zijn geen hoog-risico AI-systemen geïdentificeerd die specifieke compliance-maatregelen vereisen."})]}):t.jsxs(t.Fragment,{children:[d.high_risk_compliance.applicable_articles&&t.jsxs("div",{className:"mb-6",children:[t.jsx("h3",{className:"font-semibold text-gray-900 mb-2",children:"Van toepassing zijnde artikelen:"}),t.jsx("p",{className:"text-gray-700",children:d.high_risk_compliance.applicable_articles})]}),d.high_risk_compliance.required_measures&&d.high_risk_compliance.required_measures.length>0&&t.jsxs("div",{className:"mb-6",children:[t.jsx("h3",{className:"font-semibold text-gray-900 mb-3",children:"Vereiste maatregelen:"}),t.jsx("ul",{className:"space-y-2",children:d.high_risk_compliance.required_measures.map((H,K)=>t.jsxs("li",{className:"flex items-start gap-2 text-gray-700",children:[t.jsx(vt,{className:"w-5 h-5 text-orange-600 mt-0.5 flex-shrink-0"}),t.jsx("span",{children:H})]},K))})]}),d.high_risk_compliance.documentation_requirements&&t.jsxs("div",{className:"mb-6",children:[t.jsx("h3",{className:"font-semibold text-gray-900 mb-2",children:"Documentatie vereisten:"}),t.jsx("p",{className:"text-gray-700",children:d.high_risk_compliance.documentation_requirements})]}),d.high_risk_compliance.conformity_assessment&&t.jsxs("div",{children:[t.jsx("h3",{className:"font-semibold text-gray-900 mb-2",children:"Conformiteitsbeoordeling:"}),t.jsx("p",{className:"text-gray-700",children:d.high_risk_compliance.conformity_assessment})]})]})]}),d.gdpr_privacy&&t.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.4},className:"bg-blue-50 rounded-2xl p-8 mb-8 border-2 border-blue-200",children:[t.jsxs("div",{className:"flex items-center gap-3 mb-6",children:[t.jsx(C1,{className:"w-6 h-6 text-blue-600"}),t.jsx("h2",{className:"text-2xl font-bold text-gray-900",children:"GDPR & Privacy Implicaties"})]}),d.gdpr_privacy.data_handling&&t.jsxs("div",{className:"mb-6",children:[t.jsx("h3",{className:"font-semibold text-gray-900 mb-2",children:"Gegevensverwerking:"}),t.jsx("p",{className:"text-gray-700",children:d.gdpr_privacy.data_handling})]}),d.gdpr_privacy.consent_requirements&&t.jsxs("div",{className:"mb-6",children:[t.jsx("h3",{className:"font-semibold text-gray-900 mb-2",children:"Toestemmingsvereisten:"}),t.jsx("p",{className:"text-gray-700",children:d.gdpr_privacy.consent_requirements})]}),d.gdpr_privacy.data_breach_risks&&d.gdpr_privacy.data_breach_risks.length>0&&t.jsxs("div",{className:"mb-6",children:[t.jsx("h3",{className:"font-semibold text-gray-900 mb-3",children:"Risico's voor datalekken:"}),t.jsx("ul",{className:"space-y-2",children:d.gdpr_privacy.data_breach_risks.map((H,K)=>t.jsxs("li",{className:"flex items-start gap-2 text-gray-700",children:[t.jsx(Ms,{className:"w-5 h-5 text-red-600 mt-0.5 flex-shrink-0"}),t.jsx("span",{children:H})]},K))})]}),d.gdpr_privacy.cybersecurity_risks&&d.gdpr_privacy.cybersecurity_risks.length>0&&t.jsxs("div",{className:"mb-6",children:[t.jsx("h3",{className:"font-semibold text-gray-900 mb-3",children:"Cybersecurity risico's:"}),t.jsx("ul",{className:"space-y-2",children:d.gdpr_privacy.cybersecurity_risks.map((H,K)=>t.jsxs("li",{className:"flex items-start gap-2 text-gray-700",children:[t.jsx(Zn,{className:"w-5 h-5 text-red-600 mt-0.5 flex-shrink-0"}),t.jsx("span",{children:H})]},K))})]}),d.gdpr_privacy.recommendations&&d.gdpr_privacy.recommendations.length>0&&t.jsxs("div",{children:[t.jsx("h3",{className:"font-semibold text-gray-900 mb-3",children:"Aanbevelingen:"}),t.jsx("ul",{className:"space-y-2",children:d.gdpr_privacy.recommendations.map((H,K)=>t.jsxs("li",{className:"flex items-start gap-2 text-gray-700",children:[t.jsx(vt,{className:"w-5 h-5 text-green-600 mt-0.5 flex-shrink-0"}),t.jsx("span",{children:H})]},K))})]})]}),d.training_recommendations&&d.training_recommendations.length>0&&t.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.5},className:"bg-white rounded-2xl p-8 mb-8 border border-gray-100",children:[t.jsxs("div",{className:"flex items-center gap-3 mb-6",children:[t.jsx(Ut,{className:"w-6 h-6 text-purple-600"}),t.jsx("h2",{className:"text-2xl font-bold text-gray-900",children:"Aanbevolen Trainingen"})]}),t.jsx("div",{className:"space-y-4",children:d.training_recommendations.map((H,K)=>t.jsxs("div",{className:"p-5 bg-purple-50 rounded-xl border border-purple-100",children:[t.jsxs("div",{className:"flex items-start justify-between mb-3",children:[t.jsxs("div",{className:"flex items-start gap-3 flex-1",children:[t.jsx("div",{className:"w-8 h-8 bg-purple-600 rounded-lg flex items-center justify-center flex-shrink-0",children:t.jsx("span",{className:"text-white font-bold text-sm",children:K+1})}),t.jsxs("div",{className:"flex-1",children:[t.jsx("h3",{className:"font-bold text-gray-900 text-lg mb-1",children:H.training_name}),H.target_audience&&t.jsxs("p",{className:"text-sm text-purple-700 font-medium mb-2",children:["👥 Doelgroep: ",H.target_audience]})]})]}),t.jsx(fe,{to:oe("Contact")+`?training=${encodeURIComponent(H.training_name)}`,className:"flex-shrink-0 ml-4 px-4 py-2 bg-purple-600 text-white text-sm font-semibold rounded-lg hover:bg-purple-700 transition-colors",children:"Aanvragen"})]}),t.jsxs("div",{className:"space-y-3 ml-11",children:[t.jsxs("div",{children:[t.jsx("p",{className:"text-sm font-medium text-gray-700 mb-1",children:"📚 Waarom relevant:"}),t.jsx("p",{className:"text-sm text-gray-600",children:H.reason})]}),H.expected_outcomes&&t.jsxs("div",{className:"bg-white p-3 rounded-lg",children:[t.jsx("p",{className:"text-sm font-medium text-gray-700 mb-1",children:"🎯 Resultaat na training:"}),t.jsx("p",{className:"text-sm text-gray-600",children:H.expected_outcomes})]})]})]},K))})]}),t.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.6},className:"bg-gray-100 rounded-2xl p-6 mb-8 text-center",children:[t.jsx("p",{className:"text-gray-600 mb-4",children:"Deze analyse is gebaseerd op de EU AI Act verordening"}),t.jsxs("a",{href:"https://eur-lex.europa.eu/legal-content/NL/TXT/HTML/?uri=OJ:L_202401689",target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-2 text-blue-600 hover:text-blue-700 font-semibold",children:["Bekijk de volledige EU AI Act verordening",t.jsx(He,{className:"w-5 h-5"})]})]}),t.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.75},className:"bg-white rounded-2xl p-8 mb-8 border border-gray-100",children:[t.jsx("h2",{className:"text-2xl font-bold text-gray-900 mb-6",children:"Hoe 48-7 je kan helpen"}),t.jsxs("div",{className:"grid md:grid-cols-2 gap-6",children:[t.jsxs("div",{className:"p-6 bg-blue-50 rounded-xl",children:[t.jsx("h3",{className:"font-bold text-gray-900 mb-2",children:"🎯 Compliance Audit & Roadmap"}),t.jsx("p",{className:"text-gray-700 text-sm",children:"Wij voeren een grondige audit uit van je AI-systemen en stellen een concreet stappenplan op om compliant te worden met de EU AI Act."})]}),t.jsxs("div",{className:"p-6 bg-purple-50 rounded-xl",children:[t.jsx("h3",{className:"font-bold text-gray-900 mb-2",children:"📋 Documentatie & Implementatie"}),t.jsx("p",{className:"text-gray-700 text-sm",children:"We helpen je met het opstellen van alle benodigde documentatie, risicobeoordelingen en conformiteitsbeoordelingen."})]}),t.jsxs("div",{className:"p-6 bg-green-50 rounded-xl",children:[t.jsx("h3",{className:"font-bold text-gray-900 mb-2",children:"🛡️ AI Governance & Toezicht"}),t.jsx("p",{className:"text-gray-700 text-sm",children:"Implementatie van AI governance frameworks, inclusief menselijk toezicht en risicobeheersystemen."})]}),t.jsxs("div",{className:"p-6 bg-amber-50 rounded-xl",children:[t.jsx("h3",{className:"font-bold text-gray-900 mb-2",children:"🔄 Doorlopende Compliance"}),t.jsx("p",{className:"text-gray-700 text-sm",children:"Periodieke evaluaties, updates van documentatie en begeleiding bij nieuwe AI-implementaties."})]})]})]}),t.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.8},className:"bg-gradient-to-r from-blue-600 to-indigo-600 rounded-2xl p-8 text-white text-center",children:[t.jsx("h2",{className:"text-2xl font-bold mb-4",children:"Plan een vrijblijvend gesprek"}),t.jsx("p",{className:"text-blue-100 mb-6 text-lg",children:"Bespreek je specifieke situatie met onze AI compliance experts"}),t.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 justify-center",children:[t.jsxs(fe,{to:oe("Contact"),className:"inline-flex items-center justify-center gap-2 px-8 py-4 bg-white text-blue-700 font-semibold rounded-xl hover:bg-gray-100 transition-all",children:["Neem contact op",t.jsx(He,{className:"w-5 h-5"})]}),t.jsx(fe,{to:oe("ImpactRapport"),className:"inline-flex items-center justify-center gap-2 px-8 py-4 border-2 border-white text-white font-semibold rounded-xl hover:bg-white/10 transition-all",children:"Doe Impact Rapport"})]})]}),!1]})}):b?t.jsx("div",{className:"pt-20 min-h-screen bg-gradient-to-b from-blue-50 to-white",children:t.jsxs("div",{className:"max-w-2xl mx-auto px-4 sm:px-6 lg:px-8 py-20",children:[t.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"text-center mb-8",children:[t.jsx(gh,{className:"w-16 h-16 text-blue-600 mx-auto mb-4"}),t.jsx("h1",{className:"text-3xl font-bold text-gray-900 mb-4",children:"Meer informatie nodig"}),t.jsx("p",{className:"text-gray-600",children:"Beantwoord de volgende vragen voor een betere analyse"})]}),t.jsxs("div",{className:"bg-white rounded-2xl p-8 border border-gray-100",children:[t.jsx("div",{className:"space-y-6",children:y.map((H,K)=>t.jsxs("div",{children:[t.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:H}),t.jsx(pt,{placeholder:"Jouw antwoord...",className:"min-h-24"})]},K))}),t.jsxs("div",{className:"flex gap-4 mt-6",children:[t.jsx(se,{variant:"outline",onClick:()=>{j(!1),x([])},className:"flex-1",children:"Annuleren"}),t.jsx(se,{onClick:z,className:"flex-1 bg-blue-600 hover:bg-blue-700",children:"Analyseer"})]})]})]})}):t.jsx("div",{className:"pt-20 min-h-screen bg-gradient-to-b from-blue-50 to-white",children:t.jsxs("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 py-20",children:[t.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"text-center mb-12",children:[t.jsx("h1",{className:"text-5xl sm:text-6xl lg:text-7xl font-bold text-[#0D0D0F] mb-8",children:"EU AI Act - wat zijn de gevolgen voor jouw bedrijf?"}),t.jsx("p",{className:"text-2xl text-[#9CA3AF] max-w-2xl mx-auto",children:"Ontdek welke verplichtingen van toepassing zijn op jouw bedrijf"})]}),t.jsx(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.2},className:"bg-white rounded-2xl p-8 shadow-sm border border-gray-100",children:t.jsxs("form",{onSubmit:q,className:"space-y-6",children:[t.jsxs("div",{children:[t.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Website URL (optioneel)"}),t.jsx(me,{type:"text",placeholder:"jouwbedrijf.nl",value:r.url,onChange:H=>i({...r,url:H.target.value}),className:"text-lg py-6"})]}),t.jsx("div",{className:"text-center text-gray-500 font-medium",children:"OF"}),t.jsxs("div",{children:[t.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Beschrijf wat je bedrijf doet"}),t.jsx(pt,{placeholder:"Wij zijn een online retailer die kleding verkoopt via een webshop...",value:r.description,onChange:H=>i({...r,description:H.target.value}),className:"min-h-32"})]}),t.jsx(se,{type:"submit",disabled:!r.url&&!r.description,className:"w-full py-6 bg-[#FAB868] hover:bg-[#E5A04D] text-[#0D0D0F] font-bold text-lg",children:t.jsxs("span",{className:"flex items-center gap-2 justify-center",children:[t.jsx(Zn,{className:"w-5 h-5"}),"Start EU AI Act Check",t.jsx(He,{className:"w-5 h-5"})]})}),t.jsx("p",{className:"text-xs text-gray-500 text-center",children:"✓ 100% gratis • ✓ Gebaseerd op officiële EU AI Act • ✓ Praktische aanbevelingen"})]})}),t.jsxs("div",{className:"grid md:grid-cols-3 gap-6 mt-12",children:[t.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.4},className:"bg-white rounded-xl p-6 border border-gray-100",children:[t.jsx(Uo,{className:"w-8 h-8 text-orange-600 mb-3"}),t.jsx("h3",{className:"font-bold text-gray-900 mb-2",children:"Risiconiveaus"}),t.jsx("p",{className:"text-sm text-gray-600",children:"Classificatie volgens EU AI Act: onaanvaardbaar, hoog, beperkt, minimaal risico"})]}),t.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.5},className:"bg-white rounded-xl p-6 border border-gray-100",children:[t.jsx(Ut,{className:"w-8 h-8 text-blue-600 mb-3"}),t.jsx("h3",{className:"font-bold text-gray-900 mb-2",children:"Compliance"}),t.jsx("p",{className:"text-sm text-gray-600",children:"Specifieke vereisten voor documentatie, conformiteit en menselijk toezicht"})]}),t.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.6},className:"bg-white rounded-xl p-6 border border-gray-100",children:[t.jsx(C1,{className:"w-8 h-8 text-purple-600 mb-3"}),t.jsx("h3",{className:"font-bold text-gray-900 mb-2",children:"GDPR Integratie"}),t.jsx("p",{className:"text-sm text-gray-600",children:"Combinatie van AI Act en GDPR vereisten voor gegevensbescherming"})]})]})]})})}function ree(){return t.jsx("div",{className:"pt-20 min-h-screen bg-white",children:t.jsx("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 py-12",children:t.jsxs("div",{className:"bg-[#F4F4F4] rounded-3xl p-12",children:[t.jsxs("div",{className:"flex items-center gap-3 mb-8",children:[t.jsx(Zn,{className:"w-12 h-12 text-[#FAB868]"}),t.jsx("h1",{className:"text-5xl font-bold text-[#0D0D0F]",children:"EU AI Act Checker"})]}),t.jsxs("div",{className:"prose max-w-none",children:[t.jsx("h2",{children:"Overzicht"}),t.jsx("p",{children:"De EU AI Act Checker analyseert een bedrijf tegen de EU AI Act regelgeving en geeft compliance advies, inclusief risiconiveaus, vereiste maatregelen en cybersecurity overwegingen."}),t.jsx("h2",{children:"Architectuur"}),t.jsx("h3",{children:"Frontend: pages/EuAiActChecker.jsx"}),t.jsxs("ul",{children:[t.jsxs("li",{children:[t.jsx("strong",{children:"Framework:"})," React met multi-step flow"]}),t.jsxs("li",{children:[t.jsx("strong",{children:"Steps:"}),t.jsxs("ol",{children:[t.jsx("li",{children:"Initial input (URL of beschrijving)"}),t.jsx("li",{children:"Uitgebreide vragenlijst (questionnaire)"}),t.jsx("li",{children:"Analyzing (30-45 seconden)"}),t.jsx("li",{children:"Results met compliance analyse"})]})]})]}),t.jsx("h3",{children:"Backend: functions/analyzeEuAiAct.js"}),t.jsxs("ul",{children:[t.jsxs("li",{children:[t.jsx("strong",{children:"Runtime:"})," Deno Deploy"]}),t.jsxs("li",{children:[t.jsx("strong",{children:"LLM:"})," OpenAI (via Base44 Core.InvokeLLM)"]}),t.jsxs("li",{children:[t.jsx("strong",{children:"Features:"}),t.jsxs("ul",{children:[t.jsx("li",{children:"Website scraping"}),t.jsx("li",{children:"Vragenlijst-gedreven analyse"}),t.jsx("li",{children:"EU AI Act compliance mapping"}),t.jsx("li",{children:"GDPR + Cybersecurity integratie"})]})]})]}),t.jsx("h2",{children:"Functionaliteiten"}),t.jsx("h3",{children:"1. Vragenlijst Categorieën"}),t.jsx("h4",{children:"Bedrijfscontext"}),t.jsxs("ul",{children:[t.jsx("li",{children:"Sector: retail, financial, HR, healthcare, industrie, marketing, IT, overheid, anders"}),t.jsx("li",{children:"Doelgroep: consumenten, bedrijven, beide"})]}),t.jsx("h4",{children:"AI Gebruik"}),t.jsxs("ul",{children:[t.jsx("li",{children:"Is AI actief in gebruik?"}),t.jsx("li",{children:"Toepassingsgebieden: klantenservice, marketing, analyse, besluitvorming, product, HR, anders"})]}),t.jsx("h4",{children:"Impact op Mensen"}),t.jsxs("ul",{children:[t.jsx("li",{children:"Neemt AI beslissingen met directe gevolgen?"}),t.jsx("li",{children:"Is er menselijk toezicht?"})]}),t.jsx("h4",{children:"Gevoelige Toepassingen"}),t.jsxs("ul",{children:[t.jsx("li",{children:"Werving & selectie"}),t.jsx("li",{children:"Beoordeling medewerkers"}),t.jsx("li",{children:"Krediet / financiële beoordeling"}),t.jsx("li",{children:"Fraude-detectie"}),t.jsx("li",{children:"Toegang tot diensten"}),t.jsx("li",{children:"Biometrie (gezicht, stem, gedrag)"})]}),t.jsx("h4",{children:"Data & Privacy"}),t.jsxs("ul",{children:[t.jsx("li",{children:"Verwerkt AI persoonsgegevens?"}),t.jsx("li",{children:"Gevoelige persoonsgegevens (gezondheid, etniciteit, biometrie)?"})]}),t.jsx("h4",{children:"Governance"}),t.jsxs("ul",{children:[t.jsx("li",{children:"Formele verantwoordelijkheid voor AI?"}),t.jsx("li",{children:"Periodieke risico-evaluatie?"}),t.jsx("li",{children:"Gebruiker notificatie over AI-inzet?"})]}),t.jsx("h3",{children:"2. Analyse Output"}),t.jsx("h4",{children:"Bedrijfsoverzicht"}),t.jsx("p",{children:"Automatisch gegenereerde beschrijving van sector en activiteiten"}),t.jsx("h4",{children:"Geïdentificeerde AI Toepassingen"}),t.jsx("p",{children:"Per applicatie:"}),t.jsxs("ul",{children:[t.jsxs("li",{children:[t.jsx("strong",{children:"Naam:"})," Specifieke toepassing"]}),t.jsxs("li",{children:[t.jsx("strong",{children:"Risk Level:"})," Onaanvaardbaar / Hoog / Beperkt / Minimaal"]}),t.jsxs("li",{children:[t.jsx("strong",{children:"Beschrijving:"})," Wat het doet"]}),t.jsxs("li",{children:[t.jsx("strong",{children:"Risico Rechtvaardiging:"})," Waarom dit risiconiveau"]})]}),t.jsx("h4",{children:"Hoog-Risico Compliance"}),t.jsxs("ul",{children:[t.jsx("li",{children:"Van toepassing zijnde EU AI Act artikelen"}),t.jsx("li",{children:"Vereiste maatregelen"}),t.jsx("li",{children:"Documentatie-eisen"}),t.jsx("li",{children:"Conformiteitsbeoordelingen"}),t.jsxs("li",{children:[t.jsx("em",{children:'"Niet van toepassing"'})," als geen hoog-risico systemen"]})]}),t.jsx("h4",{children:"GDPR & Cybersecurity"}),t.jsxs("ul",{children:[t.jsxs("li",{children:[t.jsx("strong",{children:"Data Handling:"})," Hoe gegevens worden verwerkt"]}),t.jsxs("li",{children:[t.jsx("strong",{children:"Consent Requirements:"})," Toestemmingsvereisten"]}),t.jsxs("li",{children:[t.jsx("strong",{children:"Data Breach Risks:"})," Specifieke datalekrisico's"]}),t.jsxs("li",{children:[t.jsx("strong",{className:"text-red-600",children:"Cybersecurity Risks:"})," Klant- en bedrijfsgegevens vatbaar voor hacks"]}),t.jsxs("li",{children:[t.jsx("strong",{children:"Recommendations:"})," Praktische GDPR + security aanbevelingen"]})]}),t.jsx("h2",{children:"LLM Prompt Structuur"}),t.jsx("pre",{className:"bg-gray-100 p-4 rounded-lg overflow-x-auto",children:`Je bent een EU AI Act compliance expert en adviseert 
Nederlandse bedrijven. Analyseer het bedrijf en geef 
praktisch compliance advies.

INPUT:
- Website content: {website_content}
- Beschrijving: {company_description}
- Vragenlijst: {questionnaire_formatted}

EU AI ACT CONTEXT:
- Onaanvaardbaar risico: VERBODEN
  (social scoring, manipulatie, biometrie)
- Hoog risico: STRIKTE EISEN
  (CV screening, kredietbeoordeling, toegang diensten)
- Beperkt risico: TRANSPARANTIE
  (chatbots, deepfakes)
- Minimaal risico: GEEN RESTRICTIES

BELANGRIJKE INSTRUCTIES:
- Wees specifiek, gebruik vragenlijst voor context
- Risk levels: Onaanvaardbaar/Hoog/Beperkt/Minimaal
- Cybersecurity: vermeld expliciet dat klant- en 
  bedrijfsgegevens vatbaar kunnen zijn voor hacks
- Praktische aanbevelingen, geen juridisch jargon
- Als geen hoog-risico: laat applicable_articles leeg`}),t.jsx("h3",{children:"JSON Schema Output"}),t.jsx("pre",{className:"bg-gray-100 p-4 rounded-lg overflow-x-auto text-sm",children:`{
  "company_name": "string",
  "company_overview": "string",
  "identified_ai_applications": [
    {
      "application_name": "string",
      "description": "string",
      "risk_level": "Onaanvaardbaar|Hoog|Beperkt|Minimaal",
      "risk_justification": "string"
    }
  ],
  "high_risk_compliance": {
    "applicable_articles": "string|null",
    "required_measures": ["string"],
    "documentation_requirements": "string",
    "conformity_assessment": "string"
  },
  "gdpr_privacy": {
    "data_handling": "string",
    "consent_requirements": "string",
    "data_breach_risks": ["string"],
    "cybersecurity_risks": ["string"],
    "recommendations": ["string"]
  }
}`}),t.jsx("h2",{children:"Risk Level Kleuren & Icons"}),t.jsxs("div",{className:"space-y-3",children:[t.jsxs("div",{className:"flex items-center gap-3 p-3 rounded-lg border-2 bg-red-50 border-red-200",children:[t.jsx(Uo,{className:"w-6 h-6 text-red-600"}),t.jsx("span",{className:"px-3 py-1 bg-red-100 text-red-800 border border-red-200 rounded text-sm font-semibold",children:"Onaanvaardbaar"}),t.jsx("span",{className:"text-sm text-gray-600",children:"VERBODEN systemen"})]}),t.jsxs("div",{className:"flex items-center gap-3 p-3 rounded-lg border-2 bg-orange-50 border-orange-200",children:[t.jsx(Uo,{className:"w-6 h-6 text-orange-600"}),t.jsx("span",{className:"px-3 py-1 bg-orange-100 text-orange-800 border border-orange-200 rounded text-sm font-semibold",children:"Hoog"}),t.jsx("span",{className:"text-sm text-gray-600",children:"Strikte compliance eisen"})]}),t.jsxs("div",{className:"flex items-center gap-3 p-3 rounded-lg border-2 bg-yellow-50 border-yellow-200",children:[t.jsx(gh,{className:"w-6 h-6 text-yellow-600"}),t.jsx("span",{className:"px-3 py-1 bg-yellow-100 text-yellow-800 border border-yellow-200 rounded text-sm font-semibold",children:"Beperkt"}),t.jsx("span",{className:"text-sm text-gray-600",children:"Transparantie vereist"})]}),t.jsxs("div",{className:"flex items-center gap-3 p-3 rounded-lg border-2 bg-green-50 border-green-200",children:[t.jsx(Zn,{className:"w-6 h-6 text-green-600"}),t.jsx("span",{className:"px-3 py-1 bg-green-100 text-green-800 border border-green-200 rounded text-sm font-semibold",children:"Minimaal"}),t.jsx("span",{className:"text-sm text-gray-600",children:"Geen restricties"})]})]}),t.jsx("h2",{children:"Questionnaire Risk Indicators"}),t.jsx("p",{children:"Automatisch gedetecteerd:"}),t.jsxs("ul",{children:[t.jsxs("li",{children:["AI neemt beslissingen: ",t.jsx("code",{children:"ai_decisions === 'yes'"})]}),t.jsxs("li",{children:["Geen menselijk toezicht: ",t.jsx("code",{children:"human_oversight === 'no'"})]}),t.jsx("li",{children:"Hoog-risico processen: werving, beoordeling, krediet, fraude, biometrie"}),t.jsxs("li",{children:["Gevoelige persoonsgegevens: ",t.jsx("code",{children:"sensitive_personal_data === 'yes'"})]}),t.jsxs("li",{children:["Geen AI verantwoordelijke: ",t.jsx("code",{children:"ai_responsible === 'no'"})]}),t.jsxs("li",{children:["Geen risico-evaluatie: ",t.jsx("code",{children:"risk_evaluation === 'no'"})]})]}),t.jsx("h2",{children:"Extra Features"}),t.jsxs("ul",{children:[t.jsxs("li",{children:[t.jsx("strong",{children:"Email Functie:"})," Verstuur volledige analyse naar gebruiker"]}),t.jsxs("li",{children:[t.jsx("strong",{children:"EU AI Act Link:"})," Directe link naar officiële verordening (EUR-Lex)"]}),t.jsxs("li",{children:[t.jsx("strong",{children:'"Doe uitgebreide EU AI Act check" Button:'})," Prominent, opent in nieuw tabblad"]}),t.jsxs("li",{children:[t.jsx("strong",{children:'"Hoe 48-7 kan helpen":'})," 4 diensten showcase (Audit, Documentatie, Governance, Doorlopende Compliance)"]})]}),t.jsx("h2",{children:"LLM Gebruik"}),t.jsxs("ul",{children:[t.jsxs("li",{children:[t.jsx("strong",{children:"Provider:"})," OpenAI (via Base44 Core.InvokeLLM)"]}),t.jsxs("li",{children:[t.jsx("strong",{children:"Context:"})," Website content + company description + questionnaire"]}),t.jsxs("li",{children:[t.jsx("strong",{children:"Special Features:"})," Vragenlijst wordt geformatteerd als readable text, Risk signals worden extracted"]}),t.jsxs("li",{children:[t.jsx("strong",{children:"Output:"})," Gestructureerde JSON"]}),t.jsxs("li",{children:[t.jsx("strong",{children:"Taal:"})," Nederlands (geforceerd)"]}),t.jsxs("li",{children:[t.jsx("strong",{children:"Verwerkingstijd:"})," 30-45 seconden"]})]}),t.jsx("h2",{children:'"Niet van toepassing" Logic'}),t.jsx("pre",{className:"bg-gray-100 p-4 rounded-lg",children:`// High-Risk Compliance sectie toont:
if (geen applicable_articles EN 
    geen required_measures EN 
    geen documentation_requirements EN 
    geen conformity_assessment) {
  
  // Toon: CheckCircle icon + 
  // "Niet van toepassing" bericht
}`}),t.jsx("h2",{children:"Files"}),t.jsxs("ul",{className:"font-mono text-sm",children:[t.jsx("li",{children:"pages/EuAiActChecker.jsx - Frontend component (multi-step)"}),t.jsx("li",{children:"functions/analyzeEuAiAct.js - Backend analysis function"})]}),t.jsx("h2",{children:"Integraties"}),t.jsxs("ul",{children:[t.jsxs("li",{children:[t.jsx("strong",{children:"Impact Report Link:"})," Cross-promote in CTA section"]}),t.jsxs("li",{children:[t.jsx("strong",{children:"Contact Links:"})," Pre-filled met training naam"]}),t.jsxs("li",{children:[t.jsx("strong",{children:"EU AI Act Verordening:"})," Externe link naar EUR-Lex (nieuwe tab)"]})]})]})]})})})}function iee(){return t.jsxs("section",{className:"relative h-[600px] overflow-hidden",children:[t.jsx("img",{src:"https://images.unsplash.com/photo-1522071820081-009f0129c71c?w=2000&auto=format&fit=crop",alt:"AI Team",className:"absolute inset-0 w-full h-full object-cover"}),t.jsx("div",{className:"absolute inset-0 bg-gradient-to-r from-[#0D0D0F]/90 via-[#0D0D0F]/70 to-transparent"}),t.jsx("div",{className:"relative h-full max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 flex items-center",children:t.jsxs(Z.div,{initial:{opacity:0,y:30},animate:{opacity:1,y:0},transition:{duration:.8},className:"max-w-3xl text-white",children:[t.jsxs("h1",{className:"text-5xl sm:text-6xl lg:text-7xl font-bold leading-tight mb-6",children:["Van 24-7 naar"," ",t.jsx("span",{className:"text-[#FAB868]",children:"48-7"})]}),t.jsx("p",{className:"text-2xl text-gray-200 mb-8 leading-relaxed",children:"Verdubbel je productiviteit met AI. We ontwikkelen de AI strategie, bouwen de software én trainen. Anderen praten, wij leveren."}),t.jsx("div",{className:"flex flex-col sm:flex-row gap-4",children:t.jsx(fe,{to:oe("AIImpactRapport"),className:"inline-flex items-center justify-center gap-2 px-10 py-5 bg-[#FAB868] text-[#0D0D0F] font-semibold rounded-full hover:bg-[#E5A04D] transition-all text-lg",children:"Check wat AI jou oplevert"})})]})})]})}function see(){const e=[{name:"TechCorp",logo:"TC"},{name:"InnovateBV",logo:"IB"},{name:"DigitalFirst",logo:"DF"},{name:"SmartSolutions",logo:"SS"},{name:"FutureTech",logo:"FT"},{name:"DataDriven",logo:"DD"}],{data:n=[]}=ze({queryKey:["reviews"],queryFn:()=>ue.entities.Review.filter({active:!0},"sort_order"),initialData:[]});return t.jsx("section",{className:"py-20 bg-white",children:t.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[t.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-center mb-16",children:[t.jsx("p",{className:"text-sm font-medium text-gray-500 uppercase tracking-wider mb-8",children:"Vertrouwd door ambitieuze MKB-bedrijven"}),t.jsx("div",{className:"flex flex-wrap items-center justify-center gap-8 lg:gap-16",children:e.map((r,i)=>t.jsx(Z.div,{initial:{opacity:0,scale:.8},whileInView:{opacity:1,scale:1},viewport:{once:!0},transition:{delay:i*.1},className:"group",children:t.jsx("div",{className:"w-20 h-20 bg-gray-100 rounded-2xl flex items-center justify-center text-gray-400 font-bold text-xl group-hover:bg-blue-50 group-hover:text-blue-600 transition-all",children:r.logo})},i))})]}),t.jsx(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"bg-gradient-to-r from-gray-900 to-gray-800 rounded-3xl p-8 md:p-12 mb-16",children:t.jsxs("div",{className:"grid grid-cols-2 lg:grid-cols-4 gap-8 text-center",children:[t.jsxs("div",{children:[t.jsx("p",{className:"text-4xl md:text-5xl font-bold text-white mb-2",children:"5+"}),t.jsx("p",{className:"text-gray-400",children:"Jaar ervaring"})]}),t.jsxs("div",{children:[t.jsx("p",{className:"text-4xl md:text-5xl font-bold text-white mb-2",children:"50+"}),t.jsx("p",{className:"text-gray-400",children:"Projecten afgerond"})]}),t.jsxs("div",{children:[t.jsx("p",{className:"text-4xl md:text-5xl font-bold text-white mb-2",children:"€5-20M"}),t.jsx("p",{className:"text-gray-400",children:"MKB omzet focus"})]}),t.jsxs("div",{children:[t.jsx("p",{className:"text-4xl md:text-5xl font-bold text-white mb-2",children:"100%"}),t.jsx("p",{className:"text-gray-400",children:"Full-service"})]})]})}),t.jsx("div",{className:"grid md:grid-cols-3 gap-8",children:n.map((r,i)=>t.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:i*.15},className:"bg-gray-50 rounded-2xl p-8 hover:bg-white hover:shadow-xl transition-all border border-transparent hover:border-gray-100",children:[t.jsx("div",{className:"flex items-center gap-1 mb-4",children:[...Array(r.rating)].map((s,a)=>t.jsx(Fh,{className:"w-5 h-5 fill-yellow-400 text-yellow-400"},a))}),t.jsxs("p",{className:"text-gray-700 mb-6 leading-relaxed",children:['"',r.text,'"']}),t.jsxs("div",{className:"flex items-center gap-3",children:[t.jsx("div",{className:"w-12 h-12 bg-gradient-to-br from-blue-600 to-blue-700 rounded-full flex items-center justify-center text-white font-semibold",children:r.author.split(" ").map(s=>s[0]).join("")}),t.jsxs("div",{children:[t.jsx("p",{className:"font-semibold text-gray-900",children:r.author}),t.jsx("p",{className:"text-sm text-gray-500",children:r.role})]})]})]},i))})]})})}function aee(){const{data:e=[]}=ze({queryKey:["homeServices"],queryFn:()=>ue.entities.HomeService.filter({active:!0},"sort_order"),initialData:[]}),n={Lightbulb:$s,Code2:wA,Headphones:of,GraduationCap:pr,Sparkles:Tt};return t.jsx("section",{className:"py-32 bg-white",children:t.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[t.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-center mb-20",children:[t.jsx("h2",{className:"text-5xl sm:text-6xl font-bold text-[#0D0D0F] mb-6",children:"Wat is 48-7?"}),t.jsx("p",{className:"text-slate-600 mx-auto text-2xl max-w-3xl",children:"Full-service AI voor MKB"})]}),t.jsx("div",{className:"grid md:grid-cols-2 gap-12",children:e.map((r,i)=>{const s=n[r.icon]||Tt;return t.jsx(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:i*.1},children:t.jsxs(fe,{to:r.link_url||"#",className:"group block bg-[#F4F4F4] rounded-3xl p-12 hover:bg-white hover:shadow-lg transition-all border-2 border-transparent hover:border-[#FAB868] h-full",children:[t.jsx("div",{className:"w-16 h-16 bg-[#FAB868] rounded-full flex items-center justify-center mb-8 group-hover:scale-110 transition-transform",children:t.jsx(s,{className:"w-8 h-8 text-[#0D0D0F]"})}),t.jsx("h3",{className:"text-3xl font-bold text-[#0D0D0F] mb-4",children:r.title}),t.jsx("p",{className:"text-[#292828] mb-8 text-xl leading-relaxed",children:r.description}),t.jsxs("div",{className:"flex items-center gap-2 text-[#FAB868] font-semibold group-hover:gap-3 transition-all text-lg",children:["Meer info",t.jsx(He,{className:"w-6 h-6"})]})]})},r.id)})})]})})}function oee(){const{data:e=[]}=ze({queryKey:["processSteps"],queryFn:()=>ue.entities.ProcessStep.filter({active:!0},"step_number"),initialData:[]}),n={Search:zi,Map:v3,Rocket:L3,Headphones:of},r=i=>{const s=["blue","indigo","purple","pink"];return s[(i-1)%s.length]};return t.jsx("section",{className:"py-24 bg-white",children:t.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[t.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-center mb-16",children:[t.jsx("h2",{className:"text-3xl sm:text-4xl font-bold text-gray-900 mb-4",children:"Hoe we werken"}),t.jsx("p",{className:"text-xl text-gray-600 max-w-2xl mx-auto",children:"Een bewezen aanpak die zorgt voor snelle resultaten en duurzame impact"})]}),t.jsxs("div",{className:"relative",children:[t.jsx("div",{className:"hidden lg:block absolute top-1/2 left-0 right-0 h-0.5 bg-gradient-to-r from-blue-200 via-purple-200 to-pink-200 -translate-y-1/2"}),t.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-4 gap-8",children:e.map((i,s)=>{const a=n[i.icon]||zi,o=r(i.step_number);return t.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:s*.15},className:"relative",children:[t.jsxs("div",{className:"bg-white rounded-2xl p-8 border border-gray-100 hover:shadow-xl hover:border-gray-200 transition-all h-full",children:[t.jsx("div",{className:"absolute -top-4 left-8",children:t.jsx("div",{className:"w-8 h-8 bg-gradient-to-br rounded-lg flex items-center justify-center text-white font-bold text-sm shadow-lg",style:{background:o==="blue"?"linear-gradient(135deg, #3b82f6, #2563eb)":o==="indigo"?"linear-gradient(135deg, #6366f1, #4f46e5)":o==="purple"?"linear-gradient(135deg, #a855f7, #9333ea)":"linear-gradient(135deg, #ec4899, #db2777)"},children:String(i.step_number).padStart(2,"0")})}),t.jsx("div",{className:"w-14 h-14 bg-gray-100 rounded-2xl flex items-center justify-center mb-6 mt-4",children:t.jsx(a,{className:"w-7 h-7 text-gray-700"})}),t.jsx("h3",{className:"text-xl font-bold text-gray-900 mb-3",children:i.title}),t.jsx("p",{className:"text-gray-600 leading-relaxed",children:i.description})]}),s<e.length-1&&t.jsx("div",{className:"hidden lg:flex absolute top-1/2 -right-4 z-10 w-8 h-8 bg-white rounded-full items-center justify-center border border-gray-200 -translate-y-1/2",children:t.jsx(He,{className:"w-4 h-4 text-gray-400"})})]},i.id)})})]})]})})}function lee(){const{data:e=[]}=ze({queryKey:["homeBenefits"],queryFn:()=>ue.entities.HomeBenefit.filter({active:!0},"sort_order"),initialData:[]}),n={Briefcase:Ka,Layers:lf,Building2:Ga,Award:wy};return t.jsx("section",{className:"py-32 bg-[#F4F4F4]",children:t.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[t.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-center mb-20",children:[t.jsx("h2",{className:"text-5xl sm:text-6xl font-bold text-[#0D0D0F] mb-6",children:"Waarom 48-7?"}),t.jsx("p",{className:"text-2xl text-[#292828] max-w-2xl mx-auto",children:"Wat ons onderscheidt"})]}),t.jsx("div",{className:"grid md:grid-cols-2 gap-12",children:e.map((r,i)=>{const s=n[r.icon]||wy;return t.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:i*.1},className:"bg-white rounded-3xl p-12 hover:shadow-lg transition-all",children:[t.jsx("div",{className:"w-16 h-16 bg-[#FAB868] rounded-full flex items-center justify-center mb-8",children:t.jsx(s,{className:"w-8 h-8 text-[#0D0D0F]"})}),t.jsx("h3",{className:"text-3xl font-bold text-[#0D0D0F] mb-4",children:r.title}),t.jsx("p",{className:"text-xl text-[#292828] mb-8 leading-relaxed",children:r.description}),r.tags&&r.tags.length>0&&t.jsx("div",{className:"flex flex-wrap gap-4",children:r.tags.map((a,o)=>t.jsxs("div",{className:"flex items-center gap-2 text-base text-[#0D0D0F]",children:[t.jsx(Wt,{className:"w-5 h-5 text-[#FAB868]"}),a]},o))})]},r.id)})})]})})}function cee(){const{data:e=[]}=ze({queryKey:["featuredCases"],queryFn:()=>ue.entities.CaseStudy.filter({published:!0,featured_on_homepage:!0},"sort_order"),initialData:[]});return t.jsx("section",{className:"py-24 bg-gray-50",children:t.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[t.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"flex flex-col sm:flex-row sm:items-end justify-between gap-4 mb-12",children:[t.jsxs("div",{children:[t.jsx("h2",{className:"text-3xl sm:text-4xl font-bold text-gray-900 mb-4",children:"Resultaten die spreken"}),t.jsx("p",{className:"text-xl text-gray-600 max-w-2xl",children:"Bekijk hoe wij MKB-bedrijven helpen hun productiviteit te verdubbelen"})]}),t.jsxs(fe,{to:oe("Cases"),className:"flex items-center gap-2 text-blue-600 font-semibold hover:gap-3 transition-all shrink-0",children:["Bekijk alle cases",t.jsx(He,{className:"w-5 h-5"})]})]}),t.jsx("div",{className:"grid md:grid-cols-3 gap-8",children:e.map((n,r)=>t.jsx(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:r*.15},children:t.jsxs(fe,{to:oe("Cases")+`?case=${n.slug}`,className:"group block bg-white rounded-2xl overflow-hidden hover:shadow-xl transition-all border border-gray-100",children:[n.featured_image_url&&t.jsxs("div",{className:"relative h-48 overflow-hidden",children:[t.jsx("img",{src:n.featured_image_url,alt:n.client_name,className:"w-full h-full object-cover group-hover:scale-105 transition-transform duration-500"}),t.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-black/60 to-transparent"}),t.jsx("div",{className:"absolute bottom-4 left-4 right-4",children:t.jsx("span",{className:"inline-block px-3 py-1 bg-white/20 backdrop-blur-sm rounded-full text-white text-sm",children:n.industry})})]}),t.jsxs("div",{className:"p-6",children:[t.jsx("h3",{className:"text-xl font-bold text-gray-900 mb-2 group-hover:text-blue-600 transition-colors",children:n.client_name}),n.homepage_text&&t.jsx("p",{className:"text-gray-600 text-sm mb-4 line-clamp-2",children:n.homepage_text}),n.homepage_usp&&t.jsxs("div",{className:"flex items-center gap-2 text-green-600 font-semibold",children:[t.jsx(Hi,{className:"w-5 h-5"}),n.homepage_usp]})]})]})},n.id))})]})})}function uee(){const e=[{title:"AI Geletterdheid",subtitle:"Basis voor iedereen",duration:"1 dag",format:"In-company",level:"Starter",description:"De perfecte introductie voor teams die willen starten met AI. Begrijp de mogelijkheden en beperkingen.",color:"blue"},{title:"Vibe Coding",subtitle:"Programmeren met AI",duration:"2 dagen",format:"Klassikaal",level:"Gevorderd",description:"Leer hoe je met AI-tools 10x sneller kunt ontwikkelen. Van prompt engineering tot code review.",color:"purple"},{title:"AI & Leiderschap",subtitle:"Voor management",duration:"1 dag",format:"In-company",level:"Management",description:"Strategische inzichten voor beslissers. Hoe stuur je AI transformatie succesvol aan?",color:"emerald"}];return t.jsx("section",{className:"py-24 bg-white",children:t.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[t.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-center mb-16",children:[t.jsxs("div",{className:"inline-flex items-center gap-2 px-4 py-2 bg-purple-100 rounded-full text-purple-700 text-sm font-medium mb-6",children:[t.jsx(pr,{className:"w-4 h-4"}),"Start vandaag met AI"]}),t.jsx("h2",{className:"text-3xl sm:text-4xl font-bold text-gray-900 mb-4",children:"Populaire Trainingen"}),t.jsx("p",{className:"text-xl text-gray-600 max-w-2xl mx-auto",children:"Maak je team AI-ready met onze praktijkgerichte trainingen"})]}),t.jsx("div",{className:"grid md:grid-cols-3 gap-8 mb-12",children:e.map((n,r)=>t.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:r*.15},className:"group bg-gray-50 rounded-2xl p-8 hover:bg-white hover:shadow-xl transition-all border border-transparent hover:border-gray-100",children:[t.jsx("div",{className:`inline-block px-3 py-1 rounded-full text-sm font-medium mb-4 ${n.color==="blue"?"bg-blue-100 text-blue-700":n.color==="purple"?"bg-purple-100 text-purple-700":"bg-emerald-100 text-emerald-700"}`,children:n.level}),t.jsx("h3",{className:"text-xl font-bold text-gray-900 mb-1 group-hover:text-blue-600 transition-colors",children:n.title}),t.jsx("p",{className:"text-gray-500 mb-4",children:n.subtitle}),t.jsx("p",{className:"text-gray-600 mb-6 leading-relaxed",children:n.description}),t.jsxs("div",{className:"flex items-center gap-4 text-sm text-gray-500",children:[t.jsxs("div",{className:"flex items-center gap-1",children:[t.jsx(Dn,{className:"w-4 h-4"}),n.duration]}),t.jsxs("div",{className:"flex items-center gap-1",children:[t.jsx(zn,{className:"w-4 h-4"}),n.format]})]})]},r))}),t.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"flex flex-col sm:flex-row items-center justify-center gap-4",children:[t.jsxs(fe,{to:oe("Training"),className:"inline-flex items-center gap-2 px-8 py-4 bg-gradient-to-r from-blue-600 to-blue-700 text-white font-semibold rounded-2xl hover:shadow-xl hover:shadow-blue-500/30 transition-all hover:-translate-y-1",children:["Bekijk alle trainingen",t.jsx(He,{className:"w-5 h-5"})]}),t.jsxs(fe,{to:oe("TrainingAdvisor"),className:"inline-flex items-center gap-2 px-8 py-4 bg-white border-2 border-gray-200 text-gray-900 font-semibold rounded-2xl hover:border-purple-300 hover:bg-purple-50 transition-all",children:[t.jsx(Tt,{className:"w-5 h-5 text-purple-600"}),"Training Advisor"]})]})]})})}function dee(){return t.jsx("section",{className:"py-32 bg-white",children:t.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:t.jsx("div",{className:"bg-[#FAB868] rounded-3xl p-16 text-center",children:t.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},children:[t.jsx("h2",{className:"text-4xl sm:text-5xl font-bold text-[#0D0D0F] mb-6 leading-tight",children:"Hoever is jouw bedrijf klaar voor AI? Ontdek het in 2 minuten."}),t.jsx("p",{className:"text-xl text-[#0D0D0F]/70 mb-12 max-w-3xl mx-auto",children:"Ontvang een persoonlijk rapport."}),t.jsxs(fe,{to:oe("AIQuiz"),className:"inline-flex items-center gap-3 px-12 py-6 bg-[#0D0D0F] text-white font-bold rounded-full hover:bg-[#1a1a1c] transition-all text-xl",children:[t.jsx(Tt,{className:"w-6 h-6"}),"Start de AI Quiz",t.jsx(He,{className:"w-6 h-6"})]})]})})})})}function hee(){const{data:e=[]}=ze({queryKey:["teamMembers"],queryFn:()=>ue.entities.TeamMember.filter({active:!0,show_on_homepage:!0},"sort_order"),initialData:[]});return t.jsx("section",{className:"py-24 bg-gray-50",children:t.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:t.jsxs("div",{className:"grid lg:grid-cols-2 gap-12 items-center",children:[t.jsxs(Z.div,{initial:{opacity:0,x:-20},whileInView:{opacity:1,x:0},viewport:{once:!0},children:[t.jsx("h2",{className:"text-3xl sm:text-4xl font-bold text-gray-900 mb-6",children:"Ontmoet The AI Professionals"}),t.jsx("p",{className:"text-xl text-gray-600 mb-8 leading-relaxed",children:"Ons team combineert jaren ervaring in het bedrijfsleven met diepgaande AI expertise. Wij begrijpen de uitdagingen van MKB en weten hoe AI deze kan oplossen."}),t.jsx("p",{className:"text-gray-600 mb-8",children:"Van strategen tot engineers, van trainers tot consultants — samen hebben we één missie: jouw productiviteit verdubbelen met AI."}),t.jsxs(fe,{to:oe("OverOns"),className:"inline-flex items-center gap-2 text-blue-600 font-semibold hover:gap-3 transition-all",children:["Meer over ons team",t.jsx(He,{className:"w-5 h-5"})]})]}),t.jsx(Z.div,{initial:{opacity:0,x:20},whileInView:{opacity:1,x:0},viewport:{once:!0},className:"grid grid-cols-2 gap-4",children:e.map((n,r)=>t.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:r*.1},className:"group relative bg-white rounded-2xl overflow-hidden hover:shadow-xl transition-all",children:[n.image_url&&t.jsx("div",{className:"aspect-square overflow-hidden",children:t.jsx("img",{src:n.image_url,alt:n.name,className:"w-full h-full object-cover group-hover:scale-105 transition-transform duration-500"})}),t.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-black/80 via-black/20 to-transparent opacity-0 group-hover:opacity-100 transition-opacity flex items-end p-4",children:t.jsxs("div",{className:"text-white",children:[t.jsx("p",{className:"font-bold",children:n.name}),t.jsx("p",{className:"text-sm text-white/80",children:n.role})]})}),t.jsxs("div",{className:"p-4",children:[t.jsx("p",{className:"font-semibold text-gray-900",children:n.name}),t.jsx("p",{className:"text-sm text-gray-500",children:n.role})]})]},n.id))})]})})})}function fee(){const[e,n]=F.useState(""),[r,i]=F.useState(!1),[s,a]=F.useState(!1),[o,c]=F.useState(""),d=async h=>{h.preventDefault(),c(""),i(!0);try{if((await ue.entities.NewsletterSubscriber.filter({email:e})).length>0){c("Je bent al ingeschreven!"),i(!1);return}await ue.entities.NewsletterSubscriber.create({email:e,subscription_date:new Date().toISOString(),is_active:!0,source:"homepage"}),a(!0),n("")}catch{c("Er ging iets mis. Probeer het later opnieuw.")}finally{i(!1)}},f=[{title:"5 AI trends die MKB in 2024 niet mag missen",excerpt:"Van AI agents tot voice assistants — deze trends gaan jouw industrie veranderen.",date:"15 jan 2024",readTime:"5 min",category:"Trends",image:"https://images.unsplash.com/photo-1677442136019-21780ecad995?w=600&auto=format&fit=crop"},{title:"Hoe je ChatGPT effectief inzet voor klantenservice",excerpt:"Praktische tips om AI-powered support te implementeren zonder je klanten te frustreren.",date:"12 jan 2024",readTime:"4 min",category:"Tips",image:"https://images.unsplash.com/photo-1531746790731-6c087fecd65a?w=600&auto=format&fit=crop"},{title:"ROI van AI: zo bereken je de business case",excerpt:"Concrete formules en benchmarks om je AI investering te onderbouwen.",date:"8 jan 2024",readTime:"6 min",category:"Strategie",image:"https://images.unsplash.com/photo-1551288049-bebda4e38f71?w=600&auto=format&fit=crop"}];return t.jsx("section",{className:"py-24 bg-gray-50",children:t.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[t.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"bg-gradient-to-br from-gray-900 to-gray-800 rounded-3xl p-8 sm:p-12 mb-16 text-center",children:[t.jsx("h2",{className:"text-3xl sm:text-4xl font-bold text-white mb-4",children:"Blijf op de hoogte"}),t.jsx("p",{className:"text-xl text-gray-300 mb-8",children:"Ontvang wekelijks de beste AI insights"}),s?t.jsxs(Z.div,{initial:{opacity:0,scale:.9},animate:{opacity:1,scale:1},className:"inline-flex items-center gap-2 px-6 py-3 bg-green-600 text-white rounded-full font-semibold",children:[t.jsx(vt,{className:"w-5 h-5"}),"Je bent ingeschreven!"]}):t.jsxs("form",{onSubmit:d,className:"max-w-md mx-auto",children:[t.jsxs("div",{className:"flex gap-3",children:[t.jsx(me,{type:"email",value:e,onChange:h=>n(h.target.value),placeholder:"je@email.nl",required:!0,className:"flex-1 h-14 px-6 bg-white text-gray-900 rounded-full"}),t.jsx(se,{type:"submit",disabled:r,className:"h-14 px-8 bg-[#FAB868] hover:bg-[#E5A04D] text-gray-900 font-semibold rounded-full",children:r?"...":"Aanmelden"})]}),o&&t.jsx("p",{className:"text-red-400 text-sm mt-2",children:o})]})]}),t.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"flex flex-col sm:flex-row sm:items-end justify-between gap-4 mb-12",children:[t.jsxs("div",{children:[t.jsx("h2",{className:"text-3xl sm:text-4xl font-bold text-gray-900 mb-4",children:"Laatste artikelen"}),t.jsx("p",{className:"text-xl text-gray-600",children:"Insights, tips en trends uit de wereld van AI"})]}),t.jsxs(fe,{to:oe("Blog"),className:"flex items-center gap-2 text-blue-600 font-semibold hover:gap-3 transition-all shrink-0",children:["Alle artikelen",t.jsx(He,{className:"w-5 h-5"})]})]}),t.jsx("div",{className:"grid md:grid-cols-3 gap-8",children:f.map((h,m)=>t.jsx(Z.article,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:m*.15},children:t.jsxs(fe,{to:oe("Blog"),className:"group block",children:[t.jsxs("div",{className:"relative rounded-2xl overflow-hidden mb-4 aspect-[16/10]",children:[t.jsx("img",{src:h.image,alt:h.title,className:"w-full h-full object-cover group-hover:scale-105 transition-transform duration-500"}),t.jsx("div",{className:"absolute top-4 left-4",children:t.jsx("span",{className:"px-3 py-1 bg-white/90 backdrop-blur-sm rounded-full text-sm font-medium text-gray-900",children:h.category})})]}),t.jsxs("div",{className:"flex items-center gap-3 text-sm text-gray-500 mb-3",children:[t.jsx("span",{children:h.date}),t.jsx("span",{children:"•"}),t.jsxs("span",{className:"flex items-center gap-1",children:[t.jsx(Dn,{className:"w-4 h-4"}),h.readTime]})]}),t.jsx("h3",{className:"text-xl font-bold text-gray-900 mb-2 group-hover:text-blue-600 transition-colors",children:h.title}),t.jsx("p",{className:"text-gray-600 line-clamp-2",children:h.excerpt})]})},m))})]})})}function mee(){const{data:e=[]}=ze({queryKey:["homeCTAs"],queryFn:()=>ue.entities.HomeCTA.filter({active:!0},"sort_order"),initialData:[]}),n={Sparkles:Tt,Calendar:$r,GraduationCap:pr};return t.jsx("section",{className:"py-24 bg-gray-50",children:t.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[t.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-center mb-12",children:[t.jsx("h2",{className:"text-3xl sm:text-4xl lg:text-5xl font-bold text-gray-900 mb-6",children:"Klaar om je productiviteit te verdubbelen?"}),t.jsx("p",{className:"text-xl text-gray-600 max-w-2xl mx-auto",children:"Kies de route die het beste bij je past. Of je nu eerst wilt verkennen of direct aan de slag wilt."})]}),t.jsx("div",{className:"grid md:grid-cols-3 gap-8 max-w-5xl mx-auto",children:e.map((r,i)=>{const s=n[r.icon]||Tt;return t.jsx(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:i*.1},children:t.jsxs(fe,{to:r.button_url,className:`group block rounded-2xl p-8 transition-all hover:-translate-y-1 h-full ${r.featured?"bg-gradient-to-br from-blue-600 to-blue-700 text-white hover:shadow-2xl hover:shadow-blue-500/30":"bg-white border-2 border-gray-200 hover:border-blue-300 hover:shadow-xl"}`,children:[t.jsx("div",{className:`w-14 h-14 rounded-2xl flex items-center justify-center mb-6 ${r.featured?"bg-white/10":"bg-gray-100 group-hover:bg-blue-50 transition-colors"}`,children:t.jsx(s,{className:`w-7 h-7 ${r.featured?"text-white":"text-gray-700 group-hover:text-blue-600 transition-colors"}`})}),t.jsx("h3",{className:`text-2xl font-bold mb-3 ${r.featured?"text-white":"text-gray-900"}`,children:r.title}),t.jsx("p",{className:`mb-6 ${r.featured?"text-blue-100":"text-gray-600"}`,children:r.description}),t.jsxs("div",{className:`flex items-center gap-2 font-semibold group-hover:gap-3 transition-all ${r.featured?"text-white":"text-blue-600"}`,children:[r.button_text,t.jsx(He,{className:"w-5 h-5"})]})]})},r.id)})})]})})}function pee(){const[e,n]=F.useState(!1),[r,i]=F.useState(""),[s,a]=F.useState(!1),o={title:"AI in 48 seconden - 6 januari 2026",video_url:"https://www.youtube.com/embed/dQw4w9WgXcQ",short_description:"Vandaag: OpenAI lanceert GPT-5, Google's nieuwe AI chip breekt records, en EU stelt strengere AI regelgeving vast."},c=d=>{d.preventDefault(),console.log("WhatsApp subscription:",r),a(!0),setTimeout(()=>{n(!1),a(!1),i("")},2e3)};return t.jsxs("section",{className:"py-12 bg-[#0D0D0F]",children:[t.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[t.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-center mb-8",children:[t.jsx("h2",{className:"text-3xl sm:text-4xl font-bold text-white mb-3",children:"AI nieuws van vandaag in 48 seconden"}),t.jsx("p",{className:"text-lg text-gray-400",children:o.short_description})]}),t.jsx(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:.1},className:"max-w-4xl mx-auto mb-8",children:t.jsx("div",{className:"relative aspect-video rounded-3xl overflow-hidden bg-gray-900 shadow-2xl",children:t.jsx("iframe",{src:o.video_url,title:o.title,className:"w-full h-full",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0})})}),t.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:.2},className:"max-w-3xl mx-auto",children:[t.jsxs("div",{className:"bg-[#1a1a1c] rounded-2xl p-6 mb-4",children:[t.jsx("h3",{className:"text-lg font-bold text-white mb-4 text-center",children:"Volg dagelijkse AI nieuws op onze socials"}),t.jsxs("div",{className:"flex justify-center gap-2 mb-4",children:[t.jsx("a",{href:"https://linkedin.com/company/48-7",target:"_blank",rel:"noopener noreferrer",className:"w-10 h-10 bg-[#F4F4F4] rounded-xl flex items-center justify-center hover:bg-[#FAB868] transition-colors",children:t.jsx(Hs,{className:"w-5 h-5 text-[#0D0D0F]"})}),t.jsx("a",{href:"https://instagram.com/48-7",target:"_blank",rel:"noopener noreferrer",className:"w-10 h-10 bg-[#F4F4F4] rounded-xl flex items-center justify-center hover:bg-[#FAB868] transition-colors",children:t.jsx(Yc,{className:"w-5 h-5 text-[#0D0D0F]"})}),t.jsx("a",{href:"https://youtube.com/@48-7",target:"_blank",rel:"noopener noreferrer",className:"w-10 h-10 bg-[#F4F4F4] rounded-xl flex items-center justify-center hover:bg-[#FAB868] transition-colors",children:t.jsx(Jc,{className:"w-5 h-5 text-[#0D0D0F]"})})]}),t.jsxs("button",{onClick:()=>n(!0),className:"w-full flex items-center justify-center gap-2 px-6 py-3 bg-[#FAB868] text-[#0D0D0F] font-bold rounded-xl hover:bg-[#E5A04D] transition-all",children:[t.jsx(xh,{className:"w-5 h-5"}),"Ontvang dagelijks via WhatsApp"]}),t.jsx("p",{className:"text-xs text-gray-400 text-center mt-3",children:"✓ Elke werkdag • ✓ Geen spam • ✓ Afmelden wanneer je wilt"})]}),t.jsx("div",{className:"text-center",children:t.jsxs(fe,{to:oe("Nieuws"),className:"inline-flex items-center gap-2 px-6 py-3 bg-[#FAB868] text-[#0D0D0F] font-semibold rounded-xl hover:bg-[#E5A04D] transition-all",children:[t.jsx(ky,{className:"w-5 h-5"}),"Bekijk eerdere afleveringen en meer AI nieuws"]})})]})]}),e&&t.jsx("div",{className:"fixed inset-0 bg-black/70 backdrop-blur-sm z-[200] flex items-center justify-center p-4",children:t.jsxs(Z.div,{initial:{opacity:0,scale:.9},animate:{opacity:1,scale:1},className:"bg-white rounded-3xl p-6 sm:p-8 max-w-md w-full relative max-h-[90vh] overflow-y-auto",children:[t.jsx("button",{onClick:()=>n(!1),className:"absolute top-4 right-4 p-2 rounded-full hover:bg-gray-100 transition-colors",children:t.jsx(rn,{className:"w-5 h-5"})}),s?t.jsxs("div",{className:"text-center py-8",children:[t.jsx("div",{className:"w-16 h-16 bg-green-100 rounded-full flex items-center justify-center mx-auto mb-4",children:t.jsx(xh,{className:"w-8 h-8 text-green-600"})}),t.jsx("h3",{className:"text-2xl font-bold text-gray-900 mb-2",children:"Succesvol ingeschreven!"}),t.jsx("p",{className:"text-gray-600",children:"Je ontvangt vanaf morgen dagelijks het AI-nieuws via WhatsApp."})]}):t.jsxs(t.Fragment,{children:[t.jsxs("div",{className:"flex items-center gap-3 mb-6",children:[t.jsx("div",{className:"w-12 h-12 bg-[#25D366] rounded-full flex items-center justify-center",children:t.jsx(xh,{className:"w-6 h-6 text-white"})}),t.jsxs("div",{children:[t.jsx("h3",{className:"text-2xl font-bold text-gray-900",children:"WhatsApp Abonnement"}),t.jsx("p",{className:"text-gray-600",children:"Dagelijks AI-nieuws in 48 seconden"})]})]}),t.jsxs("form",{onSubmit:c,className:"space-y-4",children:[t.jsxs("div",{children:[t.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Telefoonnummer *"}),t.jsx(me,{type:"tel",placeholder:"+31 6 12345678",value:r,onChange:d=>i(d.target.value),required:!0,className:"text-lg py-6 rounded-xl"})]}),t.jsx("p",{className:"text-sm text-gray-500",children:'Door je in te schrijven ga je akkoord met het ontvangen van dagelijkse WhatsApp berichten. Je kunt je op elk moment afmelden door "STOP" te sturen.'}),t.jsx(se,{type:"submit",className:"w-full py-6 bg-[#25D366] text-white hover:bg-[#20BA5A] font-bold text-lg",children:"Abonneer op WhatsApp"})]})]})]})})]})}function gee(){const{data:e=[]}=ze({queryKey:["homeSections"],queryFn:()=>ue.entities.HomeSection.filter({active:!0},"sort_order"),initialData:[]}),n={hero:t.jsx(iee,{},"hero"),trust:t.jsx(see,{},"trust"),services:t.jsx(aee,{},"services"),why:t.jsx(lee,{},"why"),process:t.jsx(oee,{},"process"),cases:t.jsx(cee,{},"cases"),training:t.jsx(uee,{},"training"),quiz:t.jsx(dee,{},"quiz"),team:t.jsx(hee,{},"team"),impact:t.jsx("div",{className:"py-12 bg-white",children:t.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:t.jsx(Hf,{})})},"impact"),news:t.jsx(pee,{},"news"),blog:t.jsx(fee,{},"blog"),cta:t.jsx(mee,{},"cta")};return t.jsx("div",{children:e.map(r=>n[r.section_key])})}function xee(){const[e,n]=F.useState(""),[r,i]=F.useState(""),[s,a]=F.useState(""),[o,c]=F.useState(!1),[d,f]=F.useState(null),[h,m]=F.useState(null),[p,g]=F.useState(!1),[b,j]=F.useState({name:"",email:"",phone:""}),y=[{value:"",label:"Selecteer industrie (optioneel)"},{value:"retail",label:"Retail & E-commerce"},{value:"manufacturing",label:"Productie & Manufacturing"},{value:"healthcare",label:"Zorg & Welzijn"},{value:"professional_services",label:"Professionele Dienstverlening"},{value:"hospitality",label:"Horeca & Hospitality"},{value:"logistics",label:"Logistiek & Transport"},{value:"construction",label:"Bouw & Vastgoed"},{value:"education",label:"Onderwijs & Training"},{value:"finance",label:"Financiële Diensten"},{value:"technology",label:"Technology & Software"},{value:"marketing",label:"Marketing & Media"},{value:"other",label:"Anders"}];F.useEffect(()=>{const w=new URLSearchParams(window.location.search),k=w.get("url"),A=w.get("level");k&&(n(k),x(k)),A&&!k&&console.log("User came from quiz with level:",A)},[]);const x=async(w=null)=>{let k=w||e;if(k){k=k.replace(/^(https?:\/\/)?(www\.)?/,"").replace(/\/$/,""),c(!0),m(null),f(null);try{const A=`https://${k}`,{data:S}=await ue.functions.invoke("generateImpactReport",{website_url:A,company_name:r,industry:s||void 0});S.success?f(S):m(S.error||"Er ging iets mis bij het genereren van het rapport")}catch(A){console.error("Error generating report:",A),m("Kon het rapport niet genereren. Controleer de URL en probeer het opnieuw.")}finally{c(!1)}}},N=async w=>{w.preventDefault(),alert("Bedankt! We nemen zo snel mogelijk contact met je op."),g(!1)};if(o)return t.jsx("div",{className:"pt-20 min-h-screen bg-gradient-to-b from-blue-50 to-white",children:t.jsx("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 py-32 text-center",children:t.jsxs(Z.div,{initial:{opacity:0,scale:.9},animate:{opacity:1,scale:1},children:[t.jsx("div",{className:"w-20 h-20 bg-blue-100 rounded-full flex items-center justify-center mx-auto mb-6",children:t.jsxs("svg",{className:"animate-spin w-10 h-10 text-blue-600",viewBox:"0 0 24 24",children:[t.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4",fill:"none"}),t.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4z"})]})}),t.jsx("h1",{className:"text-3xl font-bold text-gray-900 mb-4",children:"We analyseren je website..."}),t.jsx("p",{className:"text-xl text-gray-600 mb-8",children:"Dit duurt ongeveer 30-60 seconden"}),t.jsxs("div",{className:"flex items-center justify-center gap-2 text-gray-500",children:[t.jsx(vt,{className:"w-5 h-5 text-green-500"}),t.jsx("span",{children:"Website content ophalen"})]}),t.jsxs("div",{className:"flex items-center justify-center gap-2 text-gray-500 mt-3",children:[t.jsx("div",{className:"w-5 h-5 border-2 border-blue-600 border-t-transparent rounded-full animate-spin"}),t.jsx("span",{children:"AI analyse uitvoeren"})]})]})})});if(h)return t.jsx("div",{className:"pt-20 min-h-screen bg-gradient-to-b from-red-50 to-white",children:t.jsx("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 py-32 text-center",children:t.jsxs(Z.div,{initial:{opacity:0,scale:.9},animate:{opacity:1,scale:1},children:[t.jsx("div",{className:"w-20 h-20 bg-red-100 rounded-full flex items-center justify-center mx-auto mb-6",children:t.jsx(Ms,{className:"w-10 h-10 text-red-600"})}),t.jsx("h1",{className:"text-3xl font-bold text-gray-900 mb-4",children:"Er ging iets mis"}),t.jsx("p",{className:"text-xl text-gray-600 mb-8",children:h}),t.jsx(se,{onClick:()=>{m(null),n("")},className:"bg-gray-900 text-white hover:bg-gray-800",children:"Probeer opnieuw"})]})})});if(d){const{report:w,metadata:k}=d,A=w.company_profile||{},S=w.quick_scan||{},E=w.opportunities||[],C=w.productivity_forecast||{},B=w.action_plan||{};return t.jsx("div",{className:"pt-20 min-h-screen bg-gradient-to-b from-gray-50 to-white",children:t.jsxs("div",{className:"max-w-5xl mx-auto px-4 sm:px-6 lg:px-8 py-12",children:[t.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"text-center mb-12",children:[t.jsxs("div",{className:"inline-flex items-center gap-2 px-4 py-2 bg-blue-100 rounded-full text-blue-700 text-sm font-medium mb-6",children:[t.jsx(Tt,{className:"w-4 h-4"}),"48-7 Impact Rapport"]}),t.jsxs("h1",{className:"text-4xl font-bold text-gray-900 mb-4",children:["Hoe ",A.name||"uw bedrijf"," van 24-7 naar 48-7 gaat"]}),t.jsxs("p",{className:"text-xl text-gray-600",children:["Gegenereerd op ",new Date(k.generated_at).toLocaleDateString("nl-NL",{day:"numeric",month:"long",year:"numeric"})]})]}),t.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.1},className:"bg-white rounded-2xl p-8 mb-8 border border-gray-100",children:[t.jsxs("div",{className:"flex items-center gap-3 mb-6",children:[t.jsx("div",{className:"w-12 h-12 bg-blue-100 rounded-xl flex items-center justify-center",children:t.jsx(Ga,{className:"w-6 h-6 text-blue-600"})}),t.jsx("h2",{className:"text-2xl font-bold text-gray-900",children:"Bedrijfsprofiel"})]}),t.jsxs("div",{className:"grid md:grid-cols-1 gap-6",children:[t.jsxs("div",{children:[t.jsx("p",{className:"text-sm text-gray-500 mb-1",children:"Sector"}),t.jsx("p",{className:"font-semibold text-gray-900",children:A.sector})]}),t.jsxs("div",{children:[t.jsx("p",{className:"text-sm text-gray-500 mb-1",children:"Kernactiviteiten"}),t.jsx("p",{className:"text-gray-700",children:A.core_activities})]})]})]}),t.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.2},className:"bg-gradient-to-br from-blue-50 to-indigo-50 rounded-2xl p-8 mb-8",children:[t.jsx("h2",{className:"text-2xl font-bold text-gray-900 mb-4",children:"De Quick Scan"}),t.jsxs("p",{className:"text-lg text-gray-700 mb-6 leading-relaxed",children:["Wij hebben de processen van ",t.jsx("strong",{children:A.name})," geanalyseerd.",S.focus&&` ${S.focus}`]}),S.usp&&t.jsxs("div",{className:"bg-white/50 rounded-xl p-4 mb-4",children:[t.jsx("p",{className:"text-sm text-gray-600 mb-1",children:"Unique Selling Points"}),t.jsx("p",{className:"text-gray-800",children:S.usp})]}),S.time_intensive_processes&&t.jsxs("div",{className:"bg-white/50 rounded-xl p-4",children:[t.jsx("p",{className:"text-sm text-gray-600 mb-1",children:"Tijd-intensieve processen"}),t.jsx("p",{className:"text-gray-800",children:S.time_intensive_processes})]})]}),t.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.3},className:"mb-8",children:[t.jsxs("div",{className:"text-center mb-8",children:[t.jsx("h2",{className:"text-3xl font-bold text-gray-900 mb-2",children:E.length===1?"High-Impact AI Kans":`${E.length} High-Impact AI Kansen`}),t.jsxs("p",{className:"text-gray-600",children:["Specifiek voor ",A.name]})]}),t.jsx("div",{className:"space-y-6",children:E.map((I,R)=>t.jsx(Z.div,{initial:{opacity:0,x:-20},animate:{opacity:1,x:0},transition:{delay:.4+R*.1},className:"bg-white rounded-2xl p-8 border-2 border-gray-100 hover:border-blue-200 transition-all",children:t.jsxs("div",{className:"flex items-start gap-4",children:[t.jsx("div",{className:"w-12 h-12 bg-gradient-to-br from-blue-500 to-indigo-600 rounded-xl flex items-center justify-center text-white font-bold text-xl flex-shrink-0",children:R+1}),t.jsxs("div",{className:"flex-1",children:[t.jsx("h3",{className:"text-2xl font-bold text-gray-900 mb-3",children:I.title}),t.jsxs("div",{className:"space-y-4",children:[t.jsxs("div",{children:[t.jsx("p",{className:"text-sm font-semibold text-red-600 mb-1",children:"❌ Probleem"}),t.jsx("p",{className:"text-gray-700",children:I.problem})]}),t.jsxs("div",{children:[t.jsx("p",{className:"text-sm font-semibold text-blue-600 mb-1",children:"✅ Oplossing"}),t.jsx("p",{className:"text-gray-700",children:I.solution})]}),I.relevance&&t.jsxs("div",{className:"bg-blue-50 p-3 rounded-lg",children:[t.jsx("p",{className:"text-sm font-semibold text-blue-900 mb-1",children:"💡 Waarom relevant"}),t.jsx("p",{className:"text-sm text-blue-800",children:I.relevance})]}),I.implementation_steps&&I.implementation_steps.length>0&&t.jsxs("div",{className:"bg-purple-50 p-3 rounded-lg",children:[t.jsx("p",{className:"text-sm font-semibold text-purple-900 mb-2",children:"🔧 Implementatiestappen"}),t.jsx("ol",{className:"text-sm text-purple-800 space-y-1 list-decimal list-inside",children:I.implementation_steps.map((D,q)=>t.jsx("li",{children:D},q))})]}),I.data_privacy&&t.jsxs("div",{className:"bg-amber-50 p-3 rounded-lg",children:[t.jsx("p",{className:"text-sm font-semibold text-amber-900 mb-1",children:"🔒 Data & Privacy"}),t.jsx("p",{className:"text-sm text-amber-800",children:I.data_privacy})]}),t.jsx("div",{className:"grid sm:grid-cols-2 gap-4 pt-4 border-t border-gray-100",children:t.jsxs("div",{className:"flex items-center gap-2",children:[t.jsx(Hi,{className:"w-5 h-5 text-green-600"}),t.jsxs("div",{children:[t.jsx("p",{className:"text-sm text-gray-600",children:"Winst"}),t.jsx("p",{className:"font-semibold text-gray-900",children:I.benefit})]})]})})]})]})]})},R))})]}),t.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.7},className:"bg-gradient-to-r from-green-500 to-emerald-600 rounded-2xl p-8 text-white mb-8",children:[t.jsx("h2",{className:"text-2xl font-bold mb-6",children:"De 48-7 Productiviteitsprognose"}),t.jsxs("div",{className:"grid md:grid-cols-2 gap-8 mb-6",children:[t.jsxs("div",{className:"bg-white/10 backdrop-blur-sm rounded-xl p-6",children:[t.jsx("p",{className:"text-green-100 mb-2",children:"Huidige output"}),t.jsxs("p",{className:"text-5xl font-bold",children:[C.current||100,"%"]})]}),t.jsxs("div",{className:"bg-white/20 backdrop-blur-sm rounded-xl p-6 border-2 border-white/30",children:[t.jsx("p",{className:"text-green-100 mb-2",children:"Output met 48-7 AI-integratie"}),t.jsxs("p",{className:"text-5xl font-bold",children:[C.with_ai||185,"%"]})]})]}),C.drivers&&C.drivers.length>0&&t.jsxs("div",{children:[t.jsx("p",{className:"font-semibold mb-3",children:"Belangrijkste drivers:"}),t.jsx("ul",{className:"space-y-2",children:C.drivers.map((I,R)=>t.jsxs("li",{className:"flex items-start gap-2",children:[t.jsx(vt,{className:"w-5 h-5 mt-0.5 flex-shrink-0"}),t.jsx("span",{children:I})]},R))})]})]}),w.example_case&&t.jsx(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.8},className:"bg-gradient-to-r from-blue-50 to-indigo-50 rounded-2xl p-8 mb-8 border border-blue-100",children:t.jsxs("div",{className:"flex items-start gap-4",children:[t.jsx("div",{className:"w-12 h-12 bg-blue-600 rounded-xl flex items-center justify-center flex-shrink-0",children:t.jsx(Ut,{className:"w-6 h-6 text-white"})}),t.jsxs("div",{children:[t.jsx("h2",{className:"text-2xl font-bold text-gray-900 mb-3",children:"Voorbeeldcase"}),t.jsx("p",{className:"text-gray-700 text-lg leading-relaxed",children:w.example_case})]})]})}),w.innovative_idea&&t.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.82},className:"bg-gradient-to-br from-purple-600 via-pink-600 to-orange-500 rounded-2xl p-8 mb-8 text-white relative overflow-hidden",children:[t.jsxs("div",{className:"absolute inset-0 opacity-10",children:[t.jsx("div",{className:"absolute top-0 right-0 w-64 h-64 bg-white rounded-full blur-3xl"}),t.jsx("div",{className:"absolute bottom-0 left-0 w-64 h-64 bg-white rounded-full blur-3xl"})]}),t.jsxs("div",{className:"relative z-10",children:[t.jsxs("div",{className:"flex items-start gap-4 mb-6",children:[t.jsx("div",{className:"w-14 h-14 bg-white/20 backdrop-blur-sm rounded-2xl flex items-center justify-center flex-shrink-0",children:t.jsx($s,{className:"w-7 h-7 text-white"})}),t.jsxs("div",{children:[t.jsxs("div",{className:"inline-flex items-center gap-2 px-3 py-1 bg-white/20 backdrop-blur-sm rounded-full text-sm font-semibold mb-2",children:[t.jsx(Tt,{className:"w-4 h-4"}),"Innovatief AI-Idee"]}),t.jsx("h2",{className:"text-3xl font-bold",children:w.innovative_idea.title})]})]}),t.jsxs("div",{className:"space-y-6",children:[t.jsxs("div",{className:"bg-white/10 backdrop-blur-sm rounded-xl p-6",children:[t.jsx("h3",{className:"font-bold text-lg mb-2",children:"💡 Hoe het werkt"}),t.jsx("p",{className:"text-white/90 leading-relaxed",children:w.innovative_idea.description})]}),t.jsxs("div",{className:"grid md:grid-cols-2 gap-4",children:[t.jsxs("div",{className:"bg-white/10 backdrop-blur-sm rounded-xl p-5",children:[t.jsx("h3",{className:"font-bold mb-2",children:"🎯 Onderscheidend vermogen"}),t.jsx("p",{className:"text-white/90 text-sm",children:w.innovative_idea.unique_value})]}),t.jsxs("div",{className:"bg-white/10 backdrop-blur-sm rounded-xl p-5",children:[t.jsx("h3",{className:"font-bold mb-2",children:"📈 Impact"}),t.jsx("p",{className:"text-white/90 text-sm",children:w.innovative_idea.impact})]})]}),t.jsxs("div",{className:"bg-white/10 backdrop-blur-sm rounded-xl p-5",children:[t.jsx("h3",{className:"font-bold mb-2",children:"🔧 Implementatie"}),t.jsx("p",{className:"text-white/90 text-sm",children:w.innovative_idea.implementation})]}),t.jsxs("div",{className:"bg-gradient-to-r from-green-500/20 to-emerald-500/20 backdrop-blur-sm rounded-xl p-5 border-2 border-green-400/30",children:[t.jsxs("h3",{className:"font-bold mb-2 flex items-center gap-2",children:[t.jsx(di,{className:"w-5 h-5"}),"Quick Win (2-4 weken)"]}),t.jsx("p",{className:"text-white/90",children:w.innovative_idea.quick_win})]})]})]})]}),w.training_recommendations&&w.training_recommendations.length>0&&t.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.85},className:"bg-white rounded-2xl p-8 mb-8 border border-gray-100",children:[t.jsxs("div",{className:"flex items-center gap-3 mb-6",children:[t.jsx("div",{className:"w-12 h-12 bg-purple-100 rounded-xl flex items-center justify-center",children:t.jsx(pr,{className:"w-6 h-6 text-purple-600"})}),t.jsx("h2",{className:"text-2xl font-bold text-gray-900",children:"Aanbevolen Trainingen"})]}),t.jsx("div",{className:"space-y-4",children:w.training_recommendations.map((I,R)=>t.jsxs("div",{className:"p-6 bg-purple-50 rounded-xl border-2 border-purple-100",children:[t.jsxs("div",{className:"flex items-start justify-between mb-3",children:[t.jsxs("div",{className:"flex items-start gap-3",children:[t.jsx("div",{className:"w-8 h-8 bg-purple-600 rounded-lg flex items-center justify-center flex-shrink-0 mt-0.5",children:t.jsx("span",{className:"text-white font-bold text-sm",children:R+1})}),t.jsxs("div",{children:[t.jsx("h3",{className:"font-bold text-gray-900 text-lg mb-1",children:I.training_name}),I.target_audience&&t.jsxs("p",{className:"text-sm text-purple-700 font-medium",children:["Doelgroep: ",I.target_audience]})]})]}),t.jsx(fe,{to:oe("Contact")+`?training=${encodeURIComponent(I.training_name)}`,className:"flex-shrink-0 px-4 py-2 bg-purple-600 text-white text-sm font-semibold rounded-lg hover:bg-purple-700 transition-colors",children:"Aanvragen"})]}),I.learning_goals&&t.jsxs("div",{className:"mb-3",children:[t.jsx("p",{className:"text-sm font-medium text-gray-700 mb-1",children:"Leerdoelen:"}),t.jsx("p",{className:"text-sm text-gray-600",children:I.learning_goals})]}),t.jsxs("div",{className:"space-y-2",children:[t.jsxs("div",{children:[t.jsx("p",{className:"text-sm font-medium text-gray-700",children:"Waarom relevant:"}),t.jsx("p",{className:"text-sm text-gray-600",children:I.reason})]}),I.relevance_to_opportunities&&t.jsxs("div",{children:[t.jsx("p",{className:"text-sm font-medium text-gray-700",children:"Link met AI-kansen:"}),t.jsx("p",{className:"text-sm text-gray-600",children:I.relevance_to_opportunities})]}),I.compliance_benefit&&t.jsxs("div",{className:"bg-blue-50 p-2 rounded",children:[t.jsx("p",{className:"text-sm font-medium text-blue-900",children:"Compliance voordeel:"}),t.jsx("p",{className:"text-sm text-blue-800",children:I.compliance_benefit})]})]})]},R))}),t.jsx("div",{className:"flex gap-3 mt-6",children:t.jsxs(fe,{to:oe("Training"),className:"inline-flex items-center gap-2 px-6 py-3 bg-purple-600 text-white font-semibold rounded-xl hover:bg-purple-700 transition-colors",children:["Bekijk alle trainingen",t.jsx(He,{className:"w-5 h-5"})]})})]}),w.ai_security&&t.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.9},className:"bg-white rounded-2xl p-8 mb-8 border border-gray-100",children:[t.jsxs("div",{className:"flex items-center gap-3 mb-6",children:[t.jsx("div",{className:"w-12 h-12 bg-red-100 rounded-xl flex items-center justify-center",children:t.jsx(Zn,{className:"w-6 h-6 text-red-600"})}),t.jsx("h2",{className:"text-2xl font-bold text-gray-900",children:"AI Veiligheid & Compliance"})]}),w.ai_security.risk_analysis_per_opportunity&&w.ai_security.risk_analysis_per_opportunity.length>0&&t.jsxs("div",{className:"mb-6",children:[t.jsx("h3",{className:"font-semibold text-gray-900 mb-3",children:"📊 Risicoanalyse per AI-kans"}),t.jsx("div",{className:"space-y-3",children:w.ai_security.risk_analysis_per_opportunity.map((I,R)=>{const D=z=>{const U=z==null?void 0:z.toLowerCase();return U!=null&&U.includes("hoog")?"border-red-200 bg-red-50":U!=null&&U.includes("beperkt")?"border-orange-200 bg-orange-50":U!=null&&U.includes("minimaal")?"border-green-200 bg-green-50":"border-gray-200 bg-gray-50"},q=z=>{const U=z==null?void 0:z.toLowerCase();return U!=null&&U.includes("hoog")?"bg-red-100 text-red-800 border-red-200":U!=null&&U.includes("beperkt")?"bg-orange-100 text-orange-800 border-orange-200":U!=null&&U.includes("minimaal")?"bg-green-100 text-green-800 border-green-200":"bg-gray-100 text-gray-800 border-gray-200"};return t.jsxs("div",{className:`p-3 rounded-lg border-2 ${D(I.risk_level)}`,children:[t.jsxs("div",{className:"flex items-start justify-between mb-1",children:[t.jsx("p",{className:"font-medium text-gray-900",children:I.opportunity_title}),t.jsx("span",{className:`px-2 py-1 rounded border text-xs font-semibold ${q(I.risk_level)}`,children:I.risk_level})]}),t.jsx("p",{className:"text-sm text-gray-600",children:I.risk_justification})]},R)})})]}),w.ai_security.data_leak_prevention&&t.jsxs("div",{className:"mb-6 p-4 bg-red-50 rounded-xl border border-red-100",children:[t.jsx("h3",{className:"font-semibold text-gray-900 mb-3",children:"🔒 Datalekpreventie"}),w.ai_security.data_leak_prevention.personal_data_processing&&t.jsxs("div",{className:"mb-3",children:[t.jsx("p",{className:"text-sm font-medium text-gray-700",children:"Persoonsgegevens verwerking:"}),t.jsx("p",{className:"text-sm text-gray-600",children:w.ai_security.data_leak_prevention.personal_data_processing})]}),w.ai_security.data_leak_prevention.leak_risks&&w.ai_security.data_leak_prevention.leak_risks.length>0&&t.jsxs("div",{className:"mb-3",children:[t.jsx("p",{className:"text-sm font-medium text-gray-700 mb-1",children:"Risico's voor datalekken:"}),t.jsx("ul",{className:"space-y-1",children:w.ai_security.data_leak_prevention.leak_risks.map((I,R)=>t.jsxs("li",{className:"flex items-start gap-2 text-sm text-gray-600",children:[t.jsx("span",{className:"text-red-500 mt-0.5",children:"•"}),t.jsx("span",{children:I})]},R))})]}),w.ai_security.data_leak_prevention.prevention_measures&&w.ai_security.data_leak_prevention.prevention_measures.length>0&&t.jsxs("div",{className:"mb-3",children:[t.jsx("p",{className:"text-sm font-medium text-gray-700 mb-1",children:"Preventiemaatregelen:"}),t.jsx("ul",{className:"space-y-1",children:w.ai_security.data_leak_prevention.prevention_measures.map((I,R)=>t.jsxs("li",{className:"flex items-start gap-2 text-sm text-gray-600",children:[t.jsx("span",{className:"text-green-500 mt-0.5",children:"✓"}),t.jsx("span",{children:I})]},R))})]}),w.ai_security.data_leak_prevention.gdpr_implications&&t.jsxs("div",{className:"p-2 bg-blue-50 rounded border border-blue-200",children:[t.jsx("p",{className:"text-sm font-medium text-blue-900",children:"GDPR Implicaties:"}),t.jsx("p",{className:"text-sm text-blue-800",children:w.ai_security.data_leak_prevention.gdpr_implications})]})]}),w.ai_security.eu_ai_act_compliance&&t.jsxs("div",{className:"mb-6 p-4 bg-blue-50 rounded-xl border border-blue-100",children:[t.jsx("h3",{className:"font-semibold text-gray-900 mb-3",children:"🇪🇺 EU AI Act Compliance"}),w.ai_security.eu_ai_act_compliance.high_risk_systems&&w.ai_security.eu_ai_act_compliance.high_risk_systems.length>0&&t.jsxs("div",{className:"mb-3",children:[t.jsx("p",{className:"text-sm font-medium text-gray-700 mb-1",children:"Hoog-risico systemen:"}),t.jsx("ul",{className:"space-y-1",children:w.ai_security.eu_ai_act_compliance.high_risk_systems.map((I,R)=>t.jsxs("li",{className:"text-sm text-gray-600 ml-4",children:["• ",I]},R))})]}),w.ai_security.eu_ai_act_compliance.applicable_articles&&t.jsxs("div",{className:"mb-3",children:[t.jsx("p",{className:"text-sm font-medium text-gray-700",children:"Van toepassing zijnde artikelen:"}),t.jsx("p",{className:"text-sm text-gray-600",children:w.ai_security.eu_ai_act_compliance.applicable_articles})]}),w.ai_security.eu_ai_act_compliance.required_documentation&&t.jsxs("div",{className:"mb-3",children:[t.jsx("p",{className:"text-sm font-medium text-gray-700",children:"Vereiste documentatie:"}),t.jsx("p",{className:"text-sm text-gray-600",children:w.ai_security.eu_ai_act_compliance.required_documentation})]}),w.ai_security.eu_ai_act_compliance.human_oversight&&t.jsxs("div",{className:"mb-3",children:[t.jsx("p",{className:"text-sm font-medium text-gray-700",children:"Menselijk toezicht:"}),t.jsx("p",{className:"text-sm text-gray-600",children:w.ai_security.eu_ai_act_compliance.human_oversight})]}),t.jsxs("div",{className:"flex flex-col gap-3 mt-4",children:[t.jsxs("a",{href:"https://eur-lex.europa.eu/legal-content/NL/TXT/HTML/?uri=OJ:L_202401689",target:"_blank",rel:"noopener noreferrer",className:"text-blue-600 hover:text-blue-700 text-sm font-medium inline-flex items-center gap-1",children:["Bekijk volledige EU AI Act",t.jsx(He,{className:"w-4 h-4"})]}),t.jsxs("a",{href:oe("EuAiActChecker"),target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center justify-center gap-2 px-4 py-2 bg-blue-600 text-white text-sm font-semibold rounded-lg hover:bg-blue-700 transition-colors",children:[t.jsx(Zn,{className:"w-4 h-4"}),"Doe uitgebreide EU AI Act check",t.jsx(He,{className:"w-4 h-4"})]})]})]}),w.ai_security.practical_recommendations&&w.ai_security.practical_recommendations.length>0&&t.jsxs("div",{className:"mb-6",children:[t.jsx("h3",{className:"font-semibold text-gray-900 mb-3",children:"✅ Praktische Aanbevelingen"}),t.jsx("ul",{className:"space-y-2",children:w.ai_security.practical_recommendations.map((I,R)=>t.jsxs("li",{className:"flex items-start gap-2 text-gray-700",children:[t.jsx("span",{className:"text-green-500 mt-1",children:"✓"}),t.jsx("span",{children:I})]},R))})]}),w.ai_security.sector_specific_considerations&&t.jsxs("div",{className:"p-4 bg-amber-50 rounded-xl",children:[t.jsx("h3",{className:"font-semibold text-gray-900 mb-2",children:"🏢 Sectie-specifieke Overwegingen"}),t.jsx("p",{className:"text-gray-700",children:w.ai_security.sector_specific_considerations})]})]}),t.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.95},className:"bg-white rounded-2xl p-8 mb-8 border border-gray-100",children:[t.jsxs("div",{className:"flex items-center gap-3 mb-6",children:[t.jsx("div",{className:"w-12 h-12 bg-amber-100 rounded-xl flex items-center justify-center",children:t.jsx(qa,{className:"w-6 h-6 text-amber-600"})}),t.jsx("h2",{className:"text-2xl font-bold text-gray-900",children:"Direct Actieplan"})]}),t.jsxs("div",{className:"space-y-6",children:[t.jsxs("div",{children:[t.jsx("p",{className:"text-sm text-gray-600 mb-2",children:"Hoogste prioriteit"}),t.jsx("p",{className:"text-lg font-semibold text-gray-900",children:B.priority_opportunity})]}),t.jsxs("div",{children:[t.jsx("p",{className:"text-sm text-gray-600 mb-2",children:"Eerste stap"}),t.jsx("p",{className:"text-gray-700",children:B.first_step})]})]})]}),t.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:1},className:"space-y-6",children:[t.jsxs("div",{className:"bg-gradient-to-r from-blue-600 to-indigo-600 rounded-2xl p-8 text-white text-center",children:[t.jsx("h2",{className:"text-2xl font-bold mb-2",children:"Persoonlijk Advies per Email"}),t.jsxs("p",{className:"text-blue-100 mb-6 text-lg",children:["Ontvang een gedetailleerde implementatie roadmap en ROI-berekening specifiek voor ",A.name]}),t.jsxs(se,{onClick:()=>g(!0),className:"inline-flex items-center justify-center gap-2 px-8 py-4 bg-white text-blue-700 font-bold text-lg rounded-xl hover:bg-gray-100 transition-all shadow-lg",children:[t.jsx(Hr,{className:"w-6 h-6"}),"Stuur mij het volledige advies",t.jsx(He,{className:"w-6 h-6"})]})]}),t.jsxs("div",{className:"grid md:grid-cols-2 gap-6",children:[t.jsxs("div",{className:"bg-gray-900 rounded-2xl p-6 text-white",children:[t.jsx("h3",{className:"text-xl font-bold mb-2",children:"Directe Toelichting"}),t.jsx("p",{className:"text-gray-300 mb-4",children:"Bespreek binnen 15 minuten de mogelijkheden voor jouw bedrijf"}),t.jsxs(fe,{to:oe("Contact"),className:"inline-flex items-center justify-center gap-2 w-full px-6 py-3 bg-white text-gray-900 font-semibold rounded-xl hover:bg-gray-100 transition-all",children:[t.jsx($r,{className:"w-5 h-5"}),"Plan een gesprek"]})]}),t.jsxs("div",{className:"bg-purple-600 rounded-2xl p-6 text-white",children:[t.jsx("h3",{className:"text-xl font-bold mb-2",children:"EU AI Act Check"}),t.jsx("p",{className:"text-purple-100 mb-4",children:"Ontdek welke compliance-eisen gelden voor jouw bedrijf"}),t.jsxs(fe,{to:oe("EuAiActChecker"),className:"inline-flex items-center justify-center gap-2 w-full px-6 py-3 bg-white text-purple-700 font-semibold rounded-xl hover:bg-gray-100 transition-all",children:[t.jsx(Zn,{className:"w-5 h-5"}),"Start AI Act Check"]})]})]})]}),p&&t.jsx("div",{className:"fixed inset-0 bg-black/50 backdrop-blur-sm z-50 flex items-center justify-center p-4",children:t.jsxs(Z.div,{initial:{opacity:0,scale:.9},animate:{opacity:1,scale:1},className:"bg-white rounded-2xl p-8 max-w-md w-full",children:[t.jsx("h3",{className:"text-2xl font-bold text-gray-900 mb-4",children:"Ontvang je volledige roadmap"}),t.jsx("p",{className:"text-gray-600 mb-6",children:"Vul je gegevens in en we sturen je een uitgebreide technische roadmap."}),t.jsxs("form",{onSubmit:N,className:"space-y-4",children:[t.jsxs("div",{children:[t.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-1",children:"Naam *"}),t.jsx(me,{required:!0,value:b.name,onChange:I=>j({...b,name:I.target.value})})]}),t.jsxs("div",{children:[t.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-1",children:"Email *"}),t.jsx(me,{required:!0,type:"email",value:b.email,onChange:I=>j({...b,email:I.target.value})})]}),t.jsxs("div",{children:[t.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-1",children:"Telefoon"}),t.jsx(me,{type:"tel",value:b.phone,onChange:I=>j({...b,phone:I.target.value})})]}),t.jsxs("div",{className:"flex gap-3 pt-4",children:[t.jsx(se,{type:"button",variant:"outline",onClick:()=>g(!1),className:"flex-1",children:"Annuleren"}),t.jsx(se,{type:"submit",className:"flex-1 bg-blue-600 hover:bg-blue-700",children:"Versturen"})]})]})]})})]})})}return t.jsx("div",{className:"pt-20 min-h-screen bg-gradient-to-b from-blue-50 to-white",children:t.jsxs("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 py-20",children:[t.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"text-center mb-12",children:[t.jsxs("h1",{className:"text-5xl sm:text-6xl lg:text-7xl font-bold text-[#0D0D0F] mb-8",children:["Ontvang gratis 48-7 ",t.jsx("br",{}),"AI Impact Rapport"]}),t.jsx("p",{className:"text-2xl text-[#9CA3AF] max-w-2xl mx-auto",children:"Ontdek in 60 seconden hoe AI jouw bedrijf van 24-7 naar 48-7 brengt"})]}),t.jsx(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.2},className:"bg-white rounded-2xl p-8 shadow-sm border border-gray-100",children:t.jsxs("form",{onSubmit:w=>{w.preventDefault(),x()},className:"space-y-6",children:[t.jsxs("div",{children:[t.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Website URL *"}),t.jsx(me,{type:"text",placeholder:"jouwbedrijf.nl",value:e,onChange:w=>n(w.target.value),required:!0,className:"text-lg py-6"}),t.jsx("p",{className:"text-sm text-gray-500 mt-1",children:"Vul alleen het domein in, bijv. bedrijf.nl (https:// wordt automatisch toegevoegd)"})]}),t.jsxs("div",{className:"grid sm:grid-cols-2 gap-6",children:[t.jsxs("div",{children:[t.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Bedrijfsnaam (optioneel)"}),t.jsx(me,{type:"text",placeholder:"Je Bedrijf BV",value:r,onChange:w=>i(w.target.value)})]}),t.jsxs("div",{children:[t.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Industrie (optioneel)"}),t.jsx("select",{value:s,onChange:w=>a(w.target.value),className:"w-full px-4 py-3 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500",children:y.map(w=>t.jsx("option",{value:w.value,children:w.label},w.value))})]})]}),t.jsx(se,{type:"submit",className:"w-full py-6 bg-[#FAB868] hover:bg-[#E5A04D] text-[#0D0D0F] font-bold text-lg",children:t.jsxs("span",{className:"flex items-center gap-2 justify-center",children:[t.jsx(Tt,{className:"w-5 h-5"}),"Genereer mijn Impact Rapport",t.jsx(He,{className:"w-5 h-5"})]})}),t.jsx("p",{className:"text-xs text-gray-500 text-center",children:"✓ 100% gratis • ✓ Geen verplichtingen • ✓ Direct resultaat"})]})}),t.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.4},className:"mt-12 text-center",children:[t.jsx("p",{className:"text-gray-600 mb-4",children:"Vertrouwd door:"}),t.jsxs("div",{className:"flex items-center justify-center gap-8 opacity-50",children:[t.jsx("div",{className:"w-16 h-16 bg-gray-200 rounded-xl"}),t.jsx("div",{className:"w-16 h-16 bg-gray-200 rounded-xl"}),t.jsx("div",{className:"w-16 h-16 bg-gray-200 rounded-xl"}),t.jsx("div",{className:"w-16 h-16 bg-gray-200 rounded-xl"})]})]})]})})}function yee(){return t.jsx("div",{className:"pt-20 min-h-screen bg-white",children:t.jsx("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 py-12",children:t.jsxs("div",{className:"bg-[#F4F4F4] rounded-3xl p-12",children:[t.jsxs("div",{className:"flex items-center gap-3 mb-8",children:[t.jsx(Ut,{className:"w-12 h-12 text-[#FAB868]"}),t.jsx("h1",{className:"text-5xl font-bold text-[#0D0D0F]",children:"Impact Report"})]}),t.jsxs("div",{className:"prose max-w-none",children:[t.jsxs("h2",{className:"flex items-center gap-2",children:[t.jsx(M5,{className:"w-5 h-5"})," Overzicht"]}),t.jsx("p",{children:"Het 48-7 Impact Report is een AI-gedreven tool die automatisch een gepersonaliseerd rapport genereert met concrete AI-kansen voor een bedrijf op basis van hun website."}),t.jsx("h2",{children:"Architectuur"}),t.jsx("h3",{children:"Frontend: pages/ImpactRapport.jsx"}),t.jsxs("ul",{children:[t.jsxs("li",{children:[t.jsx("strong",{children:"Framework:"})," React met Framer Motion voor animaties"]}),t.jsxs("li",{children:[t.jsx("strong",{children:"Input:"})," Website URL, optioneel bedrijfsnaam en industrie"]}),t.jsxs("li",{children:[t.jsx("strong",{children:"Flow:"}),t.jsxs("ol",{children:[t.jsx("li",{children:"Gebruiker voert website URL in"}),t.jsx("li",{children:"Optioneel: bedrijfsnaam en industrie selectie"}),t.jsx("li",{children:"Backend functie wordt aangeroepen"}),t.jsx("li",{children:"Loading state (30-60 seconden)"}),t.jsx("li",{children:"Rapport wordt getoond"})]})]})]}),t.jsx("h3",{children:"Backend: functions/generateImpactReport.js"}),t.jsxs("ul",{children:[t.jsxs("li",{children:[t.jsx("strong",{children:"Runtime:"})," Deno Deploy"]}),t.jsxs("li",{children:[t.jsx("strong",{children:"LLM:"})," OpenAI (via Base44 Core.InvokeLLM integration)"]}),t.jsxs("li",{children:[t.jsx("strong",{children:"Features:"}),t.jsxs("ul",{children:[t.jsx("li",{children:"Website scraping via fetch_website"}),t.jsx("li",{children:"Ophalen custom prompts uit database (ImpactReportPrompt entity)"}),t.jsx("li",{children:"Gestructureerde JSON output via response_json_schema"}),t.jsx("li",{children:"Gebruik van internet context voor actuele informatie"})]})]})]}),t.jsx("h2",{children:"Functionaliteiten"}),t.jsx("h3",{children:"1. Bedrijfsprofiel"}),t.jsxs("ul",{children:[t.jsx("li",{children:"Automatische extractie van sector en kernactiviteiten"}),t.jsx("li",{children:"Gebaseerd op website content"})]}),t.jsx("h3",{children:"2. Quick Scan"}),t.jsxs("ul",{children:[t.jsx("li",{children:"Analyse van tijd-intensieve processen"}),t.jsx("li",{children:"Identificatie van USP's"}),t.jsx("li",{children:"Focus op verbeterpotentieel"})]}),t.jsx("h3",{children:"3. Vijf AI Kansen"}),t.jsx("p",{children:"Voor elke kans:"}),t.jsxs("ul",{children:[t.jsxs("li",{children:[t.jsx("strong",{children:"Titel:"})," Duidelijke omschrijving van de kans"]}),t.jsxs("li",{children:[t.jsx("strong",{children:"Probleem:"})," Huidige situatie/uitdaging"]}),t.jsxs("li",{children:[t.jsx("strong",{children:"Oplossing:"})," Concrete AI-oplossing"]}),t.jsxs("li",{children:[t.jsx("strong",{children:"Relevantie:"})," Waarom specifiek relevant voor dit bedrijf"]}),t.jsxs("li",{children:[t.jsx("strong",{children:"Implementatiestappen:"})," 3-5 concrete stappen"]}),t.jsxs("li",{children:[t.jsx("strong",{children:"Data & Privacy:"})," Privacy overwegingen"]}),t.jsxs("li",{children:[t.jsx("strong",{children:"Winst:"})," Concrete voordelen/ROI"]})]}),t.jsx("h3",{children:"4. Productiviteitsprognose"}),t.jsxs("ul",{children:[t.jsx("li",{children:"Huidige output: 100%"}),t.jsx("li",{children:"Projectie met AI: typisch 150-200%"}),t.jsx("li",{children:"Drivers: Specifieke factoren die groei veroorzaken"})]}),t.jsx("h3",{children:"5. AI Veiligheid & Compliance"}),t.jsxs("ul",{children:[t.jsxs("li",{children:[t.jsx("strong",{children:"Risicoanalyse per AI-kans:"})," Risk level tags (Hoog/Beperkt/Minimaal)"]}),t.jsxs("li",{children:[t.jsx("strong",{children:"Datalekpreventie:"})," GDPR compliance, preventiemaatregelen"]}),t.jsxs("li",{children:[t.jsx("strong",{children:"EU AI Act:"})," Hoog-risico systemen, documentatie-eisen"]}),t.jsxs("li",{children:[t.jsx("strong",{children:"Praktische aanbevelingen:"})," Concrete actiepunten"]}),t.jsxs("li",{children:[t.jsx("strong",{children:"Sector-specifiek:"})," Branche-specifieke overwegingen"]})]}),t.jsxs("h2",{className:"flex items-center gap-2",children:[t.jsx(di,{className:"w-5 h-5"})," LLM Prompt Structuur"]}),t.jsx("h3",{children:"Prompt Template"}),t.jsx("pre",{className:"bg-gray-100 p-4 rounded-lg overflow-x-auto",children:`Je bent een AI-consultant voor MKB-bedrijven in Nederland.
Analyseer {company_name} en genereer een concreet Impact Rapport.

Website content: {website_content}
Bedrijfsnaam: {company_name}
Industrie: {industry}

CRITICAL INSTRUCTIONS:
- Output ALLEEN in het Nederlands
- Wees specifiek en concreet, geen algemene AI-praatjes
- Verwijs naar specifieke processen van DIT bedrijf
- Geef concrete voorbeelden en ROI-schattingen
- Implementatiestappen moeten realistisch en uitvoerbaar zijn
- Data privacy overwegingen per kans vermelden

Analyseer:
1. Bedrijfsprofiel (sector, kernactiviteiten)
2. Quick Scan (USP, tijd-intensieve processen, focus)
3. Vijf AI Kansen (titel, probleem, oplossing, relevantie, 
   implementatie, data privacy, winst)
4. Productiviteitsprognose (huidige %, met AI %, drivers)
5. Voorbeeldcase uit de markt
6. Innovatief AI-idee (titel, beschrijving, unique value, 
   impact, implementatie, quick win)
7. Training aanbevelingen
8. AI Veiligheid & Compliance
9. Actieplan (prioriteit, eerste stap)`}),t.jsx("h3",{children:"JSON Schema Output"}),t.jsx("pre",{className:"bg-gray-100 p-4 rounded-lg overflow-x-auto text-sm",children:`{
  "company_profile": {
    "name": "string",
    "sector": "string",
    "core_activities": "string"
  },
  "quick_scan": {
    "usp": "string",
    "time_intensive_processes": "string",
    "focus": "string"
  },
  "opportunities": [
    {
      "title": "string",
      "problem": "string",
      "solution": "string",
      "relevance": "string",
      "implementation_steps": ["string"],
      "data_privacy": "string",
      "benefit": "string"
    }
  ],
  "productivity_forecast": {
    "current": 100,
    "with_ai": "number",
    "drivers": ["string"]
  },
  "ai_security": {
    "risk_analysis_per_opportunity": [...],
    "data_leak_prevention": {...},
    "eu_ai_act_compliance": {...}
  }
}`}),t.jsxs("h2",{className:"flex items-center gap-2",children:[t.jsx(NA,{className:"w-5 h-5"})," LLM Gebruik"]}),t.jsxs("ul",{children:[t.jsxs("li",{children:[t.jsx("strong",{children:"Provider:"})," OpenAI (via Base44 Core.InvokeLLM)"]}),t.jsxs("li",{children:[t.jsx("strong",{children:"Context:"})," Website content + optionele internet context"]}),t.jsxs("li",{children:[t.jsx("strong",{children:"Output:"})," Gestructureerde JSON volgens schema"]}),t.jsxs("li",{children:[t.jsx("strong",{children:"Taal:"})," Nederlands (geforceerd in prompt)"]}),t.jsxs("li",{children:[t.jsx("strong",{children:"Verwerkingstijd:"})," 30-60 seconden"]})]}),t.jsx("h2",{children:"Risk Level Kleuren"}),t.jsxs("div",{className:"space-y-2",children:[t.jsxs("div",{className:"flex items-center gap-3 p-3 rounded-lg border-2 border-red-200 bg-red-50",children:[t.jsx("span",{className:"px-3 py-1 bg-red-100 text-red-800 border border-red-200 rounded text-sm font-semibold",children:"Hoog risico"}),t.jsx("span",{className:"text-sm",children:"border-red-200 bg-red-50"})]}),t.jsxs("div",{className:"flex items-center gap-3 p-3 rounded-lg border-2 border-orange-200 bg-orange-50",children:[t.jsx("span",{className:"px-3 py-1 bg-orange-100 text-orange-800 border border-orange-200 rounded text-sm font-semibold",children:"Beperkt risico"}),t.jsx("span",{className:"text-sm",children:"border-orange-200 bg-orange-50"})]}),t.jsxs("div",{className:"flex items-center gap-3 p-3 rounded-lg border-2 border-green-200 bg-green-50",children:[t.jsx("span",{className:"px-3 py-1 bg-green-100 text-green-800 border border-green-200 rounded text-sm font-semibold",children:"Minimaal risico"}),t.jsx("span",{className:"text-sm",children:"border-green-200 bg-green-50"})]})]}),t.jsx("h2",{children:"Integraties"}),t.jsxs("ul",{children:[t.jsxs("li",{children:[t.jsx("strong",{children:"ImpactReportWidget:"})," Herbruikbaar component voor andere pages"]}),t.jsxs("li",{children:[t.jsx("strong",{children:"EU AI Act Button:"})," Opent in nieuw tabblad"]}),t.jsxs("li",{children:[t.jsx("strong",{children:"Training Links:"})," Direct naar Contact pagina met pre-filled training"]})]}),t.jsx("h2",{children:"Call-to-Actions"}),t.jsxs("ol",{children:[t.jsxs("li",{children:[t.jsx("strong",{children:"Primary:"}),' "Stuur mij het volledige advies" (Email modal)']}),t.jsxs("li",{children:[t.jsx("strong",{children:"Secondary:"}),t.jsxs("ul",{children:[t.jsx("li",{children:'"Plan een gesprek" (Link naar Contact)'}),t.jsx("li",{children:'"Start AI Act Check" (Link naar EU AI Act Checker)'})]})]})]}),t.jsx("h2",{children:"Files"}),t.jsxs("ul",{className:"font-mono text-sm",children:[t.jsx("li",{children:"pages/ImpactRapport.jsx - Frontend component"}),t.jsx("li",{children:"functions/generateImpactReport.js - Backend function"}),t.jsx("li",{children:"components/impact/ImpactReportWidget.jsx - Reusable widget"}),t.jsx("li",{children:"entities/ImpactReportPrompt.json - Custom prompts database"})]})]})]})})})}var Mu={};(function e(n,r,i,s){var a=!!(n.Worker&&n.Blob&&n.Promise&&n.OffscreenCanvas&&n.OffscreenCanvasRenderingContext2D&&n.HTMLCanvasElement&&n.HTMLCanvasElement.prototype.transferControlToOffscreen&&n.URL&&n.URL.createObjectURL),o=typeof Path2D=="function"&&typeof DOMMatrix=="function",c=(function(){if(!n.OffscreenCanvas)return!1;try{var O=new OffscreenCanvas(1,1),T=O.getContext("2d");T.fillRect(0,0,1,1);var V=O.transferToImageBitmap();T.createPattern(V,"no-repeat")}catch{return!1}return!0})();function d(){}function f(O){var T=r.exports.Promise,V=T!==void 0?T:n.Promise;return typeof V=="function"?new V(O):(O(d,d),null)}var h=(function(O,T){return{transform:function(V){if(O)return V;if(T.has(V))return T.get(V);var L=new OffscreenCanvas(V.width,V.height),X=L.getContext("2d");return X.drawImage(V,0,0),T.set(V,L),L},clear:function(){T.clear()}}})(c,new Map),m=(function(){var O=Math.floor(16.666666666666668),T,V,L={},X=0;return typeof requestAnimationFrame=="function"&&typeof cancelAnimationFrame=="function"?(T=function(J){var W=Math.random();return L[W]=requestAnimationFrame(function G(te){X===te||X+O-1<te?(X=te,delete L[W],J()):L[W]=requestAnimationFrame(G)}),W},V=function(J){L[J]&&cancelAnimationFrame(L[J])}):(T=function(J){return setTimeout(J,O)},V=function(J){return clearTimeout(J)}),{frame:T,cancel:V}})(),p=(function(){var O,T,V={};function L(X){function J(W,G){X.postMessage({options:W||{},callback:G})}X.init=function(G){var te=G.transferControlToOffscreen();X.postMessage({canvas:te},[te])},X.fire=function(G,te,re){if(T)return J(G,null),T;var le=Math.random().toString(36).slice(2);return T=f(function(ye){function be(Pe){Pe.data.callback===le&&(delete V[le],X.removeEventListener("message",be),T=null,h.clear(),re(),ye())}X.addEventListener("message",be),J(G,le),V[le]=be.bind(null,{data:{callback:le}})}),T},X.reset=function(){X.postMessage({reset:!0});for(var G in V)V[G](),delete V[G]}}return function(){if(O)return O;if(!i&&a){var X=["var CONFETTI, SIZE = {}, module = {};","("+e.toString()+")(this, module, true, SIZE);","onmessage = function(msg) {","  if (msg.data.options) {","    CONFETTI(msg.data.options).then(function () {","      if (msg.data.callback) {","        postMessage({ callback: msg.data.callback });","      }","    });","  } else if (msg.data.reset) {","    CONFETTI && CONFETTI.reset();","  } else if (msg.data.resize) {","    SIZE.width = msg.data.resize.width;","    SIZE.height = msg.data.resize.height;","  } else if (msg.data.canvas) {","    SIZE.width = msg.data.canvas.width;","    SIZE.height = msg.data.canvas.height;","    CONFETTI = module.exports.create(msg.data.canvas);","  }","}"].join(`
`);try{O=new Worker(URL.createObjectURL(new Blob([X])))}catch(J){return typeof console<"u"&&typeof console.warn=="function"&&console.warn("🎊 Could not load worker",J),null}L(O)}return O}})(),g={particleCount:50,angle:90,spread:45,startVelocity:45,decay:.9,gravity:1,drift:0,ticks:200,x:.5,y:.5,shapes:["square","circle"],zIndex:100,colors:["#26ccff","#a25afd","#ff5e7e","#88ff5a","#fcff42","#ffa62d","#ff36ff"],disableForReducedMotion:!1,scalar:1};function b(O,T){return T?T(O):O}function j(O){return O!=null}function y(O,T,V){return b(O&&j(O[T])?O[T]:g[T],V)}function x(O){return O<0?0:Math.floor(O)}function N(O,T){return Math.floor(Math.random()*(T-O))+O}function w(O){return parseInt(O,16)}function k(O){return O.map(A)}function A(O){var T=String(O).replace(/[^0-9a-f]/gi,"");return T.length<6&&(T=T[0]+T[0]+T[1]+T[1]+T[2]+T[2]),{r:w(T.substring(0,2)),g:w(T.substring(2,4)),b:w(T.substring(4,6))}}function S(O){var T=y(O,"origin",Object);return T.x=y(T,"x",Number),T.y=y(T,"y",Number),T}function E(O){O.width=document.documentElement.clientWidth,O.height=document.documentElement.clientHeight}function C(O){var T=O.getBoundingClientRect();O.width=T.width,O.height=T.height}function B(O){var T=document.createElement("canvas");return T.style.position="fixed",T.style.top="0px",T.style.left="0px",T.style.pointerEvents="none",T.style.zIndex=O,T}function I(O,T,V,L,X,J,W,G,te){O.save(),O.translate(T,V),O.rotate(J),O.scale(L,X),O.arc(0,0,1,W,G,te),O.restore()}function R(O){var T=O.angle*(Math.PI/180),V=O.spread*(Math.PI/180);return{x:O.x,y:O.y,wobble:Math.random()*10,wobbleSpeed:Math.min(.11,Math.random()*.1+.05),velocity:O.startVelocity*.5+Math.random()*O.startVelocity,angle2D:-T+(.5*V-Math.random()*V),tiltAngle:(Math.random()*(.75-.25)+.25)*Math.PI,color:O.color,shape:O.shape,tick:0,totalTicks:O.ticks,decay:O.decay,drift:O.drift,random:Math.random()+2,tiltSin:0,tiltCos:0,wobbleX:0,wobbleY:0,gravity:O.gravity*3,ovalScalar:.6,scalar:O.scalar,flat:O.flat}}function D(O,T){T.x+=Math.cos(T.angle2D)*T.velocity+T.drift,T.y+=Math.sin(T.angle2D)*T.velocity+T.gravity,T.velocity*=T.decay,T.flat?(T.wobble=0,T.wobbleX=T.x+10*T.scalar,T.wobbleY=T.y+10*T.scalar,T.tiltSin=0,T.tiltCos=0,T.random=1):(T.wobble+=T.wobbleSpeed,T.wobbleX=T.x+10*T.scalar*Math.cos(T.wobble),T.wobbleY=T.y+10*T.scalar*Math.sin(T.wobble),T.tiltAngle+=.1,T.tiltSin=Math.sin(T.tiltAngle),T.tiltCos=Math.cos(T.tiltAngle),T.random=Math.random()+2);var V=T.tick++/T.totalTicks,L=T.x+T.random*T.tiltCos,X=T.y+T.random*T.tiltSin,J=T.wobbleX+T.random*T.tiltCos,W=T.wobbleY+T.random*T.tiltSin;if(O.fillStyle="rgba("+T.color.r+", "+T.color.g+", "+T.color.b+", "+(1-V)+")",O.beginPath(),o&&T.shape.type==="path"&&typeof T.shape.path=="string"&&Array.isArray(T.shape.matrix))O.fill(H(T.shape.path,T.shape.matrix,T.x,T.y,Math.abs(J-L)*.1,Math.abs(W-X)*.1,Math.PI/10*T.wobble));else if(T.shape.type==="bitmap"){var G=Math.PI/10*T.wobble,te=Math.abs(J-L)*.1,re=Math.abs(W-X)*.1,le=T.shape.bitmap.width*T.scalar,ye=T.shape.bitmap.height*T.scalar,be=new DOMMatrix([Math.cos(G)*te,Math.sin(G)*te,-Math.sin(G)*re,Math.cos(G)*re,T.x,T.y]);be.multiplySelf(new DOMMatrix(T.shape.matrix));var Pe=O.createPattern(h.transform(T.shape.bitmap),"no-repeat");Pe.setTransform(be),O.globalAlpha=1-V,O.fillStyle=Pe,O.fillRect(T.x-le/2,T.y-ye/2,le,ye),O.globalAlpha=1}else if(T.shape==="circle")O.ellipse?O.ellipse(T.x,T.y,Math.abs(J-L)*T.ovalScalar,Math.abs(W-X)*T.ovalScalar,Math.PI/10*T.wobble,0,2*Math.PI):I(O,T.x,T.y,Math.abs(J-L)*T.ovalScalar,Math.abs(W-X)*T.ovalScalar,Math.PI/10*T.wobble,0,2*Math.PI);else if(T.shape==="star")for(var Te=Math.PI/2*3,We=4*T.scalar,ut=8*T.scalar,nt=T.x,ge=T.y,ve=5,Se=Math.PI/ve;ve--;)nt=T.x+Math.cos(Te)*ut,ge=T.y+Math.sin(Te)*ut,O.lineTo(nt,ge),Te+=Se,nt=T.x+Math.cos(Te)*We,ge=T.y+Math.sin(Te)*We,O.lineTo(nt,ge),Te+=Se;else O.moveTo(Math.floor(T.x),Math.floor(T.y)),O.lineTo(Math.floor(T.wobbleX),Math.floor(X)),O.lineTo(Math.floor(J),Math.floor(W)),O.lineTo(Math.floor(L),Math.floor(T.wobbleY));return O.closePath(),O.fill(),T.tick<T.totalTicks}function q(O,T,V,L,X){var J=T.slice(),W=O.getContext("2d"),G,te,re=f(function(le){function ye(){G=te=null,W.clearRect(0,0,L.width,L.height),h.clear(),X(),le()}function be(){i&&!(L.width===s.width&&L.height===s.height)&&(L.width=O.width=s.width,L.height=O.height=s.height),!L.width&&!L.height&&(V(O),L.width=O.width,L.height=O.height),W.clearRect(0,0,L.width,L.height),J=J.filter(function(Pe){return D(W,Pe)}),J.length?G=m.frame(be):ye()}G=m.frame(be),te=ye});return{addFettis:function(le){return J=J.concat(le),re},canvas:O,promise:re,reset:function(){G&&m.cancel(G),te&&te()}}}function z(O,T){var V=!O,L=!!y(T||{},"resize"),X=!1,J=y(T,"disableForReducedMotion",Boolean),W=a&&!!y(T||{},"useWorker"),G=W?p():null,te=V?E:C,re=O&&G?!!O.__confetti_initialized:!1,le=typeof matchMedia=="function"&&matchMedia("(prefers-reduced-motion)").matches,ye;function be(Te,We,ut){for(var nt=y(Te,"particleCount",x),ge=y(Te,"angle",Number),ve=y(Te,"spread",Number),Se=y(Te,"startVelocity",Number),Oe=y(Te,"decay",Number),je=y(Te,"gravity",Number),tt=y(Te,"drift",Number),et=y(Te,"colors",k),rt=y(Te,"ticks",Number),xe=y(Te,"shapes"),_e=y(Te,"scalar"),De=!!y(Te,"flat"),it=S(Te),$e=nt,kt=[],Er=O.width*it.x,Vn=O.height*it.y;$e--;)kt.push(R({x:Er,y:Vn,angle:ge,spread:ve,startVelocity:Se,color:et[$e%et.length],shape:xe[N(0,xe.length)],ticks:rt,decay:Oe,gravity:je,drift:tt,scalar:_e,flat:De}));return ye?ye.addFettis(kt):(ye=q(O,kt,te,We,ut),ye.promise)}function Pe(Te){var We=J||y(Te,"disableForReducedMotion",Boolean),ut=y(Te,"zIndex",Number);if(We&&le)return f(function(Se){Se()});V&&ye?O=ye.canvas:V&&!O&&(O=B(ut),document.body.appendChild(O)),L&&!re&&te(O);var nt={width:O.width,height:O.height};G&&!re&&G.init(O),re=!0,G&&(O.__confetti_initialized=!0);function ge(){if(G){var Se={getBoundingClientRect:function(){if(!V)return O.getBoundingClientRect()}};te(Se),G.postMessage({resize:{width:Se.width,height:Se.height}});return}nt.width=nt.height=null}function ve(){ye=null,L&&(X=!1,n.removeEventListener("resize",ge)),V&&O&&(document.body.contains(O)&&document.body.removeChild(O),O=null,re=!1)}return L&&!X&&(X=!0,n.addEventListener("resize",ge,!1)),G?G.fire(Te,nt,ve):be(Te,nt,ve)}return Pe.reset=function(){G&&G.reset(),ye&&ye.reset()},Pe}var U;function Y(){return U||(U=z(null,{useWorker:!0,resize:!0})),U}function H(O,T,V,L,X,J,W){var G=new Path2D(O),te=new Path2D;te.addPath(G,new DOMMatrix(T));var re=new Path2D;return re.addPath(te,new DOMMatrix([Math.cos(W)*X,Math.sin(W)*X,-Math.sin(W)*J,Math.cos(W)*J,V,L])),re}function K(O){if(!o)throw new Error("path confetti are not supported in this browser");var T,V;typeof O=="string"?T=O:(T=O.path,V=O.matrix);var L=new Path2D(T),X=document.createElement("canvas"),J=X.getContext("2d");if(!V){for(var W=1e3,G=W,te=W,re=0,le=0,ye,be,Pe=0;Pe<W;Pe+=2)for(var Te=0;Te<W;Te+=2)J.isPointInPath(L,Pe,Te,"nonzero")&&(G=Math.min(G,Pe),te=Math.min(te,Te),re=Math.max(re,Pe),le=Math.max(le,Te));ye=re-G,be=le-te;var We=10,ut=Math.min(We/ye,We/be);V=[ut,0,0,ut,-Math.round(ye/2+G)*ut,-Math.round(be/2+te)*ut]}return{type:"path",path:T,matrix:V}}function Q(O){var T,V=1,L="#000000",X='"Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji", "EmojiOne Color", "Android Emoji", "Twemoji Mozilla", "system emoji", sans-serif';typeof O=="string"?T=O:(T=O.text,V="scalar"in O?O.scalar:V,X="fontFamily"in O?O.fontFamily:X,L="color"in O?O.color:L);var J=10*V,W=""+J+"px "+X,G=new OffscreenCanvas(J,J),te=G.getContext("2d");te.font=W;var re=te.measureText(T),le=Math.ceil(re.actualBoundingBoxRight+re.actualBoundingBoxLeft),ye=Math.ceil(re.actualBoundingBoxAscent+re.actualBoundingBoxDescent),be=2,Pe=re.actualBoundingBoxLeft+be,Te=re.actualBoundingBoxAscent+be;le+=be+be,ye+=be+be,G=new OffscreenCanvas(le,ye),te=G.getContext("2d"),te.font=W,te.fillStyle=L,te.fillText(T,Pe,Te);var We=1/V;return{type:"bitmap",bitmap:G.transferToImageBitmap(),matrix:[We,0,0,We,-le*We/2,-ye*We/2]}}r.exports=function(){return Y().apply(this,arguments)},r.exports.reset=function(){Y().reset()},r.exports.create=z,r.exports.shapeFromPath=K,r.exports.shapeFromText=Q})((function(){return typeof window<"u"?window:typeof self<"u"?self:this||{}})(),Mu,!1);const vee=Mu.exports;Mu.exports.create;function bee({deelnemers:e}){const[n,r]=F.useState(!1),[i,s]=F.useState(0),a=e,c=360/a.length,d=()=>{if(n)return;r(!0);const m=5+Math.random()*3,p=Math.random()*360,g=i+m*360+p;s(g),setTimeout(()=>{r(!1),vee({particleCount:100,spread:70,origin:{y:.6}})},5e3)},f=m=>m%2===0?"#EF4444":"#FFFFFF",h=m=>m%2===0?"#FFFFFF":"#EF4444";return t.jsxs("div",{className:"flex flex-col items-center",children:[t.jsxs(Z.div,{initial:{opacity:0,y:-20},animate:{opacity:1,y:0},className:"text-center mb-8",children:[t.jsx("h1",{className:"text-4xl md:text-5xl font-bold text-transparent bg-clip-text bg-gradient-to-r from-yellow-500 via-orange-500 to-red-500 mb-2",children:"KOFFIE ROULETTE"}),t.jsx("p",{className:"text-gray-700 text-lg",children:"Draai het wiel en ontdek wie er koffie moet halen!"})]}),t.jsxs("div",{className:"relative mb-8",children:[t.jsx(Z.div,{initial:{opacity:0,scale:0},animate:{opacity:1,scale:1},transition:{delay:.2},className:"absolute top-0 left-1/2 -translate-x-1/2 -translate-y-8 z-20",children:t.jsx("div",{className:"w-0 h-0 border-l-[20px] border-l-transparent border-r-[20px] border-r-transparent border-t-[40px] border-t-yellow-500 drop-shadow-lg"})}),t.jsxs(Z.div,{initial:{opacity:0,scale:.8},animate:{opacity:1,scale:1},className:"relative",children:[t.jsx("div",{className:"absolute inset-0 rounded-full bg-gradient-to-br from-yellow-400 via-orange-400 to-red-500 blur-2xl opacity-30 animate-pulse"}),t.jsxs("div",{className:"relative w-[400px] h-[400px] md:w-[500px] md:h-[500px] rounded-full border-[12px] border-yellow-500 shadow-2xl overflow-visible bg-white",children:[t.jsx(Z.svg,{className:"w-full h-full",viewBox:"0 0 200 200",animate:{rotate:i},transition:{duration:5,ease:[.25,.1,.25,1]},children:a.map((m,p)=>{const g=(c*p-90)*(Math.PI/180),b=(c*(p+1)-90)*(Math.PI/180),j=(c*p+c/2-90)*(Math.PI/180),y=100+100*Math.cos(g),x=100+100*Math.sin(g),N=100+100*Math.cos(b),w=100+100*Math.sin(b),k=c>180?1:0,A=`M 100 100 L ${y} ${x} A 100 100 0 ${k} 1 ${N} ${w} Z`,S=f(p),E=h(p),C=60,B=100+C*Math.cos(j),I=100+C*Math.sin(j),R=c*p+c/2;return t.jsxs("g",{children:[t.jsx("path",{d:A,fill:S}),t.jsxs("g",{transform:`translate(${B}, ${I}) rotate(${R})`,children:[t.jsx("text",{textAnchor:"middle",fill:E,fontSize:"24",y:"-5",children:m.character.split(" ")[0]}),t.jsx("text",{textAnchor:"middle",fill:E,fontSize:"8",fontWeight:"bold",y:"15",writingMode:"tb",letterSpacing:"1",children:m.name.toUpperCase()})]})]},`${m.id}-${p}`)})}),t.jsx("div",{className:"absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-20 h-20 rounded-full bg-gradient-to-br from-yellow-500 to-orange-500 border-4 border-white shadow-xl flex items-center justify-center z-10",children:t.jsx("div",{className:"text-3xl",children:"☕"})})]}),t.jsx("div",{className:"absolute -bottom-8 left-1/2 -translate-x-1/2 w-32 h-12 bg-gradient-to-b from-yellow-500 to-yellow-600 rounded-t-lg",style:{clipPath:"polygon(20% 0%, 80% 0%, 100% 100%, 0% 100%)"}})]})]}),t.jsx(se,{onClick:d,disabled:n,className:"px-12 py-6 text-2xl font-bold bg-gradient-to-r from-orange-500 to-red-500 hover:from-orange-600 hover:to-red-600 text-white disabled:opacity-50 mb-8",children:n?"🎰 Aan het draaien...":"🎰 SPIN!"})]})}function jee(){const[e,n]=F.useState(null),[r,i]=F.useState({name:"",character:"☕ Koffieboon"}),[s,a]=F.useState(!1),o=Yt(),{data:c=[]}=ze({queryKey:["koffie-deelnemers"],queryFn:()=>ue.entities.KoffieDeelnemer.list()}),d=Me({mutationFn:x=>ue.entities.KoffieDeelnemer.create(x),onSuccess:()=>{o.invalidateQueries({queryKey:["koffie-deelnemers"]}),i({name:"",character:"☕ Koffieboon"})}}),f=Me({mutationFn:({id:x,data:N})=>ue.entities.KoffieDeelnemer.update(x,N),onSuccess:()=>{o.invalidateQueries({queryKey:["koffie-deelnemers"]}),n(null)}}),h=Me({mutationFn:x=>ue.entities.KoffieDeelnemer.delete(x),onSuccess:()=>o.invalidateQueries({queryKey:["koffie-deelnemers"]})}),m=x=>{x.preventDefault(),e?f.mutate({id:e,data:r}):d.mutate({...r,is_present:!0})},p=x=>{f.mutate({id:x.id,data:{...x,is_present:!x.is_present}})},g=x=>{n(x.id),i({name:x.name,character:x.character})},b=c.filter(x=>x.is_present),j=b.length>=2,y=["☕ Koffieboon","🦸 Superheld","🥷 Ninja","👑 Koning/Koningin","🤖 Robot","🏴‍☠️ Piraat","🧙 Tovenaar","🦄 Eenhoorn","🐉 Draak","🚀 Astronaut"];return s&&j?t.jsx("div",{className:"min-h-screen bg-gradient-to-br from-yellow-50 via-orange-50 to-red-50 pt-20",children:t.jsxs("div",{className:"max-w-6xl mx-auto px-4 py-12",children:[t.jsxs(se,{onClick:()=>a(!1),variant:"outline",className:"mb-6",children:[t.jsx(rn,{className:"w-4 h-4 mr-2"}),"Terug naar deelnemers"]}),t.jsx(bee,{deelnemers:b})]})}):t.jsx("div",{className:"min-h-screen bg-gradient-to-br from-yellow-50 via-orange-50 to-red-50 pt-20",children:t.jsxs("div",{className:"max-w-4xl mx-auto px-4 py-12",children:[t.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"text-center mb-12",children:[t.jsx("h1",{className:"text-5xl font-bold text-gray-900 mb-4",children:"☕ Koffie Roulette"}),t.jsx("p",{className:"text-xl text-gray-600",children:"Wie moet er vandaag koffie halen?"})]}),t.jsx(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.1},className:"text-center mb-8",children:j?t.jsx(se,{onClick:()=>a(!0),disabled:!j,className:"px-12 py-6 text-2xl font-bold bg-gradient-to-r from-orange-500 to-red-500 hover:from-orange-600 hover:to-red-600 text-white",children:"🎰 Start Koffie Roulette!"}):t.jsx("p",{className:"text-gray-600 mb-4",children:"Zorg dat minimaal 2 deelnemers aanwezig zijn om te kunnen spinnen"})}),t.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.2},className:"bg-white rounded-2xl p-6 mb-8 border-2 border-orange-200",children:[t.jsxs("h2",{className:"text-xl font-bold text-gray-900 mb-4",children:["Deelnemers (",b.length," aanwezig van ",c.length,")"]}),c.length===0?t.jsx("p",{className:"text-gray-500 text-center py-8",children:"Geen deelnemers toegevoegd. Voeg er een paar toe om te beginnen!"}):t.jsx("div",{className:"space-y-3",children:t.jsx(ai,{children:c.map(x=>t.jsxs(Z.div,{initial:{opacity:0,x:-20},animate:{opacity:1,x:0},exit:{opacity:0,x:20},className:`flex items-center justify-between p-4 rounded-xl border-2 transition-all ${x.is_present?"bg-green-50 border-green-200":"bg-gray-50 border-gray-200 opacity-50"}`,children:[t.jsxs("div",{className:"flex items-center gap-4 flex-1",children:[t.jsx("div",{className:"text-3xl",children:x.character.split(" ")[0]}),t.jsxs("div",{children:[t.jsx("p",{className:"font-semibold text-gray-900",children:x.name}),t.jsx("p",{className:"text-sm text-gray-600",children:x.character})]})]}),t.jsxs("div",{className:"flex items-center gap-4",children:[t.jsxs("div",{className:"flex items-center gap-2",children:[t.jsx("span",{className:"text-sm font-medium text-gray-700",children:x.is_present?"Aanwezig":"Afwezig"}),t.jsx(Hc,{checked:x.is_present,onCheckedChange:()=>p(x),className:"data-[state=checked]:bg-green-500"})]}),t.jsx(se,{variant:"outline",size:"sm",onClick:()=>g(x),children:t.jsx(Bc,{className:"w-4 h-4"})}),t.jsx(se,{variant:"outline",size:"sm",onClick:()=>h.mutate(x.id),children:t.jsx(wt,{className:"w-4 h-4"})})]})]},x.id))})})]}),t.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.3},className:"bg-white rounded-2xl p-6 border-2 border-orange-200",children:[t.jsx("h2",{className:"text-xl font-bold text-gray-900 mb-4",children:e?"Deelnemer bewerken":"Nieuwe deelnemer"}),t.jsxs("form",{onSubmit:m,className:"flex flex-col sm:flex-row gap-4",children:[t.jsx(me,{required:!0,placeholder:"Naam",value:r.name,onChange:x=>i({...r,name:x.target.value}),className:"flex-1"}),t.jsx("select",{value:r.character,onChange:x=>i({...r,character:x.target.value}),className:"px-4 py-3 border-b-2 border-gray-200 focus:border-orange-500 rounded-none bg-white focus:outline-none",children:y.map(x=>t.jsx("option",{value:x,children:x},x))}),t.jsx(se,{type:"submit",className:"bg-orange-500 hover:bg-orange-600",children:e?t.jsxs(t.Fragment,{children:[t.jsx(Bc,{className:"w-4 h-4 mr-2"}),"Opslaan"]}):t.jsxs(t.Fragment,{children:[t.jsx(Pt,{className:"w-4 h-4 mr-2"}),"Toevoegen"]})}),e&&t.jsx(se,{type:"button",variant:"outline",onClick:()=>{n(null),i({name:"",character:"☕ Koffieboon"})},children:"Annuleren"})]})]})]})})}const wee=[{id:"1",title:"AI in 48 seconden - 6 januari 2026",video_url:"https://www.youtube.com/embed/dQw4w9WgXcQ",publication_date:"2026-01-06",short_description:"OpenAI lanceert GPT-5, Google's nieuwe AI chip breekt records, en EU stelt strengere AI regelgeving vast.",articles:[{article_title:"OpenAI onthult GPT-5: De volgende generatie AI",article_content:`OpenAI heeft vandaag GPT-5 aangekondigd, met aanzienlijk verbeterde reasoning capabilities en multimodale functionaliteit.

## Belangrijkste verbeteringen

**Beter redeneren**: GPT-5 toont een dramatische verbetering in logisch redeneren en probleemoplossing. In benchmarks scoort het model 30% hoger dan GPT-4 op complexe wiskundige vraagstukken.

**Multimodale capaciteiten**: Het nieuwe model kan naadloos werken met tekst, afbeeldingen, audio en video. Dit opent deuren voor volledig nieuwe toepassingen.

**Langere context**: GPT-5 kan nu tot 500.000 tokens verwerken in één keer, waardoor het geschikt is voor het analyseren van complete codebases of lange documenten.

## Impact op de industrie

Experts voorspellen dat GPT-5 een nieuwe golf van AI-adoptie zal stimuleren, vooral in sectoren zoals gezondheidszorg, onderwijs en software development.

"Dit is een gamechanger voor hoe we met AI interageren," aldus Sam Altman, CEO van OpenAI.`,source_url:"https://openai.com/blog/gpt-5",image_url:"https://images.unsplash.com/photo-1677442136019-21780ecad995?w=1200&auto=format&fit=crop"},{article_title:"Google presenteert Tensor G5: 3x sneller dan voorganger",article_content:`Google heeft de Tensor G5 AI-chip aangekondigd, die een revolutie belooft in edge computing met ongekende prestaties en energie-efficiëntie.

## Technische specificaties

De nieuwe chip beschikt over:
- 3x snellere AI-inferentie dan de G4
- 40% lager energieverbruik
- Ondersteuning voor on-device training
- Geavanceerde privacy features

## Praktische toepassingen

Met de Tensor G5 kunnen smartphones en andere apparaten:
- Realtime vertaling zonder internetverbinding
- Geavanceerde foto/video bewerking on-device
- Persoonlijke AI-assistenten die volledig lokaal draaien

Dit betekent snellere responstijden én betere privacy voor eindgebruikers.`,source_url:"https://blog.google/technology/ai/tensor-g5/",image_url:"https://images.unsplash.com/photo-1550751827-4bd374c3f58b?w=1200&auto=format&fit=crop"},{article_title:"EU kondigt strengere AI-regelgeving aan",article_content:`De Europese Unie heeft nieuwe maatregelen aangekondigd om de AI-sector strenger te reguleren, met focus op transparantie en veiligheid.

## Nieuwe vereisten

Bedrijven die AI-systemen ontwikkelen of gebruiken moeten vanaf nu:
- Risico-assessments uitvoeren voor hoog-risico AI
- Transparant zijn over het gebruik van AI
- Zorgen voor menselijk toezicht bij kritieke beslissingen
- Voldoen aan strenge data protection eisen

## Impact op bedrijven

Nederlandse bedrijven krijgen 12 maanden de tijd om te voldoen aan de nieuwe regelgeving. Niet-naleving kan leiden tot boetes tot €10 miljoen of 2% van de jaaromzet.`,source_url:"https://ec.europa.eu/ai-act",image_url:"https://images.unsplash.com/photo-1519389950473-47ba0277781c?w=1200&auto=format&fit=crop"}]}];function Nee(){const[e,n]=F.useState(!1),[r,i]=F.useState(!1),a=new URLSearchParams(window.location.search).get("id"),o=wee.find(m=>m.id===a);if(!o)return t.jsx("div",{className:"pt-20 min-h-screen bg-white flex items-center justify-center",children:t.jsxs("div",{className:"text-center",children:[t.jsx("h1",{className:"text-3xl font-bold text-gray-900 mb-4",children:"Nieuwsitem niet gevonden"}),t.jsx(fe,{to:oe("Nieuws"),className:"text-blue-600 hover:underline",children:"Terug naar nieuws"})]})});const c=window.location.href,d=o.title,f=o.short_description,h=m=>{const p=encodeURIComponent(c),g=encodeURIComponent(d),b={linkedin:`https://www.linkedin.com/sharing/share-offsite/?url=${p}`,x:`https://twitter.com/intent/tweet?url=${p}&text=${g}`,facebook:`https://www.facebook.com/sharer/sharer.php?u=${p}`};m==="copy"?(navigator.clipboard.writeText(c),i(!0),setTimeout(()=>i(!1),2e3)):b[m]?window.open(b[m],"_blank","width=600,height=400"):navigator.share&&navigator.share({title:d,text:f,url:c}),n(!1)};return t.jsxs("div",{className:"pt-20 min-h-screen bg-white",children:[t.jsx("div",{className:"bg-[#F4F4F4] py-4",children:t.jsx("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8",children:t.jsxs(fe,{to:oe("Nieuws"),className:"inline-flex items-center gap-2 text-[#0D0D0F] hover:text-[#FAB868] transition-colors",children:[t.jsx(ht,{className:"w-5 h-5"}),"Terug naar nieuwsoverzicht"]})})}),t.jsx("section",{className:"py-12 bg-white",children:t.jsx("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8",children:t.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},children:[t.jsxs("div",{className:"flex items-center justify-between mb-6",children:[t.jsxs("div",{className:"flex items-center gap-2 text-[#9CA3AF]",children:[t.jsx($r,{className:"w-5 h-5"}),t.jsx("span",{children:new Date(o.publication_date).toLocaleDateString("nl-NL",{weekday:"long",year:"numeric",month:"long",day:"numeric"})})]}),t.jsxs("div",{className:"relative",children:[t.jsxs("button",{onClick:()=>n(!e),className:"flex items-center gap-2 px-4 py-2 bg-[#F4F4F4] text-[#0D0D0F] rounded-xl hover:bg-[#FAB868] transition-colors",children:[t.jsx(J0,{className:"w-5 h-5"}),"Delen"]}),t.jsx(ai,{children:e&&t.jsxs(Z.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:10},className:"absolute right-0 mt-2 bg-white rounded-2xl shadow-xl border border-gray-100 p-3 w-48 z-50",children:[t.jsxs("button",{onClick:()=>h("linkedin"),className:"flex items-center gap-3 w-full px-4 py-3 text-left hover:bg-[#F4F4F4] rounded-xl transition-colors",children:[t.jsx(Hs,{className:"w-5 h-5 text-[#0077B5]"}),t.jsx("span",{className:"text-sm font-medium",children:"LinkedIn"})]}),t.jsxs("button",{onClick:()=>h("x"),className:"flex items-center gap-3 w-full px-4 py-3 text-left hover:bg-[#F4F4F4] rounded-xl transition-colors",children:[t.jsx(rn,{className:"w-5 h-5"}),t.jsx("span",{className:"text-sm font-medium",children:"X (Twitter)"})]}),t.jsxs("button",{onClick:()=>h("facebook"),className:"flex items-center gap-3 w-full px-4 py-3 text-left hover:bg-[#F4F4F4] rounded-xl transition-colors",children:[t.jsx(kA,{className:"w-5 h-5 text-[#1877F2]"}),t.jsx("span",{className:"text-sm font-medium",children:"Facebook"})]}),t.jsx("button",{onClick:()=>h("copy"),className:"flex items-center gap-3 w-full px-4 py-3 text-left hover:bg-[#F4F4F4] rounded-xl transition-colors",children:r?t.jsxs(t.Fragment,{children:[t.jsx(Wt,{className:"w-5 h-5 text-green-600"}),t.jsx("span",{className:"text-sm font-medium text-green-600",children:"Gekopieerd!"})]}):t.jsxs(t.Fragment,{children:[t.jsx(_A,{className:"w-5 h-5"}),t.jsx("span",{className:"text-sm font-medium",children:"Kopieer link"})]})})]})})]})]}),t.jsx("h1",{className:"text-5xl font-bold text-[#0D0D0F] mb-6",children:o.title}),t.jsx("p",{className:"text-2xl text-[#9CA3AF] mb-8",children:o.short_description})]})})}),t.jsx("section",{className:"py-8 bg-[#F4F4F4]",children:t.jsx("div",{className:"max-w-5xl mx-auto px-4 sm:px-6 lg:px-8",children:t.jsx(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},children:t.jsx("div",{className:"aspect-video rounded-3xl overflow-hidden bg-gray-900 shadow-xl",children:t.jsx("iframe",{src:o.video_url,title:o.title,className:"w-full h-full",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0})})})})}),t.jsx("section",{className:"py-16 bg-white",children:t.jsx("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8",children:t.jsx("div",{className:"space-y-16",children:o.articles.map((m,p)=>t.jsxs(Z.article,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:p*.1},className:"border-b border-gray-200 pb-16 last:border-0",children:[m.image_url&&t.jsx("div",{className:"rounded-3xl overflow-hidden mb-8",children:t.jsx("img",{src:m.image_url,alt:m.article_title,className:"w-full h-auto"})}),t.jsx("h2",{className:"text-4xl font-bold text-[#0D0D0F] mb-6",children:m.article_title}),t.jsx("div",{className:"prose prose-lg max-w-none mb-6",children:t.jsx($f,{children:m.article_content})}),m.source_url&&t.jsxs("a",{href:m.source_url,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-2 text-[#FAB868] hover:text-[#E5A04D] font-semibold transition-colors",children:["Lees originele bron",t.jsx(Ls,{className:"w-5 h-5"})]})]},p))})})}),t.jsx("section",{className:"py-16 bg-[#F4F4F4]",children:t.jsx("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 text-center",children:t.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},children:[t.jsx("h2",{className:"text-3xl font-bold text-[#0D0D0F] mb-4",children:"Mis geen enkele aflevering"}),t.jsx("p",{className:"text-xl text-[#9CA3AF] mb-8",children:"Volg ons op social media of ontvang dagelijks de video via WhatsApp"}),t.jsx(fe,{to:oe("Nieuws"),className:"inline-flex items-center gap-2 px-8 py-4 bg-[#FAB868] text-[#0D0D0F] font-semibold rounded-full hover:bg-[#E5A04D] transition-all text-lg",children:"Bekijk alle afleveringen"})]})})})]})}const XS=[{id:"1",title:"AI in 48 seconden - 6 januari 2026",video_url:"https://www.youtube.com/embed/dQw4w9WgXcQ",publication_date:"2026-01-06",short_description:"OpenAI lanceert GPT-5, Google's nieuwe AI chip breekt records, en EU stelt strengere AI regelgeving vast.",articles:[{article_title:"OpenAI onthult GPT-5: De volgende generatie AI",article_content:"OpenAI heeft vandaag GPT-5 aangekondigd, met verbeterde reasoning capabilities...",image_url:"https://images.unsplash.com/photo-1677442136019-21780ecad995?w=800&auto=format&fit=crop"},{article_title:"Google presenteert Tensor G5: 3x sneller dan voorganger",article_content:"Google's nieuwe AI chip belooft een revolutie in edge computing...",image_url:"https://images.unsplash.com/photo-1550751827-4bd374c3f58b?w=800&auto=format&fit=crop"}]},{id:"2",title:"AI in 48 seconden - 3 januari 2026",video_url:"https://www.youtube.com/embed/dQw4w9WgXcQ",publication_date:"2026-01-03",short_description:"Meta kondigt Llama 4 aan, Microsoft investeert $10 miljard in AI infrastructuur, en ChatGPT bereikt 200 miljoen gebruikers.",articles:[]},{id:"3",title:"AI in 48 seconden - 2 januari 2026",video_url:"https://www.youtube.com/embed/dQw4w9WgXcQ",publication_date:"2026-01-02",short_description:"Apple lanceert Siri 2.0 met on-device AI, DeepMind lost wiskundeprobleem op, en AI detecteert kanker met 99% nauwkeurigheid.",articles:[]}];function kee(){const[e,n]=F.useState(""),[r,i]=F.useState(!1),[s,a]=F.useState(!1),[o,c]=F.useState(!1),d=XS[0],f=XS.slice(1),h=b=>{b.preventDefault(),console.log("WhatsApp subscription:",e),i(!0),setTimeout(()=>{i(!1),n("")},3e3)},m=window.location.origin+oe("Nieuws"),p=d.title;d.short_description;const g=b=>{const j=encodeURIComponent(m),y=encodeURIComponent(p),x={linkedin:`https://www.linkedin.com/sharing/share-offsite/?url=${j}`,x:`https://twitter.com/intent/tweet?url=${j}&text=${y}`,facebook:`https://www.facebook.com/sharer/sharer.php?u=${j}`};b==="copy"?(navigator.clipboard.writeText(m),c(!0),setTimeout(()=>c(!1),2e3)):x[b]&&window.open(x[b],"_blank","width=600,height=400"),a(!1)};return t.jsxs("div",{className:"pt-20 min-h-screen bg-white",children:[t.jsx("section",{className:"py-16 bg-[#0D0D0F]",children:t.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:t.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"text-center",children:[t.jsx("h1",{className:"text-5xl sm:text-6xl font-bold text-white mb-6",children:"Daily AI in 48 seconden"}),t.jsx("p",{className:"text-2xl text-gray-400 max-w-3xl mx-auto",children:"Elke werkdag het laatste AI-nieuws, samengevat in 48 seconden"})]})})}),t.jsx("section",{className:"py-16 bg-white",children:t.jsx("div",{className:"max-w-6xl mx-auto px-4 sm:px-6 lg:px-8",children:t.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},children:[t.jsxs("div",{className:"mb-6",children:[t.jsx("p",{className:"text-sm text-[#9CA3AF] mb-2",children:new Date(d.publication_date).toLocaleDateString("nl-NL",{weekday:"long",year:"numeric",month:"long",day:"numeric"})}),t.jsx("h2",{className:"text-3xl font-bold text-[#0D0D0F]",children:"AI nieuws van vandaag in 48 seconden"})]}),t.jsx("div",{className:"aspect-video rounded-3xl overflow-hidden bg-gray-900 shadow-xl mb-8",children:t.jsx("iframe",{src:d.video_url,title:d.title,className:"w-full h-full",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0})}),t.jsxs("div",{className:"flex items-start justify-between gap-4 mb-6",children:[t.jsx("p",{className:"text-xl text-[#9CA3AF] leading-relaxed flex-1",children:d.short_description}),t.jsxs("div",{className:"relative",children:[t.jsxs("button",{onClick:()=>a(!s),className:"flex items-center gap-2 px-4 py-2 bg-[#F4F4F4] text-[#0D0D0F] rounded-xl hover:bg-[#FAB868] transition-colors whitespace-nowrap",children:[t.jsx(J0,{className:"w-5 h-5"}),t.jsx("span",{className:"hidden sm:inline",children:"Delen"})]}),t.jsx(ai,{children:s&&t.jsxs(Z.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:10},className:"absolute right-0 mt-2 bg-white rounded-2xl shadow-xl border border-gray-100 p-3 w-48 z-50",children:[t.jsxs("button",{onClick:()=>g("linkedin"),className:"flex items-center gap-3 w-full px-4 py-3 text-left hover:bg-[#F4F4F4] rounded-xl transition-colors",children:[t.jsx(Hs,{className:"w-5 h-5 text-[#0077B5]"}),t.jsx("span",{className:"text-sm font-medium",children:"LinkedIn"})]}),t.jsxs("button",{onClick:()=>g("x"),className:"flex items-center gap-3 w-full px-4 py-3 text-left hover:bg-[#F4F4F4] rounded-xl transition-colors",children:[t.jsx(rn,{className:"w-5 h-5"}),t.jsx("span",{className:"text-sm font-medium",children:"X (Twitter)"})]}),t.jsxs("button",{onClick:()=>g("facebook"),className:"flex items-center gap-3 w-full px-4 py-3 text-left hover:bg-[#F4F4F4] rounded-xl transition-colors",children:[t.jsx(kA,{className:"w-5 h-5 text-[#1877F2]"}),t.jsx("span",{className:"text-sm font-medium",children:"Facebook"})]}),t.jsx("button",{onClick:()=>g("copy"),className:"flex items-center gap-3 w-full px-4 py-3 text-left hover:bg-[#F4F4F4] rounded-xl transition-colors",children:o?t.jsxs(t.Fragment,{children:[t.jsx(Wt,{className:"w-5 h-5 text-green-600"}),t.jsx("span",{className:"text-sm font-medium text-green-600",children:"Gekopieerd!"})]}):t.jsxs(t.Fragment,{children:[t.jsx(_A,{className:"w-5 h-5"}),t.jsx("span",{className:"text-sm font-medium",children:"Kopieer link"})]})})]})})]})]})]})})}),t.jsx("section",{className:"py-12 bg-gradient-to-r from-[#25D366] to-[#20BA5A]",children:t.jsx("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8",children:t.jsx(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},children:r?t.jsxs("div",{className:"text-center py-8",children:[t.jsx("div",{className:"w-16 h-16 bg-white/20 rounded-full flex items-center justify-center mx-auto mb-4",children:t.jsx(vt,{className:"w-8 h-8 text-white"})}),t.jsx("h3",{className:"text-3xl font-bold text-white mb-2",children:"Succesvol ingeschreven!"}),t.jsx("p",{className:"text-xl text-white/90",children:"Je ontvangt vanaf morgen dagelijks het AI-nieuws via WhatsApp."})]}):t.jsxs(t.Fragment,{children:[t.jsxs("div",{className:"text-center mb-8",children:[t.jsx("h2",{className:"text-4xl font-bold text-white mb-4",children:"Blijf niet achter, mis geen AI nieuws!"}),t.jsx("p",{className:"text-xl text-white/90",children:"Wij sturen je elke werkdag het belangrijkste AI nieuws in 48 seconden via WhatsApp."})]}),t.jsxs("form",{onSubmit:h,className:"flex flex-col sm:flex-row gap-4 max-w-2xl mx-auto",children:[t.jsx(me,{type:"tel",placeholder:"+31 6 12345678",value:e,onChange:b=>n(b.target.value),required:!0,className:"flex-1 px-6 py-6 text-lg bg-white rounded-xl h-14"}),t.jsxs(se,{type:"submit",className:"px-8 py-6 bg-[#0D0D0F] text-white hover:bg-[#1a1a1c] font-bold text-lg rounded-xl h-14",children:[t.jsx(xh,{className:"w-5 h-5 mr-2"}),"Inschrijven"]})]}),t.jsx("p",{className:"text-sm text-white/80 text-center mt-4",children:"✓ Elke werkdag • ✓ Geen spam • ✓ Afmelden wanneer je wilt"})]})})})}),d.articles.length>0&&t.jsx("section",{className:"py-16 bg-[#F4F4F4]",children:t.jsxs("div",{className:"max-w-6xl mx-auto px-4 sm:px-6 lg:px-8",children:[t.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"mb-12",children:[t.jsx("h2",{className:"text-4xl font-bold text-[#0D0D0F] mb-4",children:"Verdieping van vandaag"}),t.jsx("p",{className:"text-xl text-[#9CA3AF]",children:"Lees meer over de belangrijkste ontwikkelingen"})]}),t.jsx("div",{className:"grid md:grid-cols-2 gap-8",children:d.articles.map((b,j)=>t.jsx(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:j*.1},children:t.jsxs(fe,{to:oe("NewsDetail")+`?id=${d.id}`,className:"block bg-white rounded-3xl overflow-hidden hover:shadow-xl transition-all group",children:[b.image_url&&t.jsx("div",{className:"aspect-video overflow-hidden",children:t.jsx("img",{src:b.image_url,alt:b.article_title,className:"w-full h-full object-cover group-hover:scale-105 transition-transform duration-300"})}),t.jsxs("div",{className:"p-6",children:[t.jsx("h3",{className:"text-2xl font-bold text-[#0D0D0F] mb-3 group-hover:text-[#FAB868] transition-colors",children:b.article_title}),t.jsx("p",{className:"text-[#9CA3AF] line-clamp-3 mb-4",children:b.article_content}),t.jsxs("span",{className:"inline-flex items-center gap-2 text-[#FAB868] font-semibold",children:["Lees meer",t.jsx(He,{className:"w-5 h-5"})]})]})]})},j))})]})}),t.jsx("section",{className:"py-16 bg-white",children:t.jsxs("div",{className:"max-w-6xl mx-auto px-4 sm:px-6 lg:px-8",children:[t.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"mb-12",children:[t.jsx("h2",{className:"text-4xl font-bold text-[#0D0D0F] mb-4",children:"Archief"}),t.jsx("p",{className:"text-xl text-[#9CA3AF]",children:"Bekijk eerdere afleveringen"})]}),t.jsx("div",{className:"space-y-6",children:f.map((b,j)=>t.jsx(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:j*.1},children:t.jsx(fe,{to:oe("NewsDetail")+`?id=${b.id}`,className:"block bg-[#F4F4F4] rounded-3xl p-6 hover:bg-white hover:shadow-lg transition-all group",children:t.jsxs("div",{className:"flex flex-col md:flex-row gap-6",children:[t.jsx("div",{className:"md:w-64 flex-shrink-0",children:t.jsx("div",{className:"aspect-video rounded-2xl overflow-hidden bg-gray-900",children:t.jsx("img",{src:"https://img.youtube.com/vi/dQw4w9WgXcQ/maxresdefault.jpg",alt:b.title,className:"w-full h-full object-cover"})})}),t.jsxs("div",{className:"flex-1",children:[t.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[t.jsx($r,{className:"w-5 h-5 text-[#FAB868]"}),t.jsx("span",{className:"text-sm text-[#9CA3AF]",children:new Date(b.publication_date).toLocaleDateString("nl-NL",{weekday:"long",year:"numeric",month:"long",day:"numeric"})})]}),t.jsx("h3",{className:"text-2xl font-bold text-[#0D0D0F] mb-3 group-hover:text-[#FAB868] transition-colors",children:b.title}),t.jsx("p",{className:"text-lg text-[#9CA3AF] mb-4",children:b.short_description}),t.jsxs("span",{className:"inline-flex items-center gap-2 text-[#FAB868] font-semibold",children:["Bekijk afleverig",t.jsx(He,{className:"w-5 h-5"})]})]})]})})},b.id))})]})})]})}function _ee(){const n=new URLSearchParams(window.location.search).get("slug"),{data:r=[],isLoading:i}=ze({queryKey:["solutions",n],queryFn:()=>ue.entities.Solution.filter({slug:n,published:!0}),enabled:!!n,initialData:[]}),s=r[0];return i?t.jsx("div",{className:"pt-20 min-h-screen flex items-center justify-center",children:t.jsx("div",{className:"inline-block w-8 h-8 border-4 border-blue-600 border-t-transparent rounded-full animate-spin"})}):s?t.jsxs("div",{className:"pt-20",children:[t.jsxs("section",{className:"relative bg-gradient-to-br from-blue-600 via-indigo-600 to-purple-700 text-white pt-32 pb-20",children:[t.jsxs("div",{className:"absolute inset-0 overflow-hidden",children:[t.jsx("div",{className:"absolute top-0 right-0 w-[600px] h-[600px] bg-white/10 rounded-full blur-3xl"}),t.jsx("div",{className:"absolute bottom-0 left-0 w-[400px] h-[400px] bg-white/10 rounded-full blur-3xl"})]}),t.jsx("div",{className:"relative max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:t.jsxs("div",{className:"grid lg:grid-cols-2 gap-12 items-center",children:[t.jsxs(Z.div,{initial:{opacity:0,x:-20},animate:{opacity:1,x:0},children:[s.subtitle&&t.jsx("p",{className:"text-blue-100 font-semibold mb-4",children:s.subtitle}),t.jsx("h1",{className:"text-5xl sm:text-6xl font-bold mb-6 leading-tight",children:s.hero_title||s.title}),t.jsx("p",{className:"text-xl text-blue-100 mb-8 leading-relaxed",children:s.hero_description||s.short_description}),s.statistics&&s.statistics.length>0&&t.jsx("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-6 mb-8",children:s.statistics.map((a,o)=>t.jsxs("div",{className:"bg-white/10 backdrop-blur-sm rounded-xl p-4",children:[t.jsx("p",{className:"text-3xl font-bold mb-1",children:a.value}),t.jsx("p",{className:"text-sm text-blue-100",children:a.label})]},o))}),t.jsxs("div",{className:"flex flex-col sm:flex-row gap-4",children:[s.cta_button_link&&t.jsxs(fe,{to:s.cta_button_link,className:"inline-flex items-center justify-center gap-2 px-8 py-4 bg-white text-blue-600 font-semibold rounded-xl hover:bg-blue-50 transition-all",children:[s.cta_button_text||"Meer informatie",t.jsx(He,{className:"w-5 h-5"})]}),t.jsx(fe,{to:oe("Contact"),className:"inline-flex items-center justify-center gap-2 px-8 py-4 border-2 border-white text-white font-semibold rounded-xl hover:bg-white/10 transition-all",children:"Contact opnemen"})]})]}),s.hero_image&&t.jsx(Z.div,{initial:{opacity:0,x:20},animate:{opacity:1,x:0},transition:{delay:.2},className:"hidden lg:block",children:t.jsx("img",{src:s.hero_image,alt:s.title,className:"w-full rounded-3xl shadow-2xl"})})]})})]}),s.features&&s.features.length>0&&t.jsx("section",{className:"py-20 bg-white",children:t.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[t.jsx(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-center mb-16",children:t.jsx("h2",{className:"text-4xl font-bold text-gray-900 mb-4",children:"Belangrijkste Features"})}),t.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-8",children:s.features.map((a,o)=>t.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:o*.1},className:"bg-gray-50 rounded-2xl p-6",children:[t.jsx("div",{className:"w-12 h-12 bg-blue-100 rounded-xl flex items-center justify-center mb-4",children:t.jsx(Wt,{className:"w-6 h-6 text-blue-600"})}),t.jsx("h3",{className:"text-xl font-bold text-gray-900 mb-2",children:a.title}),t.jsx("p",{className:"text-gray-600",children:a.description})]},o))})]})}),s.how_it_works&&s.how_it_works.length>0&&t.jsx("section",{className:"py-20 bg-gray-50",children:t.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[t.jsx(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-center mb-16",children:t.jsx("h2",{className:"text-4xl font-bold text-gray-900 mb-4",children:"Hoe het werkt"})}),t.jsx("div",{className:"max-w-4xl mx-auto",children:s.how_it_works.sort((a,o)=>a.step_number-o.step_number).map((a,o)=>t.jsxs(Z.div,{initial:{opacity:0,x:-20},whileInView:{opacity:1,x:0},viewport:{once:!0},transition:{delay:o*.1},className:"flex gap-6 mb-8 last:mb-0",children:[t.jsx("div",{className:"flex-shrink-0 w-12 h-12 bg-blue-600 text-white rounded-xl flex items-center justify-center font-bold text-xl",children:a.step_number}),t.jsxs("div",{className:"flex-1",children:[t.jsx("h3",{className:"text-2xl font-bold text-gray-900 mb-2",children:a.title}),t.jsx("p",{className:"text-gray-600 text-lg",children:a.description})]})]},o))})]})}),s.use_cases&&s.use_cases.length>0&&t.jsx("section",{className:"py-20 bg-white",children:t.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[t.jsx(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-center mb-16",children:t.jsx("h2",{className:"text-4xl font-bold text-gray-900 mb-4",children:"Praktijkvoorbeelden"})}),t.jsx("div",{className:"grid md:grid-cols-2 gap-8",children:s.use_cases.map((a,o)=>t.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:o*.1},className:"bg-gradient-to-br from-blue-50 to-indigo-50 rounded-2xl p-8 border border-blue-100",children:[a.image&&t.jsx("img",{src:a.image,alt:a.title,className:"w-full h-48 object-cover rounded-xl mb-6"}),t.jsx("h3",{className:"text-2xl font-bold text-gray-900 mb-3",children:a.title}),t.jsx("p",{className:"text-gray-700 text-lg",children:a.description})]},o))})]})}),s.benefits&&s.benefits.length>0&&t.jsx("section",{className:"py-20 bg-gray-50",children:t.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[t.jsx(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-center mb-16",children:t.jsx("h2",{className:"text-4xl font-bold text-gray-900 mb-4",children:"Voordelen"})}),t.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-6",children:s.benefits.map((a,o)=>t.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:o*.1},className:"flex items-start gap-4 bg-white rounded-xl p-6",children:[t.jsx("div",{className:"w-10 h-10 bg-green-100 rounded-lg flex items-center justify-center flex-shrink-0",children:t.jsx(Wt,{className:"w-5 h-5 text-green-600"})}),t.jsxs("div",{children:[t.jsx("h3",{className:"font-bold text-gray-900 mb-1",children:a.title}),t.jsx("p",{className:"text-gray-600 text-sm",children:a.description})]})]},o))})]})}),s.testimonial&&s.testimonial.quote&&t.jsx("section",{className:"py-20 bg-gradient-to-br from-blue-600 to-indigo-700 text-white",children:t.jsx("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8",children:t.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-center",children:[t.jsx(AA,{className:"w-16 h-16 mx-auto mb-6 text-blue-200"}),t.jsxs("p",{className:"text-2xl md:text-3xl font-medium mb-8 leading-relaxed",children:['"',s.testimonial.quote,'"']}),t.jsxs("div",{className:"flex items-center justify-center gap-4",children:[s.testimonial.image&&t.jsx("img",{src:s.testimonial.image,alt:s.testimonial.author,className:"w-16 h-16 rounded-full"}),t.jsxs("div",{className:"text-left",children:[t.jsx("p",{className:"font-bold",children:s.testimonial.author}),t.jsx("p",{className:"text-blue-200",children:s.testimonial.role}),s.testimonial.company&&t.jsx("p",{className:"text-blue-200",children:s.testimonial.company})]})]})]})})}),t.jsx("section",{className:"py-20 bg-gray-900",children:t.jsx("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 text-center",children:t.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},children:[t.jsx("h2",{className:"text-3xl sm:text-4xl font-bold text-white mb-6",children:s.cta_title||"Klaar om te beginnen?"}),t.jsx("p",{className:"text-xl text-gray-400 mb-8",children:s.cta_description||"Neem contact met ons op voor meer informatie of een demo."}),t.jsxs(fe,{to:s.cta_button_link||oe("Contact"),className:"inline-flex items-center gap-2 px-8 py-4 bg-blue-600 text-white font-semibold rounded-2xl hover:bg-blue-700 transition-all",children:[t.jsx(di,{className:"w-5 h-5"}),s.cta_button_text||"Contact opnemen",t.jsx(He,{className:"w-5 h-5"})]})]})})})]}):t.jsx("div",{className:"pt-20 min-h-screen flex items-center justify-center",children:t.jsxs("div",{className:"text-center",children:[t.jsx("h1",{className:"text-3xl font-bold text-gray-900 mb-4",children:"Oplossing niet gevonden"}),t.jsx(fe,{to:oe("Oplossingen"),className:"text-blue-600 hover:underline",children:"Bekijk alle oplossingen"})]})})}function See(){const{data:e=[],isLoading:n}=ze({queryKey:["solutions"],queryFn:()=>ue.entities.Solution.filter({published:!0},"sort_order",50),initialData:[]});return t.jsxs("div",{className:"pt-20",children:[t.jsx("section",{className:"relative bg-gradient-to-b from-blue-50 to-white pt-32 pb-20",children:t.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:t.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"text-center max-w-3xl mx-auto",children:[t.jsxs("div",{className:"inline-flex items-center gap-2 px-4 py-2 bg-blue-100 rounded-full text-blue-700 text-sm font-medium mb-6",children:[t.jsx(Tt,{className:"w-4 h-4"}),"AI Oplossingen"]}),t.jsx("h1",{className:"text-5xl sm:text-6xl font-bold text-gray-900 mb-6",children:"Onze AI Oplossingen"}),t.jsx("p",{className:"text-xl text-gray-600",children:"Producten en platforms die we hebben ontwikkeld om AI toegankelijk en bruikbaar te maken voor bedrijven."})]})})}),t.jsx("section",{className:"py-20 bg-white",children:t.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:n?t.jsx("div",{className:"text-center py-12",children:t.jsx("div",{className:"inline-block w-8 h-8 border-4 border-blue-600 border-t-transparent rounded-full animate-spin"})}):e.length===0?t.jsx("div",{className:"text-center py-12",children:t.jsx("p",{className:"text-gray-600",children:"Geen oplossingen gevonden. Kom later terug!"})}):t.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-8",children:e.map((r,i)=>t.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:i*.1},className:"bg-white rounded-3xl border-2 border-gray-100 hover:border-blue-200 hover:shadow-xl transition-all overflow-hidden group",children:[r.hero_image&&t.jsxs("div",{className:"relative h-48 overflow-hidden",children:[t.jsx("img",{src:r.hero_image,alt:r.title,className:"w-full h-full object-cover group-hover:scale-105 transition-transform duration-300"}),t.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-black/50 to-transparent"})]}),t.jsxs("div",{className:"p-8",children:[t.jsx("h3",{className:"text-2xl font-bold text-gray-900 mb-2",children:r.title}),r.subtitle&&t.jsx("p",{className:"text-sm text-blue-600 font-medium mb-4",children:r.subtitle}),t.jsx("p",{className:"text-gray-600 mb-6 line-clamp-3",children:r.short_description}),r.statistics&&r.statistics.length>0&&t.jsx("div",{className:"flex gap-4 mb-6 pb-6 border-b border-gray-100",children:r.statistics.slice(0,2).map((s,a)=>t.jsxs("div",{children:[t.jsx("p",{className:"text-2xl font-bold text-blue-600",children:s.value}),t.jsx("p",{className:"text-sm text-gray-600",children:s.label})]},a))}),t.jsxs(fe,{to:oe(`OplossingDetail?slug=${r.slug}`),className:"inline-flex items-center gap-2 text-blue-600 font-semibold hover:gap-3 transition-all",children:["Meer informatie",t.jsx(He,{className:"w-5 h-5"})]})]})]},r.id))})})}),t.jsx("section",{className:"py-20 bg-gray-900",children:t.jsx("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 text-center",children:t.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},children:[t.jsx("h2",{className:"text-3xl sm:text-4xl font-bold text-white mb-6",children:"Op zoek naar een custom oplossing?"}),t.jsx("p",{className:"text-xl text-gray-400 mb-8",children:"We bouwen ook maatwerk AI-oplossingen specifiek voor jouw bedrijf."}),t.jsxs(fe,{to:oe("Contact"),className:"inline-flex items-center gap-2 px-8 py-4 bg-blue-600 text-white font-semibold rounded-2xl hover:bg-blue-700 transition-all",children:[t.jsx(Hi,{className:"w-5 h-5"}),"Bespreek je project",t.jsx(He,{className:"w-5 h-5"})]})]})})})]})}function Aee(){const{data:e=[]}=ze({queryKey:["teamMembers"],queryFn:()=>ue.entities.TeamMember.filter({active:!0,show_on_about_page:!0},"sort_order"),initialData:[]}),n=[{icon:Ka,title:"Praktijkervaring",description:"Ons team komt uit het bedrijfsleven. Wij begrijpen de dagelijkse uitdagingen van MKB en vertalen AI mogelijkheden naar praktische oplossingen."},{icon:lf,title:"Full-service",description:"Wij stoppen niet bij advies. Van strategie tot implementatie, van training tot support — wij begeleiden het complete traject."},{icon:Ga,title:"MKB Focus",description:"Wij richten ons specifiek op MKB bedrijven met €5-20M omzet. Groot genoeg voor impact, wendbaar genoeg om snel te schakelen."},{icon:wy,title:"Kwaliteit",description:"Wij positioneren ons in het midden tot hoog segment. Geen quick fixes, maar duurzame oplossingen die je bedrijf vooruit helpen."}];return t.jsxs("div",{className:"pt-20",children:[t.jsx("section",{className:"py-20 bg-gradient-to-b from-gray-50 to-white",children:t.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:t.jsxs("div",{className:"grid lg:grid-cols-2 gap-12 items-center",children:[t.jsxs(Z.div,{initial:{opacity:0,x:-20},animate:{opacity:1,x:0},children:[t.jsx("h1",{className:"text-4xl sm:text-5xl font-bold text-gray-900 mb-6",children:"The AI Professionals"}),t.jsx("p",{className:"text-xl text-gray-600 mb-8",children:"Wij zijn 48-7 — een full-service AI agency die MKB bedrijven helpt hun productiviteit te verdubbelen. Van strategie tot software, van training tot doorontwikkeling."}),t.jsx("div",{className:"flex flex-wrap gap-4",children:t.jsxs(fe,{to:oe("Contact"),className:"inline-flex items-center gap-2 px-6 py-3 bg-gray-900 text-white font-semibold rounded-xl hover:bg-gray-800 transition-colors",children:["Neem contact op",t.jsx(He,{className:"w-5 h-5"})]})})]}),t.jsx(Z.div,{initial:{opacity:0,x:20},animate:{opacity:1,x:0},className:"relative",children:t.jsx("img",{src:"https://images.unsplash.com/photo-1522071820081-009f0129c71c?w=800&auto=format&fit=crop",alt:"Team 48-7",className:"rounded-3xl shadow-2xl"})})]})})}),t.jsx("section",{className:"py-20",children:t.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:t.jsxs("div",{className:"grid md:grid-cols-2 gap-12",children:[t.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"bg-blue-50 rounded-2xl p-8",children:[t.jsx("div",{className:"w-14 h-14 bg-blue-100 rounded-2xl flex items-center justify-center mb-6",children:t.jsx(qa,{className:"w-7 h-7 text-blue-600"})}),t.jsx("h2",{className:"text-2xl font-bold text-gray-900 mb-4",children:"Onze Missie"}),t.jsx("p",{className:"text-gray-700 text-lg",children:"MKB bedrijven helpen hun productiviteit te verdubbelen door AI toegankelijk en praktisch toepasbaar te maken. Van 24-7 naar 48-7."})]}),t.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:.1},className:"bg-purple-50 rounded-2xl p-8",children:[t.jsx("div",{className:"w-14 h-14 bg-purple-100 rounded-2xl flex items-center justify-center mb-6",children:t.jsx(Bs,{className:"w-7 h-7 text-purple-600"})}),t.jsx("h2",{className:"text-2xl font-bold text-gray-900 mb-4",children:"Onze Visie"}),t.jsx("p",{className:"text-gray-700 text-lg",children:"Een wereld waarin elk MKB bedrijf profiteert van AI — niet door vervanging van mensen, maar door versterking van hun capaciteiten."})]})]})})}),t.jsx("section",{className:"py-20 bg-gray-50",children:t.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[t.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-center mb-16",children:[t.jsx("h2",{className:"text-3xl font-bold text-gray-900 mb-4",children:"Wat maakt ons anders"}),t.jsx("p",{className:"text-xl text-gray-600",children:"De pijlers onder onze aanpak"})]}),t.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-4 gap-8",children:n.map((r,i)=>t.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:i*.1},className:"bg-white rounded-2xl p-6 border border-gray-100",children:[t.jsx("div",{className:"w-12 h-12 bg-blue-100 rounded-xl flex items-center justify-center mb-4",children:t.jsx(r.icon,{className:"w-6 h-6 text-blue-600"})}),t.jsx("h3",{className:"text-xl font-bold text-gray-900 mb-2",children:r.title}),t.jsx("p",{className:"text-gray-600",children:r.description})]},i))})]})}),t.jsx("section",{className:"py-20",children:t.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[t.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-center mb-16",children:[t.jsxs("div",{className:"inline-flex items-center gap-2 px-4 py-2 bg-blue-100 rounded-full text-blue-700 text-sm font-medium mb-6",children:[t.jsx(zn,{className:"w-4 h-4"}),"Ons Team"]}),t.jsx("h2",{className:"text-3xl font-bold text-gray-900 mb-4",children:"Ontmoet de professionals"}),t.jsx("p",{className:"text-xl text-gray-600",children:"Experts met een passie voor AI en MKB"})]}),t.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-8",children:e.map((r,i)=>t.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:i*.1},className:"bg-white rounded-2xl overflow-hidden border border-gray-100 hover:shadow-xl transition-all group",children:[r.image_url&&t.jsx("div",{className:"aspect-square overflow-hidden",children:t.jsx("img",{src:r.image_url,alt:r.name,className:"w-full h-full object-cover group-hover:scale-105 transition-transform duration-500"})}),t.jsxs("div",{className:"p-6",children:[t.jsxs("div",{className:"flex items-start justify-between mb-2",children:[t.jsxs("div",{children:[t.jsx("h3",{className:"text-xl font-bold text-gray-900",children:r.name}),t.jsx("p",{className:"text-blue-600 font-medium",children:r.role})]}),r.linkedin_url&&t.jsx("a",{href:r.linkedin_url,target:"_blank",rel:"noopener noreferrer",className:"w-10 h-10 bg-gray-100 rounded-full flex items-center justify-center hover:bg-blue-100 hover:text-blue-600 transition-colors",children:t.jsx(Hs,{className:"w-5 h-5"})})]}),r.bio&&t.jsx("p",{className:"text-gray-600",children:r.bio})]})]},r.id))})]})}),t.jsx("section",{className:"py-20 bg-gray-900",children:t.jsxs("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 text-center",children:[t.jsx("h2",{className:"text-3xl font-bold text-white mb-6",children:"Word onderdeel van 48-7"}),t.jsx("p",{className:"text-xl text-gray-400 mb-8",children:"Wij zijn altijd op zoek naar getalenteerde professionals die onze missie delen."}),t.jsxs(fe,{to:oe("Vacatures"),className:"inline-flex items-center gap-2 px-8 py-4 bg-white text-gray-900 font-semibold rounded-2xl hover:shadow-xl transition-all",children:["Bekijk vacatures",t.jsx(He,{className:"w-5 h-5"})]})]})})]})}function Zi(e){return Array.isArray?Array.isArray(e):FP(e)==="[object Array]"}function Cee(e){if(typeof e=="string")return e;let n=e+"";return n=="0"&&1/e==-1/0?"-0":n}function Eee(e){return e==null?"":Cee(e)}function fi(e){return typeof e=="string"}function IP(e){return typeof e=="number"}function Tee(e){return e===!0||e===!1||Pee(e)&&FP(e)=="[object Boolean]"}function RP(e){return typeof e=="object"}function Pee(e){return RP(e)&&e!==null}function dr(e){return e!=null}function jy(e){return!e.trim().length}function FP(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}const Oee="Incorrect 'index' type",Dee=e=>`Invalid value for key ${e}`,Iee=e=>`Pattern length exceeds max of ${e}.`,Ree=e=>`Missing ${e} property in key`,Fee=e=>`Property 'weight' in key '${e}' must be a positive integer`,JS=Object.prototype.hasOwnProperty;class Mee{constructor(n){this._keys=[],this._keyMap={};let r=0;n.forEach(i=>{let s=MP(i);this._keys.push(s),this._keyMap[s.id]=s,r+=s.weight}),this._keys.forEach(i=>{i.weight/=r})}get(n){return this._keyMap[n]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}}function MP(e){let n=null,r=null,i=null,s=1,a=null;if(fi(e)||Zi(e))i=e,n=ZS(e),r=V0(e);else{if(!JS.call(e,"name"))throw new Error(Ree("name"));const o=e.name;if(i=o,JS.call(e,"weight")&&(s=e.weight,s<=0))throw new Error(Fee(o));n=ZS(o),r=V0(o),a=e.getFn}return{path:n,id:r,weight:s,src:i,getFn:a}}function ZS(e){return Zi(e)?e:e.split(".")}function V0(e){return Zi(e)?e.join("."):e}function Lee(e,n){let r=[],i=!1;const s=(a,o,c)=>{if(dr(a))if(!o[c])r.push(a);else{let d=o[c];const f=a[d];if(!dr(f))return;if(c===o.length-1&&(fi(f)||IP(f)||Tee(f)))r.push(Eee(f));else if(Zi(f)){i=!0;for(let h=0,m=f.length;h<m;h+=1)s(f[h],o,c+1)}else o.length&&s(f,o,c+1)}};return s(e,fi(n)?n.split("."):n,0),i?r:r[0]}const Bee={includeMatches:!1,findAllMatches:!1,minMatchCharLength:1},qee={isCaseSensitive:!1,ignoreDiacritics:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:(e,n)=>e.score===n.score?e.idx<n.idx?-1:1:e.score<n.score?-1:1},zee={location:0,threshold:.6,distance:100},Vee={useExtendedSearch:!1,getFn:Lee,ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1};var Xe={...qee,...Bee,...zee,...Vee};const Uee=/[^ ]+/g;function $ee(e=1,n=3){const r=new Map,i=Math.pow(10,n);return{get(s){const a=s.match(Uee).length;if(r.has(a))return r.get(a);const o=1/Math.pow(a,.5*e),c=parseFloat(Math.round(o*i)/i);return r.set(a,c),c},clear(){r.clear()}}}class Cb{constructor({getFn:n=Xe.getFn,fieldNormWeight:r=Xe.fieldNormWeight}={}){this.norm=$ee(r,3),this.getFn=n,this.isCreated=!1,this.setIndexRecords()}setSources(n=[]){this.docs=n}setIndexRecords(n=[]){this.records=n}setKeys(n=[]){this.keys=n,this._keysMap={},n.forEach((r,i)=>{this._keysMap[r.id]=i})}create(){this.isCreated||!this.docs.length||(this.isCreated=!0,fi(this.docs[0])?this.docs.forEach((n,r)=>{this._addString(n,r)}):this.docs.forEach((n,r)=>{this._addObject(n,r)}),this.norm.clear())}add(n){const r=this.size();fi(n)?this._addString(n,r):this._addObject(n,r)}removeAt(n){this.records.splice(n,1);for(let r=n,i=this.size();r<i;r+=1)this.records[r].i-=1}getValueForItemAtKeyId(n,r){return n[this._keysMap[r]]}size(){return this.records.length}_addString(n,r){if(!dr(n)||jy(n))return;let i={v:n,i:r,n:this.norm.get(n)};this.records.push(i)}_addObject(n,r){let i={i:r,$:{}};this.keys.forEach((s,a)=>{let o=s.getFn?s.getFn(n):this.getFn(n,s.path);if(dr(o)){if(Zi(o)){let c=[];const d=[{nestedArrIndex:-1,value:o}];for(;d.length;){const{nestedArrIndex:f,value:h}=d.pop();if(dr(h))if(fi(h)&&!jy(h)){let m={v:h,i:f,n:this.norm.get(h)};c.push(m)}else Zi(h)&&h.forEach((m,p)=>{d.push({nestedArrIndex:p,value:m})})}i.$[a]=c}else if(fi(o)&&!jy(o)){let c={v:o,n:this.norm.get(o)};i.$[a]=c}}}),this.records.push(i)}toJSON(){return{keys:this.keys,records:this.records}}}function LP(e,n,{getFn:r=Xe.getFn,fieldNormWeight:i=Xe.fieldNormWeight}={}){const s=new Cb({getFn:r,fieldNormWeight:i});return s.setKeys(e.map(MP)),s.setSources(n),s.create(),s}function Hee(e,{getFn:n=Xe.getFn,fieldNormWeight:r=Xe.fieldNormWeight}={}){const{keys:i,records:s}=e,a=new Cb({getFn:n,fieldNormWeight:r});return a.setKeys(i),a.setIndexRecords(s),a}function fh(e,{errors:n=0,currentLocation:r=0,expectedLocation:i=0,distance:s=Xe.distance,ignoreLocation:a=Xe.ignoreLocation}={}){const o=n/e.length;if(a)return o;const c=Math.abs(i-r);return s?o+c/s:c?1:o}function Wee(e=[],n=Xe.minMatchCharLength){let r=[],i=-1,s=-1,a=0;for(let o=e.length;a<o;a+=1){let c=e[a];c&&i===-1?i=a:!c&&i!==-1&&(s=a-1,s-i+1>=n&&r.push([i,s]),i=-1)}return e[a-1]&&a-i>=n&&r.push([i,a-1]),r}const Na=32;function Kee(e,n,r,{location:i=Xe.location,distance:s=Xe.distance,threshold:a=Xe.threshold,findAllMatches:o=Xe.findAllMatches,minMatchCharLength:c=Xe.minMatchCharLength,includeMatches:d=Xe.includeMatches,ignoreLocation:f=Xe.ignoreLocation}={}){if(n.length>Na)throw new Error(Iee(Na));const h=n.length,m=e.length,p=Math.max(0,Math.min(i,m));let g=a,b=p;const j=c>1||d,y=j?Array(m):[];let x;for(;(x=e.indexOf(n,b))>-1;){let E=fh(n,{currentLocation:x,expectedLocation:p,distance:s,ignoreLocation:f});if(g=Math.min(E,g),b=x+h,j){let C=0;for(;C<h;)y[x+C]=1,C+=1}}b=-1;let N=[],w=1,k=h+m;const A=1<<h-1;for(let E=0;E<h;E+=1){let C=0,B=k;for(;C<B;)fh(n,{errors:E,currentLocation:p+B,expectedLocation:p,distance:s,ignoreLocation:f})<=g?C=B:k=B,B=Math.floor((k-C)/2+C);k=B;let I=Math.max(1,p-B+1),R=o?m:Math.min(p+B,m)+h,D=Array(R+2);D[R+1]=(1<<E)-1;for(let z=R;z>=I;z-=1){let U=z-1,Y=r[e.charAt(U)];if(j&&(y[U]=+!!Y),D[z]=(D[z+1]<<1|1)&Y,E&&(D[z]|=(N[z+1]|N[z])<<1|1|N[z+1]),D[z]&A&&(w=fh(n,{errors:E,currentLocation:U,expectedLocation:p,distance:s,ignoreLocation:f}),w<=g)){if(g=w,b=U,b<=p)break;I=Math.max(1,2*p-b)}}if(fh(n,{errors:E+1,currentLocation:p,expectedLocation:p,distance:s,ignoreLocation:f})>g)break;N=D}const S={isMatch:b>=0,score:Math.max(.001,w)};if(j){const E=Wee(y,c);E.length?d&&(S.indices=E):S.isMatch=!1}return S}function Gee(e){let n={};for(let r=0,i=e.length;r<i;r+=1){const s=e.charAt(r);n[s]=(n[s]||0)|1<<i-r-1}return n}const rf=String.prototype.normalize?(e=>e.normalize("NFD").replace(/[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B62\u0B63\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C00-\u0C04\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D82\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EB9\u0EBB\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F\u109A-\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u192B\u1930-\u193B\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F\u1AB0-\u1ABE\u1B00-\u1B04\u1B34-\u1B44\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BF3\u1C24-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF2-\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA880\uA881\uA8B4-\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9E5\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F]/g,"")):(e=>e);class BP{constructor(n,{location:r=Xe.location,threshold:i=Xe.threshold,distance:s=Xe.distance,includeMatches:a=Xe.includeMatches,findAllMatches:o=Xe.findAllMatches,minMatchCharLength:c=Xe.minMatchCharLength,isCaseSensitive:d=Xe.isCaseSensitive,ignoreDiacritics:f=Xe.ignoreDiacritics,ignoreLocation:h=Xe.ignoreLocation}={}){if(this.options={location:r,threshold:i,distance:s,includeMatches:a,findAllMatches:o,minMatchCharLength:c,isCaseSensitive:d,ignoreDiacritics:f,ignoreLocation:h},n=d?n:n.toLowerCase(),n=f?rf(n):n,this.pattern=n,this.chunks=[],!this.pattern.length)return;const m=(g,b)=>{this.chunks.push({pattern:g,alphabet:Gee(g),startIndex:b})},p=this.pattern.length;if(p>Na){let g=0;const b=p%Na,j=p-b;for(;g<j;)m(this.pattern.substr(g,Na),g),g+=Na;if(b){const y=p-Na;m(this.pattern.substr(y),y)}}else m(this.pattern,0)}searchIn(n){const{isCaseSensitive:r,ignoreDiacritics:i,includeMatches:s}=this.options;if(n=r?n:n.toLowerCase(),n=i?rf(n):n,this.pattern===n){let j={isMatch:!0,score:0};return s&&(j.indices=[[0,n.length-1]]),j}const{location:a,distance:o,threshold:c,findAllMatches:d,minMatchCharLength:f,ignoreLocation:h}=this.options;let m=[],p=0,g=!1;this.chunks.forEach(({pattern:j,alphabet:y,startIndex:x})=>{const{isMatch:N,score:w,indices:k}=Kee(n,j,y,{location:a+x,distance:o,threshold:c,findAllMatches:d,minMatchCharLength:f,includeMatches:s,ignoreLocation:h});N&&(g=!0),p+=w,N&&k&&(m=[...m,...k])});let b={isMatch:g,score:g?p/this.chunks.length:1};return g&&s&&(b.indices=m),b}}class na{constructor(n){this.pattern=n}static isMultiMatch(n){return eA(n,this.multiRegex)}static isSingleMatch(n){return eA(n,this.singleRegex)}search(){}}function eA(e,n){const r=e.match(n);return r?r[1]:null}class Qee extends na{constructor(n){super(n)}static get type(){return"exact"}static get multiRegex(){return/^="(.*)"$/}static get singleRegex(){return/^=(.*)$/}search(n){const r=n===this.pattern;return{isMatch:r,score:r?0:1,indices:[0,this.pattern.length-1]}}}class Yee extends na{constructor(n){super(n)}static get type(){return"inverse-exact"}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(n){const i=n.indexOf(this.pattern)===-1;return{isMatch:i,score:i?0:1,indices:[0,n.length-1]}}}class Xee extends na{constructor(n){super(n)}static get type(){return"prefix-exact"}static get multiRegex(){return/^\^"(.*)"$/}static get singleRegex(){return/^\^(.*)$/}search(n){const r=n.startsWith(this.pattern);return{isMatch:r,score:r?0:1,indices:[0,this.pattern.length-1]}}}class Jee extends na{constructor(n){super(n)}static get type(){return"inverse-prefix-exact"}static get multiRegex(){return/^!\^"(.*)"$/}static get singleRegex(){return/^!\^(.*)$/}search(n){const r=!n.startsWith(this.pattern);return{isMatch:r,score:r?0:1,indices:[0,n.length-1]}}}class Zee extends na{constructor(n){super(n)}static get type(){return"suffix-exact"}static get multiRegex(){return/^"(.*)"\$$/}static get singleRegex(){return/^(.*)\$$/}search(n){const r=n.endsWith(this.pattern);return{isMatch:r,score:r?0:1,indices:[n.length-this.pattern.length,n.length-1]}}}class ete extends na{constructor(n){super(n)}static get type(){return"inverse-suffix-exact"}static get multiRegex(){return/^!"(.*)"\$$/}static get singleRegex(){return/^!(.*)\$$/}search(n){const r=!n.endsWith(this.pattern);return{isMatch:r,score:r?0:1,indices:[0,n.length-1]}}}class qP extends na{constructor(n,{location:r=Xe.location,threshold:i=Xe.threshold,distance:s=Xe.distance,includeMatches:a=Xe.includeMatches,findAllMatches:o=Xe.findAllMatches,minMatchCharLength:c=Xe.minMatchCharLength,isCaseSensitive:d=Xe.isCaseSensitive,ignoreDiacritics:f=Xe.ignoreDiacritics,ignoreLocation:h=Xe.ignoreLocation}={}){super(n),this._bitapSearch=new BP(n,{location:r,threshold:i,distance:s,includeMatches:a,findAllMatches:o,minMatchCharLength:c,isCaseSensitive:d,ignoreDiacritics:f,ignoreLocation:h})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(n){return this._bitapSearch.searchIn(n)}}class zP extends na{constructor(n){super(n)}static get type(){return"include"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(n){let r=0,i;const s=[],a=this.pattern.length;for(;(i=n.indexOf(this.pattern,r))>-1;)r=i+a,s.push([i,r-1]);const o=!!s.length;return{isMatch:o,score:o?0:1,indices:s}}}const U0=[Qee,zP,Xee,Jee,ete,Zee,Yee,qP],tA=U0.length,tte=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,nte="|";function rte(e,n={}){return e.split(nte).map(r=>{let i=r.trim().split(tte).filter(a=>a&&!!a.trim()),s=[];for(let a=0,o=i.length;a<o;a+=1){const c=i[a];let d=!1,f=-1;for(;!d&&++f<tA;){const h=U0[f];let m=h.isMultiMatch(c);m&&(s.push(new h(m,n)),d=!0)}if(!d)for(f=-1;++f<tA;){const h=U0[f];let m=h.isSingleMatch(c);if(m){s.push(new h(m,n));break}}}return s})}const ite=new Set([qP.type,zP.type]);class ste{constructor(n,{isCaseSensitive:r=Xe.isCaseSensitive,ignoreDiacritics:i=Xe.ignoreDiacritics,includeMatches:s=Xe.includeMatches,minMatchCharLength:a=Xe.minMatchCharLength,ignoreLocation:o=Xe.ignoreLocation,findAllMatches:c=Xe.findAllMatches,location:d=Xe.location,threshold:f=Xe.threshold,distance:h=Xe.distance}={}){this.query=null,this.options={isCaseSensitive:r,ignoreDiacritics:i,includeMatches:s,minMatchCharLength:a,findAllMatches:c,ignoreLocation:o,location:d,threshold:f,distance:h},n=r?n:n.toLowerCase(),n=i?rf(n):n,this.pattern=n,this.query=rte(this.pattern,this.options)}static condition(n,r){return r.useExtendedSearch}searchIn(n){const r=this.query;if(!r)return{isMatch:!1,score:1};const{includeMatches:i,isCaseSensitive:s,ignoreDiacritics:a}=this.options;n=s?n:n.toLowerCase(),n=a?rf(n):n;let o=0,c=[],d=0;for(let f=0,h=r.length;f<h;f+=1){const m=r[f];c.length=0,o=0;for(let p=0,g=m.length;p<g;p+=1){const b=m[p],{isMatch:j,indices:y,score:x}=b.search(n);if(j){if(o+=1,d+=x,i){const N=b.constructor.type;ite.has(N)?c=[...c,...y]:c.push(y)}}else{d=0,o=0,c.length=0;break}}if(o){let p={isMatch:!0,score:d/o};return i&&(p.indices=c),p}}return{isMatch:!1,score:1}}}const $0=[];function ate(...e){$0.push(...e)}function H0(e,n){for(let r=0,i=$0.length;r<i;r+=1){let s=$0[r];if(s.condition(e,n))return new s(e,n)}return new BP(e,n)}const sf={AND:"$and",OR:"$or"},W0={PATH:"$path",PATTERN:"$val"},K0=e=>!!(e[sf.AND]||e[sf.OR]),ote=e=>!!e[W0.PATH],lte=e=>!Zi(e)&&RP(e)&&!K0(e),nA=e=>({[sf.AND]:Object.keys(e).map(n=>({[n]:e[n]}))});function VP(e,n,{auto:r=!0}={}){const i=s=>{let a=Object.keys(s);const o=ote(s);if(!o&&a.length>1&&!K0(s))return i(nA(s));if(lte(s)){const d=o?s[W0.PATH]:a[0],f=o?s[W0.PATTERN]:s[d];if(!fi(f))throw new Error(Dee(d));const h={keyId:V0(d),pattern:f};return r&&(h.searcher=H0(f,n)),h}let c={children:[],operator:a[0]};return a.forEach(d=>{const f=s[d];Zi(f)&&f.forEach(h=>{c.children.push(i(h))})}),c};return K0(e)||(e=nA(e)),i(e)}function cte(e,{ignoreFieldNorm:n=Xe.ignoreFieldNorm}){e.forEach(r=>{let i=1;r.matches.forEach(({key:s,norm:a,score:o})=>{const c=s?s.weight:null;i*=Math.pow(o===0&&c?Number.EPSILON:o,(c||1)*(n?1:a))}),r.score=i})}function ute(e,n){const r=e.matches;n.matches=[],dr(r)&&r.forEach(i=>{if(!dr(i.indices)||!i.indices.length)return;const{indices:s,value:a}=i;let o={indices:s,value:a};i.key&&(o.key=i.key.src),i.idx>-1&&(o.refIndex=i.idx),n.matches.push(o)})}function dte(e,n){n.score=e.score}function hte(e,n,{includeMatches:r=Xe.includeMatches,includeScore:i=Xe.includeScore}={}){const s=[];return r&&s.push(ute),i&&s.push(dte),e.map(a=>{const{idx:o}=a,c={item:n[o],refIndex:o};return s.length&&s.forEach(d=>{d(a,c)}),c})}class Ol{constructor(n,r={},i){this.options={...Xe,...r},this.options.useExtendedSearch,this._keyStore=new Mee(this.options.keys),this.setCollection(n,i)}setCollection(n,r){if(this._docs=n,r&&!(r instanceof Cb))throw new Error(Oee);this._myIndex=r||LP(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(n){dr(n)&&(this._docs.push(n),this._myIndex.add(n))}remove(n=()=>!1){const r=[];for(let i=0,s=this._docs.length;i<s;i+=1){const a=this._docs[i];n(a,i)&&(this.removeAt(i),i-=1,s-=1,r.push(a))}return r}removeAt(n){this._docs.splice(n,1),this._myIndex.removeAt(n)}getIndex(){return this._myIndex}search(n,{limit:r=-1}={}){const{includeMatches:i,includeScore:s,shouldSort:a,sortFn:o,ignoreFieldNorm:c}=this.options;let d=fi(n)?fi(this._docs[0])?this._searchStringList(n):this._searchObjectList(n):this._searchLogical(n);return cte(d,{ignoreFieldNorm:c}),a&&d.sort(o),IP(r)&&r>-1&&(d=d.slice(0,r)),hte(d,this._docs,{includeMatches:i,includeScore:s})}_searchStringList(n){const r=H0(n,this.options),{records:i}=this._myIndex,s=[];return i.forEach(({v:a,i:o,n:c})=>{if(!dr(a))return;const{isMatch:d,score:f,indices:h}=r.searchIn(a);d&&s.push({item:a,idx:o,matches:[{score:f,value:a,norm:c,indices:h}]})}),s}_searchLogical(n){const r=VP(n,this.options),i=(c,d,f)=>{if(!c.children){const{keyId:m,searcher:p}=c,g=this._findMatches({key:this._keyStore.get(m),value:this._myIndex.getValueForItemAtKeyId(d,m),searcher:p});return g&&g.length?[{idx:f,item:d,matches:g}]:[]}const h=[];for(let m=0,p=c.children.length;m<p;m+=1){const g=c.children[m],b=i(g,d,f);if(b.length)h.push(...b);else if(c.operator===sf.AND)return[]}return h},s=this._myIndex.records,a={},o=[];return s.forEach(({$:c,i:d})=>{if(dr(c)){let f=i(r,c,d);f.length&&(a[d]||(a[d]={idx:d,item:c,matches:[]},o.push(a[d])),f.forEach(({matches:h})=>{a[d].matches.push(...h)}))}}),o}_searchObjectList(n){const r=H0(n,this.options),{keys:i,records:s}=this._myIndex,a=[];return s.forEach(({$:o,i:c})=>{if(!dr(o))return;let d=[];i.forEach((f,h)=>{d.push(...this._findMatches({key:f,value:o[h],searcher:r}))}),d.length&&a.push({idx:c,item:o,matches:d})}),a}_findMatches({key:n,value:r,searcher:i}){if(!dr(r))return[];let s=[];if(Zi(r))r.forEach(({v:a,i:o,n:c})=>{if(!dr(a))return;const{isMatch:d,score:f,indices:h}=i.searchIn(a);d&&s.push({score:f,key:n,value:a,idx:o,norm:c,indices:h})});else{const{v:a,n:o}=r,{isMatch:c,score:d,indices:f}=i.searchIn(a);c&&s.push({score:d,key:n,value:a,norm:o,indices:f})}return s}}Ol.version="7.1.0";Ol.createIndex=LP;Ol.parseIndex=Hee;Ol.config=Xe;Ol.parseQuery=VP;ate(ste);function fte(){const[e,n]=F.useState([]),[r,i]=F.useState([]),[s,a]=F.useState("relevance"),c=new URLSearchParams(window.location.search).get("q")||"",{data:d=[],isLoading:f}=ze({queryKey:["cases"],queryFn:()=>ue.entities.CaseStudy.filter({published:!0}),staleTime:300*1e3}),{data:h=[],isLoading:m}=ze({queryKey:["blogs"],queryFn:()=>ue.entities.BlogPost.filter({published:!0}),staleTime:300*1e3}),{data:p=[],isLoading:g}=ze({queryKey:["trainings"],queryFn:()=>ue.entities.Training.filter({active:!0}),staleTime:300*1e3}),{data:b=[],isLoading:j}=ze({queryKey:["vacancies"],queryFn:()=>ue.entities.Vacature.filter({active:!0}),staleTime:300*1e3}),{data:y=[],isLoading:x}=ze({queryKey:["pages"],queryFn:()=>ue.entities.PageSection.filter({active:!0}),staleTime:300*1e3}),N=f||m||g||j||x,w=Rt.useMemo(()=>N?[]:[...d.map(D=>({type:"case",title:D.client_name||"",description:D.challenge||"",content:`${D.challenge||""} ${D.solution||""}`,category:D.case_type||"",date:D.created_date,slug:D.slug,item:D})),...h.map(D=>({type:"blog",title:D.title||"",description:D.excerpt||"",content:D.content||"",category:D.category||"",date:D.published_date,slug:D.slug,item:D})),...p.map(D=>({type:"training",title:D.title||"",description:D.description||"",content:D.full_description||D.description||"",category:D.category||"",date:D.created_date,slug:D.slug,item:D})),...b.map(D=>({type:"vacancy",title:D.title||"",description:D.role_summary||D.description||"",content:D.description||"",category:D.level||"",date:D.created_date,slug:D.slug,item:D})),...y.map(D=>({type:"page",title:D.title||"",description:D.subtitle||"",content:D.content||"",category:D.page_name||"",date:D.created_date,slug:D.page_name,item:D}))],[d,h,p,b,y,N]),k=Rt.useMemo(()=>new Ol(w,{keys:[{name:"title",weight:.4},{name:"description",weight:.3},{name:"content",weight:.2},{name:"category",weight:.1}],threshold:.4,includeScore:!0,minMatchCharLength:2,ignoreLocation:!0}),[w]);F.useEffect(()=>{if(!c||N){n([]);return}const D=k.search(c);n(D)},[c,k,N]);const S=[...e.filter(D=>r.length===0?!0:r.includes(D.item.category)||r.includes(D.item.type))].sort((D,q)=>s==="relevance"?D.score-q.score:s==="date"?new Date(q.item.date)-new Date(D.item.date):0),E=[...new Set(e.map(D=>D.item.category).filter(Boolean))],C=(D,q)=>oe({case:"CaseDetail",blog:"BlogDetail",training:"TrainingDetail",vacancy:"VacatureDetail",page:"Diensten"}[D])+`?slug=${q}`,B=D=>({case:Ka,blog:Ut,training:pr,vacancy:ll,page:$s})[D]||Ut,I=D=>({case:"Case Study",blog:"Blog",training:"Training",vacancy:"Vacature",page:"Pagina"})[D]||D,R=D=>{i(q=>q.includes(D)?q.filter(z=>z!==D):[...q,D])};return t.jsxs("div",{className:"pt-20 min-h-screen bg-white",children:[t.jsx("section",{className:"py-16 bg-[#F4F4F4]",children:t.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:t.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},children:[t.jsxs("div",{className:"flex items-center gap-3 mb-6",children:[t.jsx(zi,{className:"w-8 h-8 text-[#FAB868]"}),t.jsx("h1",{className:"text-4xl font-bold text-[#0D0D0F]",children:"Zoekresultaten"})]}),t.jsx("p",{className:"text-xl text-[#9CA3AF]",children:c?`Resultaten voor "${c}"`:"Voer een zoekterm in"}),!N&&c&&t.jsxs("p",{className:"text-lg text-[#9CA3AF] mt-2",children:[S.length," ",S.length===1?"resultaat":"resultaten"," gevonden"]})]})})}),!N&&c&&e.length>0&&t.jsx("section",{className:"py-8 bg-white border-b border-gray-100",children:t.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:t.jsxs("div",{className:"flex flex-wrap gap-4 items-center",children:[t.jsxs("div",{className:"flex items-center gap-2",children:[t.jsx(af,{className:"w-5 h-5 text-[#9CA3AF]"}),t.jsx("span",{className:"font-semibold text-[#0D0D0F]",children:"Filters:"})]}),t.jsxs("select",{value:s,onChange:D=>a(D.target.value),className:"px-4 py-2 border border-gray-200 rounded-lg text-[#0D0D0F] focus:border-[#FAB868] focus:outline-none",children:[t.jsx("option",{value:"relevance",children:"Relevantie"}),t.jsx("option",{value:"date",children:"Datum"})]}),t.jsx("div",{className:"flex flex-wrap gap-2",children:E.map(D=>t.jsx("button",{onClick:()=>R(D),className:`px-4 py-2 rounded-full text-sm font-medium transition-colors ${r.includes(D)?"bg-[#FAB868] text-[#0D0D0F]":"bg-gray-100 text-[#9CA3AF] hover:bg-gray-200"}`,children:D},D))}),r.length>0&&t.jsxs("button",{onClick:()=>i([]),className:"flex items-center gap-1 px-3 py-2 text-sm text-[#9CA3AF] hover:text-[#0D0D0F] transition-colors",children:[t.jsx(rn,{className:"w-4 h-4"}),"Wis filters"]})]})})}),t.jsx("section",{className:"py-16",children:t.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:N?t.jsxs("div",{className:"text-center py-20",children:[t.jsx("div",{className:"inline-block animate-spin rounded-full h-12 w-12 border-b-2 border-[#FAB868]"}),t.jsx("p",{className:"mt-4 text-[#9CA3AF]",children:"Zoeken..."})]}):c?S.length===0?t.jsxs("div",{className:"text-center py-20",children:[t.jsx(zi,{className:"w-16 h-16 text-[#9CA3AF] mx-auto mb-4"}),t.jsxs("p",{className:"text-xl text-[#9CA3AF]",children:['Geen resultaten gevonden voor "',c,'"']}),t.jsx("p",{className:"text-[#9CA3AF] mt-2",children:"Probeer een andere zoekterm"})]}):t.jsx("div",{className:"space-y-6",children:S.map((D,q)=>{const z=B(D.item.type),U=Math.round((1-D.score)*100);return t.jsx(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:q*.05},children:t.jsx(fe,{to:C(D.item.type,D.item.slug),className:"block bg-[#F4F4F4] rounded-2xl p-6 hover:bg-white hover:shadow-lg transition-all",children:t.jsxs("div",{className:"flex items-start gap-4",children:[t.jsx("div",{className:"w-12 h-12 bg-[#FAB868] rounded-lg flex items-center justify-center flex-shrink-0",children:t.jsx(z,{className:"w-6 h-6 text-[#0D0D0F]"})}),t.jsxs("div",{className:"flex-1 min-w-0",children:[t.jsxs("div",{className:"flex items-center gap-3 mb-2",children:[t.jsx("span",{className:"text-sm font-semibold text-[#FAB868]",children:I(D.item.type)}),D.item.category&&t.jsxs("span",{className:"text-sm text-[#9CA3AF]",children:["• ",D.item.category]}),t.jsxs("span",{className:"text-sm text-[#9CA3AF] ml-auto",children:[U,"% match"]})]}),t.jsx("h3",{className:"text-2xl font-bold text-[#0D0D0F] mb-2",children:D.item.title}),t.jsx("p",{className:"text-[#9CA3AF] mb-4 line-clamp-2",children:D.item.description}),t.jsxs("div",{className:"flex items-center gap-2 text-[#FAB868] font-semibold",children:["Bekijk details",t.jsx(He,{className:"w-5 h-5"})]})]})]})})},`${D.item.type}-${D.item.slug}-${q}`)})}):t.jsxs("div",{className:"text-center py-20",children:[t.jsx(zi,{className:"w-16 h-16 text-[#9CA3AF] mx-auto mb-4"}),t.jsx("p",{className:"text-xl text-[#9CA3AF]",children:"Gebruik de zoekbalk om te zoeken"})]})})})]})}function mte({trainings:e=[]}){const[n,r]=F.useState(new Date),[i,s]=F.useState(null),a=F.useMemo(()=>{const x=[];return e.forEach(N=>{N.sessions&&Array.isArray(N.sessions)&&N.sessions.forEach(w=>{x.push({...w,training:{id:N.id,title:N.title,slug:N.slug,duration:N.duration,category:N.category}})})}),x},[e]),o=F.useMemo(()=>{const x={};return a.forEach(N=>{const w=_t(new Date(N.date),"yyyy-MM-dd");x[w]||(x[w]=[]),x[w].push(N)}),x},[a]),c=Lz(n),d=Fz(n),f=Mz({start:c,end:d}),h=c.getDay(),m=h===0?6:h-1,p=()=>r(MV(n)),g=()=>r(PE(n,1)),b=i?o[_t(i,"yyyy-MM-dd")]||[]:[],j=x=>x.enrolled>=x.capacity,y=x=>ME(fl(new Date(x.date)));return t.jsxs("div",{className:"bg-white rounded-3xl p-8 border-2 border-gray-100",children:[t.jsxs("div",{className:"flex items-center justify-between mb-6",children:[t.jsx("h2",{className:"text-3xl font-bold text-[#0D0D0F]",children:"Trainingskalender"}),t.jsxs("div",{className:"flex items-center gap-4",children:[t.jsx("button",{onClick:p,className:"p-2 hover:bg-[#F4F4F4] rounded-full transition-colors",children:t.jsx(j5,{className:"w-6 h-6 text-[#0D0D0F]"})}),t.jsx("span",{className:"text-xl font-semibold text-[#0D0D0F] min-w-[180px] text-center",children:_t(n,"MMMM yyyy",{locale:Aa})}),t.jsx("button",{onClick:g,className:"p-2 hover:bg-[#F4F4F4] rounded-full transition-colors",children:t.jsx(jA,{className:"w-6 h-6 text-[#0D0D0F]"})})]})]}),t.jsx("div",{className:"grid grid-cols-7 gap-2 mb-2",children:["Ma","Di","Wo","Do","Vr","Za","Zo"].map(x=>t.jsx("div",{className:"text-center text-sm font-medium text-[#9CA3AF] py-2",children:x},x))}),t.jsxs("div",{className:"grid grid-cols-7 gap-2 mb-6",children:[Array.from({length:m}).map((x,N)=>t.jsx("div",{className:"aspect-square"},`pad-${N}`)),f.map(x=>{const N=_t(x,"yyyy-MM-dd"),w=o[N]||[],k=w.length>0,A=i&&Dz(x,i);return t.jsxs(Z.button,{whileHover:{scale:1.05},whileTap:{scale:.95},onClick:()=>s(x),className:`aspect-square rounded-xl p-2 text-sm font-medium transition-all relative ${A?"bg-[#FAB868] text-[#0D0D0F]":k?"bg-[#FAB868]/20 text-[#0D0D0F] hover:bg-[#FAB868]/30":"hover:bg-[#F4F4F4] text-[#0D0D0F]"}`,children:[t.jsx("div",{children:_t(x,"d")}),k&&t.jsx("div",{className:"absolute bottom-1 left-1/2 -translate-x-1/2 flex gap-1",children:w.slice(0,3).map((S,E)=>t.jsx("div",{className:`w-1.5 h-1.5 rounded-full ${A?"bg-[#0D0D0F]":"bg-[#FAB868]"}`},E))})]},N)})]}),i&&t.jsxs(Z.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},className:"border-t-2 border-gray-100 pt-6",children:[t.jsx("h3",{className:"text-xl font-bold text-[#0D0D0F] mb-4",children:_t(i,"EEEE d MMMM yyyy",{locale:Aa})}),b.length===0?t.jsx("p",{className:"text-[#9CA3AF]",children:"Geen trainingen op deze datum"}):t.jsx("div",{className:"space-y-4",children:b.map((x,N)=>{const w=y(x),k=j(x);return t.jsx(fe,{to:oe(`TrainingDetail?slug=${x.training.slug}`),className:`block p-4 rounded-xl border-2 transition-all ${w?"border-gray-200 bg-gray-50 opacity-60":"border-gray-100 hover:border-[#FAB868] hover:shadow-md"}`,children:t.jsxs("div",{className:"flex items-start justify-between mb-3",children:[t.jsxs("div",{className:"flex-1",children:[t.jsx("h4",{className:`font-bold text-lg mb-1 ${w?"line-through text-gray-500":"text-[#0D0D0F]"}`,children:x.training.title}),t.jsxs("div",{className:"flex flex-wrap items-center gap-3 text-sm text-[#9CA3AF]",children:[t.jsxs("div",{className:"flex items-center gap-1",children:[t.jsx(Dn,{className:"w-4 h-4"}),_t(new Date(x.date),"HH:mm")]}),t.jsxs("div",{className:"flex items-center gap-1",children:[t.jsx(bu,{className:"w-4 h-4"}),x.location]})]})]}),t.jsxs("div",{className:"flex flex-col items-end gap-2",children:[t.jsx("span",{className:"px-3 py-1 bg-[#FAB868]/20 text-[#0D0D0F] rounded-full text-xs font-medium",children:x.training.category}),k?t.jsx("span",{className:"px-3 py-1 bg-red-100 text-red-800 rounded-full text-xs font-medium",children:"Vol"}):t.jsxs("div",{className:"flex items-center gap-1 text-sm text-[#0D0D0F]",children:[t.jsx(zn,{className:"w-4 h-4 text-[#FAB868]"}),t.jsxs("span",{className:"font-medium",children:[x.enrolled,"/",x.capacity]})]})]})]})},N)})})]})]})}const pte=[{id:"all",label:"Alle"},{id:"Basis",label:"Basis"},{id:"Gevorderd",label:"Gevorderd"},{id:"Leiderschap",label:"Leiderschap"},{id:"Technisch",label:"Technisch"}];function gte(){var f;const[e,n]=F.useState("all"),[r,i]=F.useState(!1),{data:s=[],isLoading:a}=ze({queryKey:["trainings"],queryFn:()=>ue.entities.Training.filter({active:!0},"-created_date",50),staleTime:300*1e3}),{data:o=[]}=ze({queryKey:["site-settings"],queryFn:()=>ue.entities.SiteSettings.list()}),c=((f=o.find(h=>h.setting_key==="show_training_calendar"))==null?void 0:f.value)!=="false";Rt.useEffect(()=>{const h=new URLSearchParams(window.location.search),m=h.get("category"),p=h.get("view");m&&n(m),p==="calendar"&&i(!0)},[]);const d=Rt.useMemo(()=>e==="all"?s:s.filter(h=>h.category===e),[s,e]);return t.jsxs("div",{className:"pt-20",children:[t.jsx("section",{className:"relative bg-white pt-32 pb-20",children:t.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:t.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"text-center max-w-3xl mx-auto",children:[t.jsx("div",{className:"w-24 h-24 bg-[#FAB868] rounded-full flex items-center justify-center mx-auto mb-6",children:t.jsx(pr,{className:"w-12 h-12 text-[#0D0D0F]"})}),t.jsx("h1",{className:"text-5xl sm:text-6xl font-bold text-[#0D0D0F] mb-6 leading-tight",children:"Maak je team AI-ready"}),t.jsx("p",{className:"text-2xl text-[#9CA3AF] mb-12",children:"Praktijkgerichte trainingen voor elk niveau"}),t.jsxs(fe,{to:oe("TrainingAdvisor"),className:"inline-flex items-center gap-2 px-10 py-5 bg-[#0D0D0F] text-white font-semibold rounded-full hover:bg-[#1a1a1c] transition-all text-lg",children:[t.jsx(Tt,{className:"w-5 h-5"}),"Vind de juiste training",t.jsx(He,{className:"w-5 h-5"})]})]})})}),t.jsx("section",{className:"py-8 border-b border-gray-100 bg-white",children:t.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:t.jsxs("div",{className:"flex items-center justify-between gap-4 flex-wrap",children:[t.jsxs("div",{className:"flex items-center gap-2 overflow-x-auto pb-2",children:[t.jsx(af,{className:"w-5 h-5 text-[#9CA3AF] flex-shrink-0"}),pte.map(h=>t.jsx("button",{onClick:()=>n(h.id),className:`px-4 py-2 rounded-full text-sm font-medium whitespace-nowrap transition-all ${e===h.id?"bg-[#FAB868] text-[#0D0D0F]":"bg-[#F4F4F4] text-[#0D0D0F] hover:bg-[#E5E5E5]"}`,children:h.label},h.id))]}),c&&t.jsxs("button",{onClick:()=>i(!r),className:`flex items-center gap-2 px-4 py-2 rounded-full text-sm font-medium transition-all ${r?"bg-[#FAB868] text-[#0D0D0F]":"bg-[#F4F4F4] text-[#0D0D0F] hover:bg-[#E5E5E5]"}`,children:[t.jsx($r,{className:"w-4 h-4"}),r?"Toon overzicht":"Toon kalender"]})]})})}),t.jsx("section",{className:"py-20",children:t.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:a?t.jsx("div",{className:"text-center py-12",children:t.jsx("div",{className:"inline-block w-8 h-8 border-4 border-blue-600 border-t-transparent rounded-full animate-spin"})}):r&&c?t.jsx(mte,{trainings:s}):d.length===0?t.jsx("div",{className:"text-center py-12",children:t.jsx("p",{className:"text-gray-600",children:"Geen trainingen gevonden"})}):t.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-8",children:d.map((h,m)=>{const p=pr;return t.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:m*.1},className:"bg-white rounded-3xl p-8 border-2 border-gray-100 hover:border-[#FAB868] hover:shadow-lg transition-all flex flex-col",children:[h.image_url&&t.jsx(fe,{to:oe(`TrainingDetail?slug=${h.slug}`),className:"block mb-6",children:t.jsx("img",{src:h.image_url,alt:h.title,loading:"lazy",className:"w-full h-48 object-cover rounded-2xl hover:opacity-90 transition-opacity cursor-pointer"})}),t.jsxs("div",{className:"flex items-start justify-between mb-4",children:[t.jsx("div",{className:"w-14 h-14 bg-[#F4F4F4] rounded-full flex items-center justify-center",children:t.jsx(p,{className:"w-7 h-7 text-[#0D0D0F]"})}),t.jsx("span",{className:"px-3 py-1 bg-[#FAB868]/20 text-[#0D0D0F] rounded-full text-sm font-medium",children:h.category})]}),t.jsx(fe,{to:oe(`TrainingDetail?slug=${h.slug}`),className:"block",children:t.jsx("h3",{className:"text-2xl font-bold text-[#0D0D0F] mb-2 hover:text-[#FAB868] transition-colors",children:h.title})}),t.jsx("p",{className:"text-[#0D0D0F]/80 mb-6 flex-grow text-lg",children:h.description}),t.jsx("div",{className:"flex items-center gap-4 text-base text-[#9CA3AF] pt-4 border-t border-gray-100 mb-6",children:t.jsxs("div",{className:"flex items-center gap-1",children:[t.jsx(Dn,{className:"w-5 h-5 text-[#FAB868]"}),h.duration]})}),t.jsx(fe,{to:oe(`TrainingDetail?slug=${h.slug}`),className:"w-full text-center py-3 bg-[#0D0D0F] text-white font-semibold rounded-full hover:bg-[#1a1a1c] transition-colors",children:"Meer informatie"})]},h.id)})})})}),t.jsx("section",{className:"py-32 bg-[#F4F4F4]",children:t.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[t.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-center mb-20",children:[t.jsx("h2",{className:"text-5xl sm:text-6xl font-bold text-[#0D0D0F] mb-6",children:"Onze faciliteiten"}),t.jsx("p",{className:"text-2xl text-[#9CA3AF]",children:"Leren in een inspirerende omgeving"})]}),t.jsxs("div",{className:"grid md:grid-cols-2 gap-8",children:[t.jsx(Z.div,{initial:{opacity:0,x:-20},whileInView:{opacity:1,x:0},viewport:{once:!0},className:"rounded-3xl overflow-hidden shadow-lg",children:t.jsx("img",{src:"https://qtrypzzcjebvfcihiynt.supabase.co/storage/v1/object/public/base44-prod/public/695a3d411fa079edce588856/eef059380_de_stek_groningen.png",alt:"Trainingsruimte",className:"w-full h-80 object-cover"})}),t.jsx(Z.div,{initial:{opacity:0,x:20},whileInView:{opacity:1,x:0},viewport:{once:!0},className:"rounded-3xl overflow-hidden shadow-lg",children:t.jsx("img",{src:"https://qtrypzzcjebvfcihiynt.supabase.co/storage/v1/object/public/base44-prod/public/695a3d411fa079edce588856/f1cb821e0_de_stek_groningen-2.png",alt:"Restaurant",className:"w-full h-80 object-cover"})})]})]})}),t.jsx("section",{className:"py-32 bg-[#0D0D0F]",children:t.jsxs("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 text-center",children:[t.jsx("h2",{className:"text-5xl font-bold text-white mb-6",children:"Niet zeker welke training past?"}),t.jsx("p",{className:"text-2xl text-[#9CA3AF] mb-12",children:"Gebruik onze Training Advisor"}),t.jsxs(fe,{to:oe("TrainingAdvisor"),className:"inline-flex items-center gap-2 px-10 py-5 bg-[#FAB868] text-[#0D0D0F] font-semibold rounded-full hover:bg-[#E5A04D] transition-all text-lg",children:[t.jsx(Tt,{className:"w-5 h-5"}),"Start Training Advisor",t.jsx(He,{className:"w-5 h-5"})]})]})})]})}function xte(){const[e,n]=F.useState(0),[r,i]=F.useState({}),[s,a]=F.useState(!1),[o,c]=F.useState(!1),{data:d=[],isLoading:f}=ze({queryKey:["trainings"],queryFn:()=>ue.entities.Training.list()}),h=d.filter(y=>y.active!==!1),m=[{id:"teamSize",question:"Hoe groot is je team?",icon:zn,options:[{value:"small",label:"1-5 personen",description:"Compact team"},{value:"medium",label:"6-20 personen",description:"Middelgroot team"},{value:"large",label:"20+ personen",description:"Groot team"}]},{id:"level",question:"Wat is het huidige AI kennisniveau?",icon:pr,options:[{value:"beginner",label:"Beginner",description:"Weinig tot geen AI ervaring"},{value:"intermediate",label:"Gemiddeld",description:"Basis kennis, enige ervaring"},{value:"advanced",label:"Gevorderd",description:"Actief gebruik, wil verdiepen"}]},{id:"goal",question:"Wat is je belangrijkste doel?",icon:qa,options:[{value:"awareness",label:"AI bewustwording",description:"Team moet begrijpen wat AI kan"},{value:"productivity",label:"Productiviteit verhogen",description:"Direct toepasbare skills"},{value:"development",label:"AI development",description:"Zelf AI oplossingen bouwen"},{value:"leadership",label:"Strategisch leiderschap",description:"AI strategie en management"}]},{id:"timeframe",question:"Wanneer wil je starten?",icon:Dn,options:[{value:"asap",label:"Zo snel mogelijk",description:"Binnen 2 weken"},{value:"month",label:"Binnen een maand",description:"Plannen en voorbereiden"},{value:"quarter",label:"Dit kwartaal",description:"Rustig inplannen"}]}],p=(y,x)=>{i({...r,[y]:x}),e<m.length-1?setTimeout(()=>n(e+1),300):(c(!0),setTimeout(()=>{c(!1),a(!0)},1500))},g=()=>h.length===0?[]:h.map(x=>{var k;let N=0,w=[];if(r.level==="beginner"&&x.category==="Basis"&&(N+=3,w.push("Perfect startpunt voor beginners")),r.level==="intermediate"&&(x.category==="Basis"||x.category==="Gevorderd")&&(N+=2,w.push("Past bij je huidige niveau")),r.level==="advanced"&&(x.category==="Gevorderd"||x.category==="Technisch")&&(N+=3,w.push("Voor gevorderden")),r.goal==="awareness"&&x.category==="Basis"&&(N+=2,w.push("Ideaal voor bewustwording")),r.goal==="productivity"&&(x.title.toLowerCase().includes("copilot")||x.title.toLowerCase().includes("productiviteit")||(k=x.description)!=null&&k.toLowerCase().includes("efficiency"))&&(N+=3,w.push("Direct toepasbaar voor productiviteit")),r.goal==="development"&&x.category==="Technisch"&&(N+=3,w.push("Voor hands-on development")),r.goal==="leadership"&&x.category==="Leiderschap"&&(N+=3,w.push("Strategisch AI leiderschap")),r.teamSize==="large"&&x.category==="Leiderschap"&&(N+=2,w.push("Belangrijk voor grotere teams")),x.target_audience){const A=x.target_audience.toLowerCase();r.goal==="leadership"&&(A.includes("management")||A.includes("leider"))&&(N+=2),r.goal==="development"&&(A.includes("developer")||A.includes("technisch"))&&(N+=2),r.level==="beginner"&&(A.includes("iedereen")||A.includes("beginners"))&&(N+=1)}return{training:x,score:N,reason:w.join(" • ")||"Past bij je profiel"}}).sort((x,N)=>N.score-x.score).slice(0,3).map(({training:x,reason:N})=>({title:x.title,slug:x.slug,reason:N,priority:x.category||"Aanbevolen",duration:x.duration,description:x.description})),b=m[e],j=(e+1)/m.length*100;if(f)return t.jsx("div",{className:"pt-20 min-h-screen bg-gradient-to-b from-purple-50 to-white flex items-center justify-center",children:t.jsxs("div",{className:"text-center",children:[t.jsx(p3,{className:"w-12 h-12 text-purple-600 animate-spin mx-auto mb-4"}),t.jsx("p",{className:"text-gray-600",children:"Trainingen aan het laden..."})]})});if(o)return t.jsx("div",{className:"pt-20 min-h-screen bg-gradient-to-b from-purple-50 to-white flex items-center justify-center",children:t.jsxs(Z.div,{initial:{opacity:0,scale:.9},animate:{opacity:1,scale:1},className:"text-center",children:[t.jsx("div",{className:"w-20 h-20 bg-purple-100 rounded-full flex items-center justify-center mx-auto mb-6",children:t.jsx(Tt,{className:"w-10 h-10 text-purple-600 animate-pulse"})}),t.jsx("h2",{className:"text-2xl font-bold text-gray-900 mb-2",children:"Bezig met analyseren..."}),t.jsx("p",{className:"text-gray-600",children:"We zoeken de beste trainingen voor jou"})]})});if(s){const y=g();return t.jsx("div",{className:"pt-20 min-h-screen bg-gradient-to-b from-purple-50 to-white",children:t.jsxs("div",{className:"max-w-3xl mx-auto px-4 sm:px-6 lg:px-8 py-20",children:[t.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"text-center mb-12",children:[t.jsx("div",{className:"w-16 h-16 bg-green-100 rounded-full flex items-center justify-center mx-auto mb-6",children:t.jsx(vt,{className:"w-8 h-8 text-green-600"})}),t.jsx("h1",{className:"text-3xl font-bold text-gray-900 mb-4",children:"Jouw gepersonaliseerde aanbevelingen"}),t.jsx("p",{className:"text-gray-600",children:"Op basis van je antwoorden hebben we de beste trainingen voor je geselecteerd"})]}),y.length>0?t.jsx("div",{className:"space-y-6 mb-12",children:y.map((x,N)=>t.jsx(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:N*.15},className:"bg-white rounded-2xl p-6 border border-gray-100 shadow-sm hover:shadow-lg transition-all",children:t.jsxs("div",{className:"flex items-start justify-between gap-4",children:[t.jsxs("div",{className:"flex-1",children:[t.jsxs("div",{className:"flex items-center gap-3 mb-3",children:[t.jsx("span",{className:"inline-block px-3 py-1 bg-purple-100 text-purple-700 rounded-full text-sm font-medium",children:x.priority}),x.duration&&t.jsxs("span",{className:"text-sm text-gray-500 flex items-center gap-1",children:[t.jsx(Dn,{className:"w-4 h-4"}),x.duration]})]}),t.jsx("h3",{className:"text-xl font-bold text-gray-900 mb-2",children:x.title}),t.jsx("p",{className:"text-gray-600 mb-2",children:x.description}),t.jsx("p",{className:"text-sm text-purple-600 font-medium",children:x.reason})]}),t.jsxs("div",{className:"flex flex-col gap-2",children:[t.jsx(fe,{to:oe("TrainingDetail")+`?slug=${x.slug}`,className:"flex-shrink-0 w-10 h-10 bg-gray-100 rounded-full flex items-center justify-center hover:bg-gray-200 transition-colors",title:"Bekijk details",children:t.jsx(He,{className:"w-5 h-5 text-gray-600"})}),t.jsx(fe,{to:oe("Contact")+`?training=${encodeURIComponent(x.title)}`,className:"flex-shrink-0 w-10 h-10 bg-purple-100 rounded-full flex items-center justify-center hover:bg-purple-200 transition-colors",title:"Aanvragen",children:t.jsx(vt,{className:"w-5 h-5 text-purple-600"})})]})]})},N))}):t.jsxs("div",{className:"bg-white rounded-2xl p-12 text-center mb-12",children:[t.jsx("p",{className:"text-gray-600 mb-4",children:"Er zijn momenteel geen trainingen beschikbaar die passen bij je profiel."}),t.jsx("p",{className:"text-gray-500",children:"Neem contact met ons op voor een persoonlijk advies."})]}),t.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 justify-center",children:[t.jsxs(fe,{to:oe("Contact"),className:"inline-flex items-center justify-center gap-2 px-8 py-4 bg-gradient-to-r from-purple-600 to-pink-600 text-white font-semibold rounded-2xl hover:shadow-xl transition-all",children:["Plan een gesprek",t.jsx(He,{className:"w-5 h-5"})]}),t.jsx(fe,{to:oe("Training"),className:"inline-flex items-center justify-center gap-2 px-8 py-4 border-2 border-gray-200 text-gray-700 font-semibold rounded-2xl hover:border-purple-300 hover:bg-purple-50 transition-all",children:"Bekijk alle trainingen"})]}),t.jsxs("button",{onClick:()=>{n(0),i({}),a(!1)},className:"mt-8 mx-auto flex items-center gap-2 text-gray-600 hover:text-gray-900 transition-colors",children:[t.jsx(ht,{className:"w-4 h-4"}),"Opnieuw beginnen"]})]})})}return t.jsx("div",{className:"pt-20 min-h-screen bg-gradient-to-b from-purple-50 to-white",children:t.jsxs("div",{className:"max-w-2xl mx-auto px-4 sm:px-6 lg:px-8 py-20",children:[t.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"text-center mb-12",children:[t.jsxs("div",{className:"inline-flex items-center gap-2 px-4 py-2 bg-purple-100 rounded-full text-purple-700 text-sm font-medium mb-6",children:[t.jsx(Tt,{className:"w-4 h-4"}),"Training Advisor"]}),t.jsx("h1",{className:"text-3xl font-bold text-gray-900 mb-4",children:"Vind de perfecte training"}),t.jsxs("p",{className:"text-gray-600",children:["Beantwoord een paar vragen en ontvang direct een persoonlijk advies gebaseerd op ",h.length," beschikbare trainingen"]})]}),t.jsxs("div",{className:"mb-8",children:[t.jsxs("div",{className:"flex justify-between text-sm text-gray-500 mb-2",children:[t.jsxs("span",{children:["Vraag ",e+1," van ",m.length]}),t.jsxs("span",{children:[Math.round(j),"%"]})]}),t.jsx("div",{className:"h-2 bg-gray-200 rounded-full overflow-hidden",children:t.jsx(Z.div,{className:"h-full bg-gradient-to-r from-purple-600 to-pink-600 rounded-full",initial:{width:0},animate:{width:`${j}%`},transition:{duration:.3}})})]}),t.jsx(ai,{mode:"wait",children:t.jsxs(Z.div,{initial:{opacity:0,x:20},animate:{opacity:1,x:0},exit:{opacity:0,x:-20},className:"bg-white rounded-2xl p-8 shadow-sm border border-gray-100",children:[t.jsxs("div",{className:"flex items-center gap-3 mb-6",children:[t.jsx("div",{className:"w-12 h-12 bg-purple-100 rounded-xl flex items-center justify-center",children:t.jsx(b.icon,{className:"w-6 h-6 text-purple-600"})}),t.jsx("h2",{className:"text-xl font-bold text-gray-900",children:b.question})]}),t.jsx("div",{className:"space-y-3",children:b.options.map((y,x)=>t.jsxs("button",{onClick:()=>p(b.id,y.value),className:`w-full p-4 rounded-xl border-2 text-left transition-all hover:border-purple-300 hover:bg-purple-50 ${r[b.id]===y.value?"border-purple-600 bg-purple-50":"border-gray-200"}`,children:[t.jsx("p",{className:"font-semibold text-gray-900",children:y.label}),t.jsx("p",{className:"text-sm text-gray-500",children:y.description})]},x))})]},e)}),e>0&&t.jsxs("button",{onClick:()=>n(e-1),className:"mt-6 flex items-center gap-2 text-gray-600 hover:text-gray-900 transition-colors",children:[t.jsx(ht,{className:"w-4 h-4"}),"Vorige vraag"]})]})})}function yte(){var o,c;const n=new URLSearchParams(window.location.search).get("slug"),{data:r=[],isLoading:i}=ze({queryKey:["trainings",n],queryFn:()=>ue.entities.Training.filter({slug:n,active:!0}),enabled:!!n}),s=r[0];if(i)return t.jsx("div",{className:"pt-20 min-h-screen flex items-center justify-center bg-white",children:t.jsx("div",{className:"inline-block animate-spin rounded-full h-12 w-12 border-b-2 border-[#FAB868]"})});if(!s)return t.jsx("div",{className:"pt-20 min-h-screen flex items-center justify-center bg-white",children:t.jsx("h1",{className:"text-2xl font-bold text-[#0D0D0F]",children:"Training niet gevonden."})});const a=((o=s.full_description)==null?void 0:o.includes("<"))&&((c=s.full_description)==null?void 0:c.includes(">"));return t.jsxs("div",{className:"pt-20 bg-white",children:[t.jsxs(gl,{children:[t.jsx("title",{children:`${s.title} - AI Training - 48-7`}),t.jsx("meta",{name:"description",content:s.description}),t.jsx("meta",{property:"og:title",content:s.title}),t.jsx("meta",{property:"og:description",content:s.description}),t.jsx("meta",{property:"og:type",content:"website"}),s.image_url&&t.jsx("meta",{property:"og:image",content:s.image_url}),t.jsx("script",{type:"application/ld+json",children:JSON.stringify({"@context":"https://schema.org","@type":"Course",name:s.title,description:s.description,provider:{"@type":"Organization",name:"48-7"},courseMode:s.format,timeRequired:s.duration})})]}),t.jsxs("section",{className:"relative overflow-hidden pt-16 pb-12 bg-[#F4F4F4]",children:[s.image&&t.jsx("img",{src:s.image,alt:s.title,className:"absolute inset-0 w-full h-full object-cover opacity-30"}),t.jsx("div",{className:"relative max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-16",children:t.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"max-w-4xl mx-auto",children:[t.jsxs("div",{className:"flex items-center gap-4 mb-6",children:[t.jsxs(fe,{to:oe("Training"),className:"inline-flex items-center text-[#0D0D0F] hover:text-[#FAB868] transition-colors",children:[t.jsx(ht,{className:"w-4 h-4 mr-2"})," Terug naar overzicht"]}),t.jsx("span",{className:"text-[#9CA3AF]",children:"|"}),t.jsxs(fe,{to:oe("Training")+"?view=calendar",className:"inline-flex items-center text-[#0D0D0F] hover:text-[#FAB868] transition-colors",children:[t.jsx($r,{className:"w-4 h-4 mr-2"})," Bekijk kalender"]})]}),t.jsx("div",{className:"w-24 h-24 bg-[#FAB868] rounded-full flex items-center justify-center mb-6",children:t.jsx(pr,{className:"w-12 h-12 text-[#0D0D0F]"})}),t.jsx("h1",{className:"text-5xl sm:text-6xl font-bold text-[#0D0D0F] mb-4",children:s.title}),t.jsx("p",{className:"text-2xl text-[#9CA3AF] mb-8",children:s.description}),t.jsxs("div",{className:"flex flex-wrap items-center gap-6 text-lg text-[#0D0D0F]",children:[t.jsxs("div",{className:"flex items-center gap-2",children:[t.jsx(Dn,{className:"w-6 h-6 text-[#FAB868]"}),t.jsx("span",{children:s.duration})]}),s.target_audience&&t.jsxs("div",{className:"flex items-center gap-2",children:[t.jsx(zn,{className:"w-6 h-6 text-[#FAB868]"}),t.jsx("span",{children:s.target_audience})]}),s.price&&t.jsxs("div",{className:"flex items-center gap-2",children:[t.jsx(_1,{className:"w-6 h-6 text-[#FAB868]"}),t.jsx("span",{children:s.price})]})]})]})})]}),t.jsx("section",{className:"py-20",children:t.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 grid lg:grid-cols-3 gap-12",children:[t.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"lg:col-span-2 space-y-10",children:[t.jsxs("div",{children:[t.jsx("h2",{className:"text-4xl font-bold text-[#0D0D0F] mb-6",children:"Over deze training"}),t.jsx("div",{className:"training-content",children:a?t.jsx("div",{dangerouslySetInnerHTML:{__html:s.full_description||s.description}}):t.jsx($f,{children:s.full_description||s.description})}),t.jsx("style",{jsx:!0,children:`
                .training-content h1 {
                  font-size: 2rem;
                  font-weight: 700;
                  color: #0D0D0F;
                  margin-top: 2rem;
                  margin-bottom: 1rem;
                  line-height: 1.2;
                }
                .training-content h2 {
                  font-size: 1.75rem;
                  font-weight: 700;
                  color: #0D0D0F;
                  margin-top: 1.5rem;
                  margin-bottom: 0.75rem;
                  line-height: 1.3;
                }
                .training-content h3 {
                  font-size: 1.5rem;
                  font-weight: 600;
                  color: #0D0D0F;
                  margin-top: 1.25rem;
                  margin-bottom: 0.75rem;
                }
                .training-content h4 {
                  font-size: 1.25rem;
                  font-weight: 600;
                  color: #0D0D0F;
                  margin-top: 1rem;
                  margin-bottom: 0.5rem;
                }
                .training-content p {
                  color: #0D0D0F;
                  font-size: 1.125rem;
                  line-height: 1.75;
                  margin-bottom: 1rem;
                }
                .training-content ul,
                .training-content ol {
                  margin: 1rem 0;
                  padding-left: 2rem;
                  color: #0D0D0F;
                  font-size: 1.125rem;
                  line-height: 1.75;
                }
                .training-content ul {
                  list-style-type: disc;
                }
                .training-content ol {
                  list-style-type: decimal;
                }
                .training-content li {
                  margin-bottom: 0.5rem;
                  color: #0D0D0F;
                }
                .training-content strong {
                  font-weight: 700;
                  color: #0D0D0F;
                }
                .training-content em {
                  font-style: italic;
                }
                .training-content u {
                  text-decoration: underline;
                }
                .training-content a {
                  color: #FAB868;
                  text-decoration: underline;
                }
                .training-content a:hover {
                  color: #E5A04D;
                }
              `})]}),s.learning_goals&&s.learning_goals.length>0&&t.jsxs("div",{children:[t.jsx("h3",{className:"text-3xl font-bold text-[#0D0D0F] mb-6",children:"Wat je leert"}),t.jsx("ul",{className:"space-y-4",children:s.learning_goals.map((d,f)=>t.jsxs("li",{className:"flex items-start gap-3 text-xl text-[#0D0D0F]/80",children:[t.jsx(vt,{className:"w-7 h-7 text-[#FAB868] flex-shrink-0 mt-1"}),t.jsx("span",{children:d})]},f))})]})]}),t.jsx(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.2},className:"lg:col-span-1 space-y-6",children:t.jsxs("div",{className:"bg-[#F4F4F4] rounded-3xl p-8 sticky top-28",children:[t.jsx("h3",{className:"text-2xl font-bold text-[#0D0D0F] mb-6",children:"Details"}),t.jsxs("ul",{className:"space-y-4 text-lg text-[#0D0D0F]/80 mb-8",children:[t.jsxs("li",{className:"flex items-center gap-3",children:[t.jsx(Dn,{className:"w-6 h-6 text-[#FAB868]"}),t.jsx("span",{children:t.jsx("span",{className:"font-semibold",children:s.duration})})]}),s.target_audience&&t.jsxs("li",{className:"flex items-start gap-3",children:[t.jsx(zn,{className:"w-6 h-6 text-[#FAB868] flex-shrink-0 mt-1"}),t.jsx("span",{children:s.target_audience})]}),s.price&&t.jsxs("li",{className:"flex items-center gap-3",children:[t.jsx(_1,{className:"w-6 h-6 text-[#FAB868]"}),t.jsx("span",{className:"font-semibold",children:s.price})]})]}),s.sessions&&s.sessions.length>0&&t.jsxs("div",{className:"mb-8 pb-8 border-b-2 border-gray-200",children:[t.jsxs("h4",{className:"text-lg font-bold text-[#0D0D0F] mb-4 flex items-center gap-2",children:[t.jsx($r,{className:"w-5 h-5 text-[#FAB868]"}),"Geplande data"]}),t.jsx("div",{className:"space-y-3",children:s.sessions.sort((d,f)=>new Date(d.date)-new Date(f.date)).map((d,f)=>{const h=ME(fl(new Date(d.date))),m=d.enrolled>=d.capacity;return t.jsxs("div",{className:`p-3 rounded-xl border-2 ${h?"border-gray-200 bg-gray-50 opacity-60":"border-gray-200 hover:border-[#FAB868] transition-colors"}`,children:[t.jsx("div",{className:`font-semibold text-sm mb-1 ${h?"line-through text-gray-500":"text-[#0D0D0F]"}`,children:_t(new Date(d.date),"EEEE d MMMM yyyy",{locale:Aa})}),t.jsxs("div",{className:"text-xs text-[#9CA3AF] space-y-1",children:[t.jsxs("div",{className:"flex items-center gap-1",children:[t.jsx(Dn,{className:"w-3 h-3"}),_t(new Date(d.date),"HH:mm")]}),t.jsxs("div",{className:"flex items-center gap-1",children:[t.jsx(bu,{className:"w-3 h-3"}),d.location]}),t.jsxs("div",{className:"flex items-center gap-1",children:[t.jsx(zn,{className:"w-3 h-3"}),d.enrolled,"/",d.capacity," deelnemers",m&&t.jsx("span",{className:"ml-2 px-2 py-0.5 bg-red-100 text-red-800 rounded-full text-xs font-medium",children:"Vol"})]})]})]},f)})})]}),t.jsxs(fe,{to:oe("Contact")+`?training=${encodeURIComponent(s.title)}`,className:"w-full text-center py-4 bg-[#0D0D0F] text-white font-semibold rounded-full hover:bg-[#1a1a1c] transition-colors inline-flex items-center justify-center gap-2 text-lg",children:["Vraag aan",t.jsx(He,{className:"w-5 h-5"})]})]})})]})}),t.jsx("section",{className:"py-20 bg-[#0D0D0F]",children:t.jsxs("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 text-center",children:[t.jsx("h2",{className:"text-5xl font-bold text-white mb-6",children:"Bekijk al onze trainingen"}),t.jsxs(fe,{to:oe("Training"),className:"inline-flex items-center gap-2 px-10 py-5 bg-[#FAB868] text-[#0D0D0F] font-semibold rounded-full hover:bg-[#E5A04D] transition-all text-lg",children:[t.jsx(pr,{className:"w-5 h-5"}),"Alle Trainingen"]})]})})]})}function vte(){var o,c;const n=new URLSearchParams(window.location.search).get("slug"),{data:r=[],isLoading:i}=ze({queryKey:["vacature",n],queryFn:()=>ue.entities.Vacature.filter({slug:n,active:!0}),enabled:!!n}),s=r[0];if(i)return t.jsx("div",{className:"pt-20 min-h-screen bg-white flex items-center justify-center",children:t.jsx("div",{className:"inline-block animate-spin rounded-full h-12 w-12 border-b-2 border-[#FAB868]"})});if(!s)return t.jsx("div",{className:"pt-20 min-h-screen bg-white flex items-center justify-center",children:t.jsxs("div",{className:"text-center",children:[t.jsx("h1",{className:"text-3xl font-bold text-gray-900 mb-4",children:"Vacature niet gevonden"}),t.jsx(fe,{to:oe("Vacatures"),className:"text-blue-600 hover:underline",children:"Terug naar vacatures"})]})});const a=((o=s.description)==null?void 0:o.includes("<"))&&((c=s.description)==null?void 0:c.includes(">"));return t.jsxs("div",{className:"pt-20 min-h-screen bg-white",children:[t.jsxs(gl,{children:[t.jsx("title",{children:`${s.title} - Vacatures - 48-7`}),t.jsx("meta",{name:"description",content:s.role_summary||s.description}),t.jsx("meta",{property:"og:title",content:s.title}),t.jsx("meta",{property:"og:description",content:s.role_summary||s.description}),t.jsx("meta",{property:"og:type",content:"website"}),t.jsx("script",{type:"application/ld+json",children:JSON.stringify({"@context":"https://schema.org","@type":"JobPosting",title:s.title,description:s.description,employmentType:s.employment_type,hiringOrganization:{"@type":"Organization",name:"48-7"},jobLocation:{"@type":"Place",address:{"@type":"PostalAddress",addressLocality:s.location}},baseSalary:s.salary_range?{"@type":"MonetaryAmount",currency:"EUR",value:{"@type":"QuantitativeValue",value:s.salary_range}}:void 0})})]}),t.jsx("div",{className:"bg-[#F4F4F4] py-4",children:t.jsx("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8",children:t.jsxs(fe,{to:oe("Vacatures"),className:"inline-flex items-center gap-2 text-[#0D0D0F] hover:text-[#FAB868] transition-colors",children:[t.jsx(ht,{className:"w-5 h-5"}),"Terug naar vacatures"]})})}),t.jsx("section",{className:"py-16 bg-white",children:t.jsx("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8",children:t.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},children:[t.jsxs("div",{className:"flex flex-wrap items-center gap-3 mb-6",children:[t.jsx("span",{className:"px-4 py-2 bg-[#FAB868] text-[#0D0D0F] rounded-full text-sm font-semibold",children:s.level}),t.jsxs("div",{className:"flex items-center gap-2 text-[#9CA3AF]",children:[t.jsx(bu,{className:"w-5 h-5"}),t.jsx("span",{children:s.location})]}),t.jsxs("div",{className:"flex items-center gap-2 text-[#9CA3AF]",children:[t.jsx(Dn,{className:"w-5 h-5"}),t.jsx("span",{children:s.type})]}),s.salary_range&&t.jsxs("div",{className:"flex items-center gap-2 text-[#9CA3AF]",children:[t.jsx(Ka,{className:"w-5 h-5"}),t.jsx("span",{children:s.salary_range})]})]}),t.jsx("h1",{className:"text-5xl font-bold text-[#0D0D0F] mb-6",children:s.title}),t.jsx("p",{className:"text-2xl text-[#9CA3AF] mb-8",children:s.role_summary||s.description}),t.jsxs(fe,{to:oe("Contact")+`?subject=vacancy&vacancy=${encodeURIComponent(s.title)}`,className:"inline-flex items-center gap-2 px-8 py-4 bg-[#FAB868] text-[#0D0D0F] font-semibold rounded-full hover:bg-[#E5A04D] transition-all text-lg",children:["Solliciteer nu",t.jsx(He,{className:"w-5 h-5"})]})]})})}),t.jsx("section",{className:"py-16 bg-[#F4F4F4]",children:t.jsx("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8",children:t.jsxs("div",{className:"space-y-12",children:[t.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"bg-white rounded-3xl p-8",children:[t.jsx("h2",{className:"text-3xl font-bold text-[#0D0D0F] mb-6",children:"De rol"}),t.jsx("div",{className:"text-lg text-[#9CA3AF] leading-relaxed prose prose-lg max-w-none",children:a?t.jsx("div",{dangerouslySetInnerHTML:{__html:s.description}}):t.jsx($f,{children:s.description})})]}),t.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"bg-white rounded-3xl p-8",children:[t.jsx("h2",{className:"text-3xl font-bold text-[#0D0D0F] mb-6",children:"Wat ga je doen?"}),s.responsibilities&&s.responsibilities.length>0?t.jsx("ul",{className:"space-y-3",children:s.responsibilities.map((d,f)=>t.jsxs("li",{className:"flex items-start gap-3",children:[t.jsx(vt,{className:"w-6 h-6 text-[#FAB868] flex-shrink-0 mt-0.5"}),t.jsx("span",{className:"text-lg text-[#9CA3AF]",children:d})]},f))}):t.jsx("p",{className:"text-lg text-[#9CA3AF]",children:"Meer details volgen binnenkort."})]}),t.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"bg-white rounded-3xl p-8",children:[t.jsx("h2",{className:"text-3xl font-bold text-[#0D0D0F] mb-6",children:"Wat breng je mee?"}),s.requirements&&s.requirements.length>0?t.jsx("ul",{className:"space-y-3 mb-8",children:s.requirements.map((d,f)=>t.jsxs("li",{className:"flex items-start gap-3",children:[t.jsx(vt,{className:"w-6 h-6 text-[#FAB868] flex-shrink-0 mt-0.5"}),t.jsx("span",{className:"text-lg text-[#9CA3AF]",children:d})]},f))}):t.jsx("p",{className:"text-lg text-[#9CA3AF] mb-8",children:"Meer details volgen binnenkort."})]}),t.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"bg-white rounded-3xl p-8",children:[t.jsx("h2",{className:"text-3xl font-bold text-[#0D0D0F] mb-6",children:"Wat bieden wij?"}),s.benefits&&s.benefits.length>0?t.jsx("ul",{className:"space-y-3",children:s.benefits.map((d,f)=>t.jsxs("li",{className:"flex items-start gap-3",children:[t.jsx(vt,{className:"w-6 h-6 text-[#FAB868] flex-shrink-0 mt-0.5"}),t.jsx("span",{className:"text-lg text-[#9CA3AF]",children:d})]},f))}):t.jsx("p",{className:"text-lg text-[#9CA3AF]",children:"Meer details volgen binnenkort."})]})]})})}),t.jsx("section",{className:"py-20 bg-[#0D0D0F]",children:t.jsx("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 text-center",children:t.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},children:[t.jsx("h2",{className:"text-4xl font-bold text-white mb-6",children:"Enthousiast geworden?"}),t.jsx("p",{className:"text-xl text-gray-300 mb-8",children:"Solliciteer direct of neem contact op voor meer informatie"}),t.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 justify-center",children:[t.jsxs(fe,{to:oe("Contact")+`?subject=vacancy&vacancy=${encodeURIComponent(s.title)}`,className:"inline-flex items-center justify-center gap-2 px-10 py-5 bg-[#FAB868] text-[#0D0D0F] font-semibold rounded-full hover:bg-[#E5A04D] transition-all text-lg",children:["Solliciteer nu",t.jsx(He,{className:"w-5 h-5"})]}),t.jsx(fe,{to:oe("Contact"),className:"inline-flex items-center justify-center gap-2 px-10 py-5 bg-white text-[#0D0D0F] font-semibold rounded-full hover:bg-gray-100 transition-all text-lg",children:"Stel een vraag"})]})]})})})]})}function bte(){const{data:e=[],isLoading:n}=ze({queryKey:["vacatures"],queryFn:()=>ue.entities.Vacature.filter({active:!0},"-created_date")});return t.jsxs("div",{className:"pt-20",children:[t.jsxs("section",{className:"relative h-[500px] overflow-hidden",children:[t.jsx("img",{src:"https://images.unsplash.com/photo-1522071820081-009f0129c71c?w=2000&auto=format&fit=crop",alt:"Team working",className:"absolute inset-0 w-full h-full object-cover"}),t.jsx("div",{className:"absolute inset-0 bg-gradient-to-r from-[#0D0D0F]/90 via-[#0D0D0F]/70 to-transparent"}),t.jsx("div",{className:"relative h-full max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 flex items-center",children:t.jsxs(Z.div,{initial:{opacity:0,y:30},animate:{opacity:1,y:0},className:"max-w-2xl text-white",children:[t.jsx("h1",{className:"text-5xl sm:text-6xl lg:text-7xl font-bold mb-6 leading-tight",children:"Bouw de toekomst van AI"}),t.jsx("p",{className:"text-2xl text-gray-200 mb-8",children:"Word onderdeel van het snelst groeiende AI team van Nederland"}),t.jsxs("div",{className:"flex flex-wrap gap-8 text-lg",children:[t.jsxs("div",{className:"flex items-center gap-2",children:[t.jsx(Hi,{className:"w-6 h-6 text-[#FAB868]"}),t.jsx("span",{children:"Groeiend bedrijf"})]}),t.jsxs("div",{className:"flex items-center gap-2",children:[t.jsx(zn,{className:"w-6 h-6 text-[#FAB868]"}),t.jsx("span",{children:"Talent-first cultuur"})]}),t.jsxs("div",{className:"flex items-center gap-2",children:[t.jsx($s,{className:"w-6 h-6 text-[#FAB868]"}),t.jsx("span",{children:"Cutting-edge projecten"})]})]})]})})]}),t.jsx("section",{className:"py-20 bg-white",children:t.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[t.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-center mb-16",children:[t.jsx("h2",{className:"text-5xl font-bold text-[#0D0D0F] mb-6",children:"Open vacatures"}),t.jsx("p",{className:"text-2xl text-[#9CA3AF]",children:"Vind jouw plek in ons team"})]}),n?t.jsx("div",{className:"text-center py-12",children:t.jsx("div",{className:"inline-block w-8 h-8 border-4 border-blue-600 border-t-transparent rounded-full animate-spin"})}):e.length===0?t.jsx("div",{className:"text-center py-12",children:t.jsx("p",{className:"text-gray-600",children:"Momenteel geen openstaande vacatures"})}):t.jsx("div",{className:"space-y-6",children:e.map((r,i)=>t.jsx(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:i*.1},className:"bg-[#F4F4F4] rounded-3xl p-8 hover:bg-white hover:shadow-lg hover:border-2 hover:border-[#FAB868] transition-all group",children:t.jsxs("div",{className:"flex flex-col lg:flex-row lg:items-center justify-between gap-6",children:[t.jsxs("div",{className:"flex-1",children:[t.jsxs("div",{className:"flex flex-wrap items-center gap-3 mb-4",children:[t.jsx("span",{className:"px-4 py-1 bg-[#FAB868] text-[#0D0D0F] rounded-full text-sm font-semibold",children:r.level}),t.jsxs("div",{className:"flex items-center gap-2 text-[#9CA3AF]",children:[t.jsx(bu,{className:"w-4 h-4"}),t.jsx("span",{children:r.location})]}),t.jsxs("div",{className:"flex items-center gap-2 text-[#9CA3AF]",children:[t.jsx(Dn,{className:"w-4 h-4"}),t.jsx("span",{children:r.type})]})]}),t.jsx("h3",{className:"text-3xl font-bold text-[#0D0D0F] mb-3 group-hover:text-[#FAB868] transition-colors",children:r.title}),t.jsx("p",{className:"text-xl text-[#9CA3AF] mb-4",children:r.role_summary||r.description}),r.requirements&&r.requirements.length>0&&t.jsx("div",{className:"flex flex-wrap gap-2",children:r.requirements.slice(0,4).map((s,a)=>t.jsx("span",{className:"px-3 py-1 bg-white text-[#0D0D0F] rounded-full text-sm",children:s},a))})]}),t.jsxs("div",{className:"flex gap-3",children:[t.jsx(fe,{to:oe("VacatureDetail")+`?slug=${r.slug}`,className:"flex-shrink-0 inline-flex items-center gap-2 px-6 py-3 bg-white text-[#0D0D0F] font-semibold rounded-full hover:bg-gray-100 transition-all border-2 border-[#0D0D0F]",children:"Meer info"}),t.jsxs(fe,{to:oe("Contact")+`?subject=vacancy&vacancy=${encodeURIComponent(r.title)}`,className:"flex-shrink-0 inline-flex items-center gap-2 px-8 py-4 bg-[#0D0D0F] text-white font-semibold rounded-full hover:bg-[#1a1a1c] transition-all",children:["Solliciteer",t.jsx(He,{className:"w-5 h-5"})]})]})]})},i))})]})}),t.jsx("section",{className:"py-20 bg-[#F4F4F4]",children:t.jsx("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 text-center",children:t.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},children:[t.jsx(Ka,{className:"w-16 h-16 text-[#FAB868] mx-auto mb-6"}),t.jsx("h2",{className:"text-4xl font-bold text-[#0D0D0F] mb-6",children:"Zie je jezelf niet in deze vacatures?"}),t.jsx("p",{className:"text-xl text-[#9CA3AF] mb-8",children:"We zijn altijd op zoek naar talent. Stuur ons een open sollicitatie."}),t.jsxs(fe,{to:oe("Contact")+"?subject=open-sollicitatie",className:"inline-flex items-center gap-2 px-10 py-5 bg-[#0D0D0F] text-white font-semibold rounded-full hover:bg-[#1a1a1c] transition-all text-lg",children:["Open sollicitatie",t.jsx(He,{className:"w-5 h-5"})]})]})})}),t.jsx("section",{className:"py-20 bg-white",children:t.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[t.jsx(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-center mb-16",children:t.jsx("h2",{className:"text-5xl font-bold text-[#0D0D0F] mb-6",children:"Waarom 48-7?"})}),t.jsx("div",{className:"grid md:grid-cols-3 gap-8",children:[{title:"Groei & Leren",description:"Werk met de nieuwste AI technologieën en groei snel in je vakgebied",icon:Hi},{title:"Impact maken",description:"Bouw oplossingen die Nederlandse bedrijven écht verder helpen",icon:$s},{title:"Geweldig team",description:"Werk samen met gepassioneerde professionals in een informele sfeer",icon:zn}].map((r,i)=>t.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:i*.1},className:"text-center",children:[t.jsx("div",{className:"w-20 h-20 bg-[#FAB868] rounded-full flex items-center justify-center mx-auto mb-6",children:t.jsx(r.icon,{className:"w-10 h-10 text-[#0D0D0F]"})}),t.jsx("h3",{className:"text-2xl font-bold text-[#0D0D0F] mb-3",children:r.title}),t.jsx("p",{className:"text-lg text-[#9CA3AF]",children:r.description})]},i))})]})})]})}function jte({children:e,currentPageName:n}){var D,q,z,U,Y,H,K;const[r,i]=F.useState(!1),[s,a]=F.useState(!1),[o,c]=F.useState(null),[d,f]=F.useState(!1),[h,m]=F.useState(""),[p,g]=F.useState(!1),[b,j]=F.useState(!1),y=Xa(),{data:x=[]}=ze({queryKey:["site-settings"],queryFn:()=>ue.entities.SiteSettings.list()}),N=((D=x.find(Q=>Q.setting_key==="logo_url"))==null?void 0:D.value)||"https://qtrypzzcjebvfcihiynt.supabase.co/storage/v1/object/public/base44-prod/public/695a3d411fa079edce588856/1fa26eb8b_48-7-AI-professionals-16-1-2026.png",w=(q=x.find(Q=>Q.setting_key==="linkedin_url"))==null?void 0:q.value,k=(z=x.find(Q=>Q.setting_key==="instagram_url"))==null?void 0:z.value,A=(U=x.find(Q=>Q.setting_key==="twitter_url"))==null?void 0:U.value,S=(Y=x.find(Q=>Q.setting_key==="youtube_url"))==null?void 0:Y.value,E=((H=x.find(Q=>Q.setting_key==="show_blog"))==null?void 0:H.value)!=="false",C=((K=x.find(Q=>Q.setting_key==="show_news"))==null?void 0:K.value)!=="false";F.useEffect(()=>{const Q=()=>{i(window.scrollY>20)};return window.addEventListener("scroll",Q),()=>window.removeEventListener("scroll",Q)},[]),F.useEffect(()=>{if(!document.getElementById("hs-script-loader")){const Q=document.createElement("script");Q.type="text/javascript",Q.id="hs-script-loader",Q.async=!0,Q.defer=!0,Q.src="https://js-eu1.hs-scripts.com/147778836.js",document.body.appendChild(Q)}},[]),F.useEffect(()=>{a(!1),c(null),f(!1),g(!1),j(!1),window.scrollTo(0,0)},[y]);const B=Q=>{Q.preventDefault(),h.trim()&&(window.location.href=oe("SearchResults")+`?q=${encodeURIComponent(h)}`)},I={diensten:{label:"Wat we doen",items:[{name:"AI Consultancy",href:oe("AIConsultancy"),desc:"Strategie & innovatie met AI"},{name:"AI Software Development",href:oe("AIDevelopment"),desc:"Custom AI oplossingen"},{name:"Development Support",href:oe("DevelopmentSupport"),desc:"CTO as a Service & meer"}]},training:{items:[{name:"Trainingen en Workshops",href:oe("Training"),desc:"Overzicht van ons aanbod"},{name:"Training Advisor",href:oe("TrainingAdvisor"),desc:"Vind de juiste training"}]}},R=({items:Q,label:O,dropdownKey:T})=>{const[V,L]=Rt.useState(!1),X=Rt.useRef(null),J=()=>{X.current&&clearTimeout(X.current),L(!0),c(T)},W=()=>{X.current=setTimeout(()=>{L(!1),c(null)},150)};return t.jsxs("div",{className:"relative",onMouseEnter:J,onMouseLeave:W,children:[t.jsxs("button",{className:"flex items-center gap-1 text-[#0D0D0F] hover:text-[#FAB868] transition-colors font-medium py-2",children:[O,t.jsx(Vo,{className:`w-4 h-4 transition-transform ${o===T?"rotate-180":""}`})]}),t.jsx(ai,{children:o===T&&t.jsx(Z.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:10},transition:{duration:.2},className:"absolute top-full left-0 mt-1 w-72 bg-white rounded-3xl shadow-xl border border-gray-100 overflow-hidden z-50",onMouseEnter:J,onMouseLeave:W,children:t.jsx("div",{className:"p-2",children:Q.map((G,te)=>t.jsxs(fe,{to:G.href,className:"flex flex-col p-3 rounded-xl hover:bg-[#F4F4F4] transition-colors group",children:[t.jsx("span",{className:"font-medium text-[#0D0D0F] group-hover:text-[#FAB868] transition-colors",children:G.name}),t.jsx("span",{className:"text-sm text-[#292828]",children:G.desc})]},te))})})})]})};return t.jsxs("div",{className:"min-h-screen bg-white",children:[t.jsxs("header",{className:"fixed top-0 left-0 right-0 z-[100] transition-all duration-300 bg-white/90 backdrop-blur-md shadow-sm",children:[t.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:t.jsxs("div",{className:"flex items-center justify-between h-20",children:[t.jsx(fe,{to:oe("Home"),className:"flex items-center",children:t.jsx("img",{src:N,alt:"48-7 AI Professionals",className:"h-8"})}),t.jsxs("nav",{className:"hidden lg:flex items-center gap-2",children:[t.jsx(R,{items:I.diensten.items,label:I.diensten.label,dropdownKey:"diensten"}),t.jsx(R,{items:I.training.items,label:"Training",dropdownKey:"training"}),t.jsx(fe,{to:oe("Cases"),className:"px-4 py-2 text-[#0D0D0F] hover:text-[#FAB868] transition-colors font-medium",children:"Cases"}),E&&t.jsx(fe,{to:oe("Blog"),className:"px-4 py-2 text-[#0D0D0F] hover:text-[#FAB868] transition-colors font-medium",children:"Blog"}),C&&t.jsx(fe,{to:oe("Nieuws"),className:"px-4 py-2 text-[#0D0D0F] hover:text-[#FAB868] transition-colors font-medium",children:"AI Nieuws"}),t.jsx(fe,{to:oe("EuAiActChecker"),className:"px-4 py-2 text-[#0D0D0F] hover:text-[#FAB868] transition-colors font-medium",children:"EU AI Act"}),t.jsx(fe,{to:oe("AIImpactRapport"),className:"px-4 py-2 text-[#0D0D0F] hover:text-[#FAB868] transition-colors font-medium",children:"AI Impact Scan"}),t.jsx(fe,{to:oe("OverOns"),className:"px-4 py-2 text-[#0D0D0F] hover:text-[#FAB868] transition-colors font-medium",children:"Over 48-7"})]}),t.jsxs("div",{className:"hidden lg:flex items-center gap-3",children:[t.jsx("button",{onClick:()=>f(!d),className:"p-3 hover:bg-[#F4F4F4] rounded-full transition-colors","aria-label":"Zoeken",children:t.jsx(zi,{className:"w-5 h-5 text-[#0D0D0F]"})}),t.jsx(fe,{to:oe("Contact"),className:"px-6 py-3 bg-[#FAB868] text-[#0D0D0F] font-semibold rounded-full hover:bg-[#E5A04D] transition-all",children:"Contact"})]}),t.jsx("button",{className:"lg:hidden p-2 rounded-full hover:bg-[#F4F4F4] transition-colors",onClick:()=>a(!s),children:s?t.jsx(rn,{className:"w-6 h-6"}):t.jsx(j3,{className:"w-6 h-6"})})]})}),t.jsx(ai,{children:s&&t.jsx(Z.div,{initial:{opacity:0,height:0},animate:{opacity:1,height:"auto"},exit:{opacity:0,height:0},className:"lg:hidden bg-white border-t border-gray-100 overflow-hidden max-h-[80vh] overflow-y-auto",children:t.jsxs("nav",{className:"px-4 py-6 space-y-2",children:[t.jsxs("div",{children:[t.jsxs("button",{className:"flex items-center justify-between w-full px-4 py-3 text-[#0D0D0F] font-medium hover:bg-[#F4F4F4] rounded-xl transition-colors",onClick:()=>g(!p),children:["Wat we doen",t.jsx(Vo,{className:`w-4 h-4 transition-transform ${p?"rotate-180":""}`})]}),t.jsx(ai,{children:p&&t.jsx(Z.div,{initial:{opacity:0,height:0},animate:{opacity:1,height:"auto"},exit:{opacity:0,height:0},className:"ml-4 mt-2 space-y-1",children:I.diensten.items.map((Q,O)=>t.jsx(fe,{to:Q.href,className:"block px-4 py-2 text-sm text-[#0D0D0F] hover:bg-[#F4F4F4] rounded-lg",onClick:()=>a(!1),children:Q.name},O))})})]}),t.jsxs("div",{children:[t.jsxs("button",{className:"flex items-center justify-between w-full px-4 py-3 text-[#0D0D0F] font-medium hover:bg-[#F4F4F4] rounded-xl transition-colors",onClick:()=>j(!b),children:["Training",t.jsx(Vo,{className:`w-4 h-4 transition-transform ${b?"rotate-180":""}`})]}),t.jsx(ai,{children:b&&t.jsx(Z.div,{initial:{opacity:0,height:0},animate:{opacity:1,height:"auto"},exit:{opacity:0,height:0},className:"ml-4 mt-2 space-y-1",children:I.training.items.map((Q,O)=>t.jsx(fe,{to:Q.href,className:"block px-4 py-2 text-sm text-[#0D0D0F] hover:bg-[#F4F4F4] rounded-lg",onClick:()=>a(!1),children:Q.name},O))})})]}),t.jsx(fe,{to:oe("Cases"),className:"block px-4 py-3 text-[#0D0D0F] font-medium hover:bg-[#F4F4F4] rounded-xl transition-colors",onClick:()=>a(!1),children:"Cases"}),E&&t.jsx(fe,{to:oe("Blog"),className:"block px-4 py-3 text-[#0D0D0F] font-medium hover:bg-[#F4F4F4] rounded-xl transition-colors",onClick:()=>a(!1),children:"Blog"}),C&&t.jsx(fe,{to:oe("Nieuws"),className:"block px-4 py-3 text-[#0D0D0F] font-medium hover:bg-[#F4F4F4] rounded-xl transition-colors",onClick:()=>a(!1),children:"AI Nieuws"}),t.jsx(fe,{to:oe("EuAiActChecker"),className:"block px-4 py-3 text-[#0D0D0F] font-medium hover:bg-[#F4F4F4] rounded-xl transition-colors",onClick:()=>a(!1),children:"EU AI Act"}),t.jsx(fe,{to:oe("AIImpactRapport"),className:"block px-4 py-3 text-[#0D0D0F] font-medium hover:bg-[#F4F4F4] rounded-xl transition-colors",onClick:()=>a(!1),children:"AI Impact Scan"}),t.jsx(fe,{to:oe("OverOns"),className:"block px-4 py-3 text-[#0D0D0F] font-medium hover:bg-[#F4F4F4] rounded-xl transition-colors",onClick:()=>a(!1),children:"Over 48-7"}),t.jsx(fe,{to:oe("Contact"),className:"block px-4 py-3 text-[#0D0D0F] font-medium hover:bg-[#F4F4F4] rounded-xl transition-colors",onClick:()=>a(!1),children:"Contact"})]})})}),t.jsx(ai,{children:d&&t.jsx(Z.div,{initial:{opacity:0,height:0},animate:{opacity:1,height:"auto"},exit:{opacity:0,height:0},className:"border-t border-gray-100 bg-white",children:t.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-4",children:t.jsxs("form",{onSubmit:B,className:"flex items-center gap-2",children:[t.jsxs("div",{className:"flex-1 relative",children:[t.jsx(zi,{className:"absolute left-4 top-1/2 -translate-y-1/2 w-5 h-5 text-gray-400"}),t.jsx("input",{type:"text",value:h,onChange:Q=>m(Q.target.value),placeholder:"Zoek naar cases, trainingen, blog artikelen...",className:"w-full pl-12 pr-4 py-3 border-2 border-gray-200 rounded-full focus:border-[#FAB868] focus:outline-none text-[#0D0D0F]",autoFocus:!0})]}),t.jsx("button",{type:"submit",className:"px-6 py-3 bg-[#FAB868] text-[#0D0D0F] font-semibold rounded-full hover:bg-[#E5A04D] transition-all",children:"Zoeken"})]})})})})]}),t.jsx("main",{children:e}),t.jsxs("footer",{className:"bg-[#0D0D0F] text-white",children:[C&&t.jsx("div",{className:"border-b border-gray-800",children:t.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-16",children:t.jsxs("div",{className:"flex flex-col items-center text-center gap-8",children:[t.jsxs("div",{children:[t.jsx("h3",{className:"text-2xl font-bold mb-2",children:"Daily AI Nieuws in 48 seconden"}),t.jsx("p",{className:"text-gray-400",children:"Elke dag de belangrijkste AI ontwikkelingen, compact samengevat. Perfect voor ondernemers die up-to-date willen blijven."})]}),t.jsxs("div",{className:"flex flex-col sm:flex-row items-center gap-4",children:[t.jsxs(fe,{to:oe("Nieuws"),className:"inline-flex items-center gap-2 px-6 py-3 bg-[#FAB868] text-[#0D0D0F] font-bold rounded-xl hover:bg-[#E5A04D] transition-all",children:["Bekijk AI nieuws",t.jsx(He,{className:"w-5 h-5"})]}),t.jsxs("div",{className:"flex items-center gap-3",children:[t.jsx("span",{className:"text-gray-400 text-sm",children:"Bekijk AI nieuws op onze socials:"}),t.jsxs("div",{className:"flex gap-2",children:[w&&t.jsx("a",{href:w,target:"_blank",rel:"noopener noreferrer",className:"w-10 h-10 bg-[#0077B5] rounded-lg flex items-center justify-center hover:opacity-80 transition-opacity",children:t.jsx(Hs,{className:"w-5 h-5 text-white"})}),k&&t.jsx("a",{href:k,target:"_blank",rel:"noopener noreferrer",className:"w-10 h-10 bg-gradient-to-r from-[#E1306C] to-[#FD1D1D] rounded-lg flex items-center justify-center hover:opacity-80 transition-opacity",children:t.jsx(Yc,{className:"w-5 h-5 text-white"})}),S&&t.jsx("a",{href:S,target:"_blank",rel:"noopener noreferrer",className:"w-10 h-10 bg-[#FF0000] rounded-lg flex items-center justify-center hover:opacity-80 transition-opacity",children:t.jsx(Jc,{className:"w-5 h-5 text-white"})})]})]})]})]})})}),t.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-16",children:[t.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-12",children:[t.jsxs("div",{children:[t.jsx("h4",{className:"font-semibold text-lg mb-6",children:"Diensten"}),t.jsxs("ul",{className:"space-y-3",children:[t.jsx("li",{children:t.jsx(fe,{to:oe("AIConsultancy"),className:"text-gray-400 hover:text-white transition-colors",children:"AI Consultancy"})}),t.jsx("li",{children:t.jsx(fe,{to:oe("AIDevelopment"),className:"text-gray-400 hover:text-white transition-colors",children:"Software Development"})}),t.jsx("li",{children:t.jsx(fe,{to:oe("DevelopmentSupport"),className:"text-gray-400 hover:text-white transition-colors",children:"Development Support"})}),t.jsx("li",{children:t.jsx(fe,{to:oe("Training"),className:"text-gray-400 hover:text-white transition-colors",children:"AI Training"})})]})]}),t.jsxs("div",{children:[t.jsx("h4",{className:"font-semibold text-lg mb-6",children:"Training"}),t.jsxs("ul",{className:"space-y-3",children:[t.jsx("li",{children:t.jsx(fe,{to:oe("Training"),className:"text-gray-400 hover:text-white transition-colors",children:"Alle Trainingen"})}),t.jsx("li",{children:t.jsx(fe,{to:oe("TrainingAdvisor"),className:"text-gray-400 hover:text-white transition-colors",children:"Training Advisor"})}),t.jsx("li",{children:t.jsx(fe,{to:oe("Training")+"?category=workshops",className:"text-gray-400 hover:text-white transition-colors",children:"Workshops"})})]})]}),t.jsxs("div",{children:[t.jsx("h4",{className:"font-semibold text-lg mb-6",children:"Resources"}),t.jsxs("ul",{className:"space-y-3",children:[C&&t.jsx("li",{children:t.jsx(fe,{to:oe("Nieuws"),className:"text-gray-400 hover:text-white transition-colors",children:"AI Nieuws"})}),E&&t.jsx("li",{children:t.jsx(fe,{to:oe("Blog"),className:"text-gray-400 hover:text-white transition-colors",children:"Blog"})}),t.jsx("li",{children:t.jsx(fe,{to:oe("AIQuiz"),className:"text-gray-400 hover:text-white transition-colors",children:"AI Quiz"})}),t.jsx("li",{children:t.jsx(fe,{to:oe("AIImpactRapport"),className:"text-gray-400 hover:text-white transition-colors",children:"AI Impact Rapport"})}),t.jsx("li",{children:t.jsx(fe,{to:oe("Cases"),className:"text-gray-400 hover:text-white transition-colors",children:"Case Studies"})}),t.jsx("li",{children:t.jsx(fe,{to:oe("Vacatures"),className:"text-gray-400 hover:text-white transition-colors",children:"Vacatures"})}),t.jsx("li",{children:t.jsx(fe,{to:oe("OverOns"),className:"text-gray-400 hover:text-white transition-colors",children:"Over Ons"})})]})]}),t.jsxs("div",{children:[t.jsx("h4",{className:"font-semibold text-lg mb-6",children:"Contact"}),t.jsxs("ul",{className:"space-y-3",children:[t.jsx("li",{children:t.jsx(fe,{to:oe("Contact"),className:"text-gray-400 hover:text-white transition-colors",children:"Neem contact op"})}),t.jsx("li",{children:t.jsx(fe,{to:oe("ContentEditor"),className:"text-gray-400 hover:text-white transition-colors",children:"48-7 - Nederland"})}),t.jsxs("li",{className:"flex items-center gap-3 text-gray-400",children:[t.jsx(Hr,{className:"w-5 h-5 flex-shrink-0"}),t.jsx("a",{href:"mailto:info@48-7.nl",className:"hover:text-white transition-colors",children:"hallo@48-7.nl"})]}),t.jsxs("li",{className:"flex items-center gap-3 text-gray-400",children:[t.jsx(X0,{className:"w-5 h-5 flex-shrink-0"}),t.jsx("a",{href:"tel:+31850601487",className:"hover:text-white transition-colors",children:"+31 085-06 01 487"})]})]}),t.jsxs("div",{className:"flex items-center gap-4 mt-6",children:[w&&t.jsx("a",{href:w,target:"_blank",rel:"noopener noreferrer",className:"w-10 h-10 bg-gray-800 rounded-xl flex items-center justify-center hover:bg-blue-600 transition-colors",children:t.jsx(Hs,{className:"w-5 h-5"})}),A&&t.jsx("a",{href:A,target:"_blank",rel:"noopener noreferrer",className:"w-10 h-10 bg-gray-800 rounded-xl flex items-center justify-center hover:bg-blue-600 transition-colors",children:t.jsx(EA,{className:"w-5 h-5"})}),S&&t.jsx("a",{href:S,target:"_blank",rel:"noopener noreferrer",className:"w-10 h-10 bg-gray-800 rounded-xl flex items-center justify-center hover:bg-blue-600 transition-colors",children:t.jsx(Jc,{className:"w-5 h-5"})}),k&&t.jsx("a",{href:k,target:"_blank",rel:"noopener noreferrer",className:"w-10 h-10 bg-gray-800 rounded-xl flex items-center justify-center hover:bg-blue-600 transition-colors",children:t.jsx(Yc,{className:"w-5 h-5"})})]})]})]}),t.jsxs("div",{className:"mt-16 pt-8 border-t border-gray-800 flex flex-col sm:flex-row items-center justify-between gap-4",children:[t.jsxs("div",{className:"flex items-center gap-3",children:[t.jsx("img",{src:N,alt:"48-7 AI Professionals",className:"h-8"}),t.jsx("span",{className:"text-gray-400",children:"© 2026 48-7. Alle rechten voorbehouden."})]}),t.jsxs("div",{className:"flex items-center gap-6 text-gray-400 text-sm",children:[t.jsx("a",{href:"#",className:"hover:text-white transition-colors",children:"Privacy Policy"}),t.jsx("a",{href:"#",className:"hover:text-white transition-colors",children:"Algemene Voorwaarden"})]})]})]})]})]})}const wte={AIConsultancy:pz,AIDevelopment:gz,AIImpactRapport:kz,AIQuiz:Az,AIQuizDocs:Cz,AdminAIQuizSubmissions:LV,AdminBlog:gK,AdminCases:xK,AdminDashboard:tG,AdminDiscoveryForms:TG,AdminEmailTemplates:PG,AdminEuAiActSubmissions:OG,AdminHandleiding:DG,AdminHome:ZG,AdminImpactScans:eQ,AdminNewsletterSubscribers:tQ,AdminNieuws:nQ,AdminOplossingen:rQ,AdminPageBuilder:iQ,AdminPageEditor:sQ,AdminPrompts:aQ,AdminReviews:oQ,AdminSEO:lQ,AdminSettings:mQ,AdminTeam:pQ,AdminTestScans:gQ,AdminTrainingen:xQ,AdminVacatures:yQ,Blog:bQ,BlogDetail:qZ,Cases:zZ,Contact:VZ,ContentEditor:$Z,ContentManagement:HZ,DevelopmentSupport:QZ,Diensten:YZ,DiscoveryForm:tee,EuAiActChecker:nee,EuAiActCheckerDocs:ree,Home:gee,ImpactRapport:xee,ImpactReportDocs:yee,KoffieRoulette:jee,NewsDetail:Nee,Nieuws:kee,OplossingDetail:_ee,Oplossingen:See,OverOns:Aee,SearchResults:fte,Training:gte,TrainingAdvisor:xte,TrainingDetail:yte,VacatureDetail:vte,Vacatures:bte},UP={mainPage:"Home",Pages:wte,Layout:jte};function Nte(){const e=Xa(),{isAuthenticated:n}=n4(),{Pages:r,mainPage:i}=UP,s=i;return F.useEffect(()=>{const a=e.pathname;let o;if(a==="/"||a==="")o=s;else{const c=a.replace(/^\//,"").split("/")[0];o=Object.keys(r).find(h=>h.toLowerCase()===c.toLowerCase())||null}n&&o&&ue.appLogs.logUserInApp(o).catch(()=>{})},[e,n,r,s]),null}function kte({}){var s;const n=Xa().pathname.substring(1),{data:r,isFetched:i}=ze({queryKey:["user"],queryFn:async()=>{try{return{user:await ue.auth.me(),isAuthenticated:!0}}catch{return{user:null,isAuthenticated:!1}}}});return t.jsx("div",{className:"min-h-screen flex items-center justify-center p-6 bg-slate-50",children:t.jsx("div",{className:"max-w-md w-full",children:t.jsxs("div",{className:"text-center space-y-6",children:[t.jsxs("div",{className:"space-y-2",children:[t.jsx("h1",{className:"text-7xl font-light text-slate-300",children:"404"}),t.jsx("div",{className:"h-0.5 w-16 bg-slate-200 mx-auto"})]}),t.jsxs("div",{className:"space-y-3",children:[t.jsx("h2",{className:"text-2xl font-medium text-slate-800",children:"Page Not Found"}),t.jsxs("p",{className:"text-slate-600 leading-relaxed",children:["The page ",t.jsxs("span",{className:"font-medium text-slate-700",children:['"',n,'"']})," could not be found in this application."]})]}),i&&r.isAuthenticated&&((s=r.user)==null?void 0:s.role)==="admin"&&t.jsx("div",{className:"mt-8 p-4 bg-slate-100 rounded-lg border border-slate-200",children:t.jsxs("div",{className:"flex items-start space-x-3",children:[t.jsx("div",{className:"flex-shrink-0 w-5 h-5 rounded-full bg-orange-100 flex items-center justify-center mt-0.5",children:t.jsx("div",{className:"w-2 h-2 rounded-full bg-orange-400"})}),t.jsxs("div",{className:"text-left space-y-1",children:[t.jsx("p",{className:"text-sm font-medium text-slate-700",children:"Admin Note"}),t.jsx("p",{className:"text-sm text-slate-600 leading-relaxed",children:"This could mean that the AI hasn't implemented this page yet. Ask it to implement it in the chat."})]})]})}),t.jsx("div",{className:"pt-6",children:t.jsxs("button",{onClick:()=>window.location.href="/",className:"inline-flex items-center px-4 py-2 text-sm font-medium text-slate-700 bg-white border border-slate-200 rounded-lg hover:bg-slate-50 hover:border-slate-300 transition-colors duration-200 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-slate-500",children:[t.jsx("svg",{className:"w-4 h-4 mr-2",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:t.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M3 12l2-2m0 0l7-7 7 7M5 10v10a1 1 0 001 1h3m10-11l2 2m-2-2v10a1 1 0 01-1 1h-3m-6 0a1 1 0 001-1v-4a1 1 0 011-1h2a1 1 0 011 1v4a1 1 0 001 1m-6 0h6"})}),"Go Home"]})})]})})})}const _te=()=>t.jsx("div",{className:"flex flex-col items-center justify-center min-h-screen bg-gradient-to-b from-white to-slate-50",children:t.jsx("div",{className:"max-w-md w-full p-8 bg-white rounded-lg shadow-lg border border-slate-100",children:t.jsxs("div",{className:"text-center",children:[t.jsx("div",{className:"inline-flex items-center justify-center w-16 h-16 mb-6 rounded-full bg-orange-100",children:t.jsx("svg",{className:"w-8 h-8 text-orange-600",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:t.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"})})}),t.jsx("h1",{className:"text-3xl font-bold text-slate-900 mb-4",children:"Access Restricted"}),t.jsx("p",{className:"text-slate-600 mb-8",children:"You are not registered to use this application. Please contact the app administrator to request access."}),t.jsxs("div",{className:"p-4 bg-slate-50 rounded-md text-sm text-slate-600",children:[t.jsx("p",{children:"If you believe this is an error, you can:"}),t.jsxs("ul",{className:"list-disc list-inside mt-2 space-y-1",children:[t.jsx("li",{children:"Verify you are logged in with the correct account"}),t.jsx("li",{children:"Contact the app administrator for access"}),t.jsx("li",{children:"Try logging out and back in again"})]})]})]})})}),{Pages:$P,Layout:rA,mainPage:Ste}=UP,HP=Ste,Ate=$P[HP],iA=({children:e,currentPageName:n})=>rA?t.jsx(rA,{currentPageName:n,children:e}):t.jsx(t.Fragment,{children:e}),Cte=()=>{const{isLoadingAuth:e,isLoadingPublicSettings:n,authError:r,navigateToLogin:i}=n4();if(n||e)return t.jsx("div",{className:"fixed inset-0 flex items-center justify-center",children:t.jsx("div",{className:"w-8 h-8 border-4 border-slate-200 border-t-slate-800 rounded-full animate-spin"})});if(r){if(r.type==="user_not_registered")return t.jsx(_te,{});if(r.type==="auth_required")return i(),null}return t.jsxs(NF,{children:[t.jsx(vh,{path:"/",element:t.jsx(iA,{currentPageName:HP,children:t.jsx(Ate,{})})}),Object.entries($P).map(([s,a])=>t.jsx(vh,{path:`/${s}`,element:t.jsx(iA,{currentPageName:s,children:t.jsx(a,{})})},s)),t.jsx(vh,{path:"*",element:t.jsx(kte,{})})]})};function Ete(){return t.jsx(zL,{children:t.jsxs(vR,{client:PR,children:[t.jsxs(TF,{children:[t.jsx(Nte,{}),t.jsx(Cte,{})]}),t.jsx(QI,{})]})})}YD.createRoot(document.getElementById("root")).render(t.jsx(Ete,{}))});export default Tte();