var m1=t=>{throw TypeError(t)};var KP=(t,n)=>()=>(n||t((n={exports:{}}).exports,n),n.exports);var Dp=(t,n,r)=>n.has(t)||m1("Cannot "+r);var re=(t,n,r)=>(Dp(t,n,"read from private field"),r?r.call(t):n.get(t)),Ke=(t,n,r)=>n.has(t)?m1("Cannot add the same private member more than once"):n instanceof WeakSet?n.add(t):n.set(t,r),Ie=(t,n,r,i)=>(Dp(t,n,"write to private field"),i?i.call(t,r):n.set(t,r),r),lt=(t,n,r)=>(Dp(t,n,"access private method"),r);var Xd=(t,n,r,i)=>({set _(s){Ie(t,n,s,r)},get _(){return re(t,n,i)}});var ine=KP((Ane,Uu)=>{function GP(t,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 t)){const a=Object.getOwnPropertyDescriptor(i,s);a&&Object.defineProperty(t,s,a.get?a:{enumerable:!0,get:()=>i[s]})}}}return Object.freeze(Object.defineProperty(t,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 Jd=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function _i(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Ip={exports:{}},gc={},Rp={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 p1;function QP(){if(p1)return dt;p1=1;var t=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"),h=Symbol.for("react.memo"),f=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 v(T,V,L){this.props=T,this.context=V,this.refs=j,this.updater=L||g}v.prototype.isReactComponent={},v.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")},v.prototype.forceUpdate=function(T){this.updater.enqueueForceUpdate(this,T,"forceUpdate")};function x(){}x.prototype=v.prototype;function k(T,V,L){this.props=T,this.context=V,this.refs=j,this.updater=L||g}var w=k.prototype=new x;w.constructor=k,b(w,v.prototype),w.isPureReactComponent=!0;var N=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 ee=arguments.length-2;if(ee===1)J.children=L;else if(1<ee){for(var ne=Array(ee),le=0;le<ee;le++)ne[le]=arguments[le+2];J.children=ne}if(T&&T.defaultProps)for(X in ee=T.defaultProps,ee)J[X]===void 0&&(J[X]=ee[X]);return{$$typeof:t,type:T,key:W,ref:G,props:J,_owner:S.current}}function B(T,V){return{$$typeof:t,type:T.type,key:V,ref:T.ref,props:T.props,_owner:T._owner}}function F(T){return typeof T=="object"&&T!==null&&T.$$typeof===t}function D(T){var V={"=":"=0",":":"=2"};return"$"+T.replace(/[=:]/g,function(L){return V[L]})}var I=/\/+/g;function z(T,V){return typeof T=="object"&&T!==null&&T.key!=null?D(""+T.key):V.toString(36)}function q(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 t:case n:G=!0}}if(G)return G=T,J=J(G),T=X===""?"."+z(G,0):X,N(J)?(L="",T!=null&&(L=T.replace(I,"$&/")+"/"),q(J,V,L,"",function(le){return le})):J!=null&&(F(J)&&(J=B(J,L+(!J.key||G&&G.key===J.key?"":(""+J.key).replace(I,"$&/")+"/")+T)),V.push(J)),1;if(G=0,X=X===""?".":X+":",N(T))for(var ee=0;ee<T.length;ee++){W=T[ee];var ne=X+z(W,ee);G+=q(W,V,L,ne,J)}else if(ne=p(T),typeof ne=="function")for(T=ne.call(T),ee=0;!(W=T.next()).done;)W=W.value,ne=X+z(W,ee++),G+=q(W,V,L,ne,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 q(T,X,"","",function(W){return V.call(L,W,J++)}),X}function Q(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},Y={ReactCurrentDispatcher:H,ReactCurrentBatchConfig:K,ReactCurrentOwner:S};function P(){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(!F(T))throw Error("React.Children.only expected to receive a single React element child.");return T}},dt.Component=v,dt.Fragment=r,dt.Profiler=s,dt.PureComponent=k,dt.StrictMode=i,dt.Suspense=d,dt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Y,dt.act=P,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 ee=T.type.defaultProps;for(ne in V)A.call(V,ne)&&!E.hasOwnProperty(ne)&&(X[ne]=V[ne]===void 0&&ee!==void 0?ee[ne]:V[ne])}var ne=arguments.length-2;if(ne===1)X.children=L;else if(1<ne){ee=Array(ne);for(var le=0;le<ne;le++)ee[le]=arguments[le+2];X.children=ee}return{$$typeof:t,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=F,dt.lazy=function(T){return{$$typeof:f,_payload:{_status:-1,_result:T},_init:Q}},dt.memo=function(T,V){return{$$typeof:h,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=P,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 g1;function wu(){return g1||(g1=1,Rp.exports=QP()),Rp.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 x1;function YP(){if(x1)return gc;x1=1;var t=wu(),n=Symbol.for("react.element"),r=Symbol.for("react.fragment"),i=Object.prototype.hasOwnProperty,s=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function o(c,d,h){var f,m={},p=null,g=null;h!==void 0&&(p=""+h),d.key!==void 0&&(p=""+d.key),d.ref!==void 0&&(g=d.ref);for(f in d)i.call(d,f)&&!a.hasOwnProperty(f)&&(m[f]=d[f]);if(c&&c.defaultProps)for(f in d=c.defaultProps,d)m[f]===void 0&&(m[f]=d[f]);return{$$typeof:n,type:c,key:p,ref:g,props:m,_owner:s.current}}return gc.Fragment=r,gc.jsx=o,gc.jsxs=o,gc}var v1;function XP(){return v1||(v1=1,Ip.exports=YP()),Ip.exports}var e=XP(),R=wu();const Ot=_i(R),J0=GP({__proto__:null,default:Ot},[R]);var Zd={},Fp={exports:{}},Qn={},Mp={exports:{}},Lp={};/**
 * @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 y1;function JP(){return y1||(y1=1,(function(t){function n(K,Y){var P=K.length;K.push(Y);e:for(;0<P;){var T=P-1>>>1,V=K[T];if(0<s(V,Y))K[T]=Y,K[P]=V,P=T;else break e}}function r(K){return K.length===0?null:K[0]}function i(K){if(K.length===0)return null;var Y=K[0],P=K.pop();if(P!==Y){K[0]=P;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,P))W<V&&0>s(G,J)?(K[T]=G,K[W]=P,T=W):(K[T]=J,K[X]=P,T=X);else if(W<V&&0>s(G,P))K[T]=G,K[W]=P,T=W;else break e}}return Y}function s(K,Y){var P=K.sortIndex-Y.sortIndex;return P!==0?P:K.id-Y.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;t.unstable_now=function(){return a.now()}}else{var o=Date,c=o.now();t.unstable_now=function(){return o.now()-c}}var d=[],h=[],f=1,m=null,p=3,g=!1,b=!1,j=!1,v=typeof setTimeout=="function"?setTimeout:null,x=typeof clearTimeout=="function"?clearTimeout:null,k=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 Y=r(h);Y!==null;){if(Y.callback===null)i(h);else if(Y.startTime<=K)i(h),Y.sortIndex=Y.expirationTime,n(d,Y);else break;Y=r(h)}}function N(K){if(j=!1,w(K),!b)if(r(d)!==null)b=!0,Q(A);else{var Y=r(h);Y!==null&&H(N,Y.startTime-K)}}function A(K,Y){b=!1,j&&(j=!1,x(C),C=-1),g=!0;var P=p;try{for(w(Y),m=r(d);m!==null&&(!(m.expirationTime>Y)||K&&!D());){var T=m.callback;if(typeof T=="function"){m.callback=null,p=m.priorityLevel;var V=T(m.expirationTime<=Y);Y=t.unstable_now(),typeof V=="function"?m.callback=V:m===r(d)&&i(d),w(Y)}else i(d);m=r(d)}if(m!==null)var L=!0;else{var X=r(h);X!==null&&H(N,X.startTime-Y),L=!1}return L}finally{m=null,p=P,g=!1}}var S=!1,E=null,C=-1,B=5,F=-1;function D(){return!(t.unstable_now()-F<B)}function I(){if(E!==null){var K=t.unstable_now();F=K;var Y=!0;try{Y=E(!0,K)}finally{Y?z():(S=!1,E=null)}}else S=!1}var z;if(typeof k=="function")z=function(){k(I)};else if(typeof MessageChannel<"u"){var q=new MessageChannel,U=q.port2;q.port1.onmessage=I,z=function(){U.postMessage(null)}}else z=function(){v(I,0)};function Q(K){E=K,S||(S=!0,z())}function H(K,Y){C=v(function(){K(t.unstable_now())},Y)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(K){K.callback=null},t.unstable_continueExecution=function(){b||g||(b=!0,Q(A))},t.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},t.unstable_getCurrentPriorityLevel=function(){return p},t.unstable_getFirstCallbackNode=function(){return r(d)},t.unstable_next=function(K){switch(p){case 1:case 2:case 3:var Y=3;break;default:Y=p}var P=p;p=Y;try{return K()}finally{p=P}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(K,Y){switch(K){case 1:case 2:case 3:case 4:case 5:break;default:K=3}var P=p;p=K;try{return Y()}finally{p=P}},t.unstable_scheduleCallback=function(K,Y,P){var T=t.unstable_now();switch(typeof P=="object"&&P!==null?(P=P.delay,P=typeof P=="number"&&0<P?T+P:T):P=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=P+V,K={id:f++,callback:Y,priorityLevel:K,startTime:P,expirationTime:V,sortIndex:-1},P>T?(K.sortIndex=P,n(h,K),r(d)===null&&K===r(h)&&(j?(x(C),C=-1):j=!0,H(N,P-T))):(K.sortIndex=V,n(d,K),b||g||(b=!0,Q(A))),K},t.unstable_shouldYield=D,t.unstable_wrapCallback=function(K){var Y=p;return function(){var P=p;p=Y;try{return K.apply(this,arguments)}finally{p=P}}}})(Lp)),Lp}var b1;function ZP(){return b1||(b1=1,Mp.exports=JP()),Mp.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 j1;function e3(){if(j1)return Qn;j1=1;var t=wu(),n=ZP();function r(l){for(var u="https://reactjs.org/docs/error-decoder.html?invariant="+l,y=1;y<arguments.length;y++)u+="&args[]="+encodeURIComponent(arguments[y]);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,h=/^[: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]*$/,f={},m={};function p(l){return d.call(m,l)?!0:d.call(f,l)?!1:h.test(l)?m[l]=!0:(f[l]=!0,!1)}function g(l,u,y,_){if(y!==null&&y.type===0)return!1;switch(typeof u){case"function":case"symbol":return!0;case"boolean":return _?!1:y!==null?!y.acceptsBooleans:(l=l.toLowerCase().slice(0,5),l!=="data-"&&l!=="aria-");default:return!1}}function b(l,u,y,_){if(u===null||typeof u>"u"||g(l,u,y,_))return!0;if(_)return!1;if(y!==null)switch(y.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,y,_,O,M,$){this.acceptsBooleans=u===2||u===3||u===4,this.attributeName=_,this.attributeNamespace=O,this.mustUseProperty=y,this.propertyName=l,this.type=u,this.sanitizeURL=M,this.removeEmptyString=$}var v={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(l){v[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];v[u]=new j(u,1,!1,l[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(l){v[l]=new j(l,2,!1,l.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(l){v[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){v[l]=new j(l,3,!1,l.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(l){v[l]=new j(l,3,!0,l,null,!1,!1)}),["capture","download"].forEach(function(l){v[l]=new j(l,4,!1,l,null,!1,!1)}),["cols","rows","size","span"].forEach(function(l){v[l]=new j(l,6,!1,l,null,!1,!1)}),["rowSpan","start"].forEach(function(l){v[l]=new j(l,5,!1,l.toLowerCase(),null,!1,!1)});var x=/[\-:]([a-z])/g;function k(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,k);v[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,k);v[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,k);v[u]=new j(u,1,!1,l,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(l){v[l]=new j(l,1,!1,l.toLowerCase(),null,!1,!1)}),v.xlinkHref=new j("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(l){v[l]=new j(l,1,!1,l.toLowerCase(),null,!0,!0)});function w(l,u,y,_){var O=v.hasOwnProperty(u)?v[u]:null;(O!==null?O.type!==0:_||!(2<u.length)||u[0]!=="o"&&u[0]!=="O"||u[1]!=="n"&&u[1]!=="N")&&(b(u,y,O,_)&&(y=null),_||O===null?p(u)&&(y===null?l.removeAttribute(u):l.setAttribute(u,""+y)):O.mustUseProperty?l[O.propertyName]=y===null?O.type===3?!1:"":y:(u=O.attributeName,_=O.attributeNamespace,y===null?l.removeAttribute(u):(O=O.type,y=O===3||O===4&&y===!0?"":""+y,_?l.setAttributeNS(_,u,y):l.setAttribute(u,y))))}var N=t.__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"),F=Symbol.for("react.provider"),D=Symbol.for("react.context"),I=Symbol.for("react.forward_ref"),z=Symbol.for("react.suspense"),q=Symbol.for("react.suspense_list"),U=Symbol.for("react.memo"),Q=Symbol.for("react.lazy"),H=Symbol.for("react.offscreen"),K=Symbol.iterator;function Y(l){return l===null||typeof l!="object"?null:(l=K&&l[K]||l["@@iterator"],typeof l=="function"?l:null)}var P=Object.assign,T;function V(l){if(T===void 0)try{throw Error()}catch(y){var u=y.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 y=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(fe){var _=fe}Reflect.construct(l,[],u)}else{try{u.call()}catch(fe){_=fe}l.call(u.prototype)}else{try{throw Error()}catch(fe){_=fe}l()}}catch(fe){if(fe&&_&&typeof fe.stack=="string"){for(var O=fe.stack.split(`
`),M=_.stack.split(`
`),$=O.length-1,te=M.length-1;1<=$&&0<=te&&O[$]!==M[te];)te--;for(;1<=$&&0<=te;$--,te--)if(O[$]!==M[te]){if($!==1||te!==1)do if($--,te--,0>te||O[$]!==M[te]){var ie=`
`+O[$].replace(" at new "," at ");return l.displayName&&ie.includes("<anonymous>")&&(ie=ie.replace("<anonymous>",l.displayName)),ie}while(1<=$&&0<=te);break}}}finally{L=!1,Error.prepareStackTrace=y}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 z:return"Suspense";case q:return"SuspenseList"}if(typeof l=="object")switch(l.$$typeof){case D:return(l.displayName||"Context")+".Consumer";case F:return(l._context.displayName||"Context")+".Provider";case I: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 Q: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 ee(l){switch(typeof l){case"boolean":case"number":case"string":case"undefined":return l;case"object":return l;default:return""}}function ne(l){var u=l.type;return(l=l.nodeName)&&l.toLowerCase()==="input"&&(u==="checkbox"||u==="radio")}function le(l){var u=ne(l)?"checked":"value",y=Object.getOwnPropertyDescriptor(l.constructor.prototype,u),_=""+l[u];if(!l.hasOwnProperty(u)&&typeof y<"u"&&typeof y.get=="function"&&typeof y.set=="function"){var O=y.get,M=y.set;return Object.defineProperty(l,u,{configurable:!0,get:function(){return O.call(this)},set:function($){_=""+$,M.call(this,$)}}),Object.defineProperty(l,u,{enumerable:y.enumerable}),{getValue:function(){return _},setValue:function($){_=""+$},stopTracking:function(){l._valueTracker=null,delete l[u]}}}}function ve(l){l._valueTracker||(l._valueTracker=le(l))}function be(l){if(!l)return!1;var u=l._valueTracker;if(!u)return!0;var y=u.getValue(),_="";return l&&(_=ne(l)?l.checked?"true":"false":l.value),l=_,l!==y?(u.setValue(l),!0):!1}function Oe(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 y=u.checked;return P({},u,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:y??l._wrapperState.initialChecked})}function We(l,u){var y=u.defaultValue==null?"":u.defaultValue,_=u.checked!=null?u.checked:u.defaultChecked;y=ee(u.value!=null?u.value:y),l._wrapperState={initialChecked:_,initialValue:y,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 y=ee(u.value),_=u.type;if(y!=null)_==="number"?(y===0&&l.value===""||l.value!=y)&&(l.value=""+y):l.value!==""+y&&(l.value=""+y);else if(_==="submit"||_==="reset"){l.removeAttribute("value");return}u.hasOwnProperty("value")?ye(l,u.type,y):u.hasOwnProperty("defaultValue")&&ye(l,u.type,ee(u.defaultValue)),u.checked==null&&u.defaultChecked!=null&&(l.defaultChecked=!!u.defaultChecked)}function ge(l,u,y){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,y||u===l.value||(l.value=u),l.defaultValue=u}y=l.name,y!==""&&(l.name=""),l.defaultChecked=!!l._wrapperState.initialChecked,y!==""&&(l.name=y)}function ye(l,u,y){(u!=="number"||Oe(l.ownerDocument)!==l)&&(y==null?l.defaultValue=""+l._wrapperState.initialValue:l.defaultValue!==""+y&&(l.defaultValue=""+y))}var Se=Array.isArray;function Pe(l,u,y,_){if(l=l.options,u){u={};for(var O=0;O<y.length;O++)u["$"+y[O]]=!0;for(y=0;y<l.length;y++)O=u.hasOwnProperty("$"+l[y].value),l[y].selected!==O&&(l[y].selected=O),O&&_&&(l[y].defaultSelected=!0)}else{for(y=""+ee(y),u=null,O=0;O<l.length;O++){if(l[O].value===y){l[O].selected=!0,_&&(l[O].defaultSelected=!0);return}u!==null||l[O].disabled||(u=l[O])}u!==null&&(u.selected=!0)}}function je(l,u){if(u.dangerouslySetInnerHTML!=null)throw Error(r(91));return P({},u,{value:void 0,defaultValue:void 0,children:""+l._wrapperState.initialValue})}function tt(l,u){var y=u.value;if(y==null){if(y=u.children,u=u.defaultValue,y!=null){if(u!=null)throw Error(r(92));if(Se(y)){if(1<y.length)throw Error(r(93));y=y[0]}u=y}u==null&&(u=""),y=u}l._wrapperState={initialValue:ee(y)}}function et(l,u){var y=ee(u.value),_=ee(u.defaultValue);y!=null&&(y=""+y,y!==l.value&&(l.value=y),u.defaultValue==null&&l.defaultValue!==y&&(l.defaultValue=y)),_!=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,y,_,O){MSApp.execUnsafeLocalFunction(function(){return l(u,y,_,O)})}: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 He(l,u){if(u){var y=l.firstChild;if(y&&y===l.lastChild&&y.nodeType===3){y.nodeValue=u;return}}l.textContent=u}var Nt={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},Tr=["Webkit","ms","Moz","O"];Object.keys(Nt).forEach(function(l){Tr.forEach(function(u){u=u+l.charAt(0).toUpperCase()+l.substring(1),Nt[u]=Nt[l]})});function Un(l,u,y){return u==null||typeof u=="boolean"||u===""?"":y||typeof u!="number"||u===0||Nt.hasOwnProperty(l)&&Nt[l]?(""+u).trim():u+"px"}function rs(l,u){l=l.style;for(var y in u)if(u.hasOwnProperty(y)){var _=y.indexOf("--")===0,O=Un(y,u[y],_);y==="float"&&(y="cssFloat"),_?l.setProperty(y,O):l[y]=O}}var ia=P({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 bn(l,u){if(u){if(ia[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 Gf(l){return l=l.target||l.srcElement||window,l.correspondingUseElement&&(l=l.correspondingUseElement),l.nodeType===3?l.parentNode:l}var Qf=null,ro=null,io=null;function Ob(l){if(l=tc(l)){if(typeof Qf!="function")throw Error(r(280));var u=l.stateNode;u&&(u=hd(u),Qf(l.stateNode,l.type,u))}}function Pb(l){ro?io?io.push(l):io=[l]:ro=l}function Db(){if(ro){var l=ro,u=io;if(io=ro=null,Ob(l),u)for(l=0;l<u.length;l++)Ob(u[l])}}function Ib(l,u){return l(u)}function Rb(){}var Yf=!1;function Fb(l,u,y){if(Yf)return l(u,y);Yf=!0;try{return Ib(l,u,y)}finally{Yf=!1,(ro!==null||io!==null)&&(Rb(),Db())}}function Il(l,u){var y=l.stateNode;if(y===null)return null;var _=hd(y);if(_===null)return null;y=_[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(y&&typeof y!="function")throw Error(r(231,u,typeof y));return y}var Xf=!1;if(c)try{var Rl={};Object.defineProperty(Rl,"passive",{get:function(){Xf=!0}}),window.addEventListener("test",Rl,Rl),window.removeEventListener("test",Rl,Rl)}catch{Xf=!1}function Z6(l,u,y,_,O,M,$,te,ie){var fe=Array.prototype.slice.call(arguments,3);try{u.apply(y,fe)}catch(ke){this.onError(ke)}}var Fl=!1,$u=null,Hu=!1,Jf=null,eO={onError:function(l){Fl=!0,$u=l}};function tO(l,u,y,_,O,M,$,te,ie){Fl=!1,$u=null,Z6.apply(eO,arguments)}function nO(l,u,y,_,O,M,$,te,ie){if(tO.apply(this,arguments),Fl){if(Fl){var fe=$u;Fl=!1,$u=null}else throw Error(r(198));Hu||(Hu=!0,Jf=fe)}}function sa(l){var u=l,y=l;if(l.alternate)for(;u.return;)u=u.return;else{l=u;do u=l,(u.flags&4098)!==0&&(y=u.return),l=u.return;while(l)}return u.tag===3?y:null}function Mb(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 Lb(l){if(sa(l)!==l)throw Error(r(188))}function rO(l){var u=l.alternate;if(!u){if(u=sa(l),u===null)throw Error(r(188));return u!==l?null:l}for(var y=l,_=u;;){var O=y.return;if(O===null)break;var M=O.alternate;if(M===null){if(_=O.return,_!==null){y=_;continue}break}if(O.child===M.child){for(M=O.child;M;){if(M===y)return Lb(O),l;if(M===_)return Lb(O),u;M=M.sibling}throw Error(r(188))}if(y.return!==_.return)y=O,_=M;else{for(var $=!1,te=O.child;te;){if(te===y){$=!0,y=O,_=M;break}if(te===_){$=!0,_=O,y=M;break}te=te.sibling}if(!$){for(te=M.child;te;){if(te===y){$=!0,y=M,_=O;break}if(te===_){$=!0,_=M,y=O;break}te=te.sibling}if(!$)throw Error(r(189))}}if(y.alternate!==_)throw Error(r(190))}if(y.tag!==3)throw Error(r(188));return y.stateNode.current===y?l:u}function Bb(l){return l=rO(l),l!==null?zb(l):null}function zb(l){if(l.tag===5||l.tag===6)return l;for(l=l.child;l!==null;){var u=zb(l);if(u!==null)return u;l=l.sibling}return null}var qb=n.unstable_scheduleCallback,Vb=n.unstable_cancelCallback,iO=n.unstable_shouldYield,sO=n.unstable_requestPaint,tn=n.unstable_now,aO=n.unstable_getCurrentPriorityLevel,Zf=n.unstable_ImmediatePriority,Ub=n.unstable_UserBlockingPriority,Wu=n.unstable_NormalPriority,oO=n.unstable_LowPriority,$b=n.unstable_IdlePriority,Ku=null,Yr=null;function lO(l){if(Yr&&typeof Yr.onCommitFiberRoot=="function")try{Yr.onCommitFiberRoot(Ku,l,void 0,(l.current.flags&128)===128)}catch{}}var Or=Math.clz32?Math.clz32:dO,cO=Math.log,uO=Math.LN2;function dO(l){return l>>>=0,l===0?32:31-(cO(l)/uO|0)|0}var Gu=64,Qu=4194304;function Ml(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 Yu(l,u){var y=l.pendingLanes;if(y===0)return 0;var _=0,O=l.suspendedLanes,M=l.pingedLanes,$=y&268435455;if($!==0){var te=$&~O;te!==0?_=Ml(te):(M&=$,M!==0&&(_=Ml(M)))}else $=y&~O,$!==0?_=Ml($):M!==0&&(_=Ml(M));if(_===0)return 0;if(u!==0&&u!==_&&(u&O)===0&&(O=_&-_,M=u&-u,O>=M||O===16&&(M&4194240)!==0))return u;if((_&4)!==0&&(_|=y&16),u=l.entangledLanes,u!==0)for(l=l.entanglements,u&=_;0<u;)y=31-Or(u),O=1<<y,_|=l[y],u&=~O;return _}function hO(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 fO(l,u){for(var y=l.suspendedLanes,_=l.pingedLanes,O=l.expirationTimes,M=l.pendingLanes;0<M;){var $=31-Or(M),te=1<<$,ie=O[$];ie===-1?((te&y)===0||(te&_)!==0)&&(O[$]=hO(te,u)):ie<=u&&(l.expiredLanes|=te),M&=~te}}function em(l){return l=l.pendingLanes&-1073741825,l!==0?l:l&1073741824?1073741824:0}function Hb(){var l=Gu;return Gu<<=1,(Gu&4194240)===0&&(Gu=64),l}function tm(l){for(var u=[],y=0;31>y;y++)u.push(l);return u}function Ll(l,u,y){l.pendingLanes|=u,u!==536870912&&(l.suspendedLanes=0,l.pingedLanes=0),l=l.eventTimes,u=31-Or(u),l[u]=y}function mO(l,u){var y=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<y;){var O=31-Or(y),M=1<<O;u[O]=0,_[O]=-1,l[O]=-1,y&=~M}}function nm(l,u){var y=l.entangledLanes|=u;for(l=l.entanglements;y;){var _=31-Or(y),O=1<<_;O&u|l[_]&u&&(l[_]|=u),y&=~O}}var Et=0;function Wb(l){return l&=-l,1<l?4<l?(l&268435455)!==0?16:536870912:4:1}var Kb,rm,Gb,Qb,Yb,im=!1,Xu=[],is=null,ss=null,as=null,Bl=new Map,zl=new Map,os=[],pO="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 Xb(l,u){switch(l){case"focusin":case"focusout":is=null;break;case"dragenter":case"dragleave":ss=null;break;case"mouseover":case"mouseout":as=null;break;case"pointerover":case"pointerout":Bl.delete(u.pointerId);break;case"gotpointercapture":case"lostpointercapture":zl.delete(u.pointerId)}}function ql(l,u,y,_,O,M){return l===null||l.nativeEvent!==M?(l={blockedOn:u,domEventName:y,eventSystemFlags:_,nativeEvent:M,targetContainers:[O]},u!==null&&(u=tc(u),u!==null&&rm(u)),l):(l.eventSystemFlags|=_,u=l.targetContainers,O!==null&&u.indexOf(O)===-1&&u.push(O),l)}function gO(l,u,y,_,O){switch(u){case"focusin":return is=ql(is,l,u,y,_,O),!0;case"dragenter":return ss=ql(ss,l,u,y,_,O),!0;case"mouseover":return as=ql(as,l,u,y,_,O),!0;case"pointerover":var M=O.pointerId;return Bl.set(M,ql(Bl.get(M)||null,l,u,y,_,O)),!0;case"gotpointercapture":return M=O.pointerId,zl.set(M,ql(zl.get(M)||null,l,u,y,_,O)),!0}return!1}function Jb(l){var u=aa(l.target);if(u!==null){var y=sa(u);if(y!==null){if(u=y.tag,u===13){if(u=Mb(y),u!==null){l.blockedOn=u,Yb(l.priority,function(){Gb(y)});return}}else if(u===3&&y.stateNode.current.memoizedState.isDehydrated){l.blockedOn=y.tag===3?y.stateNode.containerInfo:null;return}}}l.blockedOn=null}function Ju(l){if(l.blockedOn!==null)return!1;for(var u=l.targetContainers;0<u.length;){var y=am(l.domEventName,l.eventSystemFlags,u[0],l.nativeEvent);if(y===null){y=l.nativeEvent;var _=new y.constructor(y.type,y);ir=_,y.target.dispatchEvent(_),ir=null}else return u=tc(y),u!==null&&rm(u),l.blockedOn=y,!1;u.shift()}return!0}function Zb(l,u,y){Ju(l)&&y.delete(u)}function xO(){im=!1,is!==null&&Ju(is)&&(is=null),ss!==null&&Ju(ss)&&(ss=null),as!==null&&Ju(as)&&(as=null),Bl.forEach(Zb),zl.forEach(Zb)}function Vl(l,u){l.blockedOn===u&&(l.blockedOn=null,im||(im=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,xO)))}function Ul(l){function u(O){return Vl(O,l)}if(0<Xu.length){Vl(Xu[0],l);for(var y=1;y<Xu.length;y++){var _=Xu[y];_.blockedOn===l&&(_.blockedOn=null)}}for(is!==null&&Vl(is,l),ss!==null&&Vl(ss,l),as!==null&&Vl(as,l),Bl.forEach(u),zl.forEach(u),y=0;y<os.length;y++)_=os[y],_.blockedOn===l&&(_.blockedOn=null);for(;0<os.length&&(y=os[0],y.blockedOn===null);)Jb(y),y.blockedOn===null&&os.shift()}var so=N.ReactCurrentBatchConfig,Zu=!0;function vO(l,u,y,_){var O=Et,M=so.transition;so.transition=null;try{Et=1,sm(l,u,y,_)}finally{Et=O,so.transition=M}}function yO(l,u,y,_){var O=Et,M=so.transition;so.transition=null;try{Et=4,sm(l,u,y,_)}finally{Et=O,so.transition=M}}function sm(l,u,y,_){if(Zu){var O=am(l,u,y,_);if(O===null)km(l,u,_,ed,y),Xb(l,_);else if(gO(O,l,u,y,_))_.stopPropagation();else if(Xb(l,_),u&4&&-1<pO.indexOf(l)){for(;O!==null;){var M=tc(O);if(M!==null&&Kb(M),M=am(l,u,y,_),M===null&&km(l,u,_,ed,y),M===O)break;O=M}O!==null&&_.stopPropagation()}else km(l,u,_,null,y)}}var ed=null;function am(l,u,y,_){if(ed=null,l=Gf(_),l=aa(l),l!==null)if(u=sa(l),u===null)l=null;else if(y=u.tag,y===13){if(l=Mb(u),l!==null)return l;l=null}else if(y===3){if(u.stateNode.current.memoizedState.isDehydrated)return u.tag===3?u.stateNode.containerInfo:null;l=null}else u!==l&&(l=null);return ed=l,null}function ej(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(aO()){case Zf:return 1;case Ub:return 4;case Wu:case oO:return 16;case $b:return 536870912;default:return 16}default:return 16}}var ls=null,om=null,td=null;function tj(){if(td)return td;var l,u=om,y=u.length,_,O="value"in ls?ls.value:ls.textContent,M=O.length;for(l=0;l<y&&u[l]===O[l];l++);var $=y-l;for(_=1;_<=$&&u[y-_]===O[M-_];_++);return td=O.slice(l,1<_?1-_:void 0)}function nd(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 rd(){return!0}function nj(){return!1}function sr(l){function u(y,_,O,M,$){this._reactName=y,this._targetInst=O,this.type=_,this.nativeEvent=M,this.target=$,this.currentTarget=null;for(var te in l)l.hasOwnProperty(te)&&(y=l[te],this[te]=y?y(M):M[te]);return this.isDefaultPrevented=(M.defaultPrevented!=null?M.defaultPrevented:M.returnValue===!1)?rd:nj,this.isPropagationStopped=nj,this}return P(u.prototype,{preventDefault:function(){this.defaultPrevented=!0;var y=this.nativeEvent;y&&(y.preventDefault?y.preventDefault():typeof y.returnValue!="unknown"&&(y.returnValue=!1),this.isDefaultPrevented=rd)},stopPropagation:function(){var y=this.nativeEvent;y&&(y.stopPropagation?y.stopPropagation():typeof y.cancelBubble!="unknown"&&(y.cancelBubble=!0),this.isPropagationStopped=rd)},persist:function(){},isPersistent:rd}),u}var ao={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(l){return l.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},lm=sr(ao),$l=P({},ao,{view:0,detail:0}),bO=sr($l),cm,um,Hl,id=P({},$l,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:hm,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!==Hl&&(Hl&&l.type==="mousemove"?(cm=l.screenX-Hl.screenX,um=l.screenY-Hl.screenY):um=cm=0,Hl=l),cm)},movementY:function(l){return"movementY"in l?l.movementY:um}}),rj=sr(id),jO=P({},id,{dataTransfer:0}),wO=sr(jO),kO=P({},$l,{relatedTarget:0}),dm=sr(kO),NO=P({},ao,{animationName:0,elapsedTime:0,pseudoElement:0}),_O=sr(NO),SO=P({},ao,{clipboardData:function(l){return"clipboardData"in l?l.clipboardData:window.clipboardData}}),AO=sr(SO),CO=P({},ao,{data:0}),ij=sr(CO),EO={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},TO={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"},OO={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function PO(l){var u=this.nativeEvent;return u.getModifierState?u.getModifierState(l):(l=OO[l])?!!u[l]:!1}function hm(){return PO}var DO=P({},$l,{key:function(l){if(l.key){var u=EO[l.key]||l.key;if(u!=="Unidentified")return u}return l.type==="keypress"?(l=nd(l),l===13?"Enter":String.fromCharCode(l)):l.type==="keydown"||l.type==="keyup"?TO[l.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:hm,charCode:function(l){return l.type==="keypress"?nd(l):0},keyCode:function(l){return l.type==="keydown"||l.type==="keyup"?l.keyCode:0},which:function(l){return l.type==="keypress"?nd(l):l.type==="keydown"||l.type==="keyup"?l.keyCode:0}}),IO=sr(DO),RO=P({},id,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),sj=sr(RO),FO=P({},$l,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:hm}),MO=sr(FO),LO=P({},ao,{propertyName:0,elapsedTime:0,pseudoElement:0}),BO=sr(LO),zO=P({},id,{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}),qO=sr(zO),VO=[9,13,27,32],fm=c&&"CompositionEvent"in window,Wl=null;c&&"documentMode"in document&&(Wl=document.documentMode);var UO=c&&"TextEvent"in window&&!Wl,aj=c&&(!fm||Wl&&8<Wl&&11>=Wl),oj=" ",lj=!1;function cj(l,u){switch(l){case"keyup":return VO.indexOf(u.keyCode)!==-1;case"keydown":return u.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function uj(l){return l=l.detail,typeof l=="object"&&"data"in l?l.data:null}var oo=!1;function $O(l,u){switch(l){case"compositionend":return uj(u);case"keypress":return u.which!==32?null:(lj=!0,oj);case"textInput":return l=u.data,l===oj&&lj?null:l;default:return null}}function HO(l,u){if(oo)return l==="compositionend"||!fm&&cj(l,u)?(l=tj(),td=om=ls=null,oo=!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 aj&&u.locale!=="ko"?null:u.data;default:return null}}var WO={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 dj(l){var u=l&&l.nodeName&&l.nodeName.toLowerCase();return u==="input"?!!WO[l.type]:u==="textarea"}function hj(l,u,y,_){Pb(_),u=cd(u,"onChange"),0<u.length&&(y=new lm("onChange","change",null,y,_),l.push({event:y,listeners:u}))}var Kl=null,Gl=null;function KO(l){Tj(l,0)}function sd(l){var u=fo(l);if(be(u))return l}function GO(l,u){if(l==="change")return u}var fj=!1;if(c){var mm;if(c){var pm="oninput"in document;if(!pm){var mj=document.createElement("div");mj.setAttribute("oninput","return;"),pm=typeof mj.oninput=="function"}mm=pm}else mm=!1;fj=mm&&(!document.documentMode||9<document.documentMode)}function pj(){Kl&&(Kl.detachEvent("onpropertychange",gj),Gl=Kl=null)}function gj(l){if(l.propertyName==="value"&&sd(Gl)){var u=[];hj(u,Gl,l,Gf(l)),Fb(KO,u)}}function QO(l,u,y){l==="focusin"?(pj(),Kl=u,Gl=y,Kl.attachEvent("onpropertychange",gj)):l==="focusout"&&pj()}function YO(l){if(l==="selectionchange"||l==="keyup"||l==="keydown")return sd(Gl)}function XO(l,u){if(l==="click")return sd(u)}function JO(l,u){if(l==="input"||l==="change")return sd(u)}function ZO(l,u){return l===u&&(l!==0||1/l===1/u)||l!==l&&u!==u}var Pr=typeof Object.is=="function"?Object.is:ZO;function Ql(l,u){if(Pr(l,u))return!0;if(typeof l!="object"||l===null||typeof u!="object"||u===null)return!1;var y=Object.keys(l),_=Object.keys(u);if(y.length!==_.length)return!1;for(_=0;_<y.length;_++){var O=y[_];if(!d.call(u,O)||!Pr(l[O],u[O]))return!1}return!0}function xj(l){for(;l&&l.firstChild;)l=l.firstChild;return l}function vj(l,u){var y=xj(l);l=0;for(var _;y;){if(y.nodeType===3){if(_=l+y.textContent.length,l<=u&&_>=u)return{node:y,offset:u-l};l=_}e:{for(;y;){if(y.nextSibling){y=y.nextSibling;break e}y=y.parentNode}y=void 0}y=xj(y)}}function yj(l,u){return l&&u?l===u?!0:l&&l.nodeType===3?!1:u&&u.nodeType===3?yj(l,u.parentNode):"contains"in l?l.contains(u):l.compareDocumentPosition?!!(l.compareDocumentPosition(u)&16):!1:!1}function bj(){for(var l=window,u=Oe();u instanceof l.HTMLIFrameElement;){try{var y=typeof u.contentWindow.location.href=="string"}catch{y=!1}if(y)l=u.contentWindow;else break;u=Oe(l.document)}return u}function gm(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 eP(l){var u=bj(),y=l.focusedElem,_=l.selectionRange;if(u!==y&&y&&y.ownerDocument&&yj(y.ownerDocument.documentElement,y)){if(_!==null&&gm(y)){if(u=_.start,l=_.end,l===void 0&&(l=u),"selectionStart"in y)y.selectionStart=u,y.selectionEnd=Math.min(l,y.value.length);else if(l=(u=y.ownerDocument||document)&&u.defaultView||window,l.getSelection){l=l.getSelection();var O=y.textContent.length,M=Math.min(_.start,O);_=_.end===void 0?M:Math.min(_.end,O),!l.extend&&M>_&&(O=_,_=M,M=O),O=vj(y,M);var $=vj(y,_);O&&$&&(l.rangeCount!==1||l.anchorNode!==O.node||l.anchorOffset!==O.offset||l.focusNode!==$.node||l.focusOffset!==$.offset)&&(u=u.createRange(),u.setStart(O.node,O.offset),l.removeAllRanges(),M>_?(l.addRange(u),l.extend($.node,$.offset)):(u.setEnd($.node,$.offset),l.addRange(u)))}}for(u=[],l=y;l=l.parentNode;)l.nodeType===1&&u.push({element:l,left:l.scrollLeft,top:l.scrollTop});for(typeof y.focus=="function"&&y.focus(),y=0;y<u.length;y++)l=u[y],l.element.scrollLeft=l.left,l.element.scrollTop=l.top}}var tP=c&&"documentMode"in document&&11>=document.documentMode,lo=null,xm=null,Yl=null,vm=!1;function jj(l,u,y){var _=y.window===y?y.document:y.nodeType===9?y:y.ownerDocument;vm||lo==null||lo!==Oe(_)||(_=lo,"selectionStart"in _&&gm(_)?_={start:_.selectionStart,end:_.selectionEnd}:(_=(_.ownerDocument&&_.ownerDocument.defaultView||window).getSelection(),_={anchorNode:_.anchorNode,anchorOffset:_.anchorOffset,focusNode:_.focusNode,focusOffset:_.focusOffset}),Yl&&Ql(Yl,_)||(Yl=_,_=cd(xm,"onSelect"),0<_.length&&(u=new lm("onSelect","select",null,u,y),l.push({event:u,listeners:_}),u.target=lo)))}function ad(l,u){var y={};return y[l.toLowerCase()]=u.toLowerCase(),y["Webkit"+l]="webkit"+u,y["Moz"+l]="moz"+u,y}var co={animationend:ad("Animation","AnimationEnd"),animationiteration:ad("Animation","AnimationIteration"),animationstart:ad("Animation","AnimationStart"),transitionend:ad("Transition","TransitionEnd")},ym={},wj={};c&&(wj=document.createElement("div").style,"AnimationEvent"in window||(delete co.animationend.animation,delete co.animationiteration.animation,delete co.animationstart.animation),"TransitionEvent"in window||delete co.transitionend.transition);function od(l){if(ym[l])return ym[l];if(!co[l])return l;var u=co[l],y;for(y in u)if(u.hasOwnProperty(y)&&y in wj)return ym[l]=u[y];return l}var kj=od("animationend"),Nj=od("animationiteration"),_j=od("animationstart"),Sj=od("transitionend"),Aj=new Map,Cj="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 cs(l,u){Aj.set(l,u),a(u,[l])}for(var bm=0;bm<Cj.length;bm++){var jm=Cj[bm],nP=jm.toLowerCase(),rP=jm[0].toUpperCase()+jm.slice(1);cs(nP,"on"+rP)}cs(kj,"onAnimationEnd"),cs(Nj,"onAnimationIteration"),cs(_j,"onAnimationStart"),cs("dblclick","onDoubleClick"),cs("focusin","onFocus"),cs("focusout","onBlur"),cs(Sj,"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 Xl="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(" "),iP=new Set("cancel close invalid load scroll toggle".split(" ").concat(Xl));function Ej(l,u,y){var _=l.type||"unknown-event";l.currentTarget=y,nO(_,u,void 0,l),l.currentTarget=null}function Tj(l,u){u=(u&4)!==0;for(var y=0;y<l.length;y++){var _=l[y],O=_.event;_=_.listeners;e:{var M=void 0;if(u)for(var $=_.length-1;0<=$;$--){var te=_[$],ie=te.instance,fe=te.currentTarget;if(te=te.listener,ie!==M&&O.isPropagationStopped())break e;Ej(O,te,fe),M=ie}else for($=0;$<_.length;$++){if(te=_[$],ie=te.instance,fe=te.currentTarget,te=te.listener,ie!==M&&O.isPropagationStopped())break e;Ej(O,te,fe),M=ie}}}if(Hu)throw l=Jf,Hu=!1,Jf=null,l}function Lt(l,u){var y=u[Em];y===void 0&&(y=u[Em]=new Set);var _=l+"__bubble";y.has(_)||(Oj(u,l,2,!1),y.add(_))}function wm(l,u,y){var _=0;u&&(_|=4),Oj(y,l,_,u)}var ld="_reactListening"+Math.random().toString(36).slice(2);function Jl(l){if(!l[ld]){l[ld]=!0,i.forEach(function(y){y!=="selectionchange"&&(iP.has(y)||wm(y,!1,l),wm(y,!0,l))});var u=l.nodeType===9?l:l.ownerDocument;u===null||u[ld]||(u[ld]=!0,wm("selectionchange",!1,u))}}function Oj(l,u,y,_){switch(ej(u)){case 1:var O=vO;break;case 4:O=yO;break;default:O=sm}y=O.bind(null,u,y,l),O=void 0,!Xf||u!=="touchstart"&&u!=="touchmove"&&u!=="wheel"||(O=!0),_?O!==void 0?l.addEventListener(u,y,{capture:!0,passive:O}):l.addEventListener(u,y,!0):O!==void 0?l.addEventListener(u,y,{passive:O}):l.addEventListener(u,y,!1)}function km(l,u,y,_,O){var M=_;if((u&1)===0&&(u&2)===0&&_!==null)e:for(;;){if(_===null)return;var $=_.tag;if($===3||$===4){var te=_.stateNode.containerInfo;if(te===O||te.nodeType===8&&te.parentNode===O)break;if($===4)for($=_.return;$!==null;){var ie=$.tag;if((ie===3||ie===4)&&(ie=$.stateNode.containerInfo,ie===O||ie.nodeType===8&&ie.parentNode===O))return;$=$.return}for(;te!==null;){if($=aa(te),$===null)return;if(ie=$.tag,ie===5||ie===6){_=M=$;continue e}te=te.parentNode}}_=_.return}Fb(function(){var fe=M,ke=Gf(y),Ne=[];e:{var we=Aj.get(l);if(we!==void 0){var Re=lm,Be=l;switch(l){case"keypress":if(nd(y)===0)break e;case"keydown":case"keyup":Re=IO;break;case"focusin":Be="focus",Re=dm;break;case"focusout":Be="blur",Re=dm;break;case"beforeblur":case"afterblur":Re=dm;break;case"click":if(y.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Re=rj;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Re=wO;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Re=MO;break;case kj:case Nj:case _j:Re=_O;break;case Sj:Re=BO;break;case"scroll":Re=bO;break;case"wheel":Re=qO;break;case"copy":case"cut":case"paste":Re=AO;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Re=sj}var Ve=(u&4)!==0,nn=!Ve&&l==="scroll",ue=Ve?we!==null?we+"Capture":null:we;Ve=[];for(var oe=fe,he;oe!==null;){he=oe;var Ee=he.stateNode;if(he.tag===5&&Ee!==null&&(he=Ee,ue!==null&&(Ee=Il(oe,ue),Ee!=null&&Ve.push(Zl(oe,Ee,he)))),nn)break;oe=oe.return}0<Ve.length&&(we=new Re(we,Be,null,y,ke),Ne.push({event:we,listeners:Ve}))}}if((u&7)===0){e:{if(we=l==="mouseover"||l==="pointerover",Re=l==="mouseout"||l==="pointerout",we&&y!==ir&&(Be=y.relatedTarget||y.fromElement)&&(aa(Be)||Be[Ai]))break e;if((Re||we)&&(we=ke.window===ke?ke:(we=ke.ownerDocument)?we.defaultView||we.parentWindow:window,Re?(Be=y.relatedTarget||y.toElement,Re=fe,Be=Be?aa(Be):null,Be!==null&&(nn=sa(Be),Be!==nn||Be.tag!==5&&Be.tag!==6)&&(Be=null)):(Re=null,Be=fe),Re!==Be)){if(Ve=rj,Ee="onMouseLeave",ue="onMouseEnter",oe="mouse",(l==="pointerout"||l==="pointerover")&&(Ve=sj,Ee="onPointerLeave",ue="onPointerEnter",oe="pointer"),nn=Re==null?we:fo(Re),he=Be==null?we:fo(Be),we=new Ve(Ee,oe+"leave",Re,y,ke),we.target=nn,we.relatedTarget=he,Ee=null,aa(ke)===fe&&(Ve=new Ve(ue,oe+"enter",Be,y,ke),Ve.target=he,Ve.relatedTarget=nn,Ee=Ve),nn=Ee,Re&&Be)t:{for(Ve=Re,ue=Be,oe=0,he=Ve;he;he=uo(he))oe++;for(he=0,Ee=ue;Ee;Ee=uo(Ee))he++;for(;0<oe-he;)Ve=uo(Ve),oe--;for(;0<he-oe;)ue=uo(ue),he--;for(;oe--;){if(Ve===ue||ue!==null&&Ve===ue.alternate)break t;Ve=uo(Ve),ue=uo(ue)}Ve=null}else Ve=null;Re!==null&&Pj(Ne,we,Re,Ve,!1),Be!==null&&nn!==null&&Pj(Ne,nn,Be,Ve,!0)}}e:{if(we=fe?fo(fe):window,Re=we.nodeName&&we.nodeName.toLowerCase(),Re==="select"||Re==="input"&&we.type==="file")var Ue=GO;else if(dj(we))if(fj)Ue=JO;else{Ue=YO;var Ge=QO}else(Re=we.nodeName)&&Re.toLowerCase()==="input"&&(we.type==="checkbox"||we.type==="radio")&&(Ue=XO);if(Ue&&(Ue=Ue(l,fe))){hj(Ne,Ue,y,ke);break e}Ge&&Ge(l,we,fe),l==="focusout"&&(Ge=we._wrapperState)&&Ge.controlled&&we.type==="number"&&ye(we,"number",we.value)}switch(Ge=fe?fo(fe):window,l){case"focusin":(dj(Ge)||Ge.contentEditable==="true")&&(lo=Ge,xm=fe,Yl=null);break;case"focusout":Yl=xm=lo=null;break;case"mousedown":vm=!0;break;case"contextmenu":case"mouseup":case"dragend":vm=!1,jj(Ne,y,ke);break;case"selectionchange":if(tP)break;case"keydown":case"keyup":jj(Ne,y,ke)}var Qe;if(fm)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 oo?cj(l,y)&&(Je="onCompositionEnd"):l==="keydown"&&y.keyCode===229&&(Je="onCompositionStart");Je&&(aj&&y.locale!=="ko"&&(oo||Je!=="onCompositionStart"?Je==="onCompositionEnd"&&oo&&(Qe=tj()):(ls=ke,om="value"in ls?ls.value:ls.textContent,oo=!0)),Ge=cd(fe,Je),0<Ge.length&&(Je=new ij(Je,l,null,y,ke),Ne.push({event:Je,listeners:Ge}),Qe?Je.data=Qe:(Qe=uj(y),Qe!==null&&(Je.data=Qe)))),(Qe=UO?$O(l,y):HO(l,y))&&(fe=cd(fe,"onBeforeInput"),0<fe.length&&(ke=new ij("onBeforeInput","beforeinput",null,y,ke),Ne.push({event:ke,listeners:fe}),ke.data=Qe))}Tj(Ne,u)})}function Zl(l,u,y){return{instance:l,listener:u,currentTarget:y}}function cd(l,u){for(var y=u+"Capture",_=[];l!==null;){var O=l,M=O.stateNode;O.tag===5&&M!==null&&(O=M,M=Il(l,y),M!=null&&_.unshift(Zl(l,M,O)),M=Il(l,u),M!=null&&_.push(Zl(l,M,O))),l=l.return}return _}function uo(l){if(l===null)return null;do l=l.return;while(l&&l.tag!==5);return l||null}function Pj(l,u,y,_,O){for(var M=u._reactName,$=[];y!==null&&y!==_;){var te=y,ie=te.alternate,fe=te.stateNode;if(ie!==null&&ie===_)break;te.tag===5&&fe!==null&&(te=fe,O?(ie=Il(y,M),ie!=null&&$.unshift(Zl(y,ie,te))):O||(ie=Il(y,M),ie!=null&&$.push(Zl(y,ie,te)))),y=y.return}$.length!==0&&l.push({event:u,listeners:$})}var sP=/\r\n?/g,aP=/\u0000|\uFFFD/g;function Dj(l){return(typeof l=="string"?l:""+l).replace(sP,`
`).replace(aP,"")}function ud(l,u,y){if(u=Dj(u),Dj(l)!==u&&y)throw Error(r(425))}function dd(){}var Nm=null,_m=null;function Sm(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 Am=typeof setTimeout=="function"?setTimeout:void 0,oP=typeof clearTimeout=="function"?clearTimeout:void 0,Ij=typeof Promise=="function"?Promise:void 0,lP=typeof queueMicrotask=="function"?queueMicrotask:typeof Ij<"u"?function(l){return Ij.resolve(null).then(l).catch(cP)}:Am;function cP(l){setTimeout(function(){throw l})}function Cm(l,u){var y=u,_=0;do{var O=y.nextSibling;if(l.removeChild(y),O&&O.nodeType===8)if(y=O.data,y==="/$"){if(_===0){l.removeChild(O),Ul(u);return}_--}else y!=="$"&&y!=="$?"&&y!=="$!"||_++;y=O}while(y);Ul(u)}function us(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 Rj(l){l=l.previousSibling;for(var u=0;l;){if(l.nodeType===8){var y=l.data;if(y==="$"||y==="$!"||y==="$?"){if(u===0)return l;u--}else y==="/$"&&u++}l=l.previousSibling}return null}var ho=Math.random().toString(36).slice(2),Xr="__reactFiber$"+ho,ec="__reactProps$"+ho,Ai="__reactContainer$"+ho,Em="__reactEvents$"+ho,uP="__reactListeners$"+ho,dP="__reactHandles$"+ho;function aa(l){var u=l[Xr];if(u)return u;for(var y=l.parentNode;y;){if(u=y[Ai]||y[Xr]){if(y=u.alternate,u.child!==null||y!==null&&y.child!==null)for(l=Rj(l);l!==null;){if(y=l[Xr])return y;l=Rj(l)}return u}l=y,y=l.parentNode}return null}function tc(l){return l=l[Xr]||l[Ai],!l||l.tag!==5&&l.tag!==6&&l.tag!==13&&l.tag!==3?null:l}function fo(l){if(l.tag===5||l.tag===6)return l.stateNode;throw Error(r(33))}function hd(l){return l[ec]||null}var Tm=[],mo=-1;function ds(l){return{current:l}}function Bt(l){0>mo||(l.current=Tm[mo],Tm[mo]=null,mo--)}function It(l,u){mo++,Tm[mo]=l.current,l.current=u}var hs={},An=ds(hs),$n=ds(!1),oa=hs;function po(l,u){var y=l.type.contextTypes;if(!y)return hs;var _=l.stateNode;if(_&&_.__reactInternalMemoizedUnmaskedChildContext===u)return _.__reactInternalMemoizedMaskedChildContext;var O={},M;for(M in y)O[M]=u[M];return _&&(l=l.stateNode,l.__reactInternalMemoizedUnmaskedChildContext=u,l.__reactInternalMemoizedMaskedChildContext=O),O}function Hn(l){return l=l.childContextTypes,l!=null}function fd(){Bt($n),Bt(An)}function Fj(l,u,y){if(An.current!==hs)throw Error(r(168));It(An,u),It($n,y)}function Mj(l,u,y){var _=l.stateNode;if(u=u.childContextTypes,typeof _.getChildContext!="function")return y;_=_.getChildContext();for(var O in _)if(!(O in u))throw Error(r(108,G(l)||"Unknown",O));return P({},y,_)}function md(l){return l=(l=l.stateNode)&&l.__reactInternalMemoizedMergedChildContext||hs,oa=An.current,It(An,l),It($n,$n.current),!0}function Lj(l,u,y){var _=l.stateNode;if(!_)throw Error(r(169));y?(l=Mj(l,u,oa),_.__reactInternalMemoizedMergedChildContext=l,Bt($n),Bt(An),It(An,l)):Bt($n),It($n,y)}var Ci=null,pd=!1,Om=!1;function Bj(l){Ci===null?Ci=[l]:Ci.push(l)}function hP(l){pd=!0,Bj(l)}function fs(){if(!Om&&Ci!==null){Om=!0;var l=0,u=Et;try{var y=Ci;for(Et=1;l<y.length;l++){var _=y[l];do _=_(!0);while(_!==null)}Ci=null,pd=!1}catch(O){throw Ci!==null&&(Ci=Ci.slice(l+1)),qb(Zf,fs),O}finally{Et=u,Om=!1}}return null}var go=[],xo=0,gd=null,xd=0,xr=[],vr=0,la=null,Ei=1,Ti="";function ca(l,u){go[xo++]=xd,go[xo++]=gd,gd=l,xd=u}function zj(l,u,y){xr[vr++]=Ei,xr[vr++]=Ti,xr[vr++]=la,la=l;var _=Ei;l=Ti;var O=32-Or(_)-1;_&=~(1<<O),y+=1;var M=32-Or(u)+O;if(30<M){var $=O-O%5;M=(_&(1<<$)-1).toString(32),_>>=$,O-=$,Ei=1<<32-Or(u)+O|y<<O|_,Ti=M+l}else Ei=1<<M|y<<O|_,Ti=l}function Pm(l){l.return!==null&&(ca(l,1),zj(l,1,0))}function Dm(l){for(;l===gd;)gd=go[--xo],go[xo]=null,xd=go[--xo],go[xo]=null;for(;l===la;)la=xr[--vr],xr[vr]=null,Ti=xr[--vr],xr[vr]=null,Ei=xr[--vr],xr[vr]=null}var ar=null,or=null,qt=!1,Dr=null;function qj(l,u){var y=wr(5,null,null,0);y.elementType="DELETED",y.stateNode=u,y.return=l,u=l.deletions,u===null?(l.deletions=[y],l.flags|=16):u.push(y)}function Vj(l,u){switch(l.tag){case 5:var y=l.type;return u=u.nodeType!==1||y.toLowerCase()!==u.nodeName.toLowerCase()?null:u,u!==null?(l.stateNode=u,ar=l,or=us(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?(y=la!==null?{id:Ei,overflow:Ti}:null,l.memoizedState={dehydrated:u,treeContext:y,retryLane:1073741824},y=wr(18,null,null,0),y.stateNode=u,y.return=l,l.child=y,ar=l,or=null,!0):!1;default:return!1}}function Im(l){return(l.mode&1)!==0&&(l.flags&128)===0}function Rm(l){if(qt){var u=or;if(u){var y=u;if(!Vj(l,u)){if(Im(l))throw Error(r(418));u=us(y.nextSibling);var _=ar;u&&Vj(l,u)?qj(_,y):(l.flags=l.flags&-4097|2,qt=!1,ar=l)}}else{if(Im(l))throw Error(r(418));l.flags=l.flags&-4097|2,qt=!1,ar=l}}}function Uj(l){for(l=l.return;l!==null&&l.tag!==5&&l.tag!==3&&l.tag!==13;)l=l.return;ar=l}function vd(l){if(l!==ar)return!1;if(!qt)return Uj(l),qt=!0,!1;var u;if((u=l.tag!==3)&&!(u=l.tag!==5)&&(u=l.type,u=u!=="head"&&u!=="body"&&!Sm(l.type,l.memoizedProps)),u&&(u=or)){if(Im(l))throw $j(),Error(r(418));for(;u;)qj(l,u),u=us(u.nextSibling)}if(Uj(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 y=l.data;if(y==="/$"){if(u===0){or=us(l.nextSibling);break e}u--}else y!=="$"&&y!=="$!"&&y!=="$?"||u++}l=l.nextSibling}or=null}}else or=ar?us(l.stateNode.nextSibling):null;return!0}function $j(){for(var l=or;l;)l=us(l.nextSibling)}function vo(){or=ar=null,qt=!1}function Fm(l){Dr===null?Dr=[l]:Dr.push(l)}var fP=N.ReactCurrentBatchConfig;function nc(l,u,y){if(l=y.ref,l!==null&&typeof l!="function"&&typeof l!="object"){if(y._owner){if(y=y._owner,y){if(y.tag!==1)throw Error(r(309));var _=y.stateNode}if(!_)throw Error(r(147,l));var O=_,M=""+l;return u!==null&&u.ref!==null&&typeof u.ref=="function"&&u.ref._stringRef===M?u.ref:(u=function($){var te=O.refs;$===null?delete te[M]:te[M]=$},u._stringRef=M,u)}if(typeof l!="string")throw Error(r(284));if(!y._owner)throw Error(r(290,l))}return l}function yd(l,u){throw l=Object.prototype.toString.call(u),Error(r(31,l==="[object Object]"?"object with keys {"+Object.keys(u).join(", ")+"}":l))}function Hj(l){var u=l._init;return u(l._payload)}function Wj(l){function u(ue,oe){if(l){var he=ue.deletions;he===null?(ue.deletions=[oe],ue.flags|=16):he.push(oe)}}function y(ue,oe){if(!l)return null;for(;oe!==null;)u(ue,oe),oe=oe.sibling;return null}function _(ue,oe){for(ue=new Map;oe!==null;)oe.key!==null?ue.set(oe.key,oe):ue.set(oe.index,oe),oe=oe.sibling;return ue}function O(ue,oe){return ue=js(ue,oe),ue.index=0,ue.sibling=null,ue}function M(ue,oe,he){return ue.index=he,l?(he=ue.alternate,he!==null?(he=he.index,he<oe?(ue.flags|=2,oe):he):(ue.flags|=2,oe)):(ue.flags|=1048576,oe)}function $(ue){return l&&ue.alternate===null&&(ue.flags|=2),ue}function te(ue,oe,he,Ee){return oe===null||oe.tag!==6?(oe=Ap(he,ue.mode,Ee),oe.return=ue,oe):(oe=O(oe,he),oe.return=ue,oe)}function ie(ue,oe,he,Ee){var Ue=he.type;return Ue===E?ke(ue,oe,he.props.children,Ee,he.key):oe!==null&&(oe.elementType===Ue||typeof Ue=="object"&&Ue!==null&&Ue.$$typeof===Q&&Hj(Ue)===oe.type)?(Ee=O(oe,he.props),Ee.ref=nc(ue,oe,he),Ee.return=ue,Ee):(Ee=Ud(he.type,he.key,he.props,null,ue.mode,Ee),Ee.ref=nc(ue,oe,he),Ee.return=ue,Ee)}function fe(ue,oe,he,Ee){return oe===null||oe.tag!==4||oe.stateNode.containerInfo!==he.containerInfo||oe.stateNode.implementation!==he.implementation?(oe=Cp(he,ue.mode,Ee),oe.return=ue,oe):(oe=O(oe,he.children||[]),oe.return=ue,oe)}function ke(ue,oe,he,Ee,Ue){return oe===null||oe.tag!==7?(oe=xa(he,ue.mode,Ee,Ue),oe.return=ue,oe):(oe=O(oe,he),oe.return=ue,oe)}function Ne(ue,oe,he){if(typeof oe=="string"&&oe!==""||typeof oe=="number")return oe=Ap(""+oe,ue.mode,he),oe.return=ue,oe;if(typeof oe=="object"&&oe!==null){switch(oe.$$typeof){case A:return he=Ud(oe.type,oe.key,oe.props,null,ue.mode,he),he.ref=nc(ue,null,oe),he.return=ue,he;case S:return oe=Cp(oe,ue.mode,he),oe.return=ue,oe;case Q:var Ee=oe._init;return Ne(ue,Ee(oe._payload),he)}if(Se(oe)||Y(oe))return oe=xa(oe,ue.mode,he,null),oe.return=ue,oe;yd(ue,oe)}return null}function we(ue,oe,he,Ee){var Ue=oe!==null?oe.key:null;if(typeof he=="string"&&he!==""||typeof he=="number")return Ue!==null?null:te(ue,oe,""+he,Ee);if(typeof he=="object"&&he!==null){switch(he.$$typeof){case A:return he.key===Ue?ie(ue,oe,he,Ee):null;case S:return he.key===Ue?fe(ue,oe,he,Ee):null;case Q:return Ue=he._init,we(ue,oe,Ue(he._payload),Ee)}if(Se(he)||Y(he))return Ue!==null?null:ke(ue,oe,he,Ee,null);yd(ue,he)}return null}function Re(ue,oe,he,Ee,Ue){if(typeof Ee=="string"&&Ee!==""||typeof Ee=="number")return ue=ue.get(he)||null,te(oe,ue,""+Ee,Ue);if(typeof Ee=="object"&&Ee!==null){switch(Ee.$$typeof){case A:return ue=ue.get(Ee.key===null?he:Ee.key)||null,ie(oe,ue,Ee,Ue);case S:return ue=ue.get(Ee.key===null?he:Ee.key)||null,fe(oe,ue,Ee,Ue);case Q:var Ge=Ee._init;return Re(ue,oe,he,Ge(Ee._payload),Ue)}if(Se(Ee)||Y(Ee))return ue=ue.get(he)||null,ke(oe,ue,Ee,Ue,null);yd(oe,Ee)}return null}function Be(ue,oe,he,Ee){for(var Ue=null,Ge=null,Qe=oe,Je=oe=0,gn=null;Qe!==null&&Je<he.length;Je++){Qe.index>Je?(gn=Qe,Qe=null):gn=Qe.sibling;var yt=we(ue,Qe,he[Je],Ee);if(yt===null){Qe===null&&(Qe=gn);break}l&&Qe&&yt.alternate===null&&u(ue,Qe),oe=M(yt,oe,Je),Ge===null?Ue=yt:Ge.sibling=yt,Ge=yt,Qe=gn}if(Je===he.length)return y(ue,Qe),qt&&ca(ue,Je),Ue;if(Qe===null){for(;Je<he.length;Je++)Qe=Ne(ue,he[Je],Ee),Qe!==null&&(oe=M(Qe,oe,Je),Ge===null?Ue=Qe:Ge.sibling=Qe,Ge=Qe);return qt&&ca(ue,Je),Ue}for(Qe=_(ue,Qe);Je<he.length;Je++)gn=Re(Qe,ue,Je,he[Je],Ee),gn!==null&&(l&&gn.alternate!==null&&Qe.delete(gn.key===null?Je:gn.key),oe=M(gn,oe,Je),Ge===null?Ue=gn:Ge.sibling=gn,Ge=gn);return l&&Qe.forEach(function(ws){return u(ue,ws)}),qt&&ca(ue,Je),Ue}function Ve(ue,oe,he,Ee){var Ue=Y(he);if(typeof Ue!="function")throw Error(r(150));if(he=Ue.call(he),he==null)throw Error(r(151));for(var Ge=Ue=null,Qe=oe,Je=oe=0,gn=null,yt=he.next();Qe!==null&&!yt.done;Je++,yt=he.next()){Qe.index>Je?(gn=Qe,Qe=null):gn=Qe.sibling;var ws=we(ue,Qe,yt.value,Ee);if(ws===null){Qe===null&&(Qe=gn);break}l&&Qe&&ws.alternate===null&&u(ue,Qe),oe=M(ws,oe,Je),Ge===null?Ue=ws:Ge.sibling=ws,Ge=ws,Qe=gn}if(yt.done)return y(ue,Qe),qt&&ca(ue,Je),Ue;if(Qe===null){for(;!yt.done;Je++,yt=he.next())yt=Ne(ue,yt.value,Ee),yt!==null&&(oe=M(yt,oe,Je),Ge===null?Ue=yt:Ge.sibling=yt,Ge=yt);return qt&&ca(ue,Je),Ue}for(Qe=_(ue,Qe);!yt.done;Je++,yt=he.next())yt=Re(Qe,ue,Je,yt.value,Ee),yt!==null&&(l&&yt.alternate!==null&&Qe.delete(yt.key===null?Je:yt.key),oe=M(yt,oe,Je),Ge===null?Ue=yt:Ge.sibling=yt,Ge=yt);return l&&Qe.forEach(function(WP){return u(ue,WP)}),qt&&ca(ue,Je),Ue}function nn(ue,oe,he,Ee){if(typeof he=="object"&&he!==null&&he.type===E&&he.key===null&&(he=he.props.children),typeof he=="object"&&he!==null){switch(he.$$typeof){case A:e:{for(var Ue=he.key,Ge=oe;Ge!==null;){if(Ge.key===Ue){if(Ue=he.type,Ue===E){if(Ge.tag===7){y(ue,Ge.sibling),oe=O(Ge,he.props.children),oe.return=ue,ue=oe;break e}}else if(Ge.elementType===Ue||typeof Ue=="object"&&Ue!==null&&Ue.$$typeof===Q&&Hj(Ue)===Ge.type){y(ue,Ge.sibling),oe=O(Ge,he.props),oe.ref=nc(ue,Ge,he),oe.return=ue,ue=oe;break e}y(ue,Ge);break}else u(ue,Ge);Ge=Ge.sibling}he.type===E?(oe=xa(he.props.children,ue.mode,Ee,he.key),oe.return=ue,ue=oe):(Ee=Ud(he.type,he.key,he.props,null,ue.mode,Ee),Ee.ref=nc(ue,oe,he),Ee.return=ue,ue=Ee)}return $(ue);case S:e:{for(Ge=he.key;oe!==null;){if(oe.key===Ge)if(oe.tag===4&&oe.stateNode.containerInfo===he.containerInfo&&oe.stateNode.implementation===he.implementation){y(ue,oe.sibling),oe=O(oe,he.children||[]),oe.return=ue,ue=oe;break e}else{y(ue,oe);break}else u(ue,oe);oe=oe.sibling}oe=Cp(he,ue.mode,Ee),oe.return=ue,ue=oe}return $(ue);case Q:return Ge=he._init,nn(ue,oe,Ge(he._payload),Ee)}if(Se(he))return Be(ue,oe,he,Ee);if(Y(he))return Ve(ue,oe,he,Ee);yd(ue,he)}return typeof he=="string"&&he!==""||typeof he=="number"?(he=""+he,oe!==null&&oe.tag===6?(y(ue,oe.sibling),oe=O(oe,he),oe.return=ue,ue=oe):(y(ue,oe),oe=Ap(he,ue.mode,Ee),oe.return=ue,ue=oe),$(ue)):y(ue,oe)}return nn}var yo=Wj(!0),Kj=Wj(!1),bd=ds(null),jd=null,bo=null,Mm=null;function Lm(){Mm=bo=jd=null}function Bm(l){var u=bd.current;Bt(bd),l._currentValue=u}function zm(l,u,y){for(;l!==null;){var _=l.alternate;if((l.childLanes&u)!==u?(l.childLanes|=u,_!==null&&(_.childLanes|=u)):_!==null&&(_.childLanes&u)!==u&&(_.childLanes|=u),l===y)break;l=l.return}}function jo(l,u){jd=l,Mm=bo=null,l=l.dependencies,l!==null&&l.firstContext!==null&&((l.lanes&u)!==0&&(Wn=!0),l.firstContext=null)}function yr(l){var u=l._currentValue;if(Mm!==l)if(l={context:l,memoizedValue:u,next:null},bo===null){if(jd===null)throw Error(r(308));bo=l,jd.dependencies={lanes:0,firstContext:l}}else bo=bo.next=l;return u}var ua=null;function qm(l){ua===null?ua=[l]:ua.push(l)}function Gj(l,u,y,_){var O=u.interleaved;return O===null?(y.next=y,qm(u)):(y.next=O.next,O.next=y),u.interleaved=y,Oi(l,_)}function Oi(l,u){l.lanes|=u;var y=l.alternate;for(y!==null&&(y.lanes|=u),y=l,l=l.return;l!==null;)l.childLanes|=u,y=l.alternate,y!==null&&(y.childLanes|=u),y=l,l=l.return;return y.tag===3?y.stateNode:null}var ms=!1;function Vm(l){l.updateQueue={baseState:l.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Qj(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 Pi(l,u){return{eventTime:l,lane:u,tag:0,payload:null,callback:null,next:null}}function ps(l,u,y){var _=l.updateQueue;if(_===null)return null;if(_=_.shared,(vt&2)!==0){var O=_.pending;return O===null?u.next=u:(u.next=O.next,O.next=u),_.pending=u,Oi(l,y)}return O=_.interleaved,O===null?(u.next=u,qm(_)):(u.next=O.next,O.next=u),_.interleaved=u,Oi(l,y)}function wd(l,u,y){if(u=u.updateQueue,u!==null&&(u=u.shared,(y&4194240)!==0)){var _=u.lanes;_&=l.pendingLanes,y|=_,u.lanes=y,nm(l,y)}}function Yj(l,u){var y=l.updateQueue,_=l.alternate;if(_!==null&&(_=_.updateQueue,y===_)){var O=null,M=null;if(y=y.firstBaseUpdate,y!==null){do{var $={eventTime:y.eventTime,lane:y.lane,tag:y.tag,payload:y.payload,callback:y.callback,next:null};M===null?O=M=$:M=M.next=$,y=y.next}while(y!==null);M===null?O=M=u:M=M.next=u}else O=M=u;y={baseState:_.baseState,firstBaseUpdate:O,lastBaseUpdate:M,shared:_.shared,effects:_.effects},l.updateQueue=y;return}l=y.lastBaseUpdate,l===null?y.firstBaseUpdate=u:l.next=u,y.lastBaseUpdate=u}function kd(l,u,y,_){var O=l.updateQueue;ms=!1;var M=O.firstBaseUpdate,$=O.lastBaseUpdate,te=O.shared.pending;if(te!==null){O.shared.pending=null;var ie=te,fe=ie.next;ie.next=null,$===null?M=fe:$.next=fe,$=ie;var ke=l.alternate;ke!==null&&(ke=ke.updateQueue,te=ke.lastBaseUpdate,te!==$&&(te===null?ke.firstBaseUpdate=fe:te.next=fe,ke.lastBaseUpdate=ie))}if(M!==null){var Ne=O.baseState;$=0,ke=fe=ie=null,te=M;do{var we=te.lane,Re=te.eventTime;if((_&we)===we){ke!==null&&(ke=ke.next={eventTime:Re,lane:0,tag:te.tag,payload:te.payload,callback:te.callback,next:null});e:{var Be=l,Ve=te;switch(we=u,Re=y,Ve.tag){case 1:if(Be=Ve.payload,typeof Be=="function"){Ne=Be.call(Re,Ne,we);break e}Ne=Be;break e;case 3:Be.flags=Be.flags&-65537|128;case 0:if(Be=Ve.payload,we=typeof Be=="function"?Be.call(Re,Ne,we):Be,we==null)break e;Ne=P({},Ne,we);break e;case 2:ms=!0}}te.callback!==null&&te.lane!==0&&(l.flags|=64,we=O.effects,we===null?O.effects=[te]:we.push(te))}else Re={eventTime:Re,lane:we,tag:te.tag,payload:te.payload,callback:te.callback,next:null},ke===null?(fe=ke=Re,ie=Ne):ke=ke.next=Re,$|=we;if(te=te.next,te===null){if(te=O.shared.pending,te===null)break;we=te,te=we.next,we.next=null,O.lastBaseUpdate=we,O.shared.pending=null}}while(!0);if(ke===null&&(ie=Ne),O.baseState=ie,O.firstBaseUpdate=fe,O.lastBaseUpdate=ke,u=O.shared.interleaved,u!==null){O=u;do $|=O.lane,O=O.next;while(O!==u)}else M===null&&(O.shared.lanes=0);fa|=$,l.lanes=$,l.memoizedState=Ne}}function Xj(l,u,y){if(l=u.effects,u.effects=null,l!==null)for(u=0;u<l.length;u++){var _=l[u],O=_.callback;if(O!==null){if(_.callback=null,_=y,typeof O!="function")throw Error(r(191,O));O.call(_)}}}var rc={},Jr=ds(rc),ic=ds(rc),sc=ds(rc);function da(l){if(l===rc)throw Error(r(174));return l}function Um(l,u){switch(It(sc,u),It(ic,l),It(Jr,rc),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)}Bt(Jr),It(Jr,u)}function wo(){Bt(Jr),Bt(ic),Bt(sc)}function Jj(l){da(sc.current);var u=da(Jr.current),y=_e(u,l.type);u!==y&&(It(ic,l),It(Jr,y))}function $m(l){ic.current===l&&(Bt(Jr),Bt(ic))}var Wt=ds(0);function Nd(l){for(var u=l;u!==null;){if(u.tag===13){var y=u.memoizedState;if(y!==null&&(y=y.dehydrated,y===null||y.data==="$?"||y.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 Hm=[];function Wm(){for(var l=0;l<Hm.length;l++)Hm[l]._workInProgressVersionPrimary=null;Hm.length=0}var _d=N.ReactCurrentDispatcher,Km=N.ReactCurrentBatchConfig,ha=0,Kt=null,un=null,mn=null,Sd=!1,ac=!1,oc=0,mP=0;function Cn(){throw Error(r(321))}function Gm(l,u){if(u===null)return!1;for(var y=0;y<u.length&&y<l.length;y++)if(!Pr(l[y],u[y]))return!1;return!0}function Qm(l,u,y,_,O,M){if(ha=M,Kt=u,u.memoizedState=null,u.updateQueue=null,u.lanes=0,_d.current=l===null||l.memoizedState===null?vP:yP,l=y(_,O),ac){M=0;do{if(ac=!1,oc=0,25<=M)throw Error(r(301));M+=1,mn=un=null,u.updateQueue=null,_d.current=bP,l=y(_,O)}while(ac)}if(_d.current=Ed,u=un!==null&&un.next!==null,ha=0,mn=un=Kt=null,Sd=!1,u)throw Error(r(300));return l}function Ym(){var l=oc!==0;return oc=0,l}function Zr(){var l={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return mn===null?Kt.memoizedState=mn=l:mn=mn.next=l,mn}function br(){if(un===null){var l=Kt.alternate;l=l!==null?l.memoizedState:null}else l=un.next;var u=mn===null?Kt.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?Kt.memoizedState=mn=l:mn=mn.next=l}return mn}function lc(l,u){return typeof u=="function"?u(l):u}function Xm(l){var u=br(),y=u.queue;if(y===null)throw Error(r(311));y.lastRenderedReducer=l;var _=un,O=_.baseQueue,M=y.pending;if(M!==null){if(O!==null){var $=O.next;O.next=M.next,M.next=$}_.baseQueue=O=M,y.pending=null}if(O!==null){M=O.next,_=_.baseState;var te=$=null,ie=null,fe=M;do{var ke=fe.lane;if((ha&ke)===ke)ie!==null&&(ie=ie.next={lane:0,action:fe.action,hasEagerState:fe.hasEagerState,eagerState:fe.eagerState,next:null}),_=fe.hasEagerState?fe.eagerState:l(_,fe.action);else{var Ne={lane:ke,action:fe.action,hasEagerState:fe.hasEagerState,eagerState:fe.eagerState,next:null};ie===null?(te=ie=Ne,$=_):ie=ie.next=Ne,Kt.lanes|=ke,fa|=ke}fe=fe.next}while(fe!==null&&fe!==M);ie===null?$=_:ie.next=te,Pr(_,u.memoizedState)||(Wn=!0),u.memoizedState=_,u.baseState=$,u.baseQueue=ie,y.lastRenderedState=_}if(l=y.interleaved,l!==null){O=l;do M=O.lane,Kt.lanes|=M,fa|=M,O=O.next;while(O!==l)}else O===null&&(y.lanes=0);return[u.memoizedState,y.dispatch]}function Jm(l){var u=br(),y=u.queue;if(y===null)throw Error(r(311));y.lastRenderedReducer=l;var _=y.dispatch,O=y.pending,M=u.memoizedState;if(O!==null){y.pending=null;var $=O=O.next;do M=l(M,$.action),$=$.next;while($!==O);Pr(M,u.memoizedState)||(Wn=!0),u.memoizedState=M,u.baseQueue===null&&(u.baseState=M),y.lastRenderedState=M}return[M,_]}function Zj(){}function ew(l,u){var y=Kt,_=br(),O=u(),M=!Pr(_.memoizedState,O);if(M&&(_.memoizedState=O,Wn=!0),_=_.queue,Zm(rw.bind(null,y,_,l),[l]),_.getSnapshot!==u||M||mn!==null&&mn.memoizedState.tag&1){if(y.flags|=2048,cc(9,nw.bind(null,y,_,O,u),void 0,null),pn===null)throw Error(r(349));(ha&30)!==0||tw(y,u,O)}return O}function tw(l,u,y){l.flags|=16384,l={getSnapshot:u,value:y},u=Kt.updateQueue,u===null?(u={lastEffect:null,stores:null},Kt.updateQueue=u,u.stores=[l]):(y=u.stores,y===null?u.stores=[l]:y.push(l))}function nw(l,u,y,_){u.value=y,u.getSnapshot=_,iw(u)&&sw(l)}function rw(l,u,y){return y(function(){iw(u)&&sw(l)})}function iw(l){var u=l.getSnapshot;l=l.value;try{var y=u();return!Pr(l,y)}catch{return!0}}function sw(l){var u=Oi(l,1);u!==null&&Mr(u,l,1,-1)}function aw(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:lc,lastRenderedState:l},u.queue=l,l=l.dispatch=xP.bind(null,Kt,l),[u.memoizedState,l]}function cc(l,u,y,_){return l={tag:l,create:u,destroy:y,deps:_,next:null},u=Kt.updateQueue,u===null?(u={lastEffect:null,stores:null},Kt.updateQueue=u,u.lastEffect=l.next=l):(y=u.lastEffect,y===null?u.lastEffect=l.next=l:(_=y.next,y.next=l,l.next=_,u.lastEffect=l)),l}function ow(){return br().memoizedState}function Ad(l,u,y,_){var O=Zr();Kt.flags|=l,O.memoizedState=cc(1|u,y,void 0,_===void 0?null:_)}function Cd(l,u,y,_){var O=br();_=_===void 0?null:_;var M=void 0;if(un!==null){var $=un.memoizedState;if(M=$.destroy,_!==null&&Gm(_,$.deps)){O.memoizedState=cc(u,y,M,_);return}}Kt.flags|=l,O.memoizedState=cc(1|u,y,M,_)}function lw(l,u){return Ad(8390656,8,l,u)}function Zm(l,u){return Cd(2048,8,l,u)}function cw(l,u){return Cd(4,2,l,u)}function uw(l,u){return Cd(4,4,l,u)}function dw(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 hw(l,u,y){return y=y!=null?y.concat([l]):null,Cd(4,4,dw.bind(null,u,l),y)}function ep(){}function fw(l,u){var y=br();u=u===void 0?null:u;var _=y.memoizedState;return _!==null&&u!==null&&Gm(u,_[1])?_[0]:(y.memoizedState=[l,u],l)}function mw(l,u){var y=br();u=u===void 0?null:u;var _=y.memoizedState;return _!==null&&u!==null&&Gm(u,_[1])?_[0]:(l=l(),y.memoizedState=[l,u],l)}function pw(l,u,y){return(ha&21)===0?(l.baseState&&(l.baseState=!1,Wn=!0),l.memoizedState=y):(Pr(y,u)||(y=Hb(),Kt.lanes|=y,fa|=y,l.baseState=!0),u)}function pP(l,u){var y=Et;Et=y!==0&&4>y?y:4,l(!0);var _=Km.transition;Km.transition={};try{l(!1),u()}finally{Et=y,Km.transition=_}}function gw(){return br().memoizedState}function gP(l,u,y){var _=ys(l);if(y={lane:_,action:y,hasEagerState:!1,eagerState:null,next:null},xw(l))vw(u,y);else if(y=Gj(l,u,y,_),y!==null){var O=Ln();Mr(y,l,_,O),yw(y,u,_)}}function xP(l,u,y){var _=ys(l),O={lane:_,action:y,hasEagerState:!1,eagerState:null,next:null};if(xw(l))vw(u,O);else{var M=l.alternate;if(l.lanes===0&&(M===null||M.lanes===0)&&(M=u.lastRenderedReducer,M!==null))try{var $=u.lastRenderedState,te=M($,y);if(O.hasEagerState=!0,O.eagerState=te,Pr(te,$)){var ie=u.interleaved;ie===null?(O.next=O,qm(u)):(O.next=ie.next,ie.next=O),u.interleaved=O;return}}catch{}finally{}y=Gj(l,u,O,_),y!==null&&(O=Ln(),Mr(y,l,_,O),yw(y,u,_))}}function xw(l){var u=l.alternate;return l===Kt||u!==null&&u===Kt}function vw(l,u){ac=Sd=!0;var y=l.pending;y===null?u.next=u:(u.next=y.next,y.next=u),l.pending=u}function yw(l,u,y){if((y&4194240)!==0){var _=u.lanes;_&=l.pendingLanes,y|=_,u.lanes=y,nm(l,y)}}var Ed={readContext:yr,useCallback:Cn,useContext:Cn,useEffect:Cn,useImperativeHandle:Cn,useInsertionEffect:Cn,useLayoutEffect:Cn,useMemo:Cn,useReducer:Cn,useRef:Cn,useState:Cn,useDebugValue:Cn,useDeferredValue:Cn,useTransition:Cn,useMutableSource:Cn,useSyncExternalStore:Cn,useId:Cn,unstable_isNewReconciler:!1},vP={readContext:yr,useCallback:function(l,u){return Zr().memoizedState=[l,u===void 0?null:u],l},useContext:yr,useEffect:lw,useImperativeHandle:function(l,u,y){return y=y!=null?y.concat([l]):null,Ad(4194308,4,dw.bind(null,u,l),y)},useLayoutEffect:function(l,u){return Ad(4194308,4,l,u)},useInsertionEffect:function(l,u){return Ad(4,2,l,u)},useMemo:function(l,u){var y=Zr();return u=u===void 0?null:u,l=l(),y.memoizedState=[l,u],l},useReducer:function(l,u,y){var _=Zr();return u=y!==void 0?y(u):u,_.memoizedState=_.baseState=u,l={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:l,lastRenderedState:u},_.queue=l,l=l.dispatch=gP.bind(null,Kt,l),[_.memoizedState,l]},useRef:function(l){var u=Zr();return l={current:l},u.memoizedState=l},useState:aw,useDebugValue:ep,useDeferredValue:function(l){return Zr().memoizedState=l},useTransition:function(){var l=aw(!1),u=l[0];return l=pP.bind(null,l[1]),Zr().memoizedState=l,[u,l]},useMutableSource:function(){},useSyncExternalStore:function(l,u,y){var _=Kt,O=Zr();if(qt){if(y===void 0)throw Error(r(407));y=y()}else{if(y=u(),pn===null)throw Error(r(349));(ha&30)!==0||tw(_,u,y)}O.memoizedState=y;var M={value:y,getSnapshot:u};return O.queue=M,lw(rw.bind(null,_,M,l),[l]),_.flags|=2048,cc(9,nw.bind(null,_,M,y,u),void 0,null),y},useId:function(){var l=Zr(),u=pn.identifierPrefix;if(qt){var y=Ti,_=Ei;y=(_&~(1<<32-Or(_)-1)).toString(32)+y,u=":"+u+"R"+y,y=oc++,0<y&&(u+="H"+y.toString(32)),u+=":"}else y=mP++,u=":"+u+"r"+y.toString(32)+":";return l.memoizedState=u},unstable_isNewReconciler:!1},yP={readContext:yr,useCallback:fw,useContext:yr,useEffect:Zm,useImperativeHandle:hw,useInsertionEffect:cw,useLayoutEffect:uw,useMemo:mw,useReducer:Xm,useRef:ow,useState:function(){return Xm(lc)},useDebugValue:ep,useDeferredValue:function(l){var u=br();return pw(u,un.memoizedState,l)},useTransition:function(){var l=Xm(lc)[0],u=br().memoizedState;return[l,u]},useMutableSource:Zj,useSyncExternalStore:ew,useId:gw,unstable_isNewReconciler:!1},bP={readContext:yr,useCallback:fw,useContext:yr,useEffect:Zm,useImperativeHandle:hw,useInsertionEffect:cw,useLayoutEffect:uw,useMemo:mw,useReducer:Jm,useRef:ow,useState:function(){return Jm(lc)},useDebugValue:ep,useDeferredValue:function(l){var u=br();return un===null?u.memoizedState=l:pw(u,un.memoizedState,l)},useTransition:function(){var l=Jm(lc)[0],u=br().memoizedState;return[l,u]},useMutableSource:Zj,useSyncExternalStore:ew,useId:gw,unstable_isNewReconciler:!1};function Ir(l,u){if(l&&l.defaultProps){u=P({},u),l=l.defaultProps;for(var y in l)u[y]===void 0&&(u[y]=l[y]);return u}return u}function tp(l,u,y,_){u=l.memoizedState,y=y(_,u),y=y==null?u:P({},u,y),l.memoizedState=y,l.lanes===0&&(l.updateQueue.baseState=y)}var Td={isMounted:function(l){return(l=l._reactInternals)?sa(l)===l:!1},enqueueSetState:function(l,u,y){l=l._reactInternals;var _=Ln(),O=ys(l),M=Pi(_,O);M.payload=u,y!=null&&(M.callback=y),u=ps(l,M,O),u!==null&&(Mr(u,l,O,_),wd(u,l,O))},enqueueReplaceState:function(l,u,y){l=l._reactInternals;var _=Ln(),O=ys(l),M=Pi(_,O);M.tag=1,M.payload=u,y!=null&&(M.callback=y),u=ps(l,M,O),u!==null&&(Mr(u,l,O,_),wd(u,l,O))},enqueueForceUpdate:function(l,u){l=l._reactInternals;var y=Ln(),_=ys(l),O=Pi(y,_);O.tag=2,u!=null&&(O.callback=u),u=ps(l,O,_),u!==null&&(Mr(u,l,_,y),wd(u,l,_))}};function bw(l,u,y,_,O,M,$){return l=l.stateNode,typeof l.shouldComponentUpdate=="function"?l.shouldComponentUpdate(_,M,$):u.prototype&&u.prototype.isPureReactComponent?!Ql(y,_)||!Ql(O,M):!0}function jw(l,u,y){var _=!1,O=hs,M=u.contextType;return typeof M=="object"&&M!==null?M=yr(M):(O=Hn(u)?oa:An.current,_=u.contextTypes,M=(_=_!=null)?po(l,O):hs),u=new u(y,M),l.memoizedState=u.state!==null&&u.state!==void 0?u.state:null,u.updater=Td,l.stateNode=u,u._reactInternals=l,_&&(l=l.stateNode,l.__reactInternalMemoizedUnmaskedChildContext=O,l.__reactInternalMemoizedMaskedChildContext=M),u}function ww(l,u,y,_){l=u.state,typeof u.componentWillReceiveProps=="function"&&u.componentWillReceiveProps(y,_),typeof u.UNSAFE_componentWillReceiveProps=="function"&&u.UNSAFE_componentWillReceiveProps(y,_),u.state!==l&&Td.enqueueReplaceState(u,u.state,null)}function np(l,u,y,_){var O=l.stateNode;O.props=y,O.state=l.memoizedState,O.refs={},Vm(l);var M=u.contextType;typeof M=="object"&&M!==null?O.context=yr(M):(M=Hn(u)?oa:An.current,O.context=po(l,M)),O.state=l.memoizedState,M=u.getDerivedStateFromProps,typeof M=="function"&&(tp(l,u,M,y),O.state=l.memoizedState),typeof u.getDerivedStateFromProps=="function"||typeof O.getSnapshotBeforeUpdate=="function"||typeof O.UNSAFE_componentWillMount!="function"&&typeof O.componentWillMount!="function"||(u=O.state,typeof O.componentWillMount=="function"&&O.componentWillMount(),typeof O.UNSAFE_componentWillMount=="function"&&O.UNSAFE_componentWillMount(),u!==O.state&&Td.enqueueReplaceState(O,O.state,null),kd(l,y,O,_),O.state=l.memoizedState),typeof O.componentDidMount=="function"&&(l.flags|=4194308)}function ko(l,u){try{var y="",_=u;do y+=J(_),_=_.return;while(_);var O=y}catch(M){O=`
Error generating stack: `+M.message+`
`+M.stack}return{value:l,source:u,stack:O,digest:null}}function rp(l,u,y){return{value:l,source:null,stack:y??null,digest:u??null}}function ip(l,u){try{console.error(u.value)}catch(y){setTimeout(function(){throw y})}}var jP=typeof WeakMap=="function"?WeakMap:Map;function kw(l,u,y){y=Pi(-1,y),y.tag=3,y.payload={element:null};var _=u.value;return y.callback=function(){Md||(Md=!0,yp=_),ip(l,u)},y}function Nw(l,u,y){y=Pi(-1,y),y.tag=3;var _=l.type.getDerivedStateFromError;if(typeof _=="function"){var O=u.value;y.payload=function(){return _(O)},y.callback=function(){ip(l,u)}}var M=l.stateNode;return M!==null&&typeof M.componentDidCatch=="function"&&(y.callback=function(){ip(l,u),typeof _!="function"&&(xs===null?xs=new Set([this]):xs.add(this));var $=u.stack;this.componentDidCatch(u.value,{componentStack:$!==null?$:""})}),y}function _w(l,u,y){var _=l.pingCache;if(_===null){_=l.pingCache=new jP;var O=new Set;_.set(u,O)}else O=_.get(u),O===void 0&&(O=new Set,_.set(u,O));O.has(y)||(O.add(y),l=RP.bind(null,l,u,y),u.then(l,l))}function Sw(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 Aw(l,u,y,_,O){return(l.mode&1)===0?(l===u?l.flags|=65536:(l.flags|=128,y.flags|=131072,y.flags&=-52805,y.tag===1&&(y.alternate===null?y.tag=17:(u=Pi(-1,1),u.tag=2,ps(y,u,1))),y.lanes|=1),l):(l.flags|=65536,l.lanes=O,l)}var wP=N.ReactCurrentOwner,Wn=!1;function Mn(l,u,y,_){u.child=l===null?Kj(u,null,y,_):yo(u,l.child,y,_)}function Cw(l,u,y,_,O){y=y.render;var M=u.ref;return jo(u,O),_=Qm(l,u,y,_,M,O),y=Ym(),l!==null&&!Wn?(u.updateQueue=l.updateQueue,u.flags&=-2053,l.lanes&=~O,Di(l,u,O)):(qt&&y&&Pm(u),u.flags|=1,Mn(l,u,_,O),u.child)}function Ew(l,u,y,_,O){if(l===null){var M=y.type;return typeof M=="function"&&!Sp(M)&&M.defaultProps===void 0&&y.compare===null&&y.defaultProps===void 0?(u.tag=15,u.type=M,Tw(l,u,M,_,O)):(l=Ud(y.type,null,_,u,u.mode,O),l.ref=u.ref,l.return=u,u.child=l)}if(M=l.child,(l.lanes&O)===0){var $=M.memoizedProps;if(y=y.compare,y=y!==null?y:Ql,y($,_)&&l.ref===u.ref)return Di(l,u,O)}return u.flags|=1,l=js(M,_),l.ref=u.ref,l.return=u,u.child=l}function Tw(l,u,y,_,O){if(l!==null){var M=l.memoizedProps;if(Ql(M,_)&&l.ref===u.ref)if(Wn=!1,u.pendingProps=_=M,(l.lanes&O)!==0)(l.flags&131072)!==0&&(Wn=!0);else return u.lanes=l.lanes,Di(l,u,O)}return sp(l,u,y,_,O)}function Ow(l,u,y){var _=u.pendingProps,O=_.children,M=l!==null?l.memoizedState:null;if(_.mode==="hidden")if((u.mode&1)===0)u.memoizedState={baseLanes:0,cachePool:null,transitions:null},It(_o,lr),lr|=y;else{if((y&1073741824)===0)return l=M!==null?M.baseLanes|y:y,u.lanes=u.childLanes=1073741824,u.memoizedState={baseLanes:l,cachePool:null,transitions:null},u.updateQueue=null,It(_o,lr),lr|=l,null;u.memoizedState={baseLanes:0,cachePool:null,transitions:null},_=M!==null?M.baseLanes:y,It(_o,lr),lr|=_}else M!==null?(_=M.baseLanes|y,u.memoizedState=null):_=y,It(_o,lr),lr|=_;return Mn(l,u,O,y),u.child}function Pw(l,u){var y=u.ref;(l===null&&y!==null||l!==null&&l.ref!==y)&&(u.flags|=512,u.flags|=2097152)}function sp(l,u,y,_,O){var M=Hn(y)?oa:An.current;return M=po(u,M),jo(u,O),y=Qm(l,u,y,_,M,O),_=Ym(),l!==null&&!Wn?(u.updateQueue=l.updateQueue,u.flags&=-2053,l.lanes&=~O,Di(l,u,O)):(qt&&_&&Pm(u),u.flags|=1,Mn(l,u,y,O),u.child)}function Dw(l,u,y,_,O){if(Hn(y)){var M=!0;md(u)}else M=!1;if(jo(u,O),u.stateNode===null)Pd(l,u),jw(u,y,_),np(u,y,_,O),_=!0;else if(l===null){var $=u.stateNode,te=u.memoizedProps;$.props=te;var ie=$.context,fe=y.contextType;typeof fe=="object"&&fe!==null?fe=yr(fe):(fe=Hn(y)?oa:An.current,fe=po(u,fe));var ke=y.getDerivedStateFromProps,Ne=typeof ke=="function"||typeof $.getSnapshotBeforeUpdate=="function";Ne||typeof $.UNSAFE_componentWillReceiveProps!="function"&&typeof $.componentWillReceiveProps!="function"||(te!==_||ie!==fe)&&ww(u,$,_,fe),ms=!1;var we=u.memoizedState;$.state=we,kd(u,_,$,O),ie=u.memoizedState,te!==_||we!==ie||$n.current||ms?(typeof ke=="function"&&(tp(u,y,ke,_),ie=u.memoizedState),(te=ms||bw(u,y,te,_,we,ie,fe))?(Ne||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=fe,_=te):(typeof $.componentDidMount=="function"&&(u.flags|=4194308),_=!1)}else{$=u.stateNode,Qj(l,u),te=u.memoizedProps,fe=u.type===u.elementType?te:Ir(u.type,te),$.props=fe,Ne=u.pendingProps,we=$.context,ie=y.contextType,typeof ie=="object"&&ie!==null?ie=yr(ie):(ie=Hn(y)?oa:An.current,ie=po(u,ie));var Re=y.getDerivedStateFromProps;(ke=typeof Re=="function"||typeof $.getSnapshotBeforeUpdate=="function")||typeof $.UNSAFE_componentWillReceiveProps!="function"&&typeof $.componentWillReceiveProps!="function"||(te!==Ne||we!==ie)&&ww(u,$,_,ie),ms=!1,we=u.memoizedState,$.state=we,kd(u,_,$,O);var Be=u.memoizedState;te!==Ne||we!==Be||$n.current||ms?(typeof Re=="function"&&(tp(u,y,Re,_),Be=u.memoizedState),(fe=ms||bw(u,y,fe,_,we,Be,ie)||!1)?(ke||typeof $.UNSAFE_componentWillUpdate!="function"&&typeof $.componentWillUpdate!="function"||(typeof $.componentWillUpdate=="function"&&$.componentWillUpdate(_,Be,ie),typeof $.UNSAFE_componentWillUpdate=="function"&&$.UNSAFE_componentWillUpdate(_,Be,ie)),typeof $.componentDidUpdate=="function"&&(u.flags|=4),typeof $.getSnapshotBeforeUpdate=="function"&&(u.flags|=1024)):(typeof $.componentDidUpdate!="function"||te===l.memoizedProps&&we===l.memoizedState||(u.flags|=4),typeof $.getSnapshotBeforeUpdate!="function"||te===l.memoizedProps&&we===l.memoizedState||(u.flags|=1024),u.memoizedProps=_,u.memoizedState=Be),$.props=_,$.state=Be,$.context=ie,_=fe):(typeof $.componentDidUpdate!="function"||te===l.memoizedProps&&we===l.memoizedState||(u.flags|=4),typeof $.getSnapshotBeforeUpdate!="function"||te===l.memoizedProps&&we===l.memoizedState||(u.flags|=1024),_=!1)}return ap(l,u,y,_,M,O)}function ap(l,u,y,_,O,M){Pw(l,u);var $=(u.flags&128)!==0;if(!_&&!$)return O&&Lj(u,y,!1),Di(l,u,M);_=u.stateNode,wP.current=u;var te=$&&typeof y.getDerivedStateFromError!="function"?null:_.render();return u.flags|=1,l!==null&&$?(u.child=yo(u,l.child,null,M),u.child=yo(u,null,te,M)):Mn(l,u,te,M),u.memoizedState=_.state,O&&Lj(u,y,!0),u.child}function Iw(l){var u=l.stateNode;u.pendingContext?Fj(l,u.pendingContext,u.pendingContext!==u.context):u.context&&Fj(l,u.context,!1),Um(l,u.containerInfo)}function Rw(l,u,y,_,O){return vo(),Fm(O),u.flags|=256,Mn(l,u,y,_),u.child}var op={dehydrated:null,treeContext:null,retryLane:0};function lp(l){return{baseLanes:l,cachePool:null,transitions:null}}function Fw(l,u,y){var _=u.pendingProps,O=Wt.current,M=!1,$=(u.flags&128)!==0,te;if((te=$)||(te=l!==null&&l.memoizedState===null?!1:(O&2)!==0),te?(M=!0,u.flags&=-129):(l===null||l.memoizedState!==null)&&(O|=1),It(Wt,O&1),l===null)return Rm(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=$d($,_,0,null),l=xa(l,_,y,null),M.return=u,l.return=u,M.sibling=l,u.child=M,u.child.memoizedState=lp(y),u.memoizedState=op,l):cp(u,$));if(O=l.memoizedState,O!==null&&(te=O.dehydrated,te!==null))return kP(l,u,$,_,te,O,y);if(M){M=_.fallback,$=u.mode,O=l.child,te=O.sibling;var ie={mode:"hidden",children:_.children};return($&1)===0&&u.child!==O?(_=u.child,_.childLanes=0,_.pendingProps=ie,u.deletions=null):(_=js(O,ie),_.subtreeFlags=O.subtreeFlags&14680064),te!==null?M=js(te,M):(M=xa(M,$,y,null),M.flags|=2),M.return=u,_.return=u,_.sibling=M,u.child=_,_=M,M=u.child,$=l.child.memoizedState,$=$===null?lp(y):{baseLanes:$.baseLanes|y,cachePool:null,transitions:$.transitions},M.memoizedState=$,M.childLanes=l.childLanes&~y,u.memoizedState=op,_}return M=l.child,l=M.sibling,_=js(M,{mode:"visible",children:_.children}),(u.mode&1)===0&&(_.lanes=y),_.return=u,_.sibling=null,l!==null&&(y=u.deletions,y===null?(u.deletions=[l],u.flags|=16):y.push(l)),u.child=_,u.memoizedState=null,_}function cp(l,u){return u=$d({mode:"visible",children:u},l.mode,0,null),u.return=l,l.child=u}function Od(l,u,y,_){return _!==null&&Fm(_),yo(u,l.child,null,y),l=cp(u,u.pendingProps.children),l.flags|=2,u.memoizedState=null,l}function kP(l,u,y,_,O,M,$){if(y)return u.flags&256?(u.flags&=-257,_=rp(Error(r(422))),Od(l,u,$,_)):u.memoizedState!==null?(u.child=l.child,u.flags|=128,null):(M=_.fallback,O=u.mode,_=$d({mode:"visible",children:_.children},O,0,null),M=xa(M,O,$,null),M.flags|=2,_.return=u,M.return=u,_.sibling=M,u.child=_,(u.mode&1)!==0&&yo(u,l.child,null,$),u.child.memoizedState=lp($),u.memoizedState=op,M);if((u.mode&1)===0)return Od(l,u,$,null);if(O.data==="$!"){if(_=O.nextSibling&&O.nextSibling.dataset,_)var te=_.dgst;return _=te,M=Error(r(419)),_=rp(M,_,void 0),Od(l,u,$,_)}if(te=($&l.childLanes)!==0,Wn||te){if(_=pn,_!==null){switch($&-$){case 4:O=2;break;case 16:O=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:O=32;break;case 536870912:O=268435456;break;default:O=0}O=(O&(_.suspendedLanes|$))!==0?0:O,O!==0&&O!==M.retryLane&&(M.retryLane=O,Oi(l,O),Mr(_,l,O,-1))}return _p(),_=rp(Error(r(421))),Od(l,u,$,_)}return O.data==="$?"?(u.flags|=128,u.child=l.child,u=FP.bind(null,l),O._reactRetry=u,null):(l=M.treeContext,or=us(O.nextSibling),ar=u,qt=!0,Dr=null,l!==null&&(xr[vr++]=Ei,xr[vr++]=Ti,xr[vr++]=la,Ei=l.id,Ti=l.overflow,la=u),u=cp(u,_.children),u.flags|=4096,u)}function Mw(l,u,y){l.lanes|=u;var _=l.alternate;_!==null&&(_.lanes|=u),zm(l.return,u,y)}function up(l,u,y,_,O){var M=l.memoizedState;M===null?l.memoizedState={isBackwards:u,rendering:null,renderingStartTime:0,last:_,tail:y,tailMode:O}:(M.isBackwards=u,M.rendering=null,M.renderingStartTime=0,M.last=_,M.tail=y,M.tailMode=O)}function Lw(l,u,y){var _=u.pendingProps,O=_.revealOrder,M=_.tail;if(Mn(l,u,_.children,y),_=Wt.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&&Mw(l,y,u);else if(l.tag===19)Mw(l,y,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(It(Wt,_),(u.mode&1)===0)u.memoizedState=null;else switch(O){case"forwards":for(y=u.child,O=null;y!==null;)l=y.alternate,l!==null&&Nd(l)===null&&(O=y),y=y.sibling;y=O,y===null?(O=u.child,u.child=null):(O=y.sibling,y.sibling=null),up(u,!1,O,y,M);break;case"backwards":for(y=null,O=u.child,u.child=null;O!==null;){if(l=O.alternate,l!==null&&Nd(l)===null){u.child=O;break}l=O.sibling,O.sibling=y,y=O,O=l}up(u,!0,y,null,M);break;case"together":up(u,!1,null,null,void 0);break;default:u.memoizedState=null}return u.child}function Pd(l,u){(u.mode&1)===0&&l!==null&&(l.alternate=null,u.alternate=null,u.flags|=2)}function Di(l,u,y){if(l!==null&&(u.dependencies=l.dependencies),fa|=u.lanes,(y&u.childLanes)===0)return null;if(l!==null&&u.child!==l.child)throw Error(r(153));if(u.child!==null){for(l=u.child,y=js(l,l.pendingProps),u.child=y,y.return=u;l.sibling!==null;)l=l.sibling,y=y.sibling=js(l,l.pendingProps),y.return=u;y.sibling=null}return u.child}function NP(l,u,y){switch(u.tag){case 3:Iw(u),vo();break;case 5:Jj(u);break;case 1:Hn(u.type)&&md(u);break;case 4:Um(u,u.stateNode.containerInfo);break;case 10:var _=u.type._context,O=u.memoizedProps.value;It(bd,_._currentValue),_._currentValue=O;break;case 13:if(_=u.memoizedState,_!==null)return _.dehydrated!==null?(It(Wt,Wt.current&1),u.flags|=128,null):(y&u.child.childLanes)!==0?Fw(l,u,y):(It(Wt,Wt.current&1),l=Di(l,u,y),l!==null?l.sibling:null);It(Wt,Wt.current&1);break;case 19:if(_=(y&u.childLanes)!==0,(l.flags&128)!==0){if(_)return Lw(l,u,y);u.flags|=128}if(O=u.memoizedState,O!==null&&(O.rendering=null,O.tail=null,O.lastEffect=null),It(Wt,Wt.current),_)break;return null;case 22:case 23:return u.lanes=0,Ow(l,u,y)}return Di(l,u,y)}var Bw,dp,zw,qw;Bw=function(l,u){for(var y=u.child;y!==null;){if(y.tag===5||y.tag===6)l.appendChild(y.stateNode);else if(y.tag!==4&&y.child!==null){y.child.return=y,y=y.child;continue}if(y===u)break;for(;y.sibling===null;){if(y.return===null||y.return===u)return;y=y.return}y.sibling.return=y.return,y=y.sibling}},dp=function(){},zw=function(l,u,y,_){var O=l.memoizedProps;if(O!==_){l=u.stateNode,da(Jr.current);var M=null;switch(y){case"input":O=Te(l,O),_=Te(l,_),M=[];break;case"select":O=P({},O,{value:void 0}),_=P({},_,{value:void 0}),M=[];break;case"textarea":O=je(l,O),_=je(l,_),M=[];break;default:typeof O.onClick!="function"&&typeof _.onClick=="function"&&(l.onclick=dd)}bn(y,_);var $;y=null;for(fe in O)if(!_.hasOwnProperty(fe)&&O.hasOwnProperty(fe)&&O[fe]!=null)if(fe==="style"){var te=O[fe];for($ in te)te.hasOwnProperty($)&&(y||(y={}),y[$]="")}else fe!=="dangerouslySetInnerHTML"&&fe!=="children"&&fe!=="suppressContentEditableWarning"&&fe!=="suppressHydrationWarning"&&fe!=="autoFocus"&&(s.hasOwnProperty(fe)?M||(M=[]):(M=M||[]).push(fe,null));for(fe in _){var ie=_[fe];if(te=O!=null?O[fe]:void 0,_.hasOwnProperty(fe)&&ie!==te&&(ie!=null||te!=null))if(fe==="style")if(te){for($ in te)!te.hasOwnProperty($)||ie&&ie.hasOwnProperty($)||(y||(y={}),y[$]="");for($ in ie)ie.hasOwnProperty($)&&te[$]!==ie[$]&&(y||(y={}),y[$]=ie[$])}else y||(M||(M=[]),M.push(fe,y)),y=ie;else fe==="dangerouslySetInnerHTML"?(ie=ie?ie.__html:void 0,te=te?te.__html:void 0,ie!=null&&te!==ie&&(M=M||[]).push(fe,ie)):fe==="children"?typeof ie!="string"&&typeof ie!="number"||(M=M||[]).push(fe,""+ie):fe!=="suppressContentEditableWarning"&&fe!=="suppressHydrationWarning"&&(s.hasOwnProperty(fe)?(ie!=null&&fe==="onScroll"&&Lt("scroll",l),M||te===ie||(M=[])):(M=M||[]).push(fe,ie))}y&&(M=M||[]).push("style",y);var fe=M;(u.updateQueue=fe)&&(u.flags|=4)}},qw=function(l,u,y,_){y!==_&&(u.flags|=4)};function uc(l,u){if(!qt)switch(l.tailMode){case"hidden":u=l.tail;for(var y=null;u!==null;)u.alternate!==null&&(y=u),u=u.sibling;y===null?l.tail=null:y.sibling=null;break;case"collapsed":y=l.tail;for(var _=null;y!==null;)y.alternate!==null&&(_=y),y=y.sibling;_===null?u||l.tail===null?l.tail=null:l.tail.sibling=null:_.sibling=null}}function En(l){var u=l.alternate!==null&&l.alternate.child===l.child,y=0,_=0;if(u)for(var O=l.child;O!==null;)y|=O.lanes|O.childLanes,_|=O.subtreeFlags&14680064,_|=O.flags&14680064,O.return=l,O=O.sibling;else for(O=l.child;O!==null;)y|=O.lanes|O.childLanes,_|=O.subtreeFlags,_|=O.flags,O.return=l,O=O.sibling;return l.subtreeFlags|=_,l.childLanes=y,u}function _P(l,u,y){var _=u.pendingProps;switch(Dm(u),u.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return En(u),null;case 1:return Hn(u.type)&&fd(),En(u),null;case 3:return _=u.stateNode,wo(),Bt($n),Bt(An),Wm(),_.pendingContext&&(_.context=_.pendingContext,_.pendingContext=null),(l===null||l.child===null)&&(vd(u)?u.flags|=4:l===null||l.memoizedState.isDehydrated&&(u.flags&256)===0||(u.flags|=1024,Dr!==null&&(wp(Dr),Dr=null))),dp(l,u),En(u),null;case 5:$m(u);var O=da(sc.current);if(y=u.type,l!==null&&u.stateNode!=null)zw(l,u,y,_,O),l.ref!==u.ref&&(u.flags|=512,u.flags|=2097152);else{if(!_){if(u.stateNode===null)throw Error(r(166));return En(u),null}if(l=da(Jr.current),vd(u)){_=u.stateNode,y=u.type;var M=u.memoizedProps;switch(_[Xr]=u,_[ec]=M,l=(u.mode&1)!==0,y){case"dialog":Lt("cancel",_),Lt("close",_);break;case"iframe":case"object":case"embed":Lt("load",_);break;case"video":case"audio":for(O=0;O<Xl.length;O++)Lt(Xl[O],_);break;case"source":Lt("error",_);break;case"img":case"image":case"link":Lt("error",_),Lt("load",_);break;case"details":Lt("toggle",_);break;case"input":We(_,M),Lt("invalid",_);break;case"select":_._wrapperState={wasMultiple:!!M.multiple},Lt("invalid",_);break;case"textarea":tt(_,M),Lt("invalid",_)}bn(y,M),O=null;for(var $ in M)if(M.hasOwnProperty($)){var te=M[$];$==="children"?typeof te=="string"?_.textContent!==te&&(M.suppressHydrationWarning!==!0&&ud(_.textContent,te,l),O=["children",te]):typeof te=="number"&&_.textContent!==""+te&&(M.suppressHydrationWarning!==!0&&ud(_.textContent,te,l),O=["children",""+te]):s.hasOwnProperty($)&&te!=null&&$==="onScroll"&&Lt("scroll",_)}switch(y){case"input":ve(_),ge(_,M,!0);break;case"textarea":ve(_),rt(_);break;case"select":case"option":break;default:typeof M.onClick=="function"&&(_.onclick=dd)}_=O,u.updateQueue=_,_!==null&&(u.flags|=4)}else{$=O.nodeType===9?O:O.ownerDocument,l==="http://www.w3.org/1999/xhtml"&&(l=xe(y)),l==="http://www.w3.org/1999/xhtml"?y==="script"?(l=$.createElement("div"),l.innerHTML="<script><\/script>",l=l.removeChild(l.firstChild)):typeof _.is=="string"?l=$.createElement(y,{is:_.is}):(l=$.createElement(y),y==="select"&&($=l,_.multiple?$.multiple=!0:_.size&&($.size=_.size))):l=$.createElementNS(l,y),l[Xr]=u,l[ec]=_,Bw(l,u,!1,!1),u.stateNode=l;e:{switch($=Qr(y,_),y){case"dialog":Lt("cancel",l),Lt("close",l),O=_;break;case"iframe":case"object":case"embed":Lt("load",l),O=_;break;case"video":case"audio":for(O=0;O<Xl.length;O++)Lt(Xl[O],l);O=_;break;case"source":Lt("error",l),O=_;break;case"img":case"image":case"link":Lt("error",l),Lt("load",l),O=_;break;case"details":Lt("toggle",l),O=_;break;case"input":We(l,_),O=Te(l,_),Lt("invalid",l);break;case"option":O=_;break;case"select":l._wrapperState={wasMultiple:!!_.multiple},O=P({},_,{value:void 0}),Lt("invalid",l);break;case"textarea":tt(l,_),O=je(l,_),Lt("invalid",l);break;default:O=_}bn(y,O),te=O;for(M in te)if(te.hasOwnProperty(M)){var ie=te[M];M==="style"?rs(l,ie):M==="dangerouslySetInnerHTML"?(ie=ie?ie.__html:void 0,ie!=null&&it(l,ie)):M==="children"?typeof ie=="string"?(y!=="textarea"||ie!=="")&&He(l,ie):typeof ie=="number"&&He(l,""+ie):M!=="suppressContentEditableWarning"&&M!=="suppressHydrationWarning"&&M!=="autoFocus"&&(s.hasOwnProperty(M)?ie!=null&&M==="onScroll"&&Lt("scroll",l):ie!=null&&w(l,M,ie,$))}switch(y){case"input":ve(l),ge(l,_,!1);break;case"textarea":ve(l),rt(l);break;case"option":_.value!=null&&l.setAttribute("value",""+ee(_.value));break;case"select":l.multiple=!!_.multiple,M=_.value,M!=null?Pe(l,!!_.multiple,M,!1):_.defaultValue!=null&&Pe(l,!!_.multiple,_.defaultValue,!0);break;default:typeof O.onClick=="function"&&(l.onclick=dd)}switch(y){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 En(u),null;case 6:if(l&&u.stateNode!=null)qw(l,u,l.memoizedProps,_);else{if(typeof _!="string"&&u.stateNode===null)throw Error(r(166));if(y=da(sc.current),da(Jr.current),vd(u)){if(_=u.stateNode,y=u.memoizedProps,_[Xr]=u,(M=_.nodeValue!==y)&&(l=ar,l!==null))switch(l.tag){case 3:ud(_.nodeValue,y,(l.mode&1)!==0);break;case 5:l.memoizedProps.suppressHydrationWarning!==!0&&ud(_.nodeValue,y,(l.mode&1)!==0)}M&&(u.flags|=4)}else _=(y.nodeType===9?y:y.ownerDocument).createTextNode(_),_[Xr]=u,u.stateNode=_}return En(u),null;case 13:if(Bt(Wt),_=u.memoizedState,l===null||l.memoizedState!==null&&l.memoizedState.dehydrated!==null){if(qt&&or!==null&&(u.mode&1)!==0&&(u.flags&128)===0)$j(),vo(),u.flags|=98560,M=!1;else if(M=vd(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 vo(),(u.flags&128)===0&&(u.memoizedState=null),u.flags|=4;En(u),M=!1}else Dr!==null&&(wp(Dr),Dr=null),M=!0;if(!M)return u.flags&65536?u:null}return(u.flags&128)!==0?(u.lanes=y,u):(_=_!==null,_!==(l!==null&&l.memoizedState!==null)&&_&&(u.child.flags|=8192,(u.mode&1)!==0&&(l===null||(Wt.current&1)!==0?dn===0&&(dn=3):_p())),u.updateQueue!==null&&(u.flags|=4),En(u),null);case 4:return wo(),dp(l,u),l===null&&Jl(u.stateNode.containerInfo),En(u),null;case 10:return Bm(u.type._context),En(u),null;case 17:return Hn(u.type)&&fd(),En(u),null;case 19:if(Bt(Wt),M=u.memoizedState,M===null)return En(u),null;if(_=(u.flags&128)!==0,$=M.rendering,$===null)if(_)uc(M,!1);else{if(dn!==0||l!==null&&(l.flags&128)!==0)for(l=u.child;l!==null;){if($=Nd(l),$!==null){for(u.flags|=128,uc(M,!1),_=$.updateQueue,_!==null&&(u.updateQueue=_,u.flags|=4),u.subtreeFlags=0,_=y,y=u.child;y!==null;)M=y,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}),y=y.sibling;return It(Wt,Wt.current&1|2),u.child}l=l.sibling}M.tail!==null&&tn()>So&&(u.flags|=128,_=!0,uc(M,!1),u.lanes=4194304)}else{if(!_)if(l=Nd($),l!==null){if(u.flags|=128,_=!0,y=l.updateQueue,y!==null&&(u.updateQueue=y,u.flags|=4),uc(M,!0),M.tail===null&&M.tailMode==="hidden"&&!$.alternate&&!qt)return En(u),null}else 2*tn()-M.renderingStartTime>So&&y!==1073741824&&(u.flags|=128,_=!0,uc(M,!1),u.lanes=4194304);M.isBackwards?($.sibling=u.child,u.child=$):(y=M.last,y!==null?y.sibling=$:u.child=$,M.last=$)}return M.tail!==null?(u=M.tail,M.rendering=u,M.tail=u.sibling,M.renderingStartTime=tn(),u.sibling=null,y=Wt.current,It(Wt,_?y&1|2:y&1),u):(En(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&&(En(u),u.subtreeFlags&6&&(u.flags|=8192)):En(u),null;case 24:return null;case 25:return null}throw Error(r(156,u.tag))}function SP(l,u){switch(Dm(u),u.tag){case 1:return Hn(u.type)&&fd(),l=u.flags,l&65536?(u.flags=l&-65537|128,u):null;case 3:return wo(),Bt($n),Bt(An),Wm(),l=u.flags,(l&65536)!==0&&(l&128)===0?(u.flags=l&-65537|128,u):null;case 5:return $m(u),null;case 13:if(Bt(Wt),l=u.memoizedState,l!==null&&l.dehydrated!==null){if(u.alternate===null)throw Error(r(340));vo()}return l=u.flags,l&65536?(u.flags=l&-65537|128,u):null;case 19:return Bt(Wt),null;case 4:return wo(),null;case 10:return Bm(u.type._context),null;case 22:case 23:return Np(),null;case 24:return null;default:return null}}var Dd=!1,Tn=!1,AP=typeof WeakSet=="function"?WeakSet:Set,Me=null;function No(l,u){var y=l.ref;if(y!==null)if(typeof y=="function")try{y(null)}catch(_){Jt(l,u,_)}else y.current=null}function hp(l,u,y){try{y()}catch(_){Jt(l,u,_)}}var Vw=!1;function CP(l,u){if(Nm=Zu,l=bj(),gm(l)){if("selectionStart"in l)var y={start:l.selectionStart,end:l.selectionEnd};else e:{y=(y=l.ownerDocument)&&y.defaultView||window;var _=y.getSelection&&y.getSelection();if(_&&_.rangeCount!==0){y=_.anchorNode;var O=_.anchorOffset,M=_.focusNode;_=_.focusOffset;try{y.nodeType,M.nodeType}catch{y=null;break e}var $=0,te=-1,ie=-1,fe=0,ke=0,Ne=l,we=null;t:for(;;){for(var Re;Ne!==y||O!==0&&Ne.nodeType!==3||(te=$+O),Ne!==M||_!==0&&Ne.nodeType!==3||(ie=$+_),Ne.nodeType===3&&($+=Ne.nodeValue.length),(Re=Ne.firstChild)!==null;)we=Ne,Ne=Re;for(;;){if(Ne===l)break t;if(we===y&&++fe===O&&(te=$),we===M&&++ke===_&&(ie=$),(Re=Ne.nextSibling)!==null)break;Ne=we,we=Ne.parentNode}Ne=Re}y=te===-1||ie===-1?null:{start:te,end:ie}}else y=null}y=y||{start:0,end:0}}else y=null;for(_m={focusedElem:l,selectionRange:y},Zu=!1,Me=u;Me!==null;)if(u=Me,l=u.child,(u.subtreeFlags&1028)!==0&&l!==null)l.return=u,Me=l;else for(;Me!==null;){u=Me;try{var Be=u.alternate;if((u.flags&1024)!==0)switch(u.tag){case 0:case 11:case 15:break;case 1:if(Be!==null){var Ve=Be.memoizedProps,nn=Be.memoizedState,ue=u.stateNode,oe=ue.getSnapshotBeforeUpdate(u.elementType===u.type?Ve:Ir(u.type,Ve),nn);ue.__reactInternalSnapshotBeforeUpdate=oe}break;case 3:var he=u.stateNode.containerInfo;he.nodeType===1?he.textContent="":he.nodeType===9&&he.documentElement&&he.removeChild(he.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(r(163))}}catch(Ee){Jt(u,u.return,Ee)}if(l=u.sibling,l!==null){l.return=u.return,Me=l;break}Me=u.return}return Be=Vw,Vw=!1,Be}function dc(l,u,y){var _=u.updateQueue;if(_=_!==null?_.lastEffect:null,_!==null){var O=_=_.next;do{if((O.tag&l)===l){var M=O.destroy;O.destroy=void 0,M!==void 0&&hp(u,y,M)}O=O.next}while(O!==_)}}function Id(l,u){if(u=u.updateQueue,u=u!==null?u.lastEffect:null,u!==null){var y=u=u.next;do{if((y.tag&l)===l){var _=y.create;y.destroy=_()}y=y.next}while(y!==u)}}function fp(l){var u=l.ref;if(u!==null){var y=l.stateNode;switch(l.tag){case 5:l=y;break;default:l=y}typeof u=="function"?u(l):u.current=l}}function Uw(l){var u=l.alternate;u!==null&&(l.alternate=null,Uw(u)),l.child=null,l.deletions=null,l.sibling=null,l.tag===5&&(u=l.stateNode,u!==null&&(delete u[Xr],delete u[ec],delete u[Em],delete u[uP],delete u[dP])),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 $w(l){return l.tag===5||l.tag===3||l.tag===4}function Hw(l){e:for(;;){for(;l.sibling===null;){if(l.return===null||$w(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 mp(l,u,y){var _=l.tag;if(_===5||_===6)l=l.stateNode,u?y.nodeType===8?y.parentNode.insertBefore(l,u):y.insertBefore(l,u):(y.nodeType===8?(u=y.parentNode,u.insertBefore(l,y)):(u=y,u.appendChild(l)),y=y._reactRootContainer,y!=null||u.onclick!==null||(u.onclick=dd));else if(_!==4&&(l=l.child,l!==null))for(mp(l,u,y),l=l.sibling;l!==null;)mp(l,u,y),l=l.sibling}function pp(l,u,y){var _=l.tag;if(_===5||_===6)l=l.stateNode,u?y.insertBefore(l,u):y.appendChild(l);else if(_!==4&&(l=l.child,l!==null))for(pp(l,u,y),l=l.sibling;l!==null;)pp(l,u,y),l=l.sibling}var jn=null,Rr=!1;function gs(l,u,y){for(y=y.child;y!==null;)Ww(l,u,y),y=y.sibling}function Ww(l,u,y){if(Yr&&typeof Yr.onCommitFiberUnmount=="function")try{Yr.onCommitFiberUnmount(Ku,y)}catch{}switch(y.tag){case 5:Tn||No(y,u);case 6:var _=jn,O=Rr;jn=null,gs(l,u,y),jn=_,Rr=O,jn!==null&&(Rr?(l=jn,y=y.stateNode,l.nodeType===8?l.parentNode.removeChild(y):l.removeChild(y)):jn.removeChild(y.stateNode));break;case 18:jn!==null&&(Rr?(l=jn,y=y.stateNode,l.nodeType===8?Cm(l.parentNode,y):l.nodeType===1&&Cm(l,y),Ul(l)):Cm(jn,y.stateNode));break;case 4:_=jn,O=Rr,jn=y.stateNode.containerInfo,Rr=!0,gs(l,u,y),jn=_,Rr=O;break;case 0:case 11:case 14:case 15:if(!Tn&&(_=y.updateQueue,_!==null&&(_=_.lastEffect,_!==null))){O=_=_.next;do{var M=O,$=M.destroy;M=M.tag,$!==void 0&&((M&2)!==0||(M&4)!==0)&&hp(y,u,$),O=O.next}while(O!==_)}gs(l,u,y);break;case 1:if(!Tn&&(No(y,u),_=y.stateNode,typeof _.componentWillUnmount=="function"))try{_.props=y.memoizedProps,_.state=y.memoizedState,_.componentWillUnmount()}catch(te){Jt(y,u,te)}gs(l,u,y);break;case 21:gs(l,u,y);break;case 22:y.mode&1?(Tn=(_=Tn)||y.memoizedState!==null,gs(l,u,y),Tn=_):gs(l,u,y);break;default:gs(l,u,y)}}function Kw(l){var u=l.updateQueue;if(u!==null){l.updateQueue=null;var y=l.stateNode;y===null&&(y=l.stateNode=new AP),u.forEach(function(_){var O=MP.bind(null,l,_);y.has(_)||(y.add(_),_.then(O,O))})}}function Fr(l,u){var y=u.deletions;if(y!==null)for(var _=0;_<y.length;_++){var O=y[_];try{var M=l,$=u,te=$;e:for(;te!==null;){switch(te.tag){case 5:jn=te.stateNode,Rr=!1;break e;case 3:jn=te.stateNode.containerInfo,Rr=!0;break e;case 4:jn=te.stateNode.containerInfo,Rr=!0;break e}te=te.return}if(jn===null)throw Error(r(160));Ww(M,$,O),jn=null,Rr=!1;var ie=O.alternate;ie!==null&&(ie.return=null),O.return=null}catch(fe){Jt(O,u,fe)}}if(u.subtreeFlags&12854)for(u=u.child;u!==null;)Gw(u,l),u=u.sibling}function Gw(l,u){var y=l.alternate,_=l.flags;switch(l.tag){case 0:case 11:case 14:case 15:if(Fr(u,l),ei(l),_&4){try{dc(3,l,l.return),Id(3,l)}catch(Ve){Jt(l,l.return,Ve)}try{dc(5,l,l.return)}catch(Ve){Jt(l,l.return,Ve)}}break;case 1:Fr(u,l),ei(l),_&512&&y!==null&&No(y,y.return);break;case 5:if(Fr(u,l),ei(l),_&512&&y!==null&&No(y,y.return),l.flags&32){var O=l.stateNode;try{He(O,"")}catch(Ve){Jt(l,l.return,Ve)}}if(_&4&&(O=l.stateNode,O!=null)){var M=l.memoizedProps,$=y!==null?y.memoizedProps:M,te=l.type,ie=l.updateQueue;if(l.updateQueue=null,ie!==null)try{te==="input"&&M.type==="radio"&&M.name!=null&&ut(O,M),Qr(te,$);var fe=Qr(te,M);for($=0;$<ie.length;$+=2){var ke=ie[$],Ne=ie[$+1];ke==="style"?rs(O,Ne):ke==="dangerouslySetInnerHTML"?it(O,Ne):ke==="children"?He(O,Ne):w(O,ke,Ne,fe)}switch(te){case"input":nt(O,M);break;case"textarea":et(O,M);break;case"select":var we=O._wrapperState.wasMultiple;O._wrapperState.wasMultiple=!!M.multiple;var Re=M.value;Re!=null?Pe(O,!!M.multiple,Re,!1):we!==!!M.multiple&&(M.defaultValue!=null?Pe(O,!!M.multiple,M.defaultValue,!0):Pe(O,!!M.multiple,M.multiple?[]:"",!1))}O[ec]=M}catch(Ve){Jt(l,l.return,Ve)}}break;case 6:if(Fr(u,l),ei(l),_&4){if(l.stateNode===null)throw Error(r(162));O=l.stateNode,M=l.memoizedProps;try{O.nodeValue=M}catch(Ve){Jt(l,l.return,Ve)}}break;case 3:if(Fr(u,l),ei(l),_&4&&y!==null&&y.memoizedState.isDehydrated)try{Ul(u.containerInfo)}catch(Ve){Jt(l,l.return,Ve)}break;case 4:Fr(u,l),ei(l);break;case 13:Fr(u,l),ei(l),O=l.child,O.flags&8192&&(M=O.memoizedState!==null,O.stateNode.isHidden=M,!M||O.alternate!==null&&O.alternate.memoizedState!==null||(vp=tn())),_&4&&Kw(l);break;case 22:if(ke=y!==null&&y.memoizedState!==null,l.mode&1?(Tn=(fe=Tn)||ke,Fr(u,l),Tn=fe):Fr(u,l),ei(l),_&8192){if(fe=l.memoizedState!==null,(l.stateNode.isHidden=fe)&&!ke&&(l.mode&1)!==0)for(Me=l,ke=l.child;ke!==null;){for(Ne=Me=ke;Me!==null;){switch(we=Me,Re=we.child,we.tag){case 0:case 11:case 14:case 15:dc(4,we,we.return);break;case 1:No(we,we.return);var Be=we.stateNode;if(typeof Be.componentWillUnmount=="function"){_=we,y=we.return;try{u=_,Be.props=u.memoizedProps,Be.state=u.memoizedState,Be.componentWillUnmount()}catch(Ve){Jt(_,y,Ve)}}break;case 5:No(we,we.return);break;case 22:if(we.memoizedState!==null){Xw(Ne);continue}}Re!==null?(Re.return=we,Me=Re):Xw(Ne)}ke=ke.sibling}e:for(ke=null,Ne=l;;){if(Ne.tag===5){if(ke===null){ke=Ne;try{O=Ne.stateNode,fe?(M=O.style,typeof M.setProperty=="function"?M.setProperty("display","none","important"):M.display="none"):(te=Ne.stateNode,ie=Ne.memoizedProps.style,$=ie!=null&&ie.hasOwnProperty("display")?ie.display:null,te.style.display=Un("display",$))}catch(Ve){Jt(l,l.return,Ve)}}}else if(Ne.tag===6){if(ke===null)try{Ne.stateNode.nodeValue=fe?"":Ne.memoizedProps}catch(Ve){Jt(l,l.return,Ve)}}else if((Ne.tag!==22&&Ne.tag!==23||Ne.memoizedState===null||Ne===l)&&Ne.child!==null){Ne.child.return=Ne,Ne=Ne.child;continue}if(Ne===l)break e;for(;Ne.sibling===null;){if(Ne.return===null||Ne.return===l)break e;ke===Ne&&(ke=null),Ne=Ne.return}ke===Ne&&(ke=null),Ne.sibling.return=Ne.return,Ne=Ne.sibling}}break;case 19:Fr(u,l),ei(l),_&4&&Kw(l);break;case 21:break;default:Fr(u,l),ei(l)}}function ei(l){var u=l.flags;if(u&2){try{e:{for(var y=l.return;y!==null;){if($w(y)){var _=y;break e}y=y.return}throw Error(r(160))}switch(_.tag){case 5:var O=_.stateNode;_.flags&32&&(He(O,""),_.flags&=-33);var M=Hw(l);pp(l,M,O);break;case 3:case 4:var $=_.stateNode.containerInfo,te=Hw(l);mp(l,te,$);break;default:throw Error(r(161))}}catch(ie){Jt(l,l.return,ie)}l.flags&=-3}u&4096&&(l.flags&=-4097)}function EP(l,u,y){Me=l,Qw(l)}function Qw(l,u,y){for(var _=(l.mode&1)!==0;Me!==null;){var O=Me,M=O.child;if(O.tag===22&&_){var $=O.memoizedState!==null||Dd;if(!$){var te=O.alternate,ie=te!==null&&te.memoizedState!==null||Tn;te=Dd;var fe=Tn;if(Dd=$,(Tn=ie)&&!fe)for(Me=O;Me!==null;)$=Me,ie=$.child,$.tag===22&&$.memoizedState!==null?Jw(O):ie!==null?(ie.return=$,Me=ie):Jw(O);for(;M!==null;)Me=M,Qw(M),M=M.sibling;Me=O,Dd=te,Tn=fe}Yw(l)}else(O.subtreeFlags&8772)!==0&&M!==null?(M.return=O,Me=M):Yw(l)}}function Yw(l){for(;Me!==null;){var u=Me;if((u.flags&8772)!==0){var y=u.alternate;try{if((u.flags&8772)!==0)switch(u.tag){case 0:case 11:case 15:Tn||Id(5,u);break;case 1:var _=u.stateNode;if(u.flags&4&&!Tn)if(y===null)_.componentDidMount();else{var O=u.elementType===u.type?y.memoizedProps:Ir(u.type,y.memoizedProps);_.componentDidUpdate(O,y.memoizedState,_.__reactInternalSnapshotBeforeUpdate)}var M=u.updateQueue;M!==null&&Xj(u,M,_);break;case 3:var $=u.updateQueue;if($!==null){if(y=null,u.child!==null)switch(u.child.tag){case 5:y=u.child.stateNode;break;case 1:y=u.child.stateNode}Xj(u,$,y)}break;case 5:var te=u.stateNode;if(y===null&&u.flags&4){y=te;var ie=u.memoizedProps;switch(u.type){case"button":case"input":case"select":case"textarea":ie.autoFocus&&y.focus();break;case"img":ie.src&&(y.src=ie.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(u.memoizedState===null){var fe=u.alternate;if(fe!==null){var ke=fe.memoizedState;if(ke!==null){var Ne=ke.dehydrated;Ne!==null&&Ul(Ne)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(r(163))}Tn||u.flags&512&&fp(u)}catch(we){Jt(u,u.return,we)}}if(u===l){Me=null;break}if(y=u.sibling,y!==null){y.return=u.return,Me=y;break}Me=u.return}}function Xw(l){for(;Me!==null;){var u=Me;if(u===l){Me=null;break}var y=u.sibling;if(y!==null){y.return=u.return,Me=y;break}Me=u.return}}function Jw(l){for(;Me!==null;){var u=Me;try{switch(u.tag){case 0:case 11:case 15:var y=u.return;try{Id(4,u)}catch(ie){Jt(u,y,ie)}break;case 1:var _=u.stateNode;if(typeof _.componentDidMount=="function"){var O=u.return;try{_.componentDidMount()}catch(ie){Jt(u,O,ie)}}var M=u.return;try{fp(u)}catch(ie){Jt(u,M,ie)}break;case 5:var $=u.return;try{fp(u)}catch(ie){Jt(u,$,ie)}}}catch(ie){Jt(u,u.return,ie)}if(u===l){Me=null;break}var te=u.sibling;if(te!==null){te.return=u.return,Me=te;break}Me=u.return}}var TP=Math.ceil,Rd=N.ReactCurrentDispatcher,gp=N.ReactCurrentOwner,jr=N.ReactCurrentBatchConfig,vt=0,pn=null,an=null,wn=0,lr=0,_o=ds(0),dn=0,hc=null,fa=0,Fd=0,xp=0,fc=null,Kn=null,vp=0,So=1/0,Ii=null,Md=!1,yp=null,xs=null,Ld=!1,vs=null,Bd=0,mc=0,bp=null,zd=-1,qd=0;function Ln(){return(vt&6)!==0?tn():zd!==-1?zd:zd=tn()}function ys(l){return(l.mode&1)===0?1:(vt&2)!==0&&wn!==0?wn&-wn:fP.transition!==null?(qd===0&&(qd=Hb()),qd):(l=Et,l!==0||(l=window.event,l=l===void 0?16:ej(l.type)),l)}function Mr(l,u,y,_){if(50<mc)throw mc=0,bp=null,Error(r(185));Ll(l,y,_),((vt&2)===0||l!==pn)&&(l===pn&&((vt&2)===0&&(Fd|=y),dn===4&&bs(l,wn)),Gn(l,_),y===1&&vt===0&&(u.mode&1)===0&&(So=tn()+500,pd&&fs()))}function Gn(l,u){var y=l.callbackNode;fO(l,u);var _=Yu(l,l===pn?wn:0);if(_===0)y!==null&&Vb(y),l.callbackNode=null,l.callbackPriority=0;else if(u=_&-_,l.callbackPriority!==u){if(y!=null&&Vb(y),u===1)l.tag===0?hP(e1.bind(null,l)):Bj(e1.bind(null,l)),lP(function(){(vt&6)===0&&fs()}),y=null;else{switch(Wb(_)){case 1:y=Zf;break;case 4:y=Ub;break;case 16:y=Wu;break;case 536870912:y=$b;break;default:y=Wu}y=l1(y,Zw.bind(null,l))}l.callbackPriority=u,l.callbackNode=y}}function Zw(l,u){if(zd=-1,qd=0,(vt&6)!==0)throw Error(r(327));var y=l.callbackNode;if(Ao()&&l.callbackNode!==y)return null;var _=Yu(l,l===pn?wn:0);if(_===0)return null;if((_&30)!==0||(_&l.expiredLanes)!==0||u)u=Vd(l,_);else{u=_;var O=vt;vt|=2;var M=n1();(pn!==l||wn!==u)&&(Ii=null,So=tn()+500,pa(l,u));do try{DP();break}catch(te){t1(l,te)}while(!0);Lm(),Rd.current=M,vt=O,an!==null?u=0:(pn=null,wn=0,u=dn)}if(u!==0){if(u===2&&(O=em(l),O!==0&&(_=O,u=jp(l,O))),u===1)throw y=hc,pa(l,0),bs(l,_),Gn(l,tn()),y;if(u===6)bs(l,_);else{if(O=l.current.alternate,(_&30)===0&&!OP(O)&&(u=Vd(l,_),u===2&&(M=em(l),M!==0&&(_=M,u=jp(l,M))),u===1))throw y=hc,pa(l,0),bs(l,_),Gn(l,tn()),y;switch(l.finishedWork=O,l.finishedLanes=_,u){case 0:case 1:throw Error(r(345));case 2:ga(l,Kn,Ii);break;case 3:if(bs(l,_),(_&130023424)===_&&(u=vp+500-tn(),10<u)){if(Yu(l,0)!==0)break;if(O=l.suspendedLanes,(O&_)!==_){Ln(),l.pingedLanes|=l.suspendedLanes&O;break}l.timeoutHandle=Am(ga.bind(null,l,Kn,Ii),u);break}ga(l,Kn,Ii);break;case 4:if(bs(l,_),(_&4194240)===_)break;for(u=l.eventTimes,O=-1;0<_;){var $=31-Or(_);M=1<<$,$=u[$],$>O&&(O=$),_&=~M}if(_=O,_=tn()-_,_=(120>_?120:480>_?480:1080>_?1080:1920>_?1920:3e3>_?3e3:4320>_?4320:1960*TP(_/1960))-_,10<_){l.timeoutHandle=Am(ga.bind(null,l,Kn,Ii),_);break}ga(l,Kn,Ii);break;case 5:ga(l,Kn,Ii);break;default:throw Error(r(329))}}}return Gn(l,tn()),l.callbackNode===y?Zw.bind(null,l):null}function jp(l,u){var y=fc;return l.current.memoizedState.isDehydrated&&(pa(l,u).flags|=256),l=Vd(l,u),l!==2&&(u=Kn,Kn=y,u!==null&&wp(u)),l}function wp(l){Kn===null?Kn=l:Kn.push.apply(Kn,l)}function OP(l){for(var u=l;;){if(u.flags&16384){var y=u.updateQueue;if(y!==null&&(y=y.stores,y!==null))for(var _=0;_<y.length;_++){var O=y[_],M=O.getSnapshot;O=O.value;try{if(!Pr(M(),O))return!1}catch{return!1}}}if(y=u.child,u.subtreeFlags&16384&&y!==null)y.return=u,u=y;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 bs(l,u){for(u&=~xp,u&=~Fd,l.suspendedLanes|=u,l.pingedLanes&=~u,l=l.expirationTimes;0<u;){var y=31-Or(u),_=1<<y;l[y]=-1,u&=~_}}function e1(l){if((vt&6)!==0)throw Error(r(327));Ao();var u=Yu(l,0);if((u&1)===0)return Gn(l,tn()),null;var y=Vd(l,u);if(l.tag!==0&&y===2){var _=em(l);_!==0&&(u=_,y=jp(l,_))}if(y===1)throw y=hc,pa(l,0),bs(l,u),Gn(l,tn()),y;if(y===6)throw Error(r(345));return l.finishedWork=l.current.alternate,l.finishedLanes=u,ga(l,Kn,Ii),Gn(l,tn()),null}function kp(l,u){var y=vt;vt|=1;try{return l(u)}finally{vt=y,vt===0&&(So=tn()+500,pd&&fs())}}function ma(l){vs!==null&&vs.tag===0&&(vt&6)===0&&Ao();var u=vt;vt|=1;var y=jr.transition,_=Et;try{if(jr.transition=null,Et=1,l)return l()}finally{Et=_,jr.transition=y,vt=u,(vt&6)===0&&fs()}}function Np(){lr=_o.current,Bt(_o)}function pa(l,u){l.finishedWork=null,l.finishedLanes=0;var y=l.timeoutHandle;if(y!==-1&&(l.timeoutHandle=-1,oP(y)),an!==null)for(y=an.return;y!==null;){var _=y;switch(Dm(_),_.tag){case 1:_=_.type.childContextTypes,_!=null&&fd();break;case 3:wo(),Bt($n),Bt(An),Wm();break;case 5:$m(_);break;case 4:wo();break;case 13:Bt(Wt);break;case 19:Bt(Wt);break;case 10:Bm(_.type._context);break;case 22:case 23:Np()}y=y.return}if(pn=l,an=l=js(l.current,null),wn=lr=u,dn=0,hc=null,xp=Fd=fa=0,Kn=fc=null,ua!==null){for(u=0;u<ua.length;u++)if(y=ua[u],_=y.interleaved,_!==null){y.interleaved=null;var O=_.next,M=y.pending;if(M!==null){var $=M.next;M.next=O,_.next=$}y.pending=_}ua=null}return l}function t1(l,u){do{var y=an;try{if(Lm(),_d.current=Ed,Sd){for(var _=Kt.memoizedState;_!==null;){var O=_.queue;O!==null&&(O.pending=null),_=_.next}Sd=!1}if(ha=0,mn=un=Kt=null,ac=!1,oc=0,gp.current=null,y===null||y.return===null){dn=1,hc=u,an=null;break}e:{var M=l,$=y.return,te=y,ie=u;if(u=wn,te.flags|=32768,ie!==null&&typeof ie=="object"&&typeof ie.then=="function"){var fe=ie,ke=te,Ne=ke.tag;if((ke.mode&1)===0&&(Ne===0||Ne===11||Ne===15)){var we=ke.alternate;we?(ke.updateQueue=we.updateQueue,ke.memoizedState=we.memoizedState,ke.lanes=we.lanes):(ke.updateQueue=null,ke.memoizedState=null)}var Re=Sw($);if(Re!==null){Re.flags&=-257,Aw(Re,$,te,M,u),Re.mode&1&&_w(M,fe,u),u=Re,ie=fe;var Be=u.updateQueue;if(Be===null){var Ve=new Set;Ve.add(ie),u.updateQueue=Ve}else Be.add(ie);break e}else{if((u&1)===0){_w(M,fe,u),_p();break e}ie=Error(r(426))}}else if(qt&&te.mode&1){var nn=Sw($);if(nn!==null){(nn.flags&65536)===0&&(nn.flags|=256),Aw(nn,$,te,M,u),Fm(ko(ie,te));break e}}M=ie=ko(ie,te),dn!==4&&(dn=2),fc===null?fc=[M]:fc.push(M),M=$;do{switch(M.tag){case 3:M.flags|=65536,u&=-u,M.lanes|=u;var ue=kw(M,ie,u);Yj(M,ue);break e;case 1:te=ie;var oe=M.type,he=M.stateNode;if((M.flags&128)===0&&(typeof oe.getDerivedStateFromError=="function"||he!==null&&typeof he.componentDidCatch=="function"&&(xs===null||!xs.has(he)))){M.flags|=65536,u&=-u,M.lanes|=u;var Ee=Nw(M,te,u);Yj(M,Ee);break e}}M=M.return}while(M!==null)}i1(y)}catch(Ue){u=Ue,an===y&&y!==null&&(an=y=y.return);continue}break}while(!0)}function n1(){var l=Rd.current;return Rd.current=Ed,l===null?Ed:l}function _p(){(dn===0||dn===3||dn===2)&&(dn=4),pn===null||(fa&268435455)===0&&(Fd&268435455)===0||bs(pn,wn)}function Vd(l,u){var y=vt;vt|=2;var _=n1();(pn!==l||wn!==u)&&(Ii=null,pa(l,u));do try{PP();break}catch(O){t1(l,O)}while(!0);if(Lm(),vt=y,Rd.current=_,an!==null)throw Error(r(261));return pn=null,wn=0,dn}function PP(){for(;an!==null;)r1(an)}function DP(){for(;an!==null&&!iO();)r1(an)}function r1(l){var u=o1(l.alternate,l,lr);l.memoizedProps=l.pendingProps,u===null?i1(l):an=u,gp.current=null}function i1(l){var u=l;do{var y=u.alternate;if(l=u.return,(u.flags&32768)===0){if(y=_P(y,u,lr),y!==null){an=y;return}}else{if(y=SP(y,u),y!==null){y.flags&=32767,an=y;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 ga(l,u,y){var _=Et,O=jr.transition;try{jr.transition=null,Et=1,IP(l,u,y,_)}finally{jr.transition=O,Et=_}return null}function IP(l,u,y,_){do Ao();while(vs!==null);if((vt&6)!==0)throw Error(r(327));y=l.finishedWork;var O=l.finishedLanes;if(y===null)return null;if(l.finishedWork=null,l.finishedLanes=0,y===l.current)throw Error(r(177));l.callbackNode=null,l.callbackPriority=0;var M=y.lanes|y.childLanes;if(mO(l,M),l===pn&&(an=pn=null,wn=0),(y.subtreeFlags&2064)===0&&(y.flags&2064)===0||Ld||(Ld=!0,l1(Wu,function(){return Ao(),null})),M=(y.flags&15990)!==0,(y.subtreeFlags&15990)!==0||M){M=jr.transition,jr.transition=null;var $=Et;Et=1;var te=vt;vt|=4,gp.current=null,CP(l,y),Gw(y,l),eP(_m),Zu=!!Nm,_m=Nm=null,l.current=y,EP(y),sO(),vt=te,Et=$,jr.transition=M}else l.current=y;if(Ld&&(Ld=!1,vs=l,Bd=O),M=l.pendingLanes,M===0&&(xs=null),lO(y.stateNode),Gn(l,tn()),u!==null)for(_=l.onRecoverableError,y=0;y<u.length;y++)O=u[y],_(O.value,{componentStack:O.stack,digest:O.digest});if(Md)throw Md=!1,l=yp,yp=null,l;return(Bd&1)!==0&&l.tag!==0&&Ao(),M=l.pendingLanes,(M&1)!==0?l===bp?mc++:(mc=0,bp=l):mc=0,fs(),null}function Ao(){if(vs!==null){var l=Wb(Bd),u=jr.transition,y=Et;try{if(jr.transition=null,Et=16>l?16:l,vs===null)var _=!1;else{if(l=vs,vs=null,Bd=0,(vt&6)!==0)throw Error(r(331));var O=vt;for(vt|=4,Me=l.current;Me!==null;){var M=Me,$=M.child;if((Me.flags&16)!==0){var te=M.deletions;if(te!==null){for(var ie=0;ie<te.length;ie++){var fe=te[ie];for(Me=fe;Me!==null;){var ke=Me;switch(ke.tag){case 0:case 11:case 15:dc(8,ke,M)}var Ne=ke.child;if(Ne!==null)Ne.return=ke,Me=Ne;else for(;Me!==null;){ke=Me;var we=ke.sibling,Re=ke.return;if(Uw(ke),ke===fe){Me=null;break}if(we!==null){we.return=Re,Me=we;break}Me=Re}}}var Be=M.alternate;if(Be!==null){var Ve=Be.child;if(Ve!==null){Be.child=null;do{var nn=Ve.sibling;Ve.sibling=null,Ve=nn}while(Ve!==null)}}Me=M}}if((M.subtreeFlags&2064)!==0&&$!==null)$.return=M,Me=$;else e:for(;Me!==null;){if(M=Me,(M.flags&2048)!==0)switch(M.tag){case 0:case 11:case 15:dc(9,M,M.return)}var ue=M.sibling;if(ue!==null){ue.return=M.return,Me=ue;break e}Me=M.return}}var oe=l.current;for(Me=oe;Me!==null;){$=Me;var he=$.child;if(($.subtreeFlags&2064)!==0&&he!==null)he.return=$,Me=he;else e:for($=oe;Me!==null;){if(te=Me,(te.flags&2048)!==0)try{switch(te.tag){case 0:case 11:case 15:Id(9,te)}}catch(Ue){Jt(te,te.return,Ue)}if(te===$){Me=null;break e}var Ee=te.sibling;if(Ee!==null){Ee.return=te.return,Me=Ee;break e}Me=te.return}}if(vt=O,fs(),Yr&&typeof Yr.onPostCommitFiberRoot=="function")try{Yr.onPostCommitFiberRoot(Ku,l)}catch{}_=!0}return _}finally{Et=y,jr.transition=u}}return!1}function s1(l,u,y){u=ko(y,u),u=kw(l,u,1),l=ps(l,u,1),u=Ln(),l!==null&&(Ll(l,1,u),Gn(l,u))}function Jt(l,u,y){if(l.tag===3)s1(l,l,y);else for(;u!==null;){if(u.tag===3){s1(u,l,y);break}else if(u.tag===1){var _=u.stateNode;if(typeof u.type.getDerivedStateFromError=="function"||typeof _.componentDidCatch=="function"&&(xs===null||!xs.has(_))){l=ko(y,l),l=Nw(u,l,1),u=ps(u,l,1),l=Ln(),u!==null&&(Ll(u,1,l),Gn(u,l));break}}u=u.return}}function RP(l,u,y){var _=l.pingCache;_!==null&&_.delete(u),u=Ln(),l.pingedLanes|=l.suspendedLanes&y,pn===l&&(wn&y)===y&&(dn===4||dn===3&&(wn&130023424)===wn&&500>tn()-vp?pa(l,0):xp|=y),Gn(l,u)}function a1(l,u){u===0&&((l.mode&1)===0?u=1:(u=Qu,Qu<<=1,(Qu&130023424)===0&&(Qu=4194304)));var y=Ln();l=Oi(l,u),l!==null&&(Ll(l,u,y),Gn(l,y))}function FP(l){var u=l.memoizedState,y=0;u!==null&&(y=u.retryLane),a1(l,y)}function MP(l,u){var y=0;switch(l.tag){case 13:var _=l.stateNode,O=l.memoizedState;O!==null&&(y=O.retryLane);break;case 19:_=l.stateNode;break;default:throw Error(r(314))}_!==null&&_.delete(u),a1(l,y)}var o1;o1=function(l,u,y){if(l!==null)if(l.memoizedProps!==u.pendingProps||$n.current)Wn=!0;else{if((l.lanes&y)===0&&(u.flags&128)===0)return Wn=!1,NP(l,u,y);Wn=(l.flags&131072)!==0}else Wn=!1,qt&&(u.flags&1048576)!==0&&zj(u,xd,u.index);switch(u.lanes=0,u.tag){case 2:var _=u.type;Pd(l,u),l=u.pendingProps;var O=po(u,An.current);jo(u,y),O=Qm(null,u,_,l,O,y);var M=Ym();return u.flags|=1,typeof O=="object"&&O!==null&&typeof O.render=="function"&&O.$$typeof===void 0?(u.tag=1,u.memoizedState=null,u.updateQueue=null,Hn(_)?(M=!0,md(u)):M=!1,u.memoizedState=O.state!==null&&O.state!==void 0?O.state:null,Vm(u),O.updater=Td,u.stateNode=O,O._reactInternals=u,np(u,_,l,y),u=ap(null,u,_,!0,M,y)):(u.tag=0,qt&&M&&Pm(u),Mn(null,u,O,y),u=u.child),u;case 16:_=u.elementType;e:{switch(Pd(l,u),l=u.pendingProps,O=_._init,_=O(_._payload),u.type=_,O=u.tag=BP(_),l=Ir(_,l),O){case 0:u=sp(null,u,_,l,y);break e;case 1:u=Dw(null,u,_,l,y);break e;case 11:u=Cw(null,u,_,l,y);break e;case 14:u=Ew(null,u,_,Ir(_.type,l),y);break e}throw Error(r(306,_,""))}return u;case 0:return _=u.type,O=u.pendingProps,O=u.elementType===_?O:Ir(_,O),sp(l,u,_,O,y);case 1:return _=u.type,O=u.pendingProps,O=u.elementType===_?O:Ir(_,O),Dw(l,u,_,O,y);case 3:e:{if(Iw(u),l===null)throw Error(r(387));_=u.pendingProps,M=u.memoizedState,O=M.element,Qj(l,u),kd(u,_,null,y);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){O=ko(Error(r(423)),u),u=Rw(l,u,_,y,O);break e}else if(_!==O){O=ko(Error(r(424)),u),u=Rw(l,u,_,y,O);break e}else for(or=us(u.stateNode.containerInfo.firstChild),ar=u,qt=!0,Dr=null,y=Kj(u,null,_,y),u.child=y;y;)y.flags=y.flags&-3|4096,y=y.sibling;else{if(vo(),_===O){u=Di(l,u,y);break e}Mn(l,u,_,y)}u=u.child}return u;case 5:return Jj(u),l===null&&Rm(u),_=u.type,O=u.pendingProps,M=l!==null?l.memoizedProps:null,$=O.children,Sm(_,O)?$=null:M!==null&&Sm(_,M)&&(u.flags|=32),Pw(l,u),Mn(l,u,$,y),u.child;case 6:return l===null&&Rm(u),null;case 13:return Fw(l,u,y);case 4:return Um(u,u.stateNode.containerInfo),_=u.pendingProps,l===null?u.child=yo(u,null,_,y):Mn(l,u,_,y),u.child;case 11:return _=u.type,O=u.pendingProps,O=u.elementType===_?O:Ir(_,O),Cw(l,u,_,O,y);case 7:return Mn(l,u,u.pendingProps,y),u.child;case 8:return Mn(l,u,u.pendingProps.children,y),u.child;case 12:return Mn(l,u,u.pendingProps.children,y),u.child;case 10:e:{if(_=u.type._context,O=u.pendingProps,M=u.memoizedProps,$=O.value,It(bd,_._currentValue),_._currentValue=$,M!==null)if(Pr(M.value,$)){if(M.children===O.children&&!$n.current){u=Di(l,u,y);break e}}else for(M=u.child,M!==null&&(M.return=u);M!==null;){var te=M.dependencies;if(te!==null){$=M.child;for(var ie=te.firstContext;ie!==null;){if(ie.context===_){if(M.tag===1){ie=Pi(-1,y&-y),ie.tag=2;var fe=M.updateQueue;if(fe!==null){fe=fe.shared;var ke=fe.pending;ke===null?ie.next=ie:(ie.next=ke.next,ke.next=ie),fe.pending=ie}}M.lanes|=y,ie=M.alternate,ie!==null&&(ie.lanes|=y),zm(M.return,y,u),te.lanes|=y;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|=y,te=$.alternate,te!==null&&(te.lanes|=y),zm($,y,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=$}Mn(l,u,O.children,y),u=u.child}return u;case 9:return O=u.type,_=u.pendingProps.children,jo(u,y),O=yr(O),_=_(O),u.flags|=1,Mn(l,u,_,y),u.child;case 14:return _=u.type,O=Ir(_,u.pendingProps),O=Ir(_.type,O),Ew(l,u,_,O,y);case 15:return Tw(l,u,u.type,u.pendingProps,y);case 17:return _=u.type,O=u.pendingProps,O=u.elementType===_?O:Ir(_,O),Pd(l,u),u.tag=1,Hn(_)?(l=!0,md(u)):l=!1,jo(u,y),jw(u,_,O),np(u,_,O,y),ap(null,u,_,!0,l,y);case 19:return Lw(l,u,y);case 22:return Ow(l,u,y)}throw Error(r(156,u.tag))};function l1(l,u){return qb(l,u)}function LP(l,u,y,_){this.tag=l,this.key=y,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,y,_){return new LP(l,u,y,_)}function Sp(l){return l=l.prototype,!(!l||!l.isReactComponent)}function BP(l){if(typeof l=="function")return Sp(l)?1:0;if(l!=null){if(l=l.$$typeof,l===I)return 11;if(l===U)return 14}return 2}function js(l,u){var y=l.alternate;return y===null?(y=wr(l.tag,u,l.key,l.mode),y.elementType=l.elementType,y.type=l.type,y.stateNode=l.stateNode,y.alternate=l,l.alternate=y):(y.pendingProps=u,y.type=l.type,y.flags=0,y.subtreeFlags=0,y.deletions=null),y.flags=l.flags&14680064,y.childLanes=l.childLanes,y.lanes=l.lanes,y.child=l.child,y.memoizedProps=l.memoizedProps,y.memoizedState=l.memoizedState,y.updateQueue=l.updateQueue,u=l.dependencies,y.dependencies=u===null?null:{lanes:u.lanes,firstContext:u.firstContext},y.sibling=l.sibling,y.index=l.index,y.ref=l.ref,y}function Ud(l,u,y,_,O,M){var $=2;if(_=l,typeof l=="function")Sp(l)&&($=1);else if(typeof l=="string")$=5;else e:switch(l){case E:return xa(y.children,O,M,u);case C:$=8,O|=8;break;case B:return l=wr(12,y,u,O|2),l.elementType=B,l.lanes=M,l;case z:return l=wr(13,y,u,O),l.elementType=z,l.lanes=M,l;case q:return l=wr(19,y,u,O),l.elementType=q,l.lanes=M,l;case H:return $d(y,O,M,u);default:if(typeof l=="object"&&l!==null)switch(l.$$typeof){case F:$=10;break e;case D:$=9;break e;case I:$=11;break e;case U:$=14;break e;case Q:$=16,_=null;break e}throw Error(r(130,l==null?l:typeof l,""))}return u=wr($,y,u,O),u.elementType=l,u.type=_,u.lanes=M,u}function xa(l,u,y,_){return l=wr(7,l,_,u),l.lanes=y,l}function $d(l,u,y,_){return l=wr(22,l,_,u),l.elementType=H,l.lanes=y,l.stateNode={isHidden:!1},l}function Ap(l,u,y){return l=wr(6,l,null,u),l.lanes=y,l}function Cp(l,u,y){return u=wr(4,l.children!==null?l.children:[],l.key,u),u.lanes=y,u.stateNode={containerInfo:l.containerInfo,pendingChildren:null,implementation:l.implementation},u}function zP(l,u,y,_,O){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=tm(0),this.expirationTimes=tm(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=tm(0),this.identifierPrefix=_,this.onRecoverableError=O,this.mutableSourceEagerHydrationData=null}function Ep(l,u,y,_,O,M,$,te,ie){return l=new zP(l,u,y,te,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:y,cache:null,transitions:null,pendingSuspenseBoundaries:null},Vm(M),l}function qP(l,u,y){var _=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:S,key:_==null?null:""+_,children:l,containerInfo:u,implementation:y}}function c1(l){if(!l)return hs;l=l._reactInternals;e:{if(sa(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(Hn(u.type)){u=u.stateNode.__reactInternalMemoizedMergedChildContext;break e}}u=u.return}while(u!==null);throw Error(r(171))}if(l.tag===1){var y=l.type;if(Hn(y))return Mj(l,y,u)}return u}function u1(l,u,y,_,O,M,$,te,ie){return l=Ep(y,_,!0,l,O,M,$,te,ie),l.context=c1(null),y=l.current,_=Ln(),O=ys(y),M=Pi(_,O),M.callback=u??null,ps(y,M,O),l.current.lanes=O,Ll(l,O,_),Gn(l,_),l}function Hd(l,u,y,_){var O=u.current,M=Ln(),$=ys(O);return y=c1(y),u.context===null?u.context=y:u.pendingContext=y,u=Pi(M,$),u.payload={element:l},_=_===void 0?null:_,_!==null&&(u.callback=_),l=ps(O,u,$),l!==null&&(Mr(l,O,$,M),wd(l,O,$)),$}function Wd(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 d1(l,u){if(l=l.memoizedState,l!==null&&l.dehydrated!==null){var y=l.retryLane;l.retryLane=y!==0&&y<u?y:u}}function Tp(l,u){d1(l,u),(l=l.alternate)&&d1(l,u)}function VP(){return null}var h1=typeof reportError=="function"?reportError:function(l){console.error(l)};function Op(l){this._internalRoot=l}Kd.prototype.render=Op.prototype.render=function(l){var u=this._internalRoot;if(u===null)throw Error(r(409));Hd(l,u,null,null)},Kd.prototype.unmount=Op.prototype.unmount=function(){var l=this._internalRoot;if(l!==null){this._internalRoot=null;var u=l.containerInfo;ma(function(){Hd(null,l,null,null)}),u[Ai]=null}};function Kd(l){this._internalRoot=l}Kd.prototype.unstable_scheduleHydration=function(l){if(l){var u=Qb();l={blockedOn:null,target:l,priority:u};for(var y=0;y<os.length&&u!==0&&u<os[y].priority;y++);os.splice(y,0,l),y===0&&Jb(l)}};function Pp(l){return!(!l||l.nodeType!==1&&l.nodeType!==9&&l.nodeType!==11)}function Gd(l){return!(!l||l.nodeType!==1&&l.nodeType!==9&&l.nodeType!==11&&(l.nodeType!==8||l.nodeValue!==" react-mount-point-unstable "))}function f1(){}function UP(l,u,y,_,O){if(O){if(typeof _=="function"){var M=_;_=function(){var fe=Wd($);M.call(fe)}}var $=u1(u,_,l,0,null,!1,!1,"",f1);return l._reactRootContainer=$,l[Ai]=$.current,Jl(l.nodeType===8?l.parentNode:l),ma(),$}for(;O=l.lastChild;)l.removeChild(O);if(typeof _=="function"){var te=_;_=function(){var fe=Wd(ie);te.call(fe)}}var ie=Ep(l,0,!1,null,null,!1,!1,"",f1);return l._reactRootContainer=ie,l[Ai]=ie.current,Jl(l.nodeType===8?l.parentNode:l),ma(function(){Hd(u,ie,y,_)}),ie}function Qd(l,u,y,_,O){var M=y._reactRootContainer;if(M){var $=M;if(typeof O=="function"){var te=O;O=function(){var ie=Wd($);te.call(ie)}}Hd(u,$,l,O)}else $=UP(y,u,l,O,_);return Wd($)}Kb=function(l){switch(l.tag){case 3:var u=l.stateNode;if(u.current.memoizedState.isDehydrated){var y=Ml(u.pendingLanes);y!==0&&(nm(u,y|1),Gn(u,tn()),(vt&6)===0&&(So=tn()+500,fs()))}break;case 13:ma(function(){var _=Oi(l,1);if(_!==null){var O=Ln();Mr(_,l,1,O)}}),Tp(l,1)}},rm=function(l){if(l.tag===13){var u=Oi(l,134217728);if(u!==null){var y=Ln();Mr(u,l,134217728,y)}Tp(l,134217728)}},Gb=function(l){if(l.tag===13){var u=ys(l),y=Oi(l,u);if(y!==null){var _=Ln();Mr(y,l,u,_)}Tp(l,u)}},Qb=function(){return Et},Yb=function(l,u){var y=Et;try{return Et=l,u()}finally{Et=y}},Qf=function(l,u,y){switch(u){case"input":if(nt(l,y),u=y.name,y.type==="radio"&&u!=null){for(y=l;y.parentNode;)y=y.parentNode;for(y=y.querySelectorAll("input[name="+JSON.stringify(""+u)+'][type="radio"]'),u=0;u<y.length;u++){var _=y[u];if(_!==l&&_.form===l.form){var O=hd(_);if(!O)throw Error(r(90));be(_),nt(_,O)}}}break;case"textarea":et(l,y);break;case"select":u=y.value,u!=null&&Pe(l,!!y.multiple,u,!1)}},Ib=kp,Rb=ma;var $P={usingClientEntryPoint:!1,Events:[tc,fo,hd,Pb,Db,kp]},pc={findFiberByHostInstance:aa,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},HP={bundleType:pc.bundleType,version:pc.version,rendererPackageName:pc.rendererPackageName,rendererConfig:pc.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:N.ReactCurrentDispatcher,findHostInstanceByFiber:function(l){return l=Bb(l),l===null?null:l.stateNode},findFiberByHostInstance:pc.findFiberByHostInstance||VP,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 Yd=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Yd.isDisabled&&Yd.supportsFiber)try{Ku=Yd.inject(HP),Yr=Yd}catch{}}return Qn.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=$P,Qn.createPortal=function(l,u){var y=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Pp(u))throw Error(r(200));return qP(l,u,null,y)},Qn.createRoot=function(l,u){if(!Pp(l))throw Error(r(299));var y=!1,_="",O=h1;return u!=null&&(u.unstable_strictMode===!0&&(y=!0),u.identifierPrefix!==void 0&&(_=u.identifierPrefix),u.onRecoverableError!==void 0&&(O=u.onRecoverableError)),u=Ep(l,1,!1,null,null,y,!1,_,O),l[Ai]=u.current,Jl(l.nodeType===8?l.parentNode:l),new Op(u)},Qn.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=Bb(u),l=l===null?null:l.stateNode,l},Qn.flushSync=function(l){return ma(l)},Qn.hydrate=function(l,u,y){if(!Gd(u))throw Error(r(200));return Qd(null,l,u,!0,y)},Qn.hydrateRoot=function(l,u,y){if(!Pp(l))throw Error(r(405));var _=y!=null&&y.hydratedSources||null,O=!1,M="",$=h1;if(y!=null&&(y.unstable_strictMode===!0&&(O=!0),y.identifierPrefix!==void 0&&(M=y.identifierPrefix),y.onRecoverableError!==void 0&&($=y.onRecoverableError)),u=u1(u,null,l,1,y??null,O,!1,M,$),l[Ai]=u.current,Jl(l),_)for(l=0;l<_.length;l++)y=_[l],O=y._getVersion,O=O(y._source),u.mutableSourceEagerHydrationData==null?u.mutableSourceEagerHydrationData=[y,O]:u.mutableSourceEagerHydrationData.push(y,O);return new Kd(u)},Qn.render=function(l,u,y){if(!Gd(u))throw Error(r(200));return Qd(null,l,u,!1,y)},Qn.unmountComponentAtNode=function(l){if(!Gd(l))throw Error(r(40));return l._reactRootContainer?(ma(function(){Qd(null,null,l,!1,function(){l._reactRootContainer=null,l[Ai]=null})}),!0):!1},Qn.unstable_batchedUpdates=kp,Qn.unstable_renderSubtreeIntoContainer=function(l,u,y,_){if(!Gd(y))throw Error(r(200));if(l==null||l._reactInternals===void 0)throw Error(r(38));return Qd(l,u,y,!1,_)},Qn.version="18.3.1-next-f1338f8080-20240426",Qn}var w1;function Z0(){if(w1)return Fp.exports;w1=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(n){console.error(n)}}return t(),Fp.exports=e3(),Fp.exports}var k1;function t3(){if(k1)return Zd;k1=1;var t=Z0();return Zd.createRoot=t.createRoot,Zd.hydrateRoot=t.hydrateRoot,Zd}var n3=t3();const r3=_i(n3),i3=20,s3=1e6,Vi={ADD_TOAST:"ADD_TOAST",UPDATE_TOAST:"UPDATE_TOAST",DISMISS_TOAST:"DISMISS_TOAST",REMOVE_TOAST:"REMOVE_TOAST"};let Bp=0;function a3(){return Bp=(Bp+1)%Number.MAX_VALUE,Bp.toString()}const zp=new Map,N1=t=>{if(zp.has(t))return;const n=setTimeout(()=>{zp.delete(t),zc({type:Vi.REMOVE_TOAST,toastId:t})},s3);zp.set(t,n)},o3=(t,n)=>{switch(n.type){case Vi.ADD_TOAST:return{...t,toasts:[n.toast,...t.toasts].slice(0,i3)};case Vi.UPDATE_TOAST:return{...t,toasts:t.toasts.map(r=>r.id===n.toast.id?{...r,...n.toast}:r)};case Vi.DISMISS_TOAST:{const{toastId:r}=n;return r?N1(r):t.toasts.forEach(i=>{N1(i.id)}),{...t,toasts:t.toasts.map(i=>i.id===r||r===void 0?{...i,open:!1}:i)}}case Vi.REMOVE_TOAST:return n.toastId===void 0?{...t,toasts:[]}:{...t,toasts:t.toasts.filter(r=>r.id!==n.toastId)}}},bh=[];let jh={toasts:[]};function zc(t){jh=o3(jh,t),bh.forEach(n=>{n(jh)})}function l3({...t}){const n=a3(),r=s=>zc({type:Vi.UPDATE_TOAST,toast:{...s,id:n}}),i=()=>zc({type:Vi.DISMISS_TOAST,toastId:n});return zc({type:Vi.ADD_TOAST,toast:{...t,id:n,open:!0,onOpenChange:s=>{s||i()}}}),{id:n,dismiss:i,update:r}}function c3(){const[t,n]=R.useState(jh);return R.useEffect(()=>(bh.push(n),()=>{const r=bh.indexOf(n);r>-1&&bh.splice(r,1)}),[t]),{...t,toast:l3,dismiss:r=>zc({type:Vi.DISMISS_TOAST,toastId:r})}}function b4(t){var n,r,i="";if(typeof t=="string"||typeof t=="number")i+=t;else if(typeof t=="object")if(Array.isArray(t)){var s=t.length;for(n=0;n<s;n++)t[n]&&(r=b4(t[n]))&&(i&&(i+=" "),i+=r)}else for(r in t)t[r]&&(i&&(i+=" "),i+=r);return i}function j4(){for(var t,n,r=0,i="",s=arguments.length;r<s;r++)(t=arguments[r])&&(n=b4(t))&&(i&&(i+=" "),i+=n);return i}const _1=t=>typeof t=="boolean"?`${t}`:t===0?"0":t,S1=j4,w4=(t,n)=>r=>{var i;if((n==null?void 0:n.variants)==null)return S1(t,r==null?void 0:r.class,r==null?void 0:r.className);const{variants:s,defaultVariants:a}=n,o=Object.keys(s).map(h=>{const f=r==null?void 0:r[h],m=a==null?void 0:a[h];if(f===null)return null;const p=_1(f)||_1(m);return s[h][p]}),c=r&&Object.entries(r).reduce((h,f)=>{let[m,p]=f;return p===void 0||(h[m]=p),h},{}),d=n==null||(i=n.compoundVariants)===null||i===void 0?void 0:i.reduce((h,f)=>{let{class:m,className:p,...g}=f;return Object.entries(g).every(b=>{let[j,v]=b;return Array.isArray(v)?v.includes({...a,...c}[j]):{...a,...c}[j]===v})?[...h,m,p]:h},[]);return S1(t,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 u3=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),k4=(...t)=>t.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 d3={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 h3=R.forwardRef(({color:t="currentColor",size:n=24,strokeWidth:r=2,absoluteStrokeWidth:i,className:s="",children:a,iconNode:o,...c},d)=>R.createElement("svg",{ref:d,...d3,width:n,height:n,stroke:t,strokeWidth:i?Number(r)*24/Number(n):r,className:k4("lucide",s),...c},[...o.map(([h,f])=>R.createElement(h,f)),...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=(t,n)=>{const r=R.forwardRef(({className:i,...s},a)=>R.createElement(h3,{ref:a,iconNode:n,className:k4(`lucide-${u3(t)}`,i),...s}));return r.displayName=`${t}`,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 f3=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],ht=Ce("ArrowLeft",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:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],$e=Ce("ArrowRight",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 p3=[["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"}]],_v=Ce("Award",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 g3=[["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"}]],Va=Ce("BookOpen",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:"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"}]],N4=Ce("Bot",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 v3=[["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"}]],y3=Ce("Brain",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 b3=[["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"}]],Xs=Ce("Briefcase",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 j3=[["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"}]],Ya=Ce("Building2",j3);/**
 * @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:"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"}]],k3=Ce("CalendarDays",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:"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"}]],Hr=Ce("Calendar",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:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Ft=Ce("Check",_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 S3=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],_a=Ce("ChevronDown",S3);/**
 * @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=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],C3=Ce("ChevronLeft",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 E3=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],_4=Ce("ChevronRight",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:"m18 15-6-6-6 6",key:"153udz"}]],O3=Ce("ChevronUp",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 P3=[["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"}]],fi=Ce("CircleAlert",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 D3=[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],gt=Ce("CircleCheckBig",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=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],R3=Ce("CircleCheck",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 F3=[["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"}]],M3=Ce("CircleHelp",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 L3=[["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"}]],Xc=Ce("CircleX",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 B3=[["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"}]],z3=Ce("ClipboardList",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=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]],vn=Ce("Clock",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 V3=[["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"}]],S4=Ce("CodeXml",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 U3=[["polyline",{points:"16 18 22 12 16 6",key:"z7tu5w"}],["polyline",{points:"8 6 2 12 8 18",key:"1eg1df"}]],$3=Ce("Code",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 H3=[["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"}]],W3=Ce("Copy",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 K3=[["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"}]],A4=Ce("Database",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:"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"}]],ku=Ce("Download",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:"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"}]],A1=Ce("Euro",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:"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"}]],Bs=Ce("ExternalLink",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:"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",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 J3=[["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"}]],zs=Ce("Eye",J3);/**
 * @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=[["path",{d:"M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z",key:"1jg4f8"}]],C4=Ce("Facebook",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 e8=[["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"}]],t8=Ce("FileDown",e8);/**
 * @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 n8=[["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"}]],$t=Ce("FileText",n8);/**
 * @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 r8=[["polygon",{points:"22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3",key:"1yg77f"}]],cf=Ce("Filter",r8);/**
 * @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 i8=[["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"}]],s8=Ce("Globe",i8);/**
 * @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 a8=[["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",a8);/**
 * @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 o8=[["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"}]],uf=Ce("Headphones",o8);/**
 * @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 l8=[["path",{d:"M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z",key:"yt0hxn"}]],c8=Ce("Hexagon",l8);/**
 * @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 u8=[["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"}]],d8=Ce("History",u8);/**
 * @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 h8=[["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"}]],Sv=Ce("House",h8);/**
 * @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 f8=[["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"}]],m8=Ce("Image",f8);/**
 * @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 p8=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],wh=Ce("Info",p8);/**
 * @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 g8=[["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"}]],Jc=Ce("Instagram",g8);/**
 * @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 x8=[["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"}]],Nu=Ce("Layers",x8);/**
 * @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 v8=[["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"}]],C1=Ce("LayoutGrid",v8);/**
 * @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 y8=[["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"}]],Wi=Ce("Lightbulb",y8);/**
 * @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 b8=[["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"}]],E4=Ce("Link",b8);/**
 * @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 j8=[["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",j8);/**
 * @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 w8=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],T4=Ce("LoaderCircle",w8);/**
 * @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 k8=[["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"}]],N8=Ce("Loader",k8);/**
 * @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 _8=[["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"}]],yi=Ce("Mail",_8);/**
 * @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 S8=[["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"}]],_u=Ce("MapPin",S8);/**
 * @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 A8=[["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"}]],C8=Ce("Map",A8);/**
 * @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 E8=[["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"}]],T8=Ce("Menu",E8);/**
 * @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 O8=[["path",{d:"M7.9 20A9 9 0 1 0 4 16.1L2 22Z",key:"vv11sd"}]],$o=Ce("MessageCircle",O8);/**
 * @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 P8=[["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"}]],D8=Ce("MessageSquare",P8);/**
 * @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 I8=[["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"}]],R8=Ce("Newspaper",I8);/**
 * @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 F8=[["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"}]],E1=Ce("PanelsTopLeft",F8);/**
 * @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 M8=[["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"}]],qc=Ce("Pen",M8);/**
 * @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 L8=[["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"}]],B8=Ce("Pencil",L8);/**
 * @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 z8=[["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"}]],ey=Ce("Phone",z8);/**
 * @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 q8=[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]],Av=Ce("Play",q8);/**
 * @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 V8=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],Pt=Ce("Plus",V8);/**
 * @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 U8=[["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"}]],O4=Ce("Quote",U8);/**
 * @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 $8=[["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"}]],H8=Ce("RefreshCcw",$8);/**
 * @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 W8=[["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"}]],K8=Ce("Rocket",W8);/**
 * @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 G8=[["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"}]],Sn=Ce("Save",G8);/**
 * @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 Q8=[["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"}]],T1=Ce("Scale",Q8);/**
 * @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 Y8=[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]],mi=Ce("Search",Y8);/**
 * @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 X8=[["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"}]],P4=Ce("Send",X8);/**
 * @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 J8=[["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"}]],Zc=Ce("Settings",J8);/**
 * @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 Z8=[["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"}]],ty=Ce("Share2",Z8);/**
 * @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 eD=[["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"}]],D4=Ce("ShieldCheck",eD);/**
 * @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 tD=[["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"}]],Vn=Ce("Shield",tD);/**
 * @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 nD=[["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"}]],At=Ce("Sparkles",nD);/**
 * @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 rD=[["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"}]],Pn=Ce("SquarePen",rD);/**
 * @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 iD=[["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"}]],eu=Ce("Star",iD);/**
 * @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 sD=[["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"}]],aD=Ce("Tag",sD);/**
 * @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 oD=[["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"}]],Ua=Ce("Target",oD);/**
 * @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 lD=[["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"}]],cD=Ce("TestTube",lD);/**
 * @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 uD=[["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",uD);/**
 * @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 dD=[["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"}]],Ki=Ce("TrendingUp",dD);/**
 * @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 hD=[["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"}]],Ho=Ce("TriangleAlert",hD);/**
 * @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 fD=[["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"}]],I4=Ce("Twitter",fD);/**
 * @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 mD=[["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"}]],R4=Ce("Upload",mD);/**
 * @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 pD=[["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"}]],gD=Ce("User",pD);/**
 * @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 xD=[["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"}]],_n=Ce("Users",xD);/**
 * @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 vD=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Ht=Ce("X",vD);/**
 * @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 yD=[["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"}]],tu=Ce("Youtube",yD);/**
 * @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 bD=[["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"}]],ui=Ce("Zap",bD),ny="-",jD=t=>{const n=kD(t),{conflictingClassGroups:r,conflictingClassGroupModifiers:i}=t;return{getClassGroupId:o=>{const c=o.split(ny);return c[0]===""&&c.length!==1&&c.shift(),F4(c,n)||wD(o)},getConflictingClassGroupIds:(o,c)=>{const d=r[o]||[];return c&&i[o]?[...d,...i[o]]:d}}},F4=(t,n)=>{var o;if(t.length===0)return n.classGroupId;const r=t[0],i=n.nextPart.get(r),s=i?F4(t.slice(1),i):void 0;if(s)return s;if(n.validators.length===0)return;const a=t.join(ny);return(o=n.validators.find(({validator:c})=>c(a)))==null?void 0:o.classGroupId},O1=/^\[(.+)\]$/,wD=t=>{if(O1.test(t)){const n=O1.exec(t)[1],r=n==null?void 0:n.substring(0,n.indexOf(":"));if(r)return"arbitrary.."+r}},kD=t=>{const{theme:n,classGroups:r}=t,i={nextPart:new Map,validators:[]};for(const s in r)Cv(r[s],i,s,n);return i},Cv=(t,n,r,i)=>{t.forEach(s=>{if(typeof s=="string"){const a=s===""?n:P1(n,s);a.classGroupId=r;return}if(typeof s=="function"){if(ND(s)){Cv(s(i),n,r,i);return}n.validators.push({validator:s,classGroupId:r});return}Object.entries(s).forEach(([a,o])=>{Cv(o,P1(n,a),r,i)})})},P1=(t,n)=>{let r=t;return n.split(ny).forEach(i=>{r.nextPart.has(i)||r.nextPart.set(i,{nextPart:new Map,validators:[]}),r=r.nextPart.get(i)}),r},ND=t=>t.isThemeGetter,_D=t=>{if(t<1)return{get:()=>{},set:()=>{}};let n=0,r=new Map,i=new Map;const s=(a,o)=>{r.set(a,o),n++,n>t&&(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)}}},Ev="!",Tv=":",SD=Tv.length,AD=t=>{const{prefix:n,experimentalParseClassName:r}=t;let i=s=>{const a=[];let o=0,c=0,d=0,h;for(let b=0;b<s.length;b++){let j=s[b];if(o===0&&c===0){if(j===Tv){a.push(s.slice(d,b)),d=b+SD;continue}if(j==="/"){h=b;continue}}j==="["?o++:j==="]"?o--:j==="("?c++:j===")"&&c--}const f=a.length===0?s:s.substring(d),m=CD(f),p=m!==f,g=h&&h>d?h-d:void 0;return{modifiers:a,hasImportantModifier:p,baseClassName:m,maybePostfixModifierPosition:g}};if(n){const s=n+Tv,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},CD=t=>t.endsWith(Ev)?t.substring(0,t.length-1):t.startsWith(Ev)?t.substring(1):t,ED=t=>{const n=Object.fromEntries(t.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}},TD=t=>({cache:_D(t.cacheSize),parseClassName:AD(t),sortModifiers:ED(t),...jD(t)}),OD=/\s+/,PD=(t,n)=>{const{parseClassName:r,getClassGroupId:i,getConflictingClassGroupIds:s,sortModifiers:a}=n,o=[],c=t.trim().split(OD);let d="";for(let h=c.length-1;h>=0;h-=1){const f=c[h],{isExternal:m,modifiers:p,hasImportantModifier:g,baseClassName:b,maybePostfixModifierPosition:j}=r(f);if(m){d=f+(d.length>0?" "+d:d);continue}let v=!!j,x=i(v?b.substring(0,j):b);if(!x){if(!v){d=f+(d.length>0?" "+d:d);continue}if(x=i(b),!x){d=f+(d.length>0?" "+d:d);continue}v=!1}const k=a(p).join(":"),w=g?k+Ev:k,N=w+x;if(o.includes(N))continue;o.push(N);const A=s(x,v);for(let S=0;S<A.length;++S){const E=A[S];o.push(w+E)}d=f+(d.length>0?" "+d:d)}return d};function DD(){let t=0,n,r,i="";for(;t<arguments.length;)(n=arguments[t++])&&(r=M4(n))&&(i&&(i+=" "),i+=r);return i}const M4=t=>{if(typeof t=="string")return t;let n,r="";for(let i=0;i<t.length;i++)t[i]&&(n=M4(t[i]))&&(r&&(r+=" "),r+=n);return r};function ID(t,...n){let r,i,s,a=o;function o(d){const h=n.reduce((f,m)=>m(f),t());return r=TD(h),i=r.cache.get,s=r.cache.set,a=c,c(d)}function c(d){const h=i(d);if(h)return h;const f=PD(d,r);return s(d,f),f}return function(){return a(DD.apply(null,arguments))}}const hn=t=>{const n=r=>r[t]||[];return n.isThemeGetter=!0,n},L4=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,B4=/^\((?:(\w[\w-]*):)?(.+)\)$/i,RD=/^\d+\/\d+$/,FD=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,MD=/\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$/,LD=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,BD=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,zD=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Co=t=>RD.test(t),ct=t=>!!t&&!Number.isNaN(Number(t)),ks=t=>!!t&&Number.isInteger(Number(t)),Vp=t=>t.endsWith("%")&&ct(t.slice(0,-1)),Ri=t=>FD.test(t),qD=()=>!0,VD=t=>MD.test(t)&&!LD.test(t),z4=()=>!1,UD=t=>BD.test(t),$D=t=>zD.test(t),HD=t=>!ze(t)&&!qe(t),WD=t=>vl(t,U4,z4),ze=t=>L4.test(t),va=t=>vl(t,$4,VD),Up=t=>vl(t,XD,ct),D1=t=>vl(t,q4,z4),KD=t=>vl(t,V4,$D),eh=t=>vl(t,H4,UD),qe=t=>B4.test(t),xc=t=>yl(t,$4),GD=t=>yl(t,JD),I1=t=>yl(t,q4),QD=t=>yl(t,U4),YD=t=>yl(t,V4),th=t=>yl(t,H4,!0),vl=(t,n,r)=>{const i=L4.exec(t);return i?i[1]?n(i[1]):r(i[2]):!1},yl=(t,n,r=!1)=>{const i=B4.exec(t);return i?i[1]?n(i[1]):r:!1},q4=t=>t==="position"||t==="percentage",V4=t=>t==="image"||t==="url",U4=t=>t==="length"||t==="size"||t==="bg-size",$4=t=>t==="length",XD=t=>t==="number",JD=t=>t==="family-name",H4=t=>t==="shadow",ZD=()=>{const t=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"),h=hn("radius"),f=hn("shadow"),m=hn("inset-shadow"),p=hn("text-shadow"),g=hn("drop-shadow"),b=hn("blur"),j=hn("perspective"),v=hn("aspect"),x=hn("ease"),k=hn("animate"),w=()=>["auto","avoid","all","avoid-page","page","left","right","column"],N=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],A=()=>[...N(),qe,ze],S=()=>["auto","hidden","clip","visible","scroll"],E=()=>["auto","contain","none"],C=()=>[qe,ze,d],B=()=>[Co,"full","auto",...C()],F=()=>[ks,"none","subgrid",qe,ze],D=()=>["auto",{span:["full",ks,qe,ze]},ks,qe,ze],I=()=>[ks,"auto",qe,ze],z=()=>["auto","min","max","fr",qe,ze],q=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],U=()=>["start","end","center","stretch","center-safe","end-safe"],Q=()=>["auto",...C()],H=()=>[Co,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...C()],K=()=>[t,qe,ze],Y=()=>[...N(),I1,D1,{position:[qe,ze]}],P=()=>["no-repeat",{repeat:["","x","y","space","round"]}],T=()=>["auto","cover","contain",QD,WD,{size:[qe,ze]}],V=()=>[Vp,xc,va],L=()=>["","none","full",h,qe,ze],X=()=>["",ct,xc,va],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,Vp,I1,D1],ee=()=>["","none",b,qe,ze],ne=()=>["none",ct,qe,ze],le=()=>["none",ct,qe,ze],ve=()=>[ct,qe,ze],be=()=>[Co,"full",...C()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Ri],breakpoint:[Ri],color:[qD],container:[Ri],"drop-shadow":[Ri],ease:["in","out","in-out"],font:[HD],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Ri],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Ri],shadow:[Ri],spacing:["px",ct],text:[Ri],"text-shadow":[Ri],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Co,ze,qe,v]}],container:["container"],columns:[{columns:[ct,ze,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:[ks,"auto",qe,ze]}],basis:[{basis:[Co,"full","auto",c,...C()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[ct,Co,"auto","initial","none",ze]}],grow:[{grow:["",ct,qe,ze]}],shrink:[{shrink:["",ct,qe,ze]}],order:[{order:[ks,"first","last","none",qe,ze]}],"grid-cols":[{"grid-cols":F()}],"col-start-end":[{col:D()}],"col-start":[{"col-start":I()}],"col-end":[{"col-end":I()}],"grid-rows":[{"grid-rows":F()}],"row-start-end":[{row:D()}],"row-start":[{"row-start":I()}],"row-end":[{"row-end":I()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":z()}],"auto-rows":[{"auto-rows":z()}],gap:[{gap:C()}],"gap-x":[{"gap-x":C()}],"gap-y":[{"gap-y":C()}],"justify-content":[{justify:[...q(),"normal"]}],"justify-items":[{"justify-items":[...U(),"normal"]}],"justify-self":[{"justify-self":["auto",...U()]}],"align-content":[{content:["normal",...q()]}],"align-items":[{items:[...U(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...U(),{baseline:["","last"]}]}],"place-content":[{"place-content":q()}],"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:Q()}],mx:[{mx:Q()}],my:[{my:Q()}],ms:[{ms:Q()}],me:[{me:Q()}],mt:[{mt:Q()}],mr:[{mr:Q()}],mb:[{mb:Q()}],ml:[{ml:Q()}],"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,xc,va]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[i,qe,Up]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Vp,ze]}],"font-family":[{font:[GD,ze,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,ze]}],"line-clamp":[{"line-clamp":[ct,"none",qe,Up]}],leading:[{leading:[a,...C()]}],"list-image":[{"list-image":["none",qe,ze]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",qe,ze]}],"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,va]}],"text-decoration-color":[{decoration:K()}],"underline-offset":[{"underline-offset":[ct,"auto",qe,ze]}],"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,ze]}],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,ze]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:Y()}],"bg-repeat":[{bg:P()}],"bg-size":[{bg:T()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},ks,qe,ze],radial:["",qe,ze],conic:[ks,qe,ze]},YD,KD]}],"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,ze]}],"outline-w":[{outline:["",ct,xc,va]}],"outline-color":[{outline:K()}],shadow:[{shadow:["","none",f,th,eh]}],"shadow-color":[{shadow:K()}],"inset-shadow":[{"inset-shadow":["none",m,th,eh]}],"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,va]}],"ring-offset-color":[{"ring-offset":K()}],"inset-ring-w":[{"inset-ring":X()}],"inset-ring-color":[{"inset-ring":K()}],"text-shadow":[{"text-shadow":["none",p,th,eh]}],"text-shadow-color":[{"text-shadow":K()}],opacity:[{opacity:[ct,qe,ze]}],"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,ze]}],"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":N()}],"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:Y()}],"mask-repeat":[{mask:P()}],"mask-size":[{mask:T()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",qe,ze]}],filter:[{filter:["","none",qe,ze]}],blur:[{blur:ee()}],brightness:[{brightness:[ct,qe,ze]}],contrast:[{contrast:[ct,qe,ze]}],"drop-shadow":[{"drop-shadow":["","none",g,th,eh]}],"drop-shadow-color":[{"drop-shadow":K()}],grayscale:[{grayscale:["",ct,qe,ze]}],"hue-rotate":[{"hue-rotate":[ct,qe,ze]}],invert:[{invert:["",ct,qe,ze]}],saturate:[{saturate:[ct,qe,ze]}],sepia:[{sepia:["",ct,qe,ze]}],"backdrop-filter":[{"backdrop-filter":["","none",qe,ze]}],"backdrop-blur":[{"backdrop-blur":ee()}],"backdrop-brightness":[{"backdrop-brightness":[ct,qe,ze]}],"backdrop-contrast":[{"backdrop-contrast":[ct,qe,ze]}],"backdrop-grayscale":[{"backdrop-grayscale":["",ct,qe,ze]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[ct,qe,ze]}],"backdrop-invert":[{"backdrop-invert":["",ct,qe,ze]}],"backdrop-opacity":[{"backdrop-opacity":[ct,qe,ze]}],"backdrop-saturate":[{"backdrop-saturate":[ct,qe,ze]}],"backdrop-sepia":[{"backdrop-sepia":["",ct,qe,ze]}],"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,ze]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[ct,"initial",qe,ze]}],ease:[{ease:["linear","initial",x,qe,ze]}],delay:[{delay:[ct,qe,ze]}],animate:[{animate:["none",k,qe,ze]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[j,qe,ze]}],"perspective-origin":[{"perspective-origin":A()}],rotate:[{rotate:ne()}],"rotate-x":[{"rotate-x":ne()}],"rotate-y":[{"rotate-y":ne()}],"rotate-z":[{"rotate-z":ne()}],scale:[{scale:le()}],"scale-x":[{"scale-x":le()}],"scale-y":[{"scale-y":le()}],"scale-z":[{"scale-z":le()}],"scale-3d":["scale-3d"],skew:[{skew:ve()}],"skew-x":[{"skew-x":ve()}],"skew-y":[{"skew-y":ve()}],transform:[{transform:[qe,ze,"","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,ze]}],"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,ze]}],fill:[{fill:["none",...K()]}],"stroke-w":[{stroke:[ct,xc,va,Up]}],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"]}},eI=ID(ZD);function Qt(...t){return eI(j4(t))}const W4=R.forwardRef(({...t},n)=>e.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]",...t}));W4.displayName="ToastProvider";const K4=R.forwardRef(({...t},n)=>e.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]",...t}));K4.displayName="ToastViewport";const tI=w4("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"}}),G4=R.forwardRef(({className:t,variant:n,...r},i)=>e.jsx("div",{ref:i,className:Qt(tI({variant:n}),t),...r}));G4.displayName="Toast";const nI=R.forwardRef(({className:t,...n},r)=>e.jsx("div",{ref:r,className:Qt("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors hover:bg-secondary focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive",t),...n}));nI.displayName="ToastAction";const Q4=R.forwardRef(({className:t,...n},r)=>e.jsx("button",{ref:r,className:Qt("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",t),"toast-close":"",...n,children:e.jsx(Ht,{className:"h-4 w-4"})}));Q4.displayName="ToastClose";const Y4=R.forwardRef(({className:t,...n},r)=>e.jsx("div",{ref:r,className:Qt("text-sm font-semibold",t),...n}));Y4.displayName="ToastTitle";const X4=R.forwardRef(({className:t,...n},r)=>e.jsx("div",{ref:r,className:Qt("text-sm opacity-90",t),...n}));X4.displayName="ToastDescription";function rI(){const{toasts:t}=c3();return e.jsxs(W4,{children:[t.map(function({id:n,title:r,description:i,action:s,...a}){return e.jsxs(G4,{...a,children:[e.jsxs("div",{className:"grid gap-1",children:[r&&e.jsx(Y4,{children:r}),i&&e.jsx(X4,{children:i})]}),s,e.jsx(Q4,{})]},n)}),e.jsx(K4,{})]})}var bl=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(t){return this.listeners.add(t),this.onSubscribe(),()=>{this.listeners.delete(t),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},iI={setTimeout:(t,n)=>setTimeout(t,n),clearTimeout:t=>clearTimeout(t),setInterval:(t,n)=>setInterval(t,n),clearInterval:t=>clearInterval(t)},Es,X0,c4,sI=(c4=class{constructor(){Ke(this,Es,iI);Ke(this,X0,!1)}setTimeoutProvider(t){Ie(this,Es,t)}setTimeout(t,n){return re(this,Es).setTimeout(t,n)}clearTimeout(t){re(this,Es).clearTimeout(t)}setInterval(t,n){return re(this,Es).setInterval(t,n)}clearInterval(t){re(this,Es).clearInterval(t)}},Es=new WeakMap,X0=new WeakMap,c4),Sa=new sI;function aI(t){setTimeout(t,0)}var $a=typeof window>"u"||"Deno"in globalThis;function qn(){}function oI(t,n){return typeof t=="function"?t(n):t}function Ov(t){return typeof t=="number"&&t>=0&&t!==1/0}function J4(t,n){return Math.max(t+(n||0)-Date.now(),0)}function qs(t,n){return typeof t=="function"?t(n):t}function Sr(t,n){return typeof t=="function"?t(n):t}function R1(t,n){const{type:r="all",exact:i,fetchStatus:s,predicate:a,queryKey:o,stale:c}=t;if(o){if(i){if(n.queryHash!==ry(o,n.options))return!1}else if(!nu(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 F1(t,n){const{exact:r,status:i,predicate:s,mutationKey:a}=t;if(a){if(!n.options.mutationKey)return!1;if(r){if(Ha(n.options.mutationKey)!==Ha(a))return!1}else if(!nu(n.options.mutationKey,a))return!1}return!(i&&n.state.status!==i||s&&!s(n))}function ry(t,n){return((n==null?void 0:n.queryKeyHashFn)||Ha)(t)}function Ha(t){return JSON.stringify(t,(n,r)=>Pv(r)?Object.keys(r).sort().reduce((i,s)=>(i[s]=r[s],i),{}):r)}function nu(t,n){return t===n?!0:typeof t!=typeof n?!1:t&&n&&typeof t=="object"&&typeof n=="object"?Object.keys(n).every(r=>nu(t[r],n[r])):!1}var lI=Object.prototype.hasOwnProperty;function Z4(t,n){if(t===n)return t;const r=M1(t)&&M1(n);if(!r&&!(Pv(t)&&Pv(n)))return n;const s=(r?t:Object.keys(t)).length,a=r?n:Object.keys(n),o=a.length,c=r?new Array(o):{};let d=0;for(let h=0;h<o;h++){const f=r?h:a[h],m=t[f],p=n[f];if(m===p){c[f]=m,(r?h<s:lI.call(t,f))&&d++;continue}if(m===null||p===null||typeof m!="object"||typeof p!="object"){c[f]=p;continue}const g=Z4(m,p);c[f]=g,g===m&&d++}return s===o&&d===s?t:c}function zh(t,n){if(!n||Object.keys(t).length!==Object.keys(n).length)return!1;for(const r in t)if(t[r]!==n[r])return!1;return!0}function M1(t){return Array.isArray(t)&&t.length===Object.keys(t).length}function Pv(t){if(!L1(t))return!1;const n=t.constructor;if(n===void 0)return!0;const r=n.prototype;return!(!L1(r)||!r.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(t)!==Object.prototype)}function L1(t){return Object.prototype.toString.call(t)==="[object Object]"}function cI(t){return new Promise(n=>{Sa.setTimeout(n,t)})}function Dv(t,n,r){return typeof r.structuralSharing=="function"?r.structuralSharing(t,n):r.structuralSharing!==!1?Z4(t,n):n}function uI(t,n,r=0){const i=[...t,n];return r&&i.length>r?i.slice(1):i}function dI(t,n,r=0){const i=[n,...t];return r&&i.length>r?i.slice(0,-1):i}var iy=Symbol();function eA(t,n){return!t.queryFn&&(n!=null&&n.initialPromise)?()=>n.initialPromise:!t.queryFn||t.queryFn===iy?()=>Promise.reject(new Error(`Missing queryFn: '${t.queryHash}'`)):t.queryFn}function tA(t,n){return typeof t=="function"?t(...n):!!t}var Ta,Ts,Jo,u4,hI=(u4=class extends bl{constructor(){super();Ke(this,Ta);Ke(this,Ts);Ke(this,Jo);Ie(this,Jo,n=>{if(!$a&&window.addEventListener){const r=()=>n();return window.addEventListener("visibilitychange",r,!1),()=>{window.removeEventListener("visibilitychange",r)}}})}onSubscribe(){re(this,Ts)||this.setEventListener(re(this,Jo))}onUnsubscribe(){var n;this.hasListeners()||((n=re(this,Ts))==null||n.call(this),Ie(this,Ts,void 0))}setEventListener(n){var r;Ie(this,Jo,n),(r=re(this,Ts))==null||r.call(this),Ie(this,Ts,n(i=>{typeof i=="boolean"?this.setFocused(i):this.onFocus()}))}setFocused(n){re(this,Ta)!==n&&(Ie(this,Ta,n),this.onFocus())}onFocus(){const n=this.isFocused();this.listeners.forEach(r=>{r(n)})}isFocused(){var n;return typeof re(this,Ta)=="boolean"?re(this,Ta):((n=globalThis.document)==null?void 0:n.visibilityState)!=="hidden"}},Ta=new WeakMap,Ts=new WeakMap,Jo=new WeakMap,u4),sy=new hI;function Iv(){let t,n;const r=new Promise((s,a)=>{t=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}),t(s)},r.reject=s=>{i({status:"rejected",reason:s}),n(s)},r}var fI=aI;function mI(){let t=[],n=0,r=c=>{c()},i=c=>{c()},s=fI;const a=c=>{n?t.push(c):s(()=>{r(c)})},o=()=>{const c=t;t=[],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=mI(),Zo,Os,el,d4,pI=(d4=class extends bl{constructor(){super();Ke(this,Zo,!0);Ke(this,Os);Ke(this,el);Ie(this,el,n=>{if(!$a&&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(){re(this,Os)||this.setEventListener(re(this,el))}onUnsubscribe(){var n;this.hasListeners()||((n=re(this,Os))==null||n.call(this),Ie(this,Os,void 0))}setEventListener(n){var r;Ie(this,el,n),(r=re(this,Os))==null||r.call(this),Ie(this,Os,n(this.setOnline.bind(this)))}setOnline(n){re(this,Zo)!==n&&(Ie(this,Zo,n),this.listeners.forEach(i=>{i(n)}))}isOnline(){return re(this,Zo)}},Zo=new WeakMap,Os=new WeakMap,el=new WeakMap,d4),qh=new pI;function gI(t){return Math.min(1e3*2**t,3e4)}function nA(t){return(t??"online")==="online"?qh.isOnline():!0}var Rv=class extends Error{constructor(t){super("CancelledError"),this.revert=t==null?void 0:t.revert,this.silent=t==null?void 0:t.silent}};function rA(t){let n=!1,r=0,i;const s=Iv(),a=()=>s.status!=="pending",o=j=>{var v;if(!a()){const x=new Rv(j);p(x),(v=t.onCancel)==null||v.call(t,x)}},c=()=>{n=!0},d=()=>{n=!1},h=()=>sy.isFocused()&&(t.networkMode==="always"||qh.isOnline())&&t.canRun(),f=()=>nA(t.networkMode)&&t.canRun(),m=j=>{a()||(i==null||i(),s.resolve(j))},p=j=>{a()||(i==null||i(),s.reject(j))},g=()=>new Promise(j=>{var v;i=x=>{(a()||h())&&j(x)},(v=t.onPause)==null||v.call(t)}).then(()=>{var j;i=void 0,a()||(j=t.onContinue)==null||j.call(t)}),b=()=>{if(a())return;let j;const v=r===0?t.initialPromise:void 0;try{j=v??t.fn()}catch(x){j=Promise.reject(x)}Promise.resolve(j).then(m).catch(x=>{var S;if(a())return;const k=t.retry??($a?0:3),w=t.retryDelay??gI,N=typeof w=="function"?w(r,x):w,A=k===!0||typeof k=="number"&&r<k||typeof k=="function"&&k(r,x);if(n||!A){p(x);return}r++,(S=t.onFail)==null||S.call(t,r,x),cI(N).then(()=>h()?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:f,start:()=>(f()?b():g().then(b),s)}}var Oa,h4,iA=(h4=class{constructor(){Ke(this,Oa)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Ov(this.gcTime)&&Ie(this,Oa,Sa.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(t){this.gcTime=Math.max(this.gcTime||0,t??($a?1/0:300*1e3))}clearGcTimeout(){re(this,Oa)&&(Sa.clearTimeout(re(this,Oa)),Ie(this,Oa,void 0))}},Oa=new WeakMap,h4),Pa,tl,_r,Da,xn,xu,Ia,qr,Mi,f4,xI=(f4=class extends iA{constructor(n){super();Ke(this,qr);Ke(this,Pa);Ke(this,tl);Ke(this,_r);Ke(this,Da);Ke(this,xn);Ke(this,xu);Ke(this,Ia);Ie(this,Ia,!1),Ie(this,xu,n.defaultOptions),this.setOptions(n.options),this.observers=[],Ie(this,Da,n.client),Ie(this,_r,re(this,Da).getQueryCache()),this.queryKey=n.queryKey,this.queryHash=n.queryHash,Ie(this,Pa,B1(this.options)),this.state=n.state??re(this,Pa),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var n;return(n=re(this,xn))==null?void 0:n.promise}setOptions(n){if(this.options={...re(this,xu),...n},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const r=B1(this.options);r.data!==void 0&&(this.setData(r.data,{updatedAt:r.dataUpdatedAt,manual:!0}),Ie(this,Pa,r))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&re(this,_r).remove(this)}setData(n,r){const i=Dv(this.state.data,n,this.options);return lt(this,qr,Mi).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,Mi).call(this,{type:"setState",state:n,setStateOptions:r})}cancel(n){var i,s;const r=(i=re(this,xn))==null?void 0:i.promise;return(s=re(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(re(this,Pa))}isActive(){return this.observers.some(n=>Sr(n.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===iy||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:!J4(this.state.dataUpdatedAt,n)}onFocus(){var r;const n=this.observers.find(i=>i.shouldFetchOnWindowFocus());n==null||n.refetch({cancelRefetch:!1}),(r=re(this,xn))==null||r.continue()}onOnline(){var r;const n=this.observers.find(i=>i.shouldFetchOnReconnect());n==null||n.refetch({cancelRefetch:!1}),(r=re(this,xn))==null||r.continue()}addObserver(n){this.observers.includes(n)||(this.observers.push(n),this.clearGcTimeout(),re(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||(re(this,xn)&&(re(this,Ia)?re(this,xn).cancel({revert:!0}):re(this,xn).cancelRetry()),this.scheduleGc()),re(this,_r).notify({type:"observerRemoved",query:this,observer:n}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||lt(this,qr,Mi).call(this,{type:"invalidate"})}async fetch(n,r){var d,h,f,m,p,g,b,j,v,x,k,w;if(this.state.fetchStatus!=="idle"&&((d=re(this,xn))==null?void 0:d.status())!=="rejected"){if(this.state.data!==void 0&&(r!=null&&r.cancelRefetch))this.cancel({silent:!0});else if(re(this,xn))return re(this,xn).continueRetry(),re(this,xn).promise}if(n&&this.setOptions(n),!this.options.queryFn){const N=this.observers.find(A=>A.options.queryFn);N&&this.setOptions(N.options)}const i=new AbortController,s=N=>{Object.defineProperty(N,"signal",{enumerable:!0,get:()=>(Ie(this,Ia,!0),i.signal)})},a=()=>{const N=eA(this.options,r),S=(()=>{const E={client:re(this,Da),queryKey:this.queryKey,meta:this.meta};return s(E),E})();return Ie(this,Ia,!1),this.options.persister?this.options.persister(N,S,this):N(S)},c=(()=>{const N={fetchOptions:r,options:this.options,queryKey:this.queryKey,client:re(this,Da),state:this.state,fetchFn:a};return s(N),N})();(h=this.options.behavior)==null||h.onFetch(c,this),Ie(this,tl,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((f=c.fetchOptions)==null?void 0:f.meta))&&lt(this,qr,Mi).call(this,{type:"fetch",meta:(m=c.fetchOptions)==null?void 0:m.meta}),Ie(this,xn,rA({initialPromise:r==null?void 0:r.initialPromise,fn:c.fetchFn,onCancel:N=>{N instanceof Rv&&N.revert&&this.setState({...re(this,tl),fetchStatus:"idle"}),i.abort()},onFail:(N,A)=>{lt(this,qr,Mi).call(this,{type:"failed",failureCount:N,error:A})},onPause:()=>{lt(this,qr,Mi).call(this,{type:"pause"})},onContinue:()=>{lt(this,qr,Mi).call(this,{type:"continue"})},retry:c.options.retry,retryDelay:c.options.retryDelay,networkMode:c.options.networkMode,canRun:()=>!0}));try{const N=await re(this,xn).start();if(N===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(N),(g=(p=re(this,_r).config).onSuccess)==null||g.call(p,N,this),(j=(b=re(this,_r).config).onSettled)==null||j.call(b,N,this.state.error,this),N}catch(N){if(N instanceof Rv){if(N.silent)return re(this,xn).promise;if(N.revert){if(this.state.data===void 0)throw N;return this.state.data}}throw lt(this,qr,Mi).call(this,{type:"error",error:N}),(x=(v=re(this,_r).config).onError)==null||x.call(v,N,this),(w=(k=re(this,_r).config).onSettled)==null||w.call(k,this.state.data,N,this),N}finally{this.scheduleGc()}}},Pa=new WeakMap,tl=new WeakMap,_r=new WeakMap,Da=new WeakMap,xn=new WeakMap,xu=new WeakMap,Ia=new WeakMap,qr=new WeakSet,Mi=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,...sA(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,tl,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()}),re(this,_r).notify({query:this,type:"updated",action:n})})},f4);function sA(t,n){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:nA(n.networkMode)?"fetching":"paused",...t===void 0&&{error:null,status:"pending"}}}function B1(t){const n=typeof t.initialData=="function"?t.initialData():t.initialData,r=n!==void 0,i=r?typeof t.initialDataUpdatedAt=="function"?t.initialDataUpdatedAt():t.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 Jn,ft,vu,Bn,Ra,nl,Li,Ps,yu,rl,il,Fa,Ma,Ds,sl,Ct,Ec,Fv,Mv,Lv,Bv,zv,qv,Vv,aA,m4,vI=(m4=class extends bl{constructor(n,r){super();Ke(this,Ct);Ke(this,Jn);Ke(this,ft);Ke(this,vu);Ke(this,Bn);Ke(this,Ra);Ke(this,nl);Ke(this,Li);Ke(this,Ps);Ke(this,yu);Ke(this,rl);Ke(this,il);Ke(this,Fa);Ke(this,Ma);Ke(this,Ds);Ke(this,sl,new Set);this.options=r,Ie(this,Jn,n),Ie(this,Ps,null),Ie(this,Li,Iv()),this.bindMethods(),this.setOptions(r)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(re(this,ft).addObserver(this),z1(re(this,ft),this.options)?lt(this,Ct,Ec).call(this):this.updateResult(),lt(this,Ct,Bv).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Uv(re(this,ft),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Uv(re(this,ft),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,lt(this,Ct,zv).call(this),lt(this,Ct,qv).call(this),re(this,ft).removeObserver(this)}setOptions(n){const r=this.options,i=re(this,ft);if(this.options=re(this,Jn).defaultQueryOptions(n),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Sr(this.options.enabled,re(this,ft))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");lt(this,Ct,Vv).call(this),re(this,ft).setOptions(this.options),r._defaulted&&!zh(this.options,r)&&re(this,Jn).getQueryCache().notify({type:"observerOptionsUpdated",query:re(this,ft),observer:this});const s=this.hasListeners();s&&q1(re(this,ft),i,this.options,r)&&lt(this,Ct,Ec).call(this),this.updateResult(),s&&(re(this,ft)!==i||Sr(this.options.enabled,re(this,ft))!==Sr(r.enabled,re(this,ft))||qs(this.options.staleTime,re(this,ft))!==qs(r.staleTime,re(this,ft)))&&lt(this,Ct,Fv).call(this);const a=lt(this,Ct,Mv).call(this);s&&(re(this,ft)!==i||Sr(this.options.enabled,re(this,ft))!==Sr(r.enabled,re(this,ft))||a!==re(this,Ds))&&lt(this,Ct,Lv).call(this,a)}getOptimisticResult(n){const r=re(this,Jn).getQueryCache().build(re(this,Jn),n),i=this.createResult(r,n);return bI(this,i)&&(Ie(this,Bn,i),Ie(this,nl,this.options),Ie(this,Ra,re(this,ft).state)),i}getCurrentResult(){return re(this,Bn)}trackResult(n,r){return new Proxy(n,{get:(i,s)=>(this.trackProp(s),r==null||r(s),s==="promise"&&!this.options.experimental_prefetchInRender&&re(this,Li).status==="pending"&&re(this,Li).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),Reflect.get(i,s))})}trackProp(n){re(this,sl).add(n)}getCurrentQuery(){return re(this,ft)}refetch({...n}={}){return this.fetch({...n})}fetchOptimistic(n){const r=re(this,Jn).defaultQueryOptions(n),i=re(this,Jn).getQueryCache().build(re(this,Jn),r);return i.fetch().then(()=>this.createResult(i,r))}fetch(n){return lt(this,Ct,Ec).call(this,{...n,cancelRefetch:n.cancelRefetch??!0}).then(()=>(this.updateResult(),re(this,Bn)))}createResult(n,r){var B;const i=re(this,ft),s=this.options,a=re(this,Bn),o=re(this,Ra),c=re(this,nl),h=n!==i?n.state:re(this,vu),{state:f}=n;let m={...f},p=!1,g;if(r._optimisticResults){const F=this.hasListeners(),D=!F&&z1(n,r),I=F&&q1(n,i,r,s);(D||I)&&(m={...m,...sA(f.data,n.options)}),r._optimisticResults==="isRestoring"&&(m.fetchStatus="idle")}let{error:b,errorUpdatedAt:j,status:v}=m;g=m.data;let x=!1;if(r.placeholderData!==void 0&&g===void 0&&v==="pending"){let F;a!=null&&a.isPlaceholderData&&r.placeholderData===(c==null?void 0:c.placeholderData)?(F=a.data,x=!0):F=typeof r.placeholderData=="function"?r.placeholderData((B=re(this,il))==null?void 0:B.state.data,re(this,il)):r.placeholderData,F!==void 0&&(v="success",g=Dv(a==null?void 0:a.data,F,r),p=!0)}if(r.select&&g!==void 0&&!x)if(a&&g===(o==null?void 0:o.data)&&r.select===re(this,yu))g=re(this,rl);else try{Ie(this,yu,r.select),g=r.select(g),g=Dv(a==null?void 0:a.data,g,r),Ie(this,rl,g),Ie(this,Ps,null)}catch(F){Ie(this,Ps,F)}re(this,Ps)&&(b=re(this,Ps),g=re(this,rl),j=Date.now(),v="error");const k=m.fetchStatus==="fetching",w=v==="pending",N=v==="error",A=w&&k,S=g!==void 0,C={status:v,fetchStatus:m.fetchStatus,isPending:w,isSuccess:v==="success",isError:N,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>h.dataUpdateCount||m.errorUpdateCount>h.errorUpdateCount,isFetching:k,isRefetching:k&&!w,isLoadingError:N&&!S,isPaused:m.fetchStatus==="paused",isPlaceholderData:p,isRefetchError:N&&S,isStale:ay(n,r),refetch:this.refetch,promise:re(this,Li),isEnabled:Sr(r.enabled,n)!==!1};if(this.options.experimental_prefetchInRender){const F=z=>{C.status==="error"?z.reject(C.error):C.data!==void 0&&z.resolve(C.data)},D=()=>{const z=Ie(this,Li,C.promise=Iv());F(z)},I=re(this,Li);switch(I.status){case"pending":n.queryHash===i.queryHash&&F(I);break;case"fulfilled":(C.status==="error"||C.data!==I.value)&&D();break;case"rejected":(C.status!=="error"||C.error!==I.reason)&&D();break}}return C}updateResult(){const n=re(this,Bn),r=this.createResult(re(this,ft),this.options);if(Ie(this,Ra,re(this,ft).state),Ie(this,nl,this.options),re(this,Ra).data!==void 0&&Ie(this,il,re(this,ft)),zh(r,n))return;Ie(this,Bn,r);const i=()=>{if(!n)return!0;const{notifyOnChangeProps:s}=this.options,a=typeof s=="function"?s():s;if(a==="all"||!a&&!re(this,sl).size)return!0;const o=new Set(a??re(this,sl));return this.options.throwOnError&&o.add("error"),Object.keys(re(this,Bn)).some(c=>{const d=c;return re(this,Bn)[d]!==n[d]&&o.has(d)})};lt(this,Ct,aA).call(this,{listeners:i()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&lt(this,Ct,Bv).call(this)}},Jn=new WeakMap,ft=new WeakMap,vu=new WeakMap,Bn=new WeakMap,Ra=new WeakMap,nl=new WeakMap,Li=new WeakMap,Ps=new WeakMap,yu=new WeakMap,rl=new WeakMap,il=new WeakMap,Fa=new WeakMap,Ma=new WeakMap,Ds=new WeakMap,sl=new WeakMap,Ct=new WeakSet,Ec=function(n){lt(this,Ct,Vv).call(this);let r=re(this,ft).fetch(this.options,n);return n!=null&&n.throwOnError||(r=r.catch(qn)),r},Fv=function(){lt(this,Ct,zv).call(this);const n=qs(this.options.staleTime,re(this,ft));if($a||re(this,Bn).isStale||!Ov(n))return;const i=J4(re(this,Bn).dataUpdatedAt,n)+1;Ie(this,Fa,Sa.setTimeout(()=>{re(this,Bn).isStale||this.updateResult()},i))},Mv=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(re(this,ft)):this.options.refetchInterval)??!1},Lv=function(n){lt(this,Ct,qv).call(this),Ie(this,Ds,n),!($a||Sr(this.options.enabled,re(this,ft))===!1||!Ov(re(this,Ds))||re(this,Ds)===0)&&Ie(this,Ma,Sa.setInterval(()=>{(this.options.refetchIntervalInBackground||sy.isFocused())&&lt(this,Ct,Ec).call(this)},re(this,Ds)))},Bv=function(){lt(this,Ct,Fv).call(this),lt(this,Ct,Lv).call(this,lt(this,Ct,Mv).call(this))},zv=function(){re(this,Fa)&&(Sa.clearTimeout(re(this,Fa)),Ie(this,Fa,void 0))},qv=function(){re(this,Ma)&&(Sa.clearInterval(re(this,Ma)),Ie(this,Ma,void 0))},Vv=function(){const n=re(this,Jn).getQueryCache().build(re(this,Jn),this.options);if(n===re(this,ft))return;const r=re(this,ft);Ie(this,ft,n),Ie(this,vu,n.state),this.hasListeners()&&(r==null||r.removeObserver(this),n.addObserver(this))},aA=function(n){fn.batch(()=>{n.listeners&&this.listeners.forEach(r=>{r(re(this,Bn))}),re(this,Jn).getQueryCache().notify({query:re(this,ft),type:"observerResultsUpdated"})})},m4);function yI(t,n){return Sr(n.enabled,t)!==!1&&t.state.data===void 0&&!(t.state.status==="error"&&n.retryOnMount===!1)}function z1(t,n){return yI(t,n)||t.state.data!==void 0&&Uv(t,n,n.refetchOnMount)}function Uv(t,n,r){if(Sr(n.enabled,t)!==!1&&qs(n.staleTime,t)!=="static"){const i=typeof r=="function"?r(t):r;return i==="always"||i!==!1&&ay(t,n)}return!1}function q1(t,n,r,i){return(t!==n||Sr(i.enabled,t)===!1)&&(!r.suspense||t.state.status!=="error")&&ay(t,r)}function ay(t,n){return Sr(n.enabled,t)!==!1&&t.isStaleByTime(qs(n.staleTime,t))}function bI(t,n){return!zh(t.getCurrentResult(),n)}function V1(t){return{onFetch:(n,r)=>{var f,m,p,g,b;const i=n.options,s=(p=(m=(f=n.fetchOptions)==null?void 0:f.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 h=async()=>{let j=!1;const v=w=>{Object.defineProperty(w,"signal",{enumerable:!0,get:()=>(n.signal.aborted?j=!0:n.signal.addEventListener("abort",()=>{j=!0}),n.signal)})},x=eA(n.options,n.fetchOptions),k=async(w,N,A)=>{if(j)return Promise.reject();if(N==null&&w.pages.length)return Promise.resolve(w);const E=(()=>{const D={client:n.client,queryKey:n.queryKey,pageParam:N,direction:A?"backward":"forward",meta:n.options.meta};return v(D),D})(),C=await x(E),{maxPages:B}=n.options,F=A?dI:uI;return{pages:F(w.pages,C,B),pageParams:F(w.pageParams,N,B)}};if(s&&a.length){const w=s==="backward",N=w?jI:U1,A={pages:a,pageParams:o},S=N(i,A);c=await k(A,S,w)}else{const w=t??a.length;do{const N=d===0?o[0]??i.initialPageParam:U1(i,c);if(d>0&&N==null)break;c=await k(c,N),d++}while(d<w)}return c};n.options.persister?n.fetchFn=()=>{var j,v;return(v=(j=n.options).persister)==null?void 0:v.call(j,h,{client:n.client,queryKey:n.queryKey,meta:n.options.meta,signal:n.signal},r)}:n.fetchFn=h}}}function U1(t,{pages:n,pageParams:r}){const i=n.length-1;return n.length>0?t.getNextPageParam(n[i],n,r[i],r):void 0}function jI(t,{pages:n,pageParams:r}){var i;return n.length>0?(i=t.getPreviousPageParam)==null?void 0:i.call(t,n[0],n,r[0],r):void 0}var bu,ri,zn,La,ii,Ss,p4,wI=(p4=class extends iA{constructor(n){super();Ke(this,ii);Ke(this,bu);Ke(this,ri);Ke(this,zn);Ke(this,La);Ie(this,bu,n.client),this.mutationId=n.mutationId,Ie(this,zn,n.mutationCache),Ie(this,ri,[]),this.state=n.state||oA(),this.setOptions(n.options),this.scheduleGc()}setOptions(n){this.options=n,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(n){re(this,ri).includes(n)||(re(this,ri).push(n),this.clearGcTimeout(),re(this,zn).notify({type:"observerAdded",mutation:this,observer:n}))}removeObserver(n){Ie(this,ri,re(this,ri).filter(r=>r!==n)),this.scheduleGc(),re(this,zn).notify({type:"observerRemoved",mutation:this,observer:n})}optionalRemove(){re(this,ri).length||(this.state.status==="pending"?this.scheduleGc():re(this,zn).remove(this))}continue(){var n;return((n=re(this,La))==null?void 0:n.continue())??this.execute(this.state.variables)}async execute(n){var o,c,d,h,f,m,p,g,b,j,v,x,k,w,N,A,S,E,C,B;const r=()=>{lt(this,ii,Ss).call(this,{type:"continue"})},i={client:re(this,bu),meta:this.options.meta,mutationKey:this.options.mutationKey};Ie(this,La,rA({fn:()=>this.options.mutationFn?this.options.mutationFn(n,i):Promise.reject(new Error("No mutationFn found")),onFail:(F,D)=>{lt(this,ii,Ss).call(this,{type:"failed",failureCount:F,error:D})},onPause:()=>{lt(this,ii,Ss).call(this,{type:"pause"})},onContinue:r,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>re(this,zn).canRun(this)}));const s=this.state.status==="pending",a=!re(this,La).canStart();try{if(s)r();else{lt(this,ii,Ss).call(this,{type:"pending",variables:n,isPaused:a}),await((c=(o=re(this,zn).config).onMutate)==null?void 0:c.call(o,n,this,i));const D=await((h=(d=this.options).onMutate)==null?void 0:h.call(d,n,i));D!==this.state.context&&lt(this,ii,Ss).call(this,{type:"pending",context:D,variables:n,isPaused:a})}const F=await re(this,La).start();return await((m=(f=re(this,zn).config).onSuccess)==null?void 0:m.call(f,F,n,this.state.context,this,i)),await((g=(p=this.options).onSuccess)==null?void 0:g.call(p,F,n,this.state.context,i)),await((j=(b=re(this,zn).config).onSettled)==null?void 0:j.call(b,F,null,this.state.variables,this.state.context,this,i)),await((x=(v=this.options).onSettled)==null?void 0:x.call(v,F,null,n,this.state.context,i)),lt(this,ii,Ss).call(this,{type:"success",data:F}),F}catch(F){try{throw await((w=(k=re(this,zn).config).onError)==null?void 0:w.call(k,F,n,this.state.context,this,i)),await((A=(N=this.options).onError)==null?void 0:A.call(N,F,n,this.state.context,i)),await((E=(S=re(this,zn).config).onSettled)==null?void 0:E.call(S,void 0,F,this.state.variables,this.state.context,this,i)),await((B=(C=this.options).onSettled)==null?void 0:B.call(C,void 0,F,n,this.state.context,i)),F}finally{lt(this,ii,Ss).call(this,{type:"error",error:F})}}finally{re(this,zn).runNext(this)}}},bu=new WeakMap,ri=new WeakMap,zn=new WeakMap,La=new WeakMap,ii=new WeakSet,Ss=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(()=>{re(this,ri).forEach(i=>{i.onMutationUpdate(n)}),re(this,zn).notify({mutation:this,type:"updated",action:n})})},p4);function oA(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Bi,Vr,ju,g4,kI=(g4=class extends bl{constructor(n={}){super();Ke(this,Bi);Ke(this,Vr);Ke(this,ju);this.config=n,Ie(this,Bi,new Set),Ie(this,Vr,new Map),Ie(this,ju,0)}build(n,r,i){const s=new wI({client:n,mutationCache:this,mutationId:++Xd(this,ju)._,options:n.defaultMutationOptions(r),state:i});return this.add(s),s}add(n){re(this,Bi).add(n);const r=nh(n);if(typeof r=="string"){const i=re(this,Vr).get(r);i?i.push(n):re(this,Vr).set(r,[n])}this.notify({type:"added",mutation:n})}remove(n){if(re(this,Bi).delete(n)){const r=nh(n);if(typeof r=="string"){const i=re(this,Vr).get(r);if(i)if(i.length>1){const s=i.indexOf(n);s!==-1&&i.splice(s,1)}else i[0]===n&&re(this,Vr).delete(r)}}this.notify({type:"removed",mutation:n})}canRun(n){const r=nh(n);if(typeof r=="string"){const i=re(this,Vr).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=nh(n);if(typeof r=="string"){const s=(i=re(this,Vr).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(()=>{re(this,Bi).forEach(n=>{this.notify({type:"removed",mutation:n})}),re(this,Bi).clear(),re(this,Vr).clear()})}getAll(){return Array.from(re(this,Bi))}find(n){const r={exact:!0,...n};return this.getAll().find(i=>F1(r,i))}findAll(n={}){return this.getAll().filter(r=>F1(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))))}},Bi=new WeakMap,Vr=new WeakMap,ju=new WeakMap,g4);function nh(t){var n;return(n=t.options.scope)==null?void 0:n.id}var zi,Is,Zn,qi,Hi,kh,$v,x4,NI=(x4=class extends bl{constructor(r,i){super();Ke(this,Hi);Ke(this,zi);Ke(this,Is);Ke(this,Zn);Ke(this,qi);Ie(this,zi,r),this.setOptions(i),this.bindMethods(),lt(this,Hi,kh).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=re(this,zi).defaultMutationOptions(r),zh(this.options,i)||re(this,zi).getMutationCache().notify({type:"observerOptionsUpdated",mutation:re(this,Zn),observer:this}),i!=null&&i.mutationKey&&this.options.mutationKey&&Ha(i.mutationKey)!==Ha(this.options.mutationKey)?this.reset():((s=re(this,Zn))==null?void 0:s.state.status)==="pending"&&re(this,Zn).setOptions(this.options)}onUnsubscribe(){var r;this.hasListeners()||(r=re(this,Zn))==null||r.removeObserver(this)}onMutationUpdate(r){lt(this,Hi,kh).call(this),lt(this,Hi,$v).call(this,r)}getCurrentResult(){return re(this,Is)}reset(){var r;(r=re(this,Zn))==null||r.removeObserver(this),Ie(this,Zn,void 0),lt(this,Hi,kh).call(this),lt(this,Hi,$v).call(this)}mutate(r,i){var s;return Ie(this,qi,i),(s=re(this,Zn))==null||s.removeObserver(this),Ie(this,Zn,re(this,zi).getMutationCache().build(re(this,zi),this.options)),re(this,Zn).addObserver(this),re(this,Zn).execute(r)}},zi=new WeakMap,Is=new WeakMap,Zn=new WeakMap,qi=new WeakMap,Hi=new WeakSet,kh=function(){var i;const r=((i=re(this,Zn))==null?void 0:i.state)??oA();Ie(this,Is,{...r,isPending:r.status==="pending",isSuccess:r.status==="success",isError:r.status==="error",isIdle:r.status==="idle",mutate:this.mutate,reset:this.reset})},$v=function(r){fn.batch(()=>{var i,s,a,o,c,d,h,f;if(re(this,qi)&&this.hasListeners()){const m=re(this,Is).variables,p=re(this,Is).context,g={client:re(this,zi),meta:this.options.meta,mutationKey:this.options.mutationKey};(r==null?void 0:r.type)==="success"?((s=(i=re(this,qi)).onSuccess)==null||s.call(i,r.data,m,p,g),(o=(a=re(this,qi)).onSettled)==null||o.call(a,r.data,null,m,p,g)):(r==null?void 0:r.type)==="error"&&((d=(c=re(this,qi)).onError)==null||d.call(c,r.error,m,p,g),(f=(h=re(this,qi)).onSettled)==null||f.call(h,void 0,r.error,m,p,g))}this.listeners.forEach(m=>{m(re(this,Is))})})},x4),si,v4,_I=(v4=class extends bl{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??ry(s,r);let o=this.get(a);return o||(o=new xI({client:n,queryKey:s,queryHash:a,options:n.defaultQueryOptions(r),state:i,defaultOptions:n.getQueryDefaults(s)}),this.add(o)),o}add(n){re(this,si).has(n.queryHash)||(re(this,si).set(n.queryHash,n),this.notify({type:"added",query:n}))}remove(n){const r=re(this,si).get(n.queryHash);r&&(n.destroy(),r===n&&re(this,si).delete(n.queryHash),this.notify({type:"removed",query:n}))}clear(){fn.batch(()=>{this.getAll().forEach(n=>{this.remove(n)})})}get(n){return re(this,si).get(n)}getAll(){return[...re(this,si).values()]}find(n){const r={exact:!0,...n};return this.getAll().find(i=>R1(r,i))}findAll(n={}){const r=this.getAll();return Object.keys(n).length>0?r.filter(i=>R1(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,v4),Zt,Rs,Fs,al,ol,Ms,ll,cl,y4,SI=(y4=class{constructor(t={}){Ke(this,Zt);Ke(this,Rs);Ke(this,Fs);Ke(this,al);Ke(this,ol);Ke(this,Ms);Ke(this,ll);Ke(this,cl);Ie(this,Zt,t.queryCache||new _I),Ie(this,Rs,t.mutationCache||new kI),Ie(this,Fs,t.defaultOptions||{}),Ie(this,al,new Map),Ie(this,ol,new Map),Ie(this,Ms,0)}mount(){Xd(this,Ms)._++,re(this,Ms)===1&&(Ie(this,ll,sy.subscribe(async t=>{t&&(await this.resumePausedMutations(),re(this,Zt).onFocus())})),Ie(this,cl,qh.subscribe(async t=>{t&&(await this.resumePausedMutations(),re(this,Zt).onOnline())})))}unmount(){var t,n;Xd(this,Ms)._--,re(this,Ms)===0&&((t=re(this,ll))==null||t.call(this),Ie(this,ll,void 0),(n=re(this,cl))==null||n.call(this),Ie(this,cl,void 0))}isFetching(t){return re(this,Zt).findAll({...t,fetchStatus:"fetching"}).length}isMutating(t){return re(this,Rs).findAll({...t,status:"pending"}).length}getQueryData(t){var r;const n=this.defaultQueryOptions({queryKey:t});return(r=re(this,Zt).get(n.queryHash))==null?void 0:r.state.data}ensureQueryData(t){const n=this.defaultQueryOptions(t),r=re(this,Zt).build(this,n),i=r.state.data;return i===void 0?this.fetchQuery(t):(t.revalidateIfStale&&r.isStaleByTime(qs(n.staleTime,r))&&this.prefetchQuery(n),Promise.resolve(i))}getQueriesData(t){return re(this,Zt).findAll(t).map(({queryKey:n,state:r})=>{const i=r.data;return[n,i]})}setQueryData(t,n,r){const i=this.defaultQueryOptions({queryKey:t}),s=re(this,Zt).get(i.queryHash),a=s==null?void 0:s.state.data,o=oI(n,a);if(o!==void 0)return re(this,Zt).build(this,i).setData(o,{...r,manual:!0})}setQueriesData(t,n,r){return fn.batch(()=>re(this,Zt).findAll(t).map(({queryKey:i})=>[i,this.setQueryData(i,n,r)]))}getQueryState(t){var r;const n=this.defaultQueryOptions({queryKey:t});return(r=re(this,Zt).get(n.queryHash))==null?void 0:r.state}removeQueries(t){const n=re(this,Zt);fn.batch(()=>{n.findAll(t).forEach(r=>{n.remove(r)})})}resetQueries(t,n){const r=re(this,Zt);return fn.batch(()=>(r.findAll(t).forEach(i=>{i.reset()}),this.refetchQueries({type:"active",...t},n)))}cancelQueries(t,n={}){const r={revert:!0,...n},i=fn.batch(()=>re(this,Zt).findAll(t).map(s=>s.cancel(r)));return Promise.all(i).then(qn).catch(qn)}invalidateQueries(t,n={}){return fn.batch(()=>(re(this,Zt).findAll(t).forEach(r=>{r.invalidate()}),(t==null?void 0:t.refetchType)==="none"?Promise.resolve():this.refetchQueries({...t,type:(t==null?void 0:t.refetchType)??(t==null?void 0:t.type)??"active"},n)))}refetchQueries(t,n={}){const r={...n,cancelRefetch:n.cancelRefetch??!0},i=fn.batch(()=>re(this,Zt).findAll(t).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(t){const n=this.defaultQueryOptions(t);n.retry===void 0&&(n.retry=!1);const r=re(this,Zt).build(this,n);return r.isStaleByTime(qs(n.staleTime,r))?r.fetch(n):Promise.resolve(r.state.data)}prefetchQuery(t){return this.fetchQuery(t).then(qn).catch(qn)}fetchInfiniteQuery(t){return t.behavior=V1(t.pages),this.fetchQuery(t)}prefetchInfiniteQuery(t){return this.fetchInfiniteQuery(t).then(qn).catch(qn)}ensureInfiniteQueryData(t){return t.behavior=V1(t.pages),this.ensureQueryData(t)}resumePausedMutations(){return qh.isOnline()?re(this,Rs).resumePausedMutations():Promise.resolve()}getQueryCache(){return re(this,Zt)}getMutationCache(){return re(this,Rs)}getDefaultOptions(){return re(this,Fs)}setDefaultOptions(t){Ie(this,Fs,t)}setQueryDefaults(t,n){re(this,al).set(Ha(t),{queryKey:t,defaultOptions:n})}getQueryDefaults(t){const n=[...re(this,al).values()],r={};return n.forEach(i=>{nu(t,i.queryKey)&&Object.assign(r,i.defaultOptions)}),r}setMutationDefaults(t,n){re(this,ol).set(Ha(t),{mutationKey:t,defaultOptions:n})}getMutationDefaults(t){const n=[...re(this,ol).values()],r={};return n.forEach(i=>{nu(t,i.mutationKey)&&Object.assign(r,i.defaultOptions)}),r}defaultQueryOptions(t){if(t._defaulted)return t;const n={...re(this,Fs).queries,...this.getQueryDefaults(t.queryKey),...t,_defaulted:!0};return n.queryHash||(n.queryHash=ry(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===iy&&(n.enabled=!1),n}defaultMutationOptions(t){return t!=null&&t._defaulted?t:{...re(this,Fs).mutations,...(t==null?void 0:t.mutationKey)&&this.getMutationDefaults(t.mutationKey),...t,_defaulted:!0}}clear(){re(this,Zt).clear(),re(this,Rs).clear()}},Zt=new WeakMap,Rs=new WeakMap,Fs=new WeakMap,al=new WeakMap,ol=new WeakMap,Ms=new WeakMap,ll=new WeakMap,cl=new WeakMap,y4),lA=R.createContext(void 0),Xt=t=>{const n=R.useContext(lA);if(!n)throw new Error("No QueryClient set, use QueryClientProvider to set one");return n},AI=({client:t,children:n})=>(R.useEffect(()=>(t.mount(),()=>{t.unmount()}),[t]),e.jsx(lA.Provider,{value:t,children:n})),cA=R.createContext(!1),CI=()=>R.useContext(cA);cA.Provider;function EI(){let t=!1;return{clearReset:()=>{t=!1},reset:()=>{t=!0},isReset:()=>t}}var TI=R.createContext(EI()),OI=()=>R.useContext(TI),PI=(t,n)=>{(t.suspense||t.throwOnError||t.experimental_prefetchInRender)&&(n.isReset()||(t.retryOnMount=!1))},DI=t=>{R.useEffect(()=>{t.clearReset()},[t])},II=({result:t,errorResetBoundary:n,throwOnError:r,query:i,suspense:s})=>t.isError&&!n.isReset()&&!t.isFetching&&i&&(s&&t.data===void 0||tA(r,[t.error,i])),RI=t=>{if(t.suspense){const r=s=>s==="static"?s:Math.max(s??1e3,1e3),i=t.staleTime;t.staleTime=typeof i=="function"?(...s)=>r(i(...s)):r(i),typeof t.gcTime=="number"&&(t.gcTime=Math.max(t.gcTime,1e3))}},FI=(t,n)=>t.isLoading&&t.isFetching&&!n,MI=(t,n)=>(t==null?void 0:t.suspense)&&n.isPending,$1=(t,n,r)=>n.fetchOptimistic(t).catch(()=>{r.clearReset()});function LI(t,n,r){var m,p,g,b,j;const i=CI(),s=OI(),a=Xt(),o=a.defaultQueryOptions(t);(p=(m=a.getDefaultOptions().queries)==null?void 0:m._experimental_beforeQuery)==null||p.call(m,o),o._optimisticResults=i?"isRestoring":"optimistic",RI(o),PI(o,s),DI(s);const c=!a.getQueryCache().get(o.queryHash),[d]=R.useState(()=>new n(a,o)),h=d.getOptimisticResult(o),f=!i&&t.subscribed!==!1;if(R.useSyncExternalStore(R.useCallback(v=>{const x=f?d.subscribe(fn.batchCalls(v)):qn;return d.updateResult(),x},[d,f]),()=>d.getCurrentResult(),()=>d.getCurrentResult()),R.useEffect(()=>{d.setOptions(o)},[o,d]),MI(o,h))throw $1(o,d,s);if(II({result:h,errorResetBoundary:s,throwOnError:o.throwOnError,query:a.getQueryCache().get(o.queryHash),suspense:o.suspense}))throw h.error;if((b=(g=a.getDefaultOptions().queries)==null?void 0:g._experimental_afterQuery)==null||b.call(g,o,h),o.experimental_prefetchInRender&&!$a&&FI(h,i)){const v=c?$1(o,d,s):(j=a.getQueryCache().get(o.queryHash))==null?void 0:j.promise;v==null||v.catch(qn).finally(()=>{d.updateResult()})}return o.notifyOnChangeProps?h:d.trackResult(h)}function Fe(t,n){return LI(t,vI)}function Le(t,n){const r=Xt(),[i]=R.useState(()=>new NI(r,t));R.useEffect(()=>{i.setOptions(t)},[i,t]);const s=R.useSyncExternalStore(R.useCallback(o=>i.subscribe(fn.batchCalls(o)),[i]),()=>i.getCurrentResult(),()=>i.getCurrentResult()),a=R.useCallback((o,c)=>{i.mutate(o,c).catch(qn)},[i]);if(s.error&&tA(i.options.throwOnError,[s.error]))throw s.error;return{...s,mutate:a,mutateAsync:s.mutate}}const BI=new SI({defaultOptions:{queries:{refetchOnWindowFocus:!1,retry:1}}});var Su=Z0();const zI=_i(Su);/**
 * @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 ru(){return ru=Object.assign?Object.assign.bind():function(t){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},ru.apply(this,arguments)}var Ls;(function(t){t.Pop="POP",t.Push="PUSH",t.Replace="REPLACE"})(Ls||(Ls={}));const H1="popstate";function qI(t){t===void 0&&(t={});function n(i,s){let{pathname:a,search:o,hash:c}=i.location;return Hv("",{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:Vh(s)}return UI(n,r,null,t)}function cn(t,n){if(t===!1||t===null||typeof t>"u")throw new Error(n)}function uA(t,n){if(!t){typeof console<"u"&&console.warn(n);try{throw new Error(n)}catch{}}}function VI(){return Math.random().toString(36).substr(2,8)}function W1(t,n){return{usr:t.state,key:t.key,idx:n}}function Hv(t,n,r,i){return r===void 0&&(r=null),ru({pathname:typeof t=="string"?t:t.pathname,search:"",hash:""},typeof n=="string"?jl(n):n,{state:r,key:n&&n.key||i||VI()})}function Vh(t){let{pathname:n="/",search:r="",hash:i=""}=t;return r&&r!=="?"&&(n+=r.charAt(0)==="?"?r:"?"+r),i&&i!=="#"&&(n+=i.charAt(0)==="#"?i:"#"+i),n}function jl(t){let n={};if(t){let r=t.indexOf("#");r>=0&&(n.hash=t.substr(r),t=t.substr(0,r));let i=t.indexOf("?");i>=0&&(n.search=t.substr(i),t=t.substr(0,i)),t&&(n.pathname=t)}return n}function UI(t,n,r,i){i===void 0&&(i={});let{window:s=document.defaultView,v5Compat:a=!1}=i,o=s.history,c=Ls.Pop,d=null,h=f();h==null&&(h=0,o.replaceState(ru({},o.state,{idx:h}),""));function f(){return(o.state||{idx:null}).idx}function m(){c=Ls.Pop;let v=f(),x=v==null?null:v-h;h=v,d&&d({action:c,location:j.location,delta:x})}function p(v,x){c=Ls.Push;let k=Hv(j.location,v,x);h=f()+1;let w=W1(k,h),N=j.createHref(k);try{o.pushState(w,"",N)}catch(A){if(A instanceof DOMException&&A.name==="DataCloneError")throw A;s.location.assign(N)}a&&d&&d({action:c,location:j.location,delta:1})}function g(v,x){c=Ls.Replace;let k=Hv(j.location,v,x);h=f();let w=W1(k,h),N=j.createHref(k);o.replaceState(w,"",N),a&&d&&d({action:c,location:j.location,delta:0})}function b(v){let x=s.location.origin!=="null"?s.location.origin:s.location.href,k=typeof v=="string"?v:Vh(v);return k=k.replace(/ $/,"%20"),cn(x,"No window.location.(origin|href) available to create URL for href: "+k),new URL(k,x)}let j={get action(){return c},get location(){return t(s,o)},listen(v){if(d)throw new Error("A history only accepts one active listener");return s.addEventListener(H1,m),d=v,()=>{s.removeEventListener(H1,m),d=null}},createHref(v){return n(s,v)},createURL:b,encodeLocation(v){let x=b(v);return{pathname:x.pathname,search:x.search,hash:x.hash}},push:p,replace:g,go(v){return o.go(v)}};return j}var K1;(function(t){t.data="data",t.deferred="deferred",t.redirect="redirect",t.error="error"})(K1||(K1={}));function $I(t,n,r){return r===void 0&&(r="/"),HI(t,n,r)}function HI(t,n,r,i){let s=typeof n=="string"?jl(n):n,a=oy(s.pathname||"/",r);if(a==null)return null;let o=dA(t);WI(o);let c=null;for(let d=0;c==null&&d<o.length;++d){let h=iR(a);c=tR(o[d],h)}return c}function dA(t,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 h=Vs([i,d.relativePath]),f=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 "'+h+'".')),dA(a.children,n,f,h)),!(a.path==null&&!a.index)&&n.push({path:h,score:ZI(h,a.index),routesMeta:f})};return t.forEach((a,o)=>{var c;if(a.path===""||!((c=a.path)!=null&&c.includes("?")))s(a,o);else for(let d of hA(a.path))s(a,o,d)}),n}function hA(t){let n=t.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=hA(i.join("/")),c=[];return c.push(...o.map(d=>d===""?a:[a,d].join("/"))),s&&c.push(...o),c.map(d=>t.startsWith("/")&&d===""?"/":d)}function WI(t){t.sort((n,r)=>n.score!==r.score?r.score-n.score:eR(n.routesMeta.map(i=>i.childrenIndex),r.routesMeta.map(i=>i.childrenIndex)))}const KI=/^:[\w-]+$/,GI=3,QI=2,YI=1,XI=10,JI=-2,G1=t=>t==="*";function ZI(t,n){let r=t.split("/"),i=r.length;return r.some(G1)&&(i+=JI),n&&(i+=QI),r.filter(s=>!G1(s)).reduce((s,a)=>s+(KI.test(a)?GI:a===""?YI:XI),i)}function eR(t,n){return t.length===n.length&&t.slice(0,-1).every((i,s)=>i===n[s])?t[t.length-1]-n[n.length-1]:0}function tR(t,n,r){let{routesMeta:i}=t,s={},a="/",o=[];for(let c=0;c<i.length;++c){let d=i[c],h=c===i.length-1,f=a==="/"?n:n.slice(a.length)||"/",m=nR({path:d.relativePath,caseSensitive:d.caseSensitive,end:h},f),p=d.route;if(!m)return null;Object.assign(s,m.params),o.push({params:s,pathname:Vs([a,m.pathname]),pathnameBase:lR(Vs([a,m.pathnameBase])),route:p}),m.pathnameBase!=="/"&&(a=Vs([a,m.pathnameBase]))}return o}function nR(t,n){typeof t=="string"&&(t={path:t,caseSensitive:!1,end:!0});let[r,i]=rR(t.path,t.caseSensitive,t.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((h,f,m)=>{let{paramName:p,isOptional:g}=f;if(p==="*"){let j=c[m]||"";o=a.slice(0,a.length-j.length).replace(/(.)\/+$/,"$1")}const b=c[m];return g&&!b?h[p]=void 0:h[p]=(b||"").replace(/%2F/g,"/"),h},{}),pathname:a,pathnameBase:o,pattern:t}}function rR(t,n,r){n===void 0&&(n=!1),r===void 0&&(r=!0),uA(t==="*"||!t.endsWith("*")||t.endsWith("/*"),'Route path "'+t+'" will be treated as if it were '+('"'+t.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+t.replace(/\*$/,"/*")+'".'));let i=[],s="^"+t.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(o,c,d)=>(i.push({paramName:c,isOptional:d!=null}),d?"/?([^\\/]+)?":"/([^\\/]+)"));return t.endsWith("*")?(i.push({paramName:"*"}),s+=t==="*"||t==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?s+="\\/*$":t!==""&&t!=="/"&&(s+="(?:(?=\\/|$))"),[new RegExp(s,n?void 0:"i"),i]}function iR(t){try{return t.split("/").map(n=>decodeURIComponent(n).replace(/\//g,"%2F")).join("/")}catch(n){return uA(!1,'The URL path "'+t+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+n+").")),t}}function oy(t,n){if(n==="/")return t;if(!t.toLowerCase().startsWith(n.toLowerCase()))return null;let r=n.endsWith("/")?n.length-1:n.length,i=t.charAt(r);return i&&i!=="/"?null:t.slice(r)||"/"}function sR(t,n){n===void 0&&(n="/");let{pathname:r,search:i="",hash:s=""}=typeof t=="string"?jl(t):t;return{pathname:r?r.startsWith("/")?r:aR(r,n):n,search:cR(i),hash:uR(s)}}function aR(t,n){let r=n.replace(/\/+$/,"").split("/");return t.split("/").forEach(s=>{s===".."?r.length>1&&r.pop():s!=="."&&r.push(s)}),r.length>1?r.join("/"):"/"}function $p(t,n,r,i){return"Cannot include a '"+t+"' 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 oR(t){return t.filter((n,r)=>r===0||n.route.path&&n.route.path.length>0)}function fA(t,n){let r=oR(t);return n?r.map((i,s)=>s===r.length-1?i.pathname:i.pathnameBase):r.map(i=>i.pathnameBase)}function mA(t,n,r,i){i===void 0&&(i=!1);let s;typeof t=="string"?s=jl(t):(s=ru({},t),cn(!s.pathname||!s.pathname.includes("?"),$p("?","pathname","search",s)),cn(!s.pathname||!s.pathname.includes("#"),$p("#","pathname","hash",s)),cn(!s.search||!s.search.includes("#"),$p("#","search","hash",s)));let a=t===""||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=sR(s,c),h=o&&o!=="/"&&o.endsWith("/"),f=(a||o===".")&&r.endsWith("/");return!d.pathname.endsWith("/")&&(h||f)&&(d.pathname+="/"),d}const Vs=t=>t.join("/").replace(/\/\/+/g,"/"),lR=t=>t.replace(/\/+$/,"").replace(/^\/*/,"/"),cR=t=>!t||t==="?"?"":t.startsWith("?")?t:"?"+t,uR=t=>!t||t==="#"?"":t.startsWith("#")?t:"#"+t;function dR(t){return t!=null&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.internal=="boolean"&&"data"in t}const pA=["post","put","patch","delete"];new Set(pA);const hR=["get",...pA];new Set(hR);/**
 * 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 iu(){return iu=Object.assign?Object.assign.bind():function(t){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},iu.apply(this,arguments)}const ly=R.createContext(null),fR=R.createContext(null),Xa=R.createContext(null),df=R.createContext(null),Ja=R.createContext({outlet:null,matches:[],isDataRoute:!1}),gA=R.createContext(null);function mR(t,n){let{relative:r}=n===void 0?{}:n;Au()||cn(!1);let{basename:i,navigator:s}=R.useContext(Xa),{hash:a,pathname:o,search:c}=vA(t,{relative:r}),d=o;return i!=="/"&&(d=o==="/"?i:Vs([i,o])),s.createHref({pathname:d,search:c,hash:a})}function Au(){return R.useContext(df)!=null}function Za(){return Au()||cn(!1),R.useContext(df).location}function xA(t){R.useContext(Xa).static||R.useLayoutEffect(t)}function wl(){let{isDataRoute:t}=R.useContext(Ja);return t?AR():pR()}function pR(){Au()||cn(!1);let t=R.useContext(ly),{basename:n,future:r,navigator:i}=R.useContext(Xa),{matches:s}=R.useContext(Ja),{pathname:a}=Za(),o=JSON.stringify(fA(s,r.v7_relativeSplatPath)),c=R.useRef(!1);return xA(()=>{c.current=!0}),R.useCallback(function(h,f){if(f===void 0&&(f={}),!c.current)return;if(typeof h=="number"){i.go(h);return}let m=mA(h,JSON.parse(o),a,f.relative==="path");t==null&&n!=="/"&&(m.pathname=m.pathname==="/"?n:Vs([n,m.pathname])),(f.replace?i.replace:i.push)(m,f.state,f)},[n,i,o,a,t])}function vA(t,n){let{relative:r}=n===void 0?{}:n,{future:i}=R.useContext(Xa),{matches:s}=R.useContext(Ja),{pathname:a}=Za(),o=JSON.stringify(fA(s,i.v7_relativeSplatPath));return R.useMemo(()=>mA(t,JSON.parse(o),a,r==="path"),[t,o,a,r])}function gR(t,n){return xR(t,n)}function xR(t,n,r,i){Au()||cn(!1);let{navigator:s}=R.useContext(Xa),{matches:a}=R.useContext(Ja),o=a[a.length-1],c=o?o.params:{};o&&o.pathname;let d=o?o.pathnameBase:"/";o&&o.route;let h=Za(),f;if(n){var m;let v=typeof n=="string"?jl(n):n;d==="/"||(m=v.pathname)!=null&&m.startsWith(d)||cn(!1),f=v}else f=h;let p=f.pathname||"/",g=p;if(d!=="/"){let v=d.replace(/^\//,"").split("/");g="/"+p.replace(/^\//,"").split("/").slice(v.length).join("/")}let b=$I(t,{pathname:g}),j=wR(b&&b.map(v=>Object.assign({},v,{params:Object.assign({},c,v.params),pathname:Vs([d,s.encodeLocation?s.encodeLocation(v.pathname).pathname:v.pathname]),pathnameBase:v.pathnameBase==="/"?d:Vs([d,s.encodeLocation?s.encodeLocation(v.pathnameBase).pathname:v.pathnameBase])})),a,r,i);return n&&j?R.createElement(df.Provider,{value:{location:iu({pathname:"/",search:"",hash:"",state:null,key:"default"},f),navigationType:Ls.Pop}},j):j}function vR(){let t=SR(),n=dR(t)?t.status+" "+t.statusText:t instanceof Error?t.message:JSON.stringify(t),r=t instanceof Error?t.stack:null,s={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return R.createElement(R.Fragment,null,R.createElement("h2",null,"Unexpected Application Error!"),R.createElement("h3",{style:{fontStyle:"italic"}},n),r?R.createElement("pre",{style:s},r):null,null)}const yR=R.createElement(vR,null);class bR extends R.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?R.createElement(Ja.Provider,{value:this.props.routeContext},R.createElement(gA.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function jR(t){let{routeContext:n,match:r,children:i}=t,s=R.useContext(ly);return s&&s.static&&s.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(s.staticContext._deepestRenderedBoundaryId=r.route.id),R.createElement(Ja.Provider,{value:n},i)}function wR(t,n,r,i){var s;if(n===void 0&&(n=[]),r===void 0&&(r=null),i===void 0&&(i=null),t==null){var a;if(!r)return null;if(r.errors)t=r.matches;else if((a=i)!=null&&a.v7_partialHydration&&n.length===0&&!r.initialized&&r.matches.length>0)t=r.matches;else return null}let o=t,c=(s=r)==null?void 0:s.errors;if(c!=null){let f=o.findIndex(m=>m.route.id&&(c==null?void 0:c[m.route.id])!==void 0);f>=0||cn(!1),o=o.slice(0,Math.min(o.length,f+1))}let d=!1,h=-1;if(r&&i&&i.v7_partialHydration)for(let f=0;f<o.length;f++){let m=o[f];if((m.route.HydrateFallback||m.route.hydrateFallbackElement)&&(h=f),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,h>=0?o=o.slice(0,h+1):o=[o[0]];break}}}return o.reduceRight((f,m,p)=>{let g,b=!1,j=null,v=null;r&&(g=c&&m.route.id?c[m.route.id]:void 0,j=m.route.errorElement||yR,d&&(h<0&&p===0?(CR("route-fallback"),b=!0,v=null):h===p&&(b=!0,v=m.route.hydrateFallbackElement||null)));let x=n.concat(o.slice(0,p+1)),k=()=>{let w;return g?w=j:b?w=v:m.route.Component?w=R.createElement(m.route.Component,null):m.route.element?w=m.route.element:w=f,R.createElement(jR,{match:m,routeContext:{outlet:f,matches:x,isDataRoute:r!=null},children:w})};return r&&(m.route.ErrorBoundary||m.route.errorElement||p===0)?R.createElement(bR,{location:r.location,revalidation:r.revalidation,component:j,error:g,children:k(),routeContext:{outlet:null,matches:x,isDataRoute:!0}}):k()},null)}var yA=(function(t){return t.UseBlocker="useBlocker",t.UseRevalidator="useRevalidator",t.UseNavigateStable="useNavigate",t})(yA||{}),bA=(function(t){return t.UseBlocker="useBlocker",t.UseLoaderData="useLoaderData",t.UseActionData="useActionData",t.UseRouteError="useRouteError",t.UseNavigation="useNavigation",t.UseRouteLoaderData="useRouteLoaderData",t.UseMatches="useMatches",t.UseRevalidator="useRevalidator",t.UseNavigateStable="useNavigate",t.UseRouteId="useRouteId",t})(bA||{});function kR(t){let n=R.useContext(ly);return n||cn(!1),n}function NR(t){let n=R.useContext(fR);return n||cn(!1),n}function _R(t){let n=R.useContext(Ja);return n||cn(!1),n}function jA(t){let n=_R(),r=n.matches[n.matches.length-1];return r.route.id||cn(!1),r.route.id}function SR(){var t;let n=R.useContext(gA),r=NR(),i=jA();return n!==void 0?n:(t=r.errors)==null?void 0:t[i]}function AR(){let{router:t}=kR(yA.UseNavigateStable),n=jA(bA.UseNavigateStable),r=R.useRef(!1);return xA(()=>{r.current=!0}),R.useCallback(function(s,a){a===void 0&&(a={}),r.current&&(typeof s=="number"?t.navigate(s):t.navigate(s,iu({fromRouteId:n},a)))},[t,n])}const Q1={};function CR(t,n,r){Q1[t]||(Q1[t]=!0)}function ER(t,n){t==null||t.v7_startTransition,t==null||t.v7_relativeSplatPath}function Tc(t){cn(!1)}function TR(t){let{basename:n="/",children:r=null,location:i,navigationType:s=Ls.Pop,navigator:a,static:o=!1,future:c}=t;Au()&&cn(!1);let d=n.replace(/^\/*/,"/"),h=R.useMemo(()=>({basename:d,navigator:a,static:o,future:iu({v7_relativeSplatPath:!1},c)}),[d,c,a,o]);typeof i=="string"&&(i=jl(i));let{pathname:f="/",search:m="",hash:p="",state:g=null,key:b="default"}=i,j=R.useMemo(()=>{let v=oy(f,d);return v==null?null:{location:{pathname:v,search:m,hash:p,state:g,key:b},navigationType:s}},[d,f,m,p,g,b,s]);return j==null?null:R.createElement(Xa.Provider,{value:h},R.createElement(df.Provider,{children:r,value:j}))}function OR(t){let{children:n,location:r}=t;return gR(Wv(n),r)}new Promise(()=>{});function Wv(t,n){n===void 0&&(n=[]);let r=[];return R.Children.forEach(t,(i,s)=>{if(!R.isValidElement(i))return;let a=[...n,s];if(i.type===R.Fragment){r.push.apply(r,Wv(i.props.children,a));return}i.type!==Tc&&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=Wv(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 Kv(){return Kv=Object.assign?Object.assign.bind():function(t){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},Kv.apply(this,arguments)}function PR(t,n){if(t==null)return{};var r={},i=Object.keys(t),s,a;for(a=0;a<i.length;a++)s=i[a],!(n.indexOf(s)>=0)&&(r[s]=t[s]);return r}function DR(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}function IR(t,n){return t.button===0&&(!n||n==="_self")&&!DR(t)}const RR=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],FR="6";try{window.__reactRouterVersion=FR}catch{}const MR="startTransition",Y1=J0[MR];function LR(t){let{basename:n,children:r,future:i,window:s}=t,a=R.useRef();a.current==null&&(a.current=qI({window:s,v5Compat:!0}));let o=a.current,[c,d]=R.useState({action:o.action,location:o.location}),{v7_startTransition:h}=i||{},f=R.useCallback(m=>{h&&Y1?Y1(()=>d(m)):d(m)},[d,h]);return R.useLayoutEffect(()=>o.listen(f),[o,f]),R.useEffect(()=>ER(i),[i]),R.createElement(TR,{basename:n,children:r,location:c.location,navigationType:c.action,navigator:o,future:i})}const BR=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",zR=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,de=R.forwardRef(function(n,r){let{onClick:i,relative:s,reloadDocument:a,replace:o,state:c,target:d,to:h,preventScrollReset:f,viewTransition:m}=n,p=PR(n,RR),{basename:g}=R.useContext(Xa),b,j=!1;if(typeof h=="string"&&zR.test(h)&&(b=h,BR))try{let w=new URL(window.location.href),N=h.startsWith("//")?new URL(w.protocol+h):new URL(h),A=oy(N.pathname,g);N.origin===w.origin&&A!=null?h=A+N.search+N.hash:j=!0}catch{}let v=mR(h,{relative:s}),x=qR(h,{replace:o,state:c,target:d,preventScrollReset:f,relative:s,viewTransition:m});function k(w){i&&i(w),w.defaultPrevented||x(w)}return R.createElement("a",Kv({},p,{href:b||v,onClick:j||a?i:k,ref:r,target:d}))});var X1;(function(t){t.UseScrollRestoration="useScrollRestoration",t.UseSubmit="useSubmit",t.UseSubmitFetcher="useSubmitFetcher",t.UseFetcher="useFetcher",t.useViewTransitionState="useViewTransitionState"})(X1||(X1={}));var J1;(function(t){t.UseFetcher="useFetcher",t.UseFetchers="useFetchers",t.UseScrollRestoration="useScrollRestoration"})(J1||(J1={}));function qR(t,n){let{target:r,replace:i,state:s,preventScrollReset:a,relative:o,viewTransition:c}=n===void 0?{}:n,d=wl(),h=Za(),f=vA(t,{relative:o});return R.useCallback(m=>{if(IR(m,r)){m.preventDefault();let p=i!==void 0?i:Vh(h)===Vh(f);d(t,{replace:p,state:s,preventScrollReset:a,relative:o,viewTransition:c})}},[h,d,f,i,s,r,t,a,o,c])}function wA(t,n){return function(){return t.apply(n,arguments)}}const{toString:VR}=Object.prototype,{getPrototypeOf:cy}=Object,{iterator:hf,toStringTag:kA}=Symbol,ff=(t=>n=>{const r=VR.call(n);return t[r]||(t[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),Gr=t=>(t=t.toLowerCase(),n=>ff(n)===t),mf=t=>n=>typeof n===t,{isArray:kl}=Array,ul=mf("undefined");function Cu(t){return t!==null&&!ul(t)&&t.constructor!==null&&!ul(t.constructor)&&er(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const NA=Gr("ArrayBuffer");function UR(t){let n;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?n=ArrayBuffer.isView(t):n=t&&t.buffer&&NA(t.buffer),n}const $R=mf("string"),er=mf("function"),_A=mf("number"),Eu=t=>t!==null&&typeof t=="object",HR=t=>t===!0||t===!1,Nh=t=>{if(ff(t)!=="object")return!1;const n=cy(t);return(n===null||n===Object.prototype||Object.getPrototypeOf(n)===null)&&!(kA in t)&&!(hf in t)},WR=t=>{if(!Eu(t)||Cu(t))return!1;try{return Object.keys(t).length===0&&Object.getPrototypeOf(t)===Object.prototype}catch{return!1}},KR=Gr("Date"),GR=Gr("File"),QR=Gr("Blob"),YR=Gr("FileList"),XR=t=>Eu(t)&&er(t.pipe),JR=t=>{let n;return t&&(typeof FormData=="function"&&t instanceof FormData||er(t.append)&&((n=ff(t))==="formdata"||n==="object"&&er(t.toString)&&t.toString()==="[object FormData]"))},ZR=Gr("URLSearchParams"),[eF,tF,nF,rF]=["ReadableStream","Request","Response","Headers"].map(Gr),iF=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Tu(t,n,{allOwnKeys:r=!1}={}){if(t===null||typeof t>"u")return;let i,s;if(typeof t!="object"&&(t=[t]),kl(t))for(i=0,s=t.length;i<s;i++)n.call(null,t[i],i,t);else{if(Cu(t))return;const a=r?Object.getOwnPropertyNames(t):Object.keys(t),o=a.length;let c;for(i=0;i<o;i++)c=a[i],n.call(null,t[c],c,t)}}function SA(t,n){if(Cu(t))return null;n=n.toLowerCase();const r=Object.keys(t);let i=r.length,s;for(;i-- >0;)if(s=r[i],n===s.toLowerCase())return s;return null}const Aa=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,AA=t=>!ul(t)&&t!==Aa;function Gv(){const{caseless:t,skipUndefined:n}=AA(this)&&this||{},r={},i=(s,a)=>{const o=t&&SA(r,a)||a;Nh(r[o])&&Nh(s)?r[o]=Gv(r[o],s):Nh(s)?r[o]=Gv({},s):kl(s)?r[o]=s.slice():(!n||!ul(s))&&(r[o]=s)};for(let s=0,a=arguments.length;s<a;s++)arguments[s]&&Tu(arguments[s],i);return r}const sF=(t,n,r,{allOwnKeys:i}={})=>(Tu(n,(s,a)=>{r&&er(s)?t[a]=wA(s,r):t[a]=s},{allOwnKeys:i}),t),aF=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),oF=(t,n,r,i)=>{t.prototype=Object.create(n.prototype,i),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:n.prototype}),r&&Object.assign(t.prototype,r)},lF=(t,n,r,i)=>{let s,a,o;const c={};if(n=n||{},t==null)return n;do{for(s=Object.getOwnPropertyNames(t),a=s.length;a-- >0;)o=s[a],(!i||i(o,t,n))&&!c[o]&&(n[o]=t[o],c[o]=!0);t=r!==!1&&cy(t)}while(t&&(!r||r(t,n))&&t!==Object.prototype);return n},cF=(t,n,r)=>{t=String(t),(r===void 0||r>t.length)&&(r=t.length),r-=n.length;const i=t.indexOf(n,r);return i!==-1&&i===r},uF=t=>{if(!t)return null;if(kl(t))return t;let n=t.length;if(!_A(n))return null;const r=new Array(n);for(;n-- >0;)r[n]=t[n];return r},dF=(t=>n=>t&&n instanceof t)(typeof Uint8Array<"u"&&cy(Uint8Array)),hF=(t,n)=>{const i=(t&&t[hf]).call(t);let s;for(;(s=i.next())&&!s.done;){const a=s.value;n.call(t,a[0],a[1])}},fF=(t,n)=>{let r;const i=[];for(;(r=t.exec(n))!==null;)i.push(r);return i},mF=Gr("HTMLFormElement"),pF=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,i,s){return i.toUpperCase()+s}),Z1=(({hasOwnProperty:t})=>(n,r)=>t.call(n,r))(Object.prototype),gF=Gr("RegExp"),CA=(t,n)=>{const r=Object.getOwnPropertyDescriptors(t),i={};Tu(r,(s,a)=>{let o;(o=n(s,a,t))!==!1&&(i[a]=o||s)}),Object.defineProperties(t,i)},xF=t=>{CA(t,(n,r)=>{if(er(t)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const i=t[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+"'")})}})},vF=(t,n)=>{const r={},i=s=>{s.forEach(a=>{r[a]=!0})};return kl(t)?i(t):i(String(t).split(n)),r},yF=()=>{},bF=(t,n)=>t!=null&&Number.isFinite(t=+t)?t:n;function jF(t){return!!(t&&er(t.append)&&t[kA]==="FormData"&&t[hf])}const wF=t=>{const n=new Array(10),r=(i,s)=>{if(Eu(i)){if(n.indexOf(i)>=0)return;if(Cu(i))return i;if(!("toJSON"in i)){n[s]=i;const a=kl(i)?[]:{};return Tu(i,(o,c)=>{const d=r(o,s+1);!ul(d)&&(a[c]=d)}),n[s]=void 0,a}}return i};return r(t,0)},kF=Gr("AsyncFunction"),NF=t=>t&&(Eu(t)||er(t))&&er(t.then)&&er(t.catch),EA=((t,n)=>t?setImmediate:n?((r,i)=>(Aa.addEventListener("message",({source:s,data:a})=>{s===Aa&&a===r&&i.length&&i.shift()()},!1),s=>{i.push(s),Aa.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",er(Aa.postMessage)),_F=typeof queueMicrotask<"u"?queueMicrotask.bind(Aa):typeof process<"u"&&process.nextTick||EA,SF=t=>t!=null&&er(t[hf]),pe={isArray:kl,isArrayBuffer:NA,isBuffer:Cu,isFormData:JR,isArrayBufferView:UR,isString:$R,isNumber:_A,isBoolean:HR,isObject:Eu,isPlainObject:Nh,isEmptyObject:WR,isReadableStream:eF,isRequest:tF,isResponse:nF,isHeaders:rF,isUndefined:ul,isDate:KR,isFile:GR,isBlob:QR,isRegExp:gF,isFunction:er,isStream:XR,isURLSearchParams:ZR,isTypedArray:dF,isFileList:YR,forEach:Tu,merge:Gv,extend:sF,trim:iF,stripBOM:aF,inherits:oF,toFlatObject:lF,kindOf:ff,kindOfTest:Gr,endsWith:cF,toArray:uF,forEachEntry:hF,matchAll:fF,isHTMLForm:mF,hasOwnProperty:Z1,hasOwnProp:Z1,reduceDescriptors:CA,freezeMethods:xF,toObjectSet:vF,toCamelCase:pF,noop:yF,toFiniteNumber:bF,findKey:SA,global:Aa,isContextDefined:AA,isSpecCompliantForm:jF,toJSONObject:wF,isAsyncFn:kF,isThenable:NF,setImmediate:EA,asap:_F,isIterable:SF};function at(t,n,r,i,s){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=t,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 TA=at.prototype,OA={};["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(t=>{OA[t]={value:t}});Object.defineProperties(at,OA);Object.defineProperty(TA,"isAxiosError",{value:!0});at.from=(t,n,r,i,s,a)=>{const o=Object.create(TA);pe.toFlatObject(t,o,function(f){return f!==Error.prototype},h=>h!=="isAxiosError");const c=t&&t.message?t.message:"Error",d=n==null&&t?t.code:n;return at.call(o,c,d,r,i,s),t&&o.cause==null&&Object.defineProperty(o,"cause",{value:t,configurable:!0}),o.name=t&&t.name||"Error",a&&Object.assign(o,a),o};const AF=null;function Qv(t){return pe.isPlainObject(t)||pe.isArray(t)}function PA(t){return pe.endsWith(t,"[]")?t.slice(0,-2):t}function ek(t,n,r){return t?t.concat(n).map(function(s,a){return s=PA(s),!r&&a?"["+s+"]":s}).join(r?".":""):n}function CF(t){return pe.isArray(t)&&!t.some(Qv)}const EF=pe.toFlatObject(pe,{},null,function(n){return/^is[A-Z]/.test(n)});function pf(t,n,r){if(!pe.isObject(t))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,v){return!pe.isUndefined(v[j])});const i=r.metaTokens,s=r.visitor||f,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 h(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 f(b,j,v){let x=b;if(b&&!v&&typeof b=="object"){if(pe.endsWith(j,"{}"))j=i?j:j.slice(0,-2),b=JSON.stringify(b);else if(pe.isArray(b)&&CF(b)||(pe.isFileList(b)||pe.endsWith(j,"[]"))&&(x=pe.toArray(b)))return j=PA(j),x.forEach(function(w,N){!(pe.isUndefined(w)||w===null)&&n.append(o===!0?ek([j],N,a):o===null?j:j+"[]",h(w))}),!1}return Qv(b)?!0:(n.append(ek(v,j,a),h(b)),!1)}const m=[],p=Object.assign(EF,{defaultVisitor:f,convertValue:h,isVisitable:Qv});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,k){(!(pe.isUndefined(x)||x===null)&&s.call(n,x,pe.isString(k)?k.trim():k,j,p))===!0&&g(x,j?j.concat(k):[k])}),m.pop()}}if(!pe.isObject(t))throw new TypeError("data must be an object");return g(t),n}function tk(t){const n={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(i){return n[i]})}function uy(t,n){this._pairs=[],t&&pf(t,this,n)}const DA=uy.prototype;DA.append=function(n,r){this._pairs.push([n,r])};DA.toString=function(n){const r=n?function(i){return n.call(this,i,tk)}:tk;return this._pairs.map(function(s){return r(s[0])+"="+r(s[1])},"").join("&")};function TF(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function IA(t,n,r){if(!n)return t;const i=r&&r.encode||TF;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 uy(n,r).toString(i),a){const o=t.indexOf("#");o!==-1&&(t=t.slice(0,o)),t+=(t.indexOf("?")===-1?"?":"&")+a}return t}class nk{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 RA={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},OF=typeof URLSearchParams<"u"?URLSearchParams:uy,PF=typeof FormData<"u"?FormData:null,DF=typeof Blob<"u"?Blob:null,IF={isBrowser:!0,classes:{URLSearchParams:OF,FormData:PF,Blob:DF},protocols:["http","https","file","blob","url","data"]},dy=typeof window<"u"&&typeof document<"u",Yv=typeof navigator=="object"&&navigator||void 0,RF=dy&&(!Yv||["ReactNative","NativeScript","NS"].indexOf(Yv.product)<0),FF=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",MF=dy&&window.location.href||"http://localhost",LF=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:dy,hasStandardBrowserEnv:RF,hasStandardBrowserWebWorkerEnv:FF,navigator:Yv,origin:MF},Symbol.toStringTag,{value:"Module"})),Dn={...LF,...IF};function BF(t,n){return pf(t,new Dn.classes.URLSearchParams,{visitor:function(r,i,s,a){return Dn.isNode&&pe.isBuffer(r)?(this.append(i,r.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)},...n})}function zF(t){return pe.matchAll(/\w+|\[(\w*)]/g,t).map(n=>n[0]==="[]"?"":n[1]||n[0])}function qF(t){const n={},r=Object.keys(t);let i;const s=r.length;let a;for(i=0;i<s;i++)a=r[i],n[a]=t[a];return n}function FA(t){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]=qF(s[o])),!c)}if(pe.isFormData(t)&&pe.isFunction(t.entries)){const r={};return pe.forEachEntry(t,(i,s)=>{n(zF(i),s,r,0)}),r}return null}function VF(t,n,r){if(pe.isString(t))try{return(n||JSON.parse)(t),pe.trim(t)}catch(i){if(i.name!=="SyntaxError")throw i}return(r||JSON.stringify)(t)}const Ou={transitional:RA,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(FA(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 BF(n,this.formSerializer).toString();if((c=pe.isFileList(n))||i.indexOf("multipart/form-data")>-1){const d=this.env&&this.env.FormData;return pf(c?{"files[]":n}:n,d&&new d,this.formSerializer)}}return a||s?(r.setContentType("application/json",!1),VF(n)):n}],transformResponse:[function(n){const r=this.transitional||Ou.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:Dn.classes.FormData,Blob:Dn.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"],t=>{Ou.headers[t]={}});const UF=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"]),$F=t=>{const n={};let r,i,s;return t&&t.split(`
`).forEach(function(o){s=o.indexOf(":"),r=o.substring(0,s).trim().toLowerCase(),i=o.substring(s+1).trim(),!(!r||n[r]&&UF[r])&&(r==="set-cookie"?n[r]?n[r].push(i):n[r]=[i]:n[r]=n[r]?n[r]+", "+i:i)}),n},rk=Symbol("internals");function vc(t){return t&&String(t).trim().toLowerCase()}function _h(t){return t===!1||t==null?t:pe.isArray(t)?t.map(_h):String(t)}function HF(t){const n=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let i;for(;i=r.exec(t);)n[i[1]]=i[2];return n}const WF=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function Hp(t,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 KF(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(n,r,i)=>r.toUpperCase()+i)}function GF(t,n){const r=pe.toCamelCase(" "+n);["get","set","has"].forEach(i=>{Object.defineProperty(t,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,h){const f=vc(d);if(!f)throw new Error("header name must be a non-empty string");const m=pe.findKey(s,f);(!m||s[m]===void 0||h===!0||h===void 0&&s[m]!==!1)&&(s[m||d]=_h(c))}const o=(c,d)=>pe.forEach(c,(h,f)=>a(h,f,d));if(pe.isPlainObject(n)||n instanceof this.constructor)o(n,r);else if(pe.isString(n)&&(n=n.trim())&&!WF(n))o($F(n),r);else if(pe.isObject(n)&&pe.isIterable(n)){let c={},d,h;for(const f of n){if(!pe.isArray(f))throw TypeError("Object iterator must return a key-value pair");c[h=f[0]]=(d=c[h])?pe.isArray(d)?[...d,f[1]]:[d,f[1]]:f[1]}o(c,r)}else n!=null&&a(r,n,i);return this}get(n,r){if(n=vc(n),n){const i=pe.findKey(this,n);if(i){const s=this[i];if(!r)return s;if(r===!0)return HF(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=vc(n),n){const i=pe.findKey(this,n);return!!(i&&this[i]!==void 0&&(!r||Hp(this,this[i],i,r)))}return!1}delete(n,r){const i=this;let s=!1;function a(o){if(o=vc(o),o){const c=pe.findKey(i,o);c&&(!r||Hp(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||Hp(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]=_h(s),delete r[a];return}const c=n?KF(a):String(a).trim();c!==a&&delete r[a],r[c]=_h(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[rk]=this[rk]={accessors:{}}).accessors,s=this.prototype;function a(o){const c=vc(o);i[c]||(GF(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:t},n)=>{let r=n[0].toUpperCase()+n.slice(1);return{get:()=>t,set(i){this[r]=i}}});pe.freezeMethods(tr);function Wp(t,n){const r=this||Ou,i=n||r,s=tr.from(i.headers);let a=i.data;return pe.forEach(t,function(c){a=c.call(r,a,s.normalize(),n?n.status:void 0)}),s.normalize(),a}function MA(t){return!!(t&&t.__CANCEL__)}function Nl(t,n,r){at.call(this,t??"canceled",at.ERR_CANCELED,n,r),this.name="CanceledError"}pe.inherits(Nl,at,{__CANCEL__:!0});function LA(t,n,r){const i=r.config.validateStatus;!r.status||!i||i(r.status)?t(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 QF(t){const n=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return n&&n[1]||""}function YF(t,n){t=t||10;const r=new Array(t),i=new Array(t);let s=0,a=0,o;return n=n!==void 0?n:1e3,function(d){const h=Date.now(),f=i[a];o||(o=h),r[s]=d,i[s]=h;let m=a,p=0;for(;m!==s;)p+=r[m++],m=m%t;if(s=(s+1)%t,s===a&&(a=(a+1)%t),h-o<n)return;const g=f&&h-f;return g?Math.round(p*1e3/g):void 0}}function XF(t,n){let r=0,i=1e3/n,s,a;const o=(h,f=Date.now())=>{r=f,s=null,a&&(clearTimeout(a),a=null),t(...h)};return[(...h)=>{const f=Date.now(),m=f-r;m>=i?o(h,f):(s=h,a||(a=setTimeout(()=>{a=null,o(s)},i-m)))},()=>s&&o(s)]}const Uh=(t,n,r=3)=>{let i=0;const s=YF(50,250);return XF(a=>{const o=a.loaded,c=a.lengthComputable?a.total:void 0,d=o-i,h=s(d),f=o<=c;i=o;const m={loaded:o,total:c,progress:c?o/c:void 0,bytes:d,rate:h||void 0,estimated:h&&c&&f?(c-o)/h:void 0,event:a,lengthComputable:c!=null,[n?"download":"upload"]:!0};t(m)},r)},ik=(t,n)=>{const r=t!=null;return[i=>n[0]({lengthComputable:r,total:t,loaded:i}),n[1]]},sk=t=>(...n)=>pe.asap(()=>t(...n)),JF=Dn.hasStandardBrowserEnv?((t,n)=>r=>(r=new URL(r,Dn.origin),t.protocol===r.protocol&&t.host===r.host&&(n||t.port===r.port)))(new URL(Dn.origin),Dn.navigator&&/(msie|trident)/i.test(Dn.navigator.userAgent)):()=>!0,ZF=Dn.hasStandardBrowserEnv?{write(t,n,r,i,s,a){const o=[t+"="+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(t){const n=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return n?decodeURIComponent(n[3]):null},remove(t){this.write(t,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function eM(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function tM(t,n){return n?t.replace(/\/?\/$/,"")+"/"+n.replace(/^\/+/,""):t}function BA(t,n,r){let i=!eM(n);return t&&(i||r==!1)?tM(t,n):n}const ak=t=>t instanceof tr?{...t}:t;function Wa(t,n){n=n||{};const r={};function i(h,f,m,p){return pe.isPlainObject(h)&&pe.isPlainObject(f)?pe.merge.call({caseless:p},h,f):pe.isPlainObject(f)?pe.merge({},f):pe.isArray(f)?f.slice():f}function s(h,f,m,p){if(pe.isUndefined(f)){if(!pe.isUndefined(h))return i(void 0,h,m,p)}else return i(h,f,m,p)}function a(h,f){if(!pe.isUndefined(f))return i(void 0,f)}function o(h,f){if(pe.isUndefined(f)){if(!pe.isUndefined(h))return i(void 0,h)}else return i(void 0,f)}function c(h,f,m){if(m in n)return i(h,f);if(m in t)return i(void 0,h)}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:(h,f,m)=>s(ak(h),ak(f),m,!0)};return pe.forEach(Object.keys({...t,...n}),function(f){const m=d[f]||s,p=m(t[f],n[f],f);pe.isUndefined(p)&&m!==c||(r[f]=p)}),r}const zA=t=>{const n=Wa({},t);let{data:r,withXSRFToken:i,xsrfHeaderName:s,xsrfCookieName:a,headers:o,auth:c}=n;if(n.headers=o=tr.from(o),n.url=IA(BA(n.baseURL,n.url,n.allowAbsoluteUrls),t.params,t.paramsSerializer),c&&o.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):""))),pe.isFormData(r)){if(Dn.hasStandardBrowserEnv||Dn.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if(pe.isFunction(r.getHeaders)){const d=r.getHeaders(),h=["content-type","content-length"];Object.entries(d).forEach(([f,m])=>{h.includes(f.toLowerCase())&&o.set(f,m)})}}if(Dn.hasStandardBrowserEnv&&(i&&pe.isFunction(i)&&(i=i(n)),i||i!==!1&&JF(n.url))){const d=s&&a&&ZF.read(a);d&&o.set(s,d)}return n},nM=typeof XMLHttpRequest<"u",rM=nM&&function(t){return new Promise(function(r,i){const s=zA(t);let a=s.data;const o=tr.from(s.headers).normalize();let{responseType:c,onUploadProgress:d,onDownloadProgress:h}=s,f,m,p,g,b;function j(){g&&g(),b&&b(),s.cancelToken&&s.cancelToken.unsubscribe(f),s.signal&&s.signal.removeEventListener("abort",f)}let v=new XMLHttpRequest;v.open(s.method.toUpperCase(),s.url,!0),v.timeout=s.timeout;function x(){if(!v)return;const w=tr.from("getAllResponseHeaders"in v&&v.getAllResponseHeaders()),A={data:!c||c==="text"||c==="json"?v.responseText:v.response,status:v.status,statusText:v.statusText,headers:w,config:t,request:v};LA(function(E){r(E),j()},function(E){i(E),j()},A),v=null}"onloadend"in v?v.onloadend=x:v.onreadystatechange=function(){!v||v.readyState!==4||v.status===0&&!(v.responseURL&&v.responseURL.indexOf("file:")===0)||setTimeout(x)},v.onabort=function(){v&&(i(new at("Request aborted",at.ECONNABORTED,t,v)),v=null)},v.onerror=function(N){const A=N&&N.message?N.message:"Network Error",S=new at(A,at.ERR_NETWORK,t,v);S.event=N||null,i(S),v=null},v.ontimeout=function(){let N=s.timeout?"timeout of "+s.timeout+"ms exceeded":"timeout exceeded";const A=s.transitional||RA;s.timeoutErrorMessage&&(N=s.timeoutErrorMessage),i(new at(N,A.clarifyTimeoutError?at.ETIMEDOUT:at.ECONNABORTED,t,v)),v=null},a===void 0&&o.setContentType(null),"setRequestHeader"in v&&pe.forEach(o.toJSON(),function(N,A){v.setRequestHeader(A,N)}),pe.isUndefined(s.withCredentials)||(v.withCredentials=!!s.withCredentials),c&&c!=="json"&&(v.responseType=s.responseType),h&&([p,b]=Uh(h,!0),v.addEventListener("progress",p)),d&&v.upload&&([m,g]=Uh(d),v.upload.addEventListener("progress",m),v.upload.addEventListener("loadend",g)),(s.cancelToken||s.signal)&&(f=w=>{v&&(i(!w||w.type?new Nl(null,t,v):w),v.abort(),v=null)},s.cancelToken&&s.cancelToken.subscribe(f),s.signal&&(s.signal.aborted?f():s.signal.addEventListener("abort",f)));const k=QF(s.url);if(k&&Dn.protocols.indexOf(k)===-1){i(new at("Unsupported protocol "+k+":",at.ERR_BAD_REQUEST,t));return}v.send(a||null)})},iM=(t,n)=>{const{length:r}=t=t?t.filter(Boolean):[];if(n||r){let i=new AbortController,s;const a=function(h){if(!s){s=!0,c();const f=h instanceof Error?h:this.reason;i.abort(f instanceof at?f:new Nl(f instanceof Error?f.message:f))}};let o=n&&setTimeout(()=>{o=null,a(new at(`timeout ${n} of ms exceeded`,at.ETIMEDOUT))},n);const c=()=>{t&&(o&&clearTimeout(o),o=null,t.forEach(h=>{h.unsubscribe?h.unsubscribe(a):h.removeEventListener("abort",a)}),t=null)};t.forEach(h=>h.addEventListener("abort",a));const{signal:d}=i;return d.unsubscribe=()=>pe.asap(c),d}},sM=function*(t,n){let r=t.byteLength;if(r<n){yield t;return}let i=0,s;for(;i<r;)s=i+n,yield t.slice(i,s),i=s},aM=async function*(t,n){for await(const r of oM(t))yield*sM(r,n)},oM=async function*(t){if(t[Symbol.asyncIterator]){yield*t;return}const n=t.getReader();try{for(;;){const{done:r,value:i}=await n.read();if(r)break;yield i}}finally{await n.cancel()}},ok=(t,n,r,i)=>{const s=aM(t,n);let a=0,o,c=d=>{o||(o=!0,i&&i(d))};return new ReadableStream({async pull(d){try{const{done:h,value:f}=await s.next();if(h){c(),d.close();return}let m=f.byteLength;if(r){let p=a+=m;r(p)}d.enqueue(new Uint8Array(f))}catch(h){throw c(h),h}},cancel(d){return c(d),s.return()}},{highWaterMark:2})},lk=64*1024,{isFunction:rh}=pe,lM=(({Request:t,Response:n})=>({Request:t,Response:n}))(pe.global),{ReadableStream:ck,TextEncoder:uk}=pe.global,dk=(t,...n)=>{try{return!!t(...n)}catch{return!1}},cM=t=>{t=pe.merge.call({skipUndefined:!0},lM,t);const{fetch:n,Request:r,Response:i}=t,s=n?rh(n):typeof fetch=="function",a=rh(r),o=rh(i);if(!s)return!1;const c=s&&rh(ck),d=s&&(typeof uk=="function"?(b=>j=>b.encode(j))(new uk):async b=>new Uint8Array(await new r(b).arrayBuffer())),h=a&&c&&dk(()=>{let b=!1;const j=new r(Dn.origin,{body:new ck,method:"POST",get duplex(){return b=!0,"half"}}).headers.has("Content-Type");return b&&!j}),f=o&&c&&dk(()=>pe.isReadableStream(new i("").body)),m={stream:f&&(b=>b.body)};s&&["text","arrayBuffer","blob","formData","stream"].forEach(b=>{!m[b]&&(m[b]=(j,v)=>{let x=j&&j[b];if(x)return x.call(j);throw new at(`Response type '${b}' is not supported`,at.ERR_NOT_SUPPORT,v)})});const p=async b=>{if(b==null)return 0;if(pe.isBlob(b))return b.size;if(pe.isSpecCompliantForm(b))return(await new r(Dn.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 v=pe.toFiniteNumber(b.getContentLength());return v??p(j)};return async b=>{let{url:j,method:v,data:x,signal:k,cancelToken:w,timeout:N,onDownloadProgress:A,onUploadProgress:S,responseType:E,headers:C,withCredentials:B="same-origin",fetchOptions:F}=zA(b),D=n||fetch;E=E?(E+"").toLowerCase():"text";let I=iM([k,w&&w.toAbortSignal()],N),z=null;const q=I&&I.unsubscribe&&(()=>{I.unsubscribe()});let U;try{if(S&&h&&v!=="get"&&v!=="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]=ik(U,Uh(sk(S)));x=ok(T.body,lk,L,X)}}pe.isString(B)||(B=B?"include":"omit");const Q=a&&"credentials"in r.prototype,H={...F,signal:I,method:v.toUpperCase(),headers:C.normalize().toJSON(),body:x,duplex:"half",credentials:Q?B:void 0};z=a&&new r(j,H);let K=await(a?D(z,F):D(j,H));const Y=f&&(E==="stream"||E==="response");if(f&&(A||Y&&q)){const T={};["status","statusText","headers"].forEach(J=>{T[J]=K[J]});const V=pe.toFiniteNumber(K.headers.get("content-length")),[L,X]=A&&ik(V,Uh(sk(A),!0))||[];K=new i(ok(K.body,lk,L,()=>{X&&X(),q&&q()}),T)}E=E||"text";let P=await m[pe.findKey(m,E)||"text"](K,b);return!Y&&q&&q(),await new Promise((T,V)=>{LA(T,V,{data:P,headers:tr.from(K.headers),status:K.status,statusText:K.statusText,config:b,request:z})})}catch(Q){throw q&&q(),Q&&Q.name==="TypeError"&&/Load failed|fetch/i.test(Q.message)?Object.assign(new at("Network Error",at.ERR_NETWORK,b,z),{cause:Q.cause||Q}):at.from(Q,Q&&Q.code,b,z)}}},uM=new Map,qA=t=>{let n=t?t.env:{};const{fetch:r,Request:i,Response:s}=n,a=[i,s,r];let o=a.length,c=o,d,h,f=uM;for(;c--;)d=a[c],h=f.get(d),h===void 0&&f.set(d,h=c?new Map:cM(n)),f=h;return h};qA();const Xv={http:AF,xhr:rM,fetch:{get:qA}};pe.forEach(Xv,(t,n)=>{if(t){try{Object.defineProperty(t,"name",{value:n})}catch{}Object.defineProperty(t,"adapterName",{value:n})}});const hk=t=>`- ${t}`,dM=t=>pe.isFunction(t)||t===null||t===!1,VA={getAdapter:(t,n)=>{t=pe.isArray(t)?t:[t];const{length:r}=t;let i,s;const a={};for(let o=0;o<r;o++){i=t[o];let c;if(s=i,!dM(i)&&(s=Xv[(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,h])=>`adapter ${d} `+(h===!1?"is not supported by the environment":"is not available in the build"));let c=r?o.length>1?`since :
`+o.map(hk).join(`
`):" "+hk(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:Xv};function Kp(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new Nl(null,t)}function fk(t){return Kp(t),t.headers=tr.from(t.headers),t.data=Wp.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),VA.getAdapter(t.adapter||Ou.adapter,t)(t).then(function(i){return Kp(t),i.data=Wp.call(t,t.transformResponse,i),i.headers=tr.from(i.headers),i},function(i){return MA(i)||(Kp(t),i&&i.response&&(i.response.data=Wp.call(t,t.transformResponse,i.response),i.response.headers=tr.from(i.response.headers))),Promise.reject(i)})}const UA="1.12.2",gf={};["object","boolean","number","function","string","symbol"].forEach((t,n)=>{gf[t]=function(i){return typeof i===t||"a"+(n<1?"n ":" ")+t}});const mk={};gf.transitional=function(n,r,i){function s(a,o){return"[Axios v"+UA+"] 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&&!mk[o]&&(mk[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}};gf.spelling=function(n){return(r,i)=>(console.warn(`${i} is likely a misspelling of ${n}`),!0)};function hM(t,n,r){if(typeof t!="object")throw new at("options must be an object",at.ERR_BAD_OPTION_VALUE);const i=Object.keys(t);let s=i.length;for(;s-- >0;){const a=i[s],o=n[a];if(o){const c=t[a],d=c===void 0||o(c,a,t);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 Sh={assertOptions:hM,validators:gf},ti=Sh.validators;let Ba=class{constructor(n){this.defaults=n||{},this.interceptors={request:new nk,response:new nk}}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=Wa(this.defaults,r);const{transitional:i,paramsSerializer:s,headers:a}=r;i!==void 0&&Sh.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}:Sh.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),Sh.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 h=[];this.interceptors.response.forEach(function(j){h.push(j.fulfilled,j.rejected)});let f,m=0,p;if(!d){const b=[fk.bind(this),void 0];for(b.unshift(...c),b.push(...h),p=b.length,f=Promise.resolve(r);m<p;)f=f.then(b[m++],b[m++]);return f}p=c.length;let g=r;for(;m<p;){const b=c[m++],j=c[m++];try{g=b(g)}catch(v){j.call(this,v);break}}try{f=fk.call(this,g)}catch(b){return Promise.reject(b)}for(m=0,p=h.length;m<p;)f=f.then(h[m++],h[m++]);return f}getUri(n){n=Wa(this.defaults,n);const r=BA(n.baseURL,n.url,n.allowAbsoluteUrls);return IA(r,n.params,n.paramsSerializer)}};pe.forEach(["delete","get","head","options"],function(n){Ba.prototype[n]=function(r,i){return this.request(Wa(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(Wa(c||{},{method:n,headers:i?{"Content-Type":"multipart/form-data"}:{},url:a,data:o}))}}Ba.prototype[n]=r(),Ba.prototype[n+"Form"]=r(!0)});let fM=class $A{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 $A(function(s){n=s}),cancel:n}}};function mM(t){return function(r){return t.apply(null,r)}}function pM(t){return pe.isObject(t)&&t.isAxiosError===!0}const Jv={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(Jv).forEach(([t,n])=>{Jv[n]=t});function HA(t){const n=new Ba(t),r=wA(Ba.prototype.request,n);return pe.extend(r,Ba.prototype,n,{allOwnKeys:!0}),pe.extend(r,n,null,{allOwnKeys:!0}),r.create=function(s){return HA(Wa(t,s))},r}const sn=HA(Ou);sn.Axios=Ba;sn.CanceledError=Nl;sn.CancelToken=fM;sn.isCancel=MA;sn.VERSION=UA;sn.toFormData=pf;sn.AxiosError=at;sn.Cancel=sn.CanceledError;sn.all=function(n){return Promise.all(n)};sn.spread=mM;sn.isAxiosError=pM;sn.mergeConfig=Wa;sn.AxiosHeaders=tr;sn.formToJSON=t=>FA(pe.isHTMLForm(t)?new FormData(t):t);sn.getAdapter=VA.getAdapter;sn.HttpStatusCode=Jv;sn.default=sn;const{Axios:cne,AxiosError:une,CanceledError:dne,isCancel:hne,CancelToken:fne,VERSION:mne,all:pne,Cancel:gne,isAxiosError:xne,spread:vne,toFormData:yne,AxiosHeaders:bne,HttpStatusCode:jne,formToJSON:wne,getAdapter:kne,mergeConfig:Nne}=sn,gM=typeof window>"u",pk=!gM&&window.self!==window.top,Gp=()=>Math.random().toString(36).substring(2,15)+Math.random().toString(36).substring(2,15),kn=[];for(let t=0;t<256;++t)kn.push((t+256).toString(16).slice(1));function xM(t,n=0){return(kn[t[n+0]]+kn[t[n+1]]+kn[t[n+2]]+kn[t[n+3]]+"-"+kn[t[n+4]]+kn[t[n+5]]+"-"+kn[t[n+6]]+kn[t[n+7]]+"-"+kn[t[n+8]]+kn[t[n+9]]+"-"+kn[t[n+10]]+kn[t[n+11]]+kn[t[n+12]]+kn[t[n+13]]+kn[t[n+14]]+kn[t[n+15]]).toLowerCase()}let Qp;const vM=new Uint8Array(16);function yM(){if(!Qp){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");Qp=crypto.getRandomValues.bind(crypto)}return Qp(vM)}const bM=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),gk={randomUUID:bM};function jM(t,n,r){var s;t=t||{};const i=t.random??((s=t.rng)==null?void 0:s.call(t))??yM();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,xM(i)}function wM(t,n,r){return gk.randomUUID&&!t?gk.randomUUID():jM(t)}class kM 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 Oc({baseURL:t,headers:n={},token:r,interceptResponses:i=!0,onError:s}){const a=sn.create({baseURL:t,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=wM();if(o.requestId=c,pk)try{window.parent.postMessage({type:"api-request-start",requestId:c,data:{url:t+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{pk&&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,h,f,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)||((f=(h=o.response)===null||h===void 0?void 0:h.data)===null||f===void 0?void 0:f.detail)||o.message,v=new kM(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(v),Promise.reject(v)}),a}function xk(t){const{axios:n,appId:r,getSocket:i}=t;return new Proxy({},{get(s,a){if(!(typeof a!="string"||a==="then"||a.startsWith("_")))return _M(n,r,a,i)}})}function NM(t){var n;try{const r=JSON.parse(t);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 _M(t,n,r,i){const s=`/apps/${n}/entities/${r}`;return{async list(a,o,c,d){const h={};return a&&(h.sort=a),o&&(h.limit=o),c&&(h.skip=c),d&&(h.fields=Array.isArray(d)?d.join(","):d),t.get(s,{params:h})},async filter(a,o,c,d,h){const f={q:JSON.stringify(a)};return o&&(f.sort=o),c&&(f.limit=c),d&&(f.skip=d),h&&(f.fields=Array.isArray(h)?h.join(","):h),t.get(s,{params:f})},async get(a){return t.get(`${s}/${a}`)},async create(a){return t.post(s,a)},async update(a,o){return t.put(`${s}/${a}`,o)},async delete(a){return t.delete(`${s}/${a}`)},async deleteMany(a){return t.delete(s,{data:a})},async bulkCreate(a){return t.post(`${s}/bulk`,a)},async updateMany(a,o){return t.patch(`${s}/update-many`,{query:a,data:o})},async bulkUpdate(a){return t.put(`${s}/bulk`,a)},async importEntities(a){const o=new FormData;return o.append("file",a,a.name),t.post(`${s}/import`,o,{headers:{"Content-Type":"multipart/form-data"}})},subscribe(a){const o=`entities:${n}:${r}`;return i().subscribeToRoom(o,{update_model:h=>{const f=NM(h.data);if(f)try{a(f)}catch(m){console.error("[Base44 SDK] Subscription callback error:",m)}}})}}}function SM(t,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 t.post(`/apps/${n}/integrations/custom/${r}/${i}`,d)}}}function vk(t,n){const r=SM(t,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,h;return c instanceof FormData||c&&Object.values(c).some(f=>f instanceof File)?(d=new FormData,Object.keys(c).forEach(f=>{c[f]instanceof File?d.append(f,c[f],c[f].name):typeof c[f]=="object"&&c[f]!==null?d.append(f,JSON.stringify(c[f])):d.append(f,c[f])}),h="multipart/form-data"):(d=c,h="application/json"),s==="Core"?t.post(`/apps/${n}/integration-endpoints/Core/${o}`,d||c,{headers:{"Content-Type":h}}):t.post(`/apps/${n}/integration-endpoints/installable/${s}/integration-endpoints/${o}`,d||c,{headers:{"Content-Type":h}})}}})}})}function AM(t,n,r,i){return{async me(){return t.get(`/apps/${r}/entities/User/me`)},async updateMe(s){return t.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=`app_id=${r}&from_url=${encodeURIComponent(o)}`;let d;s==="sso"?d=`/apps/${r}/auth/sso/login`:d=`/apps/auth${s==="google"?"":`/${s}`}/login`;const h=`${i.appBaseUrl}/api${d}?${c}`;window.location.href=h},logout(s){if(delete t.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&&(t.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 t.post(`/apps/${r}/auth/login`,{email:s,password:a,...o&&{turnstile_token:o}}),{access_token:h,user:f}=d;return h&&this.setToken(h),{access_token:h,user:f}}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 t.post(`/apps/${r}/users/invite-user`,{user_email:s,role:a})},register(s){return t.post(`/apps/${r}/auth/register`,s)},verifyOtp({email:s,otpCode:a}){return t.post(`/apps/${r}/auth/verify-otp`,{email:s,otp_code:a})},resendOtp(s){return t.post(`/apps/${r}/auth/resend-otp`,{email:s})},resetPasswordRequest(s){return t.post(`/apps/${r}/auth/reset-password-request`,{email:s})},resetPassword({resetToken:s,newPassword:a}){return t.post(`/apps/${r}/auth/reset-password`,{reset_token:s,new_password:a})},changePassword({userId:s,currentPassword:a,newPassword:o}){return t.post(`/apps/${r}/auth/change-password`,{user_id:s,current_password:a,new_password:o})}}}function CM(t,n){return{async getAccessToken(r){const i=`/apps/${n}/auth/sso/accesstoken/${r}`;return t.get(i)}}}function EM(t,n){return{async getAccessToken(r){if(!r||typeof r!="string")throw new Error("Integration type is required and must be a string");return(await t.get(`/apps/${n}/external-auth/tokens/${r}`)).access_token},async getConnection(r){var i;if(!r||typeof r!="string")throw new Error("Integration type is required and must be a string");const a=await t.get(`/apps/${n}/external-auth/tokens/${r}`);return{accessToken:a.access_token,connectionConfig:(i=a.connection_config)!==null&&i!==void 0?i:null}},async getCurrentAppUserAccessToken(r){if(!r||typeof r!="string")throw new Error("Connector ID is required and must be a string");return(await t.get(`/apps/${n}/app-user-auth/connectors/${r}/token`)).access_token}}}function TM(t,n){return{async connectAppUser(r){if(!r||typeof r!="string")throw new Error("Connector ID is required and must be a string");return(await t.post(`/apps/${n}/app-user-auth/connectors/${r}/initiate`)).redirect_url},async disconnectAppUser(r){if(!r||typeof r!="string")throw new Error("Connector ID is required and must be a string");await t.delete(`/apps/${n}/app-user-auth/connectors/${r}`)}}}function su(t={}){const{storageKey:n="base44_access_token",paramName:r="access_token",saveToStorage:i=!0,removeFromUrl:s=!0}=t;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&&OM(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 OM(t,n){const{storageKey:r="base44_access_token"}=n;if(typeof window>"u"||!window.localStorage||!t)return!1;try{return window.localStorage.setItem(r,t),window.localStorage.setItem("token",t),!0}catch(i){return console.error("Error saving token to local storage:",i),!1}}function yk(t,n,r){const i=(a,o)=>a?`${String(a).replace(/\/$/,"")}${o}`:o,s=a=>{const o=new Headers;if(r!=null&&r.getAuthHeaders){const c=r.getAuthHeaders();Object.entries(c).forEach(([d,h])=>{h!=null&&o.set(d,String(h))})}return a&&new Headers(a).forEach((c,d)=>{o.set(d,c)}),o};return{async invoke(a,o){if(typeof o=="string")throw new Error(`Function ${a} must receive an object with named parameters, received: ${o}`);let c,d;return o instanceof FormData||o&&Object.values(o).some(h=>h instanceof File)?(c=new FormData,Object.keys(o).forEach(h=>{o[h]instanceof File?c.append(h,o[h],o[h].name):typeof o[h]=="object"&&o[h]!==null?c.append(h,JSON.stringify(o[h])):c.append(h,o[h])}),d="multipart/form-data"):(c=o,d="application/json"),t.post(`/apps/${n}/functions/${a}`,c||o,{headers:{"Content-Type":d}})},async fetch(a,o={}){const d=`/functions${a.startsWith("/")?a:`/${a}`}`,h=s(o.headers),f={...o,headers:h};return await fetch(i(r==null?void 0:r.baseURL,d),f)}}}function bk({axios:t,getSocket:n,appId:r,serverUrl:i,token:s}){const a=`/apps/${r}/agents`,o={},c=()=>t.get(`${a}/conversations`),d=j=>t.get(`${a}/conversations/${j}`);return{getConversations:c,getConversation:d,listConversations:j=>t.get(`${a}/conversations`,{params:j}),createConversation:j=>t.post(`${a}/conversations`,j),addMessage:async(j,v)=>t.post(`${a}/conversations/v2/${j.id}/messages`,v),subscribeToConversation:(j,v)=>{const x=`/agent-conversations/${j}`,k=n(),w=d(j).then(N=>(o[j]=N,N));return k.subscribeToRoom(x,{connect:()=>{},update_model:async({data:N})=>{const A=JSON.parse(N);if(A._message){await w;const S=A._message,E=o[j];if(E){const C=E.messages||[],B=C.findIndex(D=>D.id===S.id),F=B!==-1?C.map((D,I)=>I===B?S:D):[...C,S];o[j]={...E,messages:F},v==null||v(o[j])}}}})},getWhatsAppConnectURL:j=>{const v=`${i}/api/apps/${r}/agents/${encodeURIComponent(j)}/whatsapp`,x=s??su();return x?`${v}?token=${x}`:v},getTelegramConnectURL:j=>{const v=`${i}/api/apps/${r}/agents/${encodeURIComponent(j)}/telegram`,x=s??su();return x?`${v}?token=${x}`:v}}}function jk(t,n){const r=`/app-logs/${n}`;return{async logUserInApp(i){await t.post(`${r}/log-user-in-app/${i}`)},async fetchLogs(i={}){return await t.get(r,{params:i})},async getStats(i={}){return await t.get(`${r}/stats`,{params:i})}}}function PM(t,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 t.post(`/apps/${n}/runtime/users/invite-user`,{user_email:r,role:i})}}}const bi=Object.create(null);bi.open="0";bi.close="1";bi.ping="2";bi.pong="3";bi.message="4";bi.upgrade="5";bi.noop="6";const Ah=Object.create(null);Object.keys(bi).forEach(t=>{Ah[bi[t]]=t});const Zv={type:"error",data:"parser error"},WA=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",KA=typeof ArrayBuffer=="function",GA=t=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(t):t&&t.buffer instanceof ArrayBuffer,hy=({type:t,data:n},r,i)=>WA&&n instanceof Blob?r?i(n):wk(n,i):KA&&(n instanceof ArrayBuffer||GA(n))?r?i(n):wk(new Blob([n]),i):i(bi[t]+(n||"")),wk=(t,n)=>{const r=new FileReader;return r.onload=function(){const i=r.result.split(",")[1];n("b"+(i||""))},r.readAsDataURL(t)};function kk(t){return t instanceof Uint8Array?t:t instanceof ArrayBuffer?new Uint8Array(t):new Uint8Array(t.buffer,t.byteOffset,t.byteLength)}let Yp;function DM(t,n){if(WA&&t.data instanceof Blob)return t.data.arrayBuffer().then(kk).then(n);if(KA&&(t.data instanceof ArrayBuffer||GA(t.data)))return n(kk(t.data));hy(t,!1,r=>{Yp||(Yp=new TextEncoder),n(Yp.encode(r))})}const Nk="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Pc=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let t=0;t<Nk.length;t++)Pc[Nk.charCodeAt(t)]=t;const IM=t=>{let n=t.length*.75,r=t.length,i,s=0,a,o,c,d;t[t.length-1]==="="&&(n--,t[t.length-2]==="="&&n--);const h=new ArrayBuffer(n),f=new Uint8Array(h);for(i=0;i<r;i+=4)a=Pc[t.charCodeAt(i)],o=Pc[t.charCodeAt(i+1)],c=Pc[t.charCodeAt(i+2)],d=Pc[t.charCodeAt(i+3)],f[s++]=a<<2|o>>4,f[s++]=(o&15)<<4|c>>2,f[s++]=(c&3)<<6|d&63;return h},RM=typeof ArrayBuffer=="function",fy=(t,n)=>{if(typeof t!="string")return{type:"message",data:QA(t,n)};const r=t.charAt(0);return r==="b"?{type:"message",data:FM(t.substring(1),n)}:Ah[r]?t.length>1?{type:Ah[r],data:t.substring(1)}:{type:Ah[r]}:Zv},FM=(t,n)=>{if(RM){const r=IM(t);return QA(r,n)}else return{base64:!0,data:t}},QA=(t,n)=>{switch(n){case"blob":return t instanceof Blob?t:new Blob([t]);case"arraybuffer":default:return t instanceof ArrayBuffer?t:t.buffer}},YA="",MM=(t,n)=>{const r=t.length,i=new Array(r);let s=0;t.forEach((a,o)=>{hy(a,!1,c=>{i[o]=c,++s===r&&n(i.join(YA))})})},LM=(t,n)=>{const r=t.split(YA),i=[];for(let s=0;s<r.length;s++){const a=fy(r[s],n);if(i.push(a),a.type==="error")break}return i};function BM(){return new TransformStream({transform(t,n){DM(t,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))}t.data&&typeof t.data!="string"&&(s[0]|=128),n.enqueue(s),n.enqueue(r)})}})}let Xp;function ih(t){return t.reduce((n,r)=>n+r.length,0)}function sh(t,n){if(t[0].length===n)return t.shift();const r=new Uint8Array(n);let i=0;for(let s=0;s<n;s++)r[s]=t[0][i++],i===t[0].length&&(t.shift(),i=0);return t.length&&i<t[0].length&&(t[0]=t[0].slice(i)),r}function zM(t,n){Xp||(Xp=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(ih(r)<1)break;const d=sh(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(ih(r)<2)break;const d=sh(r,2);s=new DataView(d.buffer,d.byteOffset,d.length).getUint16(0),i=3}else if(i===2){if(ih(r)<8)break;const d=sh(r,8),h=new DataView(d.buffer,d.byteOffset,d.length),f=h.getUint32(0);if(f>Math.pow(2,21)-1){c.enqueue(Zv);break}s=f*Math.pow(2,32)+h.getUint32(4),i=3}else{if(ih(r)<s)break;const d=sh(r,s);c.enqueue(fy(a?d:Xp.decode(d),n)),i=0}if(s===0||s>t){c.enqueue(Zv);break}}}})}const XA=4;function ln(t){if(t)return qM(t)}function qM(t){for(var n in ln.prototype)t[n]=ln.prototype[n];return t}ln.prototype.on=ln.prototype.addEventListener=function(t,n){return this._callbacks=this._callbacks||{},(this._callbacks["$"+t]=this._callbacks["$"+t]||[]).push(n),this};ln.prototype.once=function(t,n){function r(){this.off(t,r),n.apply(this,arguments)}return r.fn=n,this.on(t,r),this};ln.prototype.off=ln.prototype.removeListener=ln.prototype.removeAllListeners=ln.prototype.removeEventListener=function(t,n){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var r=this._callbacks["$"+t];if(!r)return this;if(arguments.length==1)return delete this._callbacks["$"+t],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["$"+t],this};ln.prototype.emit=function(t){this._callbacks=this._callbacks||{};for(var n=new Array(arguments.length-1),r=this._callbacks["$"+t],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(t){return this._callbacks=this._callbacks||{},this._callbacks["$"+t]||[]};ln.prototype.hasListeners=function(t){return!!this.listeners(t).length};const xf=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")(),VM="arraybuffer";function JA(t,...n){return n.reduce((r,i)=>(t.hasOwnProperty(i)&&(r[i]=t[i]),r),{})}const UM=Ar.setTimeout,$M=Ar.clearTimeout;function vf(t,n){n.useNativeTimers?(t.setTimeoutFn=UM.bind(Ar),t.clearTimeoutFn=$M.bind(Ar)):(t.setTimeoutFn=Ar.setTimeout.bind(Ar),t.clearTimeoutFn=Ar.clearTimeout.bind(Ar))}const HM=1.33;function WM(t){return typeof t=="string"?KM(t):Math.ceil((t.byteLength||t.size)*HM)}function KM(t){let n=0,r=0;for(let i=0,s=t.length;i<s;i++)n=t.charCodeAt(i),n<128?r+=1:n<2048?r+=2:n<55296||n>=57344?r+=3:(i++,r+=4);return r}function ZA(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function GM(t){let n="";for(let r in t)t.hasOwnProperty(r)&&(n.length&&(n+="&"),n+=encodeURIComponent(r)+"="+encodeURIComponent(t[r]));return n}function QM(t){let n={},r=t.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 YM extends Error{constructor(n,r,i){super(n),this.description=r,this.context=i,this.type="TransportError"}}class my extends ln{constructor(n){super(),this.writable=!1,vf(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 YM(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=fy(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=GM(n);return r.length?"?"+r:""}}class XM extends my{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)};LM(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,MM(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]=ZA()),!this.supportsBinary&&!r.sid&&(r.b64=1),this.createUri(n,r)}}let eC=!1;try{eC=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const JM=eC;function ZM(){}class eL extends XM{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 pi extends ln{constructor(n,r,i){super(),this.createRequest=n,vf(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=JA(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=pi.requestsCount++,pi.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=ZM,n)try{this._xhr.abort()}catch{}typeof document<"u"&&delete pi.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()}}pi.requestsCount=0;pi.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",_k);else if(typeof addEventListener=="function"){const t="onpagehide"in Ar?"pagehide":"unload";addEventListener(t,_k,!1)}}function _k(){for(let t in pi.requests)pi.requests.hasOwnProperty(t)&&pi.requests[t].abort()}const tL=(function(){const t=tC({xdomain:!1});return t&&t.responseType!==null})();class nL extends eL{constructor(n){super(n);const r=n&&n.forceBase64;this.supportsBinary=tL&&!r}request(n={}){return Object.assign(n,{xd:this.xd},this.opts),new pi(tC,this.uri(),n)}}function tC(t){const n=t.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!n||JM))return new XMLHttpRequest}catch{}if(!n)try{return new Ar[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}const nC=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class rL extends my{get name(){return"websocket"}doOpen(){const n=this.uri(),r=this.opts.protocols,i=nC?{}:JA(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;hy(i,this.supportsBinary,a=>{try{this.doWrite(i,a)}catch{}s&&xf(()=>{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]=ZA()),this.supportsBinary||(r.b64=1),this.createUri(n,r)}}const Jp=Ar.WebSocket||Ar.MozWebSocket;class iL extends rL{createSocket(n,r,i){return nC?new Jp(n,r,i):r?new Jp(n,r):new Jp(n)}doWrite(n,r){this.ws.send(r)}}class sL extends my{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=zM(Number.MAX_SAFE_INTEGER,this.socket.binaryType),i=n.readable.pipeThrough(r).getReader(),s=BM();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&&xf(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var n;(n=this._transport)===null||n===void 0||n.close()}}const aL={websocket:iL,webtransport:sL,polling:nL},oL=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,lL=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function e0(t){if(t.length>8e3)throw"URI too long";const n=t,r=t.indexOf("["),i=t.indexOf("]");r!=-1&&i!=-1&&(t=t.substring(0,r)+t.substring(r,i).replace(/:/g,";")+t.substring(i,t.length));let s=oL.exec(t||""),a={},o=14;for(;o--;)a[lL[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=cL(a,a.path),a.queryKey=uL(a,a.query),a}function cL(t,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 uL(t,n){const r={};return n.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(i,s,a){s&&(r[s]=a)}),r}const t0=typeof addEventListener=="function"&&typeof removeEventListener=="function",Ch=[];t0&&addEventListener("offline",()=>{Ch.forEach(t=>t())},!1);class Us extends ln{constructor(n,r){if(super(),this.binaryType=VM,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=e0(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=e0(r.host).host);vf(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)),t0&&(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"})},Ch.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(n){const r=Object.assign({},this.opts.query);r.EIO=XA,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&&Us.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",Us.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+=WM(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,xf(()=>{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(Us.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(),t0&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){const i=Ch.indexOf(this._offlineEventListener);i!==-1&&Ch.splice(i,1)}this.readyState="closed",this.id=null,this.emitReserved("close",n,r),this.writeBuffer=[],this._prevBufferLen=0}}}Us.protocol=XA;class dL extends Us{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;Us.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;Us.priorWebsocketSuccess=r.name==="websocket",this.transport.pause(()=>{i||this.readyState!=="closed"&&(f(),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,f(),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 h(m){r&&m.name!==r.name&&a()}const f=()=>{r.removeListener("open",s),r.removeListener("error",o),r.removeListener("close",c),this.off("close",d),this.off("upgrading",h)};r.once("open",s),r.once("error",o),r.once("close",c),this.once("close",d),this.once("upgrading",h),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 hL=class extends dL{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=>aL[s]).filter(s=>!!s)),super(n,i)}};function fL(t,n="",r){let i=t;r=r||typeof location<"u"&&location,t==null&&(t=r.protocol+"//"+r.host),typeof t=="string"&&(t.charAt(0)==="/"&&(t.charAt(1)==="/"?t=r.protocol+t:t=r.host+t),/^(https?|wss?):\/\//.test(t)||(typeof r<"u"?t=r.protocol+"//"+t:t="https://"+t),i=e0(t)),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 mL=typeof ArrayBuffer=="function",pL=t=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(t):t.buffer instanceof ArrayBuffer,rC=Object.prototype.toString,gL=typeof Blob=="function"||typeof Blob<"u"&&rC.call(Blob)==="[object BlobConstructor]",xL=typeof File=="function"||typeof File<"u"&&rC.call(File)==="[object FileConstructor]";function py(t){return mL&&(t instanceof ArrayBuffer||pL(t))||gL&&t instanceof Blob||xL&&t instanceof File}function Eh(t,n){if(!t||typeof t!="object")return!1;if(Array.isArray(t)){for(let r=0,i=t.length;r<i;r++)if(Eh(t[r]))return!0;return!1}if(py(t))return!0;if(t.toJSON&&typeof t.toJSON=="function"&&arguments.length===1)return Eh(t.toJSON(),!0);for(const r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&Eh(t[r]))return!0;return!1}function vL(t){const n=[],r=t.data,i=t;return i.data=n0(r,n),i.attachments=n.length,{packet:i,buffers:n}}function n0(t,n){if(!t)return t;if(py(t)){const r={_placeholder:!0,num:n.length};return n.push(t),r}else if(Array.isArray(t)){const r=new Array(t.length);for(let i=0;i<t.length;i++)r[i]=n0(t[i],n);return r}else if(typeof t=="object"&&!(t instanceof Date)){const r={};for(const i in t)Object.prototype.hasOwnProperty.call(t,i)&&(r[i]=n0(t[i],n));return r}return t}function yL(t,n){return t.data=r0(t.data,n),delete t.attachments,t}function r0(t,n){if(!t)return t;if(t&&t._placeholder===!0){if(typeof t.num=="number"&&t.num>=0&&t.num<n.length)return n[t.num];throw new Error("illegal attachments")}else if(Array.isArray(t))for(let r=0;r<t.length;r++)t[r]=r0(t[r],n);else if(typeof t=="object")for(const r in t)Object.prototype.hasOwnProperty.call(t,r)&&(t[r]=r0(t[r],n));return t}const bL=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],jL=5;var mt;(function(t){t[t.CONNECT=0]="CONNECT",t[t.DISCONNECT=1]="DISCONNECT",t[t.EVENT=2]="EVENT",t[t.ACK=3]="ACK",t[t.CONNECT_ERROR=4]="CONNECT_ERROR",t[t.BINARY_EVENT=5]="BINARY_EVENT",t[t.BINARY_ACK=6]="BINARY_ACK"})(mt||(mt={}));class wL{constructor(n){this.replacer=n}encode(n){return(n.type===mt.EVENT||n.type===mt.ACK)&&Eh(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=vL(n),i=this.encodeAsString(r.packet),s=r.buffers;return s.unshift(i),s}}function Sk(t){return Object.prototype.toString.call(t)==="[object Object]"}class gy 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 kL(r),r.attachments===0&&super.emitReserved("decoded",r)):super.emitReserved("decoded",r)}else if(py(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(gy.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 Sk(r);case mt.DISCONNECT:return r===void 0;case mt.CONNECT_ERROR:return typeof r=="string"||Sk(r);case mt.EVENT:case mt.BINARY_EVENT:return Array.isArray(r)&&(typeof r[0]=="number"||typeof r[0]=="string"&&bL.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 kL{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=yL(this.reconPack,this.buffers);return this.finishedReconstruction(),r}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}const NL=Object.freeze(Object.defineProperty({__proto__:null,Decoder:gy,Encoder:wL,get PacketType(){return mt},protocol:jL},Symbol.toStringTag,{value:"Module"}));function Ur(t,n,r){return t.on(n,r),function(){t.off(n,r)}}const _L=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class iC 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=[Ur(n,"open",this.onopen.bind(this)),Ur(n,"packet",this.onpacket.bind(this)),Ur(n,"error",this.onerror.bind(this)),Ur(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(_L.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 f=this.ids++,m=r.pop();this._registerAckCallback(f,m),o.id=f}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 _l(t){t=t||{},this.ms=t.min||100,this.max=t.max||1e4,this.factor=t.factor||2,this.jitter=t.jitter>0&&t.jitter<=1?t.jitter:0,this.attempts=0}_l.prototype.duration=function(){var t=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var n=Math.random(),r=Math.floor(n*this.jitter*t);t=(Math.floor(n*10)&1)==0?t-r:t+r}return Math.min(t,this.max)|0};_l.prototype.reset=function(){this.attempts=0};_l.prototype.setMin=function(t){this.ms=t};_l.prototype.setMax=function(t){this.max=t};_l.prototype.setJitter=function(t){this.jitter=t};class i0 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,vf(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 _l({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||NL;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 hL(this.uri,this.opts);const r=this.engine,i=this;this._readyState="opening",this.skipReconnect=!1;const s=Ur(r,"open",function(){i.onopen(),n&&n()}),a=c=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",c),n?n(c):this.maybeReconnectOnOpen()},o=Ur(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(Ur(n,"ping",this.onping.bind(this)),Ur(n,"data",this.ondata.bind(this)),Ur(n,"error",this.onerror.bind(this)),Ur(n,"close",this.onclose.bind(this)),Ur(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){xf(()=>{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 iC(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 Th(t,n){typeof t=="object"&&(n=t,t=void 0),n=n||{};const r=fL(t,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 i0(i,n):(yc[s]||(yc[s]=new i0(i,n)),d=yc[s]),r.query&&!n.query&&(n.query=r.queryKey),d.socket(r.path,n)}Object.assign(Th,{Manager:i0,Socket:iC,io:Th,connect:Th});function Ak(t,n){var r;const i=Th(t.serverUrl,{path:t.mountPath,transports:t.transports,query:{app_id:t.appId,token:(r=t.token)!==null&&r!==void 0?r:su()}});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 SL({config:t}){let n={...t};const r={},i={connect:async()=>{const g=[];Object.keys(r).forEach(b=>{d(b);const j=m(b);j==null||j.forEach(({connect:v})=>{const x=async()=>v==null?void 0:v();g.push(x())})}),await Promise.all(g)},update_model:async g=>{const j=m(g.room).map(v=>{var x;return(x=v.update_model)===null||x===void 0?void 0:x.call(v,g)});await Promise.all(j)},error:async g=>{console.error("error",g);const b=Object.values(r).flat().map(j=>{var v;return(v=j.error)===null||v===void 0?void 0:v.call(j,g)});await Promise.all(b)}};let s=Ak(t,i);function a(){o()}function o(){s&&s.disconnect()}function c(g){a(),n={...n,...g},s=Ak(n,i)}function d(g){s.emit("join",g)}function h(g){s.emit("leave",g)}async function f(g,b){var j;const v=JSON.stringify(b);return(j=i.update_model)===null||j===void 0?void 0:j.call(i,{room:g,data:v})}function m(g){return r[g]}return{socket:s,subscribeToRoom:(g,b)=>(r[g]||(d(g),r[g]=[]),r[g].push(b),()=>{var j,v;r[g]=(v=(j=r[g])===null||j===void 0?void 0:j.filter(x=>x!==b))!==null&&v!==void 0?v:[],r[g].length===0&&h(g)}),updateConfig:c,updateModel:f,disconnect:o}}const bc=typeof window<"u"?window:{base44SharedInstances:{}};function AL(t,n){return bc.base44SharedInstances||(bc.base44SharedInstances={}),bc.base44SharedInstances[t]||(bc.base44SharedInstances[t]={instance:n()}),bc.base44SharedInstances[t].instance}const CL="__user_heartbeat_event__",EL="__initialization_event__",TL="__session_duration_event__",Ck="analytics-enable",Ek="base44_analytics_session_id",OL={enabled:!0,maxQueueSize:1e3,throttleTime:1e3,batchSize:30,heartBeatInterval:60*1e3},PL="analytics",Dt=AL(PL,()=>({requestsQueue:[],isProcessing:!1,isHeartBeatProcessing:!1,wasInitializationTracked:!1,sessionContext:null,sessionStartTime:null,config:{...OL,...zL()}})),DL=({axiosClient:t,serverUrl:n,appId:r,userAuthModule:i})=>{var s;const{maxQueueSize:a,throttleTime:o,batchSize:c}=Dt.config;if(!(!((s=Dt.config)===null||s===void 0)&&s.enabled))return{track:()=>{},cleanup:()=>{}};let d;const h=`${n}/api/apps/${r}/analytics/track/batch`,f=async w=>{await t.request({method:"POST",url:`/apps/${r}/analytics/track/batch`,data:{events:w}})},m=w=>{try{const N=JSON.stringify({events:w}),A=new Blob([N],{type:"application/json"});return typeof navigator>"u"||N.length>6e4||!navigator.sendBeacon(h,A)}catch{return!1}},p=async(w,N={})=>{if(w.length===0)return;const A=await BL(i),S=w.map(LL(A));try{(!N.isBeacon||!m(S))&&await f(S)}catch{}},g=()=>{Ok(p,{throttleTime:o,batchSize:c})},b=w=>{if(Dt.requestsQueue.length>=a)return;const N=ML();Dt.requestsQueue.push({...w,...N}),g()},j=()=>{Ok(p,{throttleTime:o,batchSize:c}),d=Pk(b),RL()},v=()=>{Tk(),d==null||d(),FL(b);const w=Dt.requestsQueue.splice(0);p(w,{isBeacon:!0})},x=()=>{typeof window>"u"||(document.visibilityState==="hidden"?v():document.visibilityState==="visible"&&j())},k=()=>{Tk(),d==null||d(),typeof window<"u"&&window.removeEventListener("visibilitychange",x)};return g(),d=Pk(b),IL(b),typeof window<"u"&&window.addEventListener("visibilitychange",x),{track:b,cleanup:k}};function Tk(){Dt.isProcessing=!1}async function Ok(t,n){if(Dt.isProcessing)return;Dt.isProcessing=!0;const{throttleTime:r=1e3,batchSize:i=30}=n??{};for(;Dt.isProcessing&&Dt.requestsQueue.length>0;){const s=Dt.requestsQueue.splice(0,i);s.length&&await t(s),await new Promise(a=>setTimeout(a,r))}Dt.isProcessing=!1}function Pk(t){var n;if(Dt.isHeartBeatProcessing||((n=Dt.config.heartBeatInterval)!==null&&n!==void 0?n:0)<10)return()=>{};Dt.isHeartBeatProcessing=!0;const r=setInterval(()=>{t({eventName:CL})},Dt.config.heartBeatInterval);return()=>{clearInterval(r),Dt.isHeartBeatProcessing=!1}}function IL(t){typeof window>"u"||Dt.wasInitializationTracked||(Dt.wasInitializationTracked=!0,t({eventName:EL,properties:{referrer:document==null?void 0:document.referrer}}))}function RL(){typeof window>"u"||Dt.sessionStartTime!==null||(Dt.sessionStartTime=new Date().toISOString())}function FL(t){if(typeof window>"u"||Dt.sessionStartTime===null)return;const n=new Date().getTime()-new Date(Dt.sessionStartTime).getTime();Dt.sessionStartTime=null,t({eventName:TL,properties:{sessionDuration:n}})}function ML(){return{timestamp:new Date().toISOString(),pageUrl:typeof window<"u"?window.location.pathname:null}}function LL(t){return n=>({event_name:n.eventName,properties:n.properties,timestamp:n.timestamp,page_url:n.pageUrl,...t})}let Zp=null;async function BL(t){if(!Dt.sessionContext){if(!Zp){const n=qL();Zp=t.me().then(r=>({user_id:r.id,session_id:n})).catch(()=>({user_id:null,session_id:n}))}Dt.sessionContext=await Zp}return Dt.sessionContext}function zL(){if(typeof window>"u")return;const n=new URLSearchParams(window.location.search).get(Ck);if(n==null||!n.length)return;const r=new URLSearchParams(window.location.search);r.delete(Ck);const i=window.location.pathname+(r.toString()?"?"+r.toString():"");return window.history.replaceState({},"",i),{enabled:n==="true"}}function qL(){if(typeof window>"u")return Gp();try{const t=localStorage.getItem(Ek);if(!t){const n=Gp();return localStorage.setItem(Ek,n),n}return t}catch{return Gp()}}function VL(t){var n,r;const{serverUrl:i="https://base44.app",appId:s,token:a,serviceToken:o,requiresAuth:c=!1,appBaseUrl:d,options:h,functionsVersion:f,headers:m}=t,p=typeof d=="string"?d:"",g={serverUrl:i,mountPath:"/ws-user-apps/socket.io/",transports:["websocket"],appId:s,token:a};let b=null;const j=()=>(b||(b=SL({config:g})),b),v={...m,"X-App-Id":String(s)},x=f?{...v,"Base44-Functions-Version":f}:v,k=Oc({baseURL:`${i}/api`,headers:v,token:a,onError:h==null?void 0:h.onError}),w=Oc({baseURL:`${i}/api`,headers:x,token:a,interceptResponses:!1,onError:h==null?void 0:h.onError}),N={...v,...a?{"on-behalf-of":`Bearer ${a}`}:{}},A=Oc({baseURL:`${i}/api`,headers:N,token:o,onError:h==null?void 0:h.onError}),S=Oc({baseURL:`${i}/api`,headers:x,token:o,interceptResponses:!1}),E=AM(k,w,s,{appBaseUrl:p}),C={entities:xk({axios:k,appId:s,getSocket:j}),integrations:vk(k,s),connectors:TM(k,s),auth:E,functions:yk(w,s,{getAuthHeaders:()=>{const D={},I=a||su();return I&&(D.Authorization=`Bearer ${I}`),D},baseURL:(n=w.defaults)===null||n===void 0?void 0:n.baseURL}),agents:bk({axios:k,getSocket:j,appId:s,serverUrl:i,token:a}),appLogs:jk(k,s),users:PM(k,s),analytics:DL({axiosClient:k,serverUrl:i,appId:s,userAuthModule:E}),cleanup:()=>{C.analytics.cleanup(),b&&b.disconnect()}},B={entities:xk({axios:A,appId:s,getSocket:j}),integrations:vk(A,s),sso:CM(A,s),connectors:EM(A,s),functions:yk(S,s,{getAuthHeaders:()=>{const D={};return o&&(D.Authorization=`Bearer ${o}`),D},baseURL:(r=S.defaults)===null||r===void 0?void 0:r.baseURL}),agents:bk({axios:A,getSocket:j,appId:s,serverUrl:i,token:a}),appLogs:jk(A,s),cleanup:()=>{b&&b.disconnect()}};if(typeof window<"u"){const D=a||su();D&&C.auth.setToken(D)}return c&&typeof window<"u"&&setTimeout(async()=>{try{await C.auth.isAuthenticated()||C.auth.redirectToLogin(window.location.href)}catch(D){console.error("Authentication check failed:",D),C.auth.redirectToLogin(window.location.href)}},0),{...C,setToken(D){C.auth.setToken(D),b&&b.updateConfig({token:D}),g.token=D},getConfig(){return{serverUrl:i,appId:s,requiresAuth:c}},get asServiceRole(){if(!o)throw new Error("Service token is required to use asServiceRole. Please provide a serviceToken when creating the client.");return B}}}const sC=typeof window>"u",UL=sC?{localStorage:new Map}:window,Vc=UL.localStorage,$L=t=>t.replace(/([A-Z])/g,"_$1").toLowerCase(),Eo=(t,{defaultValue:n=void 0,removeFromUrl:r=!1}={})=>{if(sC)return n;const i=`base44_${$L(t)}`,s=new URLSearchParams(window.location.search),a=s.get(t);if(r){s.delete(t);const c=`${window.location.pathname}${s.toString()?`?${s.toString()}`:""}${window.location.hash}`;window.history.replaceState({},document.title,c)}if(a)return Vc.setItem(i,a),a;if(n)return Vc.setItem(i,n),n;const o=Vc.getItem(i);return o||null},HL=()=>(Eo("clear_access_token")==="true"&&(Vc.removeItem("base44_access_token"),Vc.removeItem("token")),{appId:Eo("app_id",{defaultValue:"695a3d411fa079edce588856"}),token:Eo("access_token",{removeFromUrl:!0}),fromUrl:Eo("from_url",{defaultValue:window.location.href}),functionsVersion:Eo("functions_version",{defaultValue:"prod"}),appBaseUrl:Eo("app_base_url",{defaultValue:void 0})}),Dc={...HL()},{appId:WL,token:KL,functionsVersion:GL,appBaseUrl:QL}=Dc,ce=VL({appId:WL,token:KL,functionsVersion:GL,serverUrl:"",requiresAuth:!1,appBaseUrl:QL}),aC=R.createContext(),YL=({children:t})=>{const[n,r]=R.useState(null),[i,s]=R.useState(!1),[a,o]=R.useState(!0),[c,d]=R.useState(!0),[h,f]=R.useState(null),[m,p]=R.useState(null);R.useEffect(()=>{g()},[]);const g=async()=>{var x,k;try{d(!0),f(null);const w=Oc({baseURL:"/api/apps/public",headers:{"X-App-Id":Dc.appId},token:Dc.token,interceptResponses:!0});try{const N=await w.get(`/prod/public-settings/by-id/${Dc.appId}`);p(N),Dc.token?await b():(o(!1),s(!1)),d(!1)}catch(N){if(console.error("App state check failed:",N),N.status===403&&((k=(x=N.data)==null?void 0:x.extra_data)!=null&&k.reason)){const A=N.data.extra_data.reason;f(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:N.message})}else f({type:"unknown",message:N.message||"Failed to load app"});d(!1),o(!1)}}catch(w){console.error("Unexpected error:",w),f({type:"unknown",message:w.message||"An unexpected error occurred"}),d(!1),o(!1)}},b=async()=>{try{o(!0);const x=await ce.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)&&f({type:"auth_required",message:"Authentication required"})}},j=(x=!0)=>{r(null),s(!1),x?ce.auth.logout(window.location.href):ce.auth.logout()},v=()=>{ce.auth.redirectToLogin(window.location.href)};return e.jsx(aC.Provider,{value:{user:n,isAuthenticated:i,isLoadingAuth:a,isLoadingPublicSettings:c,authError:h,appPublicSettings:m,logout:j,navigateToLogin:v,checkAppState:g},children:t})},oC=()=>{const t=R.useContext(aC);if(!t)throw new Error("useAuth must be used within an AuthProvider");return t};function se(t){return"/"+t.replace(/ /g,"-")}const yf=R.createContext(null);function xy(t){const n=R.useRef(null);return n.current===null&&(n.current=t()),n.current}const vy=R.createContext({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"});class XL extends R.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 JL({children:t,isPresent:n}){const r=R.useId(),i=R.useRef(null),s=R.useRef({width:0,height:0,top:0,left:0}),{nonce:a}=R.useContext(vy);return R.useInsertionEffect(()=>{const{width:o,height:c,top:d,left:h}=s.current;if(n||!i.current||!o||!c)return;i.current.dataset.motionPopId=r;const f=document.createElement("style");return a&&(f.nonce=a),document.head.appendChild(f),f.sheet&&f.sheet.insertRule(`
          [data-motion-pop-id="${r}"] {
            position: absolute !important;
            width: ${o}px !important;
            height: ${c}px !important;
            top: ${d}px !important;
            left: ${h}px !important;
          }
        `),()=>{document.head.removeChild(f)}},[n]),e.jsx(XL,{isPresent:n,childRef:i,sizeRef:s,children:R.cloneElement(t,{ref:i})})}const ZL=({children:t,initial:n,isPresent:r,onExitComplete:i,custom:s,presenceAffectsLayout:a,mode:o})=>{const c=xy(eB),d=R.useId(),h=R.useCallback(m=>{c.set(m,!0);for(const p of c.values())if(!p)return;i&&i()},[c,i]),f=R.useMemo(()=>({id:d,initial:n,isPresent:r,custom:s,onExitComplete:h,register:m=>(c.set(m,!1),()=>c.delete(m))}),a?[Math.random(),h]:[r,h]);return R.useMemo(()=>{c.forEach((m,p)=>c.set(p,!1))},[r]),R.useEffect(()=>{!r&&!c.size&&i&&i()},[r]),o==="popLayout"&&(t=e.jsx(JL,{isPresent:r,children:t})),e.jsx(yf.Provider,{value:f,children:t})};function eB(){return new Map}const yy=R.createContext({}),fr=t=>t;let lC=fr;function by(t){let n;return()=>(n===void 0&&(n=t()),n)}const dl=(t,n,r)=>{const i=n-t;return i===0?1:(r-t)/i},Ui=t=>t*1e3,$i=t=>t/1e3,ah=t=>t.key||"";function Dk(t){const n=[];return R.Children.forEach(t,r=>{R.isValidElement(r)&&n.push(r)}),n}const jy=typeof window<"u",cC=jy?R.useLayoutEffect:R.useEffect,Cr=({children:t,exitBeforeEnter:n,custom:r,initial:i=!0,onExitComplete:s,presenceAffectsLayout:a=!0,mode:o="sync"})=>{const c=R.useMemo(()=>Dk(t),[t]),d=c.map(ah),h=R.useRef(!0),f=R.useRef(c),m=xy(()=>new Map),[p,g]=R.useState(c),[b,j]=R.useState(c);cC(()=>{h.current=!1,f.current=c;for(let k=0;k<b.length;k++){const w=ah(b[k]);d.includes(w)?m.delete(w):m.get(w)!==!0&&m.set(w,!1)}},[b,d.length,d.join("-")]);const v=[];if(c!==p){let k=[...c];for(let w=0;w<b.length;w++){const N=b[w],A=ah(N);d.includes(A)||(k.splice(w,0,N),v.push(N))}o==="wait"&&v.length&&(k=v),j(Dk(k)),g(c);return}const{forceRender:x}=R.useContext(yy);return e.jsx(e.Fragment,{children:b.map(k=>{const w=ah(k),N=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(f.current),s&&s())};return e.jsx(ZL,{isPresent:N,initial:!h.current||i?void 0:!1,custom:N?void 0:r,presenceAffectsLayout:a,mode:o,onExitComplete:N?void 0:A,children:k},w)})})},tB={useManualTiming:!1};function nB(t){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(h){a.has(h)&&(d.schedule(h),t()),h(o)}const d={schedule:(h,f=!1,m=!1)=>{const g=m&&i?n:r;return f&&a.add(h),g.has(h)||g.add(h),h},cancel:h=>{r.delete(h),a.delete(h)},process:h=>{if(o=h,i){s=!0;return}i=!0,[n,r]=[r,n],n.forEach(c),n.clear(),i=!1,s&&(s=!1,d.process(h))}};return d}const oh=["read","resolveKeyframes","update","preRender","render","postRender"],rB=40;function uC(t,n){let r=!1,i=!0;const s={delta:0,timestamp:0,isProcessing:!1},a=()=>r=!0,o=oh.reduce((x,k)=>(x[k]=nB(a),x),{}),{read:c,resolveKeyframes:d,update:h,preRender:f,render:m,postRender:p}=o,g=()=>{const x=performance.now();r=!1,s.delta=i?1e3/60:Math.max(Math.min(x-s.timestamp,rB),1),s.timestamp=x,s.isProcessing=!0,c.process(s),d.process(s),h.process(s),f.process(s),m.process(s),p.process(s),s.isProcessing=!1,r&&n&&(i=!1,t(g))},b=()=>{r=!0,i=!0,s.isProcessing||t(g)};return{schedule:oh.reduce((x,k)=>{const w=o[k];return x[k]=(N,A=!1,S=!1)=>(r||b(),w.schedule(N,A,S)),x},{}),cancel:x=>{for(let k=0;k<oh.length;k++)o[oh[k]].cancel(x)},state:s,steps:o}}const{schedule:zt,cancel:Ws,state:Nn,steps:eg}=uC(typeof requestAnimationFrame<"u"?requestAnimationFrame:fr,!0),dC=R.createContext({strict:!1}),Ik={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"]},hl={};for(const t in Ik)hl[t]={isEnabled:n=>Ik[t].some(r=>!!n[r])};function iB(t){for(const n in t)hl[n]={...hl[n],...t[n]}}const sB=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 $h(t){return t.startsWith("while")||t.startsWith("drag")&&t!=="draggable"||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||sB.has(t)}let hC=t=>!$h(t);function aB(t){t&&(hC=n=>n.startsWith("on")?!$h(n):t(n))}try{aB(require("@emotion/is-prop-valid").default)}catch{}function oB(t,n,r){const i={};for(const s in t)s==="values"&&typeof t.values=="object"||(hC(s)||r===!0&&$h(s)||!n&&!$h(s)||t.draggable&&s.startsWith("onDrag"))&&(i[s]=t[s]);return i}function lB(t){if(typeof Proxy>"u")return t;const n=new Map,r=(...i)=>t(...i);return new Proxy(r,{get:(i,s)=>s==="create"?t:(n.has(s)||n.set(s,t(s)),n.get(s))})}const bf=R.createContext({});function au(t){return typeof t=="string"||Array.isArray(t)}function jf(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}const wy=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],ky=["initial",...wy];function wf(t){return jf(t.animate)||ky.some(n=>au(t[n]))}function fC(t){return!!(wf(t)||t.variants)}function cB(t,n){if(wf(t)){const{initial:r,animate:i}=t;return{initial:r===!1||au(r)?r:void 0,animate:au(i)?i:void 0}}return t.inherit!==!1?n:{}}function uB(t){const{initial:n,animate:r}=cB(t,R.useContext(bf));return R.useMemo(()=>({initial:n,animate:r}),[Rk(n),Rk(r)])}function Rk(t){return Array.isArray(t)?t.join(" "):t}const dB=Symbol.for("motionComponentSymbol");function Bo(t){return t&&typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}function hB(t,n,r){return R.useCallback(i=>{i&&t.mount&&t.mount(i),n&&(i?n.mount(i):n.unmount()),r&&(typeof r=="function"?r(i):Bo(r)&&(r.current=i))},[n])}const Ny=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),fB="framerAppearId",mC="data-"+Ny(fB),{schedule:_y}=uC(queueMicrotask,!1),pC=R.createContext({});function mB(t,n,r,i,s){var a,o;const{visualElement:c}=R.useContext(bf),d=R.useContext(dC),h=R.useContext(yf),f=R.useContext(vy).reducedMotion,m=R.useRef(null);i=i||d.renderer,!m.current&&i&&(m.current=i(t,{visualState:n,parent:c,props:r,presenceContext:h,blockInitialAnimation:h?h.initial===!1:!1,reducedMotionConfig:f}));const p=m.current,g=R.useContext(pC);p&&!p.projection&&s&&(p.type==="html"||p.type==="svg")&&pB(m.current,r,s,g);const b=R.useRef(!1);R.useInsertionEffect(()=>{p&&b.current&&p.update(r,h)});const j=r[mC],v=R.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 cC(()=>{p&&(b.current=!0,window.MotionIsMounted=!0,p.updateFeatures(),_y.render(p.render),v.current&&p.animationState&&p.animationState.animateChanges())}),R.useEffect(()=>{p&&(!v.current&&p.animationState&&p.animationState.animateChanges(),v.current&&(queueMicrotask(()=>{var x;(x=window.MotionHandoffMarkAsComplete)===null||x===void 0||x.call(window,j)}),v.current=!1))}),p}function pB(t,n,r,i){const{layoutId:s,layout:a,drag:o,dragConstraints:c,layoutScroll:d,layoutRoot:h}=n;t.projection=new r(t.latestValues,n["data-framer-portal-id"]?void 0:gC(t.parent)),t.projection.setOptions({layoutId:s,layout:a,alwaysMeasureLayout:!!o||c&&Bo(c),visualElement:t,animationType:typeof a=="string"?a:"both",initialPromotionConfig:i,layoutScroll:d,layoutRoot:h})}function gC(t){if(t)return t.options.allowProjection!==!1?t.projection:gC(t.parent)}function gB({preloadedFeatures:t,createVisualElement:n,useRender:r,useVisualState:i,Component:s}){var a,o;t&&iB(t);function c(h,f){let m;const p={...R.useContext(vy),...h,layoutId:xB(h)},{isStatic:g}=p,b=uB(h),j=i(h,g);if(!g&&jy){vB();const v=yB(p);m=v.MeasureLayout,b.visualElement=mB(s,j,p,n,v.ProjectionNode)}return e.jsxs(bf.Provider,{value:b,children:[m&&b.visualElement?e.jsx(m,{visualElement:b.visualElement,...p}):null,r(s,h,hB(j,b.visualElement,f),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=R.forwardRef(c);return d[dB]=s,d}function xB({layoutId:t}){const n=R.useContext(yy).id;return n&&t!==void 0?n+"-"+t:t}function vB(t,n){R.useContext(dC).strict}function yB(t){const{drag:n,layout:r}=hl;if(!n&&!r)return{};const i={...n,...r};return{MeasureLayout:n!=null&&n.isEnabled(t)||r!=null&&r.isEnabled(t)?i.MeasureLayout:void 0,ProjectionNode:i.ProjectionNode}}const bB=["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 Sy(t){return typeof t!="string"||t.includes("-")?!1:!!(bB.indexOf(t)>-1||/[A-Z]/u.test(t))}function xC(t,{style:n,vars:r},i,s){Object.assign(t.style,n,s&&s.getProjectionStyles(i));for(const a in r)t.style.setProperty(a,r[a])}const vC=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 yC(t,n,r,i){xC(t,n,void 0,i);for(const s in n.attrs)t.setAttribute(vC.has(s)?s:Ny(s),n.attrs[s])}const In=t=>!!(t&&t.getVelocity),Hh={};function jB(t){Object.assign(Hh,t)}const Pu=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],eo=new Set(Pu);function bC(t,{layout:n,layoutId:r}){return eo.has(t)||t.startsWith("origin")||(n||r!==void 0)&&(!!Hh[t]||t==="opacity")}function Ay(t,n,r){var i;const{style:s}=t,a={};for(const o in s)(In(s[o])||n.style&&In(n.style[o])||bC(o,t)||((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 jC(t,n,r){const i=Ay(t,n,r);for(const s in t)if(In(t[s])||In(n[s])){const a=Pu.indexOf(s)!==-1?"attr"+s.charAt(0).toUpperCase()+s.substring(1):s;i[a]=t[s]}return i}function Fk(t){const n=[{},{}];return t==null||t.values.forEach((r,i)=>{n[0][i]=r.get(),n[1][i]=r.getVelocity()}),n}function Cy(t,n,r,i){if(typeof n=="function"){const[s,a]=Fk(i);n=n(r!==void 0?r:t.custom,s,a)}if(typeof n=="string"&&(n=t.variants&&t.variants[n]),typeof n=="function"){const[s,a]=Fk(i);n=n(r!==void 0?r:t.custom,s,a)}return n}const s0=t=>Array.isArray(t),wB=t=>!!(t&&typeof t=="object"&&t.mix&&t.toValue),kB=t=>s0(t)?t[t.length-1]||0:t;function Oh(t){const n=In(t)?t.get():t;return wB(n)?n.toValue():n}function NB({scrapeMotionValuesFromProps:t,createRenderState:n,onMount:r},i,s,a){const o={latestValues:_B(i,s,a,t),renderState:n()};return r&&(o.mount=c=>r(i,c,o)),o}const wC=t=>(n,r)=>{const i=R.useContext(bf),s=R.useContext(yf),a=()=>NB(t,n,i,s);return r?a():xy(a)};function _B(t,n,r,i){const s={},a=i(t,{});for(const p in a)s[p]=Oh(a[p]);let{initial:o,animate:c}=t;const d=wf(t),h=fC(t);n&&h&&!d&&t.inherit!==!1&&(o===void 0&&(o=n.initial),c===void 0&&(c=n.animate));let f=r?r.initial===!1:!1;f=f||o===!1;const m=f?c:o;if(m&&typeof m!="boolean"&&!jf(m)){const p=Array.isArray(m)?m:[m];for(let g=0;g<p.length;g++){const b=Cy(t,p[g]);if(b){const{transitionEnd:j,transition:v,...x}=b;for(const k in x){let w=x[k];if(Array.isArray(w)){const N=f?w.length-1:0;w=w[N]}w!==null&&(s[k]=w)}for(const k in j)s[k]=j[k]}}}return s}const Ey=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),kC=()=>({...Ey(),attrs:{}}),NC=(t,n)=>n&&typeof t=="number"?n.transform(t):t,Gi=(t,n,r)=>r>n?n:r<t?t:r,Sl={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},ou={...Sl,transform:t=>Gi(0,1,t)},lh={...Sl,default:1},Du=t=>({test:n=>typeof n=="string"&&n.endsWith(t)&&n.split(" ").length===1,parse:parseFloat,transform:n=>`${n}${t}`}),As=Du("deg"),gi=Du("%"),Ye=Du("px"),SB=Du("vh"),AB=Du("vw"),Mk={...gi,parse:t=>gi.parse(t)/100,transform:t=>gi.transform(t*100)},CB={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},EB={rotate:As,rotateX:As,rotateY:As,rotateZ:As,scale:lh,scaleX:lh,scaleY:lh,scaleZ:lh,skew:As,skewX:As,skewY:As,distance:Ye,translateX:Ye,translateY:Ye,translateZ:Ye,x:Ye,y:Ye,z:Ye,perspective:Ye,transformPerspective:Ye,opacity:ou,originX:Mk,originY:Mk,originZ:Ye},Lk={...Sl,transform:Math.round},Ty={...CB,...EB,zIndex:Lk,size:Ye,fillOpacity:ou,strokeOpacity:ou,numOctaves:Lk},TB={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},OB=Pu.length;function PB(t,n,r){let i="",s=!0;for(let a=0;a<OB;a++){const o=Pu[a],c=t[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 h=NC(c,Ty[o]);if(!d){s=!1;const f=TB[o]||o;i+=`${f}(${h}) `}r&&(n[o]=h)}}return i=i.trim(),r?i=r(n,s?"":i):s&&(i="none"),i}const _C=t=>n=>typeof n=="string"&&n.startsWith(t),SC=_C("--"),DB=_C("var(--"),Oy=t=>DB(t)?IB.test(t.split("/*")[0].trim()):!1,IB=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function Py(t,n,r){const{style:i,vars:s,transformOrigin:a}=t;let o=!1,c=!1;for(const d in n){const h=n[d];if(eo.has(d)){o=!0;continue}else if(SC(d)){s[d]=h;continue}else{const f=NC(h,Ty[d]);d.startsWith("origin")?(c=!0,a[d]=f):i[d]=f}}if(n.transform||(o||r?i.transform=PB(n,t.transform,r):i.transform&&(i.transform="none")),c){const{originX:d="50%",originY:h="50%",originZ:f=0}=a;i.transformOrigin=`${d} ${h} ${f}`}}function Bk(t,n,r){return typeof t=="string"?t:Ye.transform(n+r*t)}function RB(t,n,r){const i=Bk(n,t.x,t.width),s=Bk(r,t.y,t.height);return`${i} ${s}`}const FB={offset:"stroke-dashoffset",array:"stroke-dasharray"},MB={offset:"strokeDashoffset",array:"strokeDasharray"};function LB(t,n,r=1,i=0,s=!0){t.pathLength=1;const a=s?FB:MB;t[a.offset]=Ye.transform(-i);const o=Ye.transform(n),c=Ye.transform(r);t[a.array]=`${o} ${c}`}function Dy(t,{attrX:n,attrY:r,attrScale:i,originX:s,originY:a,pathLength:o,pathSpacing:c=1,pathOffset:d=0,...h},f,m){if(Py(t,h,m),f){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};const{attrs:p,style:g,dimensions:b}=t;p.transform&&(b&&(g.transform=p.transform),delete p.transform),b&&(s!==void 0||a!==void 0||g.transform)&&(g.transformOrigin=RB(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&&LB(p,o,c,d,!1)}const Iy=t=>typeof t=="string"&&t.toLowerCase()==="svg",BB={useVisualState:wC({scrapeMotionValuesFromProps:jC,createRenderState:kC,onMount:(t,n,{renderState:r,latestValues:i})=>{zt.read(()=>{try{r.dimensions=typeof n.getBBox=="function"?n.getBBox():n.getBoundingClientRect()}catch{r.dimensions={x:0,y:0,width:0,height:0}}}),zt.render(()=>{Dy(r,i,Iy(n.tagName),t.transformTemplate),yC(n,r)})}})},zB={useVisualState:wC({scrapeMotionValuesFromProps:Ay,createRenderState:Ey})};function AC(t,n,r){for(const i in n)!In(n[i])&&!bC(i,r)&&(t[i]=n[i])}function qB({transformTemplate:t},n){return R.useMemo(()=>{const r=Ey();return Py(r,n,t),Object.assign({},r.vars,r.style)},[n])}function VB(t,n){const r=t.style||{},i={};return AC(i,r,t),Object.assign(i,qB(t,n)),i}function UB(t,n){const r={},i=VB(t,n);return t.drag&&t.dragListener!==!1&&(r.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=t.drag===!0?"none":`pan-${t.drag==="x"?"y":"x"}`),t.tabIndex===void 0&&(t.onTap||t.onTapStart||t.whileTap)&&(r.tabIndex=0),r.style=i,r}function $B(t,n,r,i){const s=R.useMemo(()=>{const a=kC();return Dy(a,n,Iy(i),t.transformTemplate),{...a.attrs,style:{...a.style}}},[n]);if(t.style){const a={};AC(a,t.style,t),s.style={...a,...s.style}}return s}function HB(t=!1){return(r,i,s,{latestValues:a},o)=>{const d=(Sy(r)?$B:UB)(i,a,o,r),h=oB(i,typeof r=="string",t),f=r!==R.Fragment?{...h,...d,ref:s}:{},{children:m}=i,p=R.useMemo(()=>In(m)?m.get():m,[m]);return R.createElement(r,{...f,children:p})}}function WB(t,n){return function(i,{forwardMotionProps:s}={forwardMotionProps:!1}){const o={...Sy(i)?BB:zB,preloadedFeatures:t,useRender:HB(s),createVisualElement:n,Component:i};return gB(o)}}function CC(t,n){if(!Array.isArray(n))return!1;const r=n.length;if(r!==t.length)return!1;for(let i=0;i<r;i++)if(n[i]!==t[i])return!1;return!0}function kf(t,n,r){const i=t.getProps();return Cy(i,n,r!==void 0?r:i.custom,t)}const KB=by(()=>window.ScrollTimeline!==void 0);class GB{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(KB()&&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 GB{then(n,r){return Promise.all(this.animations).then(n).catch(r)}}function Ry(t,n){return t?t[n]||t.default||t:void 0}const a0=2e4;function EC(t){let n=0;const r=50;let i=t.next(n);for(;!i.done&&n<a0;)n+=r,i=t.next(n);return n>=a0?1/0:n}function Fy(t){return typeof t=="function"}function zk(t,n){t.timeline=n,t.onfinish=null}const My=t=>Array.isArray(t)&&typeof t[0]=="number",YB={linearEasing:void 0};function XB(t,n){const r=by(t);return()=>{var i;return(i=YB[n])!==null&&i!==void 0?i:r()}}const Wh=XB(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),TC=(t,n,r=10)=>{let i="";const s=Math.max(Math.round(n/r),2);for(let a=0;a<s;a++)i+=t(dl(0,s-1,a))+", ";return`linear(${i.substring(0,i.length-2)})`};function OC(t){return!!(typeof t=="function"&&Wh()||!t||typeof t=="string"&&(t in o0||Wh())||My(t)||Array.isArray(t)&&t.every(OC))}const Ic=([t,n,r,i])=>`cubic-bezier(${t}, ${n}, ${r}, ${i})`,o0={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Ic([0,.65,.55,1]),circOut:Ic([.55,0,1,.45]),backIn:Ic([.31,.01,.66,-.59]),backOut:Ic([.33,1.53,.69,.99])};function PC(t,n){if(t)return typeof t=="function"&&Wh()?TC(t,n):My(t)?Ic(t):Array.isArray(t)?t.map(r=>PC(r,n)||o0.easeOut):o0[t]}const Br={x:!1,y:!1};function DC(){return Br.x||Br.y}function JB(t,n,r){var i;if(t instanceof Element)return[t];if(typeof t=="string"){let s=document;const a=(i=void 0)!==null&&i!==void 0?i:s.querySelectorAll(t);return a?Array.from(a):[]}return Array.from(t)}function IC(t,n){const r=JB(t),i=new AbortController,s={passive:!0,...n,signal:i.signal};return[r,s,()=>i.abort()]}function qk(t){return n=>{n.pointerType==="touch"||DC()||t(n)}}function ZB(t,n,r={}){const[i,s,a]=IC(t,r),o=qk(c=>{const{target:d}=c,h=n(c);if(typeof h!="function"||!d)return;const f=qk(m=>{h(m),d.removeEventListener("pointerleave",f)});d.addEventListener("pointerleave",f,s)});return i.forEach(c=>{c.addEventListener("pointerenter",o,s)}),a}const RC=(t,n)=>n?t===n?!0:RC(t,n.parentElement):!1,Ly=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1,ez=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function tz(t){return ez.has(t.tagName)||t.tabIndex!==-1}const Rc=new WeakSet;function Vk(t){return n=>{n.key==="Enter"&&t(n)}}function tg(t,n){t.dispatchEvent(new PointerEvent("pointer"+n,{isPrimary:!0,bubbles:!0}))}const nz=(t,n)=>{const r=t.currentTarget;if(!r)return;const i=Vk(()=>{if(Rc.has(r))return;tg(r,"down");const s=Vk(()=>{tg(r,"up")}),a=()=>tg(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 Uk(t){return Ly(t)&&!DC()}function rz(t,n,r={}){const[i,s,a]=IC(t,r),o=c=>{const d=c.currentTarget;if(!Uk(c)||Rc.has(d))return;Rc.add(d);const h=n(c),f=(g,b)=>{window.removeEventListener("pointerup",m),window.removeEventListener("pointercancel",p),!(!Uk(g)||!Rc.has(d))&&(Rc.delete(d),typeof h=="function"&&h(g,{success:b}))},m=g=>{f(g,r.useGlobalTarget||RC(d,g.target))},p=g=>{f(g,!1)};window.addEventListener("pointerup",m,s),window.addEventListener("pointercancel",p,s)};return i.forEach(c=>{!tz(c)&&c.getAttribute("tabindex")===null&&(c.tabIndex=0),(r.useGlobalTarget?window:c).addEventListener("pointerdown",o,s),c.addEventListener("focus",h=>nz(h,s),s)}),a}function iz(t){return t==="x"||t==="y"?Br[t]?null:(Br[t]=!0,()=>{Br[t]=!1}):Br.x||Br.y?null:(Br.x=Br.y=!0,()=>{Br.x=Br.y=!1})}let Ph;function sz(){Ph=void 0}const xi={now:()=>(Ph===void 0&&xi.set(Nn.isProcessing||tB.useManualTiming?Nn.timestamp:performance.now()),Ph),set:t=>{Ph=t,queueMicrotask(sz)}};function By(t,n){t.indexOf(n)===-1&&t.push(n)}function zy(t,n){const r=t.indexOf(n);r>-1&&t.splice(r,1)}class qy{constructor(){this.subscriptions=[]}add(n){return By(this.subscriptions,n),()=>zy(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 FC(t,n){return n?t*(1e3/n):0}const $k=30,az=t=>!isNaN(parseFloat(t));class oz{constructor(n,r={}){this.version="11.16.4",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(i,s=!0)=>{const a=xi.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=xi.now(),this.canTrackVelocity===null&&n!==void 0&&(this.canTrackVelocity=az(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 qy);const i=this.events[n].add(r);return n==="change"?()=>{i(),zt.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=xi.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||n-this.updatedAt>$k)return 0;const r=Math.min(this.updatedAt-this.prevUpdatedAt,$k);return FC(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 lu(t,n){return new oz(t,n)}function lz(t,n,r){t.hasValue(n)?t.getValue(n).set(r):t.addValue(n,lu(r))}function cz(t,n){const r=kf(t,n);let{transitionEnd:i={},transition:s={},...a}=r||{};a={...a,...i};for(const o in a){const c=kB(a[o]);lz(t,o,c)}}function uz(t){return!!(In(t)&&t.add)}function l0(t,n){const r=t.getValue("willChange");if(uz(r))return r.add(n)}function MC(t){return t.props[mC]}const LC=(t,n,r)=>(((1-3*r+3*n)*t+(3*r-6*n))*t+3*n)*t,dz=1e-7,hz=12;function fz(t,n,r,i,s){let a,o,c=0;do o=n+(r-n)/2,a=LC(o,i,s)-t,a>0?r=o:n=o;while(Math.abs(a)>dz&&++c<hz);return o}function Iu(t,n,r,i){if(t===n&&r===i)return fr;const s=a=>fz(a,0,1,t,r);return a=>a===0||a===1?a:LC(s(a),n,i)}const BC=t=>n=>n<=.5?t(2*n)/2:(2-t(2*(1-n)))/2,zC=t=>n=>1-t(1-n),qC=Iu(.33,1.53,.69,.99),Vy=zC(qC),VC=BC(Vy),UC=t=>(t*=2)<1?.5*Vy(t):.5*(2-Math.pow(2,-10*(t-1))),Uy=t=>1-Math.sin(Math.acos(t)),$C=zC(Uy),HC=BC(Uy),WC=t=>/^0[^.\s]+$/u.test(t);function mz(t){return typeof t=="number"?t===0:t!==null?t==="none"||t==="0"||WC(t):!0}const KC=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t),pz=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function gz(t){const n=pz.exec(t);if(!n)return[,];const[,r,i,s]=n;return[`--${r??i}`,s]}function GC(t,n,r=1){const[i,s]=gz(t);if(!i)return;const a=window.getComputedStyle(n).getPropertyValue(i);if(a){const o=a.trim();return KC(o)?parseFloat(o):o}return Oy(s)?GC(s,n,r+1):s}const xz=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),Hk=t=>t===Sl||t===Ye,Wk=(t,n)=>parseFloat(t.split(", ")[n]),Kk=(t,n)=>(r,{transform:i})=>{if(i==="none"||!i)return 0;const s=i.match(/^matrix3d\((.+)\)$/u);if(s)return Wk(s[1],n);{const a=i.match(/^matrix\((.+)\)$/u);return a?Wk(a[1],t):0}},vz=new Set(["x","y","z"]),yz=Pu.filter(t=>!vz.has(t));function bz(t){const n=[];return yz.forEach(r=>{const i=t.getValue(r);i!==void 0&&(n.push([r,i.get()]),i.set(r.startsWith("scale")?1:0))}),n}const fl={width:({x:t},{paddingLeft:n="0",paddingRight:r="0"})=>t.max-t.min-parseFloat(n)-parseFloat(r),height:({y:t},{paddingTop:n="0",paddingBottom:r="0"})=>t.max-t.min-parseFloat(n)-parseFloat(r),top:(t,{top:n})=>parseFloat(n),left:(t,{left:n})=>parseFloat(n),bottom:({y:t},{top:n})=>parseFloat(n)+(t.max-t.min),right:({x:t},{left:n})=>parseFloat(n)+(t.max-t.min),x:Kk(4,13),y:Kk(5,14)};fl.translateX=fl.x;fl.translateY=fl.y;const QC=t=>n=>n.test(t),jz={test:t=>t==="auto",parse:t=>t},YC=[Sl,Ye,gi,As,AB,SB,jz],Gk=t=>YC.find(QC(t)),za=new Set;let c0=!1,u0=!1;function XC(){if(u0){const t=Array.from(za).filter(i=>i.needsMeasurement),n=new Set(t.map(i=>i.element)),r=new Map;n.forEach(i=>{const s=bz(i);s.length&&(r.set(i,s),i.render())}),t.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)})}),t.forEach(i=>i.measureEndState()),t.forEach(i=>{i.suspendedScrollY!==void 0&&window.scrollTo(0,i.suspendedScrollY)})}u0=!1,c0=!1,za.forEach(t=>t.complete()),za.clear()}function JC(){za.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(u0=!0)})}function wz(){JC(),XC()}class $y{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?(za.add(this),c0||(c0=!0,zt.read(JC),zt.resolveKeyframes(XC))):(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),za.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,za.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const Uc=t=>Math.round(t*1e5)/1e5,Hy=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function kz(t){return t==null}const Nz=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Wy=(t,n)=>r=>!!(typeof r=="string"&&Nz.test(r)&&r.startsWith(t)||n&&!kz(r)&&Object.prototype.hasOwnProperty.call(r,n)),ZC=(t,n,r)=>i=>{if(typeof i!="string")return i;const[s,a,o,c]=i.match(Hy);return{[t]:parseFloat(s),[n]:parseFloat(a),[r]:parseFloat(o),alpha:c!==void 0?parseFloat(c):1}},_z=t=>Gi(0,255,t),ng={...Sl,transform:t=>Math.round(_z(t))},Ca={test:Wy("rgb","red"),parse:ZC("red","green","blue"),transform:({red:t,green:n,blue:r,alpha:i=1})=>"rgba("+ng.transform(t)+", "+ng.transform(n)+", "+ng.transform(r)+", "+Uc(ou.transform(i))+")"};function Sz(t){let n="",r="",i="",s="";return t.length>5?(n=t.substring(1,3),r=t.substring(3,5),i=t.substring(5,7),s=t.substring(7,9)):(n=t.substring(1,2),r=t.substring(2,3),i=t.substring(3,4),s=t.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 d0={test:Wy("#"),parse:Sz,transform:Ca.transform},zo={test:Wy("hsl","hue"),parse:ZC("hue","saturation","lightness"),transform:({hue:t,saturation:n,lightness:r,alpha:i=1})=>"hsla("+Math.round(t)+", "+gi.transform(Uc(n))+", "+gi.transform(Uc(r))+", "+Uc(ou.transform(i))+")"},On={test:t=>Ca.test(t)||d0.test(t)||zo.test(t),parse:t=>Ca.test(t)?Ca.parse(t):zo.test(t)?zo.parse(t):d0.parse(t),transform:t=>typeof t=="string"?t:t.hasOwnProperty("red")?Ca.transform(t):zo.transform(t)},Az=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Cz(t){var n,r;return isNaN(t)&&typeof t=="string"&&(((n=t.match(Hy))===null||n===void 0?void 0:n.length)||0)+(((r=t.match(Az))===null||r===void 0?void 0:r.length)||0)>0}const eE="number",tE="color",Ez="var",Tz="var(",Qk="${}",Oz=/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 cu(t){const n=t.toString(),r=[],i={color:[],number:[],var:[]},s=[];let a=0;const c=n.replace(Oz,d=>(On.test(d)?(i.color.push(a),s.push(tE),r.push(On.parse(d))):d.startsWith(Tz)?(i.var.push(a),s.push(Ez),r.push(d)):(i.number.push(a),s.push(eE),r.push(parseFloat(d))),++a,Qk)).split(Qk);return{values:r,split:c,indexes:i,types:s}}function nE(t){return cu(t).values}function rE(t){const{split:n,types:r}=cu(t),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===eE?a+=Uc(s[o]):c===tE?a+=On.transform(s[o]):a+=s[o]}return a}}const Pz=t=>typeof t=="number"?0:t;function Dz(t){const n=nE(t);return rE(t)(n.map(Pz))}const Ks={test:Cz,parse:nE,createTransformer:rE,getAnimatableNone:Dz},Iz=new Set(["brightness","contrast","saturate","opacity"]);function Rz(t){const[n,r]=t.slice(0,-1).split("(");if(n==="drop-shadow")return t;const[i]=r.match(Hy)||[];if(!i)return t;const s=r.replace(i,"");let a=Iz.has(n)?1:0;return i!==r&&(a*=100),n+"("+a+s+")"}const Fz=/\b([a-z-]*)\(.*?\)/gu,h0={...Ks,getAnimatableNone:t=>{const n=t.match(Fz);return n?n.map(Rz).join(" "):t}},Mz={...Ty,color:On,backgroundColor:On,outlineColor:On,fill:On,stroke:On,borderColor:On,borderTopColor:On,borderRightColor:On,borderBottomColor:On,borderLeftColor:On,filter:h0,WebkitFilter:h0},Ky=t=>Mz[t];function iE(t,n){let r=Ky(t);return r!==h0&&(r=Ks),r.getAnimatableNone?r.getAnimatableNone(n):void 0}const Lz=new Set(["auto","none","0"]);function Bz(t,n,r){let i=0,s;for(;i<t.length&&!s;){const a=t[i];typeof a=="string"&&!Lz.has(a)&&cu(a).values.length&&(s=t[i]),i++}if(s&&r)for(const a of n)t[a]=iE(r,s)}class sE extends $y{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 h=n[d];if(typeof h=="string"&&(h=h.trim(),Oy(h))){const f=GC(h,r.current);f!==void 0&&(n[d]=f),d===n.length-1&&(this.finalKeyframe=h)}}if(this.resolveNoneKeyframes(),!xz.has(i)||n.length!==2)return;const[s,a]=n,o=Gk(s),c=Gk(a);if(o!==c)if(Hk(o)&&Hk(c))for(let d=0;d<n.length;d++){const h=n[d];typeof h=="string"&&(n[d]=parseFloat(h))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:n,name:r}=this,i=[];for(let s=0;s<n.length;s++)mz(n[s])&&i.push(s);i.length&&Bz(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=fl[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]=fl[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,h])=>{r.getValue(d).set(h)}),this.resolveNoneKeyframes()}}const Yk=(t,n)=>n==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(Ks.test(t)||t==="0")&&!t.startsWith("url("));function zz(t){const n=t[0];if(t.length===1)return!0;for(let r=0;r<t.length;r++)if(t[r]!==n)return!0}function qz(t,n,r,i){const s=t[0];if(s===null)return!1;if(n==="display"||n==="visibility")return!0;const a=t[t.length-1],o=Yk(s,n),c=Yk(a,n);return!o||!c?!1:zz(t)||(r==="spring"||Fy(r))&&i}const Vz=t=>t!==null;function Nf(t,{repeat:n,repeatType:r="loop"},i){const s=t.filter(Vz),a=n&&r!=="loop"&&n%2===1?0:s.length-1;return!a||i===void 0?s[a]:i}const Uz=40;class aE{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=xi.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>Uz?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&wz(),this._resolved}onKeyframesResolved(n,r){this.resolvedAt=xi.now(),this.hasAttemptedResolve=!0;const{name:i,type:s,velocity:a,delay:o,onComplete:c,onUpdate:d,isGenerator:h}=this.options;if(!h&&!qz(n,i,s,a))if(o)this.options.duration=0;else{d==null||d(Nf(n,this.options,r)),c==null||c(),this.resolveFinishedPromise();return}const f=this.initPlayback(n,r);f!==!1&&(this._resolved={keyframes:n,finalKeyframe:r,...f},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 Gt=(t,n,r)=>t+(n-t)*r;function rg(t,n,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?t+(n-t)*6*r:r<1/2?n:r<2/3?t+(n-t)*(2/3-r)*6:t}function $z({hue:t,saturation:n,lightness:r,alpha:i}){t/=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=rg(d,c,t+1/3),a=rg(d,c,t),o=rg(d,c,t-1/3)}return{red:Math.round(s*255),green:Math.round(a*255),blue:Math.round(o*255),alpha:i}}function Kh(t,n){return r=>r>0?n:t}const ig=(t,n,r)=>{const i=t*t,s=r*(n*n-i)+i;return s<0?0:Math.sqrt(s)},Hz=[d0,Ca,zo],Wz=t=>Hz.find(n=>n.test(t));function Xk(t){const n=Wz(t);if(!n)return!1;let r=n.parse(t);return n===zo&&(r=$z(r)),r}const Jk=(t,n)=>{const r=Xk(t),i=Xk(n);if(!r||!i)return Kh(t,n);const s={...r};return a=>(s.red=ig(r.red,i.red,a),s.green=ig(r.green,i.green,a),s.blue=ig(r.blue,i.blue,a),s.alpha=Gt(r.alpha,i.alpha,a),Ca.transform(s))},Kz=(t,n)=>r=>n(t(r)),Ru=(...t)=>t.reduce(Kz),f0=new Set(["none","hidden"]);function Gz(t,n){return f0.has(t)?r=>r<=0?t:n:r=>r>=1?n:t}function Qz(t,n){return r=>Gt(t,n,r)}function Gy(t){return typeof t=="number"?Qz:typeof t=="string"?Oy(t)?Kh:On.test(t)?Jk:Jz:Array.isArray(t)?oE:typeof t=="object"?On.test(t)?Jk:Yz:Kh}function oE(t,n){const r=[...t],i=r.length,s=t.map((a,o)=>Gy(a)(a,n[o]));return a=>{for(let o=0;o<i;o++)r[o]=s[o](a);return r}}function Yz(t,n){const r={...t,...n},i={};for(const s in r)t[s]!==void 0&&n[s]!==void 0&&(i[s]=Gy(t[s])(t[s],n[s]));return s=>{for(const a in i)r[a]=i[a](s);return r}}function Xz(t,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=t.indexes[o][s[o]],d=(r=t.values[c])!==null&&r!==void 0?r:0;i[a]=d,s[o]++}return i}const Jz=(t,n)=>{const r=Ks.createTransformer(n),i=cu(t),s=cu(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?f0.has(t)&&!s.values.length||f0.has(n)&&!i.values.length?Gz(t,n):Ru(oE(Xz(i,s),s.values),r):Kh(t,n)};function lE(t,n,r){return typeof t=="number"&&typeof n=="number"&&typeof r=="number"?Gt(t,n,r):Gy(t)(t,n)}const Zz=5;function cE(t,n,r){const i=Math.max(n-Zz,0);return FC(r-t(i),n-i)}const en={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},sg=.001;function e7({duration:t=en.duration,bounce:n=en.bounce,velocity:r=en.velocity,mass:i=en.mass}){let s,a,o=1-n;o=Gi(en.minDamping,en.maxDamping,o),t=Gi(en.minDuration,en.maxDuration,$i(t)),o<1?(s=h=>{const f=h*o,m=f*t,p=f-r,g=m0(h,o),b=Math.exp(-m);return sg-p/g*b},a=h=>{const m=h*o*t,p=m*r+r,g=Math.pow(o,2)*Math.pow(h,2)*t,b=Math.exp(-m),j=m0(Math.pow(h,2),o);return(-s(h)+sg>0?-1:1)*((p-g)*b)/j}):(s=h=>{const f=Math.exp(-h*t),m=(h-r)*t+1;return-sg+f*m},a=h=>{const f=Math.exp(-h*t),m=(r-h)*(t*t);return f*m});const c=5/t,d=n7(s,a,c);if(t=Ui(t),isNaN(d))return{stiffness:en.stiffness,damping:en.damping,duration:t};{const h=Math.pow(d,2)*i;return{stiffness:h,damping:o*2*Math.sqrt(i*h),duration:t}}}const t7=12;function n7(t,n,r){let i=r;for(let s=1;s<t7;s++)i=i-t(i)/n(i);return i}function m0(t,n){return t*Math.sqrt(1-n*n)}const r7=["duration","bounce"],i7=["stiffness","damping","mass"];function Zk(t,n){return n.some(r=>t[r]!==void 0)}function s7(t){let n={velocity:en.velocity,stiffness:en.stiffness,damping:en.damping,mass:en.mass,isResolvedFromDuration:!1,...t};if(!Zk(t,i7)&&Zk(t,r7))if(t.visualDuration){const r=t.visualDuration,i=2*Math.PI/(r*1.2),s=i*i,a=2*Gi(.05,1,1-(t.bounce||0))*Math.sqrt(s);n={...n,mass:en.mass,stiffness:s,damping:a}}else{const r=e7(t);n={...n,...r,mass:en.mass},n.isResolvedFromDuration=!0}return n}function uE(t=en.visualDuration,n=en.bounce){const r=typeof t!="object"?{visualDuration:t,keyframes:[0,1],bounce:n}:t;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:h,mass:f,duration:m,velocity:p,isResolvedFromDuration:g}=s7({...r,velocity:-$i(r.velocity||0)}),b=p||0,j=h/(2*Math.sqrt(d*f)),v=o-a,x=$i(Math.sqrt(d/f)),k=Math.abs(v)<5;i||(i=k?en.restSpeed.granular:en.restSpeed.default),s||(s=k?en.restDelta.granular:en.restDelta.default);let w;if(j<1){const A=m0(x,j);w=S=>{const E=Math.exp(-j*x*S);return o-E*((b+j*x*v)/A*Math.sin(A*S)+v*Math.cos(A*S))}}else if(j===1)w=A=>o-Math.exp(-x*A)*(v+(b+x*v)*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*v)*Math.sinh(C)+A*v*Math.cosh(C))/A}}const N={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?Ui(b):cE(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(EC(N),a0),S=TC(E=>N.next(A*E).value,A,30);return A+"ms "+S}};return N}function eN({keyframes:t,velocity:n=0,power:r=.8,timeConstant:i=325,bounceDamping:s=10,bounceStiffness:a=500,modifyTarget:o,min:c,max:d,restDelta:h=.5,restSpeed:f}){const m=t[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 v=m+j,x=o===void 0?v:o(v);x!==v&&(j=x-m);const k=C=>-j*Math.exp(-C/i),w=C=>x+k(C),N=C=>{const B=k(C),F=w(C);p.done=Math.abs(B)<=h,p.value=p.done?x:F};let A,S;const E=C=>{g(p.value)&&(A=C,S=uE({keyframes:[p.value,b(p.value)],velocity:cE(w,C,p.value),damping:s,stiffness:a,restDelta:h,restSpeed:f}))};return E(0),{calculatedDuration:null,next:C=>{let B=!1;return!S&&A===void 0&&(B=!0,N(C),E(C)),A!==void 0&&C>=A?S.next(C-A):(!B&&N(C),p)}}}const a7=Iu(.42,0,1,1),o7=Iu(0,0,.58,1),dE=Iu(.42,0,.58,1),l7=t=>Array.isArray(t)&&typeof t[0]!="number",c7={linear:fr,easeIn:a7,easeInOut:dE,easeOut:o7,circIn:Uy,circInOut:HC,circOut:$C,backIn:Vy,backInOut:VC,backOut:qC,anticipate:UC},tN=t=>{if(My(t)){lC(t.length===4);const[n,r,i,s]=t;return Iu(n,r,i,s)}else if(typeof t=="string")return c7[t];return t};function u7(t,n,r){const i=[],s=r||lE,a=t.length-1;for(let o=0;o<a;o++){let c=s(t[o],t[o+1]);if(n){const d=Array.isArray(n)?n[o]||fr:n;c=Ru(d,c)}i.push(c)}return i}function d7(t,n,{clamp:r=!0,ease:i,mixer:s}={}){const a=t.length;if(lC(a===n.length),a===1)return()=>n[0];if(a===2&&t[0]===t[1])return()=>n[1];t[0]>t[a-1]&&(t=[...t].reverse(),n=[...n].reverse());const o=u7(n,i,s),c=o.length,d=h=>{let f=0;if(c>1)for(;f<t.length-2&&!(h<t[f+1]);f++);const m=dl(t[f],t[f+1],h);return o[f](m)};return r?h=>d(Gi(t[0],t[a-1],h)):d}function h7(t,n){const r=t[t.length-1];for(let i=1;i<=n;i++){const s=dl(0,n,i);t.push(Gt(r,1,s))}}function f7(t){const n=[0];return h7(n,t.length-1),n}function m7(t,n){return t.map(r=>r*n)}function p7(t,n){return t.map(()=>n||dE).splice(0,t.length-1)}function Gh({duration:t=300,keyframes:n,times:r,ease:i="easeInOut"}){const s=l7(i)?i.map(tN):tN(i),a={done:!1,value:n[0]},o=m7(r&&r.length===n.length?r:f7(n),t),c=d7(o,n,{ease:Array.isArray(s)?s:p7(n,s)});return{calculatedDuration:t,next:d=>(a.value=c(d),a.done=d>=t,a)}}const g7=t=>{const n=({timestamp:r})=>t(r);return{start:()=>zt.update(n,!0),stop:()=>Ws(n),now:()=>Nn.isProcessing?Nn.timestamp:xi.now()}},x7={decay:eN,inertia:eN,tween:Gh,keyframes:Gh,spring:uE},v7=t=>t/100;class Qy extends aE{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)||$y,c=(d,h)=>this.onKeyframesResolved(d,h);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=Fy(r)?r:x7[r]||Gh;let d,h;c!==Gh&&typeof n[0]!="number"&&(d=Ru(v7,lE(n[0],n[1])),n=[0,100]);const f=c({...this.options,keyframes:n});a==="mirror"&&(h=c({...this.options,keyframes:[...n].reverse(),velocity:-o})),f.calculatedDuration===null&&(f.calculatedDuration=EC(f));const{calculatedDuration:m}=f,p=m+s,g=p*(i+1)-s;return{generator:f,mirroredGenerator:h,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:h,totalDuration:f,resolvedDuration:m}=i;if(this.startTime===null)return a.next(0);const{delay:p,repeat:g,repeatType:b,repeatDelay:j,onUpdate:v}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,n):this.speed<0&&(this.startTime=Math.min(n-f/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),k=this.speed>=0?x<0:x>f;this.currentTime=Math.max(x,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=f);let w=this.currentTime,N=a;if(g){const C=Math.min(this.currentTime,f)/m;let B=Math.floor(C),F=C%1;!F&&C>=1&&(F=1),F===1&&B--,B=Math.min(B,g+1),!!(B%2)&&(b==="reverse"?(F=1-F,j&&(F-=j/m)):b==="mirror"&&(N=o)),w=Gi(0,1,F)*m}const A=k?{done:!1,value:d[0]}:N.next(w);c&&(A.value=c(A.value));let{done:S}=A;!k&&h!==null&&(S=this.speed>=0?this.currentTime>=f:this.currentTime<=0);const E=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&S);return E&&s!==void 0&&(A.value=Nf(d,this.options,s)),v&&v(A.value),E&&this.finish(),A}get duration(){const{resolved:n}=this;return n?$i(n.calculatedDuration):0}get time(){return $i(this.currentTime)}set time(n){n=Ui(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=$i(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:n=g7,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 y7=new Set(["opacity","clipPath","filter","transform"]);function b7(t,n,r,{delay:i=0,duration:s=300,repeat:a=0,repeatType:o="loop",ease:c="easeInOut",times:d}={}){const h={[n]:r};d&&(h.offset=d);const f=PC(c,s);return Array.isArray(f)&&(h.easing=f),t.animate(h,{delay:i,duration:s,easing:Array.isArray(f)?"linear":f,fill:"both",iterations:a+1,direction:o==="reverse"?"alternate":"normal"})}const j7=by(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Qh=10,w7=2e4;function k7(t){return Fy(t.type)||t.type==="spring"||!OC(t.ease)}function N7(t,n){const r=new Qy({...n,keyframes:t,repeat:0,delay:0,isGenerator:!0});let i={done:!1,value:t[0]};const s=[];let a=0;for(;!i.done&&a<w7;)i=r.sample(a),s.push(i.value),a+=Qh;return{times:void 0,keyframes:s,duration:a-Qh,ease:"linear"}}const hE={anticipate:UC,backInOut:VC,circInOut:HC};function _7(t){return t in hE}class nN extends aE{constructor(n){super(n);const{name:r,motionValue:i,element:s,keyframes:a}=this.options;this.resolver=new sE(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:h,startTime:f}=this.options;if(!(!((i=d.owner)===null||i===void 0)&&i.current))return!1;if(typeof o=="string"&&Wh()&&_7(o)&&(o=hE[o]),k7(this.options)){const{onComplete:p,onUpdate:g,motionValue:b,element:j,...v}=this.options,x=N7(n,v);n=x.keyframes,n.length===1&&(n[1]=n[0]),s=x.duration,a=x.times,o=x.ease,c="keyframes"}const m=b7(d.owner.current,h,n,{...this.options,duration:s,times:a,ease:o});return m.startTime=f??this.calcStartTime(),this.pendingTimeline?(zk(m,this.pendingTimeline),this.pendingTimeline=void 0):m.onfinish=()=>{const{onComplete:p}=this.options;d.set(Nf(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 $i(r)}get time(){const{resolved:n}=this;if(!n)return 0;const{animation:r}=n;return $i(r.currentTime||0)}set time(n){const{resolved:r}=this;if(!r)return;const{animation:i}=r;i.currentTime=Ui(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;zk(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:h,onUpdate:f,onComplete:m,element:p,...g}=this.options,b=new Qy({...g,keyframes:i,duration:s,type:a,ease:o,times:c,isGenerator:!0}),j=Ui(this.time);h.setWithVelocity(b.sample(j-Qh).value,b.sample(j).value,Qh)}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 j7()&&i&&y7.has(i)&&r&&r.owner&&r.owner.current instanceof HTMLElement&&!r.owner.getProps().onUpdate&&!s&&a!=="mirror"&&o!==0&&c!=="inertia"}}const S7={type:"spring",stiffness:500,damping:25,restSpeed:10},A7=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),C7={type:"keyframes",duration:.8},E7={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},T7=(t,{keyframes:n})=>n.length>2?C7:eo.has(t)?t.startsWith("scale")?A7(n[1]):S7:E7;function O7({when:t,delay:n,delayChildren:r,staggerChildren:i,staggerDirection:s,repeat:a,repeatType:o,repeatDelay:c,from:d,elapsed:h,...f}){return!!Object.keys(f).length}const Yy=(t,n,r,i={},s,a)=>o=>{const c=Ry(i,t)||{},d=c.delay||i.delay||0;let{elapsed:h=0}=i;h=h-Ui(d);let f={keyframes:Array.isArray(r)?r:[null,r],ease:"easeOut",velocity:n.getVelocity(),...c,delay:-h,onUpdate:p=>{n.set(p),c.onUpdate&&c.onUpdate(p)},onComplete:()=>{o(),c.onComplete&&c.onComplete()},name:t,motionValue:n,element:a?void 0:s};O7(c)||(f={...f,...T7(t,f)}),f.duration&&(f.duration=Ui(f.duration)),f.repeatDelay&&(f.repeatDelay=Ui(f.repeatDelay)),f.from!==void 0&&(f.keyframes[0]=f.from);let m=!1;if((f.type===!1||f.duration===0&&!f.repeatDelay)&&(f.duration=0,f.delay===0&&(m=!0)),m&&!a&&n.get()!==void 0){const p=Nf(f.keyframes,c);if(p!==void 0)return zt.update(()=>{f.onUpdate(p),f.onComplete()}),new QB([])}return!a&&nN.supports(f)?new nN(f):new Qy(f)};function P7({protectedKeys:t,needsAnimating:n},r){const i=t.hasOwnProperty(r)&&n[r]!==!0;return n[r]=!1,i}function fE(t,n,{delay:r=0,transitionOverride:i,type:s}={}){var a;let{transition:o=t.getDefaultTransition(),transitionEnd:c,...d}=n;i&&(o=i);const h=[],f=s&&t.animationState&&t.animationState.getState()[s];for(const m in d){const p=t.getValue(m,(a=t.latestValues[m])!==null&&a!==void 0?a:null),g=d[m];if(g===void 0||f&&P7(f,m))continue;const b={delay:r,...Ry(o||{},m)};let j=!1;if(window.MotionHandoffAnimation){const x=MC(t);if(x){const k=window.MotionHandoffAnimation(x,m,zt);k!==null&&(b.startTime=k,j=!0)}}l0(t,m),p.start(Yy(m,p,g,t.shouldReduceMotion&&eo.has(m)?{type:!1}:b,t,j));const v=p.animation;v&&h.push(v)}return c&&Promise.all(h).then(()=>{zt.update(()=>{c&&cz(t,c)})}),h}function p0(t,n,r={}){var i;const s=kf(t,n,r.type==="exit"?(i=t.presenceContext)===null||i===void 0?void 0:i.custom:void 0);let{transition:a=t.getDefaultTransition()||{}}=s||{};r.transitionOverride&&(a=r.transitionOverride);const o=s?()=>Promise.all(fE(t,s,r)):()=>Promise.resolve(),c=t.variantChildren&&t.variantChildren.size?(h=0)=>{const{delayChildren:f=0,staggerChildren:m,staggerDirection:p}=a;return D7(t,n,f+h,m,p,r)}:()=>Promise.resolve(),{when:d}=a;if(d){const[h,f]=d==="beforeChildren"?[o,c]:[c,o];return h().then(()=>f())}else return Promise.all([o(),c(r.delay)])}function D7(t,n,r=0,i=0,s=1,a){const o=[],c=(t.variantChildren.size-1)*i,d=s===1?(h=0)=>h*i:(h=0)=>c-h*i;return Array.from(t.variantChildren).sort(I7).forEach((h,f)=>{h.notify("AnimationStart",n),o.push(p0(h,n,{...a,delay:r+d(f)}).then(()=>h.notify("AnimationComplete",n)))}),Promise.all(o)}function I7(t,n){return t.sortNodePosition(n)}function R7(t,n,r={}){t.notify("AnimationStart",n);let i;if(Array.isArray(n)){const s=n.map(a=>p0(t,a,r));i=Promise.all(s)}else if(typeof n=="string")i=p0(t,n,r);else{const s=typeof n=="function"?kf(t,n,r.custom):n;i=Promise.all(fE(t,s,r))}return i.then(()=>{t.notify("AnimationComplete",n)})}const F7=ky.length;function mE(t){if(!t)return;if(!t.isControllingVariants){const r=t.parent?mE(t.parent)||{}:{};return t.props.initial!==void 0&&(r.initial=t.props.initial),r}const n={};for(let r=0;r<F7;r++){const i=ky[r],s=t.props[i];(au(s)||s===!1)&&(n[i]=s)}return n}const M7=[...wy].reverse(),L7=wy.length;function B7(t){return n=>Promise.all(n.map(({animation:r,options:i})=>R7(t,r,i)))}function z7(t){let n=B7(t),r=rN(),i=!0;const s=d=>(h,f)=>{var m;const p=kf(t,f,d==="exit"?(m=t.presenceContext)===null||m===void 0?void 0:m.custom:void 0);if(p){const{transition:g,transitionEnd:b,...j}=p;h={...h,...j,...b}}return h};function a(d){n=d(t)}function o(d){const{props:h}=t,f=mE(t.parent)||{},m=[],p=new Set;let g={},b=1/0;for(let v=0;v<L7;v++){const x=M7[v],k=r[x],w=h[x]!==void 0?h[x]:f[x],N=au(w),A=x===d?k.isActive:null;A===!1&&(b=v);let S=w===f[x]&&w!==h[x]&&N;if(S&&i&&t.manuallyAnimateOnMount&&(S=!1),k.protectedKeys={...g},!k.isActive&&A===null||!w&&!k.prevProp||jf(w)||typeof w=="boolean")continue;const E=q7(k.prevProp,w);let C=E||x===d&&k.isActive&&!S&&N||v>b&&N,B=!1;const F=Array.isArray(w)?w:[w];let D=F.reduce(s(x),{});A===!1&&(D={});const{prevResolvedValues:I={}}=k,z={...I,...D},q=H=>{C=!0,p.has(H)&&(B=!0,p.delete(H)),k.needsAnimating[H]=!0;const K=t.getValue(H);K&&(K.liveStyle=!1)};for(const H in z){const K=D[H],Y=I[H];if(g.hasOwnProperty(H))continue;let P=!1;s0(K)&&s0(Y)?P=!CC(K,Y):P=K!==Y,P?K!=null?q(H):p.add(H):K!==void 0&&p.has(H)?q(H):k.protectedKeys[H]=!0}k.prevProp=w,k.prevResolvedValues=D,k.isActive&&(g={...g,...D}),i&&t.blockInitialAnimation&&(C=!1),C&&(!(S&&E)||B)&&m.push(...F.map(H=>({animation:H,options:{type:x}})))}if(p.size){const v={};p.forEach(x=>{const k=t.getBaseTarget(x),w=t.getValue(x);w&&(w.liveStyle=!0),v[x]=k??null}),m.push({animation:v})}let j=!!m.length;return i&&(h.initial===!1||h.initial===h.animate)&&!t.manuallyAnimateOnMount&&(j=!1),i=!1,j?n(m):Promise.resolve()}function c(d,h){var f;if(r[d].isActive===h)return Promise.resolve();(f=t.variantChildren)===null||f===void 0||f.forEach(p=>{var g;return(g=p.animationState)===null||g===void 0?void 0:g.setActive(d,h)}),r[d].isActive=h;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=rN(),i=!0}}}function q7(t,n){return typeof n=="string"?n!==t:Array.isArray(n)?!CC(n,t):!1}function ya(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function rN(){return{animate:ya(!0),whileInView:ya(),whileHover:ya(),whileTap:ya(),whileDrag:ya(),whileFocus:ya(),exit:ya()}}class Js{constructor(n){this.isMounted=!1,this.node=n}update(){}}class V7 extends Js{constructor(n){super(n),n.animationState||(n.animationState=z7(n))}updateAnimationControlsSubscription(){const{animate:n}=this.node.getProps();jf(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 U7=0;class $7 extends Js{constructor(){super(...arguments),this.id=U7++}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 H7={animation:{Feature:V7},exit:{Feature:$7}};function uu(t,n,r,i={passive:!0}){return t.addEventListener(n,r,i),()=>t.removeEventListener(n,r)}function Fu(t){return{point:{x:t.pageX,y:t.pageY}}}const W7=t=>n=>Ly(n)&&t(n,Fu(n));function $c(t,n,r,i){return uu(t,n,W7(r),i)}const iN=(t,n)=>Math.abs(t-n);function K7(t,n){const r=iN(t.x,n.x),i=iN(t.y,n.y);return Math.sqrt(r**2+i**2)}class pE{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=og(this.lastMoveEventInfo,this.history),p=this.startEvent!==null,g=K7(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:v,onMove:x}=this.handlers;p||(v&&v(this.lastMoveEvent,m),this.startEvent=this.lastMoveEvent),x&&x(this.lastMoveEvent,m)},this.handlePointerMove=(m,p)=>{this.lastMoveEvent=m,this.lastMoveEventInfo=ag(p,this.transformPagePoint),zt.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 v=og(m.type==="pointercancel"?this.lastMoveEventInfo:ag(p,this.transformPagePoint),this.history);this.startEvent&&g&&g(m,v),b&&b(m,v)},!Ly(n))return;this.dragSnapToOrigin=a,this.handlers=r,this.transformPagePoint=i,this.contextWindow=s||window;const o=Fu(n),c=ag(o,this.transformPagePoint),{point:d}=c,{timestamp:h}=Nn;this.history=[{...d,timestamp:h}];const{onSessionStart:f}=r;f&&f(n,og(c,this.history)),this.removeListeners=Ru($c(this.contextWindow,"pointermove",this.handlePointerMove),$c(this.contextWindow,"pointerup",this.handlePointerUp),$c(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(n){this.handlers=n}end(){this.removeListeners&&this.removeListeners(),Ws(this.updatePoint)}}function ag(t,n){return n?{point:n(t.point)}:t}function sN(t,n){return{x:t.x-n.x,y:t.y-n.y}}function og({point:t},n){return{point:t,delta:sN(t,gE(n)),offset:sN(t,G7(n)),velocity:Q7(n,.1)}}function G7(t){return t[0]}function gE(t){return t[t.length-1]}function Q7(t,n){if(t.length<2)return{x:0,y:0};let r=t.length-1,i=null;const s=gE(t);for(;r>=0&&(i=t[r],!(s.timestamp-i.timestamp>Ui(n)));)r--;if(!i)return{x:0,y:0};const a=$i(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 xE=1e-4,Y7=1-xE,X7=1+xE,vE=.01,J7=0-vE,Z7=0+vE;function gr(t){return t.max-t.min}function e9(t,n,r){return Math.abs(t-n)<=r}function aN(t,n,r,i=.5){t.origin=i,t.originPoint=Gt(n.min,n.max,t.origin),t.scale=gr(r)/gr(n),t.translate=Gt(r.min,r.max,t.origin)-t.originPoint,(t.scale>=Y7&&t.scale<=X7||isNaN(t.scale))&&(t.scale=1),(t.translate>=J7&&t.translate<=Z7||isNaN(t.translate))&&(t.translate=0)}function Hc(t,n,r,i){aN(t.x,n.x,r.x,i?i.originX:void 0),aN(t.y,n.y,r.y,i?i.originY:void 0)}function oN(t,n,r){t.min=r.min+n.min,t.max=t.min+gr(n)}function t9(t,n,r){oN(t.x,n.x,r.x),oN(t.y,n.y,r.y)}function lN(t,n,r){t.min=n.min-r.min,t.max=t.min+gr(n)}function Wc(t,n,r){lN(t.x,n.x,r.x),lN(t.y,n.y,r.y)}function n9(t,{min:n,max:r},i){return n!==void 0&&t<n?t=i?Gt(n,t,i.min):Math.max(t,n):r!==void 0&&t>r&&(t=i?Gt(r,t,i.max):Math.min(t,r)),t}function cN(t,n,r){return{min:n!==void 0?t.min+n:void 0,max:r!==void 0?t.max+r-(t.max-t.min):void 0}}function r9(t,{top:n,left:r,bottom:i,right:s}){return{x:cN(t.x,r,s),y:cN(t.y,n,i)}}function uN(t,n){let r=n.min-t.min,i=n.max-t.max;return n.max-n.min<t.max-t.min&&([r,i]=[i,r]),{min:r,max:i}}function i9(t,n){return{x:uN(t.x,n.x),y:uN(t.y,n.y)}}function s9(t,n){let r=.5;const i=gr(t),s=gr(n);return s>i?r=dl(n.min,n.max-i,t.min):i>s&&(r=dl(t.min,t.max-s,n.min)),Gi(0,1,r)}function a9(t,n){const r={};return n.min!==void 0&&(r.min=n.min-t.min),n.max!==void 0&&(r.max=n.max-t.min),r}const g0=.35;function o9(t=g0){return t===!1?t=0:t===!0&&(t=g0),{x:dN(t,"left","right"),y:dN(t,"top","bottom")}}function dN(t,n,r){return{min:hN(t,n),max:hN(t,r)}}function hN(t,n){return typeof t=="number"?t:t[n]||0}const fN=()=>({translate:0,scale:1,origin:0,originPoint:0}),qo=()=>({x:fN(),y:fN()}),mN=()=>({min:0,max:0}),rn=()=>({x:mN(),y:mN()});function Nr(t){return[t("x"),t("y")]}function yE({top:t,left:n,right:r,bottom:i}){return{x:{min:n,max:r},y:{min:t,max:i}}}function l9({x:t,y:n}){return{top:n.min,right:t.max,bottom:n.max,left:t.min}}function c9(t,n){if(!n)return t;const r=n({x:t.left,y:t.top}),i=n({x:t.right,y:t.bottom});return{top:r.y,left:r.x,bottom:i.y,right:i.x}}function lg(t){return t===void 0||t===1}function x0({scale:t,scaleX:n,scaleY:r}){return!lg(t)||!lg(n)||!lg(r)}function ja(t){return x0(t)||bE(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function bE(t){return pN(t.x)||pN(t.y)}function pN(t){return t&&t!=="0%"}function Yh(t,n,r){const i=t-r,s=n*i;return r+s}function gN(t,n,r,i,s){return s!==void 0&&(t=Yh(t,s,i)),Yh(t,r,i)+n}function v0(t,n=0,r=1,i,s){t.min=gN(t.min,n,r,i,s),t.max=gN(t.max,n,r,i,s)}function jE(t,{x:n,y:r}){v0(t.x,n.translate,n.scale,n.originPoint),v0(t.y,r.translate,r.scale,r.originPoint)}const xN=.999999999999,vN=1.0000000000001;function u9(t,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&&Uo(t,{x:-a.scroll.offset.x,y:-a.scroll.offset.y}),o&&(n.x*=o.x.scale,n.y*=o.y.scale,jE(t,o)),i&&ja(a.latestValues)&&Uo(t,a.latestValues))}n.x<vN&&n.x>xN&&(n.x=1),n.y<vN&&n.y>xN&&(n.y=1)}function Vo(t,n){t.min=t.min+n,t.max=t.max+n}function yN(t,n,r,i,s=.5){const a=Gt(t.min,t.max,s);v0(t,n,r,a,i)}function Uo(t,n){yN(t.x,n.x,n.scaleX,n.scale,n.originX),yN(t.y,n.y,n.scaleY,n.scale,n.originY)}function wE(t,n){return yE(c9(t.getBoundingClientRect(),n))}function d9(t,n,r){const i=wE(t,r),{scroll:s}=n;return s&&(Vo(i.x,s.offset.x),Vo(i.y,s.offset.y)),i}const kE=({current:t})=>t?t.ownerDocument.defaultView:null,h9=new WeakMap;class f9{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=rn(),this.visualElement=n}start(n,{snapToCursor:r=!1}={}){const{presenceContext:i}=this.visualElement;if(i&&i.isPresent===!1)return;const s=f=>{const{dragSnapToOrigin:m}=this.getProps();m?this.pauseAnimation():this.stopAnimation(),r&&this.snapToCursor(Fu(f).point)},a=(f,m)=>{const{drag:p,dragPropagation:g,onDragStart:b}=this.getProps();if(p&&!g&&(this.openDragLock&&this.openDragLock(),this.openDragLock=iz(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),Nr(v=>{let x=this.getAxisMotionValue(v).get()||0;if(gi.test(x)){const{projection:k}=this.visualElement;if(k&&k.layout){const w=k.layout.layoutBox[v];w&&(x=gr(w)*(parseFloat(x)/100))}}this.originPoint[v]=x}),b&&zt.postRender(()=>b(f,m)),l0(this.visualElement,"transform");const{animationState:j}=this.visualElement;j&&j.setActive("whileDrag",!0)},o=(f,m)=>{const{dragPropagation:p,dragDirectionLock:g,onDirectionLock:b,onDrag:j}=this.getProps();if(!p&&!this.openDragLock)return;const{offset:v}=m;if(g&&this.currentDirection===null){this.currentDirection=m9(v),this.currentDirection!==null&&b&&b(this.currentDirection);return}this.updateAxis("x",m.point,v),this.updateAxis("y",m.point,v),this.visualElement.render(),j&&j(f,m)},c=(f,m)=>this.stop(f,m),d=()=>Nr(f=>{var m;return this.getAnimationState(f)==="paused"&&((m=this.getAxisMotionValue(f).animation)===null||m===void 0?void 0:m.play())}),{dragSnapToOrigin:h}=this.getProps();this.panSession=new pE(n,{onSessionStart:s,onStart:a,onMove:o,onSessionEnd:c,resumeAnimation:d},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:h,contextWindow:kE(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&&zt.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||!ch(n,s,this.currentDirection))return;const a=this.getAxisMotionValue(n);let o=this.originPoint[n]+i[n];this.constraints&&this.constraints[n]&&(o=n9(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&&Bo(r)?this.constraints||(this.constraints=this.resolveRefConstraints()):r&&s?this.constraints=r9(s.layoutBox,r):this.constraints=!1,this.elastic=o9(i),a!==this.constraints&&s&&this.constraints&&!this.hasMutatedConstraints&&Nr(o=>{this.constraints!==!1&&this.getAxisMotionValue(o)&&(this.constraints[o]=a9(s.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:n,onMeasureDragConstraints:r}=this.getProps();if(!n||!Bo(n))return!1;const i=n.current,{projection:s}=this.visualElement;if(!s||!s.layout)return!1;const a=d9(i,s.root,this.visualElement.getTransformPagePoint());let o=i9(s.layout.layoutBox,a);if(r){const c=r(l9(o));this.hasMutatedConstraints=!!c,c&&(o=yE(c))}return o}startAnimation(n){const{drag:r,dragMomentum:i,dragElastic:s,dragTransition:a,dragSnapToOrigin:o,onDragTransitionEnd:c}=this.getProps(),d=this.constraints||{},h=Nr(f=>{if(!ch(f,r,this.currentDirection))return;let m=d&&d[f]||{};o&&(m={min:0,max:0});const p=s?200:1e6,g=s?40:1e7,b={type:"inertia",velocity:i?n[f]:0,bounceStiffness:p,bounceDamping:g,timeConstant:750,restDelta:1,restSpeed:10,...a,...m};return this.startAxisValueAnimation(f,b)});return Promise.all(h).then(c)}startAxisValueAnimation(n,r){const i=this.getAxisMotionValue(n);return l0(this.visualElement,n),i.start(Yy(n,i,0,r,this.visualElement,!1))}stopAnimation(){Nr(n=>this.getAxisMotionValue(n).stop())}pauseAnimation(){Nr(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){Nr(r=>{const{drag:i}=this.getProps();if(!ch(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]-Gt(o,c,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:n,dragConstraints:r}=this.getProps(),{projection:i}=this.visualElement;if(!Bo(r)||!i||!this.constraints)return;this.stopAnimation();const s={x:0,y:0};Nr(o=>{const c=this.getAxisMotionValue(o);if(c&&this.constraints!==!1){const d=c.get();s[o]=s9({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(),Nr(o=>{if(!ch(o,n,null))return;const c=this.getAxisMotionValue(o),{min:d,max:h}=this.constraints[o];c.set(Gt(d,h,s[o]))})}addListeners(){if(!this.visualElement.current)return;h9.set(this.visualElement,this);const n=this.visualElement.current,r=$c(n,"pointerdown",d=>{const{drag:h,dragListener:f=!0}=this.getProps();h&&f&&this.start(d)}),i=()=>{const{dragConstraints:d}=this.getProps();Bo(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()),zt.read(i);const o=uu(window,"resize",()=>this.scalePositionWithinConstraints()),c=s.addEventListener("didUpdate",(({delta:d,hasLayoutChanged:h})=>{this.isDragging&&h&&(Nr(f=>{const m=this.getAxisMotionValue(f);m&&(this.originPoint[f]+=d[f].translate,m.set(m.get()+d[f].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=g0,dragMomentum:c=!0}=n;return{...n,drag:r,dragDirectionLock:i,dragPropagation:s,dragConstraints:a,dragElastic:o,dragMomentum:c}}}function ch(t,n,r){return(n===!0||n===t)&&(r===null||r===t)}function m9(t,n=10){let r=null;return Math.abs(t.y)>n?r="y":Math.abs(t.x)>n&&(r="x"),r}class p9 extends Js{constructor(n){super(n),this.removeGroupControls=fr,this.removeListeners=fr,this.controls=new f9(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 bN=t=>(n,r)=>{t&&zt.postRender(()=>t(n,r))};class g9 extends Js{constructor(){super(...arguments),this.removePointerDownListener=fr}onPointerDown(n){this.session=new pE(n,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:kE(this.node)})}createPanHandlers(){const{onPanSessionStart:n,onPanStart:r,onPan:i,onPanEnd:s}=this.node.getProps();return{onSessionStart:bN(n),onStart:bN(r),onMove:i,onEnd:(a,o)=>{delete this.session,s&&zt.postRender(()=>s(a,o))}}}mount(){this.removePointerDownListener=$c(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 x9(){const t=R.useContext(yf);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:i}=t,s=R.useId();R.useEffect(()=>i(s),[]);const a=R.useCallback(()=>r&&r(s),[s,r]);return!n&&r?[!1,a]:[!0]}const Dh={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function jN(t,n){return n.max===n.min?0:t/(n.max-n.min)*100}const jc={correct:(t,n)=>{if(!n.target)return t;if(typeof t=="string")if(Ye.test(t))t=parseFloat(t);else return t;const r=jN(t,n.target.x),i=jN(t,n.target.y);return`${r}% ${i}%`}},v9={correct:(t,{treeScale:n,projectionDelta:r})=>{const i=t,s=Ks.parse(t);if(s.length>5)return i;const a=Ks.createTransformer(t),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 h=Gt(c,d,.5);return typeof s[2+o]=="number"&&(s[2+o]/=h),typeof s[3+o]=="number"&&(s[3+o]/=h),a(s)}};class y9 extends R.Component{componentDidMount(){const{visualElement:n,layoutGroup:r,switchLayoutGroup:i,layoutId:s}=this.props,{projection:a}=n;jB(b9),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()})),Dh.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()||zt.postRender(()=>{const c=o.getStack();(!c||!c.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:n}=this.props.visualElement;n&&(n.root.didUpdate(),_y.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 NE(t){const[n,r]=x9(),i=R.useContext(yy);return e.jsx(y9,{...t,layoutGroup:i,switchLayoutGroup:R.useContext(pC),isPresent:n,safeToRemove:r})}const b9={borderRadius:{...jc,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:jc,borderTopRightRadius:jc,borderBottomLeftRadius:jc,borderBottomRightRadius:jc,boxShadow:v9};function j9(t,n,r){const i=In(t)?t:lu(t);return i.start(Yy("",i,n,r)),i.animation}function w9(t){return t instanceof SVGElement&&t.tagName!=="svg"}const k9=(t,n)=>t.depth-n.depth;class N9{constructor(){this.children=[],this.isDirty=!1}add(n){By(this.children,n),this.isDirty=!0}remove(n){zy(this.children,n),this.isDirty=!0}forEach(n){this.isDirty&&this.children.sort(k9),this.isDirty=!1,this.children.forEach(n)}}function _9(t,n){const r=xi.now(),i=({timestamp:s})=>{const a=s-r;a>=n&&(Ws(i),t(a-n))};return zt.read(i,!0),()=>Ws(i)}const _E=["TopLeft","TopRight","BottomLeft","BottomRight"],S9=_E.length,wN=t=>typeof t=="string"?parseFloat(t):t,kN=t=>typeof t=="number"||Ye.test(t);function A9(t,n,r,i,s,a){s?(t.opacity=Gt(0,r.opacity!==void 0?r.opacity:1,C9(i)),t.opacityExit=Gt(n.opacity!==void 0?n.opacity:1,0,E9(i))):a&&(t.opacity=Gt(n.opacity!==void 0?n.opacity:1,r.opacity!==void 0?r.opacity:1,i));for(let o=0;o<S9;o++){const c=`border${_E[o]}Radius`;let d=NN(n,c),h=NN(r,c);if(d===void 0&&h===void 0)continue;d||(d=0),h||(h=0),d===0||h===0||kN(d)===kN(h)?(t[c]=Math.max(Gt(wN(d),wN(h),i),0),(gi.test(h)||gi.test(d))&&(t[c]+="%")):t[c]=h}(n.rotate||r.rotate)&&(t.rotate=Gt(n.rotate||0,r.rotate||0,i))}function NN(t,n){return t[n]!==void 0?t[n]:t.borderRadius}const C9=SE(0,.5,$C),E9=SE(.5,.95,fr);function SE(t,n,r){return i=>i<t?0:i>n?1:r(dl(t,n,i))}function _N(t,n){t.min=n.min,t.max=n.max}function kr(t,n){_N(t.x,n.x),_N(t.y,n.y)}function SN(t,n){t.translate=n.translate,t.scale=n.scale,t.originPoint=n.originPoint,t.origin=n.origin}function AN(t,n,r,i,s){return t-=n,t=Yh(t,1/r,i),s!==void 0&&(t=Yh(t,1/s,i)),t}function T9(t,n=0,r=1,i=.5,s,a=t,o=t){if(gi.test(n)&&(n=parseFloat(n),n=Gt(o.min,o.max,n/100)-o.min),typeof n!="number")return;let c=Gt(a.min,a.max,i);t===a&&(c-=n),t.min=AN(t.min,n,r,c,s),t.max=AN(t.max,n,r,c,s)}function CN(t,n,[r,i,s],a,o){T9(t,n[r],n[i],n[s],n.scale,a,o)}const O9=["x","scaleX","originX"],P9=["y","scaleY","originY"];function EN(t,n,r,i){CN(t.x,n,O9,r?r.x:void 0,i?i.x:void 0),CN(t.y,n,P9,r?r.y:void 0,i?i.y:void 0)}function TN(t){return t.translate===0&&t.scale===1}function AE(t){return TN(t.x)&&TN(t.y)}function ON(t,n){return t.min===n.min&&t.max===n.max}function D9(t,n){return ON(t.x,n.x)&&ON(t.y,n.y)}function PN(t,n){return Math.round(t.min)===Math.round(n.min)&&Math.round(t.max)===Math.round(n.max)}function CE(t,n){return PN(t.x,n.x)&&PN(t.y,n.y)}function DN(t){return gr(t.x)/gr(t.y)}function IN(t,n){return t.translate===n.translate&&t.scale===n.scale&&t.originPoint===n.originPoint}class I9{constructor(){this.members=[]}add(n){By(this.members,n),n.scheduleRender()}remove(n){if(zy(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 R9(t,n,r){let i="";const s=t.x.translate/n.x,a=t.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:h,rotate:f,rotateX:m,rotateY:p,skewX:g,skewY:b}=r;h&&(i=`perspective(${h}px) ${i}`),f&&(i+=`rotate(${f}deg) `),m&&(i+=`rotateX(${m}deg) `),p&&(i+=`rotateY(${p}deg) `),g&&(i+=`skewX(${g}deg) `),b&&(i+=`skewY(${b}deg) `)}const c=t.x.scale*n.x,d=t.y.scale*n.y;return(c!==1||d!==1)&&(i+=`scale(${c}, ${d})`),i||"none"}const wa={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},Fc=typeof window<"u"&&window.MotionDebug!==void 0,cg=["","X","Y","Z"],F9={visibility:"hidden"},RN=1e3;let M9=0;function ug(t,n,r,i){const{latestValues:s}=n;s[t]&&(r[t]=s[t],n.setStaticValue(t,0),i&&(i[t]=0))}function EE(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;const{visualElement:n}=t.options;if(!n)return;const r=MC(n);if(window.MotionHasOptimisedAnimation(r,"transform")){const{layout:s,layoutId:a}=t.options;window.MotionCancelOptimisedAnimation(r,"transform",zt,!(s||a))}const{parent:i}=t;i&&!i.hasCheckedOptimisedAppear&&EE(i)}function TE({attachResizeListener:t,defaultParent:n,measureScroll:r,checkIsScrollRoot:i,resetTransform:s}){return class{constructor(o={},c=n==null?void 0:n()){this.id=M9++,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,Fc&&(wa.totalNodes=wa.resolvedTargetDeltas=wa.recalculatedProjection=0),this.nodes.forEach(z9),this.nodes.forEach(H9),this.nodes.forEach(W9),this.nodes.forEach(q9),Fc&&window.MotionDebug.record(wa)},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 N9)}addEventListener(o,c){return this.eventHandlers.has(o)||this.eventHandlers.set(o,new qy),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=w9(o),this.instance=o;const{layoutId:d,layout:h,visualElement:f}=this.options;if(f&&!f.current&&f.mount(o),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),c&&(h||d)&&(this.isLayoutDirty=!0),t){let m;const p=()=>this.root.updateBlockedByResize=!1;t(o,()=>{this.root.updateBlockedByResize=!0,m&&m(),m=_9(p,250),Dh.hasAnimatedSinceResize&&(Dh.hasAnimatedSinceResize=!1,this.nodes.forEach(MN))})}d&&this.root.registerSharedNode(d,this),this.options.animate!==!1&&f&&(d||h)&&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||f.getDefaultTransition()||X9,{onLayoutAnimationStart:v,onLayoutAnimationComplete:x}=f.getProps(),k=!this.targetLayout||!CE(this.targetLayout,b)||g,w=!p&&g;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||w||p&&(k||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(m,w);const N={...Ry(j,"layout"),onPlay:v,onComplete:x};(f.shouldReduceMotion||this.options.layoutRoot)&&(N.delay=0,N.type=!1),this.startAnimation(N)}else p||MN(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(K9),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&&EE(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let f=0;f<this.path.length;f++){const m=this.path[f];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 h=this.getTransformTemplate();this.prevTransformTemplateValue=h?h(this.latestValues,""):void 0,this.updateSnapshot(),o&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(FN);return}this.isUpdating||this.nodes.forEach(U9),this.isUpdating=!1,this.nodes.forEach($9),this.nodes.forEach(L9),this.nodes.forEach(B9),this.clearAllSnapshots();const c=xi.now();Nn.delta=Gi(0,1e3/60,c-Nn.timestamp),Nn.timestamp=c,Nn.isProcessing=!0,eg.update.process(Nn),eg.preRender.process(Nn),eg.render.process(Nn),Nn.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,_y.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(V9),this.sharedNodes.forEach(G9)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,zt.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){zt.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=rn(),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&&!AE(this.projectionDelta),d=this.getTransformTemplate(),h=d?d(this.latestValues,""):void 0,f=h!==this.prevTransformTemplateValue;o&&(c||ja(this.latestValues)||f)&&(s(this.instance,h),this.shouldResetTransform=!1,this.scheduleRender())}measure(o=!0){const c=this.measurePageBox();let d=this.removeElementScroll(c);return o&&(d=this.removeTransform(d)),J9(d),{animationId:this.root.animationId,measuredBox:c,layoutBox:d,latestValues:{},source:this.id}}measurePageBox(){var o;const{visualElement:c}=this.options;if(!c)return rn();const d=c.measureViewportBox();if(!(((o=this.scroll)===null||o===void 0?void 0:o.wasRoot)||this.path.some(Z9))){const{scroll:f}=this.root;f&&(Vo(d.x,f.offset.x),Vo(d.y,f.offset.y))}return d}removeElementScroll(o){var c;const d=rn();if(kr(d,o),!((c=this.scroll)===null||c===void 0)&&c.wasRoot)return d;for(let h=0;h<this.path.length;h++){const f=this.path[h],{scroll:m,options:p}=f;f!==this.root&&m&&p.layoutScroll&&(m.wasRoot&&kr(d,o),Vo(d.x,m.offset.x),Vo(d.y,m.offset.y))}return d}applyTransform(o,c=!1){const d=rn();kr(d,o);for(let h=0;h<this.path.length;h++){const f=this.path[h];!c&&f.options.layoutScroll&&f.scroll&&f!==f.root&&Uo(d,{x:-f.scroll.offset.x,y:-f.scroll.offset.y}),ja(f.latestValues)&&Uo(d,f.latestValues)}return ja(this.latestValues)&&Uo(d,this.latestValues),d}removeTransform(o){const c=rn();kr(c,o);for(let d=0;d<this.path.length;d++){const h=this.path[d];if(!h.instance||!ja(h.latestValues))continue;x0(h.latestValues)&&h.updateSnapshot();const f=rn(),m=h.measurePageBox();kr(f,m),EN(c,h.latestValues,h.snapshot?h.snapshot.layoutBox:void 0,f)}return ja(this.latestValues)&&EN(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 h=!!this.resumingFrom||this!==d;if(!(o||h&&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=rn(),this.relativeTargetOrigin=rn(),Wc(this.relativeTargetOrigin,this.layout.layoutBox,g.layout.layoutBox),kr(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=rn(),this.targetWithTransforms=rn()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),t9(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):kr(this.target,this.layout.layoutBox),jE(this.target,this.targetDelta)):kr(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=rn(),this.relativeTargetOrigin=rn(),Wc(this.relativeTargetOrigin,this.target,g.target),kr(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}Fc&&wa.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||x0(this.parent.latestValues)||bE(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 h=!0;if((this.isProjectionDirty||!((o=this.parent)===null||o===void 0)&&o.isProjectionDirty)&&(h=!1),d&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(h=!1),this.resolvedRelativeTargetAt===Nn.timestamp&&(h=!1),h)return;const{layout:f,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||!(f||m))return;kr(this.layoutCorrected,this.layout.layoutBox);const p=this.treeScale.x,g=this.treeScale.y;u9(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=rn());const{target:b}=c;if(!b){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(SN(this.prevProjectionDelta.x,this.projectionDelta.x),SN(this.prevProjectionDelta.y,this.projectionDelta.y)),Hc(this.projectionDelta,this.layoutCorrected,b,this.latestValues),(this.treeScale.x!==p||this.treeScale.y!==g||!IN(this.projectionDelta.x,this.prevProjectionDelta.x)||!IN(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",b)),Fc&&wa.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=qo(),this.projectionDelta=qo(),this.projectionDeltaWithTransform=qo()}setAnimationOrigin(o,c=!1){const d=this.snapshot,h=d?d.latestValues:{},f={...this.latestValues},m=qo();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!c;const p=rn(),g=d?d.source:void 0,b=this.layout?this.layout.source:void 0,j=g!==b,v=this.getStack(),x=!v||v.members.length<=1,k=!!(j&&!x&&this.options.crossfade===!0&&!this.path.some(Y9));this.animationProgress=0;let w;this.mixTargetDelta=N=>{const A=N/1e3;LN(m.x,o.x,A),LN(m.y,o.y,A),this.setTargetDelta(m),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Wc(p,this.layout.layoutBox,this.relativeParent.layout.layoutBox),Q9(this.relativeTarget,this.relativeTargetOrigin,p,A),w&&D9(this.relativeTarget,w)&&(this.isProjectionDirty=!1),w||(w=rn()),kr(w,this.relativeTarget)),j&&(this.animationValues=f,A9(f,h,this.latestValues,A,k,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=zt.update(()=>{Dh.hasAnimatedSinceResize=!0,this.currentAnimation=j9(0,RN,{...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(RN),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const o=this.getLead();let{targetWithTransforms:c,target:d,layout:h,latestValues:f}=o;if(!(!c||!d||!h)){if(this!==o&&this.layout&&h&&OE(this.options.animationType,this.layout.layoutBox,h.layoutBox)){d=this.target||rn();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}kr(c,d),Uo(c,f),Hc(this.projectionDeltaWithTransform,this.layoutCorrected,c,f)}}registerSharedNode(o,c){this.sharedNodes.has(o)||this.sharedNodes.set(o,new I9),this.sharedNodes.get(o).add(c);const h=c.options.initialPromotionConfig;c.promote({transition:h?h.transition:void 0,preserveFollowOpacity:h&&h.shouldPreserveFollowOpacity?h.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 h=this.getStack();h&&h.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 h={};d.z&&ug("z",o,h,this.animationValues);for(let f=0;f<cg.length;f++)ug(`rotate${cg[f]}`,o,h,this.animationValues),ug(`skew${cg[f]}`,o,h,this.animationValues);o.render();for(const f in h)o.setStaticValue(f,h[f]),this.animationValues&&(this.animationValues[f]=h[f]);o.scheduleRender()}getProjectionStyles(o){var c,d;if(!this.instance||this.isSVG)return;if(!this.isVisible)return F9;const h={visibility:""},f=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,h.opacity="",h.pointerEvents=Oh(o==null?void 0:o.pointerEvents)||"",h.transform=f?f(this.latestValues,""):"none",h;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=Oh(o==null?void 0:o.pointerEvents)||""),this.hasProjected&&!ja(this.latestValues)&&(j.transform=f?f({},""):"none",this.hasProjected=!1),j}const p=m.animationValues||m.latestValues;this.applyTransformsToTarget(),h.transform=R9(this.projectionDeltaWithTransform,this.treeScale,p),f&&(h.transform=f(p,h.transform));const{x:g,y:b}=this.projectionDelta;h.transformOrigin=`${g.origin*100}% ${b.origin*100}% 0`,m.animationValues?h.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:h.opacity=m===this?p.opacity!==void 0?p.opacity:"":p.opacityExit!==void 0?p.opacityExit:0;for(const j in Hh){if(p[j]===void 0)continue;const{correct:v,applyTo:x}=Hh[j],k=h.transform==="none"?p[j]:v(p[j],m);if(x){const w=x.length;for(let N=0;N<w;N++)h[x[N]]=k}else h[j]=k}return this.options.layoutId&&(h.pointerEvents=m===this?Oh(o==null?void 0:o.pointerEvents)||"":"none"),h}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(FN),this.root.sharedNodes.clear()}}}function L9(t){t.updateLayout()}function B9(t){var n;const r=((n=t.resumeFrom)===null||n===void 0?void 0:n.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&r&&t.hasListeners("didUpdate")){const{layoutBox:i,measuredBox:s}=t.layout,{animationType:a}=t.options,o=r.source!==t.layout.source;a==="size"?Nr(m=>{const p=o?r.measuredBox[m]:r.layoutBox[m],g=gr(p);p.min=i[m].min,p.max=p.min+g}):OE(a,r.layoutBox,i)&&Nr(m=>{const p=o?r.measuredBox[m]:r.layoutBox[m],g=gr(i[m]);p.max=p.min+g,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[m].max=t.relativeTarget[m].min+g)});const c=qo();Hc(c,i,r.layoutBox);const d=qo();o?Hc(d,t.applyTransform(s,!0),r.measuredBox):Hc(d,i,r.layoutBox);const h=!AE(c);let f=!1;if(!t.resumeFrom){const m=t.getClosestProjectingParent();if(m&&!m.resumeFrom){const{snapshot:p,layout:g}=m;if(p&&g){const b=rn();Wc(b,r.layoutBox,p.layoutBox);const j=rn();Wc(j,i,g.layoutBox),CE(b,j)||(f=!0),m.options.layoutRoot&&(t.relativeTarget=j,t.relativeTargetOrigin=b,t.relativeParent=m)}}}t.notifyListeners("didUpdate",{layout:i,snapshot:r,delta:d,layoutDelta:c,hasLayoutChanged:h,hasRelativeTargetChanged:f})}else if(t.isLead()){const{onExitComplete:i}=t.options;i&&i()}t.options.transition=void 0}function z9(t){Fc&&wa.totalNodes++,t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function q9(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function V9(t){t.clearSnapshot()}function FN(t){t.clearMeasurements()}function U9(t){t.isLayoutDirty=!1}function $9(t){const{visualElement:n}=t.options;n&&n.getProps().onBeforeLayoutMeasure&&n.notify("BeforeLayoutMeasure"),t.resetTransform()}function MN(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function H9(t){t.resolveTargetDelta()}function W9(t){t.calcProjection()}function K9(t){t.resetSkewAndRotation()}function G9(t){t.removeLeadSnapshot()}function LN(t,n,r){t.translate=Gt(n.translate,0,r),t.scale=Gt(n.scale,1,r),t.origin=n.origin,t.originPoint=n.originPoint}function BN(t,n,r,i){t.min=Gt(n.min,r.min,i),t.max=Gt(n.max,r.max,i)}function Q9(t,n,r,i){BN(t.x,n.x,r.x,i),BN(t.y,n.y,r.y,i)}function Y9(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}const X9={duration:.45,ease:[.4,0,.1,1]},zN=t=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),qN=zN("applewebkit/")&&!zN("chrome/")?Math.round:fr;function VN(t){t.min=qN(t.min),t.max=qN(t.max)}function J9(t){VN(t.x),VN(t.y)}function OE(t,n,r){return t==="position"||t==="preserve-aspect"&&!e9(DN(n),DN(r),.2)}function Z9(t){var n;return t!==t.root&&((n=t.scroll)===null||n===void 0?void 0:n.wasRoot)}const eq=TE({attachResizeListener:(t,n)=>uu(t,"resize",n),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),dg={current:void 0},PE=TE({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!dg.current){const t=new eq({});t.mount(window),t.setOptions({layoutScroll:!0}),dg.current=t}return dg.current},resetTransform:(t,n)=>{t.style.transform=n!==void 0?n:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"}),tq={pan:{Feature:g9},drag:{Feature:p9,ProjectionNode:PE,MeasureLayout:NE}};function UN(t,n,r){const{props:i}=t;t.animationState&&i.whileHover&&t.animationState.setActive("whileHover",r==="Start");const s="onHover"+r,a=i[s];a&&zt.postRender(()=>a(n,Fu(n)))}class nq extends Js{mount(){const{current:n}=this.node;n&&(this.unmount=ZB(n,r=>(UN(this.node,r,"Start"),i=>UN(this.node,i,"End"))))}unmount(){}}class rq extends Js{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=Ru(uu(this.node.current,"focus",()=>this.onFocus()),uu(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function $N(t,n,r){const{props:i}=t;t.animationState&&i.whileTap&&t.animationState.setActive("whileTap",r==="Start");const s="onTap"+(r==="End"?"":r),a=i[s];a&&zt.postRender(()=>a(n,Fu(n)))}class iq extends Js{mount(){const{current:n}=this.node;n&&(this.unmount=rz(n,r=>($N(this.node,r,"Start"),(i,{success:s})=>$N(this.node,i,s?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const y0=new WeakMap,hg=new WeakMap,sq=t=>{const n=y0.get(t.target);n&&n(t)},aq=t=>{t.forEach(sq)};function oq({root:t,...n}){const r=t||document;hg.has(r)||hg.set(r,{});const i=hg.get(r),s=JSON.stringify(n);return i[s]||(i[s]=new IntersectionObserver(aq,{root:t,...n})),i[s]}function lq(t,n,r){const i=oq(n);return y0.set(t,r),i.observe(t),()=>{y0.delete(t),i.unobserve(t)}}const cq={some:0,all:1};class uq extends Js{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:cq[s]},c=d=>{const{isIntersecting:h}=d;if(this.isInView===h||(this.isInView=h,a&&!h&&this.hasEnteredView))return;h&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",h);const{onViewportEnter:f,onViewportLeave:m}=this.node.getProps(),p=h?f:m;p&&p(d)};return lq(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(dq(n,r))&&this.startObserver()}unmount(){}}function dq({viewport:t={}},{viewport:n={}}={}){return r=>t[r]!==n[r]}const hq={inView:{Feature:uq},tap:{Feature:iq},focus:{Feature:rq},hover:{Feature:nq}},fq={layout:{ProjectionNode:PE,MeasureLayout:NE}},b0={current:null},DE={current:!1};function mq(){if(DE.current=!0,!!jy)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),n=()=>b0.current=t.matches;t.addListener(n),n()}else b0.current=!1}function pq(t,n,r){for(const i in n){const s=n[i],a=r[i];if(In(s))t.addValue(i,s);else if(In(a))t.addValue(i,lu(s,{owner:t}));else if(a!==s)if(t.hasValue(i)){const o=t.getValue(i);o.liveStyle===!0?o.jump(s):o.hasAnimated||o.set(s)}else{const o=t.getStaticValue(i);t.addValue(i,lu(o!==void 0?o:s,{owner:t}))}}for(const i in r)n[i]===void 0&&t.removeValue(i);return n}const HN=new WeakMap,gq=[...YC,On,Ks],xq=t=>gq.find(QC(t)),WN=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class vq{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=$y,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=xi.now();this.renderScheduledAt<p&&(this.renderScheduledAt=p,zt.render(this.render,!1,!0))};const{latestValues:d,renderState:h}=o;this.latestValues=d,this.baseTarget={...d},this.initialValues=r.initial?{...d}:{},this.renderState=h,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=wf(r),this.isVariantNode=fC(r),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(n&&n.current);const{willChange:f,...m}=this.scrapeMotionValuesFromProps(r,{},this);for(const p in m){const g=m[p];d[p]!==void 0&&In(g)&&g.set(d[p],!1)}}mount(n){this.current=n,HN.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)),DE.current||mq(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:b0.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){HN.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=eo.has(n),s=r.on("change",c=>{this.latestValues[n]=c,this.props.onUpdate&&zt.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 hl){const r=hl[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):rn()}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<WN.length;i++){const s=WN[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=pq(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=lu(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"&&(KC(s)||WC(s))?s=parseFloat(s):!xq(s)&&Ks.test(r)&&(s=iE(n,r)),this.setBaseTarget(n,In(s)?s.get():s)),In(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=Cy(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&&!In(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 qy),this.events[n].add(r)}notify(n,...r){this.events[n]&&this.events[n].notify(...r)}}class IE extends vq{constructor(){super(...arguments),this.KeyframeResolver=sE}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;In(n)&&(this.childSubscription=n.on("change",r=>{this.current&&(this.current.textContent=`${r}`)}))}}function yq(t){return window.getComputedStyle(t)}class bq extends IE{constructor(){super(...arguments),this.type="html",this.renderInstance=xC}readValueFromInstance(n,r){if(eo.has(r)){const i=Ky(r);return i&&i.default||0}else{const i=yq(n),s=(SC(r)?i.getPropertyValue(r):i[r])||0;return typeof s=="string"?s.trim():s}}measureInstanceViewportBox(n,{transformPagePoint:r}){return wE(n,r)}build(n,r,i){Py(n,r,i.transformTemplate)}scrapeMotionValuesFromProps(n,r,i){return Ay(n,r,i)}}class jq extends IE{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=rn}getBaseTargetFromProps(n,r){return n[r]}readValueFromInstance(n,r){if(eo.has(r)){const i=Ky(r);return i&&i.default||0}return r=vC.has(r)?r:Ny(r),n.getAttribute(r)}scrapeMotionValuesFromProps(n,r,i){return jC(n,r,i)}build(n,r,i){Dy(n,r,this.isSVGTag,i.transformTemplate)}renderInstance(n,r,i,s){yC(n,r,i,s)}mount(n){this.isSVGTag=Iy(n.tagName),super.mount(n)}}const wq=(t,n)=>Sy(t)?new jq(n):new bq(n,{allowProjection:t!==R.Fragment}),kq=WB({...H7,...hq,...tq,...fq},wq),Z=lB(kq);function Nq(){const{data:t=[]}=Fe({queryKey:["pageSections","AIConsultancy"],queryFn:()=>ce.entities.PageSection.filter({page_name:"AIConsultancy",active:!0},"sort_order"),initialData:[]}),n=t.find(o=>o.section_key==="hero")||{},r=t.find(o=>o.section_key==="wat_we_bieden")||{},i=t.find(o=>o.section_key==="onze_aanpak")||{},s=t.find(o=>o.section_key==="cta")||{},a={Target:Ua,Brain:y3,Briefcase:Xs};return e.jsxs("div",{className:"pt-20",children:[e.jsxs("section",{className:"relative bg-white pt-32 pb-20 overflow-hidden",children:[e.jsx("div",{className:"absolute top-0 right-0 w-[600px] h-[600px] bg-[#FAB868]/5 rounded-full blur-3xl"}),e.jsx("div",{className:"relative max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:e.jsxs("div",{className:"grid lg:grid-cols-2 gap-20 items-center",children:[e.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"max-w-2xl",children:[e.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"}),e.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&&e.jsx("div",{className:"text-[#3b3a3a] mb-12 text-xl leading-relaxed",dangerouslySetInnerHTML:{__html:n.content}}),e.jsx("div",{className:"flex flex-col sm:flex-row gap-4",children:e.jsxs(de,{to:se(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",e.jsx($e,{className:"w-5 h-5"})]})})]}),e.jsx(Z.div,{initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},transition:{delay:.3},className:"hidden lg:block",children:n.image_url&&e.jsx("img",{src:n.image_url,alt:"Strategy session",className:"w-full h-[600px] object-cover rounded-3xl shadow-2xl"})})]})})]}),e.jsx("section",{className:"py-32 bg-white",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[e.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-center mb-20",children:[e.jsx("h2",{className:"text-5xl sm:text-6xl font-bold text-[#0D0D0F] mb-6",children:r.title||"Wat we bieden"}),e.jsx("p",{className:"text-[#3b3a3a] mx-auto text-2xl max-w-2xl",children:r.subtitle||"Strategisch advies dat leidt tot resultaten"})]}),e.jsx("div",{className:"grid md:grid-cols-3 gap-12",children:(r.items||[]).map((o,c)=>{const d=a[o.icon]||Ua;return e.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:[e.jsx("div",{className:"w-16 h-16 bg-[#FAB868] rounded-full flex items-center justify-center mb-8",children:e.jsx(d,{className:"w-8 h-8 text-[#0D0D0F]"})}),e.jsx("h3",{className:"text-3xl font-bold text-[#0D0D0F] mb-4",children:o.title}),e.jsx("p",{className:"text-[#3b3a3a] text-xl",children:o.description})]},c)})})]})}),e.jsx("section",{className:"py-32 bg-[#F4F4F4]",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[e.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-center mb-20",children:[e.jsx("h2",{className:"text-5xl sm:text-6xl font-bold text-[#0D0D0F] mb-6",children:i.title||"Onze aanpak"}),e.jsx("p",{className:"text-[#626060] text-2xl",children:i.subtitle||"Een bewezen proces"})]}),e.jsx("div",{className:"grid md:grid-cols-4 gap-12",children:(i.items||[]).map((o,c)=>e.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:c*.1},className:"relative",children:[e.jsx("div",{className:"text-7xl font-bold text-[#FAB868]/20 mb-6",children:String(c+1).padStart(2,"0")}),e.jsx("h3",{className:"text-2xl font-bold text-[#0D0D0F] mb-3",children:o.title}),e.jsx("p",{className:"text-[#3b3a3a] text-lg",children:o.description})]},c))})]})}),e.jsx("section",{className:"py-32 bg-[#0D0D0F]",children:e.jsxs("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 text-center",children:[e.jsx("h2",{className:"text-5xl font-bold text-white mb-6",children:s.title||"Klaar om je AI strategie te ontwikkelen?"}),e.jsx("p",{className:"text-2xl text-[#9CA3AF] mb-12",children:s.subtitle||"Plan een vrijblijvend gesprek"}),e.jsxs(de,{to:se(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",e.jsx($e,{className:"w-5 h-5"})]})]})})]})}function _q(){return e.jsxs("div",{className:"pt-20",children:[e.jsxs("section",{className:"relative bg-white pt-32 pb-20 overflow-hidden",children:[e.jsx("div",{className:"absolute top-0 right-0 w-[600px] h-[600px] bg-[#FAB868]/5 rounded-full blur-3xl"}),e.jsx("div",{className:"relative max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:e.jsxs("div",{className:"grid lg:grid-cols-2 gap-20 items-center",children:[e.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"max-w-2xl",children:[e.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"}),e.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."}),e.jsxs("div",{className:"bg-[#F4F4F4] rounded-2xl p-6 mb-12",children:[e.jsx("h3",{className:"text-xl font-bold text-[#0D0D0F] mb-3",children:"Onze kracht?"}),e.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."})]}),e.jsxs("div",{className:"flex flex-col sm:flex-row gap-4",children:[e.jsxs(de,{to:se("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",e.jsx($e,{className:"w-5 h-5"})]}),e.jsx(de,{to:se("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"})]})]}),e.jsx(Z.div,{initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},transition:{delay:.3},className:"hidden lg:block",children:e.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"})})]})})]}),e.jsx("section",{className:"py-32 bg-[#F4F4F4]",children:e.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:e.jsxs("div",{className:"grid lg:grid-cols-2 gap-16 items-center",children:[e.jsx(Z.div,{initial:{opacity:0,x:-20},whileInView:{opacity:1,x:0},viewport:{once:!0},children:e.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"})}),e.jsxs(Z.div,{initial:{opacity:0,x:20},whileInView:{opacity:1,x:0},viewport:{once:!0},children:[e.jsx("h2",{className:"text-5xl font-bold text-[#0D0D0F] mb-6",children:"Van prototype naar productie, met hetzelfde team"}),e.jsx("p",{className:"text-2xl text-[#9CA3AF] mb-8",children:"Veel AI-trajecten stranden na een proof-of-concept. Bij ons niet."}),e.jsx("p",{className:"text-xl text-[#0D0D0F]/80 mb-8",children:"Wij werken met één team dat:"}),e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{className:"flex items-start gap-4",children:[e.jsx("div",{className:"w-8 h-8 bg-[#FAB868] rounded-full flex items-center justify-center flex-shrink-0 mt-1",children:e.jsx(Ft,{className:"w-5 h-5 text-[#0D0D0F]"})}),e.jsx("p",{className:"text-xl text-[#0D0D0F]/80",children:"snel prototypes bouwt om waarde te valideren"})]}),e.jsxs("div",{className:"flex items-start gap-4",children:[e.jsx("div",{className:"w-8 h-8 bg-[#FAB868] rounded-full flex items-center justify-center flex-shrink-0 mt-1",children:e.jsx(Ft,{className:"w-5 h-5 text-[#0D0D0F]"})}),e.jsx("p",{className:"text-xl text-[#0D0D0F]/80",children:"direct rekening houdt met architectuur, security en performance"})]}),e.jsxs("div",{className:"flex items-start gap-4",children:[e.jsx("div",{className:"w-8 h-8 bg-[#FAB868] rounded-full flex items-center justify-center flex-shrink-0 mt-1",children:e.jsx(Ft,{className:"w-5 h-5 text-[#0D0D0F]"})}),e.jsx("p",{className:"text-xl text-[#0D0D0F]/80",children:"het prototype zonder overdracht doorontwikkelt tot het definitieve product"})]})]}),e.jsx("p",{className:"text-xl text-[#0D0D0F] font-semibold mt-8",children:"Zo voorkom je technische schuld en verlies van momentum."})]})]})})}),e.jsx("section",{className:"py-32 bg-white",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[e.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-center mb-20",children:[e.jsx("h2",{className:"text-5xl sm:text-6xl font-bold text-[#0D0D0F] mb-6",children:"Sterk in integraties tussen systemen"}),e.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."})]}),e.jsxs("div",{className:"grid md:grid-cols-3 gap-8 mb-12",children:[e.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:[e.jsx("div",{className:"w-16 h-16 bg-[#FAB868] rounded-full flex items-center justify-center mx-auto mb-4",children:e.jsx(Nu,{className:"w-8 h-8 text-[#0D0D0F]"})}),e.jsx("h3",{className:"text-xl font-bold text-[#0D0D0F] mb-3",children:"ERP-, CRM- en e-commerceplatformen"})]}),e.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:[e.jsx("div",{className:"w-16 h-16 bg-[#FAB868] rounded-full flex items-center justify-center mx-auto mb-4",children:e.jsx(Zc,{className:"w-8 h-8 text-[#0D0D0F]"})}),e.jsx("h3",{className:"text-xl font-bold text-[#0D0D0F] mb-3",children:"maatwerk software en SaaS-oplossingen"})]}),e.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:[e.jsx("div",{className:"w-16 h-16 bg-[#FAB868] rounded-full flex items-center justify-center mx-auto mb-4",children:e.jsx(D4,{className:"w-8 h-8 text-[#0D0D0F]"})}),e.jsx("h3",{className:"text-xl font-bold text-[#0D0D0F] mb-3",children:"bestaande databronnen en nieuwe AI-componenten"})]})]}),e.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."})]})}),e.jsx("section",{className:"py-32 bg-[#F4F4F4]",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[e.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-center mb-20",children:[e.jsx("h2",{className:"text-5xl sm:text-6xl font-bold text-[#0D0D0F] mb-6",children:"Veelvoorkomende AI-toepassingen"}),e.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:"})]}),e.jsxs("div",{className:"space-y-8",children:[e.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:[e.jsxs("div",{className:"flex items-center gap-4 mb-6",children:[e.jsx("div",{className:"w-16 h-16 bg-[#FAB868] rounded-full flex items-center justify-center",children:e.jsx(N4,{className:"w-8 h-8 text-[#0D0D0F]"})}),e.jsx("h3",{className:"text-3xl font-bold text-[#0D0D0F]",children:"AI agents"})]}),e.jsx("p",{className:"text-xl text-[#9CA3AF]",children:"Voor het automatiseren of ondersteunen van taken en processen binnen bestaande software."})]}),e.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:[e.jsxs("div",{className:"flex items-center gap-4 mb-6",children:[e.jsx("div",{className:"w-16 h-16 bg-[#FAB868] rounded-full flex items-center justify-center",children:e.jsx(mi,{className:"w-8 h-8 text-[#0D0D0F]"})}),e.jsx("h3",{className:"text-3xl font-bold text-[#0D0D0F]",children:"AI search voor e-commerce"})]}),e.jsx("p",{className:"text-xl text-[#9CA3AF]",children:"Zoekoplossingen die beter omgaan met intentie, productdata en conversie."})]}),e.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:[e.jsxs("div",{className:"flex items-center gap-4 mb-6",children:[e.jsx("div",{className:"w-16 h-16 bg-[#FAB868] rounded-full flex items-center justify-center",children:e.jsx(D8,{className:"w-8 h-8 text-[#0D0D0F]"})}),e.jsx("h3",{className:"text-3xl font-bold text-[#0D0D0F]",children:"AI customer care"})]}),e.jsx("p",{className:"text-xl text-[#9CA3AF]",children:"Slimme klantondersteuning die context begrijpt en integreert met bestaande systemen."})]})]}),e.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."})]})}),e.jsx("section",{className:"py-32 bg-white",children:e.jsx("div",{className:"max-w-5xl mx-auto px-4 sm:px-6 lg:px-8",children:e.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-center",children:[e.jsx("h2",{className:"text-5xl sm:text-6xl font-bold text-[#0D0D0F] mb-8",children:"Gebouwd door developers, niet door buzzwords"}),e.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:"}),e.jsxs("div",{className:"grid md:grid-cols-2 gap-6 max-w-3xl mx-auto",children:[e.jsxs("div",{className:"flex items-center gap-3 text-xl text-[#0D0D0F]",children:[e.jsx(ui,{className:"w-6 h-6 text-[#FAB868]"}),"betrouwbaar is"]}),e.jsxs("div",{className:"flex items-center gap-3 text-xl text-[#0D0D0F]",children:[e.jsx(ui,{className:"w-6 h-6 text-[#FAB868]"}),"onderhoudbaar blijft"]}),e.jsxs("div",{className:"flex items-center gap-3 text-xl text-[#0D0D0F]",children:[e.jsx(ui,{className:"w-6 h-6 text-[#FAB868]"}),"goed integreert"]}),e.jsxs("div",{className:"flex items-center gap-3 text-xl text-[#0D0D0F]",children:[e.jsx(ui,{className:"w-6 h-6 text-[#FAB868]"}),"aantoonbaar resultaat oplevert"]})]}),e.jsx("p",{className:"text-3xl text-[#0D0D0F] font-bold mt-12",children:"Daar bouwen we op."})]})})}),e.jsx("section",{className:"py-32 bg-[#0D0D0F]",children:e.jsxs("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 text-center",children:[e.jsx("h2",{className:"text-5xl font-bold text-white mb-6",children:"Heb je een idee voor een AI oplossing?"}),e.jsx("p",{className:"text-2xl text-[#9CA3AF] mb-12",children:"Wij denken graag met je mee — van prototype tot productie"}),e.jsxs(de,{to:se("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",e.jsx($e,{className:"w-5 h-5"})]})]})})]})}const me=R.forwardRef(({className:t,type:n,...r},i)=>e.jsx("input",{type:n,className:Qt("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",t),ref:i,...r}));me.displayName="Input";function KN(t,n){if(typeof t=="function")return t(n);t!=null&&(t.current=n)}function RE(...t){return n=>{let r=!1;const i=t.map(s=>{const a=KN(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():KN(t[s],null)}}}}function Yt(...t){return R.useCallback(RE(...t),t)}function du(t){const n=Aq(t),r=R.forwardRef((i,s)=>{const{children:a,...o}=i,c=R.Children.toArray(a),d=c.find(Eq);if(d){const h=d.props.children,f=c.map(m=>m===d?R.Children.count(h)>1?R.Children.only(null):R.isValidElement(h)?h.props.children:null:m);return e.jsx(n,{...o,ref:s,children:R.isValidElement(h)?R.cloneElement(h,void 0,f):null})}return e.jsx(n,{...o,ref:s,children:a})});return r.displayName=`${t}.Slot`,r}var Sq=du("Slot");function Aq(t){const n=R.forwardRef((r,i)=>{const{children:s,...a}=r;if(R.isValidElement(s)){const o=Oq(s),c=Tq(a,s.props);return s.type!==R.Fragment&&(c.ref=i?RE(i,o):o),R.cloneElement(s,c)}return R.Children.count(s)>1?R.Children.only(null):null});return n.displayName=`${t}.SlotClone`,n}var Cq=Symbol("radix.slottable");function Eq(t){return R.isValidElement(t)&&typeof t.type=="function"&&"__radixId"in t.type&&t.type.__radixId===Cq}function Tq(t,n){const r={...n};for(const i in n){const s=t[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{...t,...r}}function Oq(t){var i,s;let n=(i=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:i.get,r=n&&"isReactWarning"in n&&n.isReactWarning;return r?t.ref:(n=(s=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:s.get,r=n&&"isReactWarning"in n&&n.isReactWarning,r?t.props.ref:t.props.ref||t.ref)}const Pq=w4("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"}}),ae=R.forwardRef(({className:t,variant:n,size:r,asChild:i=!1,...s},a)=>{const o=i?Sq:"button";return e.jsx(o,{className:Qt(Pq({variant:n,size:r,className:t})),ref:a,...s})});ae.displayName="Button";function Dq(){var I;const[t,n]=R.useState(""),[r,i]=R.useState(""),[s,a]=R.useState(""),[o,c]=R.useState("input"),[d,h]=R.useState(!1),[f,m]=R.useState(!1),[p,g]=R.useState(null),[b,j]=R.useState(null),[v,x]=R.useState(null),[k,w]=R.useState(null),[N,A]=R.useState({name:"",email:""}),[S,E]=R.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"}];R.useEffect(()=>{const q=new URLSearchParams(window.location.search).get("report_id");q&&B(q)},[]);const B=async z=>{var q,U;m(!0),w(null);try{const{data:Q}=await ce.functions.invoke("getImpactReport",{submission_id:z});Q.success&&Q.report?(j({report:Q.report,metadata:Q.metadata}),x(z),c("results")):w(Q.error||"Rapport niet gevonden")}catch(Q){console.error("Error loading shared report:",Q),w(((U=(q=Q.response)==null?void 0:q.data)==null?void 0:U.error)||Q.message||"Kon rapport niet laden. Controleer de link en probeer opnieuw.")}finally{m(!1)}},F=async z=>{var q,U,Q,H;if(z.preventDefault(),!t){w("Website URL is verplicht");return}h(!0),w(null),c("analyzing");try{const Y=`https://${t.replace(/^(https?:\/\/)?(www\.)?/,"").replace(/\/$/,"")}`;console.log("Calling generatePreliminaryAnalysis with:",{website_url:Y,company_name:r,industry:s||void 0});const{data:P}=await ce.functions.invoke("generatePreliminaryAnalysis",{website_url:Y,company_name:r,industry:s||void 0});console.log("Response from generatePreliminaryAnalysis:",P),P.success&&P.preliminary_data?(g(P.preliminary_data),c("questionnaire")):(console.error("Error from function:",P),w(P.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=(q=K.response)==null?void 0:q.data)==null?void 0:U.error)||((H=(Q=K.response)==null?void 0:Q.data)==null?void 0:H.details)||K.message||"Kon de voorlopige analyse niet uitvoeren. Probeer het opnieuw."),c("input")}finally{h(!1)}},D=async()=>{var z,q,U;if(!N.email||!N.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}h(!0),w(null);try{const H=`https://${t.replace(/^(https?:\/\/)?(www\.)?/,"").replace(/\/$/,"")}`,K=await ce.functions.invoke("createImpactScanRequest",{website_url:H,company_name:r,industry:s||void 0,user_email:N.email,user_name:N.name});K.data&&K.data.success?(c("submitted"),window.scrollTo({top:0,behavior:"smooth"})):(w(((z=K.data)==null?void 0:z.error)||"Er ging iets mis bij het aanmaken van de aanvraag"),window.scrollTo({top:0,behavior:"smooth"}))}catch(Q){console.error("Error submitting request:",Q),w(((U=(q=Q.response)==null?void 0:q.data)==null?void 0:U.error)||Q.message||"Kon de aanvraag niet indienen. Probeer het opnieuw.")}finally{h(!1)}};if(f)return e.jsx("div",{className:"pt-20 min-h-screen bg-gradient-to-b from-blue-50 to-white",children:e.jsx("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 py-32 text-center",children:e.jsxs(Z.div,{initial:{opacity:0,scale:.9},animate:{opacity:1,scale:1},children:[e.jsx("div",{className:"w-20 h-20 bg-blue-100 rounded-full flex items-center justify-center mx-auto mb-6",children:e.jsxs("svg",{className:"animate-spin w-10 h-10 text-blue-600",viewBox:"0 0 24 24",children:[e.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4",fill:"none"}),e.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4z"})]})}),e.jsx("h1",{className:"text-3xl font-bold text-gray-900 mb-4",children:"Rapport aan het laden..."})]})})});if(o==="analyzing")return e.jsx("div",{className:"pt-20 min-h-screen bg-gradient-to-b from-blue-50 to-white",children:e.jsx("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 py-32 text-center",children:e.jsxs(Z.div,{initial:{opacity:0,scale:.9},animate:{opacity:1,scale:1},children:[e.jsx("div",{className:"w-20 h-20 bg-blue-100 rounded-full flex items-center justify-center mx-auto mb-6",children:e.jsxs("svg",{className:"animate-spin w-10 h-10 text-blue-600",viewBox:"0 0 24 24",children:[e.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4",fill:"none"}),e.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4z"})]})}),e.jsx("h1",{className:"text-3xl font-bold text-gray-900 mb-4",children:"Je website aan het analyseren..."}),e.jsx("p",{className:"text-xl text-gray-600",children:"Even geduld, we halen informatie op over je bedrijf"})]})})});if(o==="submitted")return e.jsx("div",{className:"pt-20 min-h-screen bg-gradient-to-b from-green-50 to-white",children:e.jsx("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 py-32 text-center",children:e.jsxs(Z.div,{initial:{opacity:0,scale:.9},animate:{opacity:1,scale:1},children:[e.jsx("div",{className:"w-20 h-20 bg-green-100 rounded-full flex items-center justify-center mx-auto mb-6",children:e.jsx(gt,{className:"w-10 h-10 text-green-600"})}),e.jsx("h1",{className:"text-3xl font-bold text-gray-900 mb-4",children:"Aanvraag ontvangen!"}),e.jsxs("p",{className:"text-xl text-gray-600 mb-8",children:["Je ontvangt het AI Impact Rapport binnen enkele minuten per email op ",e.jsx("strong",{children:N.email})]}),e.jsxs("div",{className:"bg-white rounded-2xl p-6 max-w-md mx-auto border border-gray-100 mb-8",children:[e.jsx("p",{className:"text-sm text-gray-600 mb-4",children:"Het rapport wordt momenteel gegenereerd. Dit kan enkele minuten duren omdat we:"}),e.jsxs("ul",{className:"text-left space-y-2 text-sm text-gray-700",children:[e.jsxs("li",{className:"flex items-start gap-2",children:[e.jsx(gt,{className:"w-4 h-4 text-green-500 mt-0.5 flex-shrink-0"}),e.jsx("span",{children:"Je website grondig analyseren"})]}),e.jsxs("li",{className:"flex items-start gap-2",children:[e.jsx(gt,{className:"w-4 h-4 text-green-500 mt-0.5 flex-shrink-0"}),e.jsx("span",{children:"AI-kansen identificeren"})]}),e.jsxs("li",{className:"flex items-start gap-2",children:[e.jsx(gt,{className:"w-4 h-4 text-green-500 mt-0.5 flex-shrink-0"}),e.jsx("span",{children:"Gepersonaliseerde aanbevelingen maken"})]})]})]}),e.jsx(ae,{onClick:()=>window.location.href=se("Home"),className:"bg-gray-900 text-white hover:bg-gray-800",children:"Terug naar home"})]})})});if(k)return e.jsx("div",{className:"pt-20 min-h-screen bg-gradient-to-b from-red-50 to-white",children:e.jsx("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 py-32 text-center",children:e.jsxs(Z.div,{initial:{opacity:0,scale:.9},animate:{opacity:1,scale:1},children:[e.jsx("div",{className:"w-20 h-20 bg-red-100 rounded-full flex items-center justify-center mx-auto mb-6",children:e.jsx(fi,{className:"w-10 h-10 text-red-600"})}),e.jsx("h1",{className:"text-3xl font-bold text-gray-900 mb-4",children:"Er ging iets mis"}),e.jsx("p",{className:"text-xl text-gray-600 mb-8",children:k}),e.jsx(ae,{onClick:()=>{w(null),n(""),window.location.href=se("AIImpactRapport")},className:"bg-gray-900 text-white hover:bg-gray-800",children:"Probeer opnieuw"})]})})});if(o==="questionnaire"&&p)return e.jsx("div",{className:"pt-20 min-h-screen bg-gradient-to-b from-gray-50 to-white",children:e.jsx("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 py-12",children:e.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"mb-12",children:[e.jsxs("div",{className:"text-center mb-8",children:[e.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:[e.jsx(At,{className:"w-4 h-4"}),"Stap 2 van 2"]}),e.jsx("h1",{className:"text-4xl font-bold text-gray-900 mb-4",children:"Klopt onze aanname?"}),e.jsx("p",{className:"text-xl text-gray-600",children:"We hebben een eerste analyse gedaan. Help ons deze te verbeteren met enkele vragen."})]}),e.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:[e.jsx("h2",{className:"text-2xl font-bold text-gray-900 mb-6",children:"Onze voorlopige bevindingen"}),e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{children:[e.jsx("p",{className:"text-sm text-gray-500 mb-2",children:"Bedrijf"}),e.jsx("p",{className:"text-lg font-semibold text-gray-900",children:p.company_name})]}),e.jsxs("div",{children:[e.jsx("p",{className:"text-sm text-gray-500 mb-2",children:"Wat jullie doen"}),e.jsx("p",{className:"text-gray-700",children:p.activities})]}),e.jsxs("div",{children:[e.jsx("p",{className:"text-sm text-gray-500 mb-2",children:"Mogelijke uitdagingen die we zien"}),e.jsx("ul",{className:"list-disc list-inside space-y-2 text-gray-700",children:(I=p.potential_challenges)==null?void 0:I.map((z,q)=>e.jsx("li",{children:z},q))})]})]})]}),e.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:[e.jsx("h2",{className:"text-2xl font-bold text-gray-900 mb-6",children:"Help ons je beter te begrijpen"}),e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-3",children:"Klopt onze aanname over wat jullie bedrijf doet?"}),e.jsxs("div",{className:"flex gap-4",children:[e.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"}),e.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&&e.jsxs(Z.div,{initial:{opacity:0,height:0},animate:{opacity:1,height:"auto"},children:[e.jsxs("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:["Wat doet jullie bedrijf eigenlijk? ",e.jsx("span",{className:"text-red-600 font-bold text-lg",children:"*"})]}),e.jsx("p",{className:"text-xs text-gray-500 mb-2",children:"(Verplicht veld)"}),e.jsx("textarea",{value:S.actual_activities,onChange:z=>E({...S,actual_activities:z.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})]}),e.jsxs("div",{children:[e.jsxs("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:["Wat zijn jullie grootste pijnpunten of uitdagingen? ",e.jsx("span",{className:"text-red-600 font-bold text-lg",children:"*"})]}),e.jsx("p",{className:"text-xs text-gray-500 mb-2",children:"(Verplicht veld)"}),e.jsx("textarea",{value:S.pain_points,onChange:z=>E({...S,pain_points:z.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})]}),e.jsxs("div",{children:[e.jsxs("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:["Wat doet de concurrentie beter dan jullie? ",e.jsx("span",{className:"text-red-600 font-bold text-lg",children:"*"})]}),e.jsx("p",{className:"text-xs text-gray-500 mb-2",children:"(Verplicht veld)"}),e.jsx("textarea",{value:S.competitor_advantages,onChange:z=>E({...S,competitor_advantages:z.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})]}),e.jsxs("div",{children:[e.jsxs("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:["Hebben jullie behoefte aan strategische ontwikkeling met AI? ",e.jsx("span",{className:"text-red-600 font-bold text-lg",children:"*"})]}),e.jsx("p",{className:"text-xs text-gray-500 mb-2",children:"(Verplicht veld)"}),e.jsxs("select",{value:S.strategic_development_need,onChange:z=>E({...S,strategic_development_need:z.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:[e.jsx("option",{value:"",children:"Selecteer..."}),e.jsx("option",{value:"urgent",children:"Ja, dringend - we lopen achter"}),e.jsx("option",{value:"exploring",children:"Ja, we zijn aan het verkennen"}),e.jsx("option",{value:"some",children:"Een beetje - we weten niet goed waar te beginnen"}),e.jsx("option",{value:"no",children:"Nee, nog niet - we willen eerst meer weten"})]})]}),e.jsxs("div",{children:[e.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? ",e.jsx("span",{className:"text-red-600 font-bold text-lg",children:"*"})]}),e.jsx("p",{className:"text-xs text-gray-500 mb-2",children:"(Verplicht veld)"}),e.jsxs("select",{value:S.employee_training_level,onChange:z=>E({...S,employee_training_level:z.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:[e.jsx("option",{value:"",children:"Selecteer..."}),e.jsx("option",{value:"expert",children:"Goed - we hebben al AI training gehad"}),e.jsx("option",{value:"basic",children:"Basis - iedereen weet wat AI is"}),e.jsx("option",{value:"limited",children:"Beperkt - alleen management weet iets van AI"}),e.jsx("option",{value:"none",children:"Nauwelijks - we weten weinig over AI"})]})]}),e.jsxs("div",{className:"border-t border-gray-200 pt-6",children:[e.jsx("h3",{className:"text-lg font-bold text-gray-900 mb-4",children:"Ontvang je rapport"}),e.jsxs("div",{className:"grid sm:grid-cols-2 gap-4 mb-6",children:[e.jsxs("div",{children:[e.jsxs("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:["Naam ",e.jsx("span",{className:"text-red-600 font-bold text-lg",children:"*"})]}),e.jsx("p",{className:"text-xs text-gray-500 mb-2",children:"(Verplicht veld)"}),e.jsx(me,{type:"text",placeholder:"Je naam",value:N.name,onChange:z=>A({...N,name:z.target.value}),className:N.name?"":"border-red-300 bg-red-50",required:!0})]}),e.jsxs("div",{children:[e.jsxs("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:["Email ",e.jsx("span",{className:"text-red-600 font-bold text-lg",children:"*"})]}),e.jsx("p",{className:"text-xs text-gray-500 mb-2",children:"(Verplicht veld)"}),e.jsx(me,{type:"email",placeholder:"je@email.nl",value:N.email,onChange:z=>A({...N,email:z.target.value}),className:N.email?"":"border-red-300 bg-red-50",required:!0})]})]})]}),e.jsxs("div",{className:"flex gap-4 pt-4",children:[e.jsx(ae,{type:"button",variant:"outline",onClick:()=>c("input"),className:"flex-1",children:"Vorige"}),e.jsx(ae,{type:"button",onClick:D,disabled:d||!N.name||!N.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:e.jsxs("span",{className:"flex items-center gap-2 justify-center",children:[e.jsx(At,{className:"w-5 h-5"}),d?"Indienen...":"Genereer mijn rapport",e.jsx($e,{className:"w-5 h-5"})]})})]})]})]})]})})});if(o==="results"&&b){const{report:z,metadata:q}=b,U=z.company_profile||{},Q=z.quick_scan||{},H=z.opportunities||[],K=z.productivity_forecast||{},Y=z.action_plan||{};return e.jsx("div",{className:"pt-20 min-h-screen bg-gradient-to-b from-gray-50 to-white",children:e.jsxs("div",{className:"max-w-5xl mx-auto px-4 sm:px-6 lg:px-8 py-12",children:[e.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"text-center mb-12",children:[e.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:[e.jsx(At,{className:"w-4 h-4"}),"48-7 Impact Rapport"]}),e.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"]}),e.jsxs("p",{className:"text-xl text-gray-600",children:["Gegenereerd op ",new Date(q.generated_at).toLocaleDateString("nl-NL",{day:"numeric",month:"long",year:"numeric"})]})]}),U&&e.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:[e.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[e.jsx(Ya,{className:"w-6 h-6 text-blue-600"}),e.jsx("h2",{className:"text-2xl font-bold text-gray-900",children:"Bedrijfsprofiel"})]}),e.jsxs("div",{className:"grid md:grid-cols-1 gap-6",children:[e.jsxs("div",{children:[e.jsx("p",{className:"text-sm text-gray-500 mb-1",children:"Sector"}),e.jsx("p",{className:"font-semibold text-gray-900",children:U.sector})]}),e.jsxs("div",{children:[e.jsx("p",{className:"text-sm text-gray-500 mb-1",children:"Kernactiviteiten"}),e.jsx("p",{className:"text-gray-700",children:U.core_activities})]})]})]}),Q&&e.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:[e.jsx("h2",{className:"text-2xl font-bold text-gray-900 mb-4",children:"De Quick Scan"}),e.jsxs("p",{className:"text-lg text-gray-700 mb-6 leading-relaxed",children:["Wij hebben de processen van ",e.jsx("strong",{children:U.name})," geanalyseerd.",Q.focus&&` ${Q.focus}`]}),Q.usp&&e.jsxs("div",{className:"bg-white/50 rounded-xl p-4 mb-4",children:[e.jsx("p",{className:"text-sm text-gray-600 mb-1",children:"Unique Selling Points"}),e.jsx("p",{className:"text-gray-800",children:Q.usp})]}),Q.time_intensive_processes&&e.jsxs("div",{className:"bg-white/50 rounded-xl p-4",children:[e.jsx("p",{className:"text-sm text-gray-600 mb-1",children:"Tijd-intensieve processen"}),e.jsx("p",{className:"text-gray-800",children:Q.time_intensive_processes})]})]}),H&&H.length>0&&e.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.3},className:"mb-8",children:[e.jsxs("div",{className:"text-center mb-8",children:[e.jsx("h2",{className:"text-3xl font-bold text-gray-900 mb-2",children:"AI Kansen"}),e.jsxs("p",{className:"text-gray-600",children:["Specifiek voor ",U.name]})]}),e.jsx("div",{className:"space-y-6",children:H.map((P,T)=>e.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:e.jsxs("div",{className:"flex items-start gap-4",children:[e.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}),e.jsxs("div",{className:"flex-1",children:[e.jsx("h3",{className:"text-2xl font-bold text-gray-900 mb-3",children:P.title}),e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{children:[e.jsx("p",{className:"text-sm font-semibold text-red-600 mb-1",children:"❌ Probleem"}),e.jsx("p",{className:"text-gray-700",children:P.problem})]}),e.jsxs("div",{children:[e.jsx("p",{className:"text-sm font-semibold text-blue-600 mb-1",children:"✅ Oplossing"}),e.jsx("p",{className:"text-gray-700",children:P.solution})]}),P.relevance&&e.jsxs("div",{className:"bg-blue-50 p-3 rounded-lg",children:[e.jsx("p",{className:"text-sm font-semibold text-blue-900 mb-1",children:"💡 Waarom relevant"}),e.jsx("p",{className:"text-sm text-blue-800",children:P.relevance})]}),P.implementation_steps&&P.implementation_steps.length>0&&e.jsxs("div",{className:"bg-purple-50 p-3 rounded-lg",children:[e.jsx("p",{className:"text-sm font-semibold text-purple-900 mb-2",children:"🔧 Implementatiestappen"}),e.jsx("ol",{className:"text-sm text-purple-800 space-y-1 list-decimal list-inside",children:P.implementation_steps.map((V,L)=>e.jsx("li",{children:V},L))})]}),P.data_privacy&&e.jsxs("div",{className:"bg-amber-50 p-3 rounded-lg",children:[e.jsx("p",{className:"text-sm font-semibold text-amber-900 mb-1",children:"🔒 Data & Privacy"}),e.jsx("p",{className:"text-sm text-amber-800",children:P.data_privacy})]}),e.jsx("div",{className:"grid sm:grid-cols-2 gap-4 pt-4 border-t border-gray-100",children:e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(Ki,{className:"w-5 h-5 text-green-600"}),e.jsxs("div",{children:[e.jsx("p",{className:"text-sm text-gray-600",children:"Winst"}),e.jsx("p",{className:"font-semibold text-gray-900",children:P.benefit})]})]})})]})]})]})},T))})]}),K&&e.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:[e.jsx("h2",{className:"text-2xl font-bold mb-6",children:"De 48-7 Productiviteitsprognose"}),e.jsxs("div",{className:"grid md:grid-cols-2 gap-8 mb-6",children:[e.jsxs("div",{className:"bg-white/10 backdrop-blur-sm rounded-xl p-6",children:[e.jsx("p",{className:"text-green-100 mb-2",children:"Huidige output"}),e.jsxs("p",{className:"text-5xl font-bold",children:[K.current||100,"%"]})]}),e.jsxs("div",{className:"bg-white/20 backdrop-blur-sm rounded-xl p-6 border-2 border-white/30",children:[e.jsx("p",{className:"text-green-100 mb-2",children:"Output met 48-7 AI-integratie"}),e.jsxs("p",{className:"text-5xl font-bold",children:[K.with_ai||185,"%"]})]})]}),K.drivers&&K.drivers.length>0&&e.jsxs("div",{children:[e.jsx("p",{className:"font-semibold mb-3",children:"Belangrijkste drivers:"}),e.jsx("ul",{className:"space-y-2",children:K.drivers.map((P,T)=>e.jsxs("li",{className:"flex items-start gap-2",children:[e.jsx(gt,{className:"w-5 h-5 mt-0.5 flex-shrink-0"}),e.jsx("span",{children:P})]},T))})]})]}),z.innovative_idea&&e.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:[e.jsxs("div",{className:"absolute inset-0 opacity-10",children:[e.jsx("div",{className:"absolute top-0 right-0 w-64 h-64 bg-white rounded-full blur-3xl"}),e.jsx("div",{className:"absolute bottom-0 left-0 w-64 h-64 bg-white rounded-full blur-3xl"})]}),e.jsxs("div",{className:"relative z-10",children:[e.jsxs("div",{className:"flex items-start gap-4 mb-6",children:[e.jsx("div",{className:"w-14 h-14 bg-white/20 backdrop-blur-sm rounded-2xl flex items-center justify-center flex-shrink-0",children:e.jsx(Wi,{className:"w-7 h-7 text-white"})}),e.jsxs("div",{children:[e.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:[e.jsx(At,{className:"w-4 h-4"}),"Innovatief AI-Idee"]}),e.jsx("h2",{className:"text-3xl font-bold",children:z.innovative_idea.title})]})]}),e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{className:"bg-white/10 backdrop-blur-sm rounded-xl p-6",children:[e.jsx("h3",{className:"font-bold text-lg mb-2",children:"💡 Hoe het werkt"}),e.jsx("p",{className:"text-white/90 leading-relaxed",children:z.innovative_idea.description})]}),e.jsxs("div",{className:"grid md:grid-cols-2 gap-4",children:[e.jsxs("div",{className:"bg-white/10 backdrop-blur-sm rounded-xl p-5",children:[e.jsx("h3",{className:"font-bold mb-2",children:"🎯 Onderscheidend vermogen"}),e.jsx("p",{className:"text-white/90 text-sm",children:z.innovative_idea.unique_value})]}),e.jsxs("div",{className:"bg-white/10 backdrop-blur-sm rounded-xl p-5",children:[e.jsx("h3",{className:"font-bold mb-2",children:"📈 Impact"}),e.jsx("p",{className:"text-white/90 text-sm",children:z.innovative_idea.impact})]})]}),e.jsxs("div",{className:"bg-white/10 backdrop-blur-sm rounded-xl p-5",children:[e.jsx("h3",{className:"font-bold mb-2",children:"🔧 Implementatie"}),e.jsx("p",{className:"text-white/90 text-sm",children:z.innovative_idea.implementation})]}),e.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:[e.jsxs("h3",{className:"font-bold mb-2 flex items-center gap-2",children:[e.jsx(ui,{className:"w-5 h-5"}),"Quick Win (2-4 weken)"]}),e.jsx("p",{className:"text-white/90",children:z.innovative_idea.quick_win})]})]})]})]}),z.training_recommendations&&z.training_recommendations.length>0&&e.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:[e.jsxs("div",{className:"flex items-center gap-3 mb-6",children:[e.jsx("div",{className:"w-12 h-12 bg-purple-100 rounded-xl flex items-center justify-center",children:e.jsx(pr,{className:"w-6 h-6 text-purple-600"})}),e.jsx("h2",{className:"text-2xl font-bold text-gray-900",children:"Aanbevolen Trainingen"})]}),e.jsx("div",{className:"space-y-4",children:z.training_recommendations.map((P,T)=>e.jsxs("div",{className:"p-6 bg-purple-50 rounded-xl border-2 border-purple-100",children:[e.jsxs("div",{className:"flex items-start justify-between mb-3",children:[e.jsxs("div",{className:"flex items-start gap-3",children:[e.jsx("div",{className:"w-8 h-8 bg-purple-600 rounded-lg flex items-center justify-center flex-shrink-0 mt-0.5",children:e.jsx("span",{className:"text-white font-bold text-sm",children:T+1})}),e.jsxs("div",{children:[e.jsx("h3",{className:"font-bold text-gray-900 text-lg mb-1",children:P.training_name}),P.target_audience&&e.jsxs("p",{className:"text-sm text-purple-700 font-medium",children:["Doelgroep: ",P.target_audience]})]})]}),e.jsx(de,{to:se("Contact")+`?training=${encodeURIComponent(P.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"})]}),P.learning_goals&&e.jsxs("div",{className:"mb-3",children:[e.jsx("p",{className:"text-sm font-medium text-gray-700 mb-1",children:"Leerdoelen:"}),e.jsx("p",{className:"text-sm text-gray-600",children:P.learning_goals})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsxs("div",{children:[e.jsx("p",{className:"text-sm font-medium text-gray-700",children:"Waarom relevant:"}),e.jsx("p",{className:"text-sm text-gray-600",children:P.reason})]}),P.relevance_to_opportunities&&e.jsxs("div",{children:[e.jsx("p",{className:"text-sm font-medium text-gray-700",children:"Link met AI-kansen:"}),e.jsx("p",{className:"text-sm text-gray-600",children:P.relevance_to_opportunities})]}),P.compliance_benefit&&e.jsxs("div",{className:"bg-blue-50 p-2 rounded",children:[e.jsx("p",{className:"text-sm font-medium text-blue-900",children:"Compliance voordeel:"}),e.jsx("p",{className:"text-sm text-blue-800",children:P.compliance_benefit})]})]})]},T))})]}),Y&&e.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:[e.jsxs("div",{className:"flex items-center gap-3 mb-6",children:[e.jsx("div",{className:"w-12 h-12 bg-amber-100 rounded-xl flex items-center justify-center",children:e.jsx(Ua,{className:"w-6 h-6 text-amber-600"})}),e.jsx("h2",{className:"text-2xl font-bold text-gray-900",children:"Direct Actieplan"})]}),e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{children:[e.jsx("p",{className:"text-sm text-gray-600 mb-2",children:"Hoogste prioriteit"}),e.jsx("p",{className:"text-lg font-semibold text-gray-900",children:Y.priority_opportunity})]}),e.jsxs("div",{children:[e.jsx("p",{className:"text-sm text-gray-600 mb-2",children:"Eerste stap"}),e.jsx("p",{className:"text-gray-700",children:Y.first_step})]})]})]}),e.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:1},className:"space-y-6",children:[e.jsxs("div",{className:"bg-gradient-to-r from-blue-600 to-indigo-600 rounded-2xl p-8 text-white text-center",children:[e.jsx("h2",{className:"text-2xl font-bold mb-2",children:"Wil je dit rapport op maat?"}),e.jsx("p",{className:"text-blue-100 mb-6 text-lg",children:"Plan een gesprek en ontvang een uitgebreide analyse voor jouw bedrijf"}),e.jsxs(de,{to:se("Contact"),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:[e.jsx(Hr,{className:"w-6 h-6"}),"Plan een gesprek",e.jsx($e,{className:"w-6 h-6"})]})]}),e.jsxs("div",{className:"grid md:grid-cols-2 gap-6",children:[e.jsxs("div",{className:"bg-gray-900 rounded-2xl p-6 text-white",children:[e.jsx("h3",{className:"text-xl font-bold mb-2",children:"Directe Toelichting"}),e.jsx("p",{className:"text-gray-300 mb-4",children:"Bespreek binnen 15 minuten de mogelijkheden voor jouw bedrijf"}),e.jsxs(de,{to:se("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:[e.jsx(Hr,{className:"w-5 h-5"}),"Plan een gesprek"]})]}),e.jsxs("div",{className:"bg-purple-600 rounded-2xl p-6 text-white",children:[e.jsx("h3",{className:"text-xl font-bold mb-2",children:"EU AI Act Check"}),e.jsx("p",{className:"text-purple-100 mb-4",children:"Ontdek welke compliance-eisen gelden voor jouw bedrijf"}),e.jsxs(de,{to:se("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:[e.jsx(Vn,{className:"w-5 h-5"}),"Start AI Act Check"]})]})]})]})]})})}return e.jsx("div",{className:"pt-20 min-h-screen bg-gradient-to-b from-blue-50 to-white",children:e.jsxs("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 py-20",children:[e.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"text-center mb-12",children:[e.jsxs("h1",{className:"text-5xl sm:text-6xl lg:text-7xl font-bold text-[#0D0D0F] mb-8",children:["Ontvang gratis 48-7 ",e.jsx("br",{}),"AI Impact Rapport"]}),e.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"})]}),e.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:e.jsxs("form",{onSubmit:F,className:"space-y-6",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Website URL *"}),e.jsx(me,{type:"text",placeholder:"jouwbedrijf.nl",value:t,onChange:z=>n(z.target.value),required:!0,className:"text-lg py-6"}),e.jsx("p",{className:"text-sm text-gray-500 mt-1",children:"Vul alleen het domein in, bijv. bedrijf.nl (https:// wordt automatisch toegevoegd)"})]}),e.jsxs("div",{className:"grid sm:grid-cols-2 gap-6",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Bedrijfsnaam (optioneel)"}),e.jsx(me,{type:"text",placeholder:"Je Bedrijf BV",value:r,onChange:z=>i(z.target.value)})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Industrie (optioneel)"}),e.jsx("select",{value:s,onChange:z=>a(z.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(z=>e.jsx("option",{value:z.value,children:z.label},z.value))})]})]}),e.jsx(ae,{type:"submit",disabled:d,className:"w-full py-6 bg-[#FAB868] hover:bg-[#E5A04D] text-[#0D0D0F] font-bold text-lg",children:e.jsxs("span",{className:"flex items-center gap-2 justify-center",children:[e.jsx(At,{className:"w-5 h-5"}),d?"Analyseren...":"Start Analyse",e.jsx($e,{className:"w-5 h-5"})]})}),e.jsx("p",{className:"text-xs text-gray-500 text-center",children:"✓ 100% gratis • ✓ Geen verplichtingen • ✓ Email pas in volgende stap"})]})})]})})}const wc=[{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}]}],Iq=t=>t.reactief_werken>=1||t.tool_fragmentatie>=1||t.human_error>=1?"Chaos":t.handmatige_overdracht>=1||t.single_source_of_truth_missing>=1||t.rapportage_handwerk>=1?"Handmatig":t.decision_latency>=1||t.data_versnippering>=1||t.schaalbare_knelpunten>=1?"Groeiend":t.gedeeltelijke_integratie>=1||t.optimalisatie_drang>=1||t.leverage_ambitie>=1?"Automation-ready":t.ai_operationeel>=1||t.stabiele_architectuur>=1||t.schaalbaar_proces>=1?"AI-native":"Groeiend",Rq={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 Fq(){const[t,n]=R.useState(0),[r,i]=R.useState([]),[s,a]=R.useState(null),[o,c]=R.useState(!1),d=wc[t],h=(t+1)/wc.length*100,f=p=>{const g=d.options[p];i([...r,{questionId:d.id,option:g}]),t<wc.length-1?setTimeout(()=>n(t+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 v=Iq(g),x=Object.entries(g).map(([E,C])=>({signal:E,count:C})).sort((E,C)=>C.count-E.count).slice(0,3),k=Object.entries(b).sort((E,C)=>C[1]-E[1])[0][0],w=(S=x[0])==null?void 0:S.signal,N=Rq[w]||"Procesoptimalisatie + automation",A={level:v,top_signals:x.map(E=>E.signal),dominant_theme:k,suggested_intervention:N,peer_context:"MKB-bedrijven met vergelijkbare omvang"};try{const E=await ce.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:v,scanProfile:A,llmOutput:E};a(C);try{await ce.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:v,scanProfile:A,llmOutput:{onderschatting:`Je zit in de "${v}" fase. De grootste bottleneck zit in ${k}.`,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:N,deelbare_uitspraak:`${v}: Te veel tijd in ${k}`}};a(C);try{await ce.functions.invoke("submitAIQuiz",C)}catch(B){console.error("Failed to save quiz submission:",B)}}c(!1)};if(o)return e.jsx("div",{className:"pt-20 min-h-screen bg-gradient-to-b from-blue-50 to-white",children:e.jsx("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 py-32 text-center",children:e.jsxs(Z.div,{initial:{opacity:0,scale:.9},animate:{opacity:1,scale:1},children:[e.jsx("div",{className:"w-20 h-20 bg-blue-100 rounded-full flex items-center justify-center mx-auto mb-6",children:e.jsxs("svg",{className:"animate-spin w-10 h-10 text-blue-600",viewBox:"0 0 24 24",children:[e.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4",fill:"none"}),e.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4z"})]})}),e.jsx("h1",{className:"text-3xl font-bold text-gray-900 mb-4",children:"We analyseren je antwoorden..."}),e.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 e.jsx("div",{className:"pt-20 min-h-screen bg-gradient-to-b from-gray-50 to-white",children:e.jsxs("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 py-12",children:[e.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"text-center mb-12",children:[e.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:[e.jsx(At,{className:"w-5 h-5"}),"Je niveau: ",p]}),e.jsx("h1",{className:"text-4xl font-bold text-gray-900 mb-4",children:b.deelbare_uitspraak})]}),e.jsxs("div",{className:"space-y-6 mb-8",children:[e.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:[e.jsxs("div",{className:"flex items-start gap-3 mb-4",children:[e.jsx(Ho,{className:"w-6 h-6 text-red-600 flex-shrink-0 mt-1"}),e.jsx("h2",{className:"text-2xl font-bold text-gray-900",children:"Wat jullie waarschijnlijk onderschatten"})]}),e.jsx("p",{className:"text-lg text-gray-700 leading-relaxed",children:b.onderschatting})]}),e.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:[e.jsxs("div",{className:"flex items-start gap-3 mb-4",children:[e.jsx(Ki,{className:"w-6 h-6 text-orange-600 flex-shrink-0 mt-1"}),e.jsx("h2",{className:"text-2xl font-bold text-gray-900",children:"Wat dit jullie nu echt kost"})]}),e.jsx("p",{className:"text-lg text-gray-700 leading-relaxed",children:b.kosten})]}),e.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:[e.jsx("h2",{className:"text-2xl font-bold text-gray-900 mb-4",children:"Waarom dit bij anderen al anders is"}),e.jsx("p",{className:"text-lg text-gray-700 leading-relaxed",children:b.peers})]}),e.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:[e.jsx("h2",{className:"text-2xl font-bold mb-4",children:"Meest logische eerste ingreep"}),e.jsx("p",{className:"text-xl leading-relaxed",children:b.eerste_ingreep})]})]}),e.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:[e.jsxs("p",{className:"text-gray-700 mb-4 font-medium",children:['"',b.deelbare_uitspraak,'"']}),e.jsxs(ae,{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:[e.jsx(ty,{className:"w-5 h-5 mr-2"}),"Deel je resultaat"]})]}),e.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:[e.jsx("h3",{className:"text-2xl font-bold mb-3",children:"Krijg je volledig Impact Rapport"}),e.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.']}),e.jsxs(de,{to:se("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:[e.jsx(At,{className:"w-6 h-6"}),"Genereer mijn Impact Rapport",e.jsx($e,{className:"w-6 h-6"})]})]}),e.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:[e.jsxs(de,{to:se("Contact")+`?ref=quiz&level=${encodeURIComponent(p)}`,className:"bg-gray-900 rounded-2xl p-6 text-white hover:shadow-xl transition-all",children:[e.jsx("h3",{className:"text-xl font-bold mb-2",children:"15-minuten Consult"}),e.jsx("p",{className:"text-gray-300 mb-4",children:"Bespreek je specifieke situatie en krijg direct advies voor de eerste stappen."}),e.jsxs("div",{className:"inline-flex items-center gap-2 font-semibold",children:[e.jsx(Hr,{className:"w-5 h-5"}),"Plan een gesprek"]})]}),e.jsxs(de,{to:se("Training"),className:"bg-purple-600 rounded-2xl p-6 text-white hover:shadow-xl transition-all",children:[e.jsx("h3",{className:"text-xl font-bold mb-2",children:"Relevante Trainingen"}),e.jsxs("p",{className:"text-purple-100 mb-4",children:["Maak je team klaar voor de ",p==="AI-native"?"volgende":"AI"," transformatie."]}),e.jsxs("div",{className:"inline-flex items-center gap-2 font-semibold",children:["Bekijk trainingen ",e.jsx($e,{className:"w-5 h-5"})]})]})]})]})})}return e.jsx("div",{className:"pt-20 min-h-screen bg-gradient-to-b from-blue-50 to-white",children:e.jsxs("div",{className:"max-w-2xl mx-auto px-4 sm:px-6 lg:px-8 py-20",children:[e.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"text-center mb-12",children:[e.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:[e.jsx(At,{className:"w-4 h-4"}),"AI Readiness Quiz"]}),e.jsx("h1",{className:"text-3xl font-bold text-gray-900 mb-4",children:"Ontdek je AI potentieel"}),e.jsxs("p",{className:"text-gray-600",children:[wc.length," eerlijke vragen. Geen open deuren."]})]}),e.jsxs("div",{className:"mb-8",children:[e.jsxs("div",{className:"flex justify-between text-sm text-gray-500 mb-2",children:[e.jsxs("span",{children:["Vraag ",t+1," van ",wc.length]}),e.jsxs("span",{children:[Math.round(h),"%"]})]}),e.jsx("div",{className:"h-2 bg-gray-200 rounded-full overflow-hidden",children:e.jsx(Z.div,{className:"h-full bg-gradient-to-r from-blue-600 to-blue-500 rounded-full",initial:{width:0},animate:{width:`${h}%`},transition:{duration:.3}})})]}),e.jsx(Cr,{mode:"wait",children:e.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:[e.jsx("h2",{className:"text-2xl font-bold text-gray-900 mb-6",children:d.question}),e.jsx("div",{className:"space-y-3",children:d.options.map((p,g)=>e.jsx("button",{onClick:()=>f(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:e.jsx("p",{className:"font-semibold text-gray-900 text-lg",children:p.label})},g))})]},t)}),t>0&&e.jsxs("button",{onClick:()=>{n(t-1),i(r.slice(0,-1))},className:"mt-6 flex items-center gap-2 text-gray-600 hover:text-gray-900 transition-colors",children:[e.jsx(ht,{className:"w-4 h-4"}),"Vorige vraag"]})]})})}function Mq(){return e.jsx("div",{className:"pt-20 min-h-screen bg-white",children:e.jsx("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 py-12",children:e.jsxs("div",{className:"bg-[#F4F4F4] rounded-3xl p-12",children:[e.jsxs("div",{className:"flex items-center gap-3 mb-8",children:[e.jsx(At,{className:"w-12 h-12 text-[#FAB868]"}),e.jsx("h1",{className:"text-5xl font-bold text-[#0D0D0F]",children:"AI Quiz"})]}),e.jsxs("div",{className:"prose max-w-none prose-headings:text-[#0D0D0F]",children:[e.jsx("h2",{children:"Overzicht"}),e.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."}),e.jsx("h2",{children:"Architectuur"}),e.jsx("h3",{children:"Frontend: pages/AIQuiz.jsx"}),e.jsxs("ul",{children:[e.jsxs("li",{children:[e.jsx("strong",{children:"Framework:"})," React met multi-step state management"]}),e.jsxs("li",{children:[e.jsx("strong",{children:"Logic:"})," Signal-based deterministic classification"]}),e.jsxs("li",{children:[e.jsx("strong",{children:"Backend:"})," Geen dedicated function - LLM direct via Core.InvokeLLM"]}),e.jsxs("li",{children:[e.jsx("strong",{children:"Flow:"}),e.jsxs("ol",{children:[e.jsx("li",{children:"10 vragen met 4 opties elk"}),e.jsx("li",{children:"Signalen en severity worden verzameld"}),e.jsx("li",{children:"Level wordt bepaald via signal counts"}),e.jsx("li",{children:"LLM genereert scherpe, eerlijke teksten"}),e.jsx("li",{children:"Results met CTAs naar Impact Report en Contact"})]})]})]}),e.jsx("h2",{children:"10 Quiz Vragen"}),e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{className:"bg-gray-50 p-4 rounded-lg",children:[e.jsx("h4",{className:"font-bold mb-2",children:"1. Chaos"}),e.jsx("p",{className:"text-sm mb-2",children:'"Wat is de grootste bron van chaos op een doorsnee werkdag?"'}),e.jsxs("p",{className:"text-xs text-gray-600",children:[e.jsx("strong",{children:"Signalen:"})," context_switching, informele_afstemming, single_source_of_truth_missing, systeem_onbetrouwbaar, onduidelijke_verantwoordelijkheid"]}),e.jsxs("p",{className:"text-xs text-gray-600",children:[e.jsx("strong",{children:"Themes:"})," informatie, proces, data, tooling, ownership"]})]}),e.jsxs("div",{className:"bg-gray-50 p-4 rounded-lg",children:[e.jsx("h4",{className:"font-bold mb-2",children:"2. Herhaalwerk"}),e.jsx("p",{className:"text-sm mb-2",children:'"Waar gaat de meeste tijd in zitten aan herhaalwerk?"'}),e.jsxs("p",{className:"text-xs text-gray-600",children:[e.jsx("strong",{children:"Signalen:"})," handmatige_overdracht, rapportage_handwerk, status_fragmenteel, foutcorrectie_cyclus"]}),e.jsxs("p",{className:"text-xs text-gray-600",children:[e.jsx("strong",{children:"Themes:"})," integratie, data, communicatie, kwaliteit"]})]}),e.jsxs("div",{className:"bg-gray-50 p-4 rounded-lg",children:[e.jsx("h4",{className:"font-bold mb-2",children:"3. Besluitvorming"}),e.jsx("p",{className:"text-sm mb-2",children:'"Hoe neem je belangrijke beslissingen?"'}),e.jsxs("p",{className:"text-xs text-gray-600",children:[e.jsx("strong",{children:"Signalen:"})," besluit_op_intuitie, data_versnippering, gecentraliseerd_inzicht, decision_latency"]}),e.jsxs("p",{className:"text-xs text-gray-600",children:[e.jsx("strong",{children:"Themes:"})," besluitvorming, data"]})]}),e.jsxs("div",{className:"bg-gray-50 p-4 rounded-lg",children:[e.jsx("h4",{className:"font-bold mb-2",children:"4. Schaalbaarheid"}),e.jsx("p",{className:"text-sm mb-2",children:'"Wat gebeurt er als jullie plotseling 30% meer orders krijgen?"'}),e.jsxs("p",{className:"text-xs text-gray-600",children:[e.jsx("strong",{children:"Signalen:"})," groei_instabiliteit, groei_door_headcount, schaalbare_knelpunten, schaalbaar_proces"]})]}),e.jsxs("div",{className:"bg-gray-50 p-4 rounded-lg",children:[e.jsx("h4",{className:"font-bold mb-2",children:"5. Systemenlandschap"}),e.jsx("p",{className:"text-sm mb-2",children:'"Hoe zou je je systemenlandschap omschrijven?"'}),e.jsxs("p",{className:"text-xs text-gray-600",children:[e.jsx("strong",{children:"Signalen:"})," tool_fragmentatie, fragiele_koppelingen, gedeeltelijke_integratie, stabiele_architectuur"]})]}),e.jsx("p",{className:"text-sm text-gray-500 italic",children:"+ 5 meer vragen over fouten, tijdverlies, AI adoptie, frustratie en ambitie"})]}),e.jsx("h2",{children:"Signal-Based Level Determination"}),e.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
}`}),e.jsx("h2",{children:"Intervention Library"}),e.jsx("p",{children:"Concrete interventies per signaal:"}),e.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"
}`}),e.jsx("h2",{children:"LLM-Generated Results"}),e.jsx("h3",{children:"Scan Profile"}),e.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"
}`}),e.jsx("h3",{children:"LLM Prompt"}),e.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}`}),e.jsx("h3",{children:"LLM JSON Schema Output"}),e.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"
}`}),e.jsx("h2",{children:"Results Display"}),e.jsx("h3",{children:"1. Hero"}),e.jsxs("div",{className:"bg-gradient-to-r from-purple-600 to-pink-600 text-white p-4 rounded-lg mb-4",children:[e.jsxs("span",{className:"inline-block px-4 py-2 bg-white/20 rounded-full text-sm font-bold mb-2",children:[e.jsx(At,{className:"w-4 h-4 inline mr-1"}),"Je niveau: Groeiend"]}),e.jsx("h3",{className:"text-2xl font-bold",children:"Deelbare uitspraak komt hier"})]}),e.jsx("h3",{children:"2. Analyse Secties"}),e.jsxs("div",{className:"space-y-3",children:[e.jsxs("div",{className:"p-4 border-2 border-red-100 bg-white rounded-xl",children:[e.jsxs("div",{className:"flex items-start gap-2 mb-2",children:[e.jsx(Ua,{className:"w-5 h-5 text-red-600 mt-1"}),e.jsx("h4",{className:"font-bold",children:"Wat jullie waarschijnlijk onderschatten"})]}),e.jsx("p",{className:"text-sm text-gray-600",children:"LLM output: onderschatting"})]}),e.jsxs("div",{className:"p-4 border-2 border-orange-100 bg-white rounded-xl",children:[e.jsxs("div",{className:"flex items-start gap-2 mb-2",children:[e.jsx(Ki,{className:"w-5 h-5 text-orange-600 mt-1"}),e.jsx("h4",{className:"font-bold",children:"Wat dit jullie nu echt kost"})]}),e.jsx("p",{className:"text-sm text-gray-600",children:"LLM output: kosten (concreet, met cijfers)"})]}),e.jsxs("div",{className:"p-4 border-2 border-blue-100 bg-white rounded-xl",children:[e.jsx("h4",{className:"font-bold mb-1",children:"Waarom dit bij anderen al anders is"}),e.jsx("p",{className:"text-sm text-gray-600",children:"LLM output: peers (vergelijking)"})]}),e.jsxs("div",{className:"p-4 bg-gradient-to-r from-green-500 to-emerald-600 text-white rounded-xl",children:[e.jsx("h4",{className:"font-bold mb-1",children:"Meest logische eerste ingreep"}),e.jsx("p",{className:"text-sm",children:"LLM output: eerste_ingreep"})]})]}),e.jsx("h3",{children:"3. Share Functie"}),e.jsx("p",{children:"Native Web Share API voor deelbare uitspraak"}),e.jsx("h3",{children:"4. Call-to-Actions"}),e.jsxs("ul",{children:[e.jsxs("li",{children:[e.jsx("strong",{children:"Primary:"}),' "Genereer mijn Impact Rapport" → /ImpactRapport?level={level}']}),e.jsxs("li",{children:[e.jsx("strong",{children:"Secondary 1:"}),' "15-minuten Consult" → /Contact?ref=quiz&level={level}']}),e.jsxs("li",{children:[e.jsx("strong",{children:"Secondary 2:"}),' "Relevante Trainingen" → /Training']})]}),e.jsx("h2",{children:"De 5 Levels"}),e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{className:"p-4 bg-red-50 border-2 border-red-200 rounded-lg",children:[e.jsx("h4",{className:"font-bold text-red-900 mb-2",children:"Chaos"}),e.jsxs("p",{className:"text-sm text-red-800 mb-2",children:[e.jsx("strong",{children:"Kenmerken:"})," Brandjes blussen, systemen werken niet samen, veel menselijke fouten"]}),e.jsxs("p",{className:"text-sm text-red-700",children:[e.jsx("strong",{children:"Interventie Focus:"})," Stabiliseren, overzicht creëren"]})]}),e.jsxs("div",{className:"p-4 bg-orange-50 border-2 border-orange-200 rounded-lg",children:[e.jsx("h4",{className:"font-bold text-orange-900 mb-2",children:"Handmatig"}),e.jsxs("p",{className:"text-sm text-orange-800 mb-2",children:[e.jsx("strong",{children:"Kenmerken:"})," Data overtypen, Excel als waarheid, rapportage handwerk"]}),e.jsxs("p",{className:"text-sm text-orange-700",children:[e.jsx("strong",{children:"Interventie Focus:"})," Automatiseren, integreren"]})]}),e.jsxs("div",{className:"p-4 bg-yellow-50 border-2 border-yellow-200 rounded-lg",children:[e.jsx("h4",{className:"font-bold text-yellow-900 mb-2",children:"Groeiend"}),e.jsxs("p",{className:"text-sm text-yellow-800 mb-2",children:[e.jsx("strong",{children:"Kenmerken:"})," Beslissingen op gevoel, informatie versnipperd, groei kost mensen"]}),e.jsxs("p",{className:"text-sm text-yellow-700",children:[e.jsx("strong",{children:"Interventie Focus:"})," Data centraliseren, workflows optimaliseren"]})]}),e.jsxs("div",{className:"p-4 bg-blue-50 border-2 border-blue-200 rounded-lg",children:[e.jsx("h4",{className:"font-bold text-blue-900 mb-2",children:"Automation-ready"}),e.jsxs("p",{className:"text-sm text-blue-800 mb-2",children:[e.jsx("strong",{children:"Kenmerken:"})," Systemen deels geïntegreerd, wil slimmer werken, groei zonder headcount"]}),e.jsxs("p",{className:"text-sm text-blue-700",children:[e.jsx("strong",{children:"Interventie Focus:"})," AI agents, advanced automation"]})]}),e.jsxs("div",{className:"p-4 bg-green-50 border-2 border-green-200 rounded-lg",children:[e.jsx("h4",{className:"font-bold text-green-900 mb-2",children:"AI-native"}),e.jsxs("p",{className:"text-sm text-green-800 mb-2",children:[e.jsx("strong",{children:"Kenmerken:"})," AI is operationeel, stabiele architectuur, schaalbare processen"]}),e.jsxs("p",{className:"text-sm text-green-700",children:[e.jsx("strong",{children:"Interventie Focus:"})," Innoveren, vooroplopen"]})]})]}),e.jsx("h2",{children:"LLM Gebruik"}),e.jsxs("ul",{children:[e.jsxs("li",{children:[e.jsx("strong",{children:"Provider:"})," OpenAI (via Base44 Core.InvokeLLM)"]}),e.jsxs("li",{children:[e.jsx("strong",{children:"Toon:"})," Kritisch, confronterend, concreet"]}),e.jsxs("li",{children:[e.jsx("strong",{children:"Anti-patterns:"})," Geen managementjargon, open deuren"]}),e.jsxs("li",{children:[e.jsx("strong",{children:"Fallback:"})," Rule-based output als LLM faalt"]}),e.jsxs("li",{children:[e.jsx("strong",{children:"Verwerkingstijd:"})," 3-5 seconden"]})]}),e.jsx("h2",{children:"Data Structure per Vraag"}),e.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
    }
  ]
}`}),e.jsx("h2",{children:"Performance"}),e.jsxs("ul",{children:[e.jsxs("li",{children:[e.jsx("strong",{children:"Frontend-only logic:"})," Zeer snel"]}),e.jsxs("li",{children:[e.jsx("strong",{children:"Single LLM call:"})," Alleen voor tekstgeneratie"]}),e.jsxs("li",{children:[e.jsx("strong",{children:"Deterministische classificatie:"})," Consistent"]}),e.jsxs("li",{children:[e.jsx("strong",{children:"Instant feedback:"})," Op vraag selectie"]})]}),e.jsx("h2",{children:"Files"}),e.jsx("ul",{className:"font-mono text-sm",children:e.jsx("li",{children:"pages/AIQuiz.jsx - Complete quiz component (frontend-only)"})}),e.jsx("h2",{children:"Integraties"}),e.jsxs("ul",{children:[e.jsxs("li",{children:[e.jsx("strong",{children:"Impact Report:"})," Level wordt doorgegeven als query parameter"]}),e.jsxs("li",{children:[e.jsx("strong",{children:"Contact:"})," Quiz referentie + level in URL"]}),e.jsxs("li",{children:[e.jsx("strong",{children:"Training:"})," Algemene link zonder parameters"]})]})]})]})})})}function yn(t){const n=Object.prototype.toString.call(t);return t instanceof Date||typeof t=="object"&&n==="[object Date]"?new t.constructor(+t):typeof t=="number"||n==="[object Number]"||typeof t=="string"||n==="[object String]"?new Date(t):new Date(NaN)}function Qi(t,n){return t instanceof Date?new t.constructor(n):new Date(n)}function FE(t,n){const r=yn(t);if(isNaN(n))return Qi(t,NaN);if(!n)return r;const i=r.getDate(),s=Qi(t,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 ME=6048e5,Lq=864e5;let Bq={};function _f(){return Bq}function hu(t,n){var c,d,h,f;const r=_f(),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??((f=(h=r.locale)==null?void 0:h.options)==null?void 0:f.weekStartsOn)??0,s=yn(t),a=s.getDay(),o=(a<i?7:0)+a-i;return s.setDate(s.getDate()-o),s.setHours(0,0,0,0),s}function Xh(t){return hu(t,{weekStartsOn:1})}function LE(t){const n=yn(t),r=n.getFullYear(),i=Qi(t,0);i.setFullYear(r+1,0,4),i.setHours(0,0,0,0);const s=Xh(i),a=Qi(t,0);a.setFullYear(r,0,4),a.setHours(0,0,0,0);const o=Xh(a);return n.getTime()>=s.getTime()?r+1:n.getTime()>=o.getTime()?r:r-1}function ml(t){const n=yn(t);return n.setHours(0,0,0,0),n}function GN(t){const n=yn(t),r=new Date(Date.UTC(n.getFullYear(),n.getMonth(),n.getDate(),n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds()));return r.setUTCFullYear(n.getFullYear()),+t-+r}function zq(t,n){const r=ml(t),i=ml(n),s=+r-GN(r),a=+i-GN(i);return Math.round((s-a)/Lq)}function qq(t){const n=LE(t),r=Qi(t,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),Xh(r)}function Vq(t,n){const r=ml(t),i=ml(n);return+r==+i}function Uq(t){return t instanceof Date||typeof t=="object"&&Object.prototype.toString.call(t)==="[object Date]"}function $q(t){if(!Uq(t)&&typeof t!="number")return!1;const n=yn(t);return!isNaN(Number(n))}function Hq(t){const n=yn(t),r=n.getMonth();return n.setFullYear(n.getFullYear(),r+1,0),n.setHours(23,59,59,999),n}function Wq(t,n){const r=yn(t.start),i=yn(t.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 Kq(t){const n=yn(t);return n.setDate(1),n.setHours(0,0,0,0),n}function Gq(t){const n=yn(t),r=Qi(t,0);return r.setFullYear(n.getFullYear(),0,1),r.setHours(0,0,0,0),r}const Qq={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"}},Yq=(t,n,r)=>{let i;const s=Qq[t];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 Wo(t){return(n={})=>{const r=n.width?String(n.width):t.defaultWidth;return t.formats[r]||t.formats[t.defaultWidth]}}const Xq={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Jq={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Zq={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},eV={date:Wo({formats:Xq,defaultWidth:"full"}),time:Wo({formats:Jq,defaultWidth:"full"}),dateTime:Wo({formats:Zq,defaultWidth:"full"})},tV={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},nV=(t,n,r,i)=>tV[t];function ai(t){return(n,r)=>{const i=r!=null&&r.context?String(r.context):"standalone";let s;if(i==="formatting"&&t.formattingValues){const o=t.defaultFormattingWidth||t.defaultWidth,c=r!=null&&r.width?String(r.width):o;s=t.formattingValues[c]||t.formattingValues[o]}else{const o=t.defaultWidth,c=r!=null&&r.width?String(r.width):t.defaultWidth;s=t.values[c]||t.values[o]}const a=t.argumentCallback?t.argumentCallback(n):n;return s[a]}}const rV={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},iV={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},sV={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"]},aV={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"]},oV={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"}},lV={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"}},cV=(t,n)=>{const r=Number(t),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"},uV={ordinalNumber:cV,era:ai({values:rV,defaultWidth:"wide"}),quarter:ai({values:iV,defaultWidth:"wide",argumentCallback:t=>t-1}),month:ai({values:sV,defaultWidth:"wide"}),day:ai({values:aV,defaultWidth:"wide"}),dayPeriod:ai({values:oV,defaultWidth:"wide",formattingValues:lV,defaultFormattingWidth:"wide"})};function oi(t){return(n,r={})=>{const i=r.width,s=i&&t.matchPatterns[i]||t.matchPatterns[t.defaultMatchWidth],a=n.match(s);if(!a)return null;const o=a[0],c=i&&t.parsePatterns[i]||t.parsePatterns[t.defaultParseWidth],d=Array.isArray(c)?hV(c,m=>m.test(o)):dV(c,m=>m.test(o));let h;h=t.valueCallback?t.valueCallback(d):d,h=r.valueCallback?r.valueCallback(h):h;const f=n.slice(o.length);return{value:h,rest:f}}}function dV(t,n){for(const r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&n(t[r]))return r}function hV(t,n){for(let r=0;r<t.length;r++)if(n(t[r]))return r}function BE(t){return(n,r={})=>{const i=n.match(t.matchPattern);if(!i)return null;const s=i[0],a=n.match(t.parsePattern);if(!a)return null;let o=t.valueCallback?t.valueCallback(a[0]):a[0];o=r.valueCallback?r.valueCallback(o):o;const c=n.slice(s.length);return{value:o,rest:c}}}const fV=/^(\d+)(th|st|nd|rd)?/i,mV=/\d+/i,pV={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},gV={any:[/^b/i,/^(a|c)/i]},xV={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},vV={any:[/1/i,/2/i,/3/i,/4/i]},yV={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},bV={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]},jV={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},wV={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]},kV={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},NV={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}},_V={ordinalNumber:BE({matchPattern:fV,parsePattern:mV,valueCallback:t=>parseInt(t,10)}),era:oi({matchPatterns:pV,defaultMatchWidth:"wide",parsePatterns:gV,defaultParseWidth:"any"}),quarter:oi({matchPatterns:xV,defaultMatchWidth:"wide",parsePatterns:vV,defaultParseWidth:"any",valueCallback:t=>t+1}),month:oi({matchPatterns:yV,defaultMatchWidth:"wide",parsePatterns:bV,defaultParseWidth:"any"}),day:oi({matchPatterns:jV,defaultMatchWidth:"wide",parsePatterns:wV,defaultParseWidth:"any"}),dayPeriod:oi({matchPatterns:kV,defaultMatchWidth:"any",parsePatterns:NV,defaultParseWidth:"any"})},SV={code:"en-US",formatDistance:Yq,formatLong:eV,formatRelative:nV,localize:uV,match:_V,options:{weekStartsOn:0,firstWeekContainsDate:1}};function AV(t){const n=yn(t);return zq(n,Gq(n))+1}function CV(t){const n=yn(t),r=+Xh(n)-+qq(n);return Math.round(r/ME)+1}function zE(t,n){var f,m,p,g;const r=yn(t),i=r.getFullYear(),s=_f(),a=(n==null?void 0:n.firstWeekContainsDate)??((m=(f=n==null?void 0:n.locale)==null?void 0:f.options)==null?void 0:m.firstWeekContainsDate)??s.firstWeekContainsDate??((g=(p=s.locale)==null?void 0:p.options)==null?void 0:g.firstWeekContainsDate)??1,o=Qi(t,0);o.setFullYear(i+1,0,a),o.setHours(0,0,0,0);const c=hu(o,n),d=Qi(t,0);d.setFullYear(i,0,a),d.setHours(0,0,0,0);const h=hu(d,n);return r.getTime()>=c.getTime()?i+1:r.getTime()>=h.getTime()?i:i-1}function EV(t,n){var c,d,h,f;const r=_f(),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??((f=(h=r.locale)==null?void 0:h.options)==null?void 0:f.firstWeekContainsDate)??1,s=zE(t,n),a=Qi(t,0);return a.setFullYear(s,0,i),a.setHours(0,0,0,0),hu(a,n)}function TV(t,n){const r=yn(t),i=+hu(r,n)-+EV(r,n);return Math.round(i/ME)+1}function Tt(t,n){const r=t<0?"-":"",i=Math.abs(t).toString().padStart(n,"0");return r+i}const Ns={y(t,n){const r=t.getFullYear(),i=r>0?r:1-r;return Tt(n==="yy"?i%100:i,n.length)},M(t,n){const r=t.getMonth();return n==="M"?String(r+1):Tt(r+1,2)},d(t,n){return Tt(t.getDate(),n.length)},a(t,n){const r=t.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(t,n){return Tt(t.getHours()%12||12,n.length)},H(t,n){return Tt(t.getHours(),n.length)},m(t,n){return Tt(t.getMinutes(),n.length)},s(t,n){return Tt(t.getSeconds(),n.length)},S(t,n){const r=n.length,i=t.getMilliseconds(),s=Math.trunc(i*Math.pow(10,r-3));return Tt(s,n.length)}},To={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},QN={G:function(t,n,r){const i=t.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(t,n,r){if(n==="yo"){const i=t.getFullYear(),s=i>0?i:1-i;return r.ordinalNumber(s,{unit:"year"})}return Ns.y(t,n)},Y:function(t,n,r,i){const s=zE(t,i),a=s>0?s:1-s;if(n==="YY"){const o=a%100;return Tt(o,2)}return n==="Yo"?r.ordinalNumber(a,{unit:"year"}):Tt(a,n.length)},R:function(t,n){const r=LE(t);return Tt(r,n.length)},u:function(t,n){const r=t.getFullYear();return Tt(r,n.length)},Q:function(t,n,r){const i=Math.ceil((t.getMonth()+1)/3);switch(n){case"Q":return String(i);case"QQ":return Tt(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(t,n,r){const i=Math.ceil((t.getMonth()+1)/3);switch(n){case"q":return String(i);case"qq":return Tt(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(t,n,r){const i=t.getMonth();switch(n){case"M":case"MM":return Ns.M(t,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(t,n,r){const i=t.getMonth();switch(n){case"L":return String(i+1);case"LL":return Tt(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(t,n,r,i){const s=TV(t,i);return n==="wo"?r.ordinalNumber(s,{unit:"week"}):Tt(s,n.length)},I:function(t,n,r){const i=CV(t);return n==="Io"?r.ordinalNumber(i,{unit:"week"}):Tt(i,n.length)},d:function(t,n,r){return n==="do"?r.ordinalNumber(t.getDate(),{unit:"date"}):Ns.d(t,n)},D:function(t,n,r){const i=AV(t);return n==="Do"?r.ordinalNumber(i,{unit:"dayOfYear"}):Tt(i,n.length)},E:function(t,n,r){const i=t.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(t,n,r,i){const s=t.getDay(),a=(s-i.weekStartsOn+8)%7||7;switch(n){case"e":return String(a);case"ee":return Tt(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(t,n,r,i){const s=t.getDay(),a=(s-i.weekStartsOn+8)%7||7;switch(n){case"c":return String(a);case"cc":return Tt(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(t,n,r){const i=t.getDay(),s=i===0?7:i;switch(n){case"i":return String(s);case"ii":return Tt(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(t,n,r){const s=t.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(t,n,r){const i=t.getHours();let s;switch(i===12?s=To.noon:i===0?s=To.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(t,n,r){const i=t.getHours();let s;switch(i>=17?s=To.evening:i>=12?s=To.afternoon:i>=4?s=To.morning:s=To.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(t,n,r){if(n==="ho"){let i=t.getHours()%12;return i===0&&(i=12),r.ordinalNumber(i,{unit:"hour"})}return Ns.h(t,n)},H:function(t,n,r){return n==="Ho"?r.ordinalNumber(t.getHours(),{unit:"hour"}):Ns.H(t,n)},K:function(t,n,r){const i=t.getHours()%12;return n==="Ko"?r.ordinalNumber(i,{unit:"hour"}):Tt(i,n.length)},k:function(t,n,r){let i=t.getHours();return i===0&&(i=24),n==="ko"?r.ordinalNumber(i,{unit:"hour"}):Tt(i,n.length)},m:function(t,n,r){return n==="mo"?r.ordinalNumber(t.getMinutes(),{unit:"minute"}):Ns.m(t,n)},s:function(t,n,r){return n==="so"?r.ordinalNumber(t.getSeconds(),{unit:"second"}):Ns.s(t,n)},S:function(t,n){return Ns.S(t,n)},X:function(t,n,r){const i=t.getTimezoneOffset();if(i===0)return"Z";switch(n){case"X":return XN(i);case"XXXX":case"XX":return ka(i);case"XXXXX":case"XXX":default:return ka(i,":")}},x:function(t,n,r){const i=t.getTimezoneOffset();switch(n){case"x":return XN(i);case"xxxx":case"xx":return ka(i);case"xxxxx":case"xxx":default:return ka(i,":")}},O:function(t,n,r){const i=t.getTimezoneOffset();switch(n){case"O":case"OO":case"OOO":return"GMT"+YN(i,":");case"OOOO":default:return"GMT"+ka(i,":")}},z:function(t,n,r){const i=t.getTimezoneOffset();switch(n){case"z":case"zz":case"zzz":return"GMT"+YN(i,":");case"zzzz":default:return"GMT"+ka(i,":")}},t:function(t,n,r){const i=Math.trunc(t.getTime()/1e3);return Tt(i,n.length)},T:function(t,n,r){const i=t.getTime();return Tt(i,n.length)}};function YN(t,n=""){const r=t>0?"-":"+",i=Math.abs(t),s=Math.trunc(i/60),a=i%60;return a===0?r+String(s):r+String(s)+n+Tt(a,2)}function XN(t,n){return t%60===0?(t>0?"-":"+")+Tt(Math.abs(t)/60,2):ka(t,n)}function ka(t,n=""){const r=t>0?"-":"+",i=Math.abs(t),s=Tt(Math.trunc(i/60),2),a=Tt(i%60,2);return r+s+n+a}const JN=(t,n)=>{switch(t){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"})}},qE=(t,n)=>{switch(t){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"})}},OV=(t,n)=>{const r=t.match(/(P+)(p+)?/)||[],i=r[1],s=r[2];if(!s)return JN(t,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}}",JN(i,n)).replace("{{time}}",qE(s,n))},PV={p:qE,P:OV},DV=/^D+$/,IV=/^Y+$/,RV=["D","DD","YY","YYYY"];function FV(t){return DV.test(t)}function MV(t){return IV.test(t)}function LV(t,n,r){const i=BV(t,n,r);if(console.warn(i),RV.includes(t))throw new RangeError(i)}function BV(t,n,r){const i=t[0]==="Y"?"years":"days of the month";return`Use \`${t.toLowerCase()}\` instead of \`${t}\` (in \`${n}\`) for formatting ${i} to the input \`${r}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const zV=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,qV=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,VV=/^'([^]*?)'?$/,UV=/''/g,$V=/[a-zA-Z]/;function _t(t,n,r){var f,m,p,g,b,j,v,x;const i=_f(),s=(r==null?void 0:r.locale)??i.locale??SV,a=(r==null?void 0:r.firstWeekContainsDate)??((m=(f=r==null?void 0:r.locale)==null?void 0:f.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=(v=i.locale)==null?void 0:v.options)==null?void 0:x.weekStartsOn)??0,c=yn(t);if(!$q(c))throw new RangeError("Invalid time value");let d=n.match(qV).map(k=>{const w=k[0];if(w==="p"||w==="P"){const N=PV[w];return N(k,s.formatLong)}return k}).join("").match(zV).map(k=>{if(k==="''")return{isToken:!1,value:"'"};const w=k[0];if(w==="'")return{isToken:!1,value:HV(k)};if(QN[w])return{isToken:!0,value:k};if(w.match($V))throw new RangeError("Format string contains an unescaped latin alphabet character `"+w+"`");return{isToken:!1,value:k}});s.localize.preprocessor&&(d=s.localize.preprocessor(c,d));const h={firstWeekContainsDate:a,weekStartsOn:o,locale:s};return d.map(k=>{if(!k.isToken)return k.value;const w=k.value;(!(r!=null&&r.useAdditionalWeekYearTokens)&&MV(w)||!(r!=null&&r.useAdditionalDayOfYearTokens)&&FV(w))&&LV(w,n,String(t));const N=QN[w[0]];return N(c,w,s.localize,h)}).join("")}function HV(t){const n=t.match(VV);return n?n[1].replace(UV,"'"):t}function VE(t){return+yn(t)<Date.now()}function WV(t,n){return FE(t,-1)}function KV(){var o,c;const[t,n]=R.useState(null),{data:r=[],isLoading:i}=Fe({queryKey:["ai-quiz-submissions"],queryFn:()=>ce.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(`
`),h=new Blob([d],{type:"text/csv;charset=utf-8;"}),f=document.createElement("a");f.href=URL.createObjectURL(h),f.download=`ai-quiz-submissions-${_t(new Date,"dd-MM-yyyy")}.csv`,f.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 e.jsx("div",{className:"pt-20 min-h-screen bg-gray-50",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-12",children:[e.jsxs("div",{className:"flex items-center justify-between mb-8",children:[e.jsxs("div",{className:"flex items-center gap-4",children:[e.jsx(de,{to:se("AdminDashboard"),children:e.jsx(ae,{variant:"outline",size:"icon",children:e.jsx(ht,{className:"w-5 h-5"})})}),e.jsxs("div",{children:[e.jsx("h1",{className:"text-3xl font-bold text-gray-900",children:"AI Quiz Resultaten"}),e.jsxs("p",{className:"text-gray-600",children:[r.length," quizzen ingevuld"]})]})]}),e.jsxs(ae,{onClick:s,disabled:r.length===0,children:[e.jsx(ku,{className:"w-4 h-4 mr-2"}),"Exporteer CSV"]})]}),i?e.jsx("div",{className:"flex justify-center py-12",children:e.jsx("div",{className:"w-8 h-8 border-4 border-blue-600 border-t-transparent rounded-full animate-spin"})}):r.length===0?e.jsxs("div",{className:"bg-white rounded-2xl p-12 text-center",children:[e.jsx($t,{className:"w-16 h-16 text-gray-300 mx-auto mb-4"}),e.jsx("h3",{className:"text-xl font-semibold text-gray-900 mb-2",children:"Nog geen resultaten"}),e.jsx("p",{className:"text-gray-600",children:"Er zijn nog geen AI Quiz resultaten"})]}):e.jsxs("div",{className:"grid lg:grid-cols-2 gap-6",children:[e.jsx("div",{className:"space-y-4",children:r.map(d=>e.jsxs("div",{onClick:()=>n(d),className:`bg-white rounded-xl p-6 border-2 cursor-pointer transition-all ${(t==null?void 0:t.id)===d.id?"border-blue-600 shadow-lg":"border-gray-200 hover:border-gray-300"}`,children:[e.jsxs("div",{className:"flex items-start justify-between mb-3",children:[e.jsxs("div",{className:"flex-1",children:[e.jsx("h3",{className:"font-bold text-gray-900",children:d.company||d.name||d.email||"Anoniem"}),d.name&&d.company&&e.jsx("p",{className:"text-sm text-gray-500",children:d.name})]}),e.jsx("span",{className:`px-3 py-1 rounded-full text-xs font-medium ${a(d.level)}`,children:d.level})]}),e.jsxs("div",{className:"flex items-center gap-3 text-sm text-gray-600",children:[e.jsxs("span",{children:["Score: ",d.score]}),e.jsx("span",{children:"•"}),e.jsx("span",{children:_t(new Date(d.created_date),"dd MMM yyyy HH:mm")})]})]},d.id))}),e.jsx("div",{className:"lg:sticky lg:top-24 h-fit",children:t?e.jsxs("div",{className:"bg-white rounded-xl p-6 border border-gray-200",children:[e.jsx("h2",{className:"text-xl font-bold text-gray-900 mb-6",children:"Detail"}),e.jsxs("div",{className:"space-y-4",children:[t.email&&e.jsxs("div",{children:[e.jsx("label",{className:"text-sm font-medium text-gray-600",children:"Email"}),e.jsx("p",{className:"text-gray-900",children:t.email})]}),t.name&&e.jsxs("div",{children:[e.jsx("label",{className:"text-sm font-medium text-gray-600",children:"Naam"}),e.jsx("p",{className:"text-gray-900",children:t.name})]}),t.company&&e.jsxs("div",{children:[e.jsx("label",{className:"text-sm font-medium text-gray-600",children:"Bedrijf"}),e.jsx("p",{className:"text-gray-900",children:t.company})]}),e.jsxs("div",{children:[e.jsx("label",{className:"text-sm font-medium text-gray-600",children:"AI Readiness Niveau"}),e.jsx("span",{className:`inline-block mt-1 px-3 py-1 rounded-full text-sm font-medium ${a(t.level)}`,children:t.level})]}),e.jsxs("div",{children:[e.jsx("label",{className:"text-sm font-medium text-gray-600",children:"Score"}),e.jsx("p",{className:"text-gray-900 font-semibold",children:t.score})]}),((o=t.analysis)==null?void 0:o.report)&&e.jsxs("div",{children:[e.jsx("label",{className:"text-sm font-medium text-gray-600",children:"Analyse"}),e.jsx("p",{className:"text-gray-900 text-sm whitespace-pre-line",children:t.analysis.report})]}),((c=t.analysis)==null?void 0:c.themes)&&Object.keys(t.analysis.themes).length>0&&e.jsxs("div",{children:[e.jsx("label",{className:"text-sm font-medium text-gray-600",children:"Thema's"}),e.jsx("div",{className:"flex flex-wrap gap-2 mt-2",children:Object.entries(t.analysis.themes).map(([d,h])=>e.jsxs("span",{className:"px-2 py-1 bg-gray-100 rounded text-xs",children:[d,": ",h]},d))})]})]})]}):e.jsxs("div",{className:"bg-gray-50 rounded-xl p-12 text-center border-2 border-dashed border-gray-300",children:[e.jsx($t,{className:"w-12 h-12 text-gray-400 mx-auto mb-3"}),e.jsx("p",{className:"text-gray-600",children:"Selecteer een resultaat om details te bekijken"})]})})]})]})})}function ZN(t,[n,r]){return Math.min(r,Math.max(n,t))}function bt(t,n,{checkForDefaultPrevented:r=!0}={}){return function(s){if(t==null||t(s),r===!1||!s.defaultPrevented)return n==null?void 0:n(s)}}function to(t,n=[]){let r=[];function i(a,o){const c=R.createContext(o),d=r.length;r=[...r,o];const h=m=>{var x;const{scope:p,children:g,...b}=m,j=((x=p==null?void 0:p[t])==null?void 0:x[d])||c,v=R.useMemo(()=>b,Object.values(b));return e.jsx(j.Provider,{value:v,children:g})};h.displayName=a+"Provider";function f(m,p){var j;const g=((j=p==null?void 0:p[t])==null?void 0:j[d])||c,b=R.useContext(g);if(b)return b;if(o!==void 0)return o;throw new Error(`\`${m}\` must be used within \`${a}\``)}return[h,f]}const s=()=>{const a=r.map(o=>R.createContext(o));return function(c){const d=(c==null?void 0:c[t])||a;return R.useMemo(()=>({[`__scope${t}`]:{...c,[t]:d}}),[c,d])}};return s.scopeName=t,[i,GV(s,...n)]}function GV(...t){const n=t[0];if(t.length===1)return n;const r=()=>{const i=t.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(a){const o=i.reduce((c,{useScope:d,scopeName:h})=>{const m=d(a)[`__scope${h}`];return{...c,...m}},{});return R.useMemo(()=>({[`__scope${n.scopeName}`]:o}),[o])}};return r.scopeName=n.scopeName,r}function UE(t){const n=t+"CollectionProvider",[r,i]=to(n),[s,a]=r(n,{collectionRef:{current:null},itemMap:new Map}),o=j=>{const{scope:v,children:x}=j,k=Ot.useRef(null),w=Ot.useRef(new Map).current;return e.jsx(s,{scope:v,itemMap:w,collectionRef:k,children:x})};o.displayName=n;const c=t+"CollectionSlot",d=du(c),h=Ot.forwardRef((j,v)=>{const{scope:x,children:k}=j,w=a(c,x),N=Yt(v,w.collectionRef);return e.jsx(d,{ref:N,children:k})});h.displayName=c;const f=t+"CollectionItemSlot",m="data-radix-collection-item",p=du(f),g=Ot.forwardRef((j,v)=>{const{scope:x,children:k,...w}=j,N=Ot.useRef(null),A=Yt(v,N),S=a(f,x);return Ot.useEffect(()=>(S.itemMap.set(N,{ref:N,...w}),()=>void S.itemMap.delete(N))),e.jsx(p,{[m]:"",ref:A,children:k})});g.displayName=f;function b(j){const v=a(t+"CollectionConsumer",j);return Ot.useCallback(()=>{const k=v.collectionRef.current;if(!k)return[];const w=Array.from(k.querySelectorAll(`[${m}]`));return Array.from(v.itemMap.values()).sort((S,E)=>w.indexOf(S.ref.current)-w.indexOf(E.ref.current))},[v.collectionRef,v.itemMap])}return[{Provider:o,Slot:h,ItemSlot:g},b,i]}var QV=R.createContext(void 0);function Xy(t){const n=R.useContext(QV);return t||n||"ltr"}var YV=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],jt=YV.reduce((t,n)=>{const r=du(`Primitive.${n}`),i=R.forwardRef((s,a)=>{const{asChild:o,...c}=s,d=o?r:n;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),e.jsx(d,{...c,ref:a})});return i.displayName=`Primitive.${n}`,{...t,[n]:i}},{});function XV(t,n){t&&Su.flushSync(()=>t.dispatchEvent(n))}function Gs(t){const n=R.useRef(t);return R.useEffect(()=>{n.current=t}),R.useMemo(()=>(...r)=>{var i;return(i=n.current)==null?void 0:i.call(n,...r)},[])}function JV(t,n=globalThis==null?void 0:globalThis.document){const r=Gs(t);R.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 ZV="DismissableLayer",j0="dismissableLayer.update",eU="dismissableLayer.pointerDownOutside",tU="dismissableLayer.focusOutside",e2,$E=R.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),HE=R.forwardRef((t,n)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:a,onInteractOutside:o,onDismiss:c,...d}=t,h=R.useContext($E),[f,m]=R.useState(null),p=(f==null?void 0:f.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,g]=R.useState({}),b=Yt(n,E=>m(E)),j=Array.from(h.layers),[v]=[...h.layersWithOutsidePointerEventsDisabled].slice(-1),x=j.indexOf(v),k=f?j.indexOf(f):-1,w=h.layersWithOutsidePointerEventsDisabled.size>0,N=k>=x,A=iU(E=>{const C=E.target,B=[...h.branches].some(F=>F.contains(C));!N||B||(s==null||s(E),o==null||o(E),E.defaultPrevented||c==null||c())},p),S=sU(E=>{const C=E.target;[...h.branches].some(F=>F.contains(C))||(a==null||a(E),o==null||o(E),E.defaultPrevented||c==null||c())},p);return JV(E=>{k===h.layers.size-1&&(i==null||i(E),!E.defaultPrevented&&c&&(E.preventDefault(),c()))},p),R.useEffect(()=>{if(f)return r&&(h.layersWithOutsidePointerEventsDisabled.size===0&&(e2=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),h.layersWithOutsidePointerEventsDisabled.add(f)),h.layers.add(f),t2(),()=>{r&&h.layersWithOutsidePointerEventsDisabled.size===1&&(p.body.style.pointerEvents=e2)}},[f,p,r,h]),R.useEffect(()=>()=>{f&&(h.layers.delete(f),h.layersWithOutsidePointerEventsDisabled.delete(f),t2())},[f,h]),R.useEffect(()=>{const E=()=>g({});return document.addEventListener(j0,E),()=>document.removeEventListener(j0,E)},[]),e.jsx(jt.div,{...d,ref:b,style:{pointerEvents:w?N?"auto":"none":void 0,...t.style},onFocusCapture:bt(t.onFocusCapture,S.onFocusCapture),onBlurCapture:bt(t.onBlurCapture,S.onBlurCapture),onPointerDownCapture:bt(t.onPointerDownCapture,A.onPointerDownCapture)})});HE.displayName=ZV;var nU="DismissableLayerBranch",rU=R.forwardRef((t,n)=>{const r=R.useContext($E),i=R.useRef(null),s=Yt(n,i);return R.useEffect(()=>{const a=i.current;if(a)return r.branches.add(a),()=>{r.branches.delete(a)}},[r.branches]),e.jsx(jt.div,{...t,ref:s})});rU.displayName=nU;function iU(t,n=globalThis==null?void 0:globalThis.document){const r=Gs(t),i=R.useRef(!1),s=R.useRef(()=>{});return R.useEffect(()=>{const a=c=>{if(c.target&&!i.current){let d=function(){WE(eU,r,h,{discrete:!0})};const h={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 sU(t,n=globalThis==null?void 0:globalThis.document){const r=Gs(t),i=R.useRef(!1);return R.useEffect(()=>{const s=a=>{a.target&&!i.current&&WE(tU,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 t2(){const t=new CustomEvent(j0);document.dispatchEvent(t)}function WE(t,n,r,{discrete:i}){const s=r.originalEvent.target,a=new CustomEvent(t,{bubbles:!1,cancelable:!0,detail:r});n&&s.addEventListener(t,n,{once:!0}),i?XV(s,a):s.dispatchEvent(a)}var fg=0;function aU(){R.useEffect(()=>{const t=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",t[0]??n2()),document.body.insertAdjacentElement("beforeend",t[1]??n2()),fg++,()=>{fg===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(n=>n.remove()),fg--}},[])}function n2(){const t=document.createElement("span");return t.setAttribute("data-radix-focus-guard",""),t.tabIndex=0,t.style.outline="none",t.style.opacity="0",t.style.position="fixed",t.style.pointerEvents="none",t}var mg="focusScope.autoFocusOnMount",pg="focusScope.autoFocusOnUnmount",r2={bubbles:!1,cancelable:!0},oU="FocusScope",KE=R.forwardRef((t,n)=>{const{loop:r=!1,trapped:i=!1,onMountAutoFocus:s,onUnmountAutoFocus:a,...o}=t,[c,d]=R.useState(null),h=Gs(s),f=Gs(a),m=R.useRef(null),p=Yt(n,j=>d(j)),g=R.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;R.useEffect(()=>{if(i){let j=function(w){if(g.paused||!c)return;const N=w.target;c.contains(N)?m.current=N:Cs(m.current,{select:!0})},v=function(w){if(g.paused||!c)return;const N=w.relatedTarget;N!==null&&(c.contains(N)||Cs(m.current,{select:!0}))},x=function(w){if(document.activeElement===document.body)for(const A of w)A.removedNodes.length>0&&Cs(c)};document.addEventListener("focusin",j),document.addEventListener("focusout",v);const k=new MutationObserver(x);return c&&k.observe(c,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",j),document.removeEventListener("focusout",v),k.disconnect()}}},[i,c,g.paused]),R.useEffect(()=>{if(c){s2.add(g);const j=document.activeElement;if(!c.contains(j)){const x=new CustomEvent(mg,r2);c.addEventListener(mg,h),c.dispatchEvent(x),x.defaultPrevented||(lU(fU(GE(c)),{select:!0}),document.activeElement===j&&Cs(c))}return()=>{c.removeEventListener(mg,h),setTimeout(()=>{const x=new CustomEvent(pg,r2);c.addEventListener(pg,f),c.dispatchEvent(x),x.defaultPrevented||Cs(j??document.body,{select:!0}),c.removeEventListener(pg,f),s2.remove(g)},0)}}},[c,h,f,g]);const b=R.useCallback(j=>{if(!r&&!i||g.paused)return;const v=j.key==="Tab"&&!j.altKey&&!j.ctrlKey&&!j.metaKey,x=document.activeElement;if(v&&x){const k=j.currentTarget,[w,N]=cU(k);w&&N?!j.shiftKey&&x===N?(j.preventDefault(),r&&Cs(w,{select:!0})):j.shiftKey&&x===w&&(j.preventDefault(),r&&Cs(N,{select:!0})):x===k&&j.preventDefault()}},[r,i,g.paused]);return e.jsx(jt.div,{tabIndex:-1,...o,ref:p,onKeyDown:b})});KE.displayName=oU;function lU(t,{select:n=!1}={}){const r=document.activeElement;for(const i of t)if(Cs(i,{select:n}),document.activeElement!==r)return}function cU(t){const n=GE(t),r=i2(n,t),i=i2(n.reverse(),t);return[r,i]}function GE(t){const n=[],r=document.createTreeWalker(t,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 i2(t,n){for(const r of t)if(!uU(r,{upTo:n}))return r}function uU(t,{upTo:n}){if(getComputedStyle(t).visibility==="hidden")return!0;for(;t;){if(n!==void 0&&t===n)return!1;if(getComputedStyle(t).display==="none")return!0;t=t.parentElement}return!1}function dU(t){return t instanceof HTMLInputElement&&"select"in t}function Cs(t,{select:n=!1}={}){if(t&&t.focus){const r=document.activeElement;t.focus({preventScroll:!0}),t!==r&&dU(t)&&n&&t.select()}}var s2=hU();function hU(){let t=[];return{add(n){const r=t[0];n!==r&&(r==null||r.pause()),t=a2(t,n),t.unshift(n)},remove(n){var r;t=a2(t,n),(r=t[0])==null||r.resume()}}}function a2(t,n){const r=[...t],i=r.indexOf(n);return i!==-1&&r.splice(i,1),r}function fU(t){return t.filter(n=>n.tagName!=="A")}var Rn=globalThis!=null&&globalThis.document?R.useLayoutEffect:()=>{},mU=J0[" useId ".trim().toString()]||(()=>{}),pU=0;function Mu(t){const[n,r]=R.useState(mU());return Rn(()=>{r(i=>i??String(pU++))},[t]),n?`radix-${n}`:""}const gU=["top","right","bottom","left"],Qs=Math.min,ur=Math.max,Jh=Math.round,uh=Math.floor,vi=t=>({x:t,y:t}),xU={left:"right",right:"left",bottom:"top",top:"bottom"},vU={start:"end",end:"start"};function w0(t,n,r){return ur(t,Qs(n,r))}function Yi(t,n){return typeof t=="function"?t(n):t}function Xi(t){return t.split("-")[0]}function Al(t){return t.split("-")[1]}function Jy(t){return t==="x"?"y":"x"}function Zy(t){return t==="y"?"height":"width"}const yU=new Set(["top","bottom"]);function di(t){return yU.has(Xi(t))?"y":"x"}function eb(t){return Jy(di(t))}function bU(t,n,r){r===void 0&&(r=!1);const i=Al(t),s=eb(t),a=Zy(s);let o=s==="x"?i===(r?"end":"start")?"right":"left":i==="start"?"bottom":"top";return n.reference[a]>n.floating[a]&&(o=Zh(o)),[o,Zh(o)]}function jU(t){const n=Zh(t);return[k0(t),n,k0(n)]}function k0(t){return t.replace(/start|end/g,n=>vU[n])}const o2=["left","right"],l2=["right","left"],wU=["top","bottom"],kU=["bottom","top"];function NU(t,n,r){switch(t){case"top":case"bottom":return r?n?l2:o2:n?o2:l2;case"left":case"right":return n?wU:kU;default:return[]}}function _U(t,n,r,i){const s=Al(t);let a=NU(Xi(t),r==="start",i);return s&&(a=a.map(o=>o+"-"+s),n&&(a=a.concat(a.map(k0)))),a}function Zh(t){return t.replace(/left|right|bottom|top/g,n=>xU[n])}function SU(t){return{top:0,right:0,bottom:0,left:0,...t}}function QE(t){return typeof t!="number"?SU(t):{top:t,right:t,bottom:t,left:t}}function ef(t){const{x:n,y:r,width:i,height:s}=t;return{width:i,height:s,top:r,left:n,right:n+i,bottom:r+s,x:n,y:r}}function c2(t,n,r){let{reference:i,floating:s}=t;const a=di(n),o=eb(n),c=Zy(o),d=Xi(n),h=a==="y",f=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:f,y:i.y-s.height};break;case"bottom":g={x:f,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(Al(n)){case"start":g[o]-=p*(r&&h?-1:1);break;case"end":g[o]+=p*(r&&h?-1:1);break}return g}const AU=async(t,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 h=await o.getElementRects({reference:t,floating:n,strategy:s}),{x:f,y:m}=c2(h,i,d),p=i,g={},b=0;for(let j=0;j<c.length;j++){const{name:v,fn:x}=c[j],{x:k,y:w,data:N,reset:A}=await x({x:f,y:m,initialPlacement:i,placement:p,strategy:s,middlewareData:g,rects:h,platform:o,elements:{reference:t,floating:n}});f=k??f,m=w??m,g={...g,[v]:{...g[v],...N}},A&&b<=50&&(b++,typeof A=="object"&&(A.placement&&(p=A.placement),A.rects&&(h=A.rects===!0?await o.getElementRects({reference:t,floating:n,strategy:s}):A.rects),{x:f,y:m}=c2(h,p,d)),j=-1)}return{x:f,y:m,placement:p,strategy:s,middlewareData:g}};async function fu(t,n){var r;n===void 0&&(n={});const{x:i,y:s,platform:a,rects:o,elements:c,strategy:d}=t,{boundary:h="clippingAncestors",rootBoundary:f="viewport",elementContext:m="floating",altBoundary:p=!1,padding:g=0}=Yi(n,t),b=QE(g),v=c[p?m==="floating"?"reference":"floating":m],x=ef(await a.getClippingRect({element:(r=await(a.isElement==null?void 0:a.isElement(v)))==null||r?v:v.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(c.floating)),boundary:h,rootBoundary:f,strategy:d})),k=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)),N=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=ef(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:k,offsetParent:w,strategy:d}):k);return{top:(x.top-A.top+b.top)/N.y,bottom:(A.bottom-x.bottom+b.bottom)/N.y,left:(x.left-A.left+b.left)/N.x,right:(A.right-x.right+b.right)/N.x}}const CU=t=>({name:"arrow",options:t,async fn(n){const{x:r,y:i,placement:s,rects:a,platform:o,elements:c,middlewareData:d}=n,{element:h,padding:f=0}=Yi(t,n)||{};if(h==null)return{};const m=QE(f),p={x:r,y:i},g=eb(s),b=Zy(g),j=await o.getDimensions(h),v=g==="y",x=v?"top":"left",k=v?"bottom":"right",w=v?"clientHeight":"clientWidth",N=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(h));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=N/2-A/2,B=E/2-j[b]/2-1,F=Qs(m[x],B),D=Qs(m[k],B),I=F,z=E-j[b]-D,q=E/2-j[b]/2+C,U=w0(I,q,z),Q=!d.arrow&&Al(s)!=null&&q!==U&&a.reference[b]/2-(q<I?F:D)-j[b]/2<0,H=Q?q<I?q-I:q-z:0;return{[g]:p[g]+H,data:{[g]:U,centerOffset:q-U-H,...Q&&{alignmentOffset:H}},reset:Q}}}),EU=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(n){var r,i;const{placement:s,middlewareData:a,rects:o,initialPlacement:c,platform:d,elements:h}=n,{mainAxis:f=!0,crossAxis:m=!0,fallbackPlacements:p,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:b="none",flipAlignment:j=!0,...v}=Yi(t,n);if((r=a.arrow)!=null&&r.alignmentOffset)return{};const x=Xi(s),k=di(c),w=Xi(c)===c,N=await(d.isRTL==null?void 0:d.isRTL(h.floating)),A=p||(w||!j?[Zh(c)]:jU(c)),S=b!=="none";!p&&S&&A.push(..._U(c,j,b,N));const E=[c,...A],C=await fu(n,v),B=[];let F=((i=a.flip)==null?void 0:i.overflows)||[];if(f&&B.push(C[x]),m){const q=bU(s,o,N);B.push(C[q[0]],C[q[1]])}if(F=[...F,{placement:s,overflows:B}],!B.every(q=>q<=0)){var D,I;const q=(((D=a.flip)==null?void 0:D.index)||0)+1,U=E[q];if(U&&(!(m==="alignment"?k!==di(U):!1)||F.every(K=>di(K.placement)===k?K.overflows[0]>0:!0)))return{data:{index:q,overflows:F},reset:{placement:U}};let Q=(I=F.filter(H=>H.overflows[0]<=0).sort((H,K)=>H.overflows[1]-K.overflows[1])[0])==null?void 0:I.placement;if(!Q)switch(g){case"bestFit":{var z;const H=(z=F.filter(K=>{if(S){const Y=di(K.placement);return Y===k||Y==="y"}return!0}).map(K=>[K.placement,K.overflows.filter(Y=>Y>0).reduce((Y,P)=>Y+P,0)]).sort((K,Y)=>K[1]-Y[1])[0])==null?void 0:z[0];H&&(Q=H);break}case"initialPlacement":Q=c;break}if(s!==Q)return{reset:{placement:Q}}}return{}}}};function u2(t,n){return{top:t.top-n.height,right:t.right-n.width,bottom:t.bottom-n.height,left:t.left-n.width}}function d2(t){return gU.some(n=>t[n]>=0)}const TU=function(t){return t===void 0&&(t={}),{name:"hide",options:t,async fn(n){const{rects:r}=n,{strategy:i="referenceHidden",...s}=Yi(t,n);switch(i){case"referenceHidden":{const a=await fu(n,{...s,elementContext:"reference"}),o=u2(a,r.reference);return{data:{referenceHiddenOffsets:o,referenceHidden:d2(o)}}}case"escaped":{const a=await fu(n,{...s,altBoundary:!0}),o=u2(a,r.floating);return{data:{escapedOffsets:o,escaped:d2(o)}}}default:return{}}}}},YE=new Set(["left","top"]);async function OU(t,n){const{placement:r,platform:i,elements:s}=t,a=await(i.isRTL==null?void 0:i.isRTL(s.floating)),o=Xi(r),c=Al(r),d=di(r)==="y",h=YE.has(o)?-1:1,f=a&&d?-1:1,m=Yi(n,t);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*f,y:p*h}:{x:p*h,y:g*f}}const PU=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(n){var r,i;const{x:s,y:a,placement:o,middlewareData:c}=n,d=await OU(n,t);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}}}}},DU=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(n){const{x:r,y:i,placement:s}=n,{mainAxis:a=!0,crossAxis:o=!1,limiter:c={fn:v=>{let{x,y:k}=v;return{x,y:k}}},...d}=Yi(t,n),h={x:r,y:i},f=await fu(n,d),m=di(Xi(s)),p=Jy(m);let g=h[p],b=h[m];if(a){const v=p==="y"?"top":"left",x=p==="y"?"bottom":"right",k=g+f[v],w=g-f[x];g=w0(k,g,w)}if(o){const v=m==="y"?"top":"left",x=m==="y"?"bottom":"right",k=b+f[v],w=b-f[x];b=w0(k,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}}}}}},IU=function(t){return t===void 0&&(t={}),{options:t,fn(n){const{x:r,y:i,placement:s,rects:a,middlewareData:o}=n,{offset:c=0,mainAxis:d=!0,crossAxis:h=!0}=Yi(t,n),f={x:r,y:i},m=di(s),p=Jy(m);let g=f[p],b=f[m];const j=Yi(c,n),v=typeof j=="number"?{mainAxis:j,crossAxis:0}:{mainAxis:0,crossAxis:0,...j};if(d){const w=p==="y"?"height":"width",N=a.reference[p]-a.floating[w]+v.mainAxis,A=a.reference[p]+a.reference[w]-v.mainAxis;g<N?g=N:g>A&&(g=A)}if(h){var x,k;const w=p==="y"?"width":"height",N=YE.has(Xi(s)),A=a.reference[m]-a.floating[w]+(N&&((x=o.offset)==null?void 0:x[m])||0)+(N?0:v.crossAxis),S=a.reference[m]+a.reference[w]+(N?0:((k=o.offset)==null?void 0:k[m])||0)-(N?v.crossAxis:0);b<A?b=A:b>S&&(b=S)}return{[p]:g,[m]:b}}}},RU=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(n){var r,i;const{placement:s,rects:a,platform:o,elements:c}=n,{apply:d=()=>{},...h}=Yi(t,n),f=await fu(n,h),m=Xi(s),p=Al(s),g=di(s)==="y",{width:b,height:j}=a.floating;let v,x;m==="top"||m==="bottom"?(v=m,x=p===(await(o.isRTL==null?void 0:o.isRTL(c.floating))?"start":"end")?"left":"right"):(x=m,v=p==="end"?"top":"bottom");const k=j-f.top-f.bottom,w=b-f.left-f.right,N=Qs(j-f[v],k),A=Qs(b-f[x],w),S=!n.middlewareData.shift;let E=N,C=A;if((r=n.middlewareData.shift)!=null&&r.enabled.x&&(C=w),(i=n.middlewareData.shift)!=null&&i.enabled.y&&(E=k),S&&!p){const F=ur(f.left,0),D=ur(f.right,0),I=ur(f.top,0),z=ur(f.bottom,0);g?C=b-2*(F!==0||D!==0?F+D:ur(f.left,f.right)):E=j-2*(I!==0||z!==0?I+z:ur(f.top,f.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 Sf(){return typeof window<"u"}function Cl(t){return XE(t)?(t.nodeName||"").toLowerCase():"#document"}function mr(t){var n;return(t==null||(n=t.ownerDocument)==null?void 0:n.defaultView)||window}function Si(t){var n;return(n=(XE(t)?t.ownerDocument:t.document)||window.document)==null?void 0:n.documentElement}function XE(t){return Sf()?t instanceof Node||t instanceof mr(t).Node:!1}function Wr(t){return Sf()?t instanceof Element||t instanceof mr(t).Element:!1}function ji(t){return Sf()?t instanceof HTMLElement||t instanceof mr(t).HTMLElement:!1}function h2(t){return!Sf()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof mr(t).ShadowRoot}const FU=new Set(["inline","contents"]);function Lu(t){const{overflow:n,overflowX:r,overflowY:i,display:s}=Kr(t);return/auto|scroll|overlay|hidden|clip/.test(n+i+r)&&!FU.has(s)}const MU=new Set(["table","td","th"]);function LU(t){return MU.has(Cl(t))}const BU=[":popover-open",":modal"];function Af(t){return BU.some(n=>{try{return t.matches(n)}catch{return!1}})}const zU=["transform","translate","scale","rotate","perspective"],qU=["transform","translate","scale","rotate","perspective","filter"],VU=["paint","layout","strict","content"];function tb(t){const n=nb(),r=Wr(t)?Kr(t):t;return zU.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)||qU.some(i=>(r.willChange||"").includes(i))||VU.some(i=>(r.contain||"").includes(i))}function UU(t){let n=Ys(t);for(;ji(n)&&!pl(n);){if(tb(n))return n;if(Af(n))return null;n=Ys(n)}return null}function nb(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const $U=new Set(["html","body","#document"]);function pl(t){return $U.has(Cl(t))}function Kr(t){return mr(t).getComputedStyle(t)}function Cf(t){return Wr(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function Ys(t){if(Cl(t)==="html")return t;const n=t.assignedSlot||t.parentNode||h2(t)&&t.host||Si(t);return h2(n)?n.host:n}function JE(t){const n=Ys(t);return pl(n)?t.ownerDocument?t.ownerDocument.body:t.body:ji(n)&&Lu(n)?n:JE(n)}function mu(t,n,r){var i;n===void 0&&(n=[]),r===void 0&&(r=!0);const s=JE(t),a=s===((i=t.ownerDocument)==null?void 0:i.body),o=mr(s);if(a){const c=N0(o);return n.concat(o,o.visualViewport||[],Lu(s)?s:[],c&&r?mu(c):[])}return n.concat(s,mu(s,[],r))}function N0(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function ZE(t){const n=Kr(t);let r=parseFloat(n.width)||0,i=parseFloat(n.height)||0;const s=ji(t),a=s?t.offsetWidth:r,o=s?t.offsetHeight:i,c=Jh(r)!==a||Jh(i)!==o;return c&&(r=a,i=o),{width:r,height:i,$:c}}function rb(t){return Wr(t)?t:t.contextElement}function Ko(t){const n=rb(t);if(!ji(n))return vi(1);const r=n.getBoundingClientRect(),{width:i,height:s,$:a}=ZE(n);let o=(a?Jh(r.width):r.width)/i,c=(a?Jh(r.height):r.height)/s;return(!o||!Number.isFinite(o))&&(o=1),(!c||!Number.isFinite(c))&&(c=1),{x:o,y:c}}const HU=vi(0);function eT(t){const n=mr(t);return!nb()||!n.visualViewport?HU:{x:n.visualViewport.offsetLeft,y:n.visualViewport.offsetTop}}function WU(t,n,r){return n===void 0&&(n=!1),!r||n&&r!==mr(t)?!1:n}function Ka(t,n,r,i){n===void 0&&(n=!1),r===void 0&&(r=!1);const s=t.getBoundingClientRect(),a=rb(t);let o=vi(1);n&&(i?Wr(i)&&(o=Ko(i)):o=Ko(t));const c=WU(a,r,i)?eT(a):vi(0);let d=(s.left+c.x)/o.x,h=(s.top+c.y)/o.y,f=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=N0(b);for(;j&&i&&g!==b;){const v=Ko(j),x=j.getBoundingClientRect(),k=Kr(j),w=x.left+(j.clientLeft+parseFloat(k.paddingLeft))*v.x,N=x.top+(j.clientTop+parseFloat(k.paddingTop))*v.y;d*=v.x,h*=v.y,f*=v.x,m*=v.y,d+=w,h+=N,b=mr(j),j=N0(b)}}return ef({width:f,height:m,x:d,y:h})}function Ef(t,n){const r=Cf(t).scrollLeft;return n?n.left+r:Ka(Si(t)).left+r}function tT(t,n){const r=t.getBoundingClientRect(),i=r.left+n.scrollLeft-Ef(t,r),s=r.top+n.scrollTop;return{x:i,y:s}}function KU(t){let{elements:n,rect:r,offsetParent:i,strategy:s}=t;const a=s==="fixed",o=Si(i),c=n?Af(n.floating):!1;if(i===o||c&&a)return r;let d={scrollLeft:0,scrollTop:0},h=vi(1);const f=vi(0),m=ji(i);if((m||!m&&!a)&&((Cl(i)!=="body"||Lu(o))&&(d=Cf(i)),ji(i))){const g=Ka(i);h=Ko(i),f.x=g.x+i.clientLeft,f.y=g.y+i.clientTop}const p=o&&!m&&!a?tT(o,d):vi(0);return{width:r.width*h.x,height:r.height*h.y,x:r.x*h.x-d.scrollLeft*h.x+f.x+p.x,y:r.y*h.y-d.scrollTop*h.y+f.y+p.y}}function GU(t){return Array.from(t.getClientRects())}function QU(t){const n=Si(t),r=Cf(t),i=t.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+Ef(t);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 f2=25;function YU(t,n){const r=mr(t),i=Si(t),s=r.visualViewport;let a=i.clientWidth,o=i.clientHeight,c=0,d=0;if(s){a=s.width,o=s.height;const f=nb();(!f||f&&n==="fixed")&&(c=s.offsetLeft,d=s.offsetTop)}const h=Ef(i);if(h<=0){const f=i.ownerDocument,m=f.body,p=getComputedStyle(m),g=f.compatMode==="CSS1Compat"&&parseFloat(p.marginLeft)+parseFloat(p.marginRight)||0,b=Math.abs(i.clientWidth-m.clientWidth-g);b<=f2&&(a-=b)}else h<=f2&&(a+=h);return{width:a,height:o,x:c,y:d}}const XU=new Set(["absolute","fixed"]);function JU(t,n){const r=Ka(t,!0,n==="fixed"),i=r.top+t.clientTop,s=r.left+t.clientLeft,a=ji(t)?Ko(t):vi(1),o=t.clientWidth*a.x,c=t.clientHeight*a.y,d=s*a.x,h=i*a.y;return{width:o,height:c,x:d,y:h}}function m2(t,n,r){let i;if(n==="viewport")i=YU(t,r);else if(n==="document")i=QU(Si(t));else if(Wr(n))i=JU(n,r);else{const s=eT(t);i={x:n.x-s.x,y:n.y-s.y,width:n.width,height:n.height}}return ef(i)}function nT(t,n){const r=Ys(t);return r===n||!Wr(r)||pl(r)?!1:Kr(r).position==="fixed"||nT(r,n)}function ZU(t,n){const r=n.get(t);if(r)return r;let i=mu(t,[],!1).filter(c=>Wr(c)&&Cl(c)!=="body"),s=null;const a=Kr(t).position==="fixed";let o=a?Ys(t):t;for(;Wr(o)&&!pl(o);){const c=Kr(o),d=tb(o);!d&&c.position==="fixed"&&(s=null),(a?!d&&!s:!d&&c.position==="static"&&!!s&&XU.has(s.position)||Lu(o)&&!d&&nT(t,o))?i=i.filter(f=>f!==o):s=c,o=Ys(o)}return n.set(t,i),i}function e$(t){let{element:n,boundary:r,rootBoundary:i,strategy:s}=t;const o=[...r==="clippingAncestors"?Af(n)?[]:ZU(n,this._c):[].concat(r),i],c=o[0],d=o.reduce((h,f)=>{const m=m2(n,f,s);return h.top=ur(m.top,h.top),h.right=Qs(m.right,h.right),h.bottom=Qs(m.bottom,h.bottom),h.left=ur(m.left,h.left),h},m2(n,c,s));return{width:d.right-d.left,height:d.bottom-d.top,x:d.left,y:d.top}}function t$(t){const{width:n,height:r}=ZE(t);return{width:n,height:r}}function n$(t,n,r){const i=ji(n),s=Si(n),a=r==="fixed",o=Ka(t,!0,a,n);let c={scrollLeft:0,scrollTop:0};const d=vi(0);function h(){d.x=Ef(s)}if(i||!i&&!a)if((Cl(n)!=="body"||Lu(s))&&(c=Cf(n)),i){const g=Ka(n,!0,a,n);d.x=g.x+n.clientLeft,d.y=g.y+n.clientTop}else s&&h();a&&!i&&s&&h();const f=s&&!i&&!a?tT(s,c):vi(0),m=o.left+c.scrollLeft-d.x-f.x,p=o.top+c.scrollTop-d.y-f.y;return{x:m,y:p,width:o.width,height:o.height}}function gg(t){return Kr(t).position==="static"}function p2(t,n){if(!ji(t)||Kr(t).position==="fixed")return null;if(n)return n(t);let r=t.offsetParent;return Si(t)===r&&(r=r.ownerDocument.body),r}function rT(t,n){const r=mr(t);if(Af(t))return r;if(!ji(t)){let s=Ys(t);for(;s&&!pl(s);){if(Wr(s)&&!gg(s))return s;s=Ys(s)}return r}let i=p2(t,n);for(;i&&LU(i)&&gg(i);)i=p2(i,n);return i&&pl(i)&&gg(i)&&!tb(i)?r:i||UU(t)||r}const r$=async function(t){const n=this.getOffsetParent||rT,r=this.getDimensions,i=await r(t.floating);return{reference:n$(t.reference,await n(t.floating),t.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function i$(t){return Kr(t).direction==="rtl"}const s$={convertOffsetParentRelativeRectToViewportRelativeRect:KU,getDocumentElement:Si,getClippingRect:e$,getOffsetParent:rT,getElementRects:r$,getClientRects:GU,getDimensions:t$,getScale:Ko,isElement:Wr,isRTL:i$};function iT(t,n){return t.x===n.x&&t.y===n.y&&t.width===n.width&&t.height===n.height}function a$(t,n){let r=null,i;const s=Si(t);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 h=t.getBoundingClientRect(),{left:f,top:m,width:p,height:g}=h;if(c||n(),!p||!g)return;const b=uh(m),j=uh(s.clientWidth-(f+p)),v=uh(s.clientHeight-(m+g)),x=uh(f),w={rootMargin:-b+"px "+-j+"px "+-v+"px "+-x+"px",threshold:ur(0,Qs(1,d))||1};let N=!0;function A(S){const E=S[0].intersectionRatio;if(E!==d){if(!N)return o();E?o(!1,E):i=setTimeout(()=>{o(!1,1e-7)},1e3)}E===1&&!iT(h,t.getBoundingClientRect())&&o(),N=!1}try{r=new IntersectionObserver(A,{...w,root:s.ownerDocument})}catch{r=new IntersectionObserver(A,w)}r.observe(t)}return o(!0),a}function o$(t,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,h=rb(t),f=s||a?[...h?mu(h):[],...mu(n)]:[];f.forEach(x=>{s&&x.addEventListener("scroll",r,{passive:!0}),a&&x.addEventListener("resize",r)});const m=h&&c?a$(h,r):null;let p=-1,g=null;o&&(g=new ResizeObserver(x=>{let[k]=x;k&&k.target===h&&g&&(g.unobserve(n),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var w;(w=g)==null||w.observe(n)})),r()}),h&&!d&&g.observe(h),g.observe(n));let b,j=d?Ka(t):null;d&&v();function v(){const x=Ka(t);j&&!iT(j,x)&&r(),j=x,b=requestAnimationFrame(v)}return r(),()=>{var x;f.forEach(k=>{s&&k.removeEventListener("scroll",r),a&&k.removeEventListener("resize",r)}),m==null||m(),(x=g)==null||x.disconnect(),g=null,d&&cancelAnimationFrame(b)}}const l$=PU,c$=DU,u$=EU,d$=RU,h$=TU,g2=CU,f$=IU,m$=(t,n,r)=>{const i=new Map,s={platform:s$,...r},a={...s.platform,_c:i};return AU(t,n,{...s,platform:a})};var p$=typeof document<"u",g$=function(){},Ih=p$?R.useLayoutEffect:g$;function tf(t,n){if(t===n)return!0;if(typeof t!=typeof n)return!1;if(typeof t=="function"&&t.toString()===n.toString())return!0;let r,i,s;if(t&&n&&typeof t=="object"){if(Array.isArray(t)){if(r=t.length,r!==n.length)return!1;for(i=r;i--!==0;)if(!tf(t[i],n[i]))return!1;return!0}if(s=Object.keys(t),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"&&t.$$typeof)&&!tf(t[a],n[a]))return!1}return!0}return t!==t&&n!==n}function sT(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function x2(t,n){const r=sT(t);return Math.round(n*r)/r}function xg(t){const n=R.useRef(t);return Ih(()=>{n.current=t}),n}function x$(t){t===void 0&&(t={});const{placement:n="bottom",strategy:r="absolute",middleware:i=[],platform:s,elements:{reference:a,floating:o}={},transform:c=!0,whileElementsMounted:d,open:h}=t,[f,m]=R.useState({x:0,y:0,strategy:r,placement:n,middlewareData:{},isPositioned:!1}),[p,g]=R.useState(i);tf(p,i)||g(i);const[b,j]=R.useState(null),[v,x]=R.useState(null),k=R.useCallback(K=>{K!==S.current&&(S.current=K,j(K))},[]),w=R.useCallback(K=>{K!==E.current&&(E.current=K,x(K))},[]),N=a||b,A=o||v,S=R.useRef(null),E=R.useRef(null),C=R.useRef(f),B=d!=null,F=xg(d),D=xg(s),I=xg(h),z=R.useCallback(()=>{if(!S.current||!E.current)return;const K={placement:n,strategy:r,middleware:p};D.current&&(K.platform=D.current),m$(S.current,E.current,K).then(Y=>{const P={...Y,isPositioned:I.current!==!1};q.current&&!tf(C.current,P)&&(C.current=P,Su.flushSync(()=>{m(P)}))})},[p,n,r,D,I]);Ih(()=>{h===!1&&C.current.isPositioned&&(C.current.isPositioned=!1,m(K=>({...K,isPositioned:!1})))},[h]);const q=R.useRef(!1);Ih(()=>(q.current=!0,()=>{q.current=!1}),[]),Ih(()=>{if(N&&(S.current=N),A&&(E.current=A),N&&A){if(F.current)return F.current(N,A,z);z()}},[N,A,z,F,B]);const U=R.useMemo(()=>({reference:S,floating:E,setReference:k,setFloating:w}),[k,w]),Q=R.useMemo(()=>({reference:N,floating:A}),[N,A]),H=R.useMemo(()=>{const K={position:r,left:0,top:0};if(!Q.floating)return K;const Y=x2(Q.floating,f.x),P=x2(Q.floating,f.y);return c?{...K,transform:"translate("+Y+"px, "+P+"px)",...sT(Q.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:Y,top:P}},[r,c,Q.floating,f.x,f.y]);return R.useMemo(()=>({...f,update:z,refs:U,elements:Q,floatingStyles:H}),[f,z,U,Q,H])}const v$=t=>{function n(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:t,fn(r){const{element:i,padding:s}=typeof t=="function"?t(r):t;return i&&n(i)?i.current!=null?g2({element:i.current,padding:s}).fn(r):{}:i?g2({element:i,padding:s}).fn(r):{}}}},y$=(t,n)=>({...l$(t),options:[t,n]}),b$=(t,n)=>({...c$(t),options:[t,n]}),j$=(t,n)=>({...f$(t),options:[t,n]}),w$=(t,n)=>({...u$(t),options:[t,n]}),k$=(t,n)=>({...d$(t),options:[t,n]}),N$=(t,n)=>({...h$(t),options:[t,n]}),_$=(t,n)=>({...v$(t),options:[t,n]});var S$="Arrow",aT=R.forwardRef((t,n)=>{const{children:r,width:i=10,height:s=5,...a}=t;return e.jsx(jt.svg,{...a,ref:n,width:i,height:s,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:t.asChild?r:e.jsx("polygon",{points:"0,0 30,0 15,10"})})});aT.displayName=S$;var A$=aT;function ib(t){const[n,r]=R.useState(void 0);return Rn(()=>{if(t){r({width:t.offsetWidth,height:t.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,h=Array.isArray(d)?d[0]:d;o=h.inlineSize,c=h.blockSize}else o=t.offsetWidth,c=t.offsetHeight;r({width:o,height:c})});return i.observe(t,{box:"border-box"}),()=>i.unobserve(t)}else r(void 0)},[t]),n}var sb="Popper",[oT,lT]=to(sb),[C$,cT]=oT(sb),uT=t=>{const{__scopePopper:n,children:r}=t,[i,s]=R.useState(null);return e.jsx(C$,{scope:n,anchor:i,onAnchorChange:s,children:r})};uT.displayName=sb;var dT="PopperAnchor",hT=R.forwardRef((t,n)=>{const{__scopePopper:r,virtualRef:i,...s}=t,a=cT(dT,r),o=R.useRef(null),c=Yt(n,o),d=R.useRef(null);return R.useEffect(()=>{const h=d.current;d.current=(i==null?void 0:i.current)||o.current,h!==d.current&&a.onAnchorChange(d.current)}),i?null:e.jsx(jt.div,{...s,ref:c})});hT.displayName=dT;var ab="PopperContent",[E$,T$]=oT(ab),fT=R.forwardRef((t,n)=>{var G,ee,ne,le,ve,be;const{__scopePopper:r,side:i="bottom",sideOffset:s=0,align:a="center",alignOffset:o=0,arrowPadding:c=0,avoidCollisions:d=!0,collisionBoundary:h=[],collisionPadding:f=0,sticky:m="partial",hideWhenDetached:p=!1,updatePositionStrategy:g="optimized",onPlaced:b,...j}=t,v=cT(ab,r),[x,k]=R.useState(null),w=Yt(n,Oe=>k(Oe)),[N,A]=R.useState(null),S=ib(N),E=(S==null?void 0:S.width)??0,C=(S==null?void 0:S.height)??0,B=i+(a!=="center"?"-"+a:""),F=typeof f=="number"?f:{top:0,right:0,bottom:0,left:0,...f},D=Array.isArray(h)?h:[h],I=D.length>0,z={padding:F,boundary:D.filter(P$),altBoundary:I},{refs:q,floatingStyles:U,placement:Q,isPositioned:H,middlewareData:K}=x$({strategy:"fixed",placement:B,whileElementsMounted:(...Oe)=>o$(...Oe,{animationFrame:g==="always"}),elements:{reference:v.anchor},middleware:[y$({mainAxis:s+C,alignmentAxis:o}),d&&b$({mainAxis:!0,crossAxis:!1,limiter:m==="partial"?j$():void 0,...z}),d&&w$({...z}),k$({...z,apply:({elements:Oe,rects:Te,availableWidth:We,availableHeight:ut})=>{const{width:nt,height:ge}=Te.reference,ye=Oe.floating.style;ye.setProperty("--radix-popper-available-width",`${We}px`),ye.setProperty("--radix-popper-available-height",`${ut}px`),ye.setProperty("--radix-popper-anchor-width",`${nt}px`),ye.setProperty("--radix-popper-anchor-height",`${ge}px`)}}),N&&_$({element:N,padding:c}),D$({arrowWidth:E,arrowHeight:C}),p&&N$({strategy:"referenceHidden",...z})]}),[Y,P]=gT(Q),T=Gs(b);Rn(()=>{H&&(T==null||T())},[H,T]);const V=(G=K.arrow)==null?void 0:G.x,L=(ee=K.arrow)==null?void 0:ee.y,X=((ne=K.arrow)==null?void 0:ne.centerOffset)!==0,[J,W]=R.useState();return Rn(()=>{x&&W(window.getComputedStyle(x).zIndex)},[x]),e.jsx("div",{ref:q.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,(ve=K.transformOrigin)==null?void 0:ve.y].join(" "),...((be=K.hide)==null?void 0:be.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:t.dir,children:e.jsx(E$,{scope:r,placedSide:Y,onArrowChange:A,arrowX:V,arrowY:L,shouldHideArrow:X,children:e.jsx(jt.div,{"data-side":Y,"data-align":P,...j,ref:w,style:{...j.style,animation:H?void 0:"none"}})})})});fT.displayName=ab;var mT="PopperArrow",O$={top:"bottom",right:"left",bottom:"top",left:"right"},pT=R.forwardRef(function(n,r){const{__scopePopper:i,...s}=n,a=T$(mT,i),o=O$[a.placedSide];return e.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:e.jsx(A$,{...s,ref:r,style:{...s.style,display:"block"}})})});pT.displayName=mT;function P$(t){return t!==null}var D$=t=>({name:"transformOrigin",options:t,fn(n){var v,x,k;const{placement:r,rects:i,middlewareData:s}=n,o=((v=s.arrow)==null?void 0:v.centerOffset)!==0,c=o?0:t.arrowWidth,d=o?0:t.arrowHeight,[h,f]=gT(r),m={start:"0%",center:"50%",end:"100%"}[f],p=(((x=s.arrow)==null?void 0:x.x)??0)+c/2,g=(((k=s.arrow)==null?void 0:k.y)??0)+d/2;let b="",j="";return h==="bottom"?(b=o?m:`${p}px`,j=`${-d}px`):h==="top"?(b=o?m:`${p}px`,j=`${i.floating.height+d}px`):h==="right"?(b=`${-d}px`,j=o?m:`${g}px`):h==="left"&&(b=`${i.floating.width+d}px`,j=o?m:`${g}px`),{data:{x:b,y:j}}}});function gT(t){const[n,r="center"]=t.split("-");return[n,r]}var I$=uT,R$=hT,F$=fT,M$=pT,L$="Portal",xT=R.forwardRef((t,n)=>{var c;const{container:r,...i}=t,[s,a]=R.useState(!1);Rn(()=>a(!0),[]);const o=r||s&&((c=globalThis==null?void 0:globalThis.document)==null?void 0:c.body);return o?zI.createPortal(e.jsx(jt.div,{...i,ref:n}),o):null});xT.displayName=L$;var B$=J0[" useInsertionEffect ".trim().toString()]||Rn;function gl({prop:t,defaultProp:n,onChange:r=()=>{},caller:i}){const[s,a,o]=z$({defaultProp:n,onChange:r}),c=t!==void 0,d=c?t:s;{const f=R.useRef(t!==void 0);R.useEffect(()=>{const m=f.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.`),f.current=c},[c,i])}const h=R.useCallback(f=>{var m;if(c){const p=q$(f)?f(t):f;p!==t&&((m=o.current)==null||m.call(o,p))}else a(f)},[c,t,a,o]);return[d,h]}function z$({defaultProp:t,onChange:n}){const[r,i]=R.useState(t),s=R.useRef(r),a=R.useRef(n);return B$(()=>{a.current=n},[n]),R.useEffect(()=>{var o;s.current!==r&&((o=a.current)==null||o.call(a,r),s.current=r)},[r,s]),[r,i,a]}function q$(t){return typeof t=="function"}function ob(t){const n=R.useRef({value:t,previous:t});return R.useMemo(()=>(n.current.value!==t&&(n.current.previous=n.current.value,n.current.value=t),n.current.previous),[t])}var vT=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"}),V$="VisuallyHidden",U$=R.forwardRef((t,n)=>e.jsx(jt.span,{...t,ref:n,style:{...vT,...t.style}}));U$.displayName=V$;var $$=function(t){if(typeof document>"u")return null;var n=Array.isArray(t)?t[0]:t;return n.ownerDocument.body},Oo=new WeakMap,dh=new WeakMap,hh={},vg=0,yT=function(t){return t&&(t.host||yT(t.parentNode))},H$=function(t,n){return n.map(function(r){if(t.contains(r))return r;var i=yT(r);return i&&t.contains(i)?i:(console.error("aria-hidden",r,"in not contained inside",t,". Doing nothing"),null)}).filter(function(r){return!!r})},W$=function(t,n,r,i){var s=H$(n,Array.isArray(t)?t:[t]);hh[r]||(hh[r]=new WeakMap);var a=hh[r],o=[],c=new Set,d=new Set(s),h=function(m){!m||c.has(m)||(c.add(m),h(m.parentNode))};s.forEach(h);var f=function(m){!m||d.has(m)||Array.prototype.forEach.call(m.children,function(p){if(c.has(p))f(p);else try{var g=p.getAttribute(i),b=g!==null&&g!=="false",j=(Oo.get(p)||0)+1,v=(a.get(p)||0)+1;Oo.set(p,j),a.set(p,v),o.push(p),j===1&&b&&dh.set(p,!0),v===1&&p.setAttribute(r,"true"),b||p.setAttribute(i,"true")}catch(x){console.error("aria-hidden: cannot operate on ",p,x)}})};return f(n),c.clear(),vg++,function(){o.forEach(function(m){var p=Oo.get(m)-1,g=a.get(m)-1;Oo.set(m,p),a.set(m,g),p||(dh.has(m)||m.removeAttribute(i),dh.delete(m)),g||m.removeAttribute(r)}),vg--,vg||(Oo=new WeakMap,Oo=new WeakMap,dh=new WeakMap,hh={})}},K$=function(t,n,r){r===void 0&&(r="data-aria-hidden");var i=Array.from(Array.isArray(t)?t:[t]),s=$$(t);return s?(i.push.apply(i,Array.from(s.querySelectorAll("[aria-live], script"))),W$(i,s,r,"aria-hidden")):function(){return null}},li=function(){return li=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},li.apply(this,arguments)};function bT(t,n){var r={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&n.indexOf(i)<0&&(r[i]=t[i]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,i=Object.getOwnPropertySymbols(t);s<i.length;s++)n.indexOf(i[s])<0&&Object.prototype.propertyIsEnumerable.call(t,i[s])&&(r[i[s]]=t[i[s]]);return r}function G$(t,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 t.concat(a||Array.prototype.slice.call(n))}var Rh="right-scroll-bar-position",Fh="width-before-scroll-bar",Q$="with-scroll-bars-hidden",Y$="--removed-body-scroll-bar-size";function yg(t,n){return typeof t=="function"?t(n):t&&(t.current=n),t}function X$(t,n){var r=R.useState(function(){return{value:t,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 J$=typeof window<"u"?R.useLayoutEffect:R.useEffect,v2=new WeakMap;function Z$(t,n){var r=X$(null,function(i){return t.forEach(function(s){return yg(s,i)})});return J$(function(){var i=v2.get(r);if(i){var s=new Set(i),a=new Set(t),o=r.current;s.forEach(function(c){a.has(c)||yg(c,null)}),a.forEach(function(c){s.has(c)||yg(c,o)})}v2.set(r,t)},[t]),r}function eH(t){return t}function tH(t,n){n===void 0&&(n=eH);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]:t},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 f=o;o=[],f.forEach(a)},h=function(){return Promise.resolve().then(d)};h(),r={push:function(f){o.push(f),h()},filter:function(f){return o=o.filter(f),r}}}};return s}function nH(t){t===void 0&&(t={});var n=tH(null);return n.options=li({async:!0,ssr:!1},t),n}var jT=function(t){var n=t.sideCar,r=bT(t,["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 R.createElement(i,li({},r))};jT.isSideCarExport=!0;function rH(t,n){return t.useMedium(n),jT}var wT=nH(),bg=function(){},Tf=R.forwardRef(function(t,n){var r=R.useRef(null),i=R.useState({onScrollCapture:bg,onWheelCapture:bg,onTouchMoveCapture:bg}),s=i[0],a=i[1],o=t.forwardProps,c=t.children,d=t.className,h=t.removeScrollBar,f=t.enabled,m=t.shards,p=t.sideCar,g=t.noRelative,b=t.noIsolation,j=t.inert,v=t.allowPinchZoom,x=t.as,k=x===void 0?"div":x,w=t.gapMode,N=bT(t,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),A=p,S=Z$([r,n]),E=li(li({},N),s);return R.createElement(R.Fragment,null,f&&R.createElement(A,{sideCar:wT,removeScrollBar:h,shards:m,noRelative:g,noIsolation:b,inert:j,setCallbacks:a,allowPinchZoom:!!v,lockRef:r,gapMode:w}),o?R.cloneElement(R.Children.only(c),li(li({},E),{ref:S})):R.createElement(k,li({},E,{className:d,ref:S}),c))});Tf.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Tf.classNames={fullWidth:Fh,zeroRight:Rh};var iH=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function sH(){if(!document)return null;var t=document.createElement("style");t.type="text/css";var n=iH();return n&&t.setAttribute("nonce",n),t}function aH(t,n){t.styleSheet?t.styleSheet.cssText=n:t.appendChild(document.createTextNode(n))}function oH(t){var n=document.head||document.getElementsByTagName("head")[0];n.appendChild(t)}var lH=function(){var t=0,n=null;return{add:function(r){t==0&&(n=sH())&&(aH(n,r),oH(n)),t++},remove:function(){t--,!t&&n&&(n.parentNode&&n.parentNode.removeChild(n),n=null)}}},cH=function(){var t=lH();return function(n,r){R.useEffect(function(){return t.add(n),function(){t.remove()}},[n&&r])}},kT=function(){var t=cH(),n=function(r){var i=r.styles,s=r.dynamic;return t(i,s),null};return n},uH={left:0,top:0,right:0,gap:0},jg=function(t){return parseInt(t||"",10)||0},dH=function(t){var n=window.getComputedStyle(document.body),r=n[t==="padding"?"paddingLeft":"marginLeft"],i=n[t==="padding"?"paddingTop":"marginTop"],s=n[t==="padding"?"paddingRight":"marginRight"];return[jg(r),jg(i),jg(s)]},hH=function(t){if(t===void 0&&(t="margin"),typeof window>"u")return uH;var n=dH(t),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])}},fH=kT(),Go="data-scroll-locked",mH=function(t,n,r,i){var s=t.left,a=t.top,o=t.right,c=t.gap;return r===void 0&&(r="margin"),`
  .`.concat(Q$,` {
   overflow: hidden `).concat(i,`;
   padding-right: `).concat(c,"px ").concat(i,`;
  }
  body[`).concat(Go,`] {
    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(Rh,` {
    right: `).concat(c,"px ").concat(i,`;
  }
  
  .`).concat(Fh,` {
    margin-right: `).concat(c,"px ").concat(i,`;
  }
  
  .`).concat(Rh," .").concat(Rh,` {
    right: 0 `).concat(i,`;
  }
  
  .`).concat(Fh," .").concat(Fh,` {
    margin-right: 0 `).concat(i,`;
  }
  
  body[`).concat(Go,`] {
    `).concat(Y$,": ").concat(c,`px;
  }
`)},y2=function(){var t=parseInt(document.body.getAttribute(Go)||"0",10);return isFinite(t)?t:0},pH=function(){R.useEffect(function(){return document.body.setAttribute(Go,(y2()+1).toString()),function(){var t=y2()-1;t<=0?document.body.removeAttribute(Go):document.body.setAttribute(Go,t.toString())}},[])},gH=function(t){var n=t.noRelative,r=t.noImportant,i=t.gapMode,s=i===void 0?"margin":i;pH();var a=R.useMemo(function(){return hH(s)},[s]);return R.createElement(fH,{styles:mH(a,!n,s,r?"":"!important")})},_0=!1;if(typeof window<"u")try{var fh=Object.defineProperty({},"passive",{get:function(){return _0=!0,!0}});window.addEventListener("test",fh,fh),window.removeEventListener("test",fh,fh)}catch{_0=!1}var Po=_0?{passive:!1}:!1,xH=function(t){return t.tagName==="TEXTAREA"},NT=function(t,n){if(!(t instanceof Element))return!1;var r=window.getComputedStyle(t);return r[n]!=="hidden"&&!(r.overflowY===r.overflowX&&!xH(t)&&r[n]==="visible")},vH=function(t){return NT(t,"overflowY")},yH=function(t){return NT(t,"overflowX")},b2=function(t,n){var r=n.ownerDocument,i=n;do{typeof ShadowRoot<"u"&&i instanceof ShadowRoot&&(i=i.host);var s=_T(t,i);if(s){var a=ST(t,i),o=a[1],c=a[2];if(o>c)return!0}i=i.parentNode}while(i&&i!==r.body);return!1},bH=function(t){var n=t.scrollTop,r=t.scrollHeight,i=t.clientHeight;return[n,r,i]},jH=function(t){var n=t.scrollLeft,r=t.scrollWidth,i=t.clientWidth;return[n,r,i]},_T=function(t,n){return t==="v"?vH(n):yH(n)},ST=function(t,n){return t==="v"?bH(n):jH(n)},wH=function(t,n){return t==="h"&&n==="rtl"?-1:1},kH=function(t,n,r,i,s){var a=wH(t,window.getComputedStyle(n).direction),o=a*i,c=r.target,d=n.contains(c),h=!1,f=o>0,m=0,p=0;do{if(!c)break;var g=ST(t,c),b=g[0],j=g[1],v=g[2],x=j-v-a*b;(b||x)&&_T(t,c)&&(m+=x,p+=b);var k=c.parentNode;c=k&&k.nodeType===Node.DOCUMENT_FRAGMENT_NODE?k.host:k}while(!d&&c!==document.body||d&&(n.contains(c)||n===c));return(f&&Math.abs(m)<1||!f&&Math.abs(p)<1)&&(h=!0),h},mh=function(t){return"changedTouches"in t?[t.changedTouches[0].clientX,t.changedTouches[0].clientY]:[0,0]},j2=function(t){return[t.deltaX,t.deltaY]},w2=function(t){return t&&"current"in t?t.current:t},NH=function(t,n){return t[0]===n[0]&&t[1]===n[1]},_H=function(t){return`
  .block-interactivity-`.concat(t,` {pointer-events: none;}
  .allow-interactivity-`).concat(t,` {pointer-events: all;}
`)},SH=0,Do=[];function AH(t){var n=R.useRef([]),r=R.useRef([0,0]),i=R.useRef(),s=R.useState(SH++)[0],a=R.useState(kT)[0],o=R.useRef(t);R.useEffect(function(){o.current=t},[t]),R.useEffect(function(){if(t.inert){document.body.classList.add("block-interactivity-".concat(s));var j=G$([t.lockRef.current],(t.shards||[]).map(w2),!0).filter(Boolean);return j.forEach(function(v){return v.classList.add("allow-interactivity-".concat(s))}),function(){document.body.classList.remove("block-interactivity-".concat(s)),j.forEach(function(v){return v.classList.remove("allow-interactivity-".concat(s))})}}},[t.inert,t.lockRef.current,t.shards]);var c=R.useCallback(function(j,v){if("touches"in j&&j.touches.length===2||j.type==="wheel"&&j.ctrlKey)return!o.current.allowPinchZoom;var x=mh(j),k=r.current,w="deltaX"in j?j.deltaX:k[0]-x[0],N="deltaY"in j?j.deltaY:k[1]-x[1],A,S=j.target,E=Math.abs(w)>Math.abs(N)?"h":"v";if("touches"in j&&E==="h"&&S.type==="range")return!1;var C=b2(E,S);if(!C)return!0;if(C?A=E:(A=E==="v"?"h":"v",C=b2(E,S)),!C)return!1;if(!i.current&&"changedTouches"in j&&(w||N)&&(i.current=A),!A)return!0;var B=i.current||A;return kH(B,v,j,B==="h"?w:N)},[]),d=R.useCallback(function(j){var v=j;if(!(!Do.length||Do[Do.length-1]!==a)){var x="deltaY"in v?j2(v):mh(v),k=n.current.filter(function(A){return A.name===v.type&&(A.target===v.target||v.target===A.shadowParent)&&NH(A.delta,x)})[0];if(k&&k.should){v.cancelable&&v.preventDefault();return}if(!k){var w=(o.current.shards||[]).map(w2).filter(Boolean).filter(function(A){return A.contains(v.target)}),N=w.length>0?c(v,w[0]):!o.current.noIsolation;N&&v.cancelable&&v.preventDefault()}}},[]),h=R.useCallback(function(j,v,x,k){var w={name:j,delta:v,target:x,should:k,shadowParent:CH(x)};n.current.push(w),setTimeout(function(){n.current=n.current.filter(function(N){return N!==w})},1)},[]),f=R.useCallback(function(j){r.current=mh(j),i.current=void 0},[]),m=R.useCallback(function(j){h(j.type,j2(j),j.target,c(j,t.lockRef.current))},[]),p=R.useCallback(function(j){h(j.type,mh(j),j.target,c(j,t.lockRef.current))},[]);R.useEffect(function(){return Do.push(a),t.setCallbacks({onScrollCapture:m,onWheelCapture:m,onTouchMoveCapture:p}),document.addEventListener("wheel",d,Po),document.addEventListener("touchmove",d,Po),document.addEventListener("touchstart",f,Po),function(){Do=Do.filter(function(j){return j!==a}),document.removeEventListener("wheel",d,Po),document.removeEventListener("touchmove",d,Po),document.removeEventListener("touchstart",f,Po)}},[]);var g=t.removeScrollBar,b=t.inert;return R.createElement(R.Fragment,null,b?R.createElement(a,{styles:_H(s)}):null,g?R.createElement(gH,{noRelative:t.noRelative,gapMode:t.gapMode}):null)}function CH(t){for(var n=null;t!==null;)t instanceof ShadowRoot&&(n=t.host,t=t.host),t=t.parentNode;return n}const EH=rH(wT,AH);var AT=R.forwardRef(function(t,n){return R.createElement(Tf,li({},t,{ref:n,sideCar:EH}))});AT.classNames=Tf.classNames;var TH=[" ","Enter","ArrowUp","ArrowDown"],OH=[" ","Enter"],Ga="Select",[Of,Pf,PH]=UE(Ga),[El]=to(Ga,[PH,lT]),Df=lT(),[DH,Zs]=El(Ga),[IH,RH]=El(Ga),CT=t=>{const{__scopeSelect:n,children:r,open:i,defaultOpen:s,onOpenChange:a,value:o,defaultValue:c,onValueChange:d,dir:h,name:f,autoComplete:m,disabled:p,required:g,form:b}=t,j=Df(n),[v,x]=R.useState(null),[k,w]=R.useState(null),[N,A]=R.useState(!1),S=Xy(h),[E,C]=gl({prop:i,defaultProp:s??!1,onChange:a,caller:Ga}),[B,F]=gl({prop:o,defaultProp:c,onChange:d,caller:Ga}),D=R.useRef(null),I=v?b||!!v.closest("form"):!0,[z,q]=R.useState(new Set),U=Array.from(z).map(Q=>Q.props.value).join(";");return e.jsx(I$,{...j,children:e.jsxs(DH,{required:g,scope:n,trigger:v,onTriggerChange:x,valueNode:k,onValueNodeChange:w,valueNodeHasChildren:N,onValueNodeHasChildrenChange:A,contentId:Mu(),value:B,onValueChange:F,open:E,onOpenChange:C,dir:S,triggerPointerDownPosRef:D,disabled:p,children:[e.jsx(Of.Provider,{scope:n,children:e.jsx(IH,{scope:t.__scopeSelect,onNativeOptionAdd:R.useCallback(Q=>{q(H=>new Set(H).add(Q))},[]),onNativeOptionRemove:R.useCallback(Q=>{q(H=>{const K=new Set(H);return K.delete(Q),K})},[]),children:r})}),I?e.jsxs(JT,{"aria-hidden":!0,required:g,tabIndex:-1,name:f,autoComplete:m,value:B,onChange:Q=>F(Q.target.value),disabled:p,form:b,children:[B===void 0?e.jsx("option",{value:""}):null,Array.from(z)]},U):null]})})};CT.displayName=Ga;var ET="SelectTrigger",TT=R.forwardRef((t,n)=>{const{__scopeSelect:r,disabled:i=!1,...s}=t,a=Df(r),o=Zs(ET,r),c=o.disabled||i,d=Yt(n,o.onTriggerChange),h=Pf(r),f=R.useRef("touch"),[m,p,g]=e5(j=>{const v=h().filter(w=>!w.disabled),x=v.find(w=>w.value===o.value),k=t5(v,j,x);k!==void 0&&o.onValueChange(k.value)}),b=j=>{c||(o.onOpenChange(!0),g()),j&&(o.triggerPointerDownPosRef.current={x:Math.round(j.pageX),y:Math.round(j.pageY)})};return e.jsx(R$,{asChild:!0,...a,children:e.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":ZT(o.value)?"":void 0,...s,ref:d,onClick:bt(s.onClick,j=>{j.currentTarget.focus(),f.current!=="mouse"&&b(j)}),onPointerDown:bt(s.onPointerDown,j=>{f.current=j.pointerType;const v=j.target;v.hasPointerCapture(j.pointerId)&&v.releasePointerCapture(j.pointerId),j.button===0&&j.ctrlKey===!1&&j.pointerType==="mouse"&&(b(j),j.preventDefault())}),onKeyDown:bt(s.onKeyDown,j=>{const v=m.current!=="";!(j.ctrlKey||j.altKey||j.metaKey)&&j.key.length===1&&p(j.key),!(v&&j.key===" ")&&TH.includes(j.key)&&(b(),j.preventDefault())})})})});TT.displayName=ET;var OT="SelectValue",PT=R.forwardRef((t,n)=>{const{__scopeSelect:r,className:i,style:s,children:a,placeholder:o="",...c}=t,d=Zs(OT,r),{onValueNodeHasChildrenChange:h}=d,f=a!==void 0,m=Yt(n,d.onValueNodeChange);return Rn(()=>{h(f)},[h,f]),e.jsx(jt.span,{...c,ref:m,style:{pointerEvents:"none"},children:ZT(d.value)?e.jsx(e.Fragment,{children:o}):a})});PT.displayName=OT;var FH="SelectIcon",DT=R.forwardRef((t,n)=>{const{__scopeSelect:r,children:i,...s}=t;return e.jsx(jt.span,{"aria-hidden":!0,...s,ref:n,children:i||"â–¼"})});DT.displayName=FH;var MH="SelectPortal",IT=t=>e.jsx(xT,{asChild:!0,...t});IT.displayName=MH;var Qa="SelectContent",RT=R.forwardRef((t,n)=>{const r=Zs(Qa,t.__scopeSelect),[i,s]=R.useState();if(Rn(()=>{s(new DocumentFragment)},[]),!r.open){const a=i;return a?Su.createPortal(e.jsx(FT,{scope:t.__scopeSelect,children:e.jsx(Of.Slot,{scope:t.__scopeSelect,children:e.jsx("div",{children:t.children})})}),a):null}return e.jsx(MT,{...t,ref:n})});RT.displayName=Qa;var zr=10,[FT,ea]=El(Qa),LH="SelectContentImpl",BH=du("SelectContent.RemoveScroll"),MT=R.forwardRef((t,n)=>{const{__scopeSelect:r,position:i="item-aligned",onCloseAutoFocus:s,onEscapeKeyDown:a,onPointerDownOutside:o,side:c,sideOffset:d,align:h,alignOffset:f,arrowPadding:m,collisionBoundary:p,collisionPadding:g,sticky:b,hideWhenDetached:j,avoidCollisions:v,...x}=t,k=Zs(Qa,r),[w,N]=R.useState(null),[A,S]=R.useState(null),E=Yt(n,G=>N(G)),[C,B]=R.useState(null),[F,D]=R.useState(null),I=Pf(r),[z,q]=R.useState(!1),U=R.useRef(!1);R.useEffect(()=>{if(w)return K$(w)},[w]),aU();const Q=R.useCallback(G=>{const[ee,...ne]=I().map(be=>be.ref.current),[le]=ne.slice(-1),ve=document.activeElement;for(const be of G)if(be===ve||(be==null||be.scrollIntoView({block:"nearest"}),be===ee&&A&&(A.scrollTop=0),be===le&&A&&(A.scrollTop=A.scrollHeight),be==null||be.focus(),document.activeElement!==ve))return},[I,A]),H=R.useCallback(()=>Q([C,w]),[Q,C,w]);R.useEffect(()=>{z&&H()},[z,H]);const{onOpenChange:K,triggerPointerDownPosRef:Y}=k;R.useEffect(()=>{if(w){let G={x:0,y:0};const ee=le=>{var ve,be;G={x:Math.abs(Math.round(le.pageX)-(((ve=Y.current)==null?void 0:ve.x)??0)),y:Math.abs(Math.round(le.pageY)-(((be=Y.current)==null?void 0:be.y)??0))}},ne=le=>{G.x<=10&&G.y<=10?le.preventDefault():w.contains(le.target)||K(!1),document.removeEventListener("pointermove",ee),Y.current=null};return Y.current!==null&&(document.addEventListener("pointermove",ee),document.addEventListener("pointerup",ne,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",ee),document.removeEventListener("pointerup",ne,{capture:!0})}}},[w,K,Y]),R.useEffect(()=>{const G=()=>K(!1);return window.addEventListener("blur",G),window.addEventListener("resize",G),()=>{window.removeEventListener("blur",G),window.removeEventListener("resize",G)}},[K]);const[P,T]=e5(G=>{const ee=I().filter(ve=>!ve.disabled),ne=ee.find(ve=>ve.ref.current===document.activeElement),le=t5(ee,G,ne);le&&setTimeout(()=>le.ref.current.focus())}),V=R.useCallback((G,ee,ne)=>{const le=!U.current&&!ne;(k.value!==void 0&&k.value===ee||le)&&(B(G),le&&(U.current=!0))},[k.value]),L=R.useCallback(()=>w==null?void 0:w.focus(),[w]),X=R.useCallback((G,ee,ne)=>{const le=!U.current&&!ne;(k.value!==void 0&&k.value===ee||le)&&D(G)},[k.value]),J=i==="popper"?S0:LT,W=J===S0?{side:c,sideOffset:d,align:h,alignOffset:f,arrowPadding:m,collisionBoundary:p,collisionPadding:g,sticky:b,hideWhenDetached:j,avoidCollisions:v}:{};return e.jsx(FT,{scope:r,content:w,viewport:A,onViewportChange:S,itemRefCallback:V,selectedItem:C,onItemLeave:L,itemTextRefCallback:X,focusSelectedItem:H,selectedItemText:F,position:i,isPositioned:z,searchRef:P,children:e.jsx(AT,{as:BH,allowPinchZoom:!0,children:e.jsx(KE,{asChild:!0,trapped:k.open,onMountAutoFocus:G=>{G.preventDefault()},onUnmountAutoFocus:bt(s,G=>{var ee;(ee=k.trigger)==null||ee.focus({preventScroll:!0}),G.preventDefault()}),children:e.jsx(HE,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:a,onPointerDownOutside:o,onFocusOutside:G=>G.preventDefault(),onDismiss:()=>k.onOpenChange(!1),children:e.jsx(J,{role:"listbox",id:k.contentId,"data-state":k.open?"open":"closed",dir:k.dir,onContextMenu:G=>G.preventDefault(),...x,...W,onPlaced:()=>q(!0),ref:E,style:{display:"flex",flexDirection:"column",outline:"none",...x.style},onKeyDown:bt(x.onKeyDown,G=>{const ee=G.ctrlKey||G.altKey||G.metaKey;if(G.key==="Tab"&&G.preventDefault(),!ee&&G.key.length===1&&T(G.key),["ArrowUp","ArrowDown","Home","End"].includes(G.key)){let le=I().filter(ve=>!ve.disabled).map(ve=>ve.ref.current);if(["ArrowUp","End"].includes(G.key)&&(le=le.slice().reverse()),["ArrowUp","ArrowDown"].includes(G.key)){const ve=G.target,be=le.indexOf(ve);le=le.slice(be+1)}setTimeout(()=>Q(le)),G.preventDefault()}})})})})})})});MT.displayName=LH;var zH="SelectItemAlignedPosition",LT=R.forwardRef((t,n)=>{const{__scopeSelect:r,onPlaced:i,...s}=t,a=Zs(Qa,r),o=ea(Qa,r),[c,d]=R.useState(null),[h,f]=R.useState(null),m=Yt(n,E=>f(E)),p=Pf(r),g=R.useRef(!1),b=R.useRef(!0),{viewport:j,selectedItem:v,selectedItemText:x,focusSelectedItem:k}=o,w=R.useCallback(()=>{if(a.trigger&&a.valueNode&&c&&h&&j&&v&&x){const E=a.trigger.getBoundingClientRect(),C=h.getBoundingClientRect(),B=a.valueNode.getBoundingClientRect(),F=x.getBoundingClientRect();if(a.dir!=="rtl"){const ve=F.left-C.left,be=B.left-ve,Oe=E.left-be,Te=E.width+Oe,We=Math.max(Te,C.width),ut=window.innerWidth-zr,nt=ZN(be,[zr,Math.max(zr,ut-We)]);c.style.minWidth=Te+"px",c.style.left=nt+"px"}else{const ve=C.right-F.right,be=window.innerWidth-B.right-ve,Oe=window.innerWidth-E.right-be,Te=E.width+Oe,We=Math.max(Te,C.width),ut=window.innerWidth-zr,nt=ZN(be,[zr,Math.max(zr,ut-We)]);c.style.minWidth=Te+"px",c.style.right=nt+"px"}const D=p(),I=window.innerHeight-zr*2,z=j.scrollHeight,q=window.getComputedStyle(h),U=parseInt(q.borderTopWidth,10),Q=parseInt(q.paddingTop,10),H=parseInt(q.borderBottomWidth,10),K=parseInt(q.paddingBottom,10),Y=U+Q+z+K+H,P=Math.min(v.offsetHeight*5,Y),T=window.getComputedStyle(j),V=parseInt(T.paddingTop,10),L=parseInt(T.paddingBottom,10),X=E.top+E.height/2-zr,J=I-X,W=v.offsetHeight/2,G=v.offsetTop+W,ee=U+Q+G,ne=Y-ee;if(ee<=X){const ve=D.length>0&&v===D[D.length-1].ref.current;c.style.bottom="0px";const be=h.clientHeight-j.offsetTop-j.offsetHeight,Oe=Math.max(J,W+(ve?L:0)+be+H),Te=ee+Oe;c.style.height=Te+"px"}else{const ve=D.length>0&&v===D[0].ref.current;c.style.top="0px";const Oe=Math.max(X,U+j.offsetTop+(ve?V:0)+W)+ne;c.style.height=Oe+"px",j.scrollTop=ee-X+j.offsetTop}c.style.margin=`${zr}px 0`,c.style.minHeight=P+"px",c.style.maxHeight=I+"px",i==null||i(),requestAnimationFrame(()=>g.current=!0)}},[p,a.trigger,a.valueNode,c,h,j,v,x,a.dir,i]);Rn(()=>w(),[w]);const[N,A]=R.useState();Rn(()=>{h&&A(window.getComputedStyle(h).zIndex)},[h]);const S=R.useCallback(E=>{E&&b.current===!0&&(w(),k==null||k(),b.current=!1)},[w,k]);return e.jsx(VH,{scope:r,contentWrapper:c,shouldExpandOnScrollRef:g,onScrollButtonChange:S,children:e.jsx("div",{ref:d,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:N},children:e.jsx(jt.div,{...s,ref:m,style:{boxSizing:"border-box",maxHeight:"100%",...s.style}})})})});LT.displayName=zH;var qH="SelectPopperPosition",S0=R.forwardRef((t,n)=>{const{__scopeSelect:r,align:i="start",collisionPadding:s=zr,...a}=t,o=Df(r);return e.jsx(F$,{...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)"}})});S0.displayName=qH;var[VH,lb]=El(Qa,{}),A0="SelectViewport",BT=R.forwardRef((t,n)=>{const{__scopeSelect:r,nonce:i,...s}=t,a=ea(A0,r),o=lb(A0,r),c=Yt(n,a.onViewportChange),d=R.useRef(0);return e.jsxs(e.Fragment,{children:[e.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}),e.jsx(Of.Slot,{scope:r,children:e.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,h=>{const f=h.currentTarget,{contentWrapper:m,shouldExpandOnScrollRef:p}=o;if(p!=null&&p.current&&m){const g=Math.abs(d.current-f.scrollTop);if(g>0){const b=window.innerHeight-zr*2,j=parseFloat(m.style.minHeight),v=parseFloat(m.style.height),x=Math.max(j,v);if(x<b){const k=x+g,w=Math.min(b,k),N=k-w;m.style.height=w+"px",m.style.bottom==="0px"&&(f.scrollTop=N>0?N:0,m.style.justifyContent="flex-end")}}}d.current=f.scrollTop})})})]})});BT.displayName=A0;var zT="SelectGroup",[UH,$H]=El(zT),HH=R.forwardRef((t,n)=>{const{__scopeSelect:r,...i}=t,s=Mu();return e.jsx(UH,{scope:r,id:s,children:e.jsx(jt.div,{role:"group","aria-labelledby":s,...i,ref:n})})});HH.displayName=zT;var qT="SelectLabel",VT=R.forwardRef((t,n)=>{const{__scopeSelect:r,...i}=t,s=$H(qT,r);return e.jsx(jt.div,{id:s.id,...i,ref:n})});VT.displayName=qT;var nf="SelectItem",[WH,UT]=El(nf),$T=R.forwardRef((t,n)=>{const{__scopeSelect:r,value:i,disabled:s=!1,textValue:a,...o}=t,c=Zs(nf,r),d=ea(nf,r),h=c.value===i,[f,m]=R.useState(a??""),[p,g]=R.useState(!1),b=Yt(n,k=>{var w;return(w=d.itemRefCallback)==null?void 0:w.call(d,k,i,s)}),j=Mu(),v=R.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 e.jsx(WH,{scope:r,value:i,disabled:s,textId:j,isSelected:h,onItemTextChange:R.useCallback(k=>{m(w=>w||((k==null?void 0:k.textContent)??"").trim())},[]),children:e.jsx(Of.ItemSlot,{scope:r,value:i,disabled:s,textValue:f,children:e.jsx(jt.div,{role:"option","aria-labelledby":j,"data-highlighted":p?"":void 0,"aria-selected":h&&p,"data-state":h?"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,()=>{v.current!=="mouse"&&x()}),onPointerUp:bt(o.onPointerUp,()=>{v.current==="mouse"&&x()}),onPointerDown:bt(o.onPointerDown,k=>{v.current=k.pointerType}),onPointerMove:bt(o.onPointerMove,k=>{var w;v.current=k.pointerType,s?(w=d.onItemLeave)==null||w.call(d):v.current==="mouse"&&k.currentTarget.focus({preventScroll:!0})}),onPointerLeave:bt(o.onPointerLeave,k=>{var w;k.currentTarget===document.activeElement&&((w=d.onItemLeave)==null||w.call(d))}),onKeyDown:bt(o.onKeyDown,k=>{var N;((N=d.searchRef)==null?void 0:N.current)!==""&&k.key===" "||(OH.includes(k.key)&&x(),k.key===" "&&k.preventDefault())})})})})});$T.displayName=nf;var Mc="SelectItemText",HT=R.forwardRef((t,n)=>{const{__scopeSelect:r,className:i,style:s,...a}=t,o=Zs(Mc,r),c=ea(Mc,r),d=UT(Mc,r),h=RH(Mc,r),[f,m]=R.useState(null),p=Yt(n,x=>m(x),d.onItemTextChange,x=>{var k;return(k=c.itemTextRefCallback)==null?void 0:k.call(c,x,d.value,d.disabled)}),g=f==null?void 0:f.textContent,b=R.useMemo(()=>e.jsx("option",{value:d.value,disabled:d.disabled,children:g},d.value),[d.disabled,d.value,g]),{onNativeOptionAdd:j,onNativeOptionRemove:v}=h;return Rn(()=>(j(b),()=>v(b)),[j,v,b]),e.jsxs(e.Fragment,{children:[e.jsx(jt.span,{id:d.textId,...a,ref:p}),d.isSelected&&o.valueNode&&!o.valueNodeHasChildren?Su.createPortal(a.children,o.valueNode):null]})});HT.displayName=Mc;var WT="SelectItemIndicator",KT=R.forwardRef((t,n)=>{const{__scopeSelect:r,...i}=t;return UT(WT,r).isSelected?e.jsx(jt.span,{"aria-hidden":!0,...i,ref:n}):null});KT.displayName=WT;var C0="SelectScrollUpButton",GT=R.forwardRef((t,n)=>{const r=ea(C0,t.__scopeSelect),i=lb(C0,t.__scopeSelect),[s,a]=R.useState(!1),o=Yt(n,i.onScrollButtonChange);return Rn(()=>{if(r.viewport&&r.isPositioned){let c=function(){const h=d.scrollTop>0;a(h)};const d=r.viewport;return c(),d.addEventListener("scroll",c),()=>d.removeEventListener("scroll",c)}},[r.viewport,r.isPositioned]),s?e.jsx(YT,{...t,ref:o,onAutoScroll:()=>{const{viewport:c,selectedItem:d}=r;c&&d&&(c.scrollTop=c.scrollTop-d.offsetHeight)}}):null});GT.displayName=C0;var E0="SelectScrollDownButton",QT=R.forwardRef((t,n)=>{const r=ea(E0,t.__scopeSelect),i=lb(E0,t.__scopeSelect),[s,a]=R.useState(!1),o=Yt(n,i.onScrollButtonChange);return Rn(()=>{if(r.viewport&&r.isPositioned){let c=function(){const h=d.scrollHeight-d.clientHeight,f=Math.ceil(d.scrollTop)<h;a(f)};const d=r.viewport;return c(),d.addEventListener("scroll",c),()=>d.removeEventListener("scroll",c)}},[r.viewport,r.isPositioned]),s?e.jsx(YT,{...t,ref:o,onAutoScroll:()=>{const{viewport:c,selectedItem:d}=r;c&&d&&(c.scrollTop=c.scrollTop+d.offsetHeight)}}):null});QT.displayName=E0;var YT=R.forwardRef((t,n)=>{const{__scopeSelect:r,onAutoScroll:i,...s}=t,a=ea("SelectScrollButton",r),o=R.useRef(null),c=Pf(r),d=R.useCallback(()=>{o.current!==null&&(window.clearInterval(o.current),o.current=null)},[]);return R.useEffect(()=>()=>d(),[d]),Rn(()=>{var f;const h=c().find(m=>m.ref.current===document.activeElement);(f=h==null?void 0:h.ref.current)==null||f.scrollIntoView({block:"nearest"})},[c]),e.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 h;(h=a.onItemLeave)==null||h.call(a),o.current===null&&(o.current=window.setInterval(i,50))}),onPointerLeave:bt(s.onPointerLeave,()=>{d()})})}),KH="SelectSeparator",XT=R.forwardRef((t,n)=>{const{__scopeSelect:r,...i}=t;return e.jsx(jt.div,{"aria-hidden":!0,...i,ref:n})});XT.displayName=KH;var T0="SelectArrow",GH=R.forwardRef((t,n)=>{const{__scopeSelect:r,...i}=t,s=Df(r),a=Zs(T0,r),o=ea(T0,r);return a.open&&o.position==="popper"?e.jsx(M$,{...s,...i,ref:n}):null});GH.displayName=T0;var QH="SelectBubbleInput",JT=R.forwardRef(({__scopeSelect:t,value:n,...r},i)=>{const s=R.useRef(null),a=Yt(i,s),o=ob(n);return R.useEffect(()=>{const c=s.current;if(!c)return;const d=window.HTMLSelectElement.prototype,f=Object.getOwnPropertyDescriptor(d,"value").set;if(o!==n&&f){const m=new Event("change",{bubbles:!0});f.call(c,n),c.dispatchEvent(m)}},[o,n]),e.jsx(jt.select,{...r,style:{...vT,...r.style},ref:a,defaultValue:n})});JT.displayName=QH;function ZT(t){return t===""||t===void 0}function e5(t){const n=Gs(t),r=R.useRef(""),i=R.useRef(0),s=R.useCallback(o=>{const c=r.current+o;n(c),(function d(h){r.current=h,window.clearTimeout(i.current),h!==""&&(i.current=window.setTimeout(()=>d(""),1e3))})(c)},[n]),a=R.useCallback(()=>{r.current="",window.clearTimeout(i.current)},[]);return R.useEffect(()=>()=>window.clearTimeout(i.current),[]),[r,s,a]}function t5(t,n,r){const s=n.length>1&&Array.from(n).every(h=>h===n[0])?n[0]:n,a=r?t.indexOf(r):-1;let o=YH(t,Math.max(a,0));s.length===1&&(o=o.filter(h=>h!==r));const d=o.find(h=>h.textValue.toLowerCase().startsWith(s.toLowerCase()));return d!==r?d:void 0}function YH(t,n){return t.map((r,i)=>t[(n+i)%t.length])}var XH=CT,n5=TT,JH=PT,ZH=DT,eW=IT,r5=RT,tW=BT,i5=VT,s5=$T,nW=HT,rW=KT,a5=GT,o5=QT,l5=XT;const Ji=XH,Zi=JH,wi=R.forwardRef(({className:t,children:n,...r},i)=>e.jsxs(n5,{ref:i,className:Qt("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",t),...r,children:[n,e.jsx(ZH,{asChild:!0,children:e.jsx(_a,{className:"h-4 w-4 opacity-50"})})]}));wi.displayName=n5.displayName;const c5=R.forwardRef(({className:t,...n},r)=>e.jsx(a5,{ref:r,className:Qt("flex cursor-default items-center justify-center py-1",t),...n,children:e.jsx(O3,{className:"h-4 w-4"})}));c5.displayName=a5.displayName;const u5=R.forwardRef(({className:t,...n},r)=>e.jsx(o5,{ref:r,className:Qt("flex cursor-default items-center justify-center py-1",t),...n,children:e.jsx(_a,{className:"h-4 w-4"})}));u5.displayName=o5.displayName;const ki=R.forwardRef(({className:t,children:n,position:r="popper",...i},s)=>e.jsx(eW,{children:e.jsxs(r5,{ref:s,className:Qt("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",r==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",t),position:r,...i,children:[e.jsx(c5,{}),e.jsx(tW,{className:Qt("p-1",r==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:n}),e.jsx(u5,{})]})}));ki.displayName=r5.displayName;const iW=R.forwardRef(({className:t,...n},r)=>e.jsx(i5,{ref:r,className:Qt("px-2 py-1.5 text-sm font-semibold",t),...n}));iW.displayName=i5.displayName;const St=R.forwardRef(({className:t,children:n,...r},i)=>e.jsxs(s5,{ref:i,className:Qt("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",t),...r,children:[e.jsx("span",{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center",children:e.jsx(rW,{children:e.jsx(Ft,{className:"h-4 w-4"})})}),e.jsx(nW,{children:n})]}));St.displayName=s5.displayName;const sW=R.forwardRef(({className:t,...n},r)=>e.jsx(l5,{ref:r,className:Qt("-mx-1 my-1 h-px bg-muted",t),...n}));sW.displayName=l5.displayName;var wg,k2;function aW(){if(k2)return wg;k2=1;function t(){this.__data__=[],this.size=0}return wg=t,wg}var kg,N2;function d5(){if(N2)return kg;N2=1;function t(n,r){return n===r||n!==n&&r!==r}return kg=t,kg}var Ng,_2;function If(){if(_2)return Ng;_2=1;var t=d5();function n(r,i){for(var s=r.length;s--;)if(t(r[s][0],i))return s;return-1}return Ng=n,Ng}var _g,S2;function oW(){if(S2)return _g;S2=1;var t=If(),n=Array.prototype,r=n.splice;function i(s){var a=this.__data__,o=t(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 _g=i,_g}var Sg,A2;function lW(){if(A2)return Sg;A2=1;var t=If();function n(r){var i=this.__data__,s=t(i,r);return s<0?void 0:i[s][1]}return Sg=n,Sg}var Ag,C2;function cW(){if(C2)return Ag;C2=1;var t=If();function n(r){return t(this.__data__,r)>-1}return Ag=n,Ag}var Cg,E2;function uW(){if(E2)return Cg;E2=1;var t=If();function n(r,i){var s=this.__data__,a=t(s,r);return a<0?(++this.size,s.push([r,i])):s[a][1]=i,this}return Cg=n,Cg}var Eg,T2;function Rf(){if(T2)return Eg;T2=1;var t=aW(),n=oW(),r=lW(),i=cW(),s=uW();function a(o){var c=-1,d=o==null?0:o.length;for(this.clear();++c<d;){var h=o[c];this.set(h[0],h[1])}}return a.prototype.clear=t,a.prototype.delete=n,a.prototype.get=r,a.prototype.has=i,a.prototype.set=s,Eg=a,Eg}var Tg,O2;function dW(){if(O2)return Tg;O2=1;var t=Rf();function n(){this.__data__=new t,this.size=0}return Tg=n,Tg}var Og,P2;function hW(){if(P2)return Og;P2=1;function t(n){var r=this.__data__,i=r.delete(n);return this.size=r.size,i}return Og=t,Og}var Pg,D2;function fW(){if(D2)return Pg;D2=1;function t(n){return this.__data__.get(n)}return Pg=t,Pg}var Dg,I2;function mW(){if(I2)return Dg;I2=1;function t(n){return this.__data__.has(n)}return Dg=t,Dg}var Ig,R2;function h5(){if(R2)return Ig;R2=1;var t=typeof Jd=="object"&&Jd&&Jd.Object===Object&&Jd;return Ig=t,Ig}var Rg,F2;function ns(){if(F2)return Rg;F2=1;var t=h5(),n=typeof self=="object"&&self&&self.Object===Object&&self,r=t||n||Function("return this")();return Rg=r,Rg}var Fg,M2;function cb(){if(M2)return Fg;M2=1;var t=ns(),n=t.Symbol;return Fg=n,Fg}var Mg,L2;function pW(){if(L2)return Mg;L2=1;var t=cb(),n=Object.prototype,r=n.hasOwnProperty,i=n.toString,s=t?t.toStringTag:void 0;function a(o){var c=r.call(o,s),d=o[s];try{o[s]=void 0;var h=!0}catch{}var f=i.call(o);return h&&(c?o[s]=d:delete o[s]),f}return Mg=a,Mg}var Lg,B2;function gW(){if(B2)return Lg;B2=1;var t=Object.prototype,n=t.toString;function r(i){return n.call(i)}return Lg=r,Lg}var Bg,z2;function Ff(){if(z2)return Bg;z2=1;var t=cb(),n=pW(),r=gW(),i="[object Null]",s="[object Undefined]",a=t?t.toStringTag:void 0;function o(c){return c==null?c===void 0?s:i:a&&a in Object(c)?n(c):r(c)}return Bg=o,Bg}var zg,q2;function f5(){if(q2)return zg;q2=1;function t(n){var r=typeof n;return n!=null&&(r=="object"||r=="function")}return zg=t,zg}var qg,V2;function m5(){if(V2)return qg;V2=1;var t=Ff(),n=f5(),r="[object AsyncFunction]",i="[object Function]",s="[object GeneratorFunction]",a="[object Proxy]";function o(c){if(!n(c))return!1;var d=t(c);return d==i||d==s||d==r||d==a}return qg=o,qg}var Vg,U2;function xW(){if(U2)return Vg;U2=1;var t=ns(),n=t["__core-js_shared__"];return Vg=n,Vg}var Ug,$2;function vW(){if($2)return Ug;$2=1;var t=xW(),n=(function(){var i=/[^.]+$/.exec(t&&t.keys&&t.keys.IE_PROTO||"");return i?"Symbol(src)_1."+i:""})();function r(i){return!!n&&n in i}return Ug=r,Ug}var $g,H2;function p5(){if(H2)return $g;H2=1;var t=Function.prototype,n=t.toString;function r(i){if(i!=null){try{return n.call(i)}catch{}try{return i+""}catch{}}return""}return $g=r,$g}var Hg,W2;function yW(){if(W2)return Hg;W2=1;var t=m5(),n=vW(),r=f5(),i=p5(),s=/[\\^$.*+?()[\]{}|]/g,a=/^\[object .+?Constructor\]$/,o=Function.prototype,c=Object.prototype,d=o.toString,h=c.hasOwnProperty,f=RegExp("^"+d.call(h).replace(s,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function m(p){if(!r(p)||n(p))return!1;var g=t(p)?f:a;return g.test(i(p))}return Hg=m,Hg}var Wg,K2;function bW(){if(K2)return Wg;K2=1;function t(n,r){return n==null?void 0:n[r]}return Wg=t,Wg}var Kg,G2;function Tl(){if(G2)return Kg;G2=1;var t=yW(),n=bW();function r(i,s){var a=n(i,s);return t(a)?a:void 0}return Kg=r,Kg}var Gg,Q2;function ub(){if(Q2)return Gg;Q2=1;var t=Tl(),n=ns(),r=t(n,"Map");return Gg=r,Gg}var Qg,Y2;function Mf(){if(Y2)return Qg;Y2=1;var t=Tl(),n=t(Object,"create");return Qg=n,Qg}var Yg,X2;function jW(){if(X2)return Yg;X2=1;var t=Mf();function n(){this.__data__=t?t(null):{},this.size=0}return Yg=n,Yg}var Xg,J2;function wW(){if(J2)return Xg;J2=1;function t(n){var r=this.has(n)&&delete this.__data__[n];return this.size-=r?1:0,r}return Xg=t,Xg}var Jg,Z2;function kW(){if(Z2)return Jg;Z2=1;var t=Mf(),n="__lodash_hash_undefined__",r=Object.prototype,i=r.hasOwnProperty;function s(a){var o=this.__data__;if(t){var c=o[a];return c===n?void 0:c}return i.call(o,a)?o[a]:void 0}return Jg=s,Jg}var Zg,e_;function NW(){if(e_)return Zg;e_=1;var t=Mf(),n=Object.prototype,r=n.hasOwnProperty;function i(s){var a=this.__data__;return t?a[s]!==void 0:r.call(a,s)}return Zg=i,Zg}var ex,t_;function _W(){if(t_)return ex;t_=1;var t=Mf(),n="__lodash_hash_undefined__";function r(i,s){var a=this.__data__;return this.size+=this.has(i)?0:1,a[i]=t&&s===void 0?n:s,this}return ex=r,ex}var tx,n_;function SW(){if(n_)return tx;n_=1;var t=jW(),n=wW(),r=kW(),i=NW(),s=_W();function a(o){var c=-1,d=o==null?0:o.length;for(this.clear();++c<d;){var h=o[c];this.set(h[0],h[1])}}return a.prototype.clear=t,a.prototype.delete=n,a.prototype.get=r,a.prototype.has=i,a.prototype.set=s,tx=a,tx}var nx,r_;function AW(){if(r_)return nx;r_=1;var t=SW(),n=Rf(),r=ub();function i(){this.size=0,this.__data__={hash:new t,map:new(r||n),string:new t}}return nx=i,nx}var rx,i_;function CW(){if(i_)return rx;i_=1;function t(n){var r=typeof n;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?n!=="__proto__":n===null}return rx=t,rx}var ix,s_;function Lf(){if(s_)return ix;s_=1;var t=CW();function n(r,i){var s=r.__data__;return t(i)?s[typeof i=="string"?"string":"hash"]:s.map}return ix=n,ix}var sx,a_;function EW(){if(a_)return sx;a_=1;var t=Lf();function n(r){var i=t(this,r).delete(r);return this.size-=i?1:0,i}return sx=n,sx}var ax,o_;function TW(){if(o_)return ax;o_=1;var t=Lf();function n(r){return t(this,r).get(r)}return ax=n,ax}var ox,l_;function OW(){if(l_)return ox;l_=1;var t=Lf();function n(r){return t(this,r).has(r)}return ox=n,ox}var lx,c_;function PW(){if(c_)return lx;c_=1;var t=Lf();function n(r,i){var s=t(this,r),a=s.size;return s.set(r,i),this.size+=s.size==a?0:1,this}return lx=n,lx}var cx,u_;function g5(){if(u_)return cx;u_=1;var t=AW(),n=EW(),r=TW(),i=OW(),s=PW();function a(o){var c=-1,d=o==null?0:o.length;for(this.clear();++c<d;){var h=o[c];this.set(h[0],h[1])}}return a.prototype.clear=t,a.prototype.delete=n,a.prototype.get=r,a.prototype.has=i,a.prototype.set=s,cx=a,cx}var ux,d_;function DW(){if(d_)return ux;d_=1;var t=Rf(),n=ub(),r=g5(),i=200;function s(a,o){var c=this.__data__;if(c instanceof t){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 ux=s,ux}var dx,h_;function IW(){if(h_)return dx;h_=1;var t=Rf(),n=dW(),r=hW(),i=fW(),s=mW(),a=DW();function o(c){var d=this.__data__=new t(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,dx=o,dx}var hx,f_;function RW(){if(f_)return hx;f_=1;var t="__lodash_hash_undefined__";function n(r){return this.__data__.set(r,t),this}return hx=n,hx}var fx,m_;function FW(){if(m_)return fx;m_=1;function t(n){return this.__data__.has(n)}return fx=t,fx}var mx,p_;function MW(){if(p_)return mx;p_=1;var t=g5(),n=RW(),r=FW();function i(s){var a=-1,o=s==null?0:s.length;for(this.__data__=new t;++a<o;)this.add(s[a])}return i.prototype.add=i.prototype.push=n,i.prototype.has=r,mx=i,mx}var px,g_;function LW(){if(g_)return px;g_=1;function t(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 px=t,px}var gx,x_;function BW(){if(x_)return gx;x_=1;function t(n,r){return n.has(r)}return gx=t,gx}var xx,v_;function x5(){if(v_)return xx;v_=1;var t=MW(),n=LW(),r=BW(),i=1,s=2;function a(o,c,d,h,f,m){var p=d&i,g=o.length,b=c.length;if(g!=b&&!(p&&b>g))return!1;var j=m.get(o),v=m.get(c);if(j&&v)return j==c&&v==o;var x=-1,k=!0,w=d&s?new t:void 0;for(m.set(o,c),m.set(c,o);++x<g;){var N=o[x],A=c[x];if(h)var S=p?h(A,N,x,c,o,m):h(N,A,x,o,c,m);if(S!==void 0){if(S)continue;k=!1;break}if(w){if(!n(c,function(E,C){if(!r(w,C)&&(N===E||f(N,E,d,h,m)))return w.push(C)})){k=!1;break}}else if(!(N===A||f(N,A,d,h,m))){k=!1;break}}return m.delete(o),m.delete(c),k}return xx=a,xx}var vx,y_;function zW(){if(y_)return vx;y_=1;var t=ns(),n=t.Uint8Array;return vx=n,vx}var yx,b_;function qW(){if(b_)return yx;b_=1;function t(n){var r=-1,i=Array(n.size);return n.forEach(function(s,a){i[++r]=[a,s]}),i}return yx=t,yx}var bx,j_;function VW(){if(j_)return bx;j_=1;function t(n){var r=-1,i=Array(n.size);return n.forEach(function(s){i[++r]=s}),i}return bx=t,bx}var jx,w_;function UW(){if(w_)return jx;w_=1;var t=cb(),n=zW(),r=d5(),i=x5(),s=qW(),a=VW(),o=1,c=2,d="[object Boolean]",h="[object Date]",f="[object Error]",m="[object Map]",p="[object Number]",g="[object RegExp]",b="[object Set]",j="[object String]",v="[object Symbol]",x="[object ArrayBuffer]",k="[object DataView]",w=t?t.prototype:void 0,N=w?w.valueOf:void 0;function A(S,E,C,B,F,D,I){switch(C){case k:if(S.byteLength!=E.byteLength||S.byteOffset!=E.byteOffset)return!1;S=S.buffer,E=E.buffer;case x:return!(S.byteLength!=E.byteLength||!D(new n(S),new n(E)));case d:case h:case p:return r(+S,+E);case f:return S.name==E.name&&S.message==E.message;case g:case j:return S==E+"";case m:var z=s;case b:var q=B&o;if(z||(z=a),S.size!=E.size&&!q)return!1;var U=I.get(S);if(U)return U==E;B|=c,I.set(S,E);var Q=i(z(S),z(E),B,F,D,I);return I.delete(S),Q;case v:if(N)return N.call(S)==N.call(E)}return!1}return jx=A,jx}var wx,k_;function $W(){if(k_)return wx;k_=1;function t(n,r){for(var i=-1,s=r.length,a=n.length;++i<s;)n[a+i]=r[i];return n}return wx=t,wx}var kx,N_;function db(){if(N_)return kx;N_=1;var t=Array.isArray;return kx=t,kx}var Nx,__;function HW(){if(__)return Nx;__=1;var t=$W(),n=db();function r(i,s,a){var o=s(i);return n(i)?o:t(o,a(i))}return Nx=r,Nx}var _x,S_;function WW(){if(S_)return _x;S_=1;function t(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 _x=t,_x}var Sx,A_;function KW(){if(A_)return Sx;A_=1;function t(){return[]}return Sx=t,Sx}var Ax,C_;function GW(){if(C_)return Ax;C_=1;var t=WW(),n=KW(),r=Object.prototype,i=r.propertyIsEnumerable,s=Object.getOwnPropertySymbols,a=s?function(o){return o==null?[]:(o=Object(o),t(s(o),function(c){return i.call(o,c)}))}:n;return Ax=a,Ax}var Cx,E_;function QW(){if(E_)return Cx;E_=1;function t(n,r){for(var i=-1,s=Array(n);++i<n;)s[i]=r(i);return s}return Cx=t,Cx}var Ex,T_;function Bf(){if(T_)return Ex;T_=1;function t(n){return n!=null&&typeof n=="object"}return Ex=t,Ex}var Tx,O_;function YW(){if(O_)return Tx;O_=1;var t=Ff(),n=Bf(),r="[object Arguments]";function i(s){return n(s)&&t(s)==r}return Tx=i,Tx}var Ox,P_;function XW(){if(P_)return Ox;P_=1;var t=YW(),n=Bf(),r=Object.prototype,i=r.hasOwnProperty,s=r.propertyIsEnumerable,a=t((function(){return arguments})())?t:function(o){return n(o)&&i.call(o,"callee")&&!s.call(o,"callee")};return Ox=a,Ox}var Lc={exports:{}},Px,D_;function JW(){if(D_)return Px;D_=1;function t(){return!1}return Px=t,Px}Lc.exports;var I_;function v5(){return I_||(I_=1,(function(t,n){var r=ns(),i=JW(),s=n&&!n.nodeType&&n,a=s&&!0&&t&&!t.nodeType&&t,o=a&&a.exports===s,c=o?r.Buffer:void 0,d=c?c.isBuffer:void 0,h=d||i;t.exports=h})(Lc,Lc.exports)),Lc.exports}var Dx,R_;function ZW(){if(R_)return Dx;R_=1;var t=9007199254740991,n=/^(?:0|[1-9]\d*)$/;function r(i,s){var a=typeof i;return s=s??t,!!s&&(a=="number"||a!="symbol"&&n.test(i))&&i>-1&&i%1==0&&i<s}return Dx=r,Dx}var Ix,F_;function y5(){if(F_)return Ix;F_=1;var t=9007199254740991;function n(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=t}return Ix=n,Ix}var Rx,M_;function eK(){if(M_)return Rx;M_=1;var t=Ff(),n=y5(),r=Bf(),i="[object Arguments]",s="[object Array]",a="[object Boolean]",o="[object Date]",c="[object Error]",d="[object Function]",h="[object Map]",f="[object Number]",m="[object Object]",p="[object RegExp]",g="[object Set]",b="[object String]",j="[object WeakMap]",v="[object ArrayBuffer]",x="[object DataView]",k="[object Float32Array]",w="[object Float64Array]",N="[object Int8Array]",A="[object Int16Array]",S="[object Int32Array]",E="[object Uint8Array]",C="[object Uint8ClampedArray]",B="[object Uint16Array]",F="[object Uint32Array]",D={};D[k]=D[w]=D[N]=D[A]=D[S]=D[E]=D[C]=D[B]=D[F]=!0,D[i]=D[s]=D[v]=D[a]=D[x]=D[o]=D[c]=D[d]=D[h]=D[f]=D[m]=D[p]=D[g]=D[b]=D[j]=!1;function I(z){return r(z)&&n(z.length)&&!!D[t(z)]}return Rx=I,Rx}var Fx,L_;function tK(){if(L_)return Fx;L_=1;function t(n){return function(r){return n(r)}}return Fx=t,Fx}var Bc={exports:{}};Bc.exports;var B_;function nK(){return B_||(B_=1,(function(t,n){var r=h5(),i=n&&!n.nodeType&&n,s=i&&!0&&t&&!t.nodeType&&t,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{}})();t.exports=c})(Bc,Bc.exports)),Bc.exports}var Mx,z_;function b5(){if(z_)return Mx;z_=1;var t=eK(),n=tK(),r=nK(),i=r&&r.isTypedArray,s=i?n(i):t;return Mx=s,Mx}var Lx,q_;function rK(){if(q_)return Lx;q_=1;var t=QW(),n=XW(),r=db(),i=v5(),s=ZW(),a=b5(),o=Object.prototype,c=o.hasOwnProperty;function d(h,f){var m=r(h),p=!m&&n(h),g=!m&&!p&&i(h),b=!m&&!p&&!g&&a(h),j=m||p||g||b,v=j?t(h.length,String):[],x=v.length;for(var k in h)(f||c.call(h,k))&&!(j&&(k=="length"||g&&(k=="offset"||k=="parent")||b&&(k=="buffer"||k=="byteLength"||k=="byteOffset")||s(k,x)))&&v.push(k);return v}return Lx=d,Lx}var Bx,V_;function iK(){if(V_)return Bx;V_=1;var t=Object.prototype;function n(r){var i=r&&r.constructor,s=typeof i=="function"&&i.prototype||t;return r===s}return Bx=n,Bx}var zx,U_;function sK(){if(U_)return zx;U_=1;function t(n,r){return function(i){return n(r(i))}}return zx=t,zx}var qx,$_;function aK(){if($_)return qx;$_=1;var t=sK(),n=t(Object.keys,Object);return qx=n,qx}var Vx,H_;function oK(){if(H_)return Vx;H_=1;var t=iK(),n=aK(),r=Object.prototype,i=r.hasOwnProperty;function s(a){if(!t(a))return n(a);var o=[];for(var c in Object(a))i.call(a,c)&&c!="constructor"&&o.push(c);return o}return Vx=s,Vx}var Ux,W_;function lK(){if(W_)return Ux;W_=1;var t=m5(),n=y5();function r(i){return i!=null&&n(i.length)&&!t(i)}return Ux=r,Ux}var $x,K_;function cK(){if(K_)return $x;K_=1;var t=rK(),n=oK(),r=lK();function i(s){return r(s)?t(s):n(s)}return $x=i,$x}var Hx,G_;function uK(){if(G_)return Hx;G_=1;var t=HW(),n=GW(),r=cK();function i(s){return t(s,r,n)}return Hx=i,Hx}var Wx,Q_;function dK(){if(Q_)return Wx;Q_=1;var t=uK(),n=1,r=Object.prototype,i=r.hasOwnProperty;function s(a,o,c,d,h,f){var m=c&n,p=t(a),g=p.length,b=t(o),j=b.length;if(g!=j&&!m)return!1;for(var v=g;v--;){var x=p[v];if(!(m?x in o:i.call(o,x)))return!1}var k=f.get(a),w=f.get(o);if(k&&w)return k==o&&w==a;var N=!0;f.set(a,o),f.set(o,a);for(var A=m;++v<g;){x=p[v];var S=a[x],E=o[x];if(d)var C=m?d(E,S,x,o,a,f):d(S,E,x,a,o,f);if(!(C===void 0?S===E||h(S,E,c,d,f):C)){N=!1;break}A||(A=x=="constructor")}if(N&&!A){var B=a.constructor,F=o.constructor;B!=F&&"constructor"in a&&"constructor"in o&&!(typeof B=="function"&&B instanceof B&&typeof F=="function"&&F instanceof F)&&(N=!1)}return f.delete(a),f.delete(o),N}return Wx=s,Wx}var Kx,Y_;function hK(){if(Y_)return Kx;Y_=1;var t=Tl(),n=ns(),r=t(n,"DataView");return Kx=r,Kx}var Gx,X_;function fK(){if(X_)return Gx;X_=1;var t=Tl(),n=ns(),r=t(n,"Promise");return Gx=r,Gx}var Qx,J_;function mK(){if(J_)return Qx;J_=1;var t=Tl(),n=ns(),r=t(n,"Set");return Qx=r,Qx}var Yx,Z_;function pK(){if(Z_)return Yx;Z_=1;var t=Tl(),n=ns(),r=t(n,"WeakMap");return Yx=r,Yx}var Xx,eS;function gK(){if(eS)return Xx;eS=1;var t=hK(),n=ub(),r=fK(),i=mK(),s=pK(),a=Ff(),o=p5(),c="[object Map]",d="[object Object]",h="[object Promise]",f="[object Set]",m="[object WeakMap]",p="[object DataView]",g=o(t),b=o(n),j=o(r),v=o(i),x=o(s),k=a;return(t&&k(new t(new ArrayBuffer(1)))!=p||n&&k(new n)!=c||r&&k(r.resolve())!=h||i&&k(new i)!=f||s&&k(new s)!=m)&&(k=function(w){var N=a(w),A=N==d?w.constructor:void 0,S=A?o(A):"";if(S)switch(S){case g:return p;case b:return c;case j:return h;case v:return f;case x:return m}return N}),Xx=k,Xx}var Jx,tS;function xK(){if(tS)return Jx;tS=1;var t=IW(),n=x5(),r=UW(),i=dK(),s=gK(),a=db(),o=v5(),c=b5(),d=1,h="[object Arguments]",f="[object Array]",m="[object Object]",p=Object.prototype,g=p.hasOwnProperty;function b(j,v,x,k,w,N){var A=a(j),S=a(v),E=A?f:s(j),C=S?f:s(v);E=E==h?m:E,C=C==h?m:C;var B=E==m,F=C==m,D=E==C;if(D&&o(j)){if(!o(v))return!1;A=!0,B=!1}if(D&&!B)return N||(N=new t),A||c(j)?n(j,v,x,k,w,N):r(j,v,E,x,k,w,N);if(!(x&d)){var I=B&&g.call(j,"__wrapped__"),z=F&&g.call(v,"__wrapped__");if(I||z){var q=I?j.value():j,U=z?v.value():v;return N||(N=new t),w(q,U,x,k,N)}}return D?(N||(N=new t),i(j,v,x,k,w,N)):!1}return Jx=b,Jx}var Zx,nS;function vK(){if(nS)return Zx;nS=1;var t=xK(),n=Bf();function r(i,s,a,o,c){return i===s?!0:i==null||s==null||!n(i)&&!n(s)?i!==i&&s!==s:t(i,s,a,o,r,c)}return Zx=r,Zx}var ev,rS;function yK(){if(rS)return ev;rS=1;var t=vK();function n(r,i){return t(r,i)}return ev=n,ev}var Mh={exports:{}};/*!
 * Quill Editor v1.3.7
 * https://quilljs.com/
 * Copyright (c) 2014, Jason Chen
 * Copyright (c) 2013, salesforce.com
 */var bK=Mh.exports,iS;function jK(){return iS||(iS=1,(function(t,n){(function(i,s){t.exports=s()})(typeof self<"u"?self:bK,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),h=s(46),f=s(47),m=s(48),p=s(49),g=s(12),b=s(32),j=s(33),v=s(31),x=s(1),k={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:f.default,Inline:h.default,Text:p.default,Attributor:{Attribute:g.default,Class:b.default,Style:j.default,Store:v.default}};i.default=k}),(function(r,i,s){var a=this&&this.__extends||(function(){var v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,k){x.__proto__=k}||function(x,k){for(var w in k)k.hasOwnProperty(w)&&(x[w]=k[w])};return function(x,k){v(x,k);function w(){this.constructor=x}x.prototype=k===null?Object.create(k):(w.prototype=k.prototype,new w)}})();Object.defineProperty(i,"__esModule",{value:!0});var o=(function(v){a(x,v);function x(k){var w=this;return k="[Parchment] "+k,w=v.call(this,k)||this,w.message=k,w.name=w.constructor.name,w}return x})(Error);i.ParchmentError=o;var c={},d={},h={},f={};i.DATA_KEY="__blot";var m;(function(v){v[v.TYPE=3]="TYPE",v[v.LEVEL=12]="LEVEL",v[v.ATTRIBUTE=13]="ATTRIBUTE",v[v.BLOT=14]="BLOT",v[v.INLINE=7]="INLINE",v[v.BLOCK=11]="BLOCK",v[v.BLOCK_BLOT=10]="BLOCK_BLOT",v[v.INLINE_BLOT=6]="INLINE_BLOT",v[v.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE",v[v.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE",v[v.ANY=15]="ANY"})(m=i.Scope||(i.Scope={}));function p(v,x){var k=b(v);if(k==null)throw new o("Unable to create "+v+" blot");var w=k,N=v instanceof Node||v.nodeType===Node.TEXT_NODE?v:w.create(x);return new w(N,x)}i.create=p;function g(v,x){return x===void 0&&(x=!1),v==null?null:v[i.DATA_KEY]!=null?v[i.DATA_KEY].blot:x?g(v.parentNode,x):null}i.find=g;function b(v,x){x===void 0&&(x=m.ANY);var k;if(typeof v=="string")k=f[v]||c[v];else if(v instanceof Text||v.nodeType===Node.TEXT_NODE)k=f.text;else if(typeof v=="number")v&m.LEVEL&m.BLOCK?k=f.block:v&m.LEVEL&m.INLINE&&(k=f.inline);else if(v instanceof HTMLElement){var w=(v.getAttribute("class")||"").split(/\s+/);for(var N in w)if(k=d[w[N]],k)break;k=k||h[v.tagName]}return k==null?null:x&m.LEVEL&k.scope&&x&m.TYPE&k.scope?k:null}i.query=b;function j(){for(var v=[],x=0;x<arguments.length;x++)v[x]=arguments[x];if(v.length>1)return v.map(function(N){return j(N)});var k=v[0];if(typeof k.blotName!="string"&&typeof k.attrName!="string")throw new o("Invalid definition");if(k.blotName==="abstract")throw new o("Cannot register abstract class");if(f[k.blotName||k.attrName]=k,typeof k.keyName=="string")c[k.keyName]=k;else if(k.className!=null&&(d[k.className]=k),k.tagName!=null){Array.isArray(k.tagName)?k.tagName=k.tagName.map(function(N){return N.toUpperCase()}):k.tagName=k.tagName.toUpperCase();var w=Array.isArray(k.tagName)?k.tagName:[k.tagName];w.forEach(function(N){(h[N]==null||k.className==null)&&(h[N]=k)})}return k}i.register=j}),(function(r,i,s){var a=s(51),o=s(11),c=s(3),d=s(20),h="\0",f=function(m){Array.isArray(m)?this.ops=m:m!=null&&Array.isArray(m.ops)?this.ops=m.ops:this.ops=[]};f.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))},f.prototype.delete=function(m){return m<=0?this:this.push({delete:m})},f.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)},f.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},f.prototype.chop=function(){var m=this.ops[this.ops.length-1];return m&&m.retain&&!m.attributes&&this.ops.pop(),this},f.prototype.filter=function(m){return this.ops.filter(m)},f.prototype.forEach=function(m){this.ops.forEach(m)},f.prototype.map=function(m){return this.ops.map(m)},f.prototype.partition=function(m){var p=[],g=[];return this.forEach(function(b){var j=m(b)?p:g;j.push(b)}),[p,g]},f.prototype.reduce=function(m,p){return this.ops.reduce(m,p)},f.prototype.changeLength=function(){return this.reduce(function(m,p){return p.insert?m+d.length(p):p.delete?m-p.delete:m},0)},f.prototype.length=function(){return this.reduce(function(m,p){return m+d.length(p)},0)},f.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 v;j<m?v=b.next(m-j):(v=b.next(p-j),g.push(v)),j+=d.length(v)}return new f(g)},f.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 v=j.retain;p.peekType()==="insert"&&p.peekLength()<=v;)v-=p.peekLength(),b.push(p.next());j.retain-v>0&&g.next(j.retain-v)}for(var x=new f(b);p.hasNext()||g.hasNext();)if(g.peekType()==="insert")x.push(g.next());else if(p.peekType()==="delete")x.push(p.next());else{var k=Math.min(p.peekLength(),g.peekLength()),w=p.next(k),N=g.next(k);if(typeof N.retain=="number"){var A={};typeof w.retain=="number"?A.retain=k:A.insert=w.insert;var S=d.attributes.compose(w.attributes,N.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 f(p.rest());return x.concat(E).chop()}}else typeof N.delete=="number"&&typeof w.retain=="number"&&x.push(N)}return x.chop()},f.prototype.concat=function(m){var p=new f(this.ops.slice());return m.ops.length>0&&(p.push(m.ops[0]),p.ops=p.ops.concat(m.ops.slice(1))),p},f.prototype.diff=function(m,p){if(this.ops===m.ops)return new f;var g=[this,m].map(function(k){return k.map(function(w){if(w.insert!=null)return typeof w.insert=="string"?w.insert:h;var N=k===m?"on":"with";throw new Error("diff() called "+N+" non-document")}).join("")}),b=new f,j=a(g[0],g[1],p),v=d.iterator(this.ops),x=d.iterator(m.ops);return j.forEach(function(k){for(var w=k[1].length;w>0;){var N=0;switch(k[0]){case a.INSERT:N=Math.min(x.peekLength(),w),b.push(x.next(N));break;case a.DELETE:N=Math.min(w,v.peekLength()),v.next(N),b.delete(N);break;case a.EQUAL:N=Math.min(v.peekLength(),x.peekLength(),w);var A=v.next(N),S=x.next(N);o(A.insert,S.insert)?b.retain(N,d.attributes.diff(A.attributes,S.attributes)):b.push(S).delete(N);break}w-=N}}),b.chop()},f.prototype.eachLine=function(m,p){p=p||`
`;for(var g=d.iterator(this.ops),b=new f,j=0;g.hasNext();){if(g.peekType()!=="insert")return;var v=g.peek(),x=d.length(v)-g.peekLength(),k=typeof v.insert=="string"?v.insert.indexOf(p,x)-x:-1;if(k<0)b.push(g.next());else if(k>0)b.push(g.next(k));else{if(m(b,g.next(1).attributes||{},j)===!1)return;j+=1,b=new f}}b.length()>0&&m(b,{},j)},f.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 f;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 v=Math.min(g.peekLength(),b.peekLength()),x=g.next(v),k=b.next(v);if(x.delete)continue;k.delete?j.push(k):j.retain(v,d.attributes.transform(x.attributes,k.attributes,p))}return j.chop()},f.prototype.transformPosition=function(m,p){p=!!p;for(var g=d.iterator(this.ops),b=0;g.hasNext()&&b<=m;){var j=g.peekLength(),v=g.peekType();if(g.next(),v==="delete"){m-=Math.min(j,m-b);continue}else v==="insert"&&(b<m||!p)&&(m+=j);b+=j}return m},r.exports=f}),(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]"},h=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 v;for(v in g);return typeof v>"u"||s.call(g,v)},f=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,v,x,k,w=arguments[0],N=1,A=arguments.length,S=!1;for(typeof w=="boolean"&&(S=w,w=arguments[1]||{},N=2),(w==null||typeof w!="object"&&typeof w!="function")&&(w={});N<A;++N)if(g=arguments[N],g!=null)for(b in g)j=m(w,b),v=m(g,b),w!==v&&(S&&v&&(h(v)||(x=d(v)))?(x?(x=!1,k=j&&d(j)?j:[]):k=j&&h(j)?j:{},f(w,{name:b,newValue:p(S,k,v)})):typeof v<"u"&&f(w,{name:b,newValue:v}));return w}}),(function(r,i,s){Object.defineProperty(i,"__esModule",{value:!0}),i.default=i.BlockEmbed=i.bubbleFormats=void 0;var a=(function(){function D(I,z){for(var q=0;q<z.length;q++){var U=z[q];U.enumerable=U.enumerable||!1,U.configurable=!0,"value"in U&&(U.writable=!0),Object.defineProperty(I,U.key,U)}}return function(I,z,q){return z&&D(I.prototype,z),q&&D(I,q),I}})(),o=function D(I,z,q){I===null&&(I=Function.prototype);var U=Object.getOwnPropertyDescriptor(I,z);if(U===void 0){var Q=Object.getPrototypeOf(I);return Q===null?void 0:D(Q,z,q)}else{if("value"in U)return U.value;var H=U.get;return H===void 0?void 0:H.call(q)}},c=s(3),d=w(c),h=s(2),f=w(h),m=s(0),p=w(m),g=s(16),b=w(g),j=s(6),v=w(j),x=s(7),k=w(x);function w(D){return D&&D.__esModule?D:{default:D}}function N(D,I){if(!(D instanceof I))throw new TypeError("Cannot call a class as a function")}function A(D,I){if(!D)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return I&&(typeof I=="object"||typeof I=="function")?I:D}function S(D,I){if(typeof I!="function"&&I!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof I);D.prototype=Object.create(I&&I.prototype,{constructor:{value:D,enumerable:!1,writable:!0,configurable:!0}}),I&&(Object.setPrototypeOf?Object.setPrototypeOf(D,I):D.__proto__=I)}var E=1,C=(function(D){S(I,D);function I(){return N(this,I),A(this,(I.__proto__||Object.getPrototypeOf(I)).apply(this,arguments))}return a(I,[{key:"attach",value:function(){o(I.prototype.__proto__||Object.getPrototypeOf(I.prototype),"attach",this).call(this),this.attributes=new p.default.Attributor.Store(this.domNode)}},{key:"delta",value:function(){return new f.default().insert(this.value(),(0,d.default)(this.formats(),this.attributes.values()))}},{key:"format",value:function(q,U){var Q=p.default.query(q,p.default.Scope.BLOCK_ATTRIBUTE);Q!=null&&this.attributes.attribute(Q,U)}},{key:"formatAt",value:function(q,U,Q,H){this.format(Q,H)}},{key:"insertAt",value:function(q,U,Q){if(typeof U=="string"&&U.endsWith(`
`)){var H=p.default.create(B.blotName);this.parent.insertBefore(H,q===0?this:this.next),H.insertAt(0,U.slice(0,-1))}else o(I.prototype.__proto__||Object.getPrototypeOf(I.prototype),"insertAt",this).call(this,q,U,Q)}}]),I})(p.default.Embed);C.scope=p.default.Scope.BLOCK_BLOT;var B=(function(D){S(I,D);function I(z){N(this,I);var q=A(this,(I.__proto__||Object.getPrototypeOf(I)).call(this,z));return q.cache={},q}return a(I,[{key:"delta",value:function(){return this.cache.delta==null&&(this.cache.delta=this.descendants(p.default.Leaf).reduce(function(q,U){return U.length()===0?q:q.insert(U.value(),F(U))},new f.default).insert(`
`,F(this))),this.cache.delta}},{key:"deleteAt",value:function(q,U){o(I.prototype.__proto__||Object.getPrototypeOf(I.prototype),"deleteAt",this).call(this,q,U),this.cache={}}},{key:"formatAt",value:function(q,U,Q,H){U<=0||(p.default.query(Q,p.default.Scope.BLOCK)?q+U===this.length()&&this.format(Q,H):o(I.prototype.__proto__||Object.getPrototypeOf(I.prototype),"formatAt",this).call(this,q,Math.min(U,this.length()-q-1),Q,H),this.cache={})}},{key:"insertAt",value:function(q,U,Q){if(Q!=null)return o(I.prototype.__proto__||Object.getPrototypeOf(I.prototype),"insertAt",this).call(this,q,U,Q);if(U.length!==0){var H=U.split(`
`),K=H.shift();K.length>0&&(q<this.length()-1||this.children.tail==null?o(I.prototype.__proto__||Object.getPrototypeOf(I.prototype),"insertAt",this).call(this,Math.min(q,this.length()-1),K):this.children.tail.insertAt(this.children.tail.length(),K),this.cache={});var Y=this;H.reduce(function(P,T){return Y=Y.split(P,!0),Y.insertAt(0,T),T.length},q+K.length)}}},{key:"insertBefore",value:function(q,U){var Q=this.children.head;o(I.prototype.__proto__||Object.getPrototypeOf(I.prototype),"insertBefore",this).call(this,q,U),Q instanceof b.default&&Q.remove(),this.cache={}}},{key:"length",value:function(){return this.cache.length==null&&(this.cache.length=o(I.prototype.__proto__||Object.getPrototypeOf(I.prototype),"length",this).call(this)+E),this.cache.length}},{key:"moveChildren",value:function(q,U){o(I.prototype.__proto__||Object.getPrototypeOf(I.prototype),"moveChildren",this).call(this,q,U),this.cache={}}},{key:"optimize",value:function(q){o(I.prototype.__proto__||Object.getPrototypeOf(I.prototype),"optimize",this).call(this,q),this.cache={}}},{key:"path",value:function(q){return o(I.prototype.__proto__||Object.getPrototypeOf(I.prototype),"path",this).call(this,q,!0)}},{key:"removeChild",value:function(q){o(I.prototype.__proto__||Object.getPrototypeOf(I.prototype),"removeChild",this).call(this,q),this.cache={}}},{key:"split",value:function(q){var U=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(U&&(q===0||q>=this.length()-E)){var Q=this.clone();return q===0?(this.parent.insertBefore(Q,this),this):(this.parent.insertBefore(Q,this.next),Q)}else{var H=o(I.prototype.__proto__||Object.getPrototypeOf(I.prototype),"split",this).call(this,q,U);return this.cache={},H}}}]),I})(p.default.Block);B.blotName="block",B.tagName="P",B.defaultChild="break",B.allowedChildren=[v.default,p.default.Embed,k.default];function F(D){var I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return D==null||(typeof D.formats=="function"&&(I=(0,d.default)(I,D.formats())),D.parent==null||D.parent.blotName=="scroll"||D.parent.statics.scope!==D.statics.scope)?I:F(D.parent,I)}i.bubbleFormats=F,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(Y){return typeof Y}:function(Y){return Y&&typeof Symbol=="function"&&Y.constructor===Symbol&&Y!==Symbol.prototype?"symbol":typeof Y},o=(function(){function Y(P,T){var V=[],L=!0,X=!1,J=void 0;try{for(var W=P[Symbol.iterator](),G;!(L=(G=W.next()).done)&&(V.push(G.value),!(T&&V.length===T));L=!0);}catch(ee){X=!0,J=ee}finally{try{!L&&W.return&&W.return()}finally{if(X)throw J}}return V}return function(P,T){if(Array.isArray(P))return P;if(Symbol.iterator in Object(P))return Y(P,T);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),c=(function(){function Y(P,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(P,L.key,L)}}return function(P,T,V){return T&&Y(P.prototype,T),V&&Y(P,V),P}})();s(50);var d=s(2),h=F(d),f=s(14),m=F(f),p=s(8),g=F(p),b=s(9),j=F(b),v=s(0),x=F(v),k=s(15),w=F(k),N=s(3),A=F(N),S=s(10),E=F(S),C=s(34),B=F(C);function F(Y){return Y&&Y.__esModule?Y:{default:Y}}function D(Y,P,T){return P in Y?Object.defineProperty(Y,P,{value:T,enumerable:!0,configurable:!0,writable:!0}):Y[P]=T,Y}function I(Y,P){if(!(Y instanceof P))throw new TypeError("Cannot call a class as a function")}var z=(0,E.default)("quill"),q=(function(){c(Y,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&&z.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&&z.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 Y(P){var T=this,V=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(I(this,Y),this.options=U(P,V),this.container=this.options.container,this.container==null)return z.error("Invalid Quill container",P);this.options.debug&&Y.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,ee=G&&G.length===0?G.index:void 0;Q.call(T,function(){return T.editor.update(null,W,ee)},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(Y,[{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],Q.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 Q.call(this,function(){var J=L.getSelection(!0),W=new h.default;if(J==null)return W;if(x.default.query(T,x.default.Scope.BLOCK))W=L.editor.formatLine(J.index,J.length,D({},T,V));else{if(J.length===0)return L.selection.format(T,V),W;W=L.editor.formatText(J.index,J.length,D({},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,ee=H(T,V,L,X,J),ne=o(ee,4);return T=ne[0],V=ne[1],G=ne[2],J=ne[3],Q.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,ee=H(T,V,L,X,J),ne=o(ee,4);return T=ne[0],V=ne[1],G=ne[2],J=ne[3],Q.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]:Y.sources.API;return Q.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,ee=H(T,0,L,X,J),ne=o(ee,4);return T=ne[0],G=ne[2],J=ne[3],Q.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],Q.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 Q.call(this,function(){T=new h.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 ee=J.compose(W);return ee},L)}},{key:"setSelection",value:function(T,V,L){if(T==null)this.selection.setRange(null,V||Y.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 k.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 h.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 Q.call(this,function(){return T=new h.default(T),V.editor.applyDelta(T,L)},L,!0)}}]),Y})();q.DEFAULTS={bounds:null,formats:null,modules:{},placeholder:"",readOnly:!1,scrollingContainer:null,strict:!0,theme:"default"},q.events=g.default.events,q.sources=g.default.sources,q.version="1.3.7",q.imports={delta:h.default,parchment:x.default,"core/module":j.default,"core/theme":B.default};function U(Y,P){if(P=(0,A.default)(!0,{container:Y,modules:{clipboard:!0,keyboard:!0,history:!0}},P),!P.theme||P.theme===q.DEFAULTS.theme)P.theme=B.default;else if(P.theme=q.import("themes/"+P.theme),P.theme==null)throw new Error("Invalid theme "+P.theme+". Did you register it?");var T=(0,A.default)(!0,{},P.theme.DEFAULTS);[T,P].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(P.modules)),L=V.reduce(function(X,J){var W=q.import("modules/"+J);return W==null?z.error("Cannot load "+J+" module. Are you sure you registered it?"):X[J]=W.DEFAULTS||{},X},{});return P.modules!=null&&P.modules.toolbar&&P.modules.toolbar.constructor!==Object&&(P.modules.toolbar={container:P.modules.toolbar}),P=(0,A.default)(!0,{},q.DEFAULTS,{modules:L},T,P),["bounds","container","scrollingContainer"].forEach(function(X){typeof P[X]=="string"&&(P[X]=document.querySelector(P[X]))}),P.modules=Object.keys(P.modules).reduce(function(X,J){return P.modules[J]&&(X[J]=P.modules[J]),X},{}),P}function Q(Y,P,T,V){if(this.options.strict&&!this.isEnabled()&&P===g.default.sources.USER)return new h.default;var L=T==null?null:this.getSelection(),X=this.editor.delta,J=Y();if(L!=null&&(T===!0&&(T=L.index),V==null?L=K(L,J,P):V!==0&&(L=K(L,T,V,P)),this.setSelection(L,g.default.sources.SILENT)),J.length()>0){var W,G=[g.default.events.TEXT_CHANGE,J,X,P];if((W=this.emitter).emit.apply(W,[g.default.events.EDITOR_CHANGE].concat(G)),P!==g.default.sources.SILENT){var ee;(ee=this.emitter).emit.apply(ee,G)}}return J}function H(Y,P,T,V,L){var X={};return typeof Y.index=="number"&&typeof Y.length=="number"?typeof P!="number"?(L=V,V=T,T=P,P=Y.length,Y=Y.index):(P=Y.length,Y=Y.index):typeof P!="number"&&(L=V,V=T,T=P,P=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,[Y,P,X,L]}function K(Y,P,T,V){if(Y==null)return null;var L=void 0,X=void 0;if(P instanceof h.default){var J=[Y.index,Y.index+Y.length].map(function(ne){return P.transformPosition(ne,V!==g.default.sources.USER)}),W=o(J,2);L=W[0],X=W[1]}else{var G=[Y.index,Y.index+Y.length].map(function(ne){return ne<P||ne===P&&V===g.default.sources.USER?ne:T>=0?ne+T:Math.max(P,ne+T)}),ee=o(G,2);L=ee[0],X=ee[1]}return new k.Range(L,X-L)}i.expandConfig=U,i.overload=H,i.default=q}),(function(r,i,s){Object.defineProperty(i,"__esModule",{value:!0});var a=(function(){function v(x,k){for(var w=0;w<k.length;w++){var N=k[w];N.enumerable=N.enumerable||!1,N.configurable=!0,"value"in N&&(N.writable=!0),Object.defineProperty(x,N.key,N)}}return function(x,k,w){return k&&v(x.prototype,k),w&&v(x,w),x}})(),o=function v(x,k,w){x===null&&(x=Function.prototype);var N=Object.getOwnPropertyDescriptor(x,k);if(N===void 0){var A=Object.getPrototypeOf(x);return A===null?void 0:v(A,k,w)}else{if("value"in N)return N.value;var S=N.get;return S===void 0?void 0:S.call(w)}},c=s(7),d=m(c),h=s(0),f=m(h);function m(v){return v&&v.__esModule?v:{default:v}}function p(v,x){if(!(v instanceof x))throw new TypeError("Cannot call a class as a function")}function g(v,x){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return x&&(typeof x=="object"||typeof x=="function")?x:v}function b(v,x){if(typeof x!="function"&&x!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof x);v.prototype=Object.create(x&&x.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),x&&(Object.setPrototypeOf?Object.setPrototypeOf(v,x):v.__proto__=x)}var j=(function(v){b(x,v);function x(){return p(this,x),g(this,(x.__proto__||Object.getPrototypeOf(x)).apply(this,arguments))}return a(x,[{key:"formatAt",value:function(w,N,A,S){if(x.compare(this.statics.blotName,A)<0&&f.default.query(A,f.default.Scope.BLOT)){var E=this.isolate(w,N);S&&E.wrap(A,S)}else o(x.prototype.__proto__||Object.getPrototypeOf(x.prototype),"formatAt",this).call(this,w,N,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 N=this.parent.isolate(this.offset(),this.length());this.moveChildren(N),N.wrap(this)}}}],[{key:"compare",value:function(w,N){var A=x.order.indexOf(w),S=x.order.indexOf(N);return A>=0||S>=0?A-S:w===N?0:w<N?-1:1}}]),x})(f.default.Inline);j.allowedChildren=[j,f.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 h(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 f(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){f(g,p);function g(){return d(this,g),h(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 k(w,N){for(var A=0;A<N.length;A++){var S=N[A];S.enumerable=S.enumerable||!1,S.configurable=!0,"value"in S&&(S.writable=!0),Object.defineProperty(w,S.key,S)}}return function(w,N,A){return N&&k(w.prototype,N),A&&k(w,A),w}})(),o=function k(w,N,A){w===null&&(w=Function.prototype);var S=Object.getOwnPropertyDescriptor(w,N);if(S===void 0){var E=Object.getPrototypeOf(w);return E===null?void 0:k(E,N,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),h=s(10),f=m(h);function m(k){return k&&k.__esModule?k:{default:k}}function p(k,w){if(!(k instanceof w))throw new TypeError("Cannot call a class as a function")}function g(k,w){if(!k)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return w&&(typeof w=="object"||typeof w=="function")?w:k}function b(k,w){if(typeof w!="function"&&w!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof w);k.prototype=Object.create(w&&w.prototype,{constructor:{value:k,enumerable:!1,writable:!0,configurable:!0}}),w&&(Object.setPrototypeOf?Object.setPrototypeOf(k,w):k.__proto__=w)}var j=(0,f.default)("quill:events"),v=["selectionchange","mousedown","mouseup","click"];v.forEach(function(k){document.addEventListener(k,function(){for(var w=arguments.length,N=Array(w),A=0;A<w;A++)N[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,N)}})})});var x=(function(k){b(w,k);function w(){p(this,w);var N=g(this,(w.__proto__||Object.getPrototypeOf(w)).call(this));return N.listeners={},N.on("error",j.error),N}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 F=B.node,D=B.handler;(A.target===F||F.contains(A.target))&&D.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 h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};a(this,c),this.quill=d,this.options=h};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(h){if(a.indexOf(h)<=a.indexOf(o)){for(var f,m=arguments.length,p=Array(m>1?m-1:0),g=1;g<m;g++)p[g-1]=arguments[g];(f=console)[h].apply(f,p)}}function d(h){return a.reduce(function(f,m){return f[m]=c.bind(console,m,h),f},{})}c.level=d.level=function(h){o=h},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 h(p){return p==null}function f(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,v;if(h(p)||h(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(f(p)){if(!f(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),k=o(g)}catch{return!1}if(x.length!=k.length)return!1;for(x.sort(),k.sort(),j=x.length-1;j>=0;j--)if(x[j]!=k[j])return!1;for(j=x.length-1;j>=0;j--)if(v=x[j],!d(p[v],g[v],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,h,f){f===void 0&&(f={}),this.attrName=d,this.keyName=h;var m=a.Scope.TYPE&a.Scope.ATTRIBUTE;f.scope!=null?this.scope=f.scope&a.Scope.LEVEL|m:this.scope=a.Scope.ATTRIBUTE,f.whitelist!=null&&(this.whitelist=f.whitelist)}return c.keys=function(d){return[].map.call(d.attributes,function(h){return h.name})},c.prototype.add=function(d,h){return this.canAdd(d,h)?(d.setAttribute(this.keyName,h),!0):!1},c.prototype.canAdd=function(d,h){var f=a.query(d,a.Scope.BLOT&(this.scope|a.Scope.TYPE));return f==null?!1:this.whitelist==null?!0:typeof h=="string"?this.whitelist.indexOf(h.replace(/["']/g,""))>-1:this.whitelist.indexOf(h)>-1},c.prototype.remove=function(d){d.removeAttribute(this.keyName)},c.prototype.value=function(d){var h=d.getAttribute(this.keyName);return this.canAdd(d,h)&&h?h:""},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,F){var D=[],I=!0,z=!1,q=void 0;try{for(var U=B[Symbol.iterator](),Q;!(I=(Q=U.next()).done)&&(D.push(Q.value),!(F&&D.length===F));I=!0);}catch(H){z=!0,q=H}finally{try{!I&&U.return&&U.return()}finally{if(z)throw q}}return D}return function(B,F){if(Array.isArray(B))return B;if(Symbol.iterator in Object(B))return C(B,F);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),o=(function(){function C(B,F){for(var D=0;D<F.length;D++){var I=F[D];I.enumerable=I.enumerable||!1,I.configurable=!0,"value"in I&&(I.writable=!0),Object.defineProperty(B,I.key,I)}}return function(B,F,D){return F&&C(B.prototype,F),D&&C(B,D),B}})(),c=function C(B,F,D){B===null&&(B=Function.prototype);var I=Object.getOwnPropertyDescriptor(B,F);if(I===void 0){var z=Object.getPrototypeOf(B);return z===null?void 0:C(z,F,D)}else{if("value"in I)return I.value;var q=I.get;return q===void 0?void 0:q.call(D)}},d=s(2),h=k(d),f=s(0),m=k(f),p=s(4),g=k(p),b=s(6),j=k(b),v=s(7),x=k(v);function k(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 N(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),N(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),N(this,(B.__proto__||Object.getPrototypeOf(B)).apply(this,arguments))}return o(B,[{key:"delta",value:function(){var D=this,I=this.domNode.textContent;return I.endsWith(`
`)&&(I=I.slice(0,-1)),I.split(`
`).reduce(function(z,q){return z.insert(q).insert(`
`,D.formats())},new h.default)}},{key:"format",value:function(D,I){if(!(D===this.statics.blotName&&I)){var z=this.descendant(x.default,this.length()-1),q=a(z,1),U=q[0];U!=null&&U.deleteAt(U.length()-1,1),c(B.prototype.__proto__||Object.getPrototypeOf(B.prototype),"format",this).call(this,D,I)}}},{key:"formatAt",value:function(D,I,z,q){if(I!==0&&!(m.default.query(z,m.default.Scope.BLOCK)==null||z===this.statics.blotName&&q===this.statics.formats(this.domNode))){var U=this.newlineIndex(D);if(!(U<0||U>=D+I)){var Q=this.newlineIndex(D,!0)+1,H=U-Q+1,K=this.isolate(Q,H),Y=K.next;K.format(z,q),Y instanceof B&&Y.formatAt(0,D-Q+I-H,z,q)}}}},{key:"insertAt",value:function(D,I,z){if(z==null){var q=this.descendant(x.default,D),U=a(q,2),Q=U[0],H=U[1];Q.insertAt(H,I)}}},{key:"length",value:function(){var D=this.domNode.textContent.length;return this.domNode.textContent.endsWith(`
`)?D:D+1}},{key:"newlineIndex",value:function(D){var I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(I)return this.domNode.textContent.slice(0,D).lastIndexOf(`
`);var z=this.domNode.textContent.slice(D).indexOf(`
`);return z>-1?D+z:-1}},{key:"optimize",value:function(D){this.domNode.textContent.endsWith(`
`)||this.appendChild(m.default.create("text",`
`)),c(B.prototype.__proto__||Object.getPrototypeOf(B.prototype),"optimize",this).call(this,D);var I=this.next;I!=null&&I.prev===this&&I.statics.blotName===this.statics.blotName&&this.statics.formats(this.domNode)===I.statics.formats(I.domNode)&&(I.optimize(D),I.moveChildren(this),I.remove())}},{key:"replace",value:function(D){c(B.prototype.__proto__||Object.getPrototypeOf(B.prototype),"replace",this).call(this,D),[].slice.call(this.domNode.querySelectorAll("*")).forEach(function(I){var z=m.default.find(I);z==null?I.parentNode.removeChild(I):z instanceof m.default.Embed?z.remove():z.unwrap()})}}],[{key:"create",value:function(D){var I=c(B.__proto__||Object.getPrototypeOf(B),"create",this).call(this,D);return I.setAttribute("spellcheck",!1),I}},{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(Y){return typeof Y}:function(Y){return Y&&typeof Symbol=="function"&&Y.constructor===Symbol&&Y!==Symbol.prototype?"symbol":typeof Y},o=(function(){function Y(P,T){var V=[],L=!0,X=!1,J=void 0;try{for(var W=P[Symbol.iterator](),G;!(L=(G=W.next()).done)&&(V.push(G.value),!(T&&V.length===T));L=!0);}catch(ee){X=!0,J=ee}finally{try{!L&&W.return&&W.return()}finally{if(X)throw J}}return V}return function(P,T){if(Array.isArray(P))return P;if(Symbol.iterator in Object(P))return Y(P,T);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),c=(function(){function Y(P,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(P,L.key,L)}}return function(P,T,V){return T&&Y(P.prototype,T),V&&Y(P,V),P}})(),d=s(2),h=I(d),f=s(20),m=I(f),p=s(0),g=I(p),b=s(13),j=I(b),v=s(24),x=I(v),k=s(4),w=I(k),N=s(16),A=I(N),S=s(21),E=I(S),C=s(11),B=I(C),F=s(3),D=I(F);function I(Y){return Y&&Y.__esModule?Y:{default:Y}}function z(Y,P,T){return P in Y?Object.defineProperty(Y,P,{value:T,enumerable:!0,configurable:!0,writable:!0}):Y[P]=T,Y}function q(Y,P){if(!(Y instanceof P))throw new TypeError("Cannot call a class as a function")}var U=/^[ -~]*$/,Q=(function(){function Y(P){q(this,Y),this.scroll=P,this.delta=this.getDelta()}return c(Y,[{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,ee=W.attributes||{};if(W.insert!=null){if(typeof W.insert=="string"){var ne=W.insert;ne.endsWith(`
`)&&L&&(L=!1,ne=ne.slice(0,-1)),J>=X&&!ne.endsWith(`
`)&&(L=!0),V.scroll.insertAt(J,ne);var le=V.scroll.line(J),ve=o(le,2),be=ve[0],Oe=ve[1],Te=(0,D.default)({},(0,k.bubbleFormats)(be));if(be instanceof w.default){var We=be.descendant(g.default.Leaf,Oe),ut=o(We,1),nt=ut[0];Te=(0,D.default)(Te,(0,k.bubbleFormats)(nt))}ee=m.default.attributes.diff(Te,ee)||{}}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(ee).forEach(function(ye){V.scroll.formatAt(J,G,ye,ee[ye])}),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 h.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(ee){var ne=ee.length();if(!(ee instanceof j.default))ee.format(J,X[J]);else{var le=T-ee.offset(L.scroll),ve=ee.newlineIndex(le+G)-le+1;ee.formatAt(le,ve,J,X[J])}G-=ne})}}),this.scroll.optimize(),this.update(new h.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 h.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 h.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),ee=G[0];ee instanceof w.default?L.push(ee):ee instanceof g.default.Leaf&&X.push(ee)}):(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,k.bubbleFormats)(W.shift());Object.keys(G).length>0;){var ee=W.shift();if(ee==null)return G;G=H((0,k.bubbleFormats)(ee),G)}return G});return D.default.apply(D.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 h.default().retain(T).insert(z({},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 h.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],ee=0,ne=new h.default;W!=null&&(W instanceof j.default?ee=W.newlineIndex(G)-G+1:ee=W.length()-G,ne=W.delta().slice(G,G+ee-1).insert(`
`));var le=this.getContents(T,V+ee),ve=le.diff(new h.default().insert(L).concat(ne)),be=new h.default().retain(T).concat(ve);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,k.bubbleFormats)(J),G=J.offset(this.scroll),ee=V[0].oldValue.replace(x.default.CONTENTS,""),ne=new h.default().insert(ee),le=new h.default().insert(J.value()),ve=new h.default().retain(G).concat(ne.diff(le,L));T=ve.reduce(function(be,Oe){return Oe.insert?be.insert(Oe.insert,W):be.push(Oe)},new h.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}}]),Y})();function H(Y,P){return Object.keys(P).reduce(function(T,V){return Y[V]==null||(P[V]===Y[V]?T[V]=P[V]:Array.isArray(P[V])?P[V].indexOf(Y[V])<0&&(T[V]=P[V].concat([Y[V]])):T[V]=[P[V],Y[V]]),T},{})}function K(Y){return Y.reduce(function(P,T){if(T.insert===1){var V=(0,E.default)(T.attributes);return delete V.image,P.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 P.insert(L,T.attributes)}return P.push(T)},new h.default)}i.default=Q}),(function(r,i,s){Object.defineProperty(i,"__esModule",{value:!0}),i.default=i.Range=void 0;var a=(function(){function C(B,F){var D=[],I=!0,z=!1,q=void 0;try{for(var U=B[Symbol.iterator](),Q;!(I=(Q=U.next()).done)&&(D.push(Q.value),!(F&&D.length===F));I=!0);}catch(H){z=!0,q=H}finally{try{!I&&U.return&&U.return()}finally{if(z)throw q}}return D}return function(B,F){if(Array.isArray(B))return B;if(Symbol.iterator in Object(B))return C(B,F);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),o=(function(){function C(B,F){for(var D=0;D<F.length;D++){var I=F[D];I.enumerable=I.enumerable||!1,I.configurable=!0,"value"in I&&(I.writable=!0),Object.defineProperty(B,I.key,I)}}return function(B,F,D){return F&&C(B.prototype,F),D&&C(B,D),B}})(),c=s(0),d=x(c),h=s(21),f=x(h),m=s(11),p=x(m),g=s(8),b=x(g),j=s(10),v=x(j);function x(C){return C&&C.__esModule?C:{default:C}}function k(C){if(Array.isArray(C)){for(var B=0,F=Array(C.length);B<C.length;B++)F[B]=C[B];return F}else return Array.from(C)}function w(C,B){if(!(C instanceof B))throw new TypeError("Cannot call a class as a function")}var N=(0,v.default)("quill:selection"),A=function C(B){var F=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;w(this,C),this.index=B,this.length=F},S=(function(){function C(B,F){var D=this;w(this,C),this.emitter=F,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(){D.mouseDown||setTimeout(D.update.bind(D,b.default.sources.USER),1)}),this.emitter.on(b.default.events.EDITOR_CHANGE,function(I,z){I===b.default.events.TEXT_CHANGE&&z.length()>0&&D.update(b.default.sources.SILENT)}),this.emitter.on(b.default.events.SCROLL_BEFORE_UPDATE,function(){if(D.hasFocus()){var I=D.getNativeRange();I!=null&&I.start.node!==D.cursor.textNode&&D.emitter.once(b.default.events.SCROLL_UPDATE,function(){try{D.setNativeRange(I.start.node,I.start.offset,I.end.node,I.end.offset)}catch{}})}}),this.emitter.on(b.default.events.SCROLL_OPTIMIZE,function(I,z){if(z.range){var q=z.range,U=q.startNode,Q=q.startOffset,H=q.endNode,K=q.endOffset;D.setNativeRange(U,Q,H,K)}}),this.update(b.default.sources.SILENT)}return o(C,[{key:"handleComposition",value:function(){var F=this;this.root.addEventListener("compositionstart",function(){F.composing=!0}),this.root.addEventListener("compositionend",function(){if(F.composing=!1,F.cursor.parent){var D=F.cursor.restore();if(!D)return;setTimeout(function(){F.setNativeRange(D.startNode,D.startOffset,D.endNode,D.endOffset)},1)}})}},{key:"handleDragging",value:function(){var F=this;this.emitter.listenDOM("mousedown",document.body,function(){F.mouseDown=!0}),this.emitter.listenDOM("mouseup",document.body,function(){F.mouseDown=!1,F.update(b.default.sources.USER)})}},{key:"focus",value:function(){this.hasFocus()||(this.root.focus(),this.setRange(this.savedRange))}},{key:"format",value:function(F,D){if(!(this.scroll.whitelist!=null&&!this.scroll.whitelist[F])){this.scroll.update();var I=this.getNativeRange();if(!(I==null||!I.native.collapsed||d.default.query(F,d.default.Scope.BLOCK))){if(I.start.node!==this.cursor.textNode){var z=d.default.find(I.start.node,!1);if(z==null)return;if(z instanceof d.default.Leaf){var q=z.split(I.start.offset);z.parent.insertBefore(this.cursor,q)}else z.insertBefore(this.cursor,I.start.node);this.cursor.attach()}this.cursor.format(F,D),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}}},{key:"getBounds",value:function(F){var D=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,I=this.scroll.length();F=Math.min(F,I-1),D=Math.min(F+D,I-1)-F;var z=void 0,q=this.scroll.leaf(F),U=a(q,2),Q=U[0],H=U[1];if(Q==null)return null;var K=Q.position(H,!0),Y=a(K,2);z=Y[0],H=Y[1];var P=document.createRange();if(D>0){P.setStart(z,H);var T=this.scroll.leaf(F+D),V=a(T,2);if(Q=V[0],H=V[1],Q==null)return null;var L=Q.position(H,!0),X=a(L,2);return z=X[0],H=X[1],P.setEnd(z,H),P.getBoundingClientRect()}else{var J="left",W=void 0;return z instanceof Text?(H<z.data.length?(P.setStart(z,H),P.setEnd(z,H+1)):(P.setStart(z,H-1),P.setEnd(z,H),J="right"),W=P.getBoundingClientRect()):(W=Q.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 F=document.getSelection();if(F==null||F.rangeCount<=0)return null;var D=F.getRangeAt(0);if(D==null)return null;var I=this.normalizeNative(D);return N.info("getNativeRange",I),I}},{key:"getRange",value:function(){var F=this.getNativeRange();if(F==null)return[null,null];var D=this.normalizedToRange(F);return[D,F]}},{key:"hasFocus",value:function(){return document.activeElement===this.root}},{key:"normalizedToRange",value:function(F){var D=this,I=[[F.start.node,F.start.offset]];F.native.collapsed||I.push([F.end.node,F.end.offset]);var z=I.map(function(Q){var H=a(Q,2),K=H[0],Y=H[1],P=d.default.find(K,!0),T=P.offset(D.scroll);return Y===0?T:P instanceof d.default.Container?T+P.length():T+P.index(K,Y)}),q=Math.min(Math.max.apply(Math,k(z)),this.scroll.length()-1),U=Math.min.apply(Math,[q].concat(k(z)));return new A(U,q-U)}},{key:"normalizeNative",value:function(F){if(!E(this.root,F.startContainer)||!F.collapsed&&!E(this.root,F.endContainer))return null;var D={start:{node:F.startContainer,offset:F.startOffset},end:{node:F.endContainer,offset:F.endOffset},native:F};return[D.start,D.end].forEach(function(I){for(var z=I.node,q=I.offset;!(z instanceof Text)&&z.childNodes.length>0;)if(z.childNodes.length>q)z=z.childNodes[q],q=0;else if(z.childNodes.length===q)z=z.lastChild,q=z instanceof Text?z.data.length:z.childNodes.length+1;else break;I.node=z,I.offset=q}),D}},{key:"rangeToNative",value:function(F){var D=this,I=F.collapsed?[F.index]:[F.index,F.index+F.length],z=[],q=this.scroll.length();return I.forEach(function(U,Q){U=Math.min(q-1,U);var H=void 0,K=D.scroll.leaf(U),Y=a(K,2),P=Y[0],T=Y[1],V=P.position(T,Q!==0),L=a(V,2);H=L[0],T=L[1],z.push(H,T)}),z.length<2&&(z=z.concat(z)),z}},{key:"scrollIntoView",value:function(F){var D=this.lastRange;if(D!=null){var I=this.getBounds(D.index,D.length);if(I!=null){var z=this.scroll.length()-1,q=this.scroll.line(Math.min(D.index,z)),U=a(q,1),Q=U[0],H=Q;if(D.length>0){var K=this.scroll.line(Math.min(D.index+D.length,z)),Y=a(K,1);H=Y[0]}if(!(Q==null||H==null)){var P=F.getBoundingClientRect();I.top<P.top?F.scrollTop-=P.top-I.top:I.bottom>P.bottom&&(F.scrollTop+=I.bottom-P.bottom)}}}}},{key:"setNativeRange",value:function(F,D){var I=arguments.length>2&&arguments[2]!==void 0?arguments[2]:F,z=arguments.length>3&&arguments[3]!==void 0?arguments[3]:D,q=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(N.info("setNativeRange",F,D,I,z),!(F!=null&&(this.root.parentNode==null||F.parentNode==null||I.parentNode==null))){var U=document.getSelection();if(U!=null)if(F!=null){this.hasFocus()||this.root.focus();var Q=(this.getNativeRange()||{}).native;if(Q==null||q||F!==Q.startContainer||D!==Q.startOffset||I!==Q.endContainer||z!==Q.endOffset){F.tagName=="BR"&&(D=[].indexOf.call(F.parentNode.childNodes,F),F=F.parentNode),I.tagName=="BR"&&(z=[].indexOf.call(I.parentNode.childNodes,I),I=I.parentNode);var H=document.createRange();H.setStart(F,D),H.setEnd(I,z),U.removeAllRanges(),U.addRange(H)}}else U.removeAllRanges(),this.root.blur(),document.body.focus()}}},{key:"setRange",value:function(F){var D=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,I=arguments.length>2&&arguments[2]!==void 0?arguments[2]:b.default.sources.API;if(typeof D=="string"&&(I=D,D=!1),N.info("setRange",F),F!=null){var z=this.rangeToNative(F);this.setNativeRange.apply(this,k(z).concat([D]))}else this.setNativeRange(null);this.update(I)}},{key:"update",value:function(){var F=arguments.length>0&&arguments[0]!==void 0?arguments[0]:b.default.sources.USER,D=this.lastRange,I=this.getRange(),z=a(I,2),q=z[0],U=z[1];if(this.lastRange=q,this.lastRange!=null&&(this.savedRange=this.lastRange),!(0,p.default)(D,this.lastRange)){var Q;!this.composing&&U!=null&&U.native.collapsed&&U.start.node!==this.cursor.textNode&&this.cursor.restore();var H=[b.default.events.SELECTION_CHANGE,(0,f.default)(this.lastRange),(0,f.default)(D),F];if((Q=this.emitter).emit.apply(Q,[b.default.events.EDITOR_CHANGE].concat(H)),F!==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,v){for(var x=0;x<v.length;x++){var k=v[x];k.enumerable=k.enumerable||!1,k.configurable=!0,"value"in k&&(k.writable=!0),Object.defineProperty(j,k.key,k)}}return function(j,v,x){return v&&b(j.prototype,v),x&&b(j,x),j}})(),o=function b(j,v,x){j===null&&(j=Function.prototype);var k=Object.getOwnPropertyDescriptor(j,v);if(k===void 0){var w=Object.getPrototypeOf(j);return w===null?void 0:b(w,v,x)}else{if("value"in k)return k.value;var N=k.get;return N===void 0?void 0:N.call(x)}},c=s(0),d=h(c);function h(b){return b&&b.__esModule?b:{default:b}}function f(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 f(this,j),m(this,(j.__proto__||Object.getPrototypeOf(j)).apply(this,arguments))}return a(j,[{key:"insertInto",value:function(x,k){x.children.length===0?o(j.prototype.__proto__||Object.getPrototypeOf(j.prototype),"insertInto",this).call(this,x,k):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),h=(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=f(b);g.insertBefore(j,g.children.head||void 0)}catch(v){if(v instanceof d.ParchmentError)return;throw v}})},p.prototype.deleteAt=function(g,b){if(g===0&&b===this.length())return this.remove();this.children.forEachAt(g,b,function(j,v,x){j.deleteAt(v,x)})},p.prototype.descendant=function(g,b){var j=this.children.find(b),v=j[0],x=j[1];return g.blotName==null&&g(v)||g.blotName!=null&&v instanceof g?[v,x]:v instanceof p?v.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 v=[],x=j;return this.children.forEachAt(b,j,function(k,w,N){(g.blotName==null&&g(k)||g.blotName!=null&&k instanceof g)&&v.push(k),k instanceof p&&(v=v.concat(k.descendants(g,w,x))),x-=N}),v},p.prototype.detach=function(){this.children.forEach(function(g){g.detach()}),m.prototype.detach.call(this)},p.prototype.formatAt=function(g,b,j,v){this.children.forEachAt(g,b,function(x,k,w){x.formatAt(k,w,j,v)})},p.prototype.insertAt=function(g,b,j){var v=this.children.find(g),x=v[0],k=v[1];if(x)x.insertAt(k,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),v=j[0],x=j[1],k=[[this,g]];return v instanceof p?k.concat(v.path(x,b)):(v!=null&&k.push([v,x]),k)},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(v,x,k){v=v.split(x,b),j.appendChild(v)}),j},p.prototype.unwrap=function(){this.moveChildren(this.parent,this.next),this.remove()},p.prototype.update=function(g,b){var j=this,v=[],x=[];g.forEach(function(k){k.target===j.domNode&&k.type==="childList"&&(v.push.apply(v,k.addedNodes),x.push.apply(x,k.removedNodes))}),x.forEach(function(k){if(!(k.parentNode!=null&&k.tagName!=="IFRAME"&&document.body.compareDocumentPosition(k)&Node.DOCUMENT_POSITION_CONTAINED_BY)){var w=d.find(k);w!=null&&(w.domNode.parentNode==null||w.domNode.parentNode===j.domNode)&&w.detach()}}),v.filter(function(k){return k.parentNode==j.domNode}).sort(function(k,w){return k===w?0:k.compareDocumentPosition(w)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1}).forEach(function(k){var w=null;k.nextSibling!=null&&(w=d.find(k.nextSibling));var N=f(k);(N.next!=w||N.next==null)&&(N.parent!=null&&N.parent.removeChild(j),j.insertBefore(N,w||void 0))})},p})(c.default);function f(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=h}),(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),h=s(1),f=(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=h.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(v){return v.target===j.domNode&&v.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=f}),(function(r,i,s){var a=this&&this.__extends||(function(){var h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,m){f.__proto__=m}||function(f,m){for(var p in m)m.hasOwnProperty(p)&&(f[p]=m[p])};return function(f,m){h(f,m);function p(){this.constructor=f}f.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(h){a(f,h);function f(){return h!==null&&h.apply(this,arguments)||this}return f.value=function(m){return!0},f.prototype.index=function(m,p){return this.domNode===m||this.domNode.compareDocumentPosition(m)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(p,1):-1},f.prototype.position=function(m,p){var g=[].indexOf.call(this.parent.domNode.childNodes,this.domNode);return m>0&&(g+=1),[this.parent.domNode,g]},f.prototype.value=function(){var m;return m={},m[this.statics.blotName]=this.statics.value(this.domNode)||!0,m},f.scope=c.Scope.INLINE_BLOT,f})(o.default);i.default=d}),(function(r,i,s){var a=s(11),o=s(3),c={attributes:{compose:function(h,f,m){typeof h!="object"&&(h={}),typeof f!="object"&&(f={});var p=o(!0,{},f);m||(p=Object.keys(p).reduce(function(b,j){return p[j]!=null&&(b[j]=p[j]),b},{}));for(var g in h)h[g]!==void 0&&f[g]===void 0&&(p[g]=h[g]);return Object.keys(p).length>0?p:void 0},diff:function(h,f){typeof h!="object"&&(h={}),typeof f!="object"&&(f={});var m=Object.keys(h).concat(Object.keys(f)).reduce(function(p,g){return a(h[g],f[g])||(p[g]=f[g]===void 0?null:f[g]),p},{});return Object.keys(m).length>0?m:void 0},transform:function(h,f,m){if(typeof h!="object")return f;if(typeof f=="object"){if(!m)return f;var p=Object.keys(f).reduce(function(g,b){return h[b]===void 0&&(g[b]=f[b]),g},{});return Object.keys(p).length>0?p:void 0}}},iterator:function(h){return new d(h)},length:function(h){return typeof h.delete=="number"?h.delete:typeof h.retain=="number"?h.retain:typeof h.insert=="string"?h.insert.length:1}};function d(h){this.ops=h,this.index=0,this.offset=0}d.prototype.hasNext=function(){return this.peekLength()<1/0},d.prototype.next=function(h){h||(h=1/0);var f=this.ops[this.index];if(f){var m=this.offset,p=c.length(f);if(h>=p-m?(h=p-m,this.index+=1,this.offset=0):this.offset+=h,typeof f.delete=="number")return{delete:h};var g={};return f.attributes&&(g.attributes=f.attributes),typeof f.retain=="number"?g.retain=h:typeof f.insert=="string"?g.insert=f.insert.substr(m,h):g.insert=f.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 h=this.offset,f=this.index,m=this.next(),p=this.ops.slice(this.index);return this.offset=h,this.index=f,[m].concat(p)}else return[]},r.exports=c}),(function(r,i){var s=(function(){function a(j,v){return v!=null&&j instanceof v}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 h(j,v,x,k,w){typeof v=="object"&&(x=v.depth,k=v.prototype,w=v.includeNonEnumerable,v=v.circular);var N=[],A=[],S=typeof Buffer<"u";typeof v>"u"&&(v=!0),typeof x>"u"&&(x=1/0);function E(C,B){if(C===null)return null;if(B===0)return C;var F,D;if(typeof C!="object")return C;if(a(C,o))F=new o;else if(a(C,c))F=new c;else if(a(C,d))F=new d(function(P,T){C.then(function(V){P(E(V,B-1))},function(V){T(E(V,B-1))})});else if(h.__isArray(C))F=[];else if(h.__isRegExp(C))F=new RegExp(C.source,b(C)),C.lastIndex&&(F.lastIndex=C.lastIndex);else if(h.__isDate(C))F=new Date(C.getTime());else{if(S&&Buffer.isBuffer(C))return Buffer.allocUnsafe?F=Buffer.allocUnsafe(C.length):F=new Buffer(C.length),C.copy(F),F;a(C,Error)?F=Object.create(C):typeof k>"u"?(D=Object.getPrototypeOf(C),F=Object.create(D)):(F=Object.create(k),D=k)}if(v){var I=N.indexOf(C);if(I!=-1)return A[I];N.push(C),A.push(F)}a(C,o)&&C.forEach(function(P,T){var V=E(T,B-1),L=E(P,B-1);F.set(V,L)}),a(C,c)&&C.forEach(function(P){var T=E(P,B-1);F.add(T)});for(var z in C){var q;D&&(q=Object.getOwnPropertyDescriptor(D,z)),!(q&&q.set==null)&&(F[z]=E(C[z],B-1))}if(Object.getOwnPropertySymbols)for(var U=Object.getOwnPropertySymbols(C),z=0;z<U.length;z++){var Q=U[z],H=Object.getOwnPropertyDescriptor(C,Q);H&&!H.enumerable&&!w||(F[Q]=E(C[Q],B-1),H.enumerable||Object.defineProperty(F,Q,{enumerable:!1}))}if(w)for(var K=Object.getOwnPropertyNames(C),z=0;z<K.length;z++){var Y=K[z],H=Object.getOwnPropertyDescriptor(C,Y);H&&H.enumerable||(F[Y]=E(C[Y],B-1),Object.defineProperty(F,Y,{enumerable:!1}))}return F}return E(j,x)}h.clonePrototype=function(v){if(v===null)return null;var x=function(){};return x.prototype=v,new x};function f(j){return Object.prototype.toString.call(j)}h.__objToStr=f;function m(j){return typeof j=="object"&&f(j)==="[object Date]"}h.__isDate=m;function p(j){return typeof j=="object"&&f(j)==="[object Array]"}h.__isArray=p;function g(j){return typeof j=="object"&&f(j)==="[object RegExp]"}h.__isRegExp=g;function b(j){var v="";return j.global&&(v+="g"),j.ignoreCase&&(v+="i"),j.multiline&&(v+="m"),v}return h.__getRegExpFlags=b,h})();typeof r=="object"&&r.exports&&(r.exports=s)}),(function(r,i,s){Object.defineProperty(i,"__esModule",{value:!0});var a=(function(){function F(D,I){var z=[],q=!0,U=!1,Q=void 0;try{for(var H=D[Symbol.iterator](),K;!(q=(K=H.next()).done)&&(z.push(K.value),!(I&&z.length===I));q=!0);}catch(Y){U=!0,Q=Y}finally{try{!q&&H.return&&H.return()}finally{if(U)throw Q}}return z}return function(D,I){if(Array.isArray(D))return D;if(Symbol.iterator in Object(D))return F(D,I);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),o=(function(){function F(D,I){for(var z=0;z<I.length;z++){var q=I[z];q.enumerable=q.enumerable||!1,q.configurable=!0,"value"in q&&(q.writable=!0),Object.defineProperty(D,q.key,q)}}return function(D,I,z){return I&&F(D.prototype,I),z&&F(D,z),D}})(),c=function F(D,I,z){D===null&&(D=Function.prototype);var q=Object.getOwnPropertyDescriptor(D,I);if(q===void 0){var U=Object.getPrototypeOf(D);return U===null?void 0:F(U,I,z)}else{if("value"in q)return q.value;var Q=q.get;return Q===void 0?void 0:Q.call(z)}},d=s(0),h=N(d),f=s(8),m=N(f),p=s(4),g=N(p),b=s(16),j=N(b),v=s(13),x=N(v),k=s(25),w=N(k);function N(F){return F&&F.__esModule?F:{default:F}}function A(F,D){if(!(F instanceof D))throw new TypeError("Cannot call a class as a function")}function S(F,D){if(!F)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return D&&(typeof D=="object"||typeof D=="function")?D:F}function E(F,D){if(typeof D!="function"&&D!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof D);F.prototype=Object.create(D&&D.prototype,{constructor:{value:F,enumerable:!1,writable:!0,configurable:!0}}),D&&(Object.setPrototypeOf?Object.setPrototypeOf(F,D):F.__proto__=D)}function C(F){return F instanceof g.default||F instanceof p.BlockEmbed}var B=(function(F){E(D,F);function D(I,z){A(this,D);var q=S(this,(D.__proto__||Object.getPrototypeOf(D)).call(this,I));return q.emitter=z.emitter,Array.isArray(z.whitelist)&&(q.whitelist=z.whitelist.reduce(function(U,Q){return U[Q]=!0,U},{})),q.domNode.addEventListener("DOMNodeInserted",function(){}),q.optimize(),q.enable(),q}return o(D,[{key:"batchStart",value:function(){this.batch=!0}},{key:"batchEnd",value:function(){this.batch=!1,this.optimize()}},{key:"deleteAt",value:function(z,q){var U=this.line(z),Q=a(U,2),H=Q[0],K=Q[1],Y=this.line(z+q),P=a(Y,1),T=P[0];if(c(D.prototype.__proto__||Object.getPrototypeOf(D.prototype),"deleteAt",this).call(this,z,q),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 z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.domNode.setAttribute("contenteditable",z)}},{key:"formatAt",value:function(z,q,U,Q){this.whitelist!=null&&!this.whitelist[U]||(c(D.prototype.__proto__||Object.getPrototypeOf(D.prototype),"formatAt",this).call(this,z,q,U,Q),this.optimize())}},{key:"insertAt",value:function(z,q,U){if(!(U!=null&&this.whitelist!=null&&!this.whitelist[q])){if(z>=this.length())if(U==null||h.default.query(q,h.default.Scope.BLOCK)==null){var Q=h.default.create(this.statics.defaultChild);this.appendChild(Q),U==null&&q.endsWith(`
`)&&(q=q.slice(0,-1)),Q.insertAt(0,q,U)}else{var H=h.default.create(q,U);this.appendChild(H)}else c(D.prototype.__proto__||Object.getPrototypeOf(D.prototype),"insertAt",this).call(this,z,q,U);this.optimize()}}},{key:"insertBefore",value:function(z,q){if(z.statics.scope===h.default.Scope.INLINE_BLOT){var U=h.default.create(this.statics.defaultChild);U.appendChild(z),z=U}c(D.prototype.__proto__||Object.getPrototypeOf(D.prototype),"insertBefore",this).call(this,z,q)}},{key:"leaf",value:function(z){return this.path(z).pop()||[null,-1]}},{key:"line",value:function(z){return z===this.length()?this.line(z-1):this.descendant(C,z)}},{key:"lines",value:function(){var z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MAX_VALUE,U=function Q(H,K,Y){var P=[],T=Y;return H.children.forEachAt(K,Y,function(V,L,X){C(V)?P.push(V):V instanceof h.default.Container&&(P=P.concat(Q(V,L,T))),T-=X}),P};return U(this,z,q)}},{key:"optimize",value:function(){var z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.batch!==!0&&(c(D.prototype.__proto__||Object.getPrototypeOf(D.prototype),"optimize",this).call(this,z,q),z.length>0&&this.emitter.emit(m.default.events.SCROLL_OPTIMIZE,z,q))}},{key:"path",value:function(z){return c(D.prototype.__proto__||Object.getPrototypeOf(D.prototype),"path",this).call(this,z).slice(1)}},{key:"update",value:function(z){if(this.batch!==!0){var q=m.default.sources.USER;typeof z=="string"&&(q=z),Array.isArray(z)||(z=this.observer.takeRecords()),z.length>0&&this.emitter.emit(m.default.events.SCROLL_BEFORE_UPDATE,q,z),c(D.prototype.__proto__||Object.getPrototypeOf(D.prototype),"update",this).call(this,z.concat([])),z.length>0&&this.emitter.emit(m.default.events.SCROLL_UPDATE,q,z)}}}]),D})(h.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,ee){var ne=[],le=!0,ve=!1,be=void 0;try{for(var Oe=G[Symbol.iterator](),Te;!(le=(Te=Oe.next()).done)&&(ne.push(Te.value),!(ee&&ne.length===ee));le=!0);}catch(We){ve=!0,be=We}finally{try{!le&&Oe.return&&Oe.return()}finally{if(ve)throw be}}return ne}return function(G,ee){if(Array.isArray(G))return G;if(Symbol.iterator in Object(G))return W(G,ee);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),c=(function(){function W(G,ee){for(var ne=0;ne<ee.length;ne++){var le=ee[ne];le.enumerable=le.enumerable||!1,le.configurable=!0,"value"in le&&(le.writable=!0),Object.defineProperty(G,le.key,le)}}return function(G,ee,ne){return ee&&W(G.prototype,ee),ne&&W(G,ne),G}})(),d=s(21),h=F(d),f=s(11),m=F(f),p=s(3),g=F(p),b=s(2),j=F(b),v=s(20),x=F(v),k=s(0),w=F(k),N=s(5),A=F(N),S=s(10),E=F(S),C=s(9),B=F(C);function F(W){return W&&W.__esModule?W:{default:W}}function D(W,G,ee){return G in W?Object.defineProperty(W,G,{value:ee,enumerable:!0,configurable:!0,writable:!0}):W[G]=ee,W}function I(W,G){if(!(W instanceof G))throw new TypeError("Cannot call a class as a function")}function z(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 q(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"),Q=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey",H=(function(W){q(G,W),c(G,null,[{key:"match",value:function(ne,le){return le=J(le),["altKey","ctrlKey","metaKey","shiftKey"].some(function(ve){return!!le[ve]!==ne[ve]&&le[ve]!==null})?!1:le.key===(ne.which||ne.keyCode)}}]);function G(ee,ne){I(this,G);var le=z(this,(G.__proto__||Object.getPrototypeOf(G)).call(this,ee,ne));return le.bindings={},Object.keys(le.options.bindings).forEach(function(ve){ve==="list autofill"&&ee.scroll.whitelist!=null&&!ee.scroll.whitelist.list||le.options.bindings[ve]&&le.addBinding(le.options.bindings[ve])}),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},Y),le.addBinding({key:G.keys.DELETE},{collapsed:!0},P)):(le.addBinding({key:G.keys.BACKSPACE},{collapsed:!0,prefix:/^.?$/},Y),le.addBinding({key:G.keys.DELETE},{collapsed:!0,suffix:/^.?$/},P)),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},Y),le.listen(),le}return c(G,[{key:"addBinding",value:function(ne){var le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ve=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},be=J(ne);if(be==null||be.key==null)return U.warn("Attempted to add invalid keyboard binding",be);typeof le=="function"&&(le={handler:le}),typeof ve=="function"&&(ve={handler:ve}),be=(0,g.default)(be,le,ve),this.bindings[be.key]=this.bindings[be.key]||[],this.bindings[be.key].push(be)}},{key:"listen",value:function(){var ne=this;this.quill.root.addEventListener("keydown",function(le){if(!le.defaultPrevented){var ve=le.which||le.keyCode,be=(ne.bindings[ve]||[]).filter(function(He){return G.match(le,He)});if(be.length!==0){var Oe=ne.quill.getSelection();if(!(Oe==null||!ne.quill.hasFocus())){var Te=ne.quill.getLine(Oe.index),We=o(Te,2),ut=We[0],nt=We[1],ge=ne.quill.getLeaf(Oe.index),ye=o(ge,2),Se=ye[0],Pe=ye[1],je=Oe.length===0?[Se,Pe]:ne.quill.getLeaf(Oe.index+Oe.length),tt=o(je,2),et=tt[0],rt=tt[1],xe=Se instanceof w.default.Text?Se.value().slice(0,Pe):"",_e=et instanceof w.default.Text?et.value().slice(rt):"",De={collapsed:Oe.length===0,empty:Oe.length===0&&ut.length()<=1,format:ne.quill.getFormat(Oe),offset:nt,prefix:xe,suffix:_e},it=be.some(function(He){if(He.collapsed!=null&&He.collapsed!==De.collapsed||He.empty!=null&&He.empty!==De.empty||He.offset!=null&&He.offset!==De.offset)return!1;if(Array.isArray(He.format)){if(He.format.every(function(Nt){return De.format[Nt]==null}))return!1}else if(a(He.format)==="object"&&!Object.keys(He.format).every(function(Nt){return He.format[Nt]===!0?De.format[Nt]!=null:He.format[Nt]===!1?De.format[Nt]==null:(0,m.default)(He.format[Nt],De.format[Nt])}))return!1;return He.prefix!=null&&!He.prefix.test(De.prefix)||He.suffix!=null&&!He.suffix.test(De.suffix)?!1:He.handler.call(ne,Oe,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,ee){if(ee.collapsed&&ee.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,ee){if(ee.collapsed&&ee.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,ee){ee.format.indent!=null?this.quill.format("indent","-1",A.default.sources.USER):ee.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 ee=new j.default().retain(G.index).delete(G.length).insert("	");this.quill.updateContents(ee,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,ee){this.quill.format("list",!1,A.default.sources.USER),ee.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 ee=this.quill.getLine(G.index),ne=o(ee,2),le=ne[0],ve=ne[1],be=(0,g.default)({},le.formats(),{list:"checked"}),Oe=new j.default().retain(G.index).insert(`
`,be).retain(le.length()-ve-1).retain(1,{list:"unchecked"});this.quill.updateContents(Oe,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,ee){var ne=this.quill.getLine(G.index),le=o(ne,2),ve=le[0],be=le[1],Oe=new j.default().retain(G.index).insert(`
`,ee.format).retain(ve.length()-be-1).retain(1,{header:null});this.quill.updateContents(Oe,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,ee){var ne=ee.prefix.length,le=this.quill.getLine(G.index),ve=o(le,2),be=ve[0],Oe=ve[1];if(Oe>ne)return!0;var Te=void 0;switch(ee.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-Oe).delete(ne+1).retain(be.length()-2-Oe).retain(1,{list:Te});this.quill.updateContents(We,A.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(G.index-ne,A.default.sources.SILENT)}},"code exit":{key:H.keys.ENTER,collapsed:!0,format:["code-block"],prefix:/\n\n$/,suffix:/^\s+$/,handler:function(G){var ee=this.quill.getLine(G.index),ne=o(ee,2),le=ne[0],ve=ne[1],be=new j.default().retain(G.index+le.length()-ve-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 ee,ne=W===H.keys.LEFT?"prefix":"suffix";return ee={key:W,shiftKey:G,altKey:null},D(ee,ne,/^$/),D(ee,"handler",function(ve){var be=ve.index;W===H.keys.RIGHT&&(be+=ve.length+1);var Oe=this.quill.getLeaf(be),Te=o(Oe,1),We=Te[0];return We instanceof w.default.Embed?(W===H.keys.LEFT?G?this.quill.setSelection(ve.index-1,ve.length+1,A.default.sources.USER):this.quill.setSelection(ve.index-1,A.default.sources.USER):G?this.quill.setSelection(ve.index,ve.length+1,A.default.sources.USER):this.quill.setSelection(ve.index+ve.length+1,A.default.sources.USER),!1):!0}),ee}function Y(W,G){if(!(W.index===0||this.quill.getLength()<=1)){var ee=this.quill.getLine(W.index),ne=o(ee,1),le=ne[0],ve={};if(G.offset===0){var be=this.quill.getLine(W.index-1),Oe=o(be,1),Te=Oe[0];if(Te!=null&&Te.length()>1){var We=le.formats(),ut=this.quill.getFormat(W.index-1,1);ve=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(ve).length>0&&this.quill.formatLine(W.index-nt,nt,ve,A.default.sources.USER),this.quill.focus()}}function P(W,G){var ee=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(G.suffix)?2:1;if(!(W.index>=this.quill.getLength()-ee)){var ne={},le=0,ve=this.quill.getLine(W.index),be=o(ve,1),Oe=be[0];if(G.offset>=Oe.length()-1){var Te=this.quill.getLine(W.index+1),We=o(Te,1),ut=We[0];if(ut){var nt=Oe.formats(),ge=this.quill.getFormat(W.index,1);ne=x.default.attributes.diff(nt,ge)||{},le=ut.length()}}this.quill.deleteText(W.index,ee,A.default.sources.USER),Object.keys(ne).length>0&&this.quill.formatLine(W.index+le-1,ee,ne,A.default.sources.USER)}}function T(W){var G=this.quill.getLines(W),ee={};if(G.length>1){var ne=G[0].formats(),le=G[G.length-1].formats();ee=x.default.attributes.diff(le,ne)||{}}this.quill.deleteText(W,A.default.sources.USER),Object.keys(ee).length>0&&this.quill.formatLine(W.index,1,ee,A.default.sources.USER),this.quill.setSelection(W.index,A.default.sources.SILENT),this.quill.focus()}function V(W,G){var ee=this;W.length>0&&this.quill.scroll.deleteAt(W.index,W.length);var ne=Object.keys(G.format).reduce(function(le,ve){return w.default.query(ve,w.default.Scope.BLOCK)&&!Array.isArray(G.format[ve])&&(le[ve]=G.format[ve]),le},{});this.quill.insertText(W.index,`
`,ne,A.default.sources.USER),this.quill.setSelection(W.index+1,A.default.sources.SILENT),this.quill.focus(),Object.keys(G.format).forEach(function(le){ne[le]==null&&(Array.isArray(G.format[le])||le!=="link"&&ee.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(ee){var ne=w.default.query("code-block"),le=ee.index,ve=ee.length,be=this.quill.scroll.descendant(ne,le),Oe=o(be,2),Te=Oe[0],We=Oe[1];if(Te!=null){var ut=this.quill.getIndex(Te),nt=Te.newlineIndex(We,!0)+1,ge=Te.newlineIndex(ut+We+ve),ye=Te.domNode.textContent.slice(nt,ge).split(`
`);We=0,ye.forEach(function(Se,Pe){W?(Te.insertAt(nt+We,ne.TAB),We+=ne.TAB.length,Pe===0?le+=ne.TAB.length:ve+=ne.TAB.length):Se.startsWith(ne.TAB)&&(Te.deleteAt(nt+We,ne.TAB.length),We-=ne.TAB.length,Pe===0?le-=ne.TAB.length:ve-=ne.TAB.length),We+=Se.length+1}),this.quill.update(A.default.sources.USER),this.quill.setSelection(le,ve,A.default.sources.SILENT)}}}}function X(W){return{key:W[0].toUpperCase(),shortKey:!0,handler:function(ee,ne){this.quill.format(W,!ne.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,h.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[Q]=W.shortKey,delete W.shortKey),W}i.default=H,i.SHORTKEY=Q}),(function(r,i,s){Object.defineProperty(i,"__esModule",{value:!0});var a=(function(){function x(k,w){var N=[],A=!0,S=!1,E=void 0;try{for(var C=k[Symbol.iterator](),B;!(A=(B=C.next()).done)&&(N.push(B.value),!(w&&N.length===w));A=!0);}catch(F){S=!0,E=F}finally{try{!A&&C.return&&C.return()}finally{if(S)throw E}}return N}return function(k,w){if(Array.isArray(k))return k;if(Symbol.iterator in Object(k))return x(k,w);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),o=function x(k,w,N){k===null&&(k=Function.prototype);var A=Object.getOwnPropertyDescriptor(k,w);if(A===void 0){var S=Object.getPrototypeOf(k);return S===null?void 0:x(S,w,N)}else{if("value"in A)return A.value;var E=A.get;return E===void 0?void 0:E.call(N)}},c=(function(){function x(k,w){for(var N=0;N<w.length;N++){var A=w[N];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(k,A.key,A)}}return function(k,w,N){return w&&x(k.prototype,w),N&&x(k,N),k}})(),d=s(0),h=p(d),f=s(7),m=p(f);function p(x){return x&&x.__esModule?x:{default:x}}function g(x,k){if(!(x instanceof k))throw new TypeError("Cannot call a class as a function")}function b(x,k){if(!x)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return k&&(typeof k=="object"||typeof k=="function")?k:x}function j(x,k){if(typeof k!="function"&&k!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof k);x.prototype=Object.create(k&&k.prototype,{constructor:{value:x,enumerable:!1,writable:!0,configurable:!0}}),k&&(Object.setPrototypeOf?Object.setPrototypeOf(x,k):x.__proto__=k)}var v=(function(x){j(k,x),c(k,null,[{key:"value",value:function(){}}]);function k(w,N){g(this,k);var A=b(this,(k.__proto__||Object.getPrototypeOf(k)).call(this,w));return A.selection=N,A.textNode=document.createTextNode(k.CONTENTS),A.domNode.appendChild(A.textNode),A._length=0,A}return c(k,[{key:"detach",value:function(){this.parent!=null&&this.parent.removeChild(this)}},{key:"format",value:function(N,A){if(this._length!==0)return o(k.prototype.__proto__||Object.getPrototypeOf(k.prototype),"format",this).call(this,N,A);for(var S=this,E=0;S!=null&&S.statics.scope!==h.default.Scope.BLOCK_BLOT;)E+=S.offset(S.parent),S=S.parent;S!=null&&(this._length=k.CONTENTS.length,S.optimize(),S.formatAt(E,k.CONTENTS.length,N,A),this._length=0)}},{key:"index",value:function(N,A){return N===this.textNode?0:o(k.prototype.__proto__||Object.getPrototypeOf(k.prototype),"index",this).call(this,N,A)}},{key:"length",value:function(){return this._length}},{key:"position",value:function(){return[this.textNode,this.textNode.data.length]}},{key:"remove",value:function(){o(k.prototype.__proto__||Object.getPrototypeOf(k.prototype),"remove",this).call(this),this.parent=null}},{key:"restore",value:function(){if(!(this.selection.composing||this.parent==null)){var N=this.textNode,A=this.selection.getNativeRange(),S=void 0,E=void 0,C=void 0;if(A!=null&&A.start.node===N&&A.end.node===N){var B=[N,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!==k.CONTENTS){var F=this.textNode.data.split(k.CONTENTS).join("");this.next instanceof m.default?(S=this.next.domNode,this.next.insertAt(0,F),this.textNode.data=k.CONTENTS):(this.textNode.data=F,this.parent.insertBefore(h.default.create(this.textNode),this),this.textNode=document.createTextNode(k.CONTENTS),this.domNode.appendChild(this.textNode))}if(this.remove(),E!=null){var D=[E,C].map(function(z){return Math.max(0,Math.min(S.data.length,z-1))}),I=a(D,2);return E=I[0],C=I[1],{startNode:S,startOffset:E,endNode:S,endOffset:C}}}}},{key:"update",value:function(N,A){var S=this;if(N.some(function(C){return C.type==="characterData"&&C.target===S.textNode})){var E=this.restore();E&&(A.range=E)}}},{key:"value",value:function(){return""}}]),k})(h.default.Embed);v.blotName="cursor",v.className="ql-cursor",v.tagName="span",v.CONTENTS="\uFEFF",i.default=v}),(function(r,i,s){Object.defineProperty(i,"__esModule",{value:!0});var a=s(0),o=h(a),c=s(4),d=h(c);function h(b){return b&&b.__esModule?b:{default:b}}function f(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 f(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 v(x,k){for(var w=0;w<k.length;w++){var N=k[w];N.enumerable=N.enumerable||!1,N.configurable=!0,"value"in N&&(N.writable=!0),Object.defineProperty(x,N.key,N)}}return function(x,k,w){return k&&v(x.prototype,k),w&&v(x,w),x}})(),o=function v(x,k,w){x===null&&(x=Function.prototype);var N=Object.getOwnPropertyDescriptor(x,k);if(N===void 0){var A=Object.getPrototypeOf(x);return A===null?void 0:v(A,k,w)}else{if("value"in N)return N.value;var S=N.get;return S===void 0?void 0:S.call(w)}},c=s(0),d=h(c);function h(v){return v&&v.__esModule?v:{default:v}}function f(v,x){if(!(v instanceof x))throw new TypeError("Cannot call a class as a function")}function m(v,x){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return x&&(typeof x=="object"||typeof x=="function")?x:v}function p(v,x){if(typeof x!="function"&&x!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof x);v.prototype=Object.create(x&&x.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),x&&(Object.setPrototypeOf?Object.setPrototypeOf(v,x):v.__proto__=x)}var g=(function(v){p(x,v);function x(){return f(this,x),m(this,(x.__proto__||Object.getPrototypeOf(x)).apply(this,arguments))}return a(x,[{key:"value",value:function(w){var N=o(x.prototype.__proto__||Object.getPrototypeOf(x.prototype),"value",this).call(this,w);return N.startsWith("rgb(")?(N=N.replace(/^[^\d]+/,"").replace(/[^\d]+$/,""),"#"+N.split(",").map(function(A){return("00"+parseInt(A).toString(16)).slice(-2)}).join("")):N}}]),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(v,x){for(var k=0;k<x.length;k++){var w=x[k];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(v,w.key,w)}}return function(v,x,k){return x&&j(v.prototype,x),k&&j(v,k),v}})(),o=function j(v,x,k){v===null&&(v=Function.prototype);var w=Object.getOwnPropertyDescriptor(v,x);if(w===void 0){var N=Object.getPrototypeOf(v);return N===null?void 0:j(N,x,k)}else{if("value"in w)return w.value;var A=w.get;return A===void 0?void 0:A.call(k)}},c=s(6),d=h(c);function h(j){return j&&j.__esModule?j:{default:j}}function f(j,v){if(!(j instanceof v))throw new TypeError("Cannot call a class as a function")}function m(j,v){if(!j)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return v&&(typeof v=="object"||typeof v=="function")?v:j}function p(j,v){if(typeof v!="function"&&v!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof v);j.prototype=Object.create(v&&v.prototype,{constructor:{value:j,enumerable:!1,writable:!0,configurable:!0}}),v&&(Object.setPrototypeOf?Object.setPrototypeOf(j,v):j.__proto__=v)}var g=(function(j){p(v,j);function v(){return f(this,v),m(this,(v.__proto__||Object.getPrototypeOf(v)).apply(this,arguments))}return a(v,[{key:"format",value:function(k,w){if(k!==this.statics.blotName||!w)return o(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"format",this).call(this,k,w);w=this.constructor.sanitize(w),this.domNode.setAttribute("href",w)}}],[{key:"create",value:function(k){var w=o(v.__proto__||Object.getPrototypeOf(v),"create",this).call(this,k);return k=this.sanitize(k),w.setAttribute("href",k),w.setAttribute("rel","noopener noreferrer"),w.setAttribute("target","_blank"),w}},{key:"formats",value:function(k){return k.getAttribute("href")}},{key:"sanitize",value:function(k){return b(k,this.PROTOCOL_WHITELIST)?k:this.SANITIZED_URL}}]),v})(d.default);g.blotName="link",g.tagName="A",g.SANITIZED_URL="about:blank",g.PROTOCOL_WHITELIST=["http","https","mailto","tel"];function b(j,v){var x=document.createElement("a");x.href=j;var k=x.href.slice(0,x.href.indexOf(":"));return v.indexOf(k)>-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(v){return typeof v}:function(v){return v&&typeof Symbol=="function"&&v.constructor===Symbol&&v!==Symbol.prototype?"symbol":typeof v},o=(function(){function v(x,k){for(var w=0;w<k.length;w++){var N=k[w];N.enumerable=N.enumerable||!1,N.configurable=!0,"value"in N&&(N.writable=!0),Object.defineProperty(x,N.key,N)}}return function(x,k,w){return k&&v(x.prototype,k),w&&v(x,w),x}})(),c=s(23),d=m(c),h=s(107),f=m(h);function m(v){return v&&v.__esModule?v:{default:v}}function p(v,x){if(!(v instanceof x))throw new TypeError("Cannot call a class as a function")}var g=0;function b(v,x){v.setAttribute(x,v.getAttribute(x)!=="true")}var j=(function(){function v(x){var k=this;p(this,v),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(){k.togglePicker()}),this.label.addEventListener("keydown",function(w){switch(w.keyCode){case d.default.keys.ENTER:k.togglePicker();break;case d.default.keys.ESCAPE:k.escape(),w.preventDefault();break}}),this.select.addEventListener("change",this.update.bind(this))}return o(v,[{key:"togglePicker",value:function(){this.container.classList.toggle("ql-expanded"),b(this.label,"aria-expanded"),b(this.options,"aria-hidden")}},{key:"buildItem",value:function(k){var w=this,N=document.createElement("span");return N.tabIndex="0",N.setAttribute("role","button"),N.classList.add("ql-picker-item"),k.hasAttribute("value")&&N.setAttribute("data-value",k.getAttribute("value")),k.textContent&&N.setAttribute("data-label",k.textContent),N.addEventListener("click",function(){w.selectItem(N,!0)}),N.addEventListener("keydown",function(A){switch(A.keyCode){case d.default.keys.ENTER:w.selectItem(N,!0),A.preventDefault();break;case d.default.keys.ESCAPE:w.escape(),A.preventDefault();break}}),N}},{key:"buildLabel",value:function(){var k=document.createElement("span");return k.classList.add("ql-picker-label"),k.innerHTML=f.default,k.tabIndex="0",k.setAttribute("role","button"),k.setAttribute("aria-expanded","false"),this.container.appendChild(k),k}},{key:"buildOptions",value:function(){var k=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(N){var A=k.buildItem(N);w.appendChild(A),N.selected===!0&&k.selectItem(A)}),this.container.appendChild(w)}},{key:"buildPicker",value:function(){var k=this;[].slice.call(this.select.attributes).forEach(function(w){k.container.setAttribute(w.name,w.value)}),this.container.classList.add("ql-picker"),this.label=this.buildLabel(),this.buildOptions()}},{key:"escape",value:function(){var k=this;this.close(),setTimeout(function(){return k.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(k){var w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,N=this.container.querySelector(".ql-selected");if(k!==N&&(N!=null&&N.classList.remove("ql-selected"),k!=null&&(k.classList.add("ql-selected"),this.select.selectedIndex=[].indexOf.call(k.parentNode.children,k),k.hasAttribute("data-value")?this.label.setAttribute("data-value",k.getAttribute("data-value")):this.label.removeAttribute("data-value"),k.hasAttribute("data-label")?this.label.setAttribute("data-label",k.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 k=void 0;if(this.select.selectedIndex>-1){var w=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];k=this.select.options[this.select.selectedIndex],this.selectItem(w)}else this.selectItem(null);var N=k!=null&&k!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",N)}}]),v})();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),h=s(4),f=U(h),m=s(16),p=U(m),g=s(25),b=U(g),j=s(24),v=U(j),x=s(35),k=U(x),w=s(6),N=U(w),A=s(22),S=U(A),E=s(7),C=U(E),B=s(55),F=U(B),D=s(42),I=U(D),z=s(23),q=U(z);function U(Q){return Q&&Q.__esModule?Q:{default:Q}}d.default.register({"blots/block":f.default,"blots/block/embed":h.BlockEmbed,"blots/break":p.default,"blots/container":b.default,"blots/cursor":v.default,"blots/embed":k.default,"blots/inline":N.default,"blots/scroll":S.default,"blots/text":C.default,"modules/clipboard":F.default,"modules/history":I.default,"modules/keyboard":q.default}),o.default.register(f.default,p.default,v.default,N.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 h;return Array.isArray(this.tagName)?(typeof d=="string"&&(d=d.toUpperCase(),parseInt(d).toString()===d&&(d=parseInt(d))),typeof d=="number"?h=document.createElement(this.tagName[d-1]):this.tagName.indexOf(d)>-1?h=document.createElement(d):h=document.createElement(this.tagName[0])):h=document.createElement(this.tagName),this.className&&h.classList.add(this.className),h},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,h){var f=this.isolate(d,h);f.remove()},c.prototype.formatAt=function(d,h,f,m){var p=this.isolate(d,h);if(a.query(f,a.Scope.BLOT)!=null&&m)p.wrap(f,m);else if(a.query(f,a.Scope.ATTRIBUTE)!=null){var g=a.create(this.statics.scope);p.wrap(g),g.format(f,m)}},c.prototype.insertAt=function(d,h,f){var m=f==null?a.create("text",h):a.create(h,f),p=this.split(d);this.parent.insertBefore(m,p)},c.prototype.insertInto=function(d,h){h===void 0&&(h=null),this.parent!=null&&this.parent.children.remove(this);var f=null;d.children.insertBefore(this,h),h!=null&&(f=h.domNode),(this.domNode.parentNode!=d.domNode||this.domNode.nextSibling!=f)&&d.domNode.insertBefore(this.domNode,f),this.parent=d,this.attach()},c.prototype.isolate=function(d,h){var f=this.split(d);return f.split(h),f},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,h){var f=typeof d=="string"?a.create(d,h):d;return f.replace(this),f},c.prototype.split=function(d,h){return d===0?this:this.next},c.prototype.update=function(d,h){},c.prototype.wrap=function(d,h){var f=typeof d=="string"?a.create(d,h):d;return this.parent!=null&&this.parent.insertBefore(f,this.next),f.appendChild(this),f},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),h=(function(){function f(m){this.attributes={},this.domNode=m,this.build()}return f.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])},f.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 v=d.query(j,d.Scope.ATTRIBUTE);v instanceof a.default&&(m.attributes[v.attrName]=v)})},f.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)})},f.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={}},f.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},{})},f})();i.default=h}),(function(r,i,s){var a=this&&this.__extends||(function(){var h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,m){f.__proto__=m}||function(f,m){for(var p in m)m.hasOwnProperty(p)&&(f[p]=m[p])};return function(f,m){h(f,m);function p(){this.constructor=f}f.prototype=m===null?Object.create(m):(p.prototype=m.prototype,new p)}})();Object.defineProperty(i,"__esModule",{value:!0});var o=s(12);function c(h,f){var m=h.getAttribute("class")||"";return m.split(/\s+/).filter(function(p){return p.indexOf(f+"-")===0})}var d=(function(h){a(f,h);function f(){return h!==null&&h.apply(this,arguments)||this}return f.keys=function(m){return(m.getAttribute("class")||"").split(/\s+/).map(function(p){return p.split("-").slice(0,-1).join("-")})},f.prototype.add=function(m,p){return this.canAdd(m,p)?(this.remove(m),m.classList.add(this.keyName+"-"+p),!0):!1},f.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")},f.prototype.value=function(m){var p=c(m,this.keyName)[0]||"",g=p.slice(this.keyName.length+1);return this.canAdd(m,g)?g:""},f})(o.default);i.default=d}),(function(r,i,s){var a=this&&this.__extends||(function(){var h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,m){f.__proto__=m}||function(f,m){for(var p in m)m.hasOwnProperty(p)&&(f[p]=m[p])};return function(f,m){h(f,m);function p(){this.constructor=f}f.prototype=m===null?Object.create(m):(p.prototype=m.prototype,new p)}})();Object.defineProperty(i,"__esModule",{value:!0});var o=s(12);function c(h){var f=h.split("-"),m=f.slice(1).map(function(p){return p[0].toUpperCase()+p.slice(1)}).join("");return f[0]+m}var d=(function(h){a(f,h);function f(){return h!==null&&h.apply(this,arguments)||this}return f.keys=function(m){return(m.getAttribute("style")||"").split(";").map(function(p){var g=p.split(":");return g[0].trim()})},f.prototype.add=function(m,p){return this.canAdd(m,p)?(m.style[c(this.keyName)]=p,!0):!1},f.prototype.remove=function(m){m.style[c(this.keyName)]="",m.getAttribute("style")||m.removeAttribute("style")},f.prototype.value=function(m){var p=m.style[c(this.keyName)];return this.canAdd(m,p)?p:""},f})(o.default);i.default=d}),(function(r,i,s){Object.defineProperty(i,"__esModule",{value:!0});var a=(function(){function d(h,f){for(var m=0;m<f.length;m++){var p=f[m];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(h,p.key,p)}}return function(h,f,m){return f&&d(h.prototype,f),m&&d(h,m),h}})();function o(d,h){if(!(d instanceof h))throw new TypeError("Cannot call a class as a function")}var c=(function(){function d(h,f){o(this,d),this.quill=h,this.options=f,this.modules={}}return a(d,[{key:"init",value:function(){var f=this;Object.keys(this.options.modules).forEach(function(m){f.modules[m]==null&&f.addModule(m)})}},{key:"addModule",value:function(f){var m=this.quill.constructor.import("modules/"+f);return this.modules[f]=new m(this.quill,this.options.modules[f]||{}),this.modules[f]}}]),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(k,w){for(var N=0;N<w.length;N++){var A=w[N];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(k,A.key,A)}}return function(k,w,N){return w&&x(k.prototype,w),N&&x(k,N),k}})(),o=function x(k,w,N){k===null&&(k=Function.prototype);var A=Object.getOwnPropertyDescriptor(k,w);if(A===void 0){var S=Object.getPrototypeOf(k);return S===null?void 0:x(S,w,N)}else{if("value"in A)return A.value;var E=A.get;return E===void 0?void 0:E.call(N)}},c=s(0),d=m(c),h=s(7),f=m(h);function m(x){return x&&x.__esModule?x:{default:x}}function p(x,k){if(!(x instanceof k))throw new TypeError("Cannot call a class as a function")}function g(x,k){if(!x)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return k&&(typeof k=="object"||typeof k=="function")?k:x}function b(x,k){if(typeof k!="function"&&k!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof k);x.prototype=Object.create(k&&k.prototype,{constructor:{value:x,enumerable:!1,writable:!0,configurable:!0}}),k&&(Object.setPrototypeOf?Object.setPrototypeOf(x,k):x.__proto__=k)}var j="\uFEFF",v=(function(x){b(k,x);function k(w){p(this,k);var N=g(this,(k.__proto__||Object.getPrototypeOf(k)).call(this,w));return N.contentNode=document.createElement("span"),N.contentNode.setAttribute("contenteditable",!1),[].slice.call(N.domNode.childNodes).forEach(function(A){N.contentNode.appendChild(A)}),N.leftGuard=document.createTextNode(j),N.rightGuard=document.createTextNode(j),N.domNode.appendChild(N.leftGuard),N.domNode.appendChild(N.contentNode),N.domNode.appendChild(N.rightGuard),N}return a(k,[{key:"index",value:function(N,A){return N===this.leftGuard?0:N===this.rightGuard?1:o(k.prototype.__proto__||Object.getPrototypeOf(k.prototype),"index",this).call(this,N,A)}},{key:"restore",value:function(N){var A=void 0,S=void 0,E=N.data.split(j).join("");if(N===this.leftGuard)if(this.prev instanceof f.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 N===this.rightGuard&&(this.next instanceof f.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 N.data=j,A}},{key:"update",value:function(N,A){var S=this;N.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)}})}}]),k})(d.default.Embed);i.default=v}),(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"]},h=new o.default.Attributor.Attribute("align","align",d),f=new o.default.Attributor.Class("align","ql-align",d),m=new o.default.Attributor.Style("align","text-align",d);i.AlignAttribute=h,i.AlignClass=f,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 h=new o.default.Attributor.Class("background","ql-bg",{scope:o.default.Scope.INLINE}),f=new c.ColorAttributor("background","background-color",{scope:o.default.Scope.INLINE});i.BackgroundClass=h,i.BackgroundStyle=f}),(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"]},h=new o.default.Attributor.Attribute("direction","dir",d),f=new o.default.Attributor.Class("direction","ql-direction",d),m=new o.default.Attributor.Style("direction","direction",d);i.DirectionAttribute=h,i.DirectionClass=f,i.DirectionStyle=m}),(function(r,i,s){Object.defineProperty(i,"__esModule",{value:!0}),i.FontClass=i.FontStyle=void 0;var a=(function(){function x(k,w){for(var N=0;N<w.length;N++){var A=w[N];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(k,A.key,A)}}return function(k,w,N){return w&&x(k.prototype,w),N&&x(k,N),k}})(),o=function x(k,w,N){k===null&&(k=Function.prototype);var A=Object.getOwnPropertyDescriptor(k,w);if(A===void 0){var S=Object.getPrototypeOf(k);return S===null?void 0:x(S,w,N)}else{if("value"in A)return A.value;var E=A.get;return E===void 0?void 0:E.call(N)}},c=s(0),d=h(c);function h(x){return x&&x.__esModule?x:{default:x}}function f(x,k){if(!(x instanceof k))throw new TypeError("Cannot call a class as a function")}function m(x,k){if(!x)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return k&&(typeof k=="object"||typeof k=="function")?k:x}function p(x,k){if(typeof k!="function"&&k!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof k);x.prototype=Object.create(k&&k.prototype,{constructor:{value:x,enumerable:!1,writable:!0,configurable:!0}}),k&&(Object.setPrototypeOf?Object.setPrototypeOf(x,k):x.__proto__=k)}var g={scope:d.default.Scope.INLINE,whitelist:["serif","monospace"]},b=new d.default.Attributor.Class("font","ql-font",g),j=(function(x){p(k,x);function k(){return f(this,k),m(this,(k.__proto__||Object.getPrototypeOf(k)).apply(this,arguments))}return a(k,[{key:"value",value:function(N){return o(k.prototype.__proto__||Object.getPrototypeOf(k.prototype),"value",this).call(this,N).replace(/["']/g,"")}}]),k})(d.default.Attributor.Style),v=new j("font","font-family",g);i.FontStyle=v,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(f){return f&&f.__esModule?f:{default:f}}var d=new o.default.Attributor.Class("size","ql-size",{scope:o.default.Scope.INLINE,whitelist:["small","large","huge"]}),h=new o.default.Attributor.Style("size","font-size",{scope:o.default.Scope.INLINE,whitelist:["10px","18px","32px"]});i.SizeClass=d,i.SizeStyle=h}),(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(N,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(N,E.key,E)}}return function(N,A,S){return A&&w(N.prototype,A),S&&w(N,S),N}})(),o=s(0),c=p(o),d=s(5),h=p(d),f=s(9),m=p(f);function p(w){return w&&w.__esModule?w:{default:w}}function g(w,N){if(!(w instanceof N))throw new TypeError("Cannot call a class as a function")}function b(w,N){if(!w)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return N&&(typeof N=="object"||typeof N=="function")?N:w}function j(w,N){if(typeof N!="function"&&N!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof N);w.prototype=Object.create(N&&N.prototype,{constructor:{value:w,enumerable:!1,writable:!0,configurable:!0}}),N&&(Object.setPrototypeOf?Object.setPrototypeOf(w,N):w.__proto__=N)}var v=(function(w){j(N,w);function N(A,S){g(this,N);var E=b(this,(N.__proto__||Object.getPrototypeOf(N)).call(this,A,S));return E.lastRecorded=0,E.ignoreChange=!1,E.clear(),E.quill.on(h.default.events.EDITOR_CHANGE,function(C,B,F,D){C!==h.default.events.TEXT_CHANGE||E.ignoreChange||(!E.options.userOnly||D===h.default.sources.USER?E.record(B,F):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(N,[{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],h.default.sources.USER),this.ignoreChange=!1;var B=k(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 F=this.stack.undo.pop();C=C.compose(F.undo),S=F.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")}}]),N})(m.default);v.DEFAULTS={delay:1e3,maxStack:100,userOnly:!1};function x(w){var N=w.ops[w.ops.length-1];return N==null?!1:N.insert!=null?typeof N.insert=="string"&&N.insert.endsWith(`
`):N.attributes!=null?Object.keys(N.attributes).some(function(A){return c.default.query(A,c.default.Scope.BLOCK)!=null}):!1}function k(w){var N=w.reduce(function(S,E){return S+=E.delete||0,S},0),A=w.length()-N;return x(w)&&(A-=1),A}i.default=v,i.getLastChangeIndex=k}),(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 ee=W.get;return ee===void 0?void 0:ee.call(J)}},c=s(3),d=B(c),h=s(2),f=B(h),m=s(8),p=B(m),g=s(23),b=B(g),j=s(34),v=B(j),x=s(59),k=B(x),w=s(60),N=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 F(V,L){if(!(V instanceof L))throw new TypeError("Cannot call a class as a function")}function D(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 I(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 z=[!1,"center","right","justify"],q=["#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"],Q=["1","2","3",!1],H=["small",!1,"large","huge"],K=(function(V){I(L,V);function L(X,J){F(this,L);var W=D(this,(L.__proto__||Object.getPrototypeOf(L)).call(this,X,J)),G=function ee(ne){if(!document.body.contains(X.root))return document.body.removeEventListener("click",ee);W.tooltip!=null&&!W.tooltip.root.contains(ne.target)&&document.activeElement!==W.tooltip.textbox&&!W.quill.hasFocus()&&W.tooltip.hide(),W.pickers!=null&&W.pickers.forEach(function(le){le.container.contains(ne.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 ee=G.getAttribute("class")||"";ee.split(/\s+/).forEach(function(ne){if(ne.startsWith("ql-")&&(ne=ne.slice(3),W[ne]!=null))if(ne==="direction")G.innerHTML=W[ne][""]+W[ne].rtl;else if(typeof W[ne]=="string")G.innerHTML=W[ne];else{var le=G.value||"";le!=null&&W[ne][le]&&(G.innerHTML=W[ne][le])}})})}},{key:"buildPickers",value:function(J,W){var G=this;this.pickers=J.map(function(ne){if(ne.classList.contains("ql-align"))return ne.querySelector("option")==null&&T(ne,z),new N.default(ne,W.align);if(ne.classList.contains("ql-background")||ne.classList.contains("ql-color")){var le=ne.classList.contains("ql-background")?"background":"color";return ne.querySelector("option")==null&&T(ne,q,le==="background"?"#ffffff":"#000000"),new k.default(ne,W[le])}else return ne.querySelector("option")==null&&(ne.classList.contains("ql-font")?T(ne,U):ne.classList.contains("ql-header")?T(ne,Q):ne.classList.contains("ql-size")&&T(ne,H)),new S.default(ne)});var ee=function(){G.pickers.forEach(function(le){le.update()})};this.quill.on(p.default.events.EDITOR_CHANGE,ee)}}]),L})(v.default);K.DEFAULTS=(0,d.default)(!0,{},v.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 f.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 Y=(function(V){I(L,V);function L(X,J){F(this,L);var W=D(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=P(J);case"formula":{if(!J)break;var G=this.quill.getSelection(!0);if(G!=null){var ee=G.index+G.length;this.quill.insertEmbed(ee,this.root.getAttribute("data-mode"),J,p.default.sources.USER),this.root.getAttribute("data-mode")==="formula"&&this.quill.insertText(ee+1," ",p.default.sources.USER),this.quill.setSelection(ee+2,p.default.sources.USER)}break}}this.textbox.value="",this.hide()}}]),L})(C.default);function P(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=Y,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,h=this.iterator();d=h();)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,h=this.head;h!=null;){if(h===c)return d;d+=h.length(),h=h.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 h,f=this.iterator();h=f();){var m=h.length();if(c<m||d&&c===m&&(h.next==null||h.next.length()!==0))return[h,c];c-=m}return[null,0]},o.prototype.forEach=function(c){for(var d,h=this.iterator();d=h();)c(d)},o.prototype.forEachAt=function(c,d,h){if(!(d<=0))for(var f=this.find(c),m=f[0],p=f[1],g,b=c-p,j=this.iterator(m);(g=j())&&b<c+d;){var v=g.length();c>b?h(g,c-b,Math.min(d,b+v-c)):h(g,0,Math.min(v,c+d-b)),b+=v}},o.prototype.map=function(c){return this.reduce(function(d,h){return d.push(c(h)),d},[])},o.prototype.reduce=function(c,d){for(var h,f=this.iterator();h=f();)d=c(d,h);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},h=100,f=(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,v){this.update(),m.prototype.formatAt.call(this,g,b,j,v)},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 v=[].slice.call(this.observer.takeRecords());v.length>0;)g.push(v.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))},k=function(A){A.domNode[c.DATA_KEY]==null||A.domNode[c.DATA_KEY].mutations==null||(A instanceof o.default&&A.children.forEach(k),A.optimize(b))},w=g,N=0;w.length>0;N+=1){if(N>=h)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(k),w=[].slice.call(this.observer.takeRecords()),v=w.slice();v.length>0;)g.push(v.pop())}},p.prototype.update=function(g,b){var j=this;b===void 0&&(b={}),g=g||this.observer.takeRecords(),g.map(function(v){var x=c.find(v.target,!0);return x==null?null:x.domNode[c.DATA_KEY].mutations==null?(x.domNode[c.DATA_KEY].mutations=[v],x):(x.domNode[c.DATA_KEY].mutations.push(v),null)}).forEach(function(v){v==null||v===j||v.domNode[c.DATA_KEY]==null||v.update(v.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=f}),(function(r,i,s){var a=this&&this.__extends||(function(){var f=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){f(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(f,m){if(Object.keys(f).length!==Object.keys(m).length)return!1;for(var p in f)if(f[p]!==m[p])return!1;return!0}var h=(function(f){a(m,f);function m(){return f!==null&&f.apply(this,arguments)||this}return m.formats=function(p){if(p.tagName!==m.tagName)return f.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()):f.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 v=this.isolate(p,g);v.format(b,j)}else f.prototype.formatAt.call(this,p,g,b,j)},m.prototype.optimize=function(p){f.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=h}),(function(r,i,s){var a=this&&this.__extends||(function(){var h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,m){f.__proto__=m}||function(f,m){for(var p in m)m.hasOwnProperty(p)&&(f[p]=m[p])};return function(f,m){h(f,m);function p(){this.constructor=f}f.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(h){a(f,h);function f(){return h!==null&&h.apply(this,arguments)||this}return f.formats=function(m){var p=c.query(f.blotName).tagName;if(m.tagName!==p)return h.formats.call(this,m)},f.prototype.format=function(m,p){c.query(m,c.Scope.BLOCK)!=null&&(m===this.statics.blotName&&!p?this.replaceWith(f.blotName):h.prototype.format.call(this,m,p))},f.prototype.formatAt=function(m,p,g,b){c.query(g,c.Scope.BLOCK)!=null?this.format(g,b):h.prototype.formatAt.call(this,m,p,g,b)},f.prototype.insertAt=function(m,p,g){if(g==null||c.query(p,c.Scope.INLINE)!=null)h.prototype.insertAt.call(this,m,p,g);else{var b=this.split(m),j=c.create(p,g);b.parent.insertBefore(j,b)}},f.prototype.update=function(m,p){navigator.userAgent.match(/Trident/)?this.build():h.prototype.update.call(this,m,p)},f.blotName="block",f.scope=c.Scope.BLOCK_BLOT,f.tagName="P",f})(o.default);i.default=d}),(function(r,i,s){var a=this&&this.__extends||(function(){var d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,f){h.__proto__=f}||function(h,f){for(var m in f)f.hasOwnProperty(m)&&(h[m]=f[m])};return function(h,f){d(h,f);function m(){this.constructor=h}h.prototype=f===null?Object.create(f):(m.prototype=f.prototype,new m)}})();Object.defineProperty(i,"__esModule",{value:!0});var o=s(19),c=(function(d){a(h,d);function h(){return d!==null&&d.apply(this,arguments)||this}return h.formats=function(f){},h.prototype.format=function(f,m){d.prototype.formatAt.call(this,0,this.length(),f,m)},h.prototype.formatAt=function(f,m,p,g){f===0&&m===this.length()?this.format(p,g):d.prototype.formatAt.call(this,f,m,p,g)},h.prototype.formats=function(){return this.statics.formats(this.domNode)},h})(o.default);i.default=c}),(function(r,i,s){var a=this&&this.__extends||(function(){var h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,m){f.__proto__=m}||function(f,m){for(var p in m)m.hasOwnProperty(p)&&(f[p]=m[p])};return function(f,m){h(f,m);function p(){this.constructor=f}f.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(h){a(f,h);function f(m){var p=h.call(this,m)||this;return p.text=p.statics.value(p.domNode),p}return f.create=function(m){return document.createTextNode(m)},f.value=function(m){var p=m.data;return p.normalize&&(p=p.normalize()),p},f.prototype.deleteAt=function(m,p){this.domNode.data=this.text=this.text.slice(0,m)+this.text.slice(m+p)},f.prototype.index=function(m,p){return this.domNode===m?p:-1},f.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):h.prototype.insertAt.call(this,m,p,g)},f.prototype.length=function(){return this.text.length},f.prototype.optimize=function(m){h.prototype.optimize.call(this,m),this.text=this.statics.value(this.domNode),this.text.length===0?this.remove():this.next instanceof f&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())},f.prototype.position=function(m,p){return[this.domNode,m]},f.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},f.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))},f.prototype.value=function(){return this.text},f.blotName="text",f.scope=c.Scope.INLINE_BLOT,f})(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 h=this.toString();(typeof d!="number"||!isFinite(d)||Math.floor(d)!==d||d>h.length)&&(d=h.length),d-=c.length;var f=h.indexOf(c,d);return f!==-1&&f===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 h=Object(this),f=h.length>>>0,m=arguments[1],p,g=0;g<f;g++)if(p=h[g],d.call(m,p,g,h))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(N,A,S){if(N==A)return N?[[o,N]]:[];(S<0||N.length<S)&&(S=null);var E=m(N,A),C=N.substring(0,E);N=N.substring(E),A=A.substring(E),E=p(N,A);var B=N.substring(N.length-E);N=N.substring(0,N.length-E),A=A.substring(0,A.length-E);var F=d(N,A);return C&&F.unshift([o,C]),B&&F.push([o,B]),b(F),S!=null&&(F=x(F,S)),F=k(F),F}function d(N,A){var S;if(!N)return[[a,A]];if(!A)return[[s,N]];var E=N.length>A.length?N:A,C=N.length>A.length?A:N,B=E.indexOf(C);if(B!=-1)return S=[[a,E.substring(0,B)],[o,C],[a,E.substring(B+C.length)]],N.length>A.length&&(S[0][0]=S[2][0]=s),S;if(C.length==1)return[[s,N],[a,A]];var F=g(N,A);if(F){var D=F[0],I=F[1],z=F[2],q=F[3],U=F[4],Q=c(D,z),H=c(I,q);return Q.concat([[o,U]],H)}return h(N,A)}function h(N,A){for(var S=N.length,E=A.length,C=Math.ceil((S+E)/2),B=C,F=2*C,D=new Array(F),I=new Array(F),z=0;z<F;z++)D[z]=-1,I[z]=-1;D[B+1]=0,I[B+1]=0;for(var q=S-E,U=q%2!=0,Q=0,H=0,K=0,Y=0,P=0;P<C;P++){for(var T=-P+Q;T<=P-H;T+=2){var V=B+T,L;T==-P||T!=P&&D[V-1]<D[V+1]?L=D[V+1]:L=D[V-1]+1;for(var X=L-T;L<S&&X<E&&N.charAt(L)==A.charAt(X);)L++,X++;if(D[V]=L,L>S)H+=2;else if(X>E)Q+=2;else if(U){var J=B+q-T;if(J>=0&&J<F&&I[J]!=-1){var W=S-I[J];if(L>=W)return f(N,A,L,X)}}}for(var G=-P+K;G<=P-Y;G+=2){var J=B+G,W;G==-P||G!=P&&I[J-1]<I[J+1]?W=I[J+1]:W=I[J-1]+1;for(var ee=W-G;W<S&&ee<E&&N.charAt(S-W-1)==A.charAt(E-ee-1);)W++,ee++;if(I[J]=W,W>S)Y+=2;else if(ee>E)K+=2;else if(!U){var V=B+q-G;if(V>=0&&V<F&&D[V]!=-1){var L=D[V],X=B+L-V;if(W=S-W,L>=W)return f(N,A,L,X)}}}}return[[s,N],[a,A]]}function f(N,A,S,E){var C=N.substring(0,S),B=A.substring(0,E),F=N.substring(S),D=A.substring(E),I=c(C,B),z=c(F,D);return I.concat(z)}function m(N,A){if(!N||!A||N.charAt(0)!=A.charAt(0))return 0;for(var S=0,E=Math.min(N.length,A.length),C=E,B=0;S<C;)N.substring(B,C)==A.substring(B,C)?(S=C,B=S):E=C,C=Math.floor((E-S)/2+S);return C}function p(N,A){if(!N||!A||N.charAt(N.length-1)!=A.charAt(A.length-1))return 0;for(var S=0,E=Math.min(N.length,A.length),C=E,B=0;S<C;)N.substring(N.length-C,N.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(N,A){var S=N.length>A.length?N:A,E=N.length>A.length?A:N;if(S.length<4||E.length*2<S.length)return null;function C(H,K,Y){for(var P=H.substring(Y,Y+Math.floor(H.length/4)),T=-1,V="",L,X,J,W;(T=K.indexOf(P,T+1))!=-1;){var G=m(H.substring(Y),K.substring(T)),ee=p(H.substring(0,Y),K.substring(0,T));V.length<ee+G&&(V=K.substring(T-ee,T)+K.substring(T,T+G),L=H.substring(0,Y-ee),X=H.substring(Y+G),J=K.substring(0,T-ee),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)),F=C(S,E,Math.ceil(S.length/2)),D;if(!B&&!F)return null;F?B?D=B[4].length>F[4].length?B:F:D=F:D=B;var I,z,q,U;N.length>A.length?(I=D[0],z=D[1],q=D[2],U=D[3]):(q=D[0],U=D[1],I=D[2],z=D[3]);var Q=D[4];return[I,z,q,U,Q]}function b(N){N.push([o,""]);for(var A=0,S=0,E=0,C="",B="",F;A<N.length;)switch(N[A][0]){case a:E++,B+=N[A][1],A++;break;case s:S++,C+=N[A][1],A++;break;case o:S+E>1?(S!==0&&E!==0&&(F=m(B,C),F!==0&&(A-S-E>0&&N[A-S-E-1][0]==o?N[A-S-E-1][1]+=B.substring(0,F):(N.splice(0,0,[o,B.substring(0,F)]),A++),B=B.substring(F),C=C.substring(F)),F=p(B,C),F!==0&&(N[A][1]=B.substring(B.length-F)+N[A][1],B=B.substring(0,B.length-F),C=C.substring(0,C.length-F))),S===0?N.splice(A-E,S+E,[a,B]):E===0?N.splice(A-S,S+E,[s,C]):N.splice(A-S-E,S+E,[s,C],[a,B]),A=A-S-E+(S?1:0)+(E?1:0)+1):A!==0&&N[A-1][0]==o?(N[A-1][1]+=N[A][1],N.splice(A,1)):A++,E=0,S=0,C="",B="";break}N[N.length-1][1]===""&&N.pop();var D=!1;for(A=1;A<N.length-1;)N[A-1][0]==o&&N[A+1][0]==o&&(N[A][1].substring(N[A][1].length-N[A-1][1].length)==N[A-1][1]?(N[A][1]=N[A-1][1]+N[A][1].substring(0,N[A][1].length-N[A-1][1].length),N[A+1][1]=N[A-1][1]+N[A+1][1],N.splice(A-1,1),D=!0):N[A][1].substring(0,N[A+1][1].length)==N[A+1][1]&&(N[A-1][1]+=N[A+1][1],N[A][1]=N[A][1].substring(N[A+1][1].length)+N[A+1][1],N.splice(A+1,1),D=!0)),A++;D&&b(N)}var j=c;j.INSERT=a,j.DELETE=s,j.EQUAL=o,r.exports=j;function v(N,A){if(A===0)return[o,N];for(var S=0,E=0;E<N.length;E++){var C=N[E];if(C[0]===s||C[0]===o){var B=S+C[1].length;if(A===B)return[E+1,N];if(A<B){N=N.slice();var F=A-S,D=[C[0],C[1].slice(0,F)],I=[C[0],C[1].slice(F)];return N.splice(E,1,D,I),[E+1,N]}else S=B}}throw new Error("cursor_pos is out of bounds!")}function x(N,A){var S=v(N,A),E=S[1],C=S[0],B=E[C],F=E[C+1];if(B==null)return N;if(B[0]!==o)return N;if(F!=null&&B[1]+F[1]===F[1]+B[1])return E.splice(C,2,F,B),w(E,C,2);if(F!=null&&F[1].indexOf(B[1])===0){E.splice(C,2,[F[0],B[1]],[0,B[1]]);var D=F[1].slice(B[1].length);return D.length>0&&E.splice(C+2,0,[F[0],D]),w(E,C,3)}else return N}function k(N){for(var A=!1,S=function(F){return F.charCodeAt(0)>=56320&&F.charCodeAt(0)<=57343},E=function(F){return F.charCodeAt(F.length-1)>=55296&&F.charCodeAt(F.length-1)<=56319},C=2;C<N.length;C+=1)N[C-2][0]===o&&E(N[C-2][1])&&N[C-1][0]===s&&S(N[C-1][1])&&N[C][0]===a&&S(N[C][1])&&(A=!0,N[C-1][1]=N[C-2][1].slice(-1)+N[C-1][1],N[C][1]=N[C-2][1].slice(-1)+N[C][1],N[C-2][1]=N[C-2][1].slice(0,-1));if(!A)return N;for(var B=[],C=0;C<N.length;C+=1)N[C][1].length>0&&B.push(N[C]);return B}function w(N,A,S){for(var E=A+S-1;E>=0&&E>=A-1;E--)if(E+1<N.length){var C=N[E],B=N[E+1];C[0]===B[1]&&N.splice(E,2,[C[0],C[1]+B[1]])}return N}}),(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(h,f,m){this.fn=h,this.context=f,this.once=m||!1}function d(){this._events=new o,this._eventsCount=0}d.prototype.eventNames=function(){var f=[],m,p;if(this._eventsCount===0)return f;for(p in m=this._events)s.call(m,p)&&f.push(a?p.slice(1):p);return Object.getOwnPropertySymbols?f.concat(Object.getOwnPropertySymbols(m)):f},d.prototype.listeners=function(f,m){var p=a?a+f:f,g=this._events[p];if(m)return!!g;if(!g)return[];if(g.fn)return[g.fn];for(var b=0,j=g.length,v=new Array(j);b<j;b++)v[b]=g[b].fn;return v},d.prototype.emit=function(f,m,p,g,b,j){var v=a?a+f:f;if(!this._events[v])return!1;var x=this._events[v],k=arguments.length,w,N;if(x.fn){switch(x.once&&this.removeListener(f,x.fn,void 0,!0),k){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(N=1,w=new Array(k-1);N<k;N++)w[N-1]=arguments[N];x.fn.apply(x.context,w)}else{var A=x.length,S;for(N=0;N<A;N++)switch(x[N].once&&this.removeListener(f,x[N].fn,void 0,!0),k){case 1:x[N].fn.call(x[N].context);break;case 2:x[N].fn.call(x[N].context,m);break;case 3:x[N].fn.call(x[N].context,m,p);break;case 4:x[N].fn.call(x[N].context,m,p,g);break;default:if(!w)for(S=1,w=new Array(k-1);S<k;S++)w[S-1]=arguments[S];x[N].fn.apply(x[N].context,w)}}return!0},d.prototype.on=function(f,m,p){var g=new c(m,p||this),b=a?a+f:f;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(f,m,p){var g=new c(m,p||this,!0),b=a?a+f:f;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(f,m,p,g){var b=a?a+f:f;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 v=0,x=[],k=j.length;v<k;v++)(j[v].fn!==m||g&&!j[v].once||p&&j[v].context!==p)&&x.push(j[v]);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(f){var m;return f?(m=a?a+f:f,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(ye,Se){var Pe=[],je=!0,tt=!1,et=void 0;try{for(var rt=ye[Symbol.iterator](),xe;!(je=(xe=rt.next()).done)&&(Pe.push(xe.value),!(Se&&Pe.length===Se));je=!0);}catch(_e){tt=!0,et=_e}finally{try{!je&&rt.return&&rt.return()}finally{if(tt)throw et}}return Pe}return function(ye,Se){if(Array.isArray(ye))return ye;if(Symbol.iterator in Object(ye))return ge(ye,Se);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),c=(function(){function ge(ye,Se){for(var Pe=0;Pe<Se.length;Pe++){var je=Se[Pe];je.enumerable=je.enumerable||!1,je.configurable=!0,"value"in je&&(je.writable=!0),Object.defineProperty(ye,je.key,je)}}return function(ye,Se,Pe){return Se&&ge(ye.prototype,Se),Pe&&ge(ye,Pe),ye}})(),d=s(3),h=I(d),f=s(2),m=I(f),p=s(0),g=I(p),b=s(5),j=I(b),v=s(10),x=I(v),k=s(9),w=I(k),N=s(36),A=s(37),S=s(13),E=I(S),C=s(26),B=s(38),F=s(39),D=s(40);function I(ge){return ge&&ge.__esModule?ge:{default:ge}}function z(ge,ye,Se){return ye in ge?Object.defineProperty(ge,ye,{value:Se,enumerable:!0,configurable:!0,writable:!0}):ge[ye]=Se,ge}function q(ge,ye){if(!(ge instanceof ye))throw new TypeError("Cannot call a class as a function")}function U(ge,ye){if(!ge)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ye&&(typeof ye=="object"||typeof ye=="function")?ye:ge}function Q(ge,ye){if(typeof ye!="function"&&ye!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof ye);ge.prototype=Object.create(ye&&ye.prototype,{constructor:{value:ge,enumerable:!1,writable:!0,configurable:!0}}),ye&&(Object.setPrototypeOf?Object.setPrototypeOf(ge,ye):ge.__proto__=ye)}var H=(0,x.default)("quill:clipboard"),K="__ql-matcher",Y=[[Node.TEXT_NODE,nt],[Node.TEXT_NODE,Te],["br",ve],[Node.ELEMENT_NODE,Te],[Node.ELEMENT_NODE,le],[Node.ELEMENT_NODE,We],[Node.ELEMENT_NODE,ne],[Node.ELEMENT_NODE,ut],["li",Oe],["b",ee.bind(ee,"bold")],["i",ee.bind(ee,"italic")],["style",be]],P=[N.AlignAttribute,B.DirectionAttribute].reduce(function(ge,ye){return ge[ye.keyName]=ye,ge},{}),T=[N.AlignStyle,A.BackgroundStyle,C.ColorStyle,B.DirectionStyle,F.FontStyle,D.SizeStyle].reduce(function(ge,ye){return ge[ye.keyName]=ye,ge},{}),V=(function(ge){Q(ye,ge);function ye(Se,Pe){q(this,ye);var je=U(this,(ye.__proto__||Object.getPrototypeOf(ye)).call(this,Se,Pe));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=[],Y.concat(je.options.matchers).forEach(function(tt){var et=o(tt,2),rt=et[0],xe=et[1];!Pe.matchVisual&&xe===We||je.addMatcher(rt,xe)}),je}return c(ye,[{key:"addMatcher",value:function(Pe,je){this.matchers.push([Pe,je])}},{key:"convert",value:function(Pe){if(typeof Pe=="string")return this.container.innerHTML=Pe.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,z({},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(Pe,je){var tt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:j.default.sources.API;if(typeof Pe=="string")this.quill.setContents(this.convert(Pe),je),this.quill.setSelection(0,j.default.sources.SILENT);else{var et=this.convert(je);this.quill.updateContents(new m.default().retain(Pe).concat(et),tt),this.quill.setSelection(Pe+et.length(),j.default.sources.SILENT)}}},{key:"onPaste",value:function(Pe){var je=this;if(!(Pe.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 Pe=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(Pe.container.querySelectorAll(xe),function(De){De[K]=De[K]||[],De[K].push(_e)});break}}),[je,tt]}}]),ye})(w.default);V.DEFAULTS={matchers:[],matchVisual:!0};function L(ge,ye,Se){return(typeof ye>"u"?"undefined":a(ye))==="object"?Object.keys(ye).reduce(function(Pe,je){return L(Pe,je,ye[je])},ge):ge.reduce(function(Pe,je){return je.attributes&&je.attributes[ye]?Pe.push(je):Pe.insert(je.insert,(0,h.default)({},z({},ye,Se),je.attributes))},new m.default)}function X(ge){if(ge.nodeType!==Node.ELEMENT_NODE)return{};var ye="__ql-computed-style";return ge[ye]||(ge[ye]=window.getComputedStyle(ge))}function J(ge,ye){for(var Se="",Pe=ge.ops.length-1;Pe>=0&&Se.length<ye.length;--Pe){var je=ge.ops[Pe];if(typeof je.insert!="string")break;Se=je.insert+Se}return Se.slice(-1*ye.length)===ye}function W(ge){if(ge.childNodes.length===0)return!1;var ye=X(ge);return["block","list-item"].indexOf(ye.display)>-1}function G(ge,ye,Se){return ge.nodeType===ge.TEXT_NODE?Se.reduce(function(Pe,je){return je(ge,Pe)},new m.default):ge.nodeType===ge.ELEMENT_NODE?[].reduce.call(ge.childNodes||[],function(Pe,je){var tt=G(je,ye,Se);return je.nodeType===ge.ELEMENT_NODE&&(tt=ye.reduce(function(et,rt){return rt(je,et)},tt),tt=(je[K]||[]).reduce(function(et,rt){return rt(je,et)},tt)),Pe.concat(tt)},new m.default):new m.default}function ee(ge,ye,Se){return L(Se,ge,!0)}function ne(ge,ye){var Se=g.default.Attributor.Attribute.keys(ge),Pe=g.default.Attributor.Class.keys(ge),je=g.default.Attributor.Style.keys(ge),tt={};return Se.concat(Pe).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=P[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&&(ye=L(ye,tt)),ye}function le(ge,ye){var Se=g.default.query(ge);if(Se==null)return ye;if(Se.prototype instanceof g.default.Embed){var Pe={},je=Se.value(ge);je!=null&&(Pe[Se.blotName]=je,ye=new m.default().insert(Pe,Se.formats(ge)))}else typeof Se.formats=="function"&&(ye=L(ye,Se.blotName,Se.formats(ge)));return ye}function ve(ge,ye){return J(ye,`
`)||ye.insert(`
`),ye}function be(){return new m.default}function Oe(ge,ye){var Se=g.default.query(ge);if(Se==null||Se.blotName!=="list-item"||!J(ye,`
`))return ye;for(var Pe=-1,je=ge.parentNode;!je.classList.contains("ql-clipboard");)(g.default.query(je)||{}).blotName==="list"&&(Pe+=1),je=je.parentNode;return Pe<=0?ye:ye.compose(new m.default().retain(ye.length()-1).retain(1,{indent:Pe}))}function Te(ge,ye){return J(ye,`
`)||(W(ge)||ye.length()>0&&ge.nextSibling&&W(ge.nextSibling))&&ye.insert(`
`),ye}function We(ge,ye){if(W(ge)&&ge.nextElementSibling!=null&&!J(ye,`

`)){var Se=ge.offsetHeight+parseFloat(X(ge).marginTop)+parseFloat(X(ge).marginBottom);ge.nextElementSibling.offsetTop>ge.offsetTop+Se*1.5&&ye.insert(`
`)}return ye}function ut(ge,ye){var Se={},Pe=ge.style||{};return Pe.fontStyle&&X(ge).fontStyle==="italic"&&(Se.italic=!0),Pe.fontWeight&&(X(ge).fontWeight.startsWith("bold")||parseInt(X(ge).fontWeight)>=700)&&(Se.bold=!0),Object.keys(Se).length>0&&(ye=L(ye,Se)),parseFloat(Pe.textIndent||0)>0&&(ye=new m.default().insert("	").concat(ye)),ye}function nt(ge,ye){var Se=ge.data;if(ge.parentNode.tagName==="O:P")return ye.insert(Se.trim());if(Se.trim().length===0&&ge.parentNode.classList.contains("ql-clipboard"))return ye;if(!X(ge.parentNode).whiteSpace.startsWith("pre")){var Pe=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,Pe.bind(Pe,!0)),(ge.previousSibling==null&&W(ge.parentNode)||ge.previousSibling!=null&&W(ge.previousSibling))&&(Se=Se.replace(/^\s+/,Pe.bind(Pe,!1))),(ge.nextSibling==null&&W(ge.parentNode)||ge.nextSibling!=null&&W(ge.nextSibling))&&(Se=Se.replace(/\s+$/,Pe.bind(Pe,!1)))}return ye.insert(Se)}i.default=V,i.matchAttributor=ne,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,v){for(var x=0;x<v.length;x++){var k=v[x];k.enumerable=k.enumerable||!1,k.configurable=!0,"value"in k&&(k.writable=!0),Object.defineProperty(j,k.key,k)}}return function(j,v,x){return v&&b(j.prototype,v),x&&b(j,x),j}})(),o=function b(j,v,x){j===null&&(j=Function.prototype);var k=Object.getOwnPropertyDescriptor(j,v);if(k===void 0){var w=Object.getPrototypeOf(j);return w===null?void 0:b(w,v,x)}else{if("value"in k)return k.value;var N=k.get;return N===void 0?void 0:N.call(x)}},c=s(6),d=h(c);function h(b){return b&&b.__esModule?b:{default:b}}function f(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 f(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 D(I,z){var q=[],U=!0,Q=!1,H=void 0;try{for(var K=I[Symbol.iterator](),Y;!(U=(Y=K.next()).done)&&(q.push(Y.value),!(z&&q.length===z));U=!0);}catch(P){Q=!0,H=P}finally{try{!U&&K.return&&K.return()}finally{if(Q)throw H}}return q}return function(I,z){if(Array.isArray(I))return I;if(Symbol.iterator in Object(I))return D(I,z);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),o=(function(){function D(I,z){for(var q=0;q<z.length;q++){var U=z[q];U.enumerable=U.enumerable||!1,U.configurable=!0,"value"in U&&(U.writable=!0),Object.defineProperty(I,U.key,U)}}return function(I,z,q){return z&&D(I.prototype,z),q&&D(I,q),I}})(),c=s(2),d=x(c),h=s(0),f=x(h),m=s(5),p=x(m),g=s(10),b=x(g),j=s(9),v=x(j);function x(D){return D&&D.__esModule?D:{default:D}}function k(D,I,z){return I in D?Object.defineProperty(D,I,{value:z,enumerable:!0,configurable:!0,writable:!0}):D[I]=z,D}function w(D,I){if(!(D instanceof I))throw new TypeError("Cannot call a class as a function")}function N(D,I){if(!D)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return I&&(typeof I=="object"||typeof I=="function")?I:D}function A(D,I){if(typeof I!="function"&&I!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof I);D.prototype=Object.create(I&&I.prototype,{constructor:{value:D,enumerable:!1,writable:!0,configurable:!0}}),I&&(Object.setPrototypeOf?Object.setPrototypeOf(D,I):D.__proto__=I)}var S=(0,b.default)("quill:toolbar"),E=(function(D){A(I,D);function I(z,q){w(this,I);var U=N(this,(I.__proto__||Object.getPrototypeOf(I)).call(this,z,q));if(Array.isArray(U.options.container)){var Q=document.createElement("div");B(Q,U.options.container),z.container.parentNode.insertBefore(Q,z.container),U.container=Q}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),N(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,Y){K===p.default.events.SELECTION_CHANGE&&U.update(Y)}),U.quill.on(p.default.events.SCROLL_OPTIMIZE,function(){var K=U.quill.selection.getRange(),Y=a(K,1),P=Y[0];U.update(P)}),U}return o(I,[{key:"addHandler",value:function(q,U){this.handlers[q]=U}},{key:"attach",value:function(q){var U=this,Q=[].find.call(q.classList,function(K){return K.indexOf("ql-")===0});if(Q){if(Q=Q.slice(3),q.tagName==="BUTTON"&&q.setAttribute("type","button"),this.handlers[Q]==null){if(this.quill.scroll.whitelist!=null&&this.quill.scroll.whitelist[Q]==null){S.warn("ignoring attaching to disabled format",Q,q);return}if(f.default.query(Q)==null){S.warn("ignoring attaching to nonexistent format",Q,q);return}}var H=q.tagName==="SELECT"?"change":"click";q.addEventListener(H,function(K){var Y=void 0;if(q.tagName==="SELECT"){if(q.selectedIndex<0)return;var P=q.options[q.selectedIndex];P.hasAttribute("selected")?Y=!1:Y=P.value||!1}else q.classList.contains("ql-active")?Y=!1:Y=q.value||!q.hasAttribute("value"),K.preventDefault();U.quill.focus();var T=U.quill.selection.getRange(),V=a(T,1),L=V[0];if(U.handlers[Q]!=null)U.handlers[Q].call(U,Y);else if(f.default.query(Q).prototype instanceof f.default.Embed){if(Y=prompt("Enter "+Q),!Y)return;U.quill.updateContents(new d.default().retain(L.index).delete(L.length).insert(k({},Q,Y)),p.default.sources.USER)}else U.quill.format(Q,Y,p.default.sources.USER);U.update(L)}),this.controls.push([Q,q])}}},{key:"update",value:function(q){var U=q==null?{}:this.quill.getFormat(q);this.controls.forEach(function(Q){var H=a(Q,2),K=H[0],Y=H[1];if(Y.tagName==="SELECT"){var P=void 0;if(q==null)P=null;else if(U[K]==null)P=Y.querySelector("option[selected]");else if(!Array.isArray(U[K])){var T=U[K];typeof T=="string"&&(T=T.replace(/\"/g,'\\"')),P=Y.querySelector('option[value="'+T+'"]')}P==null?(Y.value="",Y.selectedIndex=-1):P.selected=!0}else if(q==null)Y.classList.remove("ql-active");else if(Y.hasAttribute("value")){var V=U[K]===Y.getAttribute("value")||U[K]!=null&&U[K].toString()===Y.getAttribute("value")||U[K]==null&&!Y.getAttribute("value");Y.classList.toggle("ql-active",V)}else Y.classList.toggle("ql-active",U[K]!=null)})}}]),I})(v.default);E.DEFAULTS={};function C(D,I,z){var q=document.createElement("button");q.setAttribute("type","button"),q.classList.add("ql-"+I),z!=null&&(q.value=z),D.appendChild(q)}function B(D,I){Array.isArray(I[0])||(I=[I]),I.forEach(function(z){var q=document.createElement("span");q.classList.add("ql-formats"),z.forEach(function(U){if(typeof U=="string")C(q,U);else{var Q=Object.keys(U)[0],H=U[Q];Array.isArray(H)?F(q,Q,H):C(q,Q,H)}}),D.appendChild(q)})}function F(D,I,z){var q=document.createElement("select");q.classList.add("ql-"+I),z.forEach(function(U){var Q=document.createElement("option");U!==!1?Q.setAttribute("value",U):Q.setAttribute("selected","selected"),q.appendChild(Q)}),D.appendChild(q)}E.DEFAULTS={container:null,handlers:{clean:function(){var I=this,z=this.quill.getSelection();if(z!=null)if(z.length==0){var q=this.quill.getFormat();Object.keys(q).forEach(function(U){f.default.query(U,f.default.Scope.INLINE)!=null&&I.quill.format(U,!1)})}else this.quill.removeFormat(z,p.default.sources.USER)},direction:function(I){var z=this.quill.getFormat().align;I==="rtl"&&z==null?this.quill.format("align","right",p.default.sources.USER):!I&&z==="right"&&this.quill.format("align",!1,p.default.sources.USER),this.quill.format("direction",I,p.default.sources.USER)},indent:function(I){var z=this.quill.getSelection(),q=this.quill.getFormat(z),U=parseInt(q.indent||0);if(I==="+1"||I==="-1"){var Q=I==="+1"?1:-1;q.direction==="rtl"&&(Q*=-1),this.quill.format("indent",U+Q,p.default.sources.USER)}},link:function(I){I===!0&&(I=prompt("Enter link URL:")),this.quill.format("link",I,p.default.sources.USER)},list:function(I){var z=this.quill.getSelection(),q=this.quill.getFormat(z);I==="check"?q.list==="checked"||q.list==="unchecked"?this.quill.format("list",!1,p.default.sources.USER):this.quill.format("list","unchecked",p.default.sources.USER):this.quill.format("list",I,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,v){for(var x=0;x<v.length;x++){var k=v[x];k.enumerable=k.enumerable||!1,k.configurable=!0,"value"in k&&(k.writable=!0),Object.defineProperty(j,k.key,k)}}return function(j,v,x){return v&&b(j.prototype,v),x&&b(j,x),j}})(),o=function b(j,v,x){j===null&&(j=Function.prototype);var k=Object.getOwnPropertyDescriptor(j,v);if(k===void 0){var w=Object.getPrototypeOf(j);return w===null?void 0:b(w,v,x)}else{if("value"in k)return k.value;var N=k.get;return N===void 0?void 0:N.call(x)}},c=s(28),d=h(c);function h(b){return b&&b.__esModule?b:{default:b}}function f(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(v,x){f(this,j);var k=m(this,(j.__proto__||Object.getPrototypeOf(j)).call(this,v));return k.label.innerHTML=x,k.container.classList.add("ql-color-picker"),[].slice.call(k.container.querySelectorAll(".ql-picker-item"),0,7).forEach(function(w){w.classList.add("ql-primary")}),k}return a(j,[{key:"buildItem",value:function(x){var k=o(j.prototype.__proto__||Object.getPrototypeOf(j.prototype),"buildItem",this).call(this,x);return k.style.backgroundColor=x.getAttribute("value")||"",k}},{key:"selectItem",value:function(x,k){o(j.prototype.__proto__||Object.getPrototypeOf(j.prototype),"selectItem",this).call(this,x,k);var w=this.label.querySelector(".ql-color-label"),N=x&&x.getAttribute("data-value")||"";w&&(w.tagName==="line"?w.style.stroke=N:w.style.fill=N)}}]),j})(d.default);i.default=g}),(function(r,i,s){Object.defineProperty(i,"__esModule",{value:!0});var a=(function(){function b(j,v){for(var x=0;x<v.length;x++){var k=v[x];k.enumerable=k.enumerable||!1,k.configurable=!0,"value"in k&&(k.writable=!0),Object.defineProperty(j,k.key,k)}}return function(j,v,x){return v&&b(j.prototype,v),x&&b(j,x),j}})(),o=function b(j,v,x){j===null&&(j=Function.prototype);var k=Object.getOwnPropertyDescriptor(j,v);if(k===void 0){var w=Object.getPrototypeOf(j);return w===null?void 0:b(w,v,x)}else{if("value"in k)return k.value;var N=k.get;return N===void 0?void 0:N.call(x)}},c=s(28),d=h(c);function h(b){return b&&b.__esModule?b:{default:b}}function f(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(v,x){f(this,j);var k=m(this,(j.__proto__||Object.getPrototypeOf(j)).call(this,v));return k.container.classList.add("ql-icon-picker"),[].forEach.call(k.container.querySelectorAll(".ql-picker-item"),function(w){w.innerHTML=x[w.getAttribute("data-value")||""]}),k.defaultItem=k.container.querySelector(".ql-selected"),k.selectItem(k.defaultItem),k}return a(j,[{key:"selectItem",value:function(x,k){o(j.prototype.__proto__||Object.getPrototypeOf(j.prototype),"selectItem",this).call(this,x,k),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(h,f){for(var m=0;m<f.length;m++){var p=f[m];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(h,p.key,p)}}return function(h,f,m){return f&&d(h.prototype,f),m&&d(h,m),h}})();function o(d,h){if(!(d instanceof h))throw new TypeError("Cannot call a class as a function")}var c=(function(){function d(h,f){var m=this;o(this,d),this.quill=h,this.boundsContainer=f||document.body,this.root=h.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(f){var m=f.left+f.width/2-this.root.offsetWidth/2,p=f.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 v=b.bottom-b.top,x=f.bottom-f.top+v;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 F(D,I){var z=[],q=!0,U=!1,Q=void 0;try{for(var H=D[Symbol.iterator](),K;!(q=(K=H.next()).done)&&(z.push(K.value),!(I&&z.length===I));q=!0);}catch(Y){U=!0,Q=Y}finally{try{!q&&H.return&&H.return()}finally{if(U)throw Q}}return z}return function(D,I){if(Array.isArray(D))return D;if(Symbol.iterator in Object(D))return F(D,I);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),o=function F(D,I,z){D===null&&(D=Function.prototype);var q=Object.getOwnPropertyDescriptor(D,I);if(q===void 0){var U=Object.getPrototypeOf(D);return U===null?void 0:F(U,I,z)}else{if("value"in q)return q.value;var Q=q.get;return Q===void 0?void 0:Q.call(z)}},c=(function(){function F(D,I){for(var z=0;z<I.length;z++){var q=I[z];q.enumerable=q.enumerable||!1,q.configurable=!0,"value"in q&&(q.writable=!0),Object.defineProperty(D,q.key,q)}}return function(D,I,z){return I&&F(D.prototype,I),z&&F(D,z),D}})(),d=s(3),h=w(d),f=s(8),m=w(f),p=s(43),g=w(p),b=s(27),j=w(b),v=s(15),x=s(41),k=w(x);function w(F){return F&&F.__esModule?F:{default:F}}function N(F,D){if(!(F instanceof D))throw new TypeError("Cannot call a class as a function")}function A(F,D){if(!F)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return D&&(typeof D=="object"||typeof D=="function")?D:F}function S(F,D){if(typeof D!="function"&&D!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof D);F.prototype=Object.create(D&&D.prototype,{constructor:{value:F,enumerable:!1,writable:!0,configurable:!0}}),D&&(Object.setPrototypeOf?Object.setPrototypeOf(F,D):F.__proto__=D)}var E=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]],C=(function(F){S(D,F);function D(I,z){N(this,D),z.modules.toolbar!=null&&z.modules.toolbar.container==null&&(z.modules.toolbar.container=E);var q=A(this,(D.__proto__||Object.getPrototypeOf(D)).call(this,I,z));return q.quill.container.classList.add("ql-snow"),q}return c(D,[{key:"extendToolbar",value:function(z){z.container.classList.add("ql-snow"),this.buildButtons([].slice.call(z.container.querySelectorAll("button")),k.default),this.buildPickers([].slice.call(z.container.querySelectorAll("select")),k.default),this.tooltip=new B(this.quill,this.options.bounds),z.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"K",shortKey:!0},function(q,U){z.handlers.link.call(z,!U.format.link)})}}]),D})(g.default);C.DEFAULTS=(0,h.default)(!0,{},g.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(D){if(D){var I=this.quill.getSelection();if(I==null||I.length==0)return;var z=this.quill.getText(I);/^\S+@\S+\.\S+$/.test(z)&&z.indexOf("mailto:")!==0&&(z="mailto:"+z);var q=this.quill.theme.tooltip;q.edit("link",z)}else this.quill.format("link",!1)}}}}});var B=(function(F){S(D,F);function D(I,z){N(this,D);var q=A(this,(D.__proto__||Object.getPrototypeOf(D)).call(this,I,z));return q.preview=q.root.querySelector("a.ql-preview"),q}return c(D,[{key:"listen",value:function(){var z=this;o(D.prototype.__proto__||Object.getPrototypeOf(D.prototype),"listen",this).call(this),this.root.querySelector("a.ql-action").addEventListener("click",function(q){z.root.classList.contains("ql-editing")?z.save():z.edit("link",z.preview.textContent),q.preventDefault()}),this.root.querySelector("a.ql-remove").addEventListener("click",function(q){if(z.linkRange!=null){var U=z.linkRange;z.restoreFocus(),z.quill.formatText(U,"link",!1,m.default.sources.USER),delete z.linkRange}q.preventDefault(),z.hide()}),this.quill.on(m.default.events.SELECTION_CHANGE,function(q,U,Q){if(q!=null){if(q.length===0&&Q===m.default.sources.USER){var H=z.quill.scroll.descendant(j.default,q.index),K=a(H,2),Y=K[0],P=K[1];if(Y!=null){z.linkRange=new v.Range(q.index-P,Y.length());var T=j.default.formats(Y.domNode);z.preview.textContent=T,z.preview.setAttribute("href",T),z.show(),z.position(z.quill.getBounds(z.linkRange));return}}else delete z.linkRange;z.hide()}})}},{key:"show",value:function(){o(D.prototype.__proto__||Object.getPrototypeOf(D.prototype),"show",this).call(this),this.root.removeAttribute("data-mode")}}]),D})(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),h=s(64),f=s(65),m=je(f),p=s(66),g=je(p),b=s(67),j=je(b),v=s(37),x=s(26),k=s(39),w=s(40),N=s(56),A=je(N),S=s(68),E=je(S),C=s(27),B=je(C),F=s(69),D=je(F),I=s(70),z=je(I),q=s(71),U=je(q),Q=s(72),H=je(Q),K=s(73),Y=je(K),P=s(13),T=je(P),V=s(74),L=je(V),X=s(75),J=je(X),W=s(57),G=je(W),ee=s(41),ne=je(ee),le=s(28),ve=je(le),be=s(59),Oe=je(be),Te=s(60),We=je(Te),ut=s(61),nt=je(ut),ge=s(108),ye=je(ge),Se=s(62),Pe=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":v.BackgroundClass,"attributors/class/color":x.ColorClass,"attributors/class/direction":d.DirectionClass,"attributors/class/font":k.FontClass,"attributors/class/size":w.SizeClass,"attributors/style/align":c.AlignStyle,"attributors/style/background":v.BackgroundStyle,"attributors/style/color":x.ColorStyle,"attributors/style/direction":d.DirectionStyle,"attributors/style/font":k.FontStyle,"attributors/style/size":w.SizeStyle},!0),o.default.register({"formats/align":c.AlignClass,"formats/direction":d.DirectionClass,"formats/indent":h.IndentClass,"formats/background":v.BackgroundStyle,"formats/color":x.ColorStyle,"formats/font":k.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":P.Code,"formats/italic":E.default,"formats/link":B.default,"formats/script":D.default,"formats/strike":z.default,"formats/underline":U.default,"formats/image":H.default,"formats/video":Y.default,"formats/list/item":b.ListItem,"modules/formula":L.default,"modules/syntax":J.default,"modules/toolbar":G.default,"themes/bubble":ye.default,"themes/snow":Pe.default,"ui/icons":ne.default,"ui/picker":ve.default,"ui/icon-picker":We.default,"ui/color-picker":Oe.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(v,x){for(var k=0;k<x.length;k++){var w=x[k];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(v,w.key,w)}}return function(v,x,k){return x&&j(v.prototype,x),k&&j(v,k),v}})(),o=function j(v,x,k){v===null&&(v=Function.prototype);var w=Object.getOwnPropertyDescriptor(v,x);if(w===void 0){var N=Object.getPrototypeOf(v);return N===null?void 0:j(N,x,k)}else{if("value"in w)return w.value;var A=w.get;return A===void 0?void 0:A.call(k)}},c=s(0),d=h(c);function h(j){return j&&j.__esModule?j:{default:j}}function f(j,v){if(!(j instanceof v))throw new TypeError("Cannot call a class as a function")}function m(j,v){if(!j)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return v&&(typeof v=="object"||typeof v=="function")?v:j}function p(j,v){if(typeof v!="function"&&v!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof v);j.prototype=Object.create(v&&v.prototype,{constructor:{value:j,enumerable:!1,writable:!0,configurable:!0}}),v&&(Object.setPrototypeOf?Object.setPrototypeOf(j,v):j.__proto__=v)}var g=(function(j){p(v,j);function v(){return f(this,v),m(this,(v.__proto__||Object.getPrototypeOf(v)).apply(this,arguments))}return a(v,[{key:"add",value:function(k,w){if(w==="+1"||w==="-1"){var N=this.value(k)||0;w=w==="+1"?N+1:N-1}return w===0?(this.remove(k),!0):o(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"add",this).call(this,k,w)}},{key:"canAdd",value:function(k,w){return o(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"canAdd",this).call(this,k,w)||o(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"canAdd",this).call(this,k,parseInt(w))}},{key:"value",value:function(k){return parseInt(o(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"value",this).call(this,k))||void 0}}]),v})(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 h(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 f(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){f(g,p);function g(){return d(this,g),h(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 v=0;v<j.length;v++){var x=j[v];x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),Object.defineProperty(b,x.key,x)}}return function(b,j,v){return j&&g(b.prototype,j),v&&g(b,v),b}})(),o=s(4),c=d(o);function d(g){return g&&g.__esModule?g:{default:g}}function h(g,b){if(!(g instanceof b))throw new TypeError("Cannot call a class as a function")}function f(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 h(this,b),f(this,(b.__proto__||Object.getPrototypeOf(b)).apply(this,arguments))}return a(b,null,[{key:"formats",value:function(v){return this.tagName.indexOf(v.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 N(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&&N(A.prototype,S),E&&N(A,E),A}})(),o=function N(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:N(B,S,E)}else{if("value"in C)return C.value;var F=C.get;return F===void 0?void 0:F.call(E)}},c=s(0),d=g(c),h=s(4),f=g(h),m=s(25),p=g(m);function g(N){return N&&N.__esModule?N:{default:N}}function b(N,A,S){return A in N?Object.defineProperty(N,A,{value:S,enumerable:!0,configurable:!0,writable:!0}):N[A]=S,N}function j(N,A){if(!(N instanceof A))throw new TypeError("Cannot call a class as a function")}function v(N,A){if(!N)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return A&&(typeof A=="object"||typeof A=="function")?A:N}function x(N,A){if(typeof A!="function"&&A!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof A);N.prototype=Object.create(A&&A.prototype,{constructor:{value:N,enumerable:!1,writable:!0,configurable:!0}}),A&&(Object.setPrototypeOf?Object.setPrototypeOf(N,A):N.__proto__=A)}var k=(function(N){x(A,N);function A(){return j(this,A),v(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})(f.default);k.blotName="list-item",k.tagName="LI";var w=(function(N){x(A,N),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=v(this,(A.__proto__||Object.getPrototypeOf(A)).call(this,S)),C=function(F){if(F.target.parentNode===S){var D=E.statics.formats(S),I=d.default.find(F.target);D==="checked"?I.format("list","unchecked"):D==="unchecked"&&I.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 k)o(A.prototype.__proto__||Object.getPrototypeOf(A.prototype),"insertBefore",this).call(this,E,C);else{var B=C==null?this.length():C.offset(this),F=this.split(B);F.parent.insertBefore(E,F)}}},{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=[k],i.ListItem=k,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 h(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 f(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){f(g,p);function g(){return d(this,g),h(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,v){for(var x=0;x<v.length;x++){var k=v[x];k.enumerable=k.enumerable||!1,k.configurable=!0,"value"in k&&(k.writable=!0),Object.defineProperty(j,k.key,k)}}return function(j,v,x){return v&&b(j.prototype,v),x&&b(j,x),j}})(),o=function b(j,v,x){j===null&&(j=Function.prototype);var k=Object.getOwnPropertyDescriptor(j,v);if(k===void 0){var w=Object.getPrototypeOf(j);return w===null?void 0:b(w,v,x)}else{if("value"in k)return k.value;var N=k.get;return N===void 0?void 0:N.call(x)}},c=s(6),d=h(c);function h(b){return b&&b.__esModule?b:{default:b}}function f(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 f(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 h(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 f(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){f(g,p);function g(){return d(this,g),h(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 h(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 f(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){f(g,p);function g(){return d(this,g),h(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 v(x,k){for(var w=0;w<k.length;w++){var N=k[w];N.enumerable=N.enumerable||!1,N.configurable=!0,"value"in N&&(N.writable=!0),Object.defineProperty(x,N.key,N)}}return function(x,k,w){return k&&v(x.prototype,k),w&&v(x,w),x}})(),o=function v(x,k,w){x===null&&(x=Function.prototype);var N=Object.getOwnPropertyDescriptor(x,k);if(N===void 0){var A=Object.getPrototypeOf(x);return A===null?void 0:v(A,k,w)}else{if("value"in N)return N.value;var S=N.get;return S===void 0?void 0:S.call(w)}},c=s(0),d=f(c),h=s(27);function f(v){return v&&v.__esModule?v:{default:v}}function m(v,x){if(!(v instanceof x))throw new TypeError("Cannot call a class as a function")}function p(v,x){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return x&&(typeof x=="object"||typeof x=="function")?x:v}function g(v,x){if(typeof x!="function"&&x!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof x);v.prototype=Object.create(x&&x.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),x&&(Object.setPrototypeOf?Object.setPrototypeOf(v,x):v.__proto__=x)}var b=["alt","height","width"],j=(function(v){g(x,v);function x(){return m(this,x),p(this,(x.__proto__||Object.getPrototypeOf(x)).apply(this,arguments))}return a(x,[{key:"format",value:function(w,N){b.indexOf(w)>-1?N?this.domNode.setAttribute(w,N):this.domNode.removeAttribute(w):o(x.prototype.__proto__||Object.getPrototypeOf(x.prototype),"format",this).call(this,w,N)}}],[{key:"create",value:function(w){var N=o(x.__proto__||Object.getPrototypeOf(x),"create",this).call(this,w);return typeof w=="string"&&N.setAttribute("src",this.sanitize(w)),N}},{key:"formats",value:function(w){return b.reduce(function(N,A){return w.hasAttribute(A)&&(N[A]=w.getAttribute(A)),N},{})}},{key:"match",value:function(w){return/\.(jpe?g|gif|png)$/.test(w)||/^data:image\/.+;base64/.test(w)}},{key:"sanitize",value:function(w){return(0,h.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 v(x,k){for(var w=0;w<k.length;w++){var N=k[w];N.enumerable=N.enumerable||!1,N.configurable=!0,"value"in N&&(N.writable=!0),Object.defineProperty(x,N.key,N)}}return function(x,k,w){return k&&v(x.prototype,k),w&&v(x,w),x}})(),o=function v(x,k,w){x===null&&(x=Function.prototype);var N=Object.getOwnPropertyDescriptor(x,k);if(N===void 0){var A=Object.getPrototypeOf(x);return A===null?void 0:v(A,k,w)}else{if("value"in N)return N.value;var S=N.get;return S===void 0?void 0:S.call(w)}},c=s(4),d=s(27),h=f(d);function f(v){return v&&v.__esModule?v:{default:v}}function m(v,x){if(!(v instanceof x))throw new TypeError("Cannot call a class as a function")}function p(v,x){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return x&&(typeof x=="object"||typeof x=="function")?x:v}function g(v,x){if(typeof x!="function"&&x!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof x);v.prototype=Object.create(x&&x.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),x&&(Object.setPrototypeOf?Object.setPrototypeOf(v,x):v.__proto__=x)}var b=["height","width"],j=(function(v){g(x,v);function x(){return m(this,x),p(this,(x.__proto__||Object.getPrototypeOf(x)).apply(this,arguments))}return a(x,[{key:"format",value:function(w,N){b.indexOf(w)>-1?N?this.domNode.setAttribute(w,N):this.domNode.removeAttribute(w):o(x.prototype.__proto__||Object.getPrototypeOf(x.prototype),"format",this).call(this,w,N)}}],[{key:"create",value:function(w){var N=o(x.__proto__||Object.getPrototypeOf(x),"create",this).call(this,w);return N.setAttribute("frameborder","0"),N.setAttribute("allowfullscreen",!0),N.setAttribute("src",this.sanitize(w)),N}},{key:"formats",value:function(w){return b.reduce(function(N,A){return w.hasAttribute(A)&&(N[A]=w.getAttribute(A)),N},{})}},{key:"sanitize",value:function(w){return h.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(N,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(N,E.key,E)}}return function(N,A,S){return A&&w(N.prototype,A),S&&w(N,S),N}})(),o=function w(N,A,S){N===null&&(N=Function.prototype);var E=Object.getOwnPropertyDescriptor(N,A);if(E===void 0){var C=Object.getPrototypeOf(N);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),h=s(5),f=g(h),m=s(9),p=g(m);function g(w){return w&&w.__esModule?w:{default:w}}function b(w,N){if(!(w instanceof N))throw new TypeError("Cannot call a class as a function")}function j(w,N){if(!w)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return N&&(typeof N=="object"||typeof N=="function")?N:w}function v(w,N){if(typeof N!="function"&&N!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof N);w.prototype=Object.create(N&&N.prototype,{constructor:{value:w,enumerable:!1,writable:!0,configurable:!0}}),N&&(Object.setPrototypeOf?Object.setPrototypeOf(w,N):w.__proto__=N)}var x=(function(w){v(N,w);function N(){return b(this,N),j(this,(N.__proto__||Object.getPrototypeOf(N)).apply(this,arguments))}return a(N,null,[{key:"create",value:function(S){var E=o(N.__proto__||Object.getPrototypeOf(N),"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")}}]),N})(d.default);x.blotName="formula",x.className="ql-formula",x.tagName="SPAN";var k=(function(w){v(N,w),a(N,null,[{key:"register",value:function(){f.default.register(x,!0)}}]);function N(){b(this,N);var A=j(this,(N.__proto__||Object.getPrototypeOf(N)).call(this));if(window.katex==null)throw new Error("Formula module requires KaTeX.");return A}return N})(p.default);i.FormulaBlot=x,i.default=k}),(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 F=C[B];F.enumerable=F.enumerable||!1,F.configurable=!0,"value"in F&&(F.writable=!0),Object.defineProperty(E,F.key,F)}}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 F=Object.getOwnPropertyDescriptor(E,C);if(F===void 0){var D=Object.getPrototypeOf(E);return D===null?void 0:S(D,C,B)}else{if("value"in F)return F.value;var I=F.get;return I===void 0?void 0:I.call(B)}},c=s(0),d=j(c),h=s(5),f=j(h),m=s(9),p=j(m),g=s(13),b=j(g);function j(S){return S&&S.__esModule?S:{default:S}}function v(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 k(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){k(E,S);function E(){return v(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 F=this.domNode.textContent;this.cachedText!==F&&((F.trim().length>0||this.cachedText==null)&&(this.domNode.innerHTML=B(F),this.domNode.normalize(),this.attach()),this.cachedText=F)}}]),E})(b.default);w.className="ql-syntax";var N=new d.default.Attributor.Class("token","hljs",{scope:d.default.Scope.INLINE}),A=(function(S){k(E,S),a(E,null,[{key:"register",value:function(){f.default.register(N,!0),f.default.register(w,!0)}}]);function E(C,B){v(this,E);var F=x(this,(E.__proto__||Object.getPrototypeOf(E)).call(this,C,B));if(typeof F.options.highlight!="function")throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");var D=null;return F.quill.on(f.default.events.SCROLL_OPTIMIZE,function(){clearTimeout(D),D=setTimeout(function(){F.highlight(),D=null},F.options.interval)}),F.highlight(),F}return a(E,[{key:"highlight",value:function(){var B=this;if(!this.quill.selection.composing){this.quill.update(f.default.sources.USER);var F=this.quill.getSelection();this.quill.scroll.descendants(w).forEach(function(D){D.highlight(B.options.highlight)}),this.quill.update(f.default.sources.SILENT),F!=null&&this.quill.setSelection(F,f.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=N,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,F){C===null&&(C=Function.prototype);var D=Object.getOwnPropertyDescriptor(C,B);if(D===void 0){var I=Object.getPrototypeOf(C);return I===null?void 0:E(I,B,F)}else{if("value"in D)return D.value;var z=D.get;return z===void 0?void 0:z.call(F)}},o=(function(){function E(C,B){for(var F=0;F<B.length;F++){var D=B[F];D.enumerable=D.enumerable||!1,D.configurable=!0,"value"in D&&(D.writable=!0),Object.defineProperty(C,D.key,D)}}return function(C,B,F){return B&&E(C.prototype,B),F&&E(C,F),C}})(),c=s(3),d=v(c),h=s(8),f=v(h),m=s(43),p=v(m),g=s(15),b=s(41),j=v(b);function v(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 k(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 N=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]],A=(function(E){w(C,E);function C(B,F){x(this,C),F.modules.toolbar!=null&&F.modules.toolbar.container==null&&(F.modules.toolbar.container=N);var D=k(this,(C.__proto__||Object.getPrototypeOf(C)).call(this,B,F));return D.quill.container.classList.add("ql-bubble"),D}return o(C,[{key:"extendToolbar",value:function(F){this.tooltip=new S(this.quill,this.options.bounds),this.tooltip.root.appendChild(F.container),this.buildButtons([].slice.call(F.container.querySelectorAll("button")),j.default),this.buildPickers([].slice.call(F.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,F){x(this,C);var D=k(this,(C.__proto__||Object.getPrototypeOf(C)).call(this,B,F));return D.quill.on(f.default.events.EDITOR_CHANGE,function(I,z,q,U){if(I===f.default.events.SELECTION_CHANGE)if(z!=null&&z.length>0&&U===f.default.sources.USER){D.show(),D.root.style.left="0px",D.root.style.width="",D.root.style.width=D.root.offsetWidth+"px";var Q=D.quill.getLines(z.index,z.length);if(Q.length===1)D.position(D.quill.getBounds(z));else{var H=Q[Q.length-1],K=D.quill.getIndex(H),Y=Math.min(H.length()-1,z.index+z.length-K),P=D.quill.getBounds(new g.Range(K,Y));D.position(P)}}else document.activeElement!==D.textbox&&D.quill.hasFocus()&&D.hide()}),D}return o(C,[{key:"listen",value:function(){var F=this;a(C.prototype.__proto__||Object.getPrototypeOf(C.prototype),"listen",this).call(this),this.root.querySelector(".ql-close").addEventListener("click",function(){F.root.classList.remove("ql-editing")}),this.quill.on(f.default.events.SCROLL_OPTIMIZE,function(){setTimeout(function(){if(!F.root.classList.contains("ql-hidden")){var D=F.quill.getSelection();D!=null&&F.position(F.quill.getBounds(D))}},1)})}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(F){var D=a(C.prototype.__proto__||Object.getPrototypeOf(C.prototype),"position",this).call(this,F),I=this.root.querySelector(".ql-tooltip-arrow");if(I.style.marginLeft="",D===0)return D;I.style.marginLeft=-1*D-I.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})})(Mh)),Mh.exports}var Lr,sS;function wK(){if(sS)return Lr;sS=1;var t=Lr&&Lr.__extends||(function(){var f=function(m,p){return f=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])},f(m,p)};return function(m,p){f(m,p);function g(){this.constructor=m}m.prototype=p===null?Object.create(p):(g.prototype=p.prototype,new g)}})(),n=Lr&&Lr.__assign||function(){return n=Object.assign||function(f){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)&&(f[b]=m[b])}return f},n.apply(this,arguments)},r=Lr&&Lr.__spreadArrays||function(){for(var f=0,m=0,p=arguments.length;m<p;m++)f+=arguments[m].length;for(var g=Array(f),b=0,m=0;m<p;m++)for(var j=arguments[m],v=0,x=j.length;v<x;v++,b++)g[b]=j[v];return g},i=Lr&&Lr.__importDefault||function(f){return f&&f.__esModule?f:{default:f}},s=i(wu()),a=i(Z0()),o=i(yK()),c=i(jK()),d=(function(f){t(m,f);function m(p){var g=f.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,v,x,k){var w,N,A,S;j==="text-change"?(N=(w=g).onEditorChangeText)===null||N===void 0||N.call(w,g.editor.root.innerHTML,v,k,g.unprivilegedEditor):j==="selection-change"&&((S=(A=g).onEditorChangeSelection)===null||S===void 0||S.call(A,v,k,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 v=this.getEditorContents(),x=(j=p.value,j??"");this.isEqualValue(x,v)||this.setEditorContents(this.editor,x)}return p.readOnly!==this.props.readOnly&&this.setEditorReadOnly(this.editor,p.readOnly),r(this.cleanProps,this.dirtyProps).some(function(k){return!o.default(p[k],b.props[k])})},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(),v=this.editor.getSelection();this.regenerationSnapshot={delta:j,selection:v},this.setState({generation:this.state.generation+1}),this.destroyEditor()}if(this.state.generation!==g.generation){var x=this.regenerationSnapshot,j=x.delta,k=x.selection;delete this.regenerationSnapshot,this.instantiateEditor();var w=this.editor;w.setContents(j),h(function(){return b.setEditorSelection(w,k)})}},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),h(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,v=this.state.generation,x={key:v,ref:function(k){p.editingArea=k}};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 v,x;if(this.editor){var k=this.isDelta(this.value)?j.getContents():j.getHTML();k!==this.getEditorContents()&&(this.lastDeltaChangeSet=g,this.value=k,(x=(v=this.props).onChange)===null||x===void 0||x.call(v,p,g,b,j))}},m.prototype.onEditorChangeSelection=function(p,g,b){var j,v,x,k,w,N;if(this.editor){var A=this.getEditorSelection(),S=!A&&p,E=A&&!p;o.default(p,A)||(this.selection=p,(v=(j=this.props).onChangeSelection)===null||v===void 0||v.call(j,p,g,b),S?(k=(x=this.props).onFocus)===null||k===void 0||k.call(x,p,g,b):E&&((N=(w=this.props).onBlur)===null||N===void 0||N.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 h(f){Promise.resolve().then(f)}return Lr=d,Lr}var kK=wK();const zf=_i(kK);function es({value:t,onChange:n,placeholder:r}){const[i,s]=Ot.useState(!1),[a,o]=Ot.useState(!1),c=Ot.useRef(null),d=Ot.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 ce.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)}}}},[]),h=Ot.useMemo(()=>({toolbar:{container:[[{header:[1,2,!1]}],["bold","italic","underline"],[{list:"ordered"},{list:"bullet"}],["link","image"],["clean"]],handlers:{image:d}}}),[d]),f=["header","bold","italic","underline","strike","list","bullet","color","background","link","image"];return e.jsxs("div",{className:"relative",children:[e.jsx("div",{className:"mb-2 flex justify-end",children:e.jsx(ae,{type:"button",variant:"outline",size:"sm",onClick:()=>o(!a),children:a?"📝 Rich Editor":"💻 Raw HTML"})}),a?e.jsx("textarea",{value:t||"",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"}}):e.jsxs(e.Fragment,{children:[e.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;
            }
          `}),e.jsx(zf,{ref:c,theme:"snow",value:t||"",onChange:n,modules:h,formats:f,placeholder:r,className:"bg-white rounded-lg"}),i&&e.jsx("div",{className:"absolute inset-0 bg-white/80 flex items-center justify-center rounded-lg z-10",children:e.jsxs("div",{className:"flex items-center gap-2 text-blue-600",children:[e.jsxs("svg",{className:"animate-spin w-5 h-5",viewBox:"0 0 24 24",children:[e.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4",fill:"none"}),e.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4z"})]}),"Afbeelding uploaden..."]})})]})]})}function ta({value:t,onChange:n,label:r,description:i,recommendedSize:s}){const[a,o]=R.useState(!1),[c,d]=R.useState(!1),h=async f=>{const m=f.target.files[0];if(m){o(!0);try{const{file_url:p}=await ce.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 e.jsxs("div",{children:[e.jsxs("div",{className:"mb-2",children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700",children:r}),s&&e.jsxs("span",{className:"text-xs text-gray-500 mt-1 block",children:["Aanbevolen: ",s]})]}),t?e.jsxs("div",{className:"relative",children:[e.jsx("img",{src:t,alt:"Preview",className:"w-full h-48 object-cover rounded-lg border-2 border-gray-200"}),e.jsx(ae,{type:"button",size:"sm",variant:"ghost",onClick:()=>n(""),className:"absolute top-2 right-2 bg-white/90 hover:bg-white",children:e.jsx(Ht,{className:"w-4 h-4"})})]}):e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("input",{type:"file",accept:"image/*",onChange:h,disabled:a,className:"hidden",id:`file-upload-${r}`}),e.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?e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"w-4 h-4 border-2 border-blue-600 border-t-transparent rounded-full animate-spin"}),"Uploaden..."]}):e.jsxs(e.Fragment,{children:[e.jsx(R4,{className:"w-4 h-4"}),"Upload"]})}),e.jsx("span",{className:"text-sm text-gray-500",children:"of"}),e.jsx(me,{value:t,onChange:f=>n(f.target.value),placeholder:"Plak afbeelding URL",className:"flex-1"})]})]})}function NK({title:t,content:n,metaDescription:r,metaKeywords:i,slug:s}){const a=[];let o=0;t&&t.length>=50&&t.length<=60?(a.push({label:"Titel lengte optimaal",status:"good"}),o+=20):t&&t.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(f=>f.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",h=()=>o>=80?"bg-green-50 border-green-200":o>=60?"bg-yellow-50 border-yellow-200":"bg-red-50 border-red-200";return e.jsxs("div",{className:`rounded-xl p-6 border-2 ${h()}`,children:[e.jsxs("div",{className:"flex items-center justify-between mb-4",children:[e.jsx("h3",{className:"text-lg font-bold text-gray-900",children:"SEO Score"}),e.jsxs("div",{className:`text-4xl font-bold ${d()}`,children:[o,"/100"]})]}),e.jsx("div",{className:"space-y-2",children:a.map((f,m)=>e.jsxs("div",{className:"flex items-center gap-2",children:[f.status==="good"&&e.jsx(gt,{className:"w-5 h-5 text-green-600"}),f.status==="warning"&&e.jsx(fi,{className:"w-5 h-5 text-yellow-600"}),f.status==="error"&&e.jsx(Xc,{className:"w-5 h-5 text-red-600"}),e.jsx("span",{className:"text-sm text-gray-700",children:f.label})]},m))}),e.jsx("div",{className:"mt-4 pt-4 border-t border-gray-200",children:e.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 _K(){const[t,n]=R.useState(null),[r,i]=R.useState(!1),[s,a]=R.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=v=>{a({...s,title:v,slug:v.toLowerCase().replace(/[^a-z0-9\s-]/g,"").replace(/\s+/g,"-").replace(/-+/g,"-")})},c=Xt(),{data:d=[],isLoading:h}=Fe({queryKey:["blog"],queryFn:()=>ce.entities.BlogPost.list("-created_date")}),f=Le({mutationFn:v=>ce.entities.BlogPost.create(v),onSuccess:()=>{c.invalidateQueries({queryKey:["blog"]}),g()}}),m=Le({mutationFn:({id:v,data:x})=>ce.entities.BlogPost.update(v,x),onSuccess:()=>{c.invalidateQueries({queryKey:["blog"]}),g()}}),p=Le({mutationFn:v=>ce.entities.BlogPost.delete(v),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=v=>{n(v),a(v)},j=v=>{v.preventDefault();const x={...s};x.published&&!x.published_date&&(x.published_date=new Date().toISOString().split("T")[0]),t?m.mutate({id:t.id,data:x}):f.mutate(x)};return t!==null?e.jsx("div",{className:"pt-20 min-h-screen bg-gray-50",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-12",children:[e.jsxs("div",{className:"mb-6 flex items-center justify-between",children:[e.jsxs(ae,{variant:"outline",onClick:g,className:"gap-2",children:[e.jsx(ht,{className:"w-4 h-4"}),"Terug naar overzicht"]}),e.jsx("div",{className:"flex gap-2",children:e.jsx(ae,{variant:r?"default":"outline",onClick:()=>i(!r),children:r?"Bewerken":"Preview"})})]}),r?e.jsx("div",{className:"bg-white rounded-2xl p-8 border border-gray-200",children:e.jsxs("div",{className:"max-w-3xl mx-auto",children:[s.image_url&&e.jsx("img",{src:s.image_url,alt:s.title,className:"w-full h-96 object-cover rounded-xl mb-8"}),e.jsxs("div",{className:"flex items-center gap-4 mb-6 text-sm text-gray-600",children:[e.jsx("span",{className:"px-3 py-1 bg-orange-100 text-orange-800 rounded-full",children:s.category}),e.jsx("span",{children:s.author}),e.jsx("span",{children:"•"}),e.jsx("span",{children:s.read_time}),s.published_date&&e.jsxs(e.Fragment,{children:[e.jsx("span",{children:"•"}),e.jsx("span",{children:new Date(s.published_date).toLocaleDateString("nl-NL")})]})]}),e.jsx("h1",{className:"text-5xl font-bold text-gray-900 mb-6",children:s.title||"Titel van het artikel"}),e.jsx("p",{className:"text-xl text-gray-600 mb-8",children:s.excerpt||"Samenvatting van het artikel..."}),e.jsx("div",{className:"prose prose-lg max-w-none",dangerouslySetInnerHTML:{__html:s.content||"<p>Je content verschijnt hier...</p>"}})]})}):e.jsxs("div",{className:"bg-white rounded-2xl p-8 border border-gray-200",children:[e.jsx("h2",{className:"text-3xl font-bold text-gray-900 mb-8",children:t!=null&&t.id?"Blog Post Bewerken":"Nieuwe Blog Post"}),e.jsxs("form",{onSubmit:j,className:"space-y-6",children:[e.jsxs("div",{className:"grid md:grid-cols-2 gap-6",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Titel *"}),e.jsx(me,{required:!0,value:s.title,onChange:v=>o(v.target.value),placeholder:"De toekomst van AI"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Slug (URL) *"}),e.jsx(me,{required:!0,value:s.slug,onChange:v=>a({...s,slug:v.target.value}),placeholder:"de-toekomst-van-ai"}),e.jsx("p",{className:"text-xs text-gray-500 mt-1",children:"Slug wordt automatisch gegenereerd o.b.v. titel"})]})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Samenvatting *"}),e.jsx(me,{required:!0,value:s.excerpt,onChange:v=>a({...s,excerpt:v.target.value}),placeholder:"Een korte samenvatting van het artikel..."})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Content *"}),e.jsx("p",{className:"text-xs text-gray-500 mb-2",children:"Volledige inhoud van het artikel"}),e.jsx(es,{value:s.content,onChange:v=>a({...s,content:v}),placeholder:"Schrijf je blog artikel... Gebruik de toolbar voor opmaak, voeg afbeeldingen toe, etc."})]}),e.jsxs("div",{className:"grid md:grid-cols-3 gap-6",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Categorie *"}),e.jsxs(Ji,{value:s.category,onValueChange:v=>a({...s,category:v}),children:[e.jsx(wi,{children:e.jsx(Zi,{})}),e.jsxs(ki,{children:[e.jsx(St,{value:"AI",children:"AI"}),e.jsx(St,{value:"Technologie",children:"Technologie"}),e.jsx(St,{value:"Training",children:"Training"}),e.jsx(St,{value:"Case Study",children:"Case Study"}),e.jsx(St,{value:"Nieuws",children:"Nieuws"})]})]})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Auteur"}),e.jsx(me,{value:s.author,onChange:v=>a({...s,author:v.target.value}),placeholder:"48-7 Team"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Leestijd"}),e.jsx(me,{value:s.read_time,onChange:v=>a({...s,read_time:v.target.value}),placeholder:"5 min"})]})]}),e.jsx(ta,{value:s.image_url,onChange:v=>a({...s,image_url:v}),label:"Featured Image",recommendedSize:"1200x630px"}),e.jsxs("div",{className:"flex items-center gap-6",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("input",{type:"checkbox",id:"published",checked:s.published,onChange:v=>a({...s,published:v.target.checked}),className:"w-4 h-4"}),e.jsx("label",{htmlFor:"published",className:"text-sm font-medium text-gray-700",children:"Publiceren"})]}),s.published&&e.jsx("div",{children:e.jsx(me,{type:"date",value:s.published_date,onChange:v=>a({...s,published_date:v.target.value}),placeholder:"Publicatiedatum"})})]}),e.jsxs("div",{className:"border-t pt-6",children:[e.jsx("h3",{className:"text-lg font-bold text-gray-900 mb-4",children:"SEO Instellingen"}),e.jsxs("div",{className:"grid md:grid-cols-2 gap-6",children:[e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Meta Description (120-160 karakters)"}),e.jsx("textarea",{value:s.meta_description||"",onChange:v=>a({...s,meta_description:v.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"}),e.jsxs("p",{className:"text-xs text-gray-500 mt-1",children:[(s.meta_description||"").length,"/160 karakters"]})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Meta Keywords (komma gescheiden)"}),e.jsx(me,{value:s.meta_keywords||"",onChange:v=>a({...s,meta_keywords:v.target.value}),placeholder:"AI, machine learning, automatisering"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Canonical URL (optioneel)"}),e.jsx(me,{value:s.canonical_url||"",onChange:v=>a({...s,canonical_url:v.target.value}),placeholder:"https://48-7.nl/blog/origineel-artikel"}),e.jsx("p",{className:"text-xs text-gray-500 mt-1",children:"Gebruik dit alleen bij duplicate content"})]})]}),e.jsx("div",{children:e.jsx(NK,{title:s.title,content:s.content,metaDescription:s.meta_description,metaKeywords:s.meta_keywords,slug:s.slug})})]})]}),e.jsxs("div",{className:"flex gap-4 pt-6",children:[e.jsxs(ae,{type:"submit",className:"flex-1 gap-2",children:[e.jsx(Sn,{className:"w-4 h-4"}),t?"Bijwerken":"Aanmaken"]}),e.jsx(ae,{type:"button",variant:"outline",onClick:g,children:"Annuleren"})]})]})]})]})}):e.jsx("div",{className:"pt-20 min-h-screen bg-gray-50",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-12",children:[e.jsxs("div",{className:"flex items-center justify-between mb-8",children:[e.jsxs("div",{children:[e.jsxs(de,{to:se("AdminDashboard"),className:"text-blue-600 hover:text-blue-700 mb-2 inline-flex items-center gap-1",children:[e.jsx(ht,{className:"w-4 h-4"}),"Terug naar dashboard"]}),e.jsx("h1",{className:"text-4xl font-bold text-gray-900",children:"Blog"})]}),e.jsxs(ae,{onClick:()=>n({}),children:[e.jsx(Pt,{className:"w-5 h-5 mr-2"}),"Nieuw Blog Post"]})]}),h?e.jsx("div",{className:"text-center py-12",children:e.jsx("div",{className:"inline-block w-8 h-8 border-4 border-blue-600 border-t-transparent rounded-full animate-spin"})}):e.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-6",children:d.map(v=>e.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:[e.jsxs("div",{className:"flex items-start justify-between mb-4",children:[e.jsxs("div",{children:[e.jsx("h3",{className:"font-bold text-lg text-gray-900 mb-1",children:v.title}),e.jsx("p",{className:"text-sm text-gray-600 line-clamp-2",children:v.excerpt}),e.jsxs("div",{className:"flex gap-2 mt-2",children:[e.jsx("span",{className:"inline-block px-2 py-1 bg-orange-100 text-orange-800 text-xs rounded",children:v.category}),e.jsx("span",{className:"inline-block px-2 py-1 bg-gray-100 text-gray-800 text-xs rounded",children:v.read_time})]})]}),v.published?e.jsx("span",{className:"px-2 py-1 bg-green-100 text-green-800 text-xs rounded",children:"Live"}):e.jsx("span",{className:"px-2 py-1 bg-gray-100 text-gray-800 text-xs rounded",children:"Concept"})]}),e.jsxs("div",{className:"flex gap-2 mt-4",children:[e.jsxs(ae,{size:"sm",variant:"outline",onClick:()=>b(v),className:"flex-1",children:[e.jsx(Pn,{className:"w-4 h-4 mr-1"}),"Bewerk"]}),e.jsx(ae,{size:"sm",variant:"ghost",onClick:()=>{confirm("Weet je zeker dat je dit artikel wilt verwijderen?")&&p.mutate(v.id)},children:e.jsx(wt,{className:"w-4 h-4"})})]})]},v.id))})]})})}function SK(){var v;const[t,n]=R.useState(null),[r,i]=R.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=Xt(),{data:a=[],isLoading:o}=Fe({queryKey:["cases"],queryFn:()=>ce.entities.CaseStudy.list("-created_date")}),c=Le({mutationFn:x=>ce.entities.CaseStudy.create(x),onSuccess:()=>{s.invalidateQueries({queryKey:["cases"]}),f()}}),d=Le({mutationFn:({id:x,data:k})=>ce.entities.CaseStudy.update(x,k),onSuccess:()=>{s.invalidateQueries({queryKey:["cases"]}),f()}}),h=Le({mutationFn:x=>ce.entities.CaseStudy.delete(x),onSuccess:()=>{s.invalidateQueries({queryKey:["cases"]})}}),f=()=>{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(),t?d.mutate({id:t.id,data:r}):c.mutate(r)},g=()=>{i({...r,results:[...r.results,{value:"",label:""}]})},b=(x,k,w)=>{const N=[...r.results];N[x][k]=w,i({...r,results:N})},j=x=>{i({...r,results:r.results.filter((k,w)=>w!==x)})};return t!==null?e.jsx("div",{className:"pt-20 min-h-screen bg-gray-50",children:e.jsxs("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 py-12",children:[e.jsx("div",{className:"mb-6",children:e.jsxs(ae,{variant:"outline",onClick:f,className:"gap-2",children:[e.jsx(ht,{className:"w-4 h-4"}),"Terug naar overzicht"]})}),e.jsxs("div",{className:"bg-white rounded-2xl p-8 border border-gray-200",children:[e.jsx("h2",{className:"text-3xl font-bold text-gray-900 mb-8",children:t?"Case Bewerken":"Nieuwe Case"}),e.jsxs("form",{onSubmit:p,className:"space-y-6",children:[e.jsxs("div",{className:"grid md:grid-cols-2 gap-6",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Klant Naam *"}),e.jsx(me,{required:!0,value:r.client_name,onChange:x=>i({...r,client_name:x.target.value}),placeholder:"Acme Corp"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Slug (URL) *"}),e.jsx(me,{required:!0,value:r.slug,onChange:x=>i({...r,slug:x.target.value}),placeholder:"acme-corp-ai-transformation"})]})]}),e.jsx(ta,{value:r.featured_image_url,onChange:x=>i({...r,featured_image_url:x}),label:"Featured Afbeelding",recommendedSize:"1200x800px"}),e.jsxs("div",{className:"grid md:grid-cols-2 gap-6",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Branche *"}),e.jsx(me,{required:!0,value:r.industry,onChange:x=>i({...r,industry:x.target.value}),placeholder:"Retail, Healthcare, etc."})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Case Type *"}),e.jsxs(Ji,{value:r.case_type,onValueChange:x=>i({...r,case_type:x}),children:[e.jsx(wi,{children:e.jsx(Zi,{})}),e.jsxs(ki,{children:[e.jsx(St,{value:"consultancy",children:"Consultancy"}),e.jsx(St,{value:"training",children:"Training"}),e.jsx(St,{value:"development",children:"Development"})]})]})]})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Tags (komma gescheiden)"}),e.jsx(me,{value:((v=r.tags)==null?void 0:v.join(", "))||"",onChange:x=>i({...r,tags:x.target.value.split(",").map(k=>k.trim()).filter(Boolean)}),placeholder:"AI, Automatisering, CRM"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Challenge *"}),e.jsx(es,{value:r.challenge,onChange:x=>i({...r,challenge:x}),placeholder:"Beschrijf de uitdaging van de klant..."})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Solution *"}),e.jsx(es,{value:r.solution,onChange:x=>i({...r,solution:x}),placeholder:"Beschrijf de oplossing..."})]}),e.jsxs("div",{children:[e.jsxs("div",{className:"flex items-center justify-between mb-4",children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700",children:"Resultaten (3 blokjes)"}),e.jsxs(ae,{type:"button",onClick:g,size:"sm",variant:"outline",children:[e.jsx(Pt,{className:"w-4 h-4 mr-1"})," Resultaat"]})]}),e.jsx("div",{className:"space-y-4",children:r.results.map((x,k)=>e.jsxs("div",{className:"flex gap-4 items-start p-4 bg-gray-50 rounded-lg",children:[e.jsxs("div",{className:"flex-1 grid grid-cols-2 gap-4",children:[e.jsx(me,{placeholder:"Waarde (bijv. '5 AI use cases')",value:x.value,onChange:w=>b(k,"value",w.target.value)}),e.jsx(me,{placeholder:"Label (bijv. 'geïdentificeerd')",value:x.label,onChange:w=>b(k,"label",w.target.value)})]}),e.jsx(ae,{type:"button",variant:"ghost",size:"sm",onClick:()=>j(k),children:e.jsx(Ht,{className:"w-4 h-4"})})]},k))})]}),e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Quote"}),e.jsx(me,{value:r.quote,onChange:x=>i({...r,quote:x.target.value}),placeholder:"De quote van de klant..."})]}),e.jsxs("div",{className:"grid md:grid-cols-2 gap-4",children:[e.jsx(me,{placeholder:"Naam auteur",value:r.quote_author,onChange:x=>i({...r,quote_author:x.target.value})}),e.jsx(me,{placeholder:"Functie",value:r.quote_role,onChange:x=>i({...r,quote_role:x.target.value})})]})]}),e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("input",{type:"checkbox",id:"published",checked:r.published,onChange:x=>i({...r,published:x.target.checked}),className:"w-4 h-4"}),e.jsx("label",{htmlFor:"published",className:"text-sm font-medium text-gray-700",children:"Publiceren"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Titel *"}),e.jsx(me,{required:!0,value:r.homepage_usp||"",onChange:x=>i({...r,homepage_usp:x.target.value}),placeholder:"+85% snellere afhandeling"}),e.jsx("p",{className:"text-sm text-gray-500 mt-1",children:"Dit wordt getoond met een groen pijltje omhoog"})]}),e.jsxs("div",{className:"border-t pt-6 space-y-4",children:[e.jsx("h3",{className:"text-lg font-bold text-gray-900",children:"Homepage weergave"}),e.jsxs("div",{className:"flex items-center gap-3",children:[e.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"}),e.jsx("label",{htmlFor:"featured_on_homepage",className:"text-sm font-medium text-gray-700",children:"Toon op homepage"})]}),r.featured_on_homepage&&e.jsxs(e.Fragment,{children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Homepage tekst (korte beschrijving) *"}),e.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"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Volgorde op homepage"}),e.jsx(me,{type:"number",value:r.sort_order,onChange:x=>i({...r,sort_order:parseInt(x.target.value)||0})})]})]})]}),e.jsxs("div",{className:"flex gap-4 pt-6",children:[e.jsxs(ae,{type:"submit",className:"flex-1 gap-2",children:[e.jsx(Sn,{className:"w-4 h-4"}),t?"Bijwerken":"Aanmaken"]}),e.jsx(ae,{type:"button",variant:"outline",onClick:f,children:"Annuleren"})]})]})]})]})}):e.jsx("div",{className:"pt-20 min-h-screen bg-gray-50",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-12",children:[e.jsxs("div",{className:"flex items-center justify-between mb-8",children:[e.jsxs("div",{children:[e.jsxs(de,{to:se("AdminDashboard"),className:"text-blue-600 hover:text-blue-700 mb-2 inline-flex items-center gap-1",children:[e.jsx(ht,{className:"w-4 h-4"}),"Terug naar dashboard"]}),e.jsx("h1",{className:"text-4xl font-bold text-gray-900",children:"Cases"})]}),e.jsxs(ae,{onClick:()=>n({}),children:[e.jsx(Pt,{className:"w-5 h-5 mr-2"}),"Nieuwe Case"]})]}),o?e.jsx("div",{className:"text-center py-12",children:e.jsx("div",{className:"inline-block w-8 h-8 border-4 border-blue-600 border-t-transparent rounded-full animate-spin"})}):e.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-6",children:a.map(x=>e.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:[e.jsxs("div",{className:"flex items-start justify-between mb-4",children:[e.jsxs("div",{children:[e.jsx("h3",{className:"font-bold text-lg text-gray-900 mb-1",children:x.client_name}),e.jsx("p",{className:"text-sm text-gray-600",children:x.industry}),e.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?e.jsx("span",{className:"px-2 py-1 bg-green-100 text-green-800 text-xs rounded",children:"Gepubliceerd"}):e.jsx("span",{className:"px-2 py-1 bg-gray-100 text-gray-800 text-xs rounded",children:"Concept"})]}),e.jsxs("div",{className:"flex gap-2 mt-4",children:[e.jsxs(ae,{size:"sm",variant:"outline",onClick:()=>m(x),className:"flex-1",children:[e.jsx(Pn,{className:"w-4 h-4 mr-1"}),"Bewerk"]}),e.jsx(ae,{size:"sm",variant:"ghost",onClick:()=>{confirm("Weet je zeker dat je deze case wilt verwijderen?")&&h.mutate(x.id)},children:e.jsx(wt,{className:"w-4 h-4"})})]})]},x.id))})]})})}var tv={exports:{}},nv,aS;function AK(){if(aS)return nv;aS=1;var t="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return nv=t,nv}var rv,oS;function CK(){if(oS)return rv;oS=1;var t=AK();function n(){}function r(){}return r.resetWarningCache=n,rv=function(){function i(o,c,d,h,f,m){if(m!==t){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},rv}var lS;function EK(){return lS||(lS=1,tv.exports=CK()()),tv.exports}var TK=EK();const Vt=_i(TK);var iv,cS;function OK(){if(cS)return iv;cS=1;function t(c){return c&&typeof c=="object"&&"default"in c?c.default:c}var n=wu(),r=t(n);function i(c,d,h){return d in c?Object.defineProperty(c,d,{value:h,enumerable:!0,configurable:!0,writable:!0}):c[d]=h,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,h){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 h<"u"&&typeof h!="function")throw new Error("Expected mapStateOnServer to either be undefined or a function.");function f(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})),v.canUseDOM?d(b):h&&(b=h(b))}var v=(function(x){s(k,x);function k(){return x.apply(this,arguments)||this}k.peek=function(){return b},k.rewind=function(){if(k.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=k.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)},k})(n.PureComponent);return i(v,"displayName","SideEffect("+f(p)+")"),i(v,"canUseDOM",a),v}}return iv=o,iv}var PK=OK();const DK=_i(PK);var sv,uS;function IK(){if(uS)return sv;uS=1;var t=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,h;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 f;if(n&&a instanceof Map&&o instanceof Map){if(a.size!==o.size)return!1;for(f=a.entries();!(d=f.next()).done;)if(!o.has(d.value[0]))return!1;for(f=a.entries();!(d=f.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(f=a.entries();!(d=f.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(h=Object.keys(a),c=h.length,c!==Object.keys(o).length)return!1;for(d=c;d--!==0;)if(!Object.prototype.hasOwnProperty.call(o,h[d]))return!1;if(t&&a instanceof Element)return!1;for(d=c;d--!==0;)if(!((h[d]==="_owner"||h[d]==="__v"||h[d]==="__o")&&a.$$typeof)&&!s(a[h[d]],o[h[d]]))return!1;return!0}return a!==a&&o!==o}return sv=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}},sv}var RK=IK();const FK=_i(RK);/*
object-assign
(c) Sindre Sorhus
@license MIT
*/var av,dS;function MK(){if(dS)return av;dS=1;var t=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(f){return o[f]});if(d.join("")!=="0123456789")return!1;var h={};return"abcdefghijklmnopqrst".split("").forEach(function(f){h[f]=f}),Object.keys(Object.assign({},h)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return av=s()?Object.assign:function(a,o){for(var c,d=i(a),h,f=1;f<arguments.length;f++){c=Object(arguments[f]);for(var m in c)n.call(c,m)&&(d[m]=c[m]);if(t){h=t(c);for(var p=0;p<h.length;p++)r.call(c,h[p])&&(d[h[p]]=c[h[p]])}}return d},av}var LK=MK();const BK=_i(LK);var qa={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(t){return st[t]});var Ut={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"},rf={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},pu={DEFAULT_TITLE:"defaultTitle",DEFER:"defer",ENCODE_SPECIAL_CHARACTERS:"encodeSpecialCharacters",ON_CHANGE_CLIENT_STATE:"onChangeClientState",TITLE_TEMPLATE:"titleTemplate"},zK=Object.keys(rf).reduce(function(t,n){return t[rf[n]]=n,t},{}),qK=[st.NOSCRIPT,st.SCRIPT,st.STYLE],$r="data-react-helmet",VK=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},UK=function(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")},$K=(function(){function t(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&&t(n.prototype,r),i&&t(n,i),n}})(),Yn=Object.assign||function(t){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},HK=function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof n);t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(t,n):t.__proto__=n)},hS=function(t,n){var r={};for(var i in t)n.indexOf(i)>=0||Object.prototype.hasOwnProperty.call(t,i)&&(r[i]=t[i]);return r},WK=function(t,n){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n&&(typeof n=="object"||typeof n=="function")?n:t},O0=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;")},KK=function(n){var r=Qo(n,st.TITLE),i=Qo(n,pu.TITLE_TEMPLATE);if(i&&r)return i.replace(/%s/g,function(){return Array.isArray(r)?r.join(""):r});var s=Qo(n,pu.DEFAULT_TITLE);return r||s||void 0},GK=function(n){return Qo(n,pu.ON_CHANGE_CLIENT_STATE)||function(){}},ov=function(n,r){return r.filter(function(i){return typeof i[n]<"u"}).map(function(i){return i[n]}).reduce(function(i,s){return Yn({},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},[])},kc=function(n,r,i){var s={};return i.filter(function(a){return Array.isArray(a[n])?!0:(typeof a[n]<"u"&&ZK("Helmet: "+n+' should be of type "Array". Instead found type "'+VK(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 v=b[j],x=v.toLowerCase();r.indexOf(x)!==-1&&!(g===Ut.REL&&p[g].toLowerCase()==="canonical")&&!(x===Ut.REL&&p[x].toLowerCase()==="stylesheet")&&(g=x),r.indexOf(v)!==-1&&(v===Ut.INNER_HTML||v===Ut.CSS_TEXT||v===Ut.ITEM_PROP)&&(g=v)}if(!g||!p[g])return!1;var k=p[g].toLowerCase();return s[g]||(s[g]={}),c[g]||(c[g]={}),s[g][k]?!1:(c[g][k]=!0,!0)}).reverse().forEach(function(p){return a.push(p)});for(var d=Object.keys(c),h=0;h<d.length;h++){var f=d[h],m=BK({},s[f],c[f]);s[f]=m}return a},[]).reverse()},Qo=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},YK=function(n){return{baseTag:QK([Ut.HREF,Ut.TARGET],n),bodyAttributes:ov(qa.BODY,n),defer:Qo(n,pu.DEFER),encode:Qo(n,pu.ENCODE_SPECIAL_CHARACTERS),htmlAttributes:ov(qa.HTML,n),linkTags:kc(st.LINK,[Ut.REL,Ut.HREF],n),metaTags:kc(st.META,[Ut.NAME,Ut.CHARSET,Ut.HTTPEQUIV,Ut.PROPERTY,Ut.ITEM_PROP],n),noscriptTags:kc(st.NOSCRIPT,[Ut.INNER_HTML],n),onChangeClientState:GK(n),scriptTags:kc(st.SCRIPT,[Ut.SRC,Ut.INNER_HTML],n),styleTags:kc(st.STYLE,[Ut.CSS_TEXT],n),title:KK(n),titleAttributes:ov(qa.TITLE,n)}},P0=(function(){var t=Date.now();return function(n){var r=Date.now();r-t>16?(t=r,n(r)):setTimeout(function(){P0(n)},0)}})(),fS=function(n){return clearTimeout(n)},XK=typeof window<"u"?window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||P0:global.requestAnimationFrame||P0,JK=typeof window<"u"?window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||fS:global.cancelAnimationFrame||fS,ZK=function(n){return console&&typeof console.warn=="function"&&console.warn(n)},Nc=null,eG=function(n){Nc&&JK(Nc),n.defer?Nc=XK(function(){mS(n,function(){Nc=null})}):(mS(n),Nc=null)},mS=function(n,r){var i=n.baseTag,s=n.bodyAttributes,a=n.htmlAttributes,o=n.linkTags,c=n.metaTags,d=n.noscriptTags,h=n.onChangeClientState,f=n.scriptTags,m=n.styleTags,p=n.title,g=n.titleAttributes;D0(st.BODY,s),D0(st.HTML,a),tG(p,g);var b={baseTag:Io(st.BASE,i),linkTags:Io(st.LINK,o),metaTags:Io(st.META,c),noscriptTags:Io(st.NOSCRIPT,d),scriptTags:Io(st.SCRIPT,f),styleTags:Io(st.STYLE,m)},j={},v={};Object.keys(b).forEach(function(x){var k=b[x],w=k.newTags,N=k.oldTags;w.length&&(j[x]=w),N.length&&(v[x]=b[x].oldTags)}),r&&r(),h(n,j,v)},j5=function(n){return Array.isArray(n)?n.join(""):n},tG=function(n,r){typeof n<"u"&&document.title!==n&&(document.title=j5(n)),D0(st.TITLE,r)},D0=function(n,r){var i=document.getElementsByTagName(n)[0];if(i){for(var s=i.getAttribute($r),a=s?s.split(","):[],o=[].concat(a),c=Object.keys(r),d=0;d<c.length;d++){var h=c[d],f=r[h]||"";i.getAttribute(h)!==f&&i.setAttribute(h,f),a.indexOf(h)===-1&&a.push(h);var m=o.indexOf(h);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($r):i.getAttribute($r)!==c.join(",")&&i.setAttribute($r,c.join(","))}},Io=function(n,r){var i=document.head||document.querySelector(st.HEAD),s=i.querySelectorAll(n+"["+$r+"]"),a=Array.prototype.slice.call(s),o=[],c=void 0;return r&&r.length&&r.forEach(function(d){var h=document.createElement(n);for(var f in d)if(d.hasOwnProperty(f))if(f===Ut.INNER_HTML)h.innerHTML=d.innerHTML;else if(f===Ut.CSS_TEXT)h.styleSheet?h.styleSheet.cssText=d.cssText:h.appendChild(document.createTextNode(d.cssText));else{var m=typeof d[f]>"u"?"":d[f];h.setAttribute(f,m)}h.setAttribute($r,"true"),a.some(function(p,g){return c=g,h.isEqualNode(p)})?a.splice(c,1):o.push(h)}),a.forEach(function(d){return d.parentNode.removeChild(d)}),o.forEach(function(d){return i.appendChild(d)}),{oldTags:a,newTags:o}},w5=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},"")},nG=function(n,r,i,s){var a=w5(i),o=j5(r);return a?"<"+n+" "+$r+'="true" '+a+">"+O0(o,s)+"</"+n+">":"<"+n+" "+$r+'="true">'+O0(o,s)+"</"+n+">"},rG=function(n,r,i){return r.reduce(function(s,a){var o=Object.keys(a).filter(function(h){return!(h===Ut.INNER_HTML||h===Ut.CSS_TEXT)}).reduce(function(h,f){var m=typeof a[f]>"u"?f:f+'="'+O0(a[f],i)+'"';return h?h+" "+m:m},""),c=a.innerHTML||a.cssText||"",d=qK.indexOf(n)===-1;return s+"<"+n+" "+$r+'="true" '+o+(d?"/>":">"+c+"</"+n+">")},"")},k5=function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Object.keys(n).reduce(function(i,s){return i[rf[s]||s]=n[s],i},r)},iG=function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Object.keys(n).reduce(function(i,s){return i[zK[s]||s]=n[s],i},r)},sG=function(n,r,i){var s,a=(s={key:r},s[$r]=!0,s),o=k5(i,a);return[Ot.createElement(st.TITLE,o,r)]},aG=function(n,r){return r.map(function(i,s){var a,o=(a={key:s},a[$r]=!0,a);return Object.keys(i).forEach(function(c){var d=rf[c]||c;if(d===Ut.INNER_HTML||d===Ut.CSS_TEXT){var h=i.innerHTML||i.cssText;o.dangerouslySetInnerHTML={__html:h}}else o[d]=i[c]}),Ot.createElement(n,o)})},Fi=function(n,r,i){switch(n){case st.TITLE:return{toComponent:function(){return sG(n,r.title,r.titleAttributes)},toString:function(){return nG(n,r.title,r.titleAttributes,i)}};case qa.BODY:case qa.HTML:return{toComponent:function(){return k5(r)},toString:function(){return w5(r)}};default:return{toComponent:function(){return aG(n,r)},toString:function(){return rG(n,r,i)}}}},N5=function(n){var r=n.baseTag,i=n.bodyAttributes,s=n.encode,a=n.htmlAttributes,o=n.linkTags,c=n.metaTags,d=n.noscriptTags,h=n.scriptTags,f=n.styleTags,m=n.title,p=m===void 0?"":m,g=n.titleAttributes;return{base:Fi(st.BASE,r,s),bodyAttributes:Fi(qa.BODY,i,s),htmlAttributes:Fi(qa.HTML,a,s),link:Fi(st.LINK,o,s),meta:Fi(st.META,c,s),noscript:Fi(st.NOSCRIPT,d,s),script:Fi(st.SCRIPT,h,s),style:Fi(st.STYLE,f,s),title:Fi(st.TITLE,{title:p,titleAttributes:g},s)}},oG=function(n){var r,i;return i=r=(function(s){HK(a,s);function a(){return UK(this,a),WK(this,s.apply(this,arguments))}return a.prototype.shouldComponentUpdate=function(c){return!FK(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,h=c.child,f=c.arrayTypeChildren,m=c.newChildProps,p=c.nestedChildren;return Yn({},f,(d={},d[h.type]=[].concat(f[h.type]||[],[Yn({},m,this.mapNestedChildrenToProps(h,p))]),d))},a.prototype.mapObjectTypeChildren=function(c){var d,h,f=c.child,m=c.newProps,p=c.newChildProps,g=c.nestedChildren;switch(f.type){case st.TITLE:return Yn({},m,(d={},d[f.type]=g,d.titleAttributes=Yn({},p),d));case st.BODY:return Yn({},m,{bodyAttributes:Yn({},p)});case st.HTML:return Yn({},m,{htmlAttributes:Yn({},p)})}return Yn({},m,(h={},h[f.type]=Yn({},p),h))},a.prototype.mapArrayTypeChildrenToProps=function(c,d){var h=Yn({},d);return Object.keys(c).forEach(function(f){var m;h=Yn({},h,(m={},m[f]=c[f],m))}),h},a.prototype.warnOnInvalidChildren=function(c,d){return!0},a.prototype.mapChildrenToProps=function(c,d){var h=this,f={};return Ot.Children.forEach(c,function(m){if(!(!m||!m.props)){var p=m.props,g=p.children,b=hS(p,["children"]),j=iG(b);switch(h.warnOnInvalidChildren(m,g),m.type){case st.LINK:case st.META:case st.NOSCRIPT:case st.SCRIPT:case st.STYLE:f=h.flattenArrayTypeChildren({child:m,arrayTypeChildren:f,newChildProps:j,nestedChildren:g});break;default:d=h.mapObjectTypeChildren({child:m,newProps:d,newChildProps:j,nestedChildren:g});break}}}),d=this.mapArrayTypeChildrenToProps(f,d),d},a.prototype.render=function(){var c=this.props,d=c.children,h=hS(c,["children"]),f=Yn({},h);return d&&(f=this.mapChildrenToProps(d,f)),Ot.createElement(n,f)},$K(a,null,[{key:"canUseDOM",set:function(c){n.canUseDOM=c}}]),a})(Ot.Component),r.propTypes={base:Vt.object,bodyAttributes:Vt.object,children:Vt.oneOfType([Vt.arrayOf(Vt.node),Vt.node]),defaultTitle:Vt.string,defer:Vt.bool,encodeSpecialCharacters:Vt.bool,htmlAttributes:Vt.object,link:Vt.arrayOf(Vt.object),meta:Vt.arrayOf(Vt.object),noscript:Vt.arrayOf(Vt.object),onChangeClientState:Vt.func,script:Vt.arrayOf(Vt.object),style:Vt.arrayOf(Vt.object),title:Vt.string,titleAttributes:Vt.object,titleTemplate:Vt.string},r.defaultProps={defer:!0,encodeSpecialCharacters:!0},r.peek=n.peek,r.rewind=function(){var s=n.rewind();return s||(s=N5({baseTag:[],bodyAttributes:{},htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}})),s},i},lG=function(){return null},cG=DK(YK,eG,N5)(lG),xl=oG(cG);xl.renderStatic=xl.rewind;function uG(){const t=wl(),[n,r]=R.useState(!1),[i,s]=R.useState(!0);if(R.useEffect(()=>{(async()=>{try{const d=await ce.auth.me();if((d==null?void 0:d.role)!=="admin"){t(se("Home"));return}r(!0)}catch{t(se("Home"))}finally{s(!1)}})()},[t]),i)return e.jsx("div",{className:"pt-20 min-h-screen bg-gray-50 flex items-center justify-center",children:e.jsxs("div",{className:"text-center",children:[e.jsx(Vn,{className:"w-16 h-16 text-gray-400 mx-auto mb-4"}),e.jsx("p",{className:"text-gray-600",children:"Toegang controleren..."})]})});if(!n)return null;const a=[{title:"Cases",description:"Beheer klant case studies",icon:C1,link:se("AdminCases"),color:"from-blue-500 to-indigo-600"},{title:"Oplossingen",description:"Beheer AI oplossingen & producten",icon:Wi,link:se("AdminOplossingen"),color:"from-blue-600 to-cyan-600"},{title:"Vacatures",description:"Beheer open vacatures",icon:Xs,link:se("AdminVacatures"),color:"from-purple-500 to-pink-600"},{title:"Trainingen",description:"Beheer trainingsaanbod",icon:pr,link:se("AdminTrainingen"),color:"from-green-500 to-emerald-600"},{title:"Blog",description:"Beheer blog artikelen",icon:$t,link:se("AdminBlog"),color:"from-orange-500 to-red-600"},{title:"Nieuws",description:"Beheer dagelijks AI nieuws",icon:R8,link:se("AdminNieuws"),color:"from-cyan-500 to-blue-600"},{title:"Reviews",description:"Beheer klantreviews",icon:eu,link:se("AdminReviews"),color:"from-yellow-500 to-orange-600"},{title:"Homepage",description:"Beheer homepage secties",icon:Sv,link:se("AdminHome"),color:"from-teal-500 to-cyan-600"},{title:"Team",description:"Beheer teamleden",icon:_n,link:se("AdminTeam"),color:"from-indigo-500 to-purple-600"},{title:"Nieuwsbrief",description:"Beheer nieuwsbrief abonnees",icon:yi,link:se("AdminNewsletterSubscribers"),color:"from-pink-500 to-rose-600"},{title:"Discovery Formulieren",description:"Bekijk discovery sessie aanvragen",icon:$t,link:se("AdminDiscoveryForms"),color:"from-violet-500 to-purple-600"},{title:"EU AI Act Checker",description:"Bekijk EU AI Act analyses",icon:$t,link:se("AdminEuAiActSubmissions"),color:"from-blue-500 to-cyan-600"},{title:"AI Impact Scans",description:"Bekijk AI Impact Scan resultaten",icon:$t,link:se("AdminImpactScans"),color:"from-emerald-500 to-green-600"},{title:"AI Quiz Resultaten",description:"Bekijk AI Quiz resultaten",icon:$t,link:se("AdminAIQuizSubmissions"),color:"from-amber-500 to-yellow-600"}],o=[{title:"Pagina Builder",description:"Bouw en bewerk pagina's",icon:C1,link:se("AdminPageBuilder"),color:"from-indigo-500 to-purple-600"},{title:"Prompt Library",description:"Beheer AI prompts",icon:$t,link:se("AdminPrompts"),color:"from-purple-500 to-pink-600"},{title:"Email Templates",description:"Beheer email templates",icon:yi,link:se("AdminEmailTemplates"),color:"from-blue-500 to-cyan-600"},{title:"SEO Tools",description:"Sitemap, robots.txt & SEO",icon:Zc,link:se("AdminSEO"),color:"from-green-500 to-emerald-600"},{title:"Instellingen",description:"Categorieën & configuratie",icon:Zc,link:se("AdminSettings"),color:"from-gray-500 to-slate-600"},{title:"Test Scans",description:"Test formulieren met één klik",icon:cD,link:se("AdminTestScans"),color:"from-red-500 to-orange-600"}];return e.jsxs(e.Fragment,{children:[e.jsx(xl,{children:e.jsx("meta",{name:"robots",content:"noindex, nofollow"})}),e.jsx("div",{className:"pt-20 min-h-screen bg-gradient-to-b from-gray-50 to-white",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-12",children:[e.jsxs("div",{className:"mb-12 flex items-center justify-between",children:[e.jsxs("div",{children:[e.jsx("h1",{className:"text-4xl font-bold text-gray-900 mb-4",children:"Content Management"}),e.jsx("p",{className:"text-xl text-gray-600",children:"Beheer al je website content op één plek"})]}),e.jsxs(de,{to:se("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:[e.jsx(Va,{className:"w-5 h-5"}),"Handleiding"]})]}),e.jsx("h2",{className:"text-2xl font-bold text-gray-900 mb-6",children:"Content Beheer"}),e.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-6 mb-12",children:a.map((c,d)=>e.jsx(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:d*.1},children:e.jsxs(de,{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:[e.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:e.jsx(c.icon,{className:"w-8 h-8 text-white"})}),e.jsx("h3",{className:"text-2xl font-bold text-gray-900 mb-2",children:c.title}),e.jsx("p",{className:"text-gray-600 mb-4",children:c.description}),e.jsxs("div",{className:"flex items-center gap-2 text-gray-900 font-semibold group-hover:gap-3 transition-all",children:["Beheren",e.jsx($e,{className:"w-5 h-5"})]})]})},c.title))}),e.jsx("h2",{className:"text-2xl font-bold text-gray-900 mb-6",children:"Systeem Tools"}),e.jsx("div",{className:"grid md:grid-cols-2 gap-6 mb-12",children:o.map((c,d)=>e.jsx(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:(a.length+d)*.1},children:e.jsxs(de,{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:[e.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:e.jsx(c.icon,{className:"w-8 h-8 text-white"})}),e.jsx("h3",{className:"text-2xl font-bold text-gray-900 mb-2",children:c.title}),e.jsx("p",{className:"text-gray-600 mb-4",children:c.description}),e.jsxs("div",{className:"flex items-center gap-2 text-gray-900 font-semibold group-hover:gap-3 transition-all",children:["Openen",e.jsx($e,{className:"w-5 h-5"})]})]})},c.title))}),e.jsxs("div",{className:"mt-16 grid grid-cols-2 md:grid-cols-5 gap-6",children:[e.jsxs("div",{className:"bg-white rounded-xl p-6 border border-gray-100",children:[e.jsx("p",{className:"text-sm text-gray-600 mb-1",children:"Total Cases"}),e.jsx("p",{className:"text-3xl font-bold text-gray-900",children:"12"})]}),e.jsxs("div",{className:"bg-white rounded-xl p-6 border border-gray-100",children:[e.jsx("p",{className:"text-sm text-gray-600 mb-1",children:"Vacatures"}),e.jsx("p",{className:"text-3xl font-bold text-gray-900",children:"5"})]}),e.jsxs("div",{className:"bg-white rounded-xl p-6 border border-gray-100",children:[e.jsx("p",{className:"text-sm text-gray-600 mb-1",children:"Trainingen"}),e.jsx("p",{className:"text-3xl font-bold text-gray-900",children:"18"})]}),e.jsxs("div",{className:"bg-white rounded-xl p-6 border border-gray-100",children:[e.jsx("p",{className:"text-sm text-gray-600 mb-1",children:"Blog Posts"}),e.jsx("p",{className:"text-3xl font-bold text-gray-900",children:"24"})]}),e.jsxs("div",{className:"bg-white rounded-xl p-6 border border-gray-100",children:[e.jsx("p",{className:"text-sm text-gray-600 mb-1",children:"Nieuws Items"}),e.jsx("p",{className:"text-3xl font-bold text-gray-900",children:"156"})]})]})]})})]})}const pt=R.forwardRef(({className:t,...n},r)=>e.jsx("textarea",{className:Qt("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",t),ref:r,...n}));pt.displayName="Textarea";const dG={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"}},hG=(t,n,r)=>{let i;const s=dG[t];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},fG={full:"EEEE d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"dd-MM-y"},mG={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},pG={full:"{{date}} 'om' {{time}}",long:"{{date}} 'om' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},gG={date:Wo({formats:fG,defaultWidth:"full"}),time:Wo({formats:mG,defaultWidth:"full"}),dateTime:Wo({formats:pG,defaultWidth:"full"})},xG={lastWeek:"'afgelopen' eeee 'om' p",yesterday:"'gisteren om' p",today:"'vandaag om' p",tomorrow:"'morgen om' p",nextWeek:"eeee 'om' p",other:"P"},vG=(t,n,r,i)=>xG[t],yG={narrow:["v.C.","n.C."],abbreviated:["v.Chr.","n.Chr."],wide:["voor Christus","na Christus"]},bG={narrow:["1","2","3","4"],abbreviated:["K1","K2","K3","K4"],wide:["1e kwartaal","2e kwartaal","3e kwartaal","4e kwartaal"]},jG={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"]},wG={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"]},kG={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"}},NG=(t,n)=>Number(t)+"e",_G={ordinalNumber:NG,era:ai({values:yG,defaultWidth:"wide"}),quarter:ai({values:bG,defaultWidth:"wide",argumentCallback:t=>t-1}),month:ai({values:jG,defaultWidth:"wide"}),day:ai({values:wG,defaultWidth:"wide"}),dayPeriod:ai({values:kG,defaultWidth:"wide"})},SG=/^(\d+)e?/i,AG=/\d+/i,CG={narrow:/^([vn]\.? ?C\.?)/,abbreviated:/^([vn]\. ?Chr\.?)/,wide:/^((voor|na) Christus)/},EG={any:[/^v/,/^n/]},TG={narrow:/^[1234]/i,abbreviated:/^K[1234]/i,wide:/^[1234]e kwartaal/i},OG={any:[/1/i,/2/i,/3/i,/4/i]},PG={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},DG={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]},IG={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},RG={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]},FG={any:/^(am|pm|middernacht|het middaguur|'s (ochtends|middags|avonds|nachts))/i},MG={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}},LG={ordinalNumber:BE({matchPattern:SG,parsePattern:AG,valueCallback:t=>parseInt(t,10)}),era:oi({matchPatterns:CG,defaultMatchWidth:"wide",parsePatterns:EG,defaultParseWidth:"any"}),quarter:oi({matchPatterns:TG,defaultMatchWidth:"wide",parsePatterns:OG,defaultParseWidth:"any",valueCallback:t=>t+1}),month:oi({matchPatterns:PG,defaultMatchWidth:"wide",parsePatterns:DG,defaultParseWidth:"any"}),day:oi({matchPatterns:IG,defaultMatchWidth:"wide",parsePatterns:RG,defaultParseWidth:"any"}),dayPeriod:oi({matchPatterns:FG,defaultMatchWidth:"any",parsePatterns:MG,defaultParseWidth:"any"})},Ea={code:"nl",formatDistance:hG,formatLong:gG,formatRelative:vG,localize:_G,match:LG,options:{weekStartsOn:1,firstWeekContainsDate:4}};function BG(){var g,b,j,v;const[t,n]=R.useState(null),[r,i]=R.useState("all"),s=Xt(),{data:a}=Fe({queryKey:["current-user"],queryFn:()=>ce.auth.me()}),{data:o=[],isLoading:c}=Fe({queryKey:["discovery-submissions",r],queryFn:async()=>r==="all"?ce.entities.DiscoveryFormSubmission.list("-created_date"):ce.entities.DiscoveryFormSubmission.filter({status:r},"-created_date")}),d=Le({mutationFn:({id:x,status:k,notities:w})=>ce.entities.DiscoveryFormSubmission.update(x,{status:k,interne_notities:w}),onSuccess:()=>{s.invalidateQueries({queryKey:["discovery-submissions"]})}}),h=Le({mutationFn:x=>ce.entities.DiscoveryFormSubmission.delete(x),onSuccess:()=>{s.invalidateQueries({queryKey:["discovery-submissions"]}),n(null)}}),f=()=>{const x=["Datum","Bedrijf","Contactpersoon","Email","Telefoon","Sector","Medewerkers","Status","Urgentie","Budget"],k=o.map(S=>[_t(new Date(S.created_date),"dd-MM-yyyy HH:mm",{locale:Ea}),S.bedrijfsnaam||"",S.contactpersonen||"",S.email||"",S.telefoon||"",S.sector||"",S.aantal_medewerkers||"",S.status||"",S.urgentie||"",S.budget_range||""]),w=[x.join(","),...k.map(S=>S.map(E=>`"${E}"`).join(","))].join(`
`),N=new Blob([w],{type:"text/csv;charset=utf-8;"}),A=document.createElement("a");A.href=URL.createObjectURL(N),A.download=`discovery-scans-${_t(new Date,"yyyy-MM-dd")}.csv`,A.click()},m=x=>{var A,S,E,C;const k=`# Discovery Scan - ${x.bedrijfsnaam}

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

# Disallow admin pages
Disallow: /Admin*

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

# Crawl-delay
Crawl-delay: 1`;return e.jsx("div",{className:"pt-20 min-h-screen bg-gray-50",children:e.jsxs("div",{className:"max-w-5xl mx-auto px-4 sm:px-6 lg:px-8 py-12",children:[e.jsx("div",{className:"mb-6",children:e.jsxs(de,{to:se("AdminDashboard"),className:"text-blue-600 hover:text-blue-700 inline-flex items-center gap-1",children:[e.jsx(ht,{className:"w-4 h-4"}),"Terug naar dashboard"]})}),e.jsxs("div",{className:"mb-8",children:[e.jsx("h1",{className:"text-4xl font-bold text-gray-900 mb-2",children:"SEO Tools"}),e.jsx("p",{className:"text-lg text-gray-600",children:"Beheer robots.txt, sitemap en andere SEO instellingen"})]}),e.jsxs("div",{className:"grid md:grid-cols-2 gap-6 mb-8",children:[e.jsxs("div",{className:"bg-white rounded-2xl p-6 border border-gray-200",children:[e.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[e.jsx("div",{className:"w-12 h-12 bg-green-100 rounded-xl flex items-center justify-center",children:e.jsx(s8,{className:"w-6 h-6 text-green-600"})}),e.jsxs("div",{children:[e.jsx("h3",{className:"text-xl font-bold text-gray-900",children:"Sitemap.xml"}),e.jsx("p",{className:"text-sm text-gray-600",children:"XML sitemap voor zoekmachines"})]})]}),e.jsx("p",{className:"text-gray-700 mb-4",children:"De sitemap wordt automatisch gegenereerd op basis van je gepubliceerde content."}),e.jsxs("button",{onClick:async()=>{const d=await ce.functions.invoke("sitemap",{}),h=new Blob([d.data],{type:"application/xml"}),f=window.URL.createObjectURL(h);window.open(f,"_blank")},className:"inline-flex items-center gap-2 text-blue-600 hover:text-blue-700 font-medium",children:["Bekijk sitemap",e.jsx(Bs,{className:"w-4 h-4"})]})]}),e.jsxs("div",{className:"bg-white rounded-2xl p-6 border border-gray-200",children:[e.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[e.jsx("div",{className:"w-12 h-12 bg-purple-100 rounded-xl flex items-center justify-center",children:e.jsx(N4,{className:"w-6 h-6 text-purple-600"})}),e.jsxs("div",{children:[e.jsx("h3",{className:"text-xl font-bold text-gray-900",children:"LLM.txt"}),e.jsx("p",{className:"text-sm text-gray-600",children:"Content voor AI crawlers"})]})]}),e.jsx("p",{className:"text-gray-700 mb-4",children:"LLM.txt helpt AI systemen je site te begrijpen. Wordt automatisch gegenereerd."}),e.jsxs("button",{onClick:async()=>{const d=await ce.functions.invoke("llmtxt",{}),h=new Blob([d.data],{type:"text/plain"}),f=window.URL.createObjectURL(h);window.open(f,"_blank")},className:"inline-flex items-center gap-2 text-blue-600 hover:text-blue-700 font-medium",children:["Bekijk llm.txt",e.jsx(Bs,{className:"w-4 h-4"})]})]})]}),e.jsxs("div",{className:"bg-white rounded-2xl p-8 border border-gray-200",children:[e.jsxs("div",{className:"flex items-center gap-3 mb-6",children:[e.jsx("div",{className:"w-12 h-12 bg-blue-100 rounded-xl flex items-center justify-center",children:e.jsx($t,{className:"w-6 h-6 text-blue-600"})}),e.jsxs("div",{children:[e.jsx("h3",{className:"text-2xl font-bold text-gray-900",children:"Robots.txt"}),e.jsx("p",{className:"text-gray-600",children:"Configureer welke pagina's zoekmachines mogen crawlen"})]})]}),s?e.jsx("div",{className:"text-center py-8",children:e.jsx("div",{className:"inline-block w-8 h-8 border-4 border-blue-600 border-t-transparent rounded-full animate-spin"})}):e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"mb-4",children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Robots.txt Content"}),e.jsx(pt,{value:t,onChange:d=>n(d.target.value),placeholder:c,rows:15,className:"font-mono text-sm"}),e.jsx("p",{className:"text-xs text-gray-500 mt-2",children:"Let op: Gebruik correcte syntax. Verkeerde configuratie kan invloed hebben op je SEO."})]}),e.jsxs("div",{className:"flex gap-4",children:[e.jsxs(ae,{onClick:o,className:"gap-2",children:[e.jsx(Sn,{className:"w-4 h-4"}),"Opslaan"]}),e.jsx(ae,{variant:"outline",onClick:()=>n(c),children:"Reset naar default"}),e.jsxs("button",{onClick:async()=>{const d=await ce.functions.invoke("robotstxt",{}),h=new Blob([d.data],{type:"text/plain"}),f=window.URL.createObjectURL(h);window.open(f,"_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",e.jsx(Bs,{className:"w-4 h-4"})]})]})]})]}),e.jsxs("div",{className:"mt-8 bg-blue-50 border border-blue-200 rounded-2xl p-6",children:[e.jsx("h3",{className:"font-bold text-blue-900 mb-3",children:"📚 SEO Documentatie"}),e.jsxs("ul",{className:"text-blue-800 space-y-2 text-sm",children:[e.jsxs("li",{children:["• ",e.jsx("strong",{children:"Sitemap.xml:"})," Via backend function 'sitemap' - automatisch bijgewerkt"]}),e.jsxs("li",{children:["• ",e.jsx("strong",{children:"Robots.txt:"})," Via backend function 'robotstxt' - configureerbaar via deze pagina"]}),e.jsxs("li",{children:["• ",e.jsx("strong",{children:"LLM.txt:"})," Via backend function 'llmtxt' - geoptimaliseerd voor AI crawlers"]}),e.jsx("li",{children:"• Deze functions zijn toegankelijk via het Base44 function endpoint systeem"}),e.jsx("li",{children:"• SEO meta tags worden automatisch gegenereerd per pagina"}),e.jsx("li",{children:"• Canonical URLs voorkomen duplicate content issues"})]})]})]})})}var Vf="Switch",[vQ]=to(Vf),[yQ,bQ]=vQ(Vf),H5=R.forwardRef((t,n)=>{const{__scopeSwitch:r,name:i,checked:s,defaultChecked:a,required:o,disabled:c,value:d="on",onCheckedChange:h,form:f,...m}=t,[p,g]=R.useState(null),b=Yt(n,w=>g(w)),j=R.useRef(!1),v=p?f||!!p.closest("form"):!0,[x,k]=gl({prop:s,defaultProp:a??!1,onChange:h,caller:Vf});return e.jsxs(yQ,{scope:r,checked:x,disabled:c,children:[e.jsx(jt.button,{type:"button",role:"switch","aria-checked":x,"aria-required":o,"data-state":Q5(x),"data-disabled":c?"":void 0,disabled:c,value:d,...m,ref:b,onClick:bt(t.onClick,w=>{k(N=>!N),v&&(j.current=w.isPropagationStopped(),j.current||w.stopPropagation())})}),v&&e.jsx(G5,{control:p,bubbles:!j.current,name:i,value:d,checked:x,required:o,disabled:c,form:f,style:{transform:"translateX(-100%)"}})]})});H5.displayName=Vf;var W5="SwitchThumb",K5=R.forwardRef((t,n)=>{const{__scopeSwitch:r,...i}=t,s=bQ(W5,r);return e.jsx(jt.span,{"data-state":Q5(s.checked),"data-disabled":s.disabled?"":void 0,...i,ref:n})});K5.displayName=W5;var jQ="SwitchBubbleInput",G5=R.forwardRef(({__scopeSwitch:t,control:n,checked:r,bubbles:i=!0,...s},a)=>{const o=R.useRef(null),c=Yt(o,a),d=ob(r),h=ib(n);return R.useEffect(()=>{const f=o.current;if(!f)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(f,r),f.dispatchEvent(b)}},[d,r,i]),e.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:r,...s,tabIndex:-1,ref:c,style:{...s.style,...h,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});G5.displayName=jQ;function Q5(t){return t?"checked":"unchecked"}var Y5=H5,wQ=K5;const Kc=R.forwardRef(({className:t,...n},r)=>e.jsx(Y5,{className:Qt("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",t),...n,ref:r,children:e.jsx(wQ,{className:Qt("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")})}));Kc.displayName=Y5.displayName;function kQ(){const[t,n]=R.useState({type:"blog",name:"",slug:""}),[r,i]=R.useState(null),[s,a]=R.useState(""),[o,c]=R.useState({linkedin:"",instagram:"",twitter:"",youtube:""}),[d,h]=R.useState(!0),[f,m]=R.useState(!0),[p,g]=R.useState(!0),b=Xt(),{data:j=[],isLoading:v}=Fe({queryKey:["categories"],queryFn:()=>ce.entities.Category.list("sort_order")}),{data:x=[]}=Fe({queryKey:["site-settings"],queryFn:()=>ce.entities.SiteSettings.list()});Ot.useEffect(()=>{const q=x.find(V=>V.setting_key==="logo_url");q&&a(q.value);const U=x.find(V=>V.setting_key==="linkedin_url"),Q=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"),Y=x.find(V=>V.setting_key==="show_blog"),P=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:(Q==null?void 0:Q.value)||"",twitter:(H==null?void 0:H.value)||"",youtube:(K==null?void 0:K.value)||""}),h((Y==null?void 0:Y.value)!=="false"),m((P==null?void 0:P.value)!=="false"),g((T==null?void 0:T.value)!=="false")},[x]);const k=Le({mutationFn:q=>ce.entities.Category.create(q),onSuccess:()=>{b.invalidateQueries({queryKey:["categories"]}),n({type:"blog",name:"",slug:""})}});Le({mutationFn:({id:q,data:U})=>ce.entities.Category.update(q,U),onSuccess:()=>{b.invalidateQueries({queryKey:["categories"]}),i(null)}});const w=Le({mutationFn:q=>ce.entities.Category.delete(q),onSuccess:()=>{b.invalidateQueries({queryKey:["categories"]})}}),N=Le({mutationFn:async q=>{const U=x.find(Q=>Q.setting_key==="logo_url");return U?ce.entities.SiteSettings.update(U.id,{value:q}):ce.entities.SiteSettings.create({setting_key:"logo_url",value:q,description:"Website logo URL"})},onSuccess:()=>{b.invalidateQueries({queryKey:["site-settings"]}),alert("Logo succesvol opgeslagen!")}}),A=Le({mutationFn:async({key:q,value:U,description:Q})=>{const H=x.find(K=>K.setting_key===q);return H?ce.entities.SiteSettings.update(H.id,{value:String(U)}):ce.entities.SiteSettings.create({setting_key:q,value:String(U),description:Q})},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 q=>{h(q),await A.mutateAsync({key:"show_blog",value:q?"true":"false",description:"Blog zichtbaar"})},C=async q=>{m(q),await A.mutateAsync({key:"show_news",value:q?"true":"false",description:"Nieuws zichtbaar"})},B=async q=>{g(q),await A.mutateAsync({key:"show_training_calendar",value:q?"true":"false",description:"Training kalender zichtbaar"})},F=q=>{t.name.trim()&&k.mutate({type:q,name:t.name.trim(),slug:t.slug||t.name.toLowerCase().replace(/\s+/g,"-"),active:!0})},D=j.filter(q=>q.type==="blog"),I=j.filter(q=>q.type==="case"),z=j.filter(q=>q.type==="training");return e.jsx("div",{className:"pt-20 min-h-screen bg-gray-50",children:e.jsxs("div",{className:"max-w-5xl mx-auto px-4 sm:px-6 lg:px-8 py-12",children:[e.jsx("div",{className:"mb-6",children:e.jsxs(de,{to:se("AdminDashboard"),className:"text-blue-600 hover:text-blue-700 inline-flex items-center gap-1",children:[e.jsx(ht,{className:"w-4 h-4"}),"Terug naar dashboard"]})}),e.jsxs("div",{className:"mb-8",children:[e.jsx("h1",{className:"text-4xl font-bold text-gray-900 mb-2",children:"Instellingen"}),e.jsx("p",{className:"text-lg text-gray-600",children:"Beheer categorieën, tags en andere globale instellingen"})]}),e.jsx("div",{className:"space-y-8",children:v?e.jsx("div",{className:"text-center py-12",children:e.jsx("div",{className:"inline-block w-8 h-8 border-4 border-blue-600 border-t-transparent rounded-full animate-spin"})}):e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"bg-white rounded-2xl p-8 border border-gray-200",children:[e.jsxs("div",{className:"flex items-center gap-3 mb-6",children:[e.jsx(m8,{className:"w-6 h-6 text-gray-900"}),e.jsx("h2",{className:"text-2xl font-bold text-gray-900",children:"Website Logo"})]}),e.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."}),e.jsx(ta,{value:s,onChange:a,label:"Logo"}),s&&e.jsxs("div",{className:"mt-4 p-4 bg-gray-50 rounded-lg",children:[e.jsx("p",{className:"text-sm text-gray-600 mb-2",children:"Preview:"}),e.jsx("img",{src:s,alt:"Logo preview",className:"h-12"})]}),e.jsxs(ae,{onClick:()=>N.mutate(s),disabled:!s||N.isPending,className:"mt-4",children:[e.jsx(Sn,{className:"w-4 h-4 mr-2"}),N.isPending?"Opslaan...":"Logo opslaan"]})]}),e.jsxs("div",{className:"bg-white rounded-2xl p-8 border border-gray-200",children:[e.jsx("h2",{className:"text-2xl font-bold text-gray-900 mb-6",children:"Social Media Kanalen"}),e.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."}),e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{children:[e.jsxs("label",{className:"flex items-center gap-2 text-sm font-medium text-gray-700 mb-2",children:[e.jsx(Hs,{className:"w-4 h-4 text-blue-600"}),"LinkedIn"]}),e.jsx(me,{value:o.linkedin,onChange:q=>c({...o,linkedin:q.target.value}),placeholder:"https://linkedin.com/company/jouw-bedrijf"})]}),e.jsxs("div",{children:[e.jsxs("label",{className:"flex items-center gap-2 text-sm font-medium text-gray-700 mb-2",children:[e.jsx(Jc,{className:"w-4 h-4 text-pink-600"}),"Instagram"]}),e.jsx(me,{value:o.instagram,onChange:q=>c({...o,instagram:q.target.value}),placeholder:"https://instagram.com/jouw-bedrijf"})]}),e.jsxs("div",{children:[e.jsxs("label",{className:"flex items-center gap-2 text-sm font-medium text-gray-700 mb-2",children:[e.jsx(I4,{className:"w-4 h-4 text-blue-400"}),"Twitter/X"]}),e.jsx(me,{value:o.twitter,onChange:q=>c({...o,twitter:q.target.value}),placeholder:"https://twitter.com/jouw-bedrijf"})]}),e.jsxs("div",{children:[e.jsxs("label",{className:"flex items-center gap-2 text-sm font-medium text-gray-700 mb-2",children:[e.jsx(tu,{className:"w-4 h-4 text-red-600"}),"YouTube"]}),e.jsx(me,{value:o.youtube,onChange:q=>c({...o,youtube:q.target.value}),placeholder:"https://youtube.com/@jouw-kanaal"})]})]}),e.jsxs(ae,{onClick:S,disabled:A.isPending,className:"mt-6",children:[e.jsx(Sn,{className:"w-4 h-4 mr-2"}),"Social media opslaan"]})]}),e.jsxs("div",{className:"bg-white rounded-2xl p-8 border border-gray-200",children:[e.jsx("h2",{className:"text-2xl font-bold text-gray-900 mb-6",children:"Content Zichtbaarheid"}),e.jsx("p",{className:"text-gray-600 mb-6",children:"Schakel content secties in of uit. Dit verbergt ook menu-items en gerelateerde blokken."}),e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{className:"flex items-center justify-between p-4 bg-gray-50 rounded-lg",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[d?e.jsx(zs,{className:"w-5 h-5 text-green-600"}):e.jsx(qp,{className:"w-5 h-5 text-gray-400"}),e.jsxs("div",{children:[e.jsx("p",{className:"font-medium text-gray-900",children:"Blog"}),e.jsx("p",{className:"text-sm text-gray-600",children:"Toon blog artikelen en menu-items"})]})]}),e.jsx(Kc,{checked:d,onCheckedChange:E})]}),e.jsxs("div",{className:"flex items-center justify-between p-4 bg-gray-50 rounded-lg",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[f?e.jsx(zs,{className:"w-5 h-5 text-green-600"}):e.jsx(qp,{className:"w-5 h-5 text-gray-400"}),e.jsxs("div",{children:[e.jsx("p",{className:"font-medium text-gray-900",children:"AI Nieuws"}),e.jsx("p",{className:"text-sm text-gray-600",children:"Toon nieuws pagina, menu-items en Daily AI Nieuws blokken"})]})]}),e.jsx(Kc,{checked:f,onCheckedChange:C})]}),e.jsxs("div",{className:"flex items-center justify-between p-4 bg-gray-50 rounded-lg",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[p?e.jsx(zs,{className:"w-5 h-5 text-green-600"}):e.jsx(qp,{className:"w-5 h-5 text-gray-400"}),e.jsxs("div",{children:[e.jsx("p",{className:"font-medium text-gray-900",children:"Training Kalender"}),e.jsx("p",{className:"text-sm text-gray-600",children:"Toon kalender optie op trainingen pagina"})]})]}),e.jsx(Kc,{checked:p,onCheckedChange:B})]})]})]}),e.jsxs("div",{className:"bg-white rounded-2xl p-8 border border-gray-200",children:[e.jsx("h2",{className:"text-2xl font-bold text-gray-900 mb-6",children:"Blog Categorieën"}),e.jsx("div",{className:"space-y-3 mb-6",children:D.map(q=>e.jsxs("div",{className:"flex items-center justify-between p-4 bg-gray-50 rounded-lg",children:[e.jsxs("div",{children:[e.jsx("span",{className:"font-medium text-gray-900",children:q.name}),e.jsxs("span",{className:"text-sm text-gray-500 ml-2",children:["(",q.slug,")"]})]}),e.jsx(ae,{size:"sm",variant:"ghost",onClick:()=>{confirm(`Weet je zeker dat je "${q.name}" wilt verwijderen?`)&&w.mutate(q.id)},children:e.jsx(wt,{className:"w-4 h-4"})})]},q.id))}),e.jsxs("div",{className:"flex gap-3",children:[e.jsx(me,{value:t.type==="blog"?t.name:"",onChange:q=>n({type:"blog",name:q.target.value,slug:q.target.value.toLowerCase().replace(/\s+/g,"-")}),placeholder:"Nieuwe categorie...",onKeyPress:q=>q.key==="Enter"&&F("blog")}),e.jsxs(ae,{onClick:()=>F("blog"),children:[e.jsx(Pt,{className:"w-4 h-4 mr-2"}),"Toevoegen"]})]})]}),e.jsxs("div",{className:"bg-white rounded-2xl p-8 border border-gray-200",children:[e.jsx("h2",{className:"text-2xl font-bold text-gray-900 mb-6",children:"Case Types"}),e.jsx("div",{className:"space-y-3 mb-6",children:I.map(q=>e.jsxs("div",{className:"flex items-center justify-between p-4 bg-gray-50 rounded-lg",children:[e.jsxs("div",{children:[e.jsx("span",{className:"font-medium text-gray-900",children:q.name}),e.jsxs("span",{className:"text-sm text-gray-500 ml-2",children:["(",q.slug,")"]})]}),e.jsx(ae,{size:"sm",variant:"ghost",onClick:()=>{confirm(`Weet je zeker dat je "${q.name}" wilt verwijderen?`)&&w.mutate(q.id)},children:e.jsx(wt,{className:"w-4 h-4"})})]},q.id))}),e.jsxs("div",{className:"flex gap-3",children:[e.jsx(me,{value:t.type==="case"?t.name:"",onChange:q=>n({type:"case",name:q.target.value,slug:q.target.value.toLowerCase().replace(/\s+/g,"-")}),placeholder:"Nieuw type...",onKeyPress:q=>q.key==="Enter"&&F("case")}),e.jsxs(ae,{onClick:()=>F("case"),children:[e.jsx(Pt,{className:"w-4 h-4 mr-2"}),"Toevoegen"]})]})]}),e.jsxs("div",{className:"bg-white rounded-2xl p-8 border border-gray-200",children:[e.jsx("h2",{className:"text-2xl font-bold text-gray-900 mb-6",children:"Training Categorieën"}),e.jsx("div",{className:"space-y-3 mb-6",children:z.map(q=>e.jsxs("div",{className:"flex items-center justify-between p-4 bg-gray-50 rounded-lg",children:[e.jsxs("div",{children:[e.jsx("span",{className:"font-medium text-gray-900",children:q.name}),e.jsxs("span",{className:"text-sm text-gray-500 ml-2",children:["(",q.slug,")"]})]}),e.jsx(ae,{size:"sm",variant:"ghost",onClick:()=>{confirm(`Weet je zeker dat je "${q.name}" wilt verwijderen?`)&&w.mutate(q.id)},children:e.jsx(wt,{className:"w-4 h-4"})})]},q.id))}),e.jsxs("div",{className:"flex gap-3",children:[e.jsx(me,{value:t.type==="training"?t.name:"",onChange:q=>n({type:"training",name:q.target.value,slug:q.target.value.toLowerCase().replace(/\s+/g,"-")}),placeholder:"Nieuwe categorie...",onKeyPress:q=>q.key==="Enter"&&F("training")}),e.jsxs(ae,{onClick:()=>F("training"),children:[e.jsx(Pt,{className:"w-4 h-4 mr-2"}),"Toevoegen"]})]})]}),e.jsxs("div",{className:"bg-green-50 border border-green-200 rounded-2xl p-6",children:[e.jsx("h3",{className:"font-bold text-green-900 mb-2",children:"✅ Categorieën worden direct opgeslagen"}),e.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 NQ(){const[t,n]=R.useState(!1),[r,i]=R.useState({name:"",role:"",image_url:"",bio:"",linkedin_url:"",show_on_homepage:!1,show_on_about_page:!0,active:!0,sort_order:0}),s=Xt(),{data:a=[],isLoading:o}=Fe({queryKey:["teamMembers"],queryFn:()=>ce.entities.TeamMember.list("sort_order"),initialData:[]}),c=Le({mutationFn:b=>ce.entities.TeamMember.create(b),onSuccess:()=>{s.invalidateQueries({queryKey:["teamMembers"]}),f()}}),d=Le({mutationFn:({id:b,data:j})=>ce.entities.TeamMember.update(b,j),onSuccess:()=>{s.invalidateQueries({queryKey:["teamMembers"]}),f()}}),h=Le({mutationFn:b=>ce.entities.TeamMember.delete(b),onSuccess:()=>{s.invalidateQueries({queryKey:["teamMembers"]})}}),f=()=>{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(),t?d.mutate({id:t,data:r}):c.mutate(r)},g=b=>{confirm("Weet je zeker dat je dit teamlid wilt verwijderen?")&&h.mutate(b)};return t!==!1?e.jsx("div",{className:"pt-20 min-h-screen bg-gradient-to-b from-gray-50 to-white",children:e.jsxs("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 py-12",children:[e.jsxs("div",{className:"mb-8",children:[e.jsxs(de,{to:se("AdminDashboard"),className:"inline-flex items-center gap-2 text-gray-600 hover:text-gray-900 mb-4",children:[e.jsx(ht,{className:"w-4 h-4"}),"Terug naar dashboard"]}),e.jsx("h1",{className:"text-4xl font-bold text-gray-900",children:t?"Teamlid bewerken":"Nieuw teamlid"})]}),e.jsxs("form",{onSubmit:p,className:"bg-white rounded-2xl p-8 shadow-sm border border-gray-200 space-y-6",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-semibold text-gray-900 mb-2",children:"Naam *"}),e.jsx(me,{value:r.name,onChange:b=>i({...r,name:b.target.value}),required:!0,placeholder:"Jan van der Berg"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-semibold text-gray-900 mb-2",children:"Functie/Rol *"}),e.jsx(me,{value:r.role,onChange:b=>i({...r,role:b.target.value}),required:!0,placeholder:"Founder & CEO"})]}),e.jsx(ta,{label:"Profielfoto",value:r.image_url,onChange:b=>i({...r,image_url:b})}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-semibold text-gray-900 mb-2",children:"Bio (optioneel)"}),e.jsx(pt,{value:r.bio||"",onChange:b=>i({...r,bio:b.target.value}),placeholder:"Korte bio over dit teamlid...",className:"h-24"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-semibold text-gray-900 mb-2",children:"LinkedIn URL (optioneel)"}),e.jsx(me,{value:r.linkedin_url||"",onChange:b=>i({...r,linkedin_url:b.target.value}),placeholder:"https://linkedin.com/in/..."})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-semibold text-gray-900 mb-2",children:"Sorteervolgorde"}),e.jsx(me,{type:"number",value:r.sort_order,onChange:b=>i({...r,sort_order:parseInt(b.target.value)||0})})]}),e.jsxs("div",{className:"border-t pt-6 space-y-4",children:[e.jsx("h3",{className:"text-lg font-bold text-gray-900",children:"Weergave instellingen"}),e.jsxs("div",{className:"flex items-center gap-3",children:[e.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"}),e.jsxs("label",{htmlFor:"show_on_homepage",className:"flex items-center gap-2 text-gray-900 cursor-pointer",children:[e.jsx(Sv,{className:"w-4 h-4"}),"Toon op homepage"]})]}),e.jsxs("div",{className:"flex items-center gap-3",children:[e.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"}),e.jsxs("label",{htmlFor:"show_on_about_page",className:"flex items-center gap-2 text-gray-900 cursor-pointer",children:[e.jsx(_n,{className:"w-4 h-4"}),"Toon op 'The AI Professionals' pagina"]})]}),e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("input",{type:"checkbox",id:"active",checked:r.active,onChange:b=>i({...r,active:b.target.checked}),className:"w-4 h-4"}),e.jsx("label",{htmlFor:"active",className:"text-gray-900 cursor-pointer",children:"Actief"})]})]}),e.jsxs("div",{className:"flex gap-4 pt-6",children:[e.jsx(ae,{type:"submit",className:"flex-1",children:t?"Opslaan":"Aanmaken"}),e.jsx(ae,{type:"button",variant:"outline",onClick:f,children:"Annuleren"})]})]})]})}):e.jsx("div",{className:"pt-20 min-h-screen bg-gradient-to-b from-gray-50 to-white",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-12",children:[e.jsxs("div",{className:"mb-8 flex items-center justify-between",children:[e.jsxs("div",{children:[e.jsxs(de,{to:se("AdminDashboard"),className:"inline-flex items-center gap-2 text-gray-600 hover:text-gray-900 mb-4",children:[e.jsx(ht,{className:"w-4 h-4"}),"Terug naar dashboard"]}),e.jsx("h1",{className:"text-4xl font-bold text-gray-900",children:"Team Beheer"}),e.jsx("p",{className:"text-gray-600 mt-2",children:"Beheer alle teamleden en hun weergave op de website"})]}),e.jsxs(ae,{onClick:()=>n(!0),children:[e.jsx(Pt,{className:"w-4 h-4 mr-2"}),"Nieuw teamlid"]})]}),o?e.jsx("div",{className:"text-center py-12",children:e.jsx("p",{className:"text-gray-600",children:"Laden..."})}):e.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-6",children:a.map(b=>e.jsxs("div",{className:"bg-white rounded-2xl overflow-hidden border border-gray-200 hover:shadow-lg transition-all",children:[b.image_url&&e.jsx("div",{className:"aspect-square overflow-hidden bg-gray-100",children:e.jsx("img",{src:b.image_url,alt:b.name,className:"w-full h-full object-cover"})}),e.jsxs("div",{className:"p-6",children:[e.jsxs("div",{className:"flex items-start justify-between mb-4",children:[e.jsxs("div",{children:[e.jsx("h3",{className:"font-bold text-lg text-gray-900",children:b.name}),e.jsx("p",{className:"text-gray-600 text-sm",children:b.role})]}),!b.active&&e.jsx("span",{className:"text-xs px-2 py-1 bg-gray-100 text-gray-600 rounded",children:"Inactief"})]}),e.jsxs("div",{className:"flex flex-wrap gap-2 mb-4",children:[b.show_on_homepage&&e.jsxs("span",{className:"text-xs px-2 py-1 bg-blue-100 text-blue-700 rounded flex items-center gap-1",children:[e.jsx(Sv,{className:"w-3 h-3"}),"Homepage"]}),b.show_on_about_page&&e.jsxs("span",{className:"text-xs px-2 py-1 bg-green-100 text-green-700 rounded flex items-center gap-1",children:[e.jsx(_n,{className:"w-3 h-3"}),"About"]})]}),e.jsxs("div",{className:"flex gap-2",children:[e.jsxs(ae,{variant:"outline",size:"sm",onClick:()=>m(b),className:"flex-1",children:[e.jsx(B8,{className:"w-4 h-4 mr-2"}),"Bewerken"]}),e.jsx(ae,{variant:"outline",size:"sm",onClick:()=>g(b.id),className:"text-red-600 hover:bg-red-50",children:e.jsx(wt,{className:"w-4 h-4"})})]})]})]},b.id))})]})})}function _Q(){const t=wl(),[n,r]=R.useState(!1),[i,s]=R.useState(!0),[a,o]=R.useState(null),[c,d]=R.useState(null),[h,f]=R.useState(!1),[m,p]=R.useState(!1);R.useEffect(()=>{(async()=>{try{const x=await ce.auth.me();if((x==null?void 0:x.role)!=="admin"){t(se("Home"));return}r(!0)}catch{t(se("Home"))}finally{s(!1)}})()},[t]);const g=async()=>{var v,x;f(!0),o({status:"testing",message:"Aanvraag wordt ingediend..."});try{const{data:k}=await ce.functions.invoke("createImpactScanRequest",{website_url:"https://vitaal050.nl",company_name:"TEST - Vitaal050",industry:"technology",user_email:"hallo@48-7.nl",user_name:"Test Admin"});k.success?o({status:"success",message:`✅ Aanvraag succesvol ingediend! Request ID: ${k.request_id}`,requestId:k.request_id}):o({status:"error",message:k.error||"Onbekende fout"})}catch(k){console.error("Test Impact Scan error:",k),o({status:"error",message:((x=(v=k.response)==null?void 0:v.data)==null?void 0:x.error)||k.message||"Er ging iets mis"})}finally{f(!1)}},b=async()=>{var v,x;p(!0),d({status:"testing",message:"Aanvraag wordt ingediend..."});try{const{data:k}=await ce.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"});k.success?d({status:"success",message:`✅ Aanvraag succesvol ingediend! Request ID: ${k.request_id}`,requestId:k.request_id}):d({status:"error",message:k.error||"Onbekende fout"})}catch(k){console.error("Test EU AI Act error:",k),d({status:"error",message:((x=(v=k.response)==null?void 0:v.data)==null?void 0:x.error)||k.message||"Er ging iets mis"})}finally{p(!1)}},j=({status:v,title:x})=>v?e.jsx(Z.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},className:`mt-4 p-4 rounded-lg border-2 ${v.status==="success"?"bg-green-50 border-green-200":v.status==="error"?"bg-red-50 border-red-200":"bg-blue-50 border-blue-200"}`,children:e.jsxs("div",{className:"flex items-start gap-3",children:[v.status==="success"?e.jsx(gt,{className:"w-5 h-5 text-green-600 mt-0.5"}):v.status==="error"?e.jsx(Xc,{className:"w-5 h-5 text-red-600 mt-0.5"}):e.jsx(fi,{className:"w-5 h-5 text-blue-600 mt-0.5 animate-pulse"}),e.jsxs("div",{className:"flex-1",children:[e.jsx("p",{className:`font-medium ${v.status==="success"?"text-green-900":v.status==="error"?"text-red-900":"text-blue-900"}`,children:v.message}),v.status==="success"&&e.jsxs("div",{className:"mt-3 space-y-2",children:[e.jsx("p",{className:"text-sm text-gray-700",children:"De aanvraag is succesvol ingediend. De automatisering zal nu:"}),e.jsxs("ul",{className:"text-sm text-gray-600 space-y-1 ml-4",children:[e.jsx("li",{children:"• De analyse uitvoeren (dit kan 1-2 minuten duren)"}),e.jsx("li",{children:"• Het rapport genereren"}),e.jsx("li",{children:"• Een email sturen naar hallo@48-7.nl"})]}),e.jsx("p",{className:"text-sm font-medium text-gray-700 mt-3",children:"✉️ Check je inbox over een paar minuten"})]})]})]})}):null;return i?e.jsx("div",{className:"pt-20 min-h-screen bg-gray-50 flex items-center justify-center",children:e.jsxs("div",{className:"text-center",children:[e.jsx(Vn,{className:"w-16 h-16 text-gray-400 mx-auto mb-4"}),e.jsx("p",{className:"text-gray-600",children:"Toegang controleren..."})]})}):n?e.jsx("div",{className:"pt-20 min-h-screen bg-gray-50",children:e.jsxs("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 py-12",children:[e.jsxs("div",{className:"flex items-center gap-4 mb-8",children:[e.jsx(de,{to:se("AdminDashboard"),children:e.jsx(ae,{variant:"outline",size:"icon",children:e.jsx(ht,{className:"w-5 h-5"})})}),e.jsxs("div",{children:[e.jsx("h1",{className:"text-3xl font-bold text-gray-900",children:"Test Scans"}),e.jsx("p",{className:"text-gray-600",children:"Test de scan formulieren met vooringevulde data"})]})]}),e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{className:"bg-white rounded-2xl p-8 border border-gray-200",children:[e.jsx("div",{className:"flex items-start justify-between mb-4",children:e.jsxs("div",{children:[e.jsx("h2",{className:"text-xl font-bold text-gray-900 mb-2",children:"AI Impact Scan"}),e.jsx("p",{className:"text-gray-600 text-sm",children:"Test de volledige flow: aanvraag → voorlopige analyse → rapport generatie → email verzending"})]})}),e.jsxs("div",{className:"bg-gray-50 p-4 rounded-lg mb-4",children:[e.jsx("p",{className:"text-sm font-medium text-gray-700 mb-2",children:"Test data:"}),e.jsxs("ul",{className:"text-sm text-gray-600 space-y-1",children:[e.jsx("li",{children:"• Website: https://vitaal050.nl"}),e.jsx("li",{children:"• Bedrijf: TEST - Vitaal050"}),e.jsx("li",{children:"• Branche: Technology"}),e.jsx("li",{children:"• Email: hallo@48-7.nl"})]})]}),e.jsxs(ae,{onClick:g,disabled:h,className:"w-full bg-blue-600 hover:bg-blue-700",children:[e.jsx(Av,{className:"w-4 h-4 mr-2"}),h?"Test wordt uitgevoerd...":"Test AI Impact Scan"]}),e.jsx(j,{status:a,title:"AI Impact Scan"})]}),e.jsxs("div",{className:"bg-white rounded-2xl p-8 border border-gray-200",children:[e.jsx("div",{className:"flex items-start justify-between mb-4",children:e.jsxs("div",{children:[e.jsx("h2",{className:"text-xl font-bold text-gray-900 mb-2",children:"EU AI Act Checker"}),e.jsx("p",{className:"text-gray-600 text-sm",children:"Test de volledige flow: aanvraag → compliance analyse → rapport generatie → email verzending"})]})}),e.jsxs("div",{className:"bg-gray-50 p-4 rounded-lg mb-4",children:[e.jsx("p",{className:"text-sm font-medium text-gray-700 mb-2",children:"Test data:"}),e.jsxs("ul",{className:"text-sm text-gray-600 space-y-1",children:[e.jsx("li",{children:"• Website: https://vitaal050.nl"}),e.jsx("li",{children:"• Beschrijving: Digital marketing & AI consultancy"}),e.jsx("li",{children:"• Vragenlijst: Ingevuld met realistische antwoorden"}),e.jsx("li",{children:"• Email: hallo@48-7.nl"})]})]}),e.jsxs(ae,{onClick:b,disabled:m,className:"w-full bg-purple-600 hover:bg-purple-700",children:[e.jsx(Av,{className:"w-4 h-4 mr-2"}),m?"Test wordt uitgevoerd...":"Test EU AI Act Checker"]}),e.jsx(j,{status:c,title:"EU AI Act Checker"})]}),e.jsx("div",{className:"bg-blue-50 rounded-2xl p-6 border-2 border-blue-200",children:e.jsxs("div",{className:"flex items-start gap-3",children:[e.jsx(yi,{className:"w-6 h-6 text-blue-600 mt-1"}),e.jsxs("div",{children:[e.jsx("h3",{className:"font-bold text-blue-900 mb-2",children:"Hoe het werkt"}),e.jsxs("ul",{className:"text-sm text-blue-800 space-y-2",children:[e.jsx("li",{children:"1. Klik op een test knop om een aanvraag in te dienen"}),e.jsx("li",{children:"2. De entity automation triggert automatisch de processing functie"}),e.jsx("li",{children:"3. De analyse wordt uitgevoerd (1-2 minuten)"}),e.jsx("li",{children:"4. Een email wordt verzonden naar hallo@48-7.nl"}),e.jsx("li",{children:"5. Bekijk de aanvragen in de Admin Impact Scans / EU AI Act Inzendingen pagina's"})]})]})]})}),e.jsxs("div",{className:"flex gap-4",children:[e.jsx(de,{to:se("AdminImpactScans"),className:"flex-1",children:e.jsx(ae,{variant:"outline",className:"w-full",children:"Bekijk Impact Scan Aanvragen"})}),e.jsx(de,{to:se("AdminEuAiActSubmissions"),className:"flex-1",children:e.jsx(ae,{variant:"outline",className:"w-full",children:"Bekijk EU AI Act Aanvragen"})})]})]})]})}):null}function SQ(){const[t,n]=R.useState(null),[r,i]=R.useState({title:"",slug:"",category:"Basis",duration:"",description:"",full_description:"",learning_goals:[],target_audience:"",price:"",image_url:"",sessions:[],active:!0,show_on_homepage:!1}),s=Xt(),{data:a=[],isLoading:o}=Fe({queryKey:["trainingen"],queryFn:()=>ce.entities.Training.list("-created_date")}),c=Le({mutationFn:w=>ce.entities.Training.create(w),onSuccess:()=>{s.invalidateQueries({queryKey:["trainingen"]}),f()}}),d=Le({mutationFn:({id:w,data:N})=>ce.entities.Training.update(w,N),onSuccess:()=>{s.invalidateQueries({queryKey:["trainingen"]}),f()}}),h=Le({mutationFn:w=>ce.entities.Training.delete(w),onSuccess:()=>{s.invalidateQueries({queryKey:["trainingen"]})}}),f=()=>{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(),t&&t.id?d.mutate({id:t.id,data:r}):c.mutate(r)},g=()=>{i({...r,learning_goals:[...r.learning_goals,""]})},b=(w,N)=>{const A=[...r.learning_goals];A[w]=N,i({...r,learning_goals:A})},j=w=>{i({...r,learning_goals:r.learning_goals.filter((N,A)=>A!==w)})},v=()=>{i({...r,sessions:[...r.sessions,{date:"",capacity:10,enrolled:0,location:"Groningen"}]})},x=(w,N,A)=>{const S=[...r.sessions];S[w][N]=A,i({...r,sessions:S})},k=w=>{i({...r,sessions:r.sessions.filter((N,A)=>A!==w)})};return t!==null?e.jsx("div",{className:"pt-20 min-h-screen bg-gray-50",children:e.jsxs("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 py-12",children:[e.jsx("div",{className:"mb-6",children:e.jsxs(ae,{variant:"outline",onClick:f,className:"gap-2",children:[e.jsx(ht,{className:"w-4 h-4"}),"Terug naar overzicht"]})}),e.jsxs("div",{className:"bg-white rounded-2xl p-8 border border-gray-200",children:[e.jsx("h2",{className:"text-3xl font-bold text-gray-900 mb-8",children:t!=null&&t.id?"Training Bewerken":"Nieuwe Training"}),e.jsxs("form",{onSubmit:p,className:"space-y-6",children:[e.jsxs("div",{className:"grid md:grid-cols-2 gap-6",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Titel *"}),e.jsx(me,{required:!0,value:r.title,onChange:w=>i({...r,title:w.target.value}),placeholder:"AI voor Beginners"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Slug (URL) *"}),e.jsx(me,{required:!0,value:r.slug,onChange:w=>i({...r,slug:w.target.value}),placeholder:"ai-voor-beginners"})]})]}),e.jsxs("div",{className:"grid md:grid-cols-2 gap-6",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Categorie *"}),e.jsxs(Ji,{value:r.category,onValueChange:w=>i({...r,category:w}),children:[e.jsx(wi,{children:e.jsx(Zi,{})}),e.jsxs(ki,{children:[e.jsx(St,{value:"Basis",children:"Basis"}),e.jsx(St,{value:"Gevorderd",children:"Gevorderd"}),e.jsx(St,{value:"Leiderschap",children:"Leiderschap"}),e.jsx(St,{value:"Technisch",children:"Technisch"})]})]})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Duur *"}),e.jsx(me,{required:!0,value:r.duration,onChange:w=>i({...r,duration:w.target.value}),placeholder:"1 dag, 3 uur, etc."})]})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Korte beschrijving *"}),e.jsx(me,{required:!0,value:r.description,onChange:w=>i({...r,description:w.target.value}),placeholder:"Een korte samenvatting..."})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Volledige beschrijving"}),e.jsx(es,{value:r.full_description,onChange:w=>i({...r,full_description:w}),placeholder:"Volledige training beschrijving..."})]}),e.jsxs("div",{children:[e.jsxs("div",{className:"flex items-center justify-between mb-4",children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700",children:"Leerdoelen"}),e.jsxs(ae,{type:"button",onClick:g,size:"sm",variant:"outline",children:[e.jsx(Pt,{className:"w-4 h-4 mr-1"})," Leerdoel"]})]}),e.jsx("div",{className:"space-y-2",children:r.learning_goals.map((w,N)=>e.jsxs("div",{className:"flex gap-2",children:[e.jsx(me,{value:w,onChange:A=>b(N,A.target.value),placeholder:"Bijv. Begrijpen van AI concepten"}),e.jsx(ae,{type:"button",variant:"ghost",size:"sm",onClick:()=>j(N),children:e.jsx(Ht,{className:"w-4 h-4"})})]},N))})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Doelgroep"}),e.jsx(me,{value:r.target_audience,onChange:w=>i({...r,target_audience:w.target.value}),placeholder:"Managers, developers, etc."})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Prijs"}),e.jsx(me,{value:r.price,onChange:w=>i({...r,price:w.target.value}),placeholder:"Op aanvraag / €1.500"})]}),e.jsx(ta,{value:r.image_url,onChange:w=>i({...r,image_url:w}),label:"Training Afbeelding",recommendedSize:"800x600px"}),e.jsxs("div",{className:"border-t-2 border-gray-100 pt-6",children:[e.jsxs("div",{className:"flex items-center justify-between mb-4",children:[e.jsxs("label",{className:"block text-sm font-medium text-gray-700",children:[e.jsx(Hr,{className:"w-4 h-4 inline mr-2"}),"Geplande sessies"]}),e.jsxs(ae,{type:"button",onClick:v,size:"sm",variant:"outline",children:[e.jsx(Pt,{className:"w-4 h-4 mr-1"})," Sessie"]})]}),e.jsx("div",{className:"space-y-4",children:r.sessions.map((w,N)=>e.jsxs("div",{className:"p-4 bg-gray-50 rounded-xl border border-gray-200",children:[e.jsxs("div",{className:"grid md:grid-cols-2 gap-4 mb-3",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-xs font-medium text-gray-600 mb-1",children:"Datum & Tijd *"}),e.jsx(me,{type:"datetime-local",value:w.date,onChange:A=>x(N,"date",A.target.value),required:!0})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-xs font-medium text-gray-600 mb-1",children:"Locatie *"}),e.jsx(me,{value:w.location,onChange:A=>x(N,"location",A.target.value),placeholder:"Groningen / Online",required:!0})]})]}),e.jsxs("div",{className:"grid md:grid-cols-2 gap-4",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-xs font-medium text-gray-600 mb-1",children:"Max. capaciteit *"}),e.jsx(me,{type:"number",min:"1",value:w.capacity,onChange:A=>x(N,"capacity",parseInt(A.target.value)),required:!0})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-xs font-medium text-gray-600 mb-1",children:"Ingeschreven"}),e.jsx(me,{type:"number",min:"0",value:w.enrolled,onChange:A=>x(N,"enrolled",parseInt(A.target.value))})]})]}),e.jsx("div",{className:"mt-3 flex justify-end",children:e.jsxs(ae,{type:"button",variant:"ghost",size:"sm",onClick:()=>k(N),children:[e.jsx(wt,{className:"w-4 h-4 mr-1"}),"Verwijder"]})})]},N))})]}),e.jsxs("div",{className:"flex flex-col gap-3",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("input",{type:"checkbox",id:"active",checked:r.active,onChange:w=>i({...r,active:w.target.checked}),className:"w-4 h-4"}),e.jsx("label",{htmlFor:"active",className:"text-sm font-medium text-gray-700",children:"Actief (zichtbaar op website)"})]}),e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("input",{type:"checkbox",id:"show_on_homepage",checked:r.show_on_homepage||!1,onChange:w=>i({...r,show_on_homepage:w.target.checked}),className:"w-4 h-4"}),e.jsx("label",{htmlFor:"show_on_homepage",className:"text-sm font-medium text-gray-700",children:"Toon op homepage (Populaire Trainingen)"})]})]}),e.jsxs("div",{className:"flex gap-4 pt-6",children:[e.jsxs(ae,{type:"submit",className:"flex-1 gap-2",children:[e.jsx(Sn,{className:"w-4 h-4"}),t!=null&&t.id?"Bijwerken":"Aanmaken"]}),e.jsx(ae,{type:"button",variant:"outline",onClick:f,children:"Annuleren"})]})]})]})]})}):e.jsx("div",{className:"pt-20 min-h-screen bg-gray-50",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-12",children:[e.jsxs("div",{className:"flex items-center justify-between mb-8",children:[e.jsxs("div",{children:[e.jsxs(de,{to:se("AdminDashboard"),className:"text-blue-600 hover:text-blue-700 mb-2 inline-flex items-center gap-1",children:[e.jsx(ht,{className:"w-4 h-4"}),"Terug naar dashboard"]}),e.jsx("h1",{className:"text-4xl font-bold text-gray-900",children:"Trainingen"})]}),e.jsxs(ae,{onClick:()=>n({}),children:[e.jsx(Pt,{className:"w-5 h-5 mr-2"}),"Nieuwe Training"]})]}),o?e.jsx("div",{className:"text-center py-12",children:e.jsx("div",{className:"inline-block w-8 h-8 border-4 border-blue-600 border-t-transparent rounded-full animate-spin"})}):e.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-6",children:a.map(w=>e.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:[e.jsxs("div",{className:"flex items-start justify-between mb-4",children:[e.jsxs("div",{children:[e.jsx("h3",{className:"font-bold text-lg text-gray-900 mb-1",children:w.title}),e.jsx("p",{className:"text-sm text-gray-600",children:w.duration}),e.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?e.jsx("span",{className:"px-2 py-1 bg-green-100 text-green-800 text-xs rounded",children:"Actief"}):e.jsx("span",{className:"px-2 py-1 bg-gray-100 text-gray-800 text-xs rounded",children:"Inactief"})]}),e.jsxs("div",{className:"flex gap-2 mt-4",children:[e.jsxs(ae,{size:"sm",variant:"outline",onClick:()=>m(w),className:"flex-1",children:[e.jsx(Pn,{className:"w-4 h-4 mr-1"}),"Bewerk"]}),e.jsx(ae,{size:"sm",variant:"ghost",onClick:()=>{confirm("Weet je zeker dat je deze training wilt verwijderen?")&&h.mutate(w.id)},children:e.jsx(wt,{className:"w-4 h-4"})})]})]},w.id))})]})})}function AQ(){const[t,n]=R.useState(null),[r,i]=R.useState({title:"",slug:"",level:"Medior",location:"",employment_type:"Fulltime",salary_range:"",description:"",role_summary:"",requirements:[],responsibilities:[],benefits:[],active:!0}),s=Xt(),{data:a=[],isLoading:o}=Fe({queryKey:["vacatures"],queryFn:()=>ce.entities.Vacature.list("-created_date")}),c=Le({mutationFn:v=>ce.entities.Vacature.create(v),onSuccess:()=>{s.invalidateQueries({queryKey:["vacatures"]}),f()}}),d=Le({mutationFn:({id:v,data:x})=>ce.entities.Vacature.update(v,x),onSuccess:()=>{s.invalidateQueries({queryKey:["vacatures"]}),f()}}),h=Le({mutationFn:v=>ce.entities.Vacature.delete(v),onSuccess:()=>{s.invalidateQueries({queryKey:["vacatures"]})}}),f=()=>{n(null),i({title:"",slug:"",level:"Medior",location:"",employment_type:"Fulltime",salary_range:"",description:"",role_summary:"",requirements:[],responsibilities:[],benefits:[],active:!0})},m=v=>{n(v),i(v)},p=v=>{v.preventDefault(),t?d.mutate({id:t.id,data:r}):c.mutate(r)},g=v=>{i({...r,[v]:[...r[v],""]})},b=(v,x,k)=>{const w=[...r[v]];w[x]=k,i({...r,[v]:w})},j=(v,x)=>{i({...r,[v]:r[v].filter((k,w)=>w!==x)})};return t!==null?e.jsx("div",{className:"pt-20 min-h-screen bg-gray-50",children:e.jsxs("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 py-12",children:[e.jsx("div",{className:"mb-6",children:e.jsxs(ae,{variant:"outline",onClick:f,className:"gap-2",children:[e.jsx(ht,{className:"w-4 h-4"}),"Terug naar overzicht"]})}),e.jsxs("div",{className:"bg-white rounded-2xl p-8 border border-gray-200",children:[e.jsx("h2",{className:"text-3xl font-bold text-gray-900 mb-8",children:t?"Vacature Bewerken":"Nieuwe Vacature"}),e.jsxs("form",{onSubmit:p,className:"space-y-6",children:[e.jsxs("div",{className:"grid md:grid-cols-2 gap-6",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Functietitel *"}),e.jsx(me,{required:!0,value:r.title,onChange:v=>i({...r,title:v.target.value}),placeholder:"AI Engineer"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Slug (URL) *"}),e.jsx(me,{required:!0,value:r.slug,onChange:v=>i({...r,slug:v.target.value}),placeholder:"ai-engineer-groningen"})]})]}),e.jsxs("div",{className:"grid md:grid-cols-3 gap-6",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Niveau *"}),e.jsxs(Ji,{value:r.level,onValueChange:v=>i({...r,level:v}),children:[e.jsx(wi,{children:e.jsx(Zi,{})}),e.jsxs(ki,{children:[e.jsx(St,{value:"Junior",children:"Junior"}),e.jsx(St,{value:"Medior",children:"Medior"}),e.jsx(St,{value:"Senior",children:"Senior"}),e.jsx(St,{value:"Lead",children:"Lead"})]})]})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Locatie *"}),e.jsx(me,{required:!0,value:r.location,onChange:v=>i({...r,location:v.target.value}),placeholder:"Groningen / Remote"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Type *"}),e.jsxs(Ji,{value:r.employment_type,onValueChange:v=>i({...r,employment_type:v}),children:[e.jsx(wi,{children:e.jsx(Zi,{})}),e.jsxs(ki,{children:[e.jsx(St,{value:"Fulltime",children:"Fulltime"}),e.jsx(St,{value:"Parttime",children:"Parttime"}),e.jsx(St,{value:"Contract",children:"Contract"})]})]})]})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Salarisindicatie"}),e.jsx(me,{value:r.salary_range,onChange:v=>i({...r,salary_range:v.target.value}),placeholder:"€3.500 - €5.000 per maand"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Korte samenvatting"}),e.jsx(me,{value:r.role_summary,onChange:v=>i({...r,role_summary:v.target.value}),placeholder:"Een korte samenvatting van de rol..."})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Functieomschrijving *"}),e.jsx(es,{value:r.description,onChange:v=>i({...r,description:v}),placeholder:"Beschrijf de functie in detail..."})]}),e.jsxs("div",{children:[e.jsxs("div",{className:"flex items-center justify-between mb-4",children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700",children:"Vereisten"}),e.jsxs(ae,{type:"button",onClick:()=>g("requirements"),size:"sm",variant:"outline",children:[e.jsx(Pt,{className:"w-4 h-4 mr-1"})," Vereiste"]})]}),e.jsx("div",{className:"space-y-2",children:r.requirements.map((v,x)=>e.jsxs("div",{className:"flex gap-2",children:[e.jsx(me,{value:v,onChange:k=>b("requirements",x,k.target.value),placeholder:"Bijv. Python, 3+ jaar ervaring"}),e.jsx(ae,{type:"button",variant:"ghost",size:"sm",onClick:()=>j("requirements",x),children:e.jsx(Ht,{className:"w-4 h-4"})})]},x))})]}),e.jsxs("div",{children:[e.jsxs("div",{className:"flex items-center justify-between mb-4",children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700",children:"Verantwoordelijkheden"}),e.jsxs(ae,{type:"button",onClick:()=>g("responsibilities"),size:"sm",variant:"outline",children:[e.jsx(Pt,{className:"w-4 h-4 mr-1"})," Verantwoordelijkheid"]})]}),e.jsx("div",{className:"space-y-2",children:r.responsibilities.map((v,x)=>e.jsxs("div",{className:"flex gap-2",children:[e.jsx(me,{value:v,onChange:k=>b("responsibilities",x,k.target.value),placeholder:"Bijv. Ontwikkelen van AI modellen"}),e.jsx(ae,{type:"button",variant:"ghost",size:"sm",onClick:()=>j("responsibilities",x),children:e.jsx(Ht,{className:"w-4 h-4"})})]},x))})]}),e.jsxs("div",{children:[e.jsxs("div",{className:"flex items-center justify-between mb-4",children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700",children:"Wat we bieden"}),e.jsxs(ae,{type:"button",onClick:()=>g("benefits"),size:"sm",variant:"outline",children:[e.jsx(Pt,{className:"w-4 h-4 mr-1"})," Voordeel"]})]}),e.jsx("div",{className:"space-y-2",children:r.benefits.map((v,x)=>e.jsxs("div",{className:"flex gap-2",children:[e.jsx(me,{value:v,onChange:k=>b("benefits",x,k.target.value),placeholder:"Bijv. Flexibele werktijden"}),e.jsx(ae,{type:"button",variant:"ghost",size:"sm",onClick:()=>j("benefits",x),children:e.jsx(Ht,{className:"w-4 h-4"})})]},x))})]}),e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("input",{type:"checkbox",id:"active",checked:r.active,onChange:v=>i({...r,active:v.target.checked}),className:"w-4 h-4"}),e.jsx("label",{htmlFor:"active",className:"text-sm font-medium text-gray-700",children:"Actief (zichtbaar op website)"})]}),e.jsxs("div",{className:"flex gap-4 pt-6",children:[e.jsxs(ae,{type:"submit",className:"flex-1 gap-2",children:[e.jsx(Sn,{className:"w-4 h-4"}),t?"Bijwerken":"Aanmaken"]}),e.jsx(ae,{type:"button",variant:"outline",onClick:f,children:"Annuleren"})]})]})]})]})}):e.jsx("div",{className:"pt-20 min-h-screen bg-gray-50",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-12",children:[e.jsxs("div",{className:"flex items-center justify-between mb-8",children:[e.jsxs("div",{children:[e.jsxs(de,{to:se("AdminDashboard"),className:"text-blue-600 hover:text-blue-700 mb-2 inline-flex items-center gap-1",children:[e.jsx(ht,{className:"w-4 h-4"}),"Terug naar dashboard"]}),e.jsx("h1",{className:"text-4xl font-bold text-gray-900",children:"Vacatures"})]}),e.jsxs(ae,{onClick:()=>n({}),children:[e.jsx(Pt,{className:"w-5 h-5 mr-2"}),"Nieuwe Vacature"]})]}),o?e.jsx("div",{className:"text-center py-12",children:e.jsx("div",{className:"inline-block w-8 h-8 border-4 border-blue-600 border-t-transparent rounded-full animate-spin"})}):e.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-6",children:a.map(v=>e.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:[e.jsxs("div",{className:"flex items-start justify-between mb-4",children:[e.jsxs("div",{children:[e.jsx("h3",{className:"font-bold text-lg text-gray-900 mb-1",children:v.title}),e.jsx("p",{className:"text-sm text-gray-600",children:v.location}),e.jsxs("div",{className:"flex gap-2 mt-2",children:[e.jsx("span",{className:"inline-block px-2 py-1 bg-blue-100 text-blue-800 text-xs rounded",children:v.level}),e.jsx("span",{className:"inline-block px-2 py-1 bg-purple-100 text-purple-800 text-xs rounded",children:v.employment_type})]})]}),v.active?e.jsx("span",{className:"px-2 py-1 bg-green-100 text-green-800 text-xs rounded",children:"Actief"}):e.jsx("span",{className:"px-2 py-1 bg-gray-100 text-gray-800 text-xs rounded",children:"Inactief"})]}),e.jsxs("div",{className:"flex gap-2 mt-4",children:[e.jsxs(ae,{size:"sm",variant:"outline",onClick:()=>m(v),className:"flex-1",children:[e.jsx(Pn,{className:"w-4 h-4 mr-1"}),"Bewerk"]}),e.jsx(ae,{size:"sm",variant:"ghost",onClick:()=>{confirm("Weet je zeker dat je deze vacature wilt verwijderen?")&&h.mutate(v.id)},children:e.jsx(wt,{className:"w-4 h-4"})})]})]},v.id))})]})})}const CQ=[{id:"all",label:"Alle"},{id:"trends",label:"Trends"},{id:"tips",label:"Tips"},{id:"strategy",label:"Strategie"},{id:"cases",label:"Cases"}];function EQ(){const[t,n]=R.useState("all"),[r,i]=R.useState(""),{data:s=[],isLoading:a}=Fe({queryKey:["blog"],queryFn:()=>ce.entities.BlogPost.filter({published:!0},"-published_date")}),o=s.filter(h=>{const f=t==="all"||h.category===t,m=h.title.toLowerCase().includes(r.toLowerCase())||h.excerpt.toLowerCase().includes(r.toLowerCase());return f&&m}),c=s.find(h=>h.featured),d=o.filter(h=>!h.featured);return e.jsxs("div",{className:"pt-20",children:[e.jsx("section",{className:"py-16 bg-[#0D0D0F]",children:e.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:e.jsxs("div",{className:"flex flex-col lg:flex-row items-center gap-8",children:[e.jsx("div",{className:"w-24 h-24 bg-[#FAB868] rounded-full flex items-center justify-center flex-shrink-0",children:e.jsx(uf,{className:"w-12 h-12 text-[#0D0D0F]"})}),e.jsxs("div",{className:"flex-1 text-center lg:text-left",children:[e.jsx("h1",{className:"text-3xl font-bold text-white mb-3",children:"Daily AI Nieuws in 48 seconden"}),e.jsx("p",{className:"text-[#9CA3AF] mb-6",children:"Elke dag de belangrijkste AI ontwikkelingen, compact samengevat."}),e.jsxs("div",{className:"flex flex-wrap items-center justify-center lg:justify-start gap-4",children:[e.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:[e.jsx("svg",{className:"w-5 h-5",fill:"currentColor",viewBox:"0 0 24 24",children:e.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"]}),e.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:[e.jsx(yi,{className:"w-5 h-5"}),"Ontvang per email"]})]})]})]})})}),e.jsx("section",{className:"py-8 border-b border-gray-100 bg-white",children:e.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:e.jsxs("div",{className:"flex flex-col sm:flex-row items-center gap-4",children:[e.jsxs("div",{className:"relative w-full sm:w-64",children:[e.jsx(mi,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-5 h-5 text-gray-400"}),e.jsx("input",{type:"text",placeholder:"Zoek artikelen...",value:r,onChange:h=>i(h.target.value),className:"w-full pl-10 pr-4 py-2 border border-gray-200 rounded-xl focus:outline-none focus:border-blue-500"})]}),e.jsxs("div",{className:"flex items-center gap-2 overflow-x-auto pb-2 sm:pb-0",children:[e.jsx(cf,{className:"w-5 h-5 text-gray-400 flex-shrink-0"}),CQ.map(h=>e.jsx("button",{onClick:()=>n(h.id),className:`px-4 py-2 rounded-full text-sm font-medium whitespace-nowrap transition-all ${t===h.id?"bg-[#FAB868] text-[#0D0D0F]":"bg-[#F4F4F4] text-[#0D0D0F] hover:bg-[#E5E5E5]"}`,children:h.label},h.id))]})]})})}),c&&t==="all"&&!r&&e.jsx("section",{className:"py-12",children:e.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:e.jsx(Z.article,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"group",children:e.jsxs(de,{to:se(`BlogDetail?slug=${c.slug}`),className:"grid lg:grid-cols-2 gap-8 bg-[#F4F4F4] rounded-3xl overflow-hidden hover:bg-[#E5E5E5] transition-colors",children:[e.jsx("div",{className:"aspect-video lg:aspect-auto overflow-hidden",children:c.image_url&&e.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"})}),e.jsxs("div",{className:"p-8 lg:py-12 flex flex-col justify-center",children:[e.jsxs("div",{className:"flex items-center gap-3 text-sm text-[#9CA3AF] mb-4",children:[e.jsx("span",{className:"px-3 py-1 bg-[#FAB868] text-[#0D0D0F] rounded-full font-medium",children:"Featured"}),e.jsx("span",{children:c.published_date?new Date(c.published_date).toLocaleDateString("nl-NL"):c.date}),e.jsx("span",{children:"•"}),e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(vn,{className:"w-4 h-4"}),c.read_time]})]}),e.jsx("h2",{className:"text-3xl font-bold text-[#0D0D0F] mb-4 group-hover:text-[#FAB868] transition-colors",children:c.title}),e.jsx("p",{className:"text-[#0D0D0F]/80 text-lg mb-6",children:c.excerpt}),e.jsxs("div",{className:"flex items-center gap-2 text-[#FAB868] font-semibold",children:["Lees meer",e.jsx($e,{className:"w-5 h-5 group-hover:translate-x-1 transition-transform"})]})]})]})})})}),e.jsx("section",{className:"py-12",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[a?e.jsx("div",{className:"text-center py-12",children:e.jsx("div",{className:"inline-block w-8 h-8 border-4 border-blue-600 border-t-transparent rounded-full animate-spin"})}):e.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-8",children:d.map((h,f)=>e.jsx(Z.article,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:f*.1},children:e.jsxs(de,{to:se(`BlogDetail?slug=${h.slug}`),className:"group block",children:[e.jsxs("div",{className:"relative rounded-2xl overflow-hidden mb-4 aspect-[16/10] bg-gray-200",children:[h.image_url?e.jsx("img",{src:h.image_url,alt:h.title,loading:"lazy",className:"w-full h-full object-cover group-hover:scale-105 transition-transform duration-500"}):e.jsx("div",{className:"w-full h-full flex items-center justify-center",children:e.jsx(Va,{className:"w-12 h-12 text-gray-400"})}),e.jsx("div",{className:"absolute top-4 left-4",children:e.jsx("span",{className:"px-3 py-1 bg-[#F4F4F4] rounded-full text-sm font-medium text-[#0D0D0F]",children:h.category.charAt(0).toUpperCase()+h.category.slice(1)})})]}),e.jsxs("div",{className:"flex items-center gap-3 text-sm text-[#9CA3AF] mb-3",children:[e.jsx("span",{children:h.published_date?new Date(h.published_date).toLocaleDateString("nl-NL"):h.date}),e.jsx("span",{children:"•"}),e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(vn,{className:"w-4 h-4 text-[#FAB868]"}),h.read_time]})]}),e.jsx("h3",{className:"text-xl font-bold text-[#0D0D0F] mb-2 group-hover:text-[#FAB868] transition-colors line-clamp-2",children:h.title}),e.jsx("p",{className:"text-[#0D0D0F]/80 line-clamp-2",children:h.excerpt})]})},f))}),!a&&o.length===0&&e.jsx("div",{className:"text-center py-12",children:e.jsx("p",{className:"text-gray-500",children:"Geen artikelen gevonden voor je zoekopdracht."})})]})}),e.jsx("section",{className:"py-20 bg-[#F4F4F4]",children:e.jsxs("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 text-center",children:[e.jsx("h2",{className:"text-4xl font-bold text-[#0D0D0F] mb-6",children:"Blijf op de hoogte"}),e.jsx("p",{className:"text-xl text-[#9CA3AF] mb-8",children:"Ontvang wekelijks de beste AI insights"}),e.jsxs("div",{className:"flex flex-col sm:flex-row gap-3 max-w-md mx-auto",children:[e.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"}),e.jsx("button",{className:"px-6 py-3 bg-[#0D0D0F] text-white font-semibold rounded-full hover:bg-[#1a1a1c] transition-colors",children:"Aanmelden"})]})]})})]})}function TQ(t,n){const r={};return(t[t.length-1]===""?[...t,""]:t).join((r.padRight?" ":"")+","+(r.padLeft===!1?"":" ")).trim()}const OQ=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,PQ=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,DQ={};function pS(t,n){return(DQ.jsx?PQ:OQ).test(t)}const IQ=/[ \t\n\f\r]/g;function RQ(t){return typeof t=="object"?t.type==="text"?gS(t.value):!1:gS(t)}function gS(t){return t.replace(IQ,"")===""}class zu{constructor(n,r,i){this.normal=r,this.property=n,i&&(this.space=i)}}zu.prototype.normal={};zu.prototype.property={};zu.prototype.space=void 0;function X5(t,n){const r={},i={};for(const s of t)Object.assign(r,s.property),Object.assign(i,s.normal);return new zu(r,i,n)}function R0(t){return t.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 FQ=0;const ot=no(),on=no(),F0=no(),Ae=no(),Rt=no(),Yo=no(),cr=no();function no(){return 2**++FQ}const M0=Object.freeze(Object.defineProperty({__proto__:null,boolean:ot,booleanish:on,commaOrSpaceSeparated:cr,commaSeparated:Yo,number:Ae,overloadedBoolean:F0,spaceSeparated:Rt},Symbol.toStringTag,{value:"Module"})),cv=Object.keys(M0);class mb extends rr{constructor(n,r,i,s){let a=-1;if(super(n,r),xS(this,"space",s),typeof i=="number")for(;++a<cv.length;){const o=cv[a];xS(this,cv[a],(i&M0[o])===M0[o])}}}mb.prototype.defined=!0;function xS(t,n,r){r&&(t[n]=r)}function Ol(t){const n={},r={};for(const[i,s]of Object.entries(t.properties)){const a=new mb(i,t.transform(t.attributes||{},i),s,t.space);t.mustUseProperty&&t.mustUseProperty.includes(i)&&(a.mustUseProperty=!0),n[i]=a,r[R0(i)]=i,r[R0(a.attribute)]=i}return new zu(n,r,t.space)}const J5=Ol({properties:{ariaActiveDescendant:null,ariaAtomic:on,ariaAutoComplete:null,ariaBusy:on,ariaChecked:on,ariaColCount:Ae,ariaColIndex:Ae,ariaColSpan:Ae,ariaControls:Rt,ariaCurrent:null,ariaDescribedBy:Rt,ariaDetails:null,ariaDisabled:on,ariaDropEffect:Rt,ariaErrorMessage:null,ariaExpanded:on,ariaFlowTo:Rt,ariaGrabbed:on,ariaHasPopup:null,ariaHidden:on,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Rt,ariaLevel:Ae,ariaLive:null,ariaModal:on,ariaMultiLine:on,ariaMultiSelectable:on,ariaOrientation:null,ariaOwns:Rt,ariaPlaceholder:null,ariaPosInSet:Ae,ariaPressed:on,ariaReadOnly:on,ariaRelevant:null,ariaRequired:on,ariaRoleDescription:Rt,ariaRowCount:Ae,ariaRowIndex:Ae,ariaRowSpan:Ae,ariaSelected:on,ariaSetSize:Ae,ariaSort:null,ariaValueMax:Ae,ariaValueMin:Ae,ariaValueNow:Ae,ariaValueText:null,role:null},transform(t,n){return n==="role"?n:"aria-"+n.slice(4).toLowerCase()}});function Z5(t,n){return n in t?t[n]:n}function e6(t,n){return Z5(t,n.toLowerCase())}const MQ=Ol({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Yo,acceptCharset:Rt,accessKey:Rt,action:null,allow:null,allowFullScreen:ot,allowPaymentRequest:ot,allowUserMedia:ot,alt:null,as:null,async:ot,autoCapitalize:null,autoComplete:Rt,autoFocus:ot,autoPlay:ot,blocking:Rt,capture:null,charSet:null,checked:ot,cite:null,className:Rt,cols:Ae,colSpan:null,content:null,contentEditable:on,controls:ot,controlsList:Rt,coords:Ae|Yo,crossOrigin:null,data:null,dateTime:null,decoding:null,default:ot,defer:ot,dir:null,dirName:null,disabled:ot,download:F0,draggable:on,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:ot,formTarget:null,headers:Rt,height:Ae,hidden:F0,high:Ae,href:null,hrefLang:null,htmlFor:Rt,httpEquiv:Rt,id:null,imageSizes:null,imageSrcSet:null,inert:ot,inputMode:null,integrity:null,is:null,isMap:ot,itemId:null,itemProp:Rt,itemRef:Rt,itemScope:ot,itemType:Rt,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:Rt,placeholder:null,playsInline:ot,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:ot,referrerPolicy:null,rel:Rt,required:ot,reversed:ot,rows:Ae,rowSpan:Ae,sandbox:Rt,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:Rt,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:e6}),LQ=Ol({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:Rt,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:Yo,g2:Yo,glyphName:Yo,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:Rt,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:Z5}),t6=Ol({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(t,n){return"xlink:"+n.slice(5).toLowerCase()}}),n6=Ol({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:e6}),r6=Ol({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(t,n){return"xml:"+n.slice(3).toLowerCase()}}),BQ={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"},zQ=/[A-Z]/g,vS=/-[a-z]/g,qQ=/^data[-\w.:]+$/i;function VQ(t,n){const r=R0(n);let i=n,s=rr;if(r in t.normal)return t.property[t.normal[r]];if(r.length>4&&r.slice(0,4)==="data"&&qQ.test(n)){if(n.charAt(4)==="-"){const a=n.slice(5).replace(vS,$Q);i="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=n.slice(4);if(!vS.test(a)){let o=a.replace(zQ,UQ);o.charAt(0)!=="-"&&(o="-"+o),n="data"+o}}s=mb}return new s(i,n)}function UQ(t){return"-"+t.toLowerCase()}function $Q(t){return t.charAt(1).toUpperCase()}const HQ=X5([J5,MQ,t6,n6,r6],"html"),pb=X5([J5,LQ,t6,n6,r6],"svg");function WQ(t){return t.join(" ").trim()}var Ro={},uv,yS;function KQ(){if(yS)return uv;yS=1;var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,r=/^\s*/,i=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,s=/^:\s*/,a=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,o=/^[;\s]*/,c=/^\s+|\s+$/g,d=`
`,h="/",f="*",m="",p="comment",g="declaration";uv=function(j,v){if(typeof j!="string")throw new TypeError("First argument must be a string");if(!j)return[];v=v||{};var x=1,k=1;function w(z){var q=z.match(n);q&&(x+=q.length);var U=z.lastIndexOf(d);k=~U?z.length-U:k+z.length}function N(){var z={line:x,column:k};return function(q){return q.position=new A(z),C(),q}}function A(z){this.start=z,this.end={line:x,column:k},this.source=v.source}A.prototype.content=j;function S(z){var q=new Error(v.source+":"+x+":"+k+": "+z);if(q.reason=z,q.filename=v.source,q.line=x,q.column=k,q.source=j,!v.silent)throw q}function E(z){var q=z.exec(j);if(q){var U=q[0];return w(U),j=j.slice(U.length),q}}function C(){E(r)}function B(z){var q;for(z=z||[];q=F();)q!==!1&&z.push(q);return z}function F(){var z=N();if(!(h!=j.charAt(0)||f!=j.charAt(1))){for(var q=2;m!=j.charAt(q)&&(f!=j.charAt(q)||h!=j.charAt(q+1));)++q;if(q+=2,m===j.charAt(q-1))return S("End of comment missing");var U=j.slice(2,q-2);return k+=2,w(U),j=j.slice(q),k+=2,z({type:p,comment:U})}}function D(){var z=N(),q=E(i);if(q){if(F(),!E(s))return S("property missing ':'");var U=E(a),Q=z({type:g,property:b(q[0].replace(t,m)),value:U?b(U[0].replace(t,m)):m});return E(o),Q}}function I(){var z=[];B(z);for(var q;q=D();)q!==!1&&(z.push(q),B(z));return z}return C(),I()};function b(j){return j?j.replace(c,m):m}return uv}var bS;function GQ(){if(bS)return Ro;bS=1;var t=Ro&&Ro.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(Ro,"__esModule",{value:!0}),Ro.default=r;var n=t(KQ());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 h=d.property,f=d.value;c?s(h,f,d):f&&(a=a||{},a[h]=f)}}),a}return Ro}var _c={},jS;function QQ(){if(jS)return _c;jS=1,Object.defineProperty(_c,"__esModule",{value:!0}),_c.camelCase=void 0;var t=/^--[a-zA-Z0-9_-]+$/,n=/-([a-z])/g,r=/^[^-]+$/,i=/^-(webkit|moz|ms|o|khtml)-/,s=/^-(ms)-/,a=function(h){return!h||r.test(h)||t.test(h)},o=function(h,f){return f.toUpperCase()},c=function(h,f){return"".concat(f,"-")},d=function(h,f){return f===void 0&&(f={}),a(h)?h:(h=h.toLowerCase(),f.reactCompat?h=h.replace(s,c):h=h.replace(i,c),h.replace(n,o))};return _c.camelCase=d,_c}var Sc,wS;function YQ(){if(wS)return Sc;wS=1;var t=Sc&&Sc.__importDefault||function(s){return s&&s.__esModule?s:{default:s}},n=t(GQ()),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,Sc=i,Sc}var XQ=YQ();const JQ=_i(XQ),i6=s6("end"),gb=s6("start");function s6(t){return n;function n(r){const i=r&&r.position&&r.position[t]||{};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 ZQ(t){const n=gb(t),r=i6(t);if(n&&r)return{start:n,end:r}}function Gc(t){return!t||typeof t!="object"?"":"position"in t||"type"in t?kS(t.position):"start"in t||"end"in t?kS(t):"line"in t||"column"in t?L0(t):""}function L0(t){return NS(t&&t.line)+":"+NS(t&&t.column)}function kS(t){return L0(t&&t.start)+"-"+L0(t&&t.end)}function NS(t){return t&&typeof t=="number"?t:1}class Fn 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=Gc(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}}Fn.prototype.file="";Fn.prototype.name="";Fn.prototype.reason="";Fn.prototype.message="";Fn.prototype.stack="";Fn.prototype.column=void 0;Fn.prototype.line=void 0;Fn.prototype.ancestors=void 0;Fn.prototype.cause=void 0;Fn.prototype.fatal=void 0;Fn.prototype.place=void 0;Fn.prototype.ruleId=void 0;Fn.prototype.source=void 0;const xb={}.hasOwnProperty,eY=new Map,tY=/[A-Z]/g,nY=new Set(["table","tbody","thead","tfoot","tr"]),rY=new Set(["td","th"]),a6="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function iY(t,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=hY(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=dY(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"?pb:HQ,stylePropertyNameCase:n.stylePropertyNameCase||"dom",tableCellAlignToStyle:n.tableCellAlignToStyle!==!1},a=o6(s,t,void 0);return a&&typeof a!="string"?a:s.create(t,s.Fragment,{children:a||void 0},void 0)}function o6(t,n,r){if(n.type==="element")return sY(t,n,r);if(n.type==="mdxFlowExpression"||n.type==="mdxTextExpression")return aY(t,n);if(n.type==="mdxJsxFlowElement"||n.type==="mdxJsxTextElement")return lY(t,n,r);if(n.type==="mdxjsEsm")return oY(t,n);if(n.type==="root")return cY(t,n,r);if(n.type==="text")return uY(t,n)}function sY(t,n,r){const i=t.schema;let s=i;n.tagName.toLowerCase()==="svg"&&i.space==="html"&&(s=pb,t.schema=s),t.ancestors.push(n);const a=c6(t,n.tagName,!1),o=fY(t,n);let c=yb(t,n);return nY.has(n.tagName)&&(c=c.filter(function(d){return typeof d=="string"?!RQ(d):!0})),l6(t,o,a,n),vb(o,c),t.ancestors.pop(),t.schema=i,t.create(n,a,o,r)}function aY(t,n){if(n.data&&n.data.estree&&t.evaluater){const i=n.data.estree.body[0];return i.type,t.evaluater.evaluateExpression(i.expression)}gu(t,n.position)}function oY(t,n){if(n.data&&n.data.estree&&t.evaluater)return t.evaluater.evaluateProgram(n.data.estree);gu(t,n.position)}function lY(t,n,r){const i=t.schema;let s=i;n.name==="svg"&&i.space==="html"&&(s=pb,t.schema=s),t.ancestors.push(n);const a=n.name===null?t.Fragment:c6(t,n.name,!0),o=mY(t,n),c=yb(t,n);return l6(t,o,a,n),vb(o,c),t.ancestors.pop(),t.schema=i,t.create(n,a,o,r)}function cY(t,n,r){const i={};return vb(i,yb(t,n)),t.create(n,t.Fragment,i,r)}function uY(t,n){return n.value}function l6(t,n,r,i){typeof r!="string"&&r!==t.Fragment&&t.passNode&&(n.node=i)}function vb(t,n){if(n.length>0){const r=n.length>1?n:n[0];r&&(t.children=r)}}function dY(t,n,r){return i;function i(s,a,o,c){const h=Array.isArray(o.children)?r:n;return c?h(a,o,c):h(a,o)}}function hY(t,n){return r;function r(i,s,a,o){const c=Array.isArray(a.children),d=gb(i);return n(s,a,o,c,{columnNumber:d?d.column-1:void 0,fileName:t,lineNumber:d?d.line:void 0},void 0)}}function fY(t,n){const r={};let i,s;for(s in n.properties)if(s!=="children"&&xb.call(n.properties,s)){const a=pY(t,s,n.properties[s]);if(a){const[o,c]=a;t.tableCellAlignToStyle&&o==="align"&&typeof c=="string"&&rY.has(n.tagName)?i=c:r[o]=c}}if(i){const a=r.style||(r.style={});a[t.stylePropertyNameCase==="css"?"text-align":"textAlign"]=i}return r}function mY(t,n){const r={};for(const i of n.attributes)if(i.type==="mdxJsxExpressionAttribute")if(i.data&&i.data.estree&&t.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,t.evaluater.evaluateExpression(c.argument))}else gu(t,n.position);else{const s=i.name;let a;if(i.value&&typeof i.value=="object")if(i.value.data&&i.value.data.estree&&t.evaluater){const c=i.value.data.estree.body[0];c.type,a=t.evaluater.evaluateExpression(c.expression)}else gu(t,n.position);else a=i.value===null?!0:i.value;r[s]=a}return r}function yb(t,n){const r=[];let i=-1;const s=t.passKeys?new Map:eY;for(;++i<n.children.length;){const a=n.children[i];let o;if(t.passKeys){const d=a.type==="element"?a.tagName:a.type==="mdxJsxFlowElement"||a.type==="mdxJsxTextElement"?a.name:void 0;if(d){const h=s.get(d)||0;o=d+"-"+h,s.set(d,h+1)}}const c=o6(t,a,o);c!==void 0&&r.push(c)}return r}function pY(t,n,r){const i=VQ(t.schema,n);if(!(r==null||typeof r=="number"&&Number.isNaN(r))){if(Array.isArray(r)&&(r=i.commaSeparated?TQ(r):WQ(r)),i.property==="style"){let s=typeof r=="object"?r:gY(t,String(r));return t.stylePropertyNameCase==="css"&&(s=xY(s)),["style",s]}return[t.elementAttributeNameCase==="react"&&i.space?BQ[i.property]||i.property:i.attribute,r]}}function gY(t,n){try{return JQ(n,{reactCompat:!0})}catch(r){if(t.ignoreInvalidStyle)return{};const i=r,s=new Fn("Cannot parse `style` attribute",{ancestors:t.ancestors,cause:i,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw s.file=t.filePath||void 0,s.url=a6+"#cannot-parse-style-attribute",s}}function c6(t,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=pS(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=pS(n)&&!/^[a-z]/.test(n)?{type:"Identifier",name:n}:{type:"Literal",value:n};if(i.type==="Literal"){const s=i.value;return xb.call(t.components,s)?t.components[s]:s}if(t.evaluater)return t.evaluater.evaluateExpression(i);gu(t)}function gu(t,n){const r=new Fn("Cannot handle MDX estrees without `createEvaluater`",{ancestors:t.ancestors,place:n,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw r.file=t.filePath||void 0,r.url=a6+"#cannot-handle-mdx-estrees-without-createevaluater",r}function xY(t){const n={};let r;for(r in t)xb.call(t,r)&&(n[vY(r)]=t[r]);return n}function vY(t){let n=t.replace(tY,yY);return n.slice(0,3)==="ms-"&&(n="-"+n),n}function yY(t){return"-"+t.toLowerCase()}const dv={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"]},bY={};function jY(t,n){const r=bY,i=typeof r.includeImageAlt=="boolean"?r.includeImageAlt:!0,s=typeof r.includeHtml=="boolean"?r.includeHtml:!0;return u6(t,i,s)}function u6(t,n,r){if(wY(t)){if("value"in t)return t.type==="html"&&!r?"":t.value;if(n&&"alt"in t&&t.alt)return t.alt;if("children"in t)return _S(t.children,n,r)}return Array.isArray(t)?_S(t,n,r):""}function _S(t,n,r){const i=[];let s=-1;for(;++s<t.length;)i[s]=u6(t[s],n,r);return i.join("")}function wY(t){return!!(t&&typeof t=="object")}const SS=document.createElement("i");function bb(t){const n="&"+t+";";SS.innerHTML=n;const r=SS.textContent;return r.charCodeAt(r.length-1)===59&&t!=="semi"||r===n?!1:r}function Ni(t,n,r,i){const s=t.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),t.splice(...o);else for(r&&t.splice(n,r);a<i.length;)o=i.slice(a,a+1e4),o.unshift(n,0),t.splice(...o),a+=1e4,n+=1e4}function Er(t,n){return t.length>0?(Ni(t,t.length,0,n),t):n}const AS={}.hasOwnProperty;function kY(t){const n={};let r=-1;for(;++r<t.length;)NY(n,t[r]);return n}function NY(t,n){let r;for(r in n){const s=(AS.call(t,r)?t[r]:void 0)||(t[r]={}),a=n[r];let o;if(a)for(o in a){AS.call(s,o)||(s[o]=[]);const c=a[o];_Y(s[o],Array.isArray(c)?c:c?[c]:[])}}}function _Y(t,n){let r=-1;const i=[];for(;++r<n.length;)(n[r].add==="after"?t:i).push(n[r]);Ni(t,0,0,i)}function d6(t,n){const r=Number.parseInt(t,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 Xo(t){return t.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const ci=na(/[A-Za-z]/),hr=na(/[\dA-Za-z]/),SY=na(/[#-'*+\--9=?A-Z^-~]/);function B0(t){return t!==null&&(t<32||t===127)}const z0=na(/\d/),AY=na(/[\dA-Fa-f]/),CY=na(/[!-/:-@[-`{-~]/);function Ze(t){return t!==null&&t<-2}function nr(t){return t!==null&&(t<0||t===32)}function kt(t){return t===-2||t===-1||t===32}const EY=na(new RegExp("\\p{P}|\\p{S}","u")),TY=na(/\s/);function na(t){return n;function n(r){return r!==null&&r>-1&&t.test(String.fromCharCode(r))}}function Pl(t){const n=[];let r=-1,i=0,s=0;for(;++r<t.length;){const a=t.charCodeAt(r);let o="";if(a===37&&hr(t.charCodeAt(r+1))&&hr(t.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=t.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(t.slice(i,r),encodeURIComponent(o)),i=r+s+1,o=""),s&&(r+=s,s=0)}return n.join("")+t.slice(i)}function Mt(t,n,r,i){const s=i?i-1:Number.POSITIVE_INFINITY;let a=0;return o;function o(d){return kt(d)?(t.enter(r),c(d)):n(d)}function c(d){return kt(d)&&a++<s?(t.consume(d),c):(t.exit(r),n(d))}}const OY={tokenize:PY};function PY(t){const n=t.attempt(this.parser.constructs.contentInitial,i,s);let r;return n;function i(c){if(c===null){t.consume(c);return}return t.enter("lineEnding"),t.consume(c),t.exit("lineEnding"),Mt(t,n,"linePrefix")}function s(c){return t.enter("paragraph"),a(c)}function a(c){const d=t.enter("chunkText",{contentType:"text",previous:r});return r&&(r.next=d),r=d,o(c)}function o(c){if(c===null){t.exit("chunkText"),t.exit("paragraph"),t.consume(c);return}return Ze(c)?(t.consume(c),t.exit("chunkText"),a):(t.consume(c),o)}}const DY={tokenize:IY},CS={tokenize:RY};function IY(t){const n=this,r=[];let i=0,s,a,o;return c;function c(w){if(i<r.length){const N=r[i];return n.containerState=N[1],t.attempt(N[0].continuation,d,h)(w)}return h(w)}function d(w){if(i++,n.containerState._closeFlow){n.containerState._closeFlow=void 0,s&&k();const N=n.events.length;let A=N,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=N;for(;E<n.events.length;)n.events[E][1].end={...S},E++;return Ni(n.events,A+1,0,n.events.slice(N)),n.events.length=E,h(w)}return c(w)}function h(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={},t.check(CS,f,m)(w)}function f(w){return s&&k(),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={},t.attempt(CS,g,b)(w)}function g(w){return i++,r.push([n.currentConstruct,n.containerState]),p(w)}function b(w){if(w===null){s&&k(),x(0),t.consume(w);return}return s=s||n.parser.flow(n.now()),t.enter("chunkFlow",{_tokenizer:s,contentType:"flow",previous:a}),j(w)}function j(w){if(w===null){v(t.exit("chunkFlow"),!0),x(0),t.consume(w);return}return Ze(w)?(t.consume(w),v(t.exit("chunkFlow")),i=0,n.interrupt=void 0,c):(t.consume(w),j)}function v(w,N){const A=n.sliceStream(w);if(N&&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,F;for(;C--;)if(n.events[C][0]==="exit"&&n.events[C][1].type==="chunkFlow"){if(B){F=n.events[C][1].end;break}B=!0}for(x(i),S=E;S<n.events.length;)n.events[S][1].end={...F},S++;Ni(n.events,C+1,0,n.events.slice(E)),n.events.length=S}}function x(w){let N=r.length;for(;N-- >w;){const A=r[N];n.containerState=A[1],A[0].exit.call(n,t)}r.length=w}function k(){s.write([null]),a=void 0,s=void 0,n.containerState._closeFlow=void 0}}function RY(t,n,r){return Mt(t,t.attempt(this.parser.constructs.document,n,r),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function ES(t){if(t===null||nr(t)||TY(t))return 1;if(EY(t))return 2}function jb(t,n,r){const i=[];let s=-1;for(;++s<t.length;){const a=t[s].resolveAll;a&&!i.includes(a)&&(n=a(n,r),i.push(a))}return n}const q0={name:"attention",resolveAll:FY,tokenize:MY};function FY(t,n){let r=-1,i,s,a,o,c,d,h,f;for(;++r<t.length;)if(t[r][0]==="enter"&&t[r][1].type==="attentionSequence"&&t[r][1]._close){for(i=r;i--;)if(t[i][0]==="exit"&&t[i][1].type==="attentionSequence"&&t[i][1]._open&&n.sliceSerialize(t[i][1]).charCodeAt(0)===n.sliceSerialize(t[r][1]).charCodeAt(0)){if((t[i][1]._close||t[r][1]._open)&&(t[r][1].end.offset-t[r][1].start.offset)%3&&!((t[i][1].end.offset-t[i][1].start.offset+t[r][1].end.offset-t[r][1].start.offset)%3))continue;d=t[i][1].end.offset-t[i][1].start.offset>1&&t[r][1].end.offset-t[r][1].start.offset>1?2:1;const m={...t[i][1].end},p={...t[r][1].start};TS(m,-d),TS(p,d),o={type:d>1?"strongSequence":"emphasisSequence",start:m,end:{...t[i][1].end}},c={type:d>1?"strongSequence":"emphasisSequence",start:{...t[r][1].start},end:p},a={type:d>1?"strongText":"emphasisText",start:{...t[i][1].end},end:{...t[r][1].start}},s={type:d>1?"strong":"emphasis",start:{...o.start},end:{...c.end}},t[i][1].end={...o.start},t[r][1].start={...c.end},h=[],t[i][1].end.offset-t[i][1].start.offset&&(h=Er(h,[["enter",t[i][1],n],["exit",t[i][1],n]])),h=Er(h,[["enter",s,n],["enter",o,n],["exit",o,n],["enter",a,n]]),h=Er(h,jb(n.parser.constructs.insideSpan.null,t.slice(i+1,r),n)),h=Er(h,[["exit",a,n],["enter",c,n],["exit",c,n],["exit",s,n]]),t[r][1].end.offset-t[r][1].start.offset?(f=2,h=Er(h,[["enter",t[r][1],n],["exit",t[r][1],n]])):f=0,Ni(t,i-1,r-i+3,h),r=i+h.length-f-2;break}}for(r=-1;++r<t.length;)t[r][1].type==="attentionSequence"&&(t[r][1].type="data");return t}function MY(t,n){const r=this.parser.constructs.attentionMarkers.null,i=this.previous,s=ES(i);let a;return o;function o(d){return a=d,t.enter("attentionSequence"),c(d)}function c(d){if(d===a)return t.consume(d),c;const h=t.exit("attentionSequence"),f=ES(d),m=!f||f===2&&s||r.includes(d),p=!s||s===2&&f||r.includes(i);return h._open=!!(a===42?m:m&&(s||!p)),h._close=!!(a===42?p:p&&(f||!m)),n(d)}}function TS(t,n){t.column+=n,t.offset+=n,t._bufferIndex+=n}const LY={name:"autolink",tokenize:BY};function BY(t,n,r){let i=0;return s;function s(g){return t.enter("autolink"),t.enter("autolinkMarker"),t.consume(g),t.exit("autolinkMarker"),t.enter("autolinkProtocol"),a}function a(g){return ci(g)?(t.consume(g),o):g===64?r(g):h(g)}function o(g){return g===43||g===45||g===46||hr(g)?(i=1,c(g)):h(g)}function c(g){return g===58?(t.consume(g),i=0,d):(g===43||g===45||g===46||hr(g))&&i++<32?(t.consume(g),c):(i=0,h(g))}function d(g){return g===62?(t.exit("autolinkProtocol"),t.enter("autolinkMarker"),t.consume(g),t.exit("autolinkMarker"),t.exit("autolink"),n):g===null||g===32||g===60||B0(g)?r(g):(t.consume(g),d)}function h(g){return g===64?(t.consume(g),f):SY(g)?(t.consume(g),h):r(g)}function f(g){return hr(g)?m(g):r(g)}function m(g){return g===46?(t.consume(g),i=0,f):g===62?(t.exit("autolinkProtocol").type="autolinkEmail",t.enter("autolinkMarker"),t.consume(g),t.exit("autolinkMarker"),t.exit("autolink"),n):p(g)}function p(g){if((g===45||hr(g))&&i++<63){const b=g===45?p:m;return t.consume(g),b}return r(g)}}const Uf={partial:!0,tokenize:zY};function zY(t,n,r){return i;function i(a){return kt(a)?Mt(t,s,"linePrefix")(a):s(a)}function s(a){return a===null||Ze(a)?n(a):r(a)}}const h6={continuation:{tokenize:VY},exit:UY,name:"blockQuote",tokenize:qY};function qY(t,n,r){const i=this;return s;function s(o){if(o===62){const c=i.containerState;return c.open||(t.enter("blockQuote",{_container:!0}),c.open=!0),t.enter("blockQuotePrefix"),t.enter("blockQuoteMarker"),t.consume(o),t.exit("blockQuoteMarker"),a}return r(o)}function a(o){return kt(o)?(t.enter("blockQuotePrefixWhitespace"),t.consume(o),t.exit("blockQuotePrefixWhitespace"),t.exit("blockQuotePrefix"),n):(t.exit("blockQuotePrefix"),n(o))}}function VY(t,n,r){const i=this;return s;function s(o){return kt(o)?Mt(t,a,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o):a(o)}function a(o){return t.attempt(h6,n,r)(o)}}function UY(t){t.exit("blockQuote")}const f6={name:"characterEscape",tokenize:$Y};function $Y(t,n,r){return i;function i(a){return t.enter("characterEscape"),t.enter("escapeMarker"),t.consume(a),t.exit("escapeMarker"),s}function s(a){return CY(a)?(t.enter("characterEscapeValue"),t.consume(a),t.exit("characterEscapeValue"),t.exit("characterEscape"),n):r(a)}}const m6={name:"characterReference",tokenize:HY};function HY(t,n,r){const i=this;let s=0,a,o;return c;function c(m){return t.enter("characterReference"),t.enter("characterReferenceMarker"),t.consume(m),t.exit("characterReferenceMarker"),d}function d(m){return m===35?(t.enter("characterReferenceMarkerNumeric"),t.consume(m),t.exit("characterReferenceMarkerNumeric"),h):(t.enter("characterReferenceValue"),a=31,o=hr,f(m))}function h(m){return m===88||m===120?(t.enter("characterReferenceMarkerHexadecimal"),t.consume(m),t.exit("characterReferenceMarkerHexadecimal"),t.enter("characterReferenceValue"),a=6,o=AY,f):(t.enter("characterReferenceValue"),a=7,o=z0,f(m))}function f(m){if(m===59&&s){const p=t.exit("characterReferenceValue");return o===hr&&!bb(i.sliceSerialize(p))?r(m):(t.enter("characterReferenceMarker"),t.consume(m),t.exit("characterReferenceMarker"),t.exit("characterReference"),n)}return o(m)&&s++<a?(t.consume(m),f):r(m)}}const OS={partial:!0,tokenize:KY},PS={concrete:!0,name:"codeFenced",tokenize:WY};function WY(t,n,r){const i=this,s={partial:!0,tokenize:A};let a=0,o=0,c;return d;function d(S){return h(S)}function h(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,t.enter("codeFenced"),t.enter("codeFencedFence"),t.enter("codeFencedFenceSequence"),f(S)}function f(S){return S===c?(o++,t.consume(S),f):o<3?r(S):(t.exit("codeFencedFenceSequence"),kt(S)?Mt(t,m,"whitespace")(S):m(S))}function m(S){return S===null||Ze(S)?(t.exit("codeFencedFence"),i.interrupt?n(S):t.check(OS,j,N)(S)):(t.enter("codeFencedFenceInfo"),t.enter("chunkString",{contentType:"string"}),p(S))}function p(S){return S===null||Ze(S)?(t.exit("chunkString"),t.exit("codeFencedFenceInfo"),m(S)):kt(S)?(t.exit("chunkString"),t.exit("codeFencedFenceInfo"),Mt(t,g,"whitespace")(S)):S===96&&S===c?r(S):(t.consume(S),p)}function g(S){return S===null||Ze(S)?m(S):(t.enter("codeFencedFenceMeta"),t.enter("chunkString",{contentType:"string"}),b(S))}function b(S){return S===null||Ze(S)?(t.exit("chunkString"),t.exit("codeFencedFenceMeta"),m(S)):S===96&&S===c?r(S):(t.consume(S),b)}function j(S){return t.attempt(s,N,v)(S)}function v(S){return t.enter("lineEnding"),t.consume(S),t.exit("lineEnding"),x}function x(S){return a>0&&kt(S)?Mt(t,k,"linePrefix",a+1)(S):k(S)}function k(S){return S===null||Ze(S)?t.check(OS,j,N)(S):(t.enter("codeFlowValue"),w(S))}function w(S){return S===null||Ze(S)?(t.exit("codeFlowValue"),k(S)):(t.consume(S),w)}function N(S){return t.exit("codeFenced"),n(S)}function A(S,E,C){let B=0;return F;function F(U){return S.enter("lineEnding"),S.consume(U),S.exit("lineEnding"),D}function D(U){return S.enter("codeFencedFence"),kt(U)?Mt(S,I,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(U):I(U)}function I(U){return U===c?(S.enter("codeFencedFenceSequence"),z(U)):C(U)}function z(U){return U===c?(B++,S.consume(U),z):B>=o?(S.exit("codeFencedFenceSequence"),kt(U)?Mt(S,q,"whitespace")(U):q(U)):C(U)}function q(U){return U===null||Ze(U)?(S.exit("codeFencedFence"),E(U)):C(U)}}}function KY(t,n,r){const i=this;return s;function s(o){return o===null?r(o):(t.enter("lineEnding"),t.consume(o),t.exit("lineEnding"),a)}function a(o){return i.parser.lazy[i.now().line]?r(o):n(o)}}const hv={name:"codeIndented",tokenize:QY},GY={partial:!0,tokenize:YY};function QY(t,n,r){const i=this;return s;function s(h){return t.enter("codeIndented"),Mt(t,a,"linePrefix",5)(h)}function a(h){const f=i.events[i.events.length-1];return f&&f[1].type==="linePrefix"&&f[2].sliceSerialize(f[1],!0).length>=4?o(h):r(h)}function o(h){return h===null?d(h):Ze(h)?t.attempt(GY,o,d)(h):(t.enter("codeFlowValue"),c(h))}function c(h){return h===null||Ze(h)?(t.exit("codeFlowValue"),o(h)):(t.consume(h),c)}function d(h){return t.exit("codeIndented"),n(h)}}function YY(t,n,r){const i=this;return s;function s(o){return i.parser.lazy[i.now().line]?r(o):Ze(o)?(t.enter("lineEnding"),t.consume(o),t.exit("lineEnding"),s):Mt(t,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 XY={name:"codeText",previous:ZY,resolve:JY,tokenize:eX};function JY(t){let n=t.length-4,r=3,i,s;if((t[r][1].type==="lineEnding"||t[r][1].type==="space")&&(t[n][1].type==="lineEnding"||t[n][1].type==="space")){for(i=r;++i<n;)if(t[i][1].type==="codeTextData"){t[r][1].type="codeTextPadding",t[n][1].type="codeTextPadding",r+=2,n-=2;break}}for(i=r-1,n++;++i<=n;)s===void 0?i!==n&&t[i][1].type!=="lineEnding"&&(s=i):(i===n||t[i][1].type==="lineEnding")&&(t[s][1].type="codeTextData",i!==s+2&&(t[s][1].end=t[i-1][1].end,t.splice(s+2,i-s-2),n-=i-s-2,i=s+2),s=void 0);return t}function ZY(t){return t!==96||this.events[this.events.length-1][1].type==="characterEscape"}function eX(t,n,r){let i=0,s,a;return o;function o(m){return t.enter("codeText"),t.enter("codeTextSequence"),c(m)}function c(m){return m===96?(t.consume(m),i++,c):(t.exit("codeTextSequence"),d(m))}function d(m){return m===null?r(m):m===32?(t.enter("space"),t.consume(m),t.exit("space"),d):m===96?(a=t.enter("codeTextSequence"),s=0,f(m)):Ze(m)?(t.enter("lineEnding"),t.consume(m),t.exit("lineEnding"),d):(t.enter("codeTextData"),h(m))}function h(m){return m===null||m===32||m===96||Ze(m)?(t.exit("codeTextData"),d(m)):(t.consume(m),h)}function f(m){return m===96?(t.consume(m),s++,f):s===i?(t.exit("codeTextSequence"),t.exit("codeText"),n(m)):(a.type="codeTextData",h(m))}}class tX{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&&Ac(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),Ac(this.left,n)}unshift(n){this.setCursor(0),this.right.push(n)}unshiftMany(n){this.setCursor(0),Ac(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);Ac(this.right,r.reverse())}else{const r=this.right.splice(this.left.length+this.right.length-n,Number.POSITIVE_INFINITY);Ac(this.left,r.reverse())}}}function Ac(t,n){let r=0;if(n.length<1e4)t.push(...n);else for(;r<n.length;)t.push(...n.slice(r,r+1e4)),r+=1e4}function p6(t){const n={};let r=-1,i,s,a,o,c,d,h;const f=new tX(t);for(;++r<f.length;){for(;r in n;)r=n[r];if(i=f.get(r),r&&i[1].type==="chunkFlow"&&f.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,nX(f,r)),r=n[r],h=!0);else if(i[1]._container){for(a=r,s=void 0;a--;)if(o=f.get(a),o[1].type==="lineEnding"||o[1].type==="lineEndingBlank")o[0]==="enter"&&(s&&(f.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={...f.get(s)[1].start},c=f.slice(s,r),c.unshift(i),f.splice(s,r-s+1,c))}}return Ni(t,0,Number.POSITIVE_INFINITY,f.slice(0)),!h}function nX(t,n){const r=t.get(n)[1],i=t.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=[],h={};let f,m,p=-1,g=r,b=0,j=0;const v=[j];for(;g;){for(;t.get(++s)[1]!==g;);a.push(s),g._tokenizer||(f=i.sliceStream(g),g.next||f.push(null),m&&o.defineSkip(g.start),g._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=!0),o.write(f),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,v.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):v.pop(),p=v.length;p--;){const x=c.slice(v[p],v[p+1]),k=a.pop();d.push([k,k+x.length-1]),t.splice(k,2,x)}for(d.reverse(),p=-1;++p<d.length;)h[b+d[p][0]]=b+d[p][1],b+=d[p][1]-d[p][0]-1;return h}const rX={resolve:sX,tokenize:aX},iX={partial:!0,tokenize:oX};function sX(t){return p6(t),t}function aX(t,n){let r;return i;function i(c){return t.enter("content"),r=t.enter("chunkContent",{contentType:"content"}),s(c)}function s(c){return c===null?a(c):Ze(c)?t.check(iX,o,a)(c):(t.consume(c),s)}function a(c){return t.exit("chunkContent"),t.exit("content"),n(c)}function o(c){return t.consume(c),t.exit("chunkContent"),r.next=t.enter("chunkContent",{contentType:"content",previous:r}),r=r.next,s}}function oX(t,n,r){const i=this;return s;function s(o){return t.exit("chunkContent"),t.enter("lineEnding"),t.consume(o),t.exit("lineEnding"),Mt(t,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):t.interrupt(i.parser.constructs.flow,r,n)(o)}}function g6(t,n,r,i,s,a,o,c,d){const h=d||Number.POSITIVE_INFINITY;let f=0;return m;function m(x){return x===60?(t.enter(i),t.enter(s),t.enter(a),t.consume(x),t.exit(a),p):x===null||x===32||x===41||B0(x)?r(x):(t.enter(i),t.enter(o),t.enter(c),t.enter("chunkString",{contentType:"string"}),j(x))}function p(x){return x===62?(t.enter(a),t.consume(x),t.exit(a),t.exit(s),t.exit(i),n):(t.enter(c),t.enter("chunkString",{contentType:"string"}),g(x))}function g(x){return x===62?(t.exit("chunkString"),t.exit(c),p(x)):x===null||x===60||Ze(x)?r(x):(t.consume(x),x===92?b:g)}function b(x){return x===60||x===62||x===92?(t.consume(x),g):g(x)}function j(x){return!f&&(x===null||x===41||nr(x))?(t.exit("chunkString"),t.exit(c),t.exit(o),t.exit(i),n(x)):f<h&&x===40?(t.consume(x),f++,j):x===41?(t.consume(x),f--,j):x===null||x===32||x===40||B0(x)?r(x):(t.consume(x),x===92?v:j)}function v(x){return x===40||x===41||x===92?(t.consume(x),j):j(x)}}function x6(t,n,r,i,s,a){const o=this;let c=0,d;return h;function h(g){return t.enter(i),t.enter(s),t.consume(g),t.exit(s),t.enter(a),f}function f(g){return c>999||g===null||g===91||g===93&&!d||g===94&&!c&&"_hiddenFootnoteSupport"in o.parser.constructs?r(g):g===93?(t.exit(a),t.enter(s),t.consume(g),t.exit(s),t.exit(i),n):Ze(g)?(t.enter("lineEnding"),t.consume(g),t.exit("lineEnding"),f):(t.enter("chunkString",{contentType:"string"}),m(g))}function m(g){return g===null||g===91||g===93||Ze(g)||c++>999?(t.exit("chunkString"),f(g)):(t.consume(g),d||(d=!kt(g)),g===92?p:m)}function p(g){return g===91||g===92||g===93?(t.consume(g),c++,m):m(g)}}function v6(t,n,r,i,s,a){let o;return c;function c(p){return p===34||p===39||p===40?(t.enter(i),t.enter(s),t.consume(p),t.exit(s),o=p===40?41:p,d):r(p)}function d(p){return p===o?(t.enter(s),t.consume(p),t.exit(s),t.exit(i),n):(t.enter(a),h(p))}function h(p){return p===o?(t.exit(a),d(o)):p===null?r(p):Ze(p)?(t.enter("lineEnding"),t.consume(p),t.exit("lineEnding"),Mt(t,h,"linePrefix")):(t.enter("chunkString",{contentType:"string"}),f(p))}function f(p){return p===o||p===null||Ze(p)?(t.exit("chunkString"),h(p)):(t.consume(p),p===92?m:f)}function m(p){return p===o||p===92?(t.consume(p),f):f(p)}}function Qc(t,n){let r;return i;function i(s){return Ze(s)?(t.enter("lineEnding"),t.consume(s),t.exit("lineEnding"),r=!0,i):kt(s)?Mt(t,i,r?"linePrefix":"lineSuffix")(s):n(s)}}const lX={name:"definition",tokenize:uX},cX={partial:!0,tokenize:dX};function uX(t,n,r){const i=this;let s;return a;function a(g){return t.enter("definition"),o(g)}function o(g){return x6.call(i,t,c,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(g)}function c(g){return s=Xo(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)),g===58?(t.enter("definitionMarker"),t.consume(g),t.exit("definitionMarker"),d):r(g)}function d(g){return nr(g)?Qc(t,h)(g):h(g)}function h(g){return g6(t,f,r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(g)}function f(g){return t.attempt(cX,m,m)(g)}function m(g){return kt(g)?Mt(t,p,"whitespace")(g):p(g)}function p(g){return g===null||Ze(g)?(t.exit("definition"),i.parser.defined.push(s),n(g)):r(g)}}function dX(t,n,r){return i;function i(c){return nr(c)?Qc(t,s)(c):r(c)}function s(c){return v6(t,a,r,"definitionTitle","definitionTitleMarker","definitionTitleString")(c)}function a(c){return kt(c)?Mt(t,o,"whitespace")(c):o(c)}function o(c){return c===null||Ze(c)?n(c):r(c)}}const hX={name:"hardBreakEscape",tokenize:fX};function fX(t,n,r){return i;function i(a){return t.enter("hardBreakEscape"),t.consume(a),s}function s(a){return Ze(a)?(t.exit("hardBreakEscape"),n(a)):r(a)}}const mX={name:"headingAtx",resolve:pX,tokenize:gX};function pX(t,n){let r=t.length-2,i=3,s,a;return t[i][1].type==="whitespace"&&(i+=2),r-2>i&&t[r][1].type==="whitespace"&&(r-=2),t[r][1].type==="atxHeadingSequence"&&(i===r-1||r-4>i&&t[r-2][1].type==="whitespace")&&(r-=i+1===r?2:4),r>i&&(s={type:"atxHeadingText",start:t[i][1].start,end:t[r][1].end},a={type:"chunkText",start:t[i][1].start,end:t[r][1].end,contentType:"text"},Ni(t,i,r-i+1,[["enter",s,n],["enter",a,n],["exit",a,n],["exit",s,n]])),t}function gX(t,n,r){let i=0;return s;function s(f){return t.enter("atxHeading"),a(f)}function a(f){return t.enter("atxHeadingSequence"),o(f)}function o(f){return f===35&&i++<6?(t.consume(f),o):f===null||nr(f)?(t.exit("atxHeadingSequence"),c(f)):r(f)}function c(f){return f===35?(t.enter("atxHeadingSequence"),d(f)):f===null||Ze(f)?(t.exit("atxHeading"),n(f)):kt(f)?Mt(t,c,"whitespace")(f):(t.enter("atxHeadingText"),h(f))}function d(f){return f===35?(t.consume(f),d):(t.exit("atxHeadingSequence"),c(f))}function h(f){return f===null||f===35||nr(f)?(t.exit("atxHeadingText"),c(f)):(t.consume(f),h)}}const xX=["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"],DS=["pre","script","style","textarea"],vX={concrete:!0,name:"htmlFlow",resolveTo:jX,tokenize:wX},yX={partial:!0,tokenize:NX},bX={partial:!0,tokenize:kX};function jX(t){let n=t.length;for(;n--&&!(t[n][0]==="enter"&&t[n][1].type==="htmlFlow"););return n>1&&t[n-2][1].type==="linePrefix"&&(t[n][1].start=t[n-2][1].start,t[n+1][1].start=t[n-2][1].start,t.splice(n-2,2)),t}function wX(t,n,r){const i=this;let s,a,o,c,d;return h;function h(L){return f(L)}function f(L){return t.enter("htmlFlow"),t.enter("htmlFlowData"),t.consume(L),m}function m(L){return L===33?(t.consume(L),p):L===47?(t.consume(L),a=!0,j):L===63?(t.consume(L),s=3,i.interrupt?n:P):ci(L)?(t.consume(L),o=String.fromCharCode(L),v):r(L)}function p(L){return L===45?(t.consume(L),s=2,g):L===91?(t.consume(L),s=5,c=0,b):ci(L)?(t.consume(L),s=4,i.interrupt?n:P):r(L)}function g(L){return L===45?(t.consume(L),i.interrupt?n:P):r(L)}function b(L){const X="CDATA[";return L===X.charCodeAt(c++)?(t.consume(L),c===X.length?i.interrupt?n:I:b):r(L)}function j(L){return ci(L)?(t.consume(L),o=String.fromCharCode(L),v):r(L)}function v(L){if(L===null||L===47||L===62||nr(L)){const X=L===47,J=o.toLowerCase();return!X&&!a&&DS.includes(J)?(s=1,i.interrupt?n(L):I(L)):xX.includes(o.toLowerCase())?(s=6,X?(t.consume(L),x):i.interrupt?n(L):I(L)):(s=7,i.interrupt&&!i.parser.lazy[i.now().line]?r(L):a?k(L):w(L))}return L===45||hr(L)?(t.consume(L),o+=String.fromCharCode(L),v):r(L)}function x(L){return L===62?(t.consume(L),i.interrupt?n:I):r(L)}function k(L){return kt(L)?(t.consume(L),k):F(L)}function w(L){return L===47?(t.consume(L),F):L===58||L===95||ci(L)?(t.consume(L),N):kt(L)?(t.consume(L),w):F(L)}function N(L){return L===45||L===46||L===58||L===95||hr(L)?(t.consume(L),N):A(L)}function A(L){return L===61?(t.consume(L),S):kt(L)?(t.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?(t.consume(L),d=L,E):kt(L)?(t.consume(L),S):C(L)}function E(L){return L===d?(t.consume(L),d=null,B):L===null||Ze(L)?r(L):(t.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):(t.consume(L),C)}function B(L){return L===47||L===62||kt(L)?w(L):r(L)}function F(L){return L===62?(t.consume(L),D):r(L)}function D(L){return L===null||Ze(L)?I(L):kt(L)?(t.consume(L),D):r(L)}function I(L){return L===45&&s===2?(t.consume(L),Q):L===60&&s===1?(t.consume(L),H):L===62&&s===4?(t.consume(L),T):L===63&&s===3?(t.consume(L),P):L===93&&s===5?(t.consume(L),Y):Ze(L)&&(s===6||s===7)?(t.exit("htmlFlowData"),t.check(yX,V,z)(L)):L===null||Ze(L)?(t.exit("htmlFlowData"),z(L)):(t.consume(L),I)}function z(L){return t.check(bX,q,V)(L)}function q(L){return t.enter("lineEnding"),t.consume(L),t.exit("lineEnding"),U}function U(L){return L===null||Ze(L)?z(L):(t.enter("htmlFlowData"),I(L))}function Q(L){return L===45?(t.consume(L),P):I(L)}function H(L){return L===47?(t.consume(L),o="",K):I(L)}function K(L){if(L===62){const X=o.toLowerCase();return DS.includes(X)?(t.consume(L),T):I(L)}return ci(L)&&o.length<8?(t.consume(L),o+=String.fromCharCode(L),K):I(L)}function Y(L){return L===93?(t.consume(L),P):I(L)}function P(L){return L===62?(t.consume(L),T):L===45&&s===2?(t.consume(L),P):I(L)}function T(L){return L===null||Ze(L)?(t.exit("htmlFlowData"),V(L)):(t.consume(L),T)}function V(L){return t.exit("htmlFlow"),n(L)}}function kX(t,n,r){const i=this;return s;function s(o){return Ze(o)?(t.enter("lineEnding"),t.consume(o),t.exit("lineEnding"),a):r(o)}function a(o){return i.parser.lazy[i.now().line]?r(o):n(o)}}function NX(t,n,r){return i;function i(s){return t.enter("lineEnding"),t.consume(s),t.exit("lineEnding"),t.attempt(Uf,n,r)}}const _X={name:"htmlText",tokenize:SX};function SX(t,n,r){const i=this;let s,a,o;return c;function c(P){return t.enter("htmlText"),t.enter("htmlTextData"),t.consume(P),d}function d(P){return P===33?(t.consume(P),h):P===47?(t.consume(P),A):P===63?(t.consume(P),w):ci(P)?(t.consume(P),C):r(P)}function h(P){return P===45?(t.consume(P),f):P===91?(t.consume(P),a=0,b):ci(P)?(t.consume(P),k):r(P)}function f(P){return P===45?(t.consume(P),g):r(P)}function m(P){return P===null?r(P):P===45?(t.consume(P),p):Ze(P)?(o=m,H(P)):(t.consume(P),m)}function p(P){return P===45?(t.consume(P),g):m(P)}function g(P){return P===62?Q(P):P===45?p(P):m(P)}function b(P){const T="CDATA[";return P===T.charCodeAt(a++)?(t.consume(P),a===T.length?j:b):r(P)}function j(P){return P===null?r(P):P===93?(t.consume(P),v):Ze(P)?(o=j,H(P)):(t.consume(P),j)}function v(P){return P===93?(t.consume(P),x):j(P)}function x(P){return P===62?Q(P):P===93?(t.consume(P),x):j(P)}function k(P){return P===null||P===62?Q(P):Ze(P)?(o=k,H(P)):(t.consume(P),k)}function w(P){return P===null?r(P):P===63?(t.consume(P),N):Ze(P)?(o=w,H(P)):(t.consume(P),w)}function N(P){return P===62?Q(P):w(P)}function A(P){return ci(P)?(t.consume(P),S):r(P)}function S(P){return P===45||hr(P)?(t.consume(P),S):E(P)}function E(P){return Ze(P)?(o=E,H(P)):kt(P)?(t.consume(P),E):Q(P)}function C(P){return P===45||hr(P)?(t.consume(P),C):P===47||P===62||nr(P)?B(P):r(P)}function B(P){return P===47?(t.consume(P),Q):P===58||P===95||ci(P)?(t.consume(P),F):Ze(P)?(o=B,H(P)):kt(P)?(t.consume(P),B):Q(P)}function F(P){return P===45||P===46||P===58||P===95||hr(P)?(t.consume(P),F):D(P)}function D(P){return P===61?(t.consume(P),I):Ze(P)?(o=D,H(P)):kt(P)?(t.consume(P),D):B(P)}function I(P){return P===null||P===60||P===61||P===62||P===96?r(P):P===34||P===39?(t.consume(P),s=P,z):Ze(P)?(o=I,H(P)):kt(P)?(t.consume(P),I):(t.consume(P),q)}function z(P){return P===s?(t.consume(P),s=void 0,U):P===null?r(P):Ze(P)?(o=z,H(P)):(t.consume(P),z)}function q(P){return P===null||P===34||P===39||P===60||P===61||P===96?r(P):P===47||P===62||nr(P)?B(P):(t.consume(P),q)}function U(P){return P===47||P===62||nr(P)?B(P):r(P)}function Q(P){return P===62?(t.consume(P),t.exit("htmlTextData"),t.exit("htmlText"),n):r(P)}function H(P){return t.exit("htmlTextData"),t.enter("lineEnding"),t.consume(P),t.exit("lineEnding"),K}function K(P){return kt(P)?Mt(t,Y,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(P):Y(P)}function Y(P){return t.enter("htmlTextData"),o(P)}}const wb={name:"labelEnd",resolveAll:TX,resolveTo:OX,tokenize:PX},AX={tokenize:DX},CX={tokenize:IX},EX={tokenize:RX};function TX(t){let n=-1;const r=[];for(;++n<t.length;){const i=t[n][1];if(r.push(t[n]),i.type==="labelImage"||i.type==="labelLink"||i.type==="labelEnd"){const s=i.type==="labelImage"?4:2;i.type="data",n+=s}}return t.length!==r.length&&Ni(t,0,t.length,r),t}function OX(t,n){let r=t.length,i=0,s,a,o,c;for(;r--;)if(s=t[r][1],a){if(s.type==="link"||s.type==="labelLink"&&s._inactive)break;t[r][0]==="enter"&&s.type==="labelLink"&&(s._inactive=!0)}else if(o){if(t[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:t[a][1].type==="labelLink"?"link":"image",start:{...t[a][1].start},end:{...t[t.length-1][1].end}},h={type:"label",start:{...t[a][1].start},end:{...t[o][1].end}},f={type:"labelText",start:{...t[a+i+2][1].end},end:{...t[o-2][1].start}};return c=[["enter",d,n],["enter",h,n]],c=Er(c,t.slice(a+1,a+i+3)),c=Er(c,[["enter",f,n]]),c=Er(c,jb(n.parser.constructs.insideSpan.null,t.slice(a+i+4,o-3),n)),c=Er(c,[["exit",f,n],t[o-2],t[o-1],["exit",h,n]]),c=Er(c,t.slice(o+1)),c=Er(c,[["exit",d,n]]),Ni(t,a,t.length,c),t}function PX(t,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(Xo(i.sliceSerialize({start:a.end,end:i.now()}))),t.enter("labelEnd"),t.enter("labelMarker"),t.consume(p),t.exit("labelMarker"),t.exit("labelEnd"),d):r(p)}function d(p){return p===40?t.attempt(AX,f,o?f:m)(p):p===91?t.attempt(CX,f,o?h:m)(p):o?f(p):m(p)}function h(p){return t.attempt(EX,f,m)(p)}function f(p){return n(p)}function m(p){return a._balanced=!0,r(p)}}function DX(t,n,r){return i;function i(m){return t.enter("resource"),t.enter("resourceMarker"),t.consume(m),t.exit("resourceMarker"),s}function s(m){return nr(m)?Qc(t,a)(m):a(m)}function a(m){return m===41?f(m):g6(t,o,c,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(m)}function o(m){return nr(m)?Qc(t,d)(m):f(m)}function c(m){return r(m)}function d(m){return m===34||m===39||m===40?v6(t,h,r,"resourceTitle","resourceTitleMarker","resourceTitleString")(m):f(m)}function h(m){return nr(m)?Qc(t,f)(m):f(m)}function f(m){return m===41?(t.enter("resourceMarker"),t.consume(m),t.exit("resourceMarker"),t.exit("resource"),n):r(m)}}function IX(t,n,r){const i=this;return s;function s(c){return x6.call(i,t,a,o,"reference","referenceMarker","referenceString")(c)}function a(c){return i.parser.defined.includes(Xo(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)))?n(c):r(c)}function o(c){return r(c)}}function RX(t,n,r){return i;function i(a){return t.enter("reference"),t.enter("referenceMarker"),t.consume(a),t.exit("referenceMarker"),s}function s(a){return a===93?(t.enter("referenceMarker"),t.consume(a),t.exit("referenceMarker"),t.exit("reference"),n):r(a)}}const FX={name:"labelStartImage",resolveAll:wb.resolveAll,tokenize:MX};function MX(t,n,r){const i=this;return s;function s(c){return t.enter("labelImage"),t.enter("labelImageMarker"),t.consume(c),t.exit("labelImageMarker"),a}function a(c){return c===91?(t.enter("labelMarker"),t.consume(c),t.exit("labelMarker"),t.exit("labelImage"),o):r(c)}function o(c){return c===94&&"_hiddenFootnoteSupport"in i.parser.constructs?r(c):n(c)}}const LX={name:"labelStartLink",resolveAll:wb.resolveAll,tokenize:BX};function BX(t,n,r){const i=this;return s;function s(o){return t.enter("labelLink"),t.enter("labelMarker"),t.consume(o),t.exit("labelMarker"),t.exit("labelLink"),a}function a(o){return o===94&&"_hiddenFootnoteSupport"in i.parser.constructs?r(o):n(o)}}const fv={name:"lineEnding",tokenize:zX};function zX(t,n){return r;function r(i){return t.enter("lineEnding"),t.consume(i),t.exit("lineEnding"),Mt(t,n,"linePrefix")}}const Lh={name:"thematicBreak",tokenize:qX};function qX(t,n,r){let i=0,s;return a;function a(h){return t.enter("thematicBreak"),o(h)}function o(h){return s=h,c(h)}function c(h){return h===s?(t.enter("thematicBreakSequence"),d(h)):i>=3&&(h===null||Ze(h))?(t.exit("thematicBreak"),n(h)):r(h)}function d(h){return h===s?(t.consume(h),i++,d):(t.exit("thematicBreakSequence"),kt(h)?Mt(t,c,"whitespace")(h):c(h))}}const Xn={continuation:{tokenize:HX},exit:KX,name:"list",tokenize:$X},VX={partial:!0,tokenize:GX},UX={partial:!0,tokenize:WX};function $X(t,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:z0(g)){if(i.containerState.type||(i.containerState.type=b,t.enter(b,{_container:!0})),b==="listUnordered")return t.enter("listItemPrefix"),g===42||g===45?t.check(Lh,r,h)(g):h(g);if(!i.interrupt||g===49)return t.enter("listItemPrefix"),t.enter("listItemValue"),d(g)}return r(g)}function d(g){return z0(g)&&++o<10?(t.consume(g),d):(!i.interrupt||o<2)&&(i.containerState.marker?g===i.containerState.marker:g===41||g===46)?(t.exit("listItemValue"),h(g)):r(g)}function h(g){return t.enter("listItemMarker"),t.consume(g),t.exit("listItemMarker"),i.containerState.marker=i.containerState.marker||g,t.check(Uf,i.interrupt?r:f,t.attempt(VX,p,m))}function f(g){return i.containerState.initialBlankLine=!0,a++,p(g)}function m(g){return kt(g)?(t.enter("listItemPrefixWhitespace"),t.consume(g),t.exit("listItemPrefixWhitespace"),p):r(g)}function p(g){return i.containerState.size=a+i.sliceSerialize(t.exit("listItemPrefix"),!0).length,n(g)}}function HX(t,n,r){const i=this;return i.containerState._closeFlow=void 0,t.check(Uf,s,a);function s(c){return i.containerState.furtherBlankLines=i.containerState.furtherBlankLines||i.containerState.initialBlankLine,Mt(t,n,"listItemIndent",i.containerState.size+1)(c)}function a(c){return i.containerState.furtherBlankLines||!kt(c)?(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,o(c)):(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,t.attempt(UX,n,o)(c))}function o(c){return i.containerState._closeFlow=!0,i.interrupt=void 0,Mt(t,t.attempt(Xn,n,r),"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(c)}}function WX(t,n,r){const i=this;return Mt(t,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 KX(t){t.exit(this.containerState.type)}function GX(t,n,r){const i=this;return Mt(t,s,"listItemPrefixWhitespace",i.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function s(a){const o=i.events[i.events.length-1];return!kt(a)&&o&&o[1].type==="listItemPrefixWhitespace"?n(a):r(a)}}const IS={name:"setextUnderline",resolveTo:QX,tokenize:YX};function QX(t,n){let r=t.length,i,s,a;for(;r--;)if(t[r][0]==="enter"){if(t[r][1].type==="content"){i=r;break}t[r][1].type==="paragraph"&&(s=r)}else t[r][1].type==="content"&&t.splice(r,1),!a&&t[r][1].type==="definition"&&(a=r);const o={type:"setextHeading",start:{...t[i][1].start},end:{...t[t.length-1][1].end}};return t[s][1].type="setextHeadingText",a?(t.splice(s,0,["enter",o,n]),t.splice(a+1,0,["exit",t[i][1],n]),t[i][1].end={...t[a][1].end}):t[i][1]=o,t.push(["exit",o,n]),t}function YX(t,n,r){const i=this;let s;return a;function a(h){let f=i.events.length,m;for(;f--;)if(i.events[f][1].type!=="lineEnding"&&i.events[f][1].type!=="linePrefix"&&i.events[f][1].type!=="content"){m=i.events[f][1].type==="paragraph";break}return!i.parser.lazy[i.now().line]&&(i.interrupt||m)?(t.enter("setextHeadingLine"),s=h,o(h)):r(h)}function o(h){return t.enter("setextHeadingLineSequence"),c(h)}function c(h){return h===s?(t.consume(h),c):(t.exit("setextHeadingLineSequence"),kt(h)?Mt(t,d,"lineSuffix")(h):d(h))}function d(h){return h===null||Ze(h)?(t.exit("setextHeadingLine"),n(h)):r(h)}}const XX={tokenize:JX};function JX(t){const n=this,r=t.attempt(Uf,i,t.attempt(this.parser.constructs.flowInitial,s,Mt(t,t.attempt(this.parser.constructs.flow,s,t.attempt(rX,s)),"linePrefix")));return r;function i(a){if(a===null){t.consume(a);return}return t.enter("lineEndingBlank"),t.consume(a),t.exit("lineEndingBlank"),n.currentConstruct=void 0,r}function s(a){if(a===null){t.consume(a);return}return t.enter("lineEnding"),t.consume(a),t.exit("lineEnding"),n.currentConstruct=void 0,r}}const ZX={resolveAll:b6()},eJ=y6("string"),tJ=y6("text");function y6(t){return{resolveAll:b6(t==="text"?nJ:void 0),tokenize:n};function n(r){const i=this,s=this.parser.constructs[t],a=r.attempt(s,o,c);return o;function o(f){return h(f)?a(f):c(f)}function c(f){if(f===null){r.consume(f);return}return r.enter("data"),r.consume(f),d}function d(f){return h(f)?(r.exit("data"),a(f)):(r.consume(f),d)}function h(f){if(f===null)return!0;const m=s[f];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 b6(t){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 t?t(r,i):r}}function nJ(t,n){let r=0;for(;++r<=t.length;)if((r===t.length||t[r][1].type==="lineEnding")&&t[r-1][1].type==="data"){const i=t[r-1][1],s=n.sliceStream(i);let a=s.length,o=-1,c=0,d;for(;a--;){const h=s[a];if(typeof h=="string"){for(o=h.length;h.charCodeAt(o-1)===32;)c++,o--;if(o)break;o=-1}else if(h===-2)d=!0,c++;else if(h!==-1){a++;break}}if(n._contentTypeTextTrailing&&r===t.length&&(c=0),c){const h={type:r===t.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={...h.start},i.start.offset===i.end.offset?Object.assign(i,h):(t.splice(r,0,["enter",h,n],["exit",h,n]),r+=2)}r++}return t}const rJ={42:Xn,43:Xn,45:Xn,48:Xn,49:Xn,50:Xn,51:Xn,52:Xn,53:Xn,54:Xn,55:Xn,56:Xn,57:Xn,62:h6},iJ={91:lX},sJ={[-2]:hv,[-1]:hv,32:hv},aJ={35:mX,42:Lh,45:[IS,Lh],60:vX,61:IS,95:Lh,96:PS,126:PS},oJ={38:m6,92:f6},lJ={[-5]:fv,[-4]:fv,[-3]:fv,33:FX,38:m6,42:q0,60:[LY,_X],91:LX,92:[hX,f6],93:wb,95:q0,96:XY},cJ={null:[q0,ZX]},uJ={null:[42,95]},dJ={null:[]},hJ=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:uJ,contentInitial:iJ,disable:dJ,document:rJ,flow:aJ,flowInitial:sJ,insideSpan:cJ,string:oJ,text:lJ},Symbol.toStringTag,{value:"Module"}));function fJ(t,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:k,enter:w,exit:N,interrupt:E(S,{interrupt:!0})},h={code:null,containerState:{},defineSkip:j,events:[],now:b,parser:t,previous:null,sliceSerialize:p,sliceStream:g,write:m};let f=n.tokenize.call(h,d);return n.resolveAll&&a.push(n),h;function m(D){return o=Er(o,D),v(),o[o.length-1]!==null?[]:(C(n,0),h.events=jb(a,h.events,h),h.events)}function p(D,I){return pJ(g(D),I)}function g(D){return mJ(o,D)}function b(){const{_bufferIndex:D,_index:I,line:z,column:q,offset:U}=i;return{_bufferIndex:D,_index:I,line:z,column:q,offset:U}}function j(D){s[D.line]=D.column,F()}function v(){let D;for(;i._index<o.length;){const I=o[i._index];if(typeof I=="string")for(D=i._index,i._bufferIndex<0&&(i._bufferIndex=0);i._index===D&&i._bufferIndex<I.length;)x(I.charCodeAt(i._bufferIndex));else x(I)}}function x(D){f=f(D)}function k(D){Ze(D)?(i.line++,i.column=1,i.offset+=D===-3?2:1,F()):D!==-1&&(i.column++,i.offset++),i._bufferIndex<0?i._index++:(i._bufferIndex++,i._bufferIndex===o[i._index].length&&(i._bufferIndex=-1,i._index++)),h.previous=D}function w(D,I){const z=I||{};return z.type=D,z.start=b(),h.events.push(["enter",z,h]),c.push(z),z}function N(D){const I=c.pop();return I.end=b(),h.events.push(["exit",I,h]),I}function A(D,I){C(D,I.from)}function S(D,I){I.restore()}function E(D,I){return z;function z(q,U,Q){let H,K,Y,P;return Array.isArray(q)?V(q):"tokenize"in q?V([q]):T(q);function T(W){return G;function G(ee){const ne=ee!==null&&W[ee],le=ee!==null&&W.null,ve=[...Array.isArray(ne)?ne:ne?[ne]:[],...Array.isArray(le)?le:le?[le]:[]];return V(ve)(ee)}}function V(W){return H=W,K=0,W.length===0?Q:L(W[K])}function L(W){return G;function G(ee){return P=B(),Y=W,W.partial||(h.currentConstruct=W),W.name&&h.parser.constructs.disable.null.includes(W.name)?J():W.tokenize.call(I?Object.assign(Object.create(h),I):h,d,X,J)(ee)}}function X(W){return D(Y,P),U}function J(W){return P.restore(),++K<H.length?L(H[K]):Q}}}function C(D,I){D.resolveAll&&!a.includes(D)&&a.push(D),D.resolve&&Ni(h.events,I,h.events.length-I,D.resolve(h.events.slice(I),h)),D.resolveTo&&(h.events=D.resolveTo(h.events,h))}function B(){const D=b(),I=h.previous,z=h.currentConstruct,q=h.events.length,U=Array.from(c);return{from:q,restore:Q};function Q(){i=D,h.previous=I,h.currentConstruct=z,h.events.length=q,c=U,F()}}function F(){i.line in s&&i.column<2&&(i.column=s[i.line],i.offset+=s[i.line]-1)}}function mJ(t,n){const r=n.start._index,i=n.start._bufferIndex,s=n.end._index,a=n.end._bufferIndex;let o;if(r===s)o=[t[r].slice(i,a)];else{if(o=t.slice(r,s),i>-1){const c=o[0];typeof c=="string"?o[0]=c.slice(i):o.shift()}a>0&&o.push(t[s].slice(0,a))}return o}function pJ(t,n){let r=-1;const i=[];let s;for(;++r<t.length;){const a=t[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 gJ(t){const i={constructs:kY([hJ,...(t||{}).extensions||[]]),content:s(OY),defined:[],document:s(DY),flow:s(XX),lazy:{},string:s(eJ),text:s(tJ)};return i;function s(a){return o;function o(c){return fJ(i,a,c)}}}function xJ(t){for(;!p6(t););return t}const RS=/[\0\t\n\r]/g;function vJ(){let t=1,n="",r=!0,i;return s;function s(a,o,c){const d=[];let h,f,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(RS.lastIndex=m,h=RS.exec(a),p=h&&h.index!==void 0?h.index:a.length,g=a.charCodeAt(p),!h){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)),t+=p-m),g){case 0:{d.push(65533),t++;break}case 9:{for(f=Math.ceil(t/4)*4,d.push(-2);t++<f;)d.push(-1);break}case 10:{d.push(-4),t=1;break}default:i=!0,t=1}m=p+1}return c&&(i&&d.push(-5),n&&d.push(n),d.push(null)),d}}const yJ=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function bJ(t){return t.replace(yJ,jJ)}function jJ(t,n,r){if(n)return n;if(r.charCodeAt(0)===35){const s=r.charCodeAt(1),a=s===120||s===88;return d6(r.slice(a?2:1),a?16:10)}return bb(r)||t}const j6={}.hasOwnProperty;function wJ(t,n,r){return typeof n!="string"&&(r=n,n=void 0),kJ(r)(xJ(gJ(r).document().write(vJ()(t,n,!0))))}function kJ(t){const n={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:a(ye),autolinkProtocol:B,autolinkEmail:B,atxHeading:a(We),blockQuote:a(le),characterEscape:B,characterReference:B,codeFenced:a(ve),codeFencedFenceInfo:o,codeFencedFenceMeta:o,codeIndented:a(ve,o),codeText:a(be,o),codeTextData:B,data:B,codeFlowValue:B,definition:a(Oe),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(ye),listItem:a(Pe),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:ne,autolinkProtocol:ee,blockQuote:d(),characterEscapeValue:F,characterReferenceMarkerHexadecimal:J,characterReferenceMarkerNumeric:J,characterReferenceValue:W,characterReference:G,codeFenced:d(v),codeFencedFence:j,codeFencedFenceInfo:g,codeFencedFenceMeta:b,codeFlowValue:F,codeIndented:d(x),codeText:d(U),codeTextData:F,data:F,definition:d(),definitionDestinationString:N,definitionLabelString:k,definitionTitleString:w,emphasis:d(),hardBreakEscape:d(I),hardBreakTrailing:d(I),htmlFlow:d(z),htmlFlowData:F,htmlText:d(q),htmlTextData:F,image:d(H),label:Y,labelText:K,lineEnding:D,link:d(Q),listItem:d(),listOrdered:d(),listUnordered:d(),paragraph:d(),referenceString:X,resourceDestinationString:P,resourceTitleString:T,resource:V,setextHeading:d(C),setextHeadingLineSequence:E,setextHeadingText:S,strong:d(),thematicBreak:d()}};w6(n,(t||{}).mdastExtensions||[]);const r={};return i;function i(xe){let _e={type:"root",children:[]};const De={stack:[_e],tokenStack:[],config:n,enter:c,exit:h,buffer:o,resume:f,data:r},it=[];let He=-1;for(;++He<xe.length;)if(xe[He][1].type==="listOrdered"||xe[He][1].type==="listUnordered")if(xe[He][0]==="enter")it.push(He);else{const Nt=it.pop();He=s(xe,Nt,He)}for(He=-1;++He<xe.length;){const Nt=n[xe[He][0]];j6.call(Nt,xe[He][1].type)&&Nt[xe[He][1].type].call(Object.assign({sliceSerialize:xe[He][2].sliceSerialize},De),xe[He][1])}if(De.tokenStack.length>0){const Nt=De.tokenStack[De.tokenStack.length-1];(Nt[1]||FS).call(De,void 0,Nt[0])}for(_e.position={start:_s(xe.length>0?xe[0][1].start:{line:1,column:1,offset:0}),end:_s(xe.length>0?xe[xe.length-2][1].end:{line:1,column:1,offset:0})},He=-1;++He<n.transforms.length;)_e=n.transforms[He](_e)||_e;return _e}function s(xe,_e,De){let it=_e-1,He=-1,Nt=!1,Tr,Un,rs,ia;for(;++it<=De;){const bn=xe[it];switch(bn[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{bn[0]==="enter"?He++:He--,ia=void 0;break}case"lineEndingBlank":{bn[0]==="enter"&&(Tr&&!ia&&!He&&!rs&&(rs=it),ia=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:ia=void 0}if(!He&&bn[0]==="enter"&&bn[1].type==="listItemPrefix"||He===-1&&bn[0]==="exit"&&(bn[1].type==="listUnordered"||bn[1].type==="listOrdered")){if(Tr){let Qr=it;for(Un=void 0;Qr--;){const ir=xe[Qr];if(ir[1].type==="lineEnding"||ir[1].type==="lineEndingBlank"){if(ir[0]==="exit")continue;Un&&(xe[Un][1].type="lineEndingBlank",Nt=!0),ir[1].type="lineEnding",Un=Qr}else if(!(ir[1].type==="linePrefix"||ir[1].type==="blockQuotePrefix"||ir[1].type==="blockQuotePrefixWhitespace"||ir[1].type==="blockQuoteMarker"||ir[1].type==="listItemIndent"))break}rs&&(!Un||rs<Un)&&(Tr._spread=!0),Tr.end=Object.assign({},Un?xe[Un][1].start:bn[1].end),xe.splice(Un||it,0,["exit",Tr,bn[2]]),it++,De++}if(bn[1].type==="listItemPrefix"){const Qr={type:"listItem",_spread:!1,start:Object.assign({},bn[1].start),end:void 0};Tr=Qr,xe.splice(it,0,["enter",Qr,bn[2]]),it++,De++,rs=void 0,ia=!0}}}return xe[_e][1]._spread=Nt,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:_s(_e.start),end:void 0}}function d(xe){return _e;function _e(De){xe&&xe.call(this,De),h.call(this,De)}}function h(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]||FS).call(this,xe,it[0]));else throw new Error("Cannot close `"+xe.type+"` ("+Gc({start:xe.start,end:xe.end})+"): it’s not open");De.position.end=_s(xe.end)}function f(){return jY(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 v(){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 k(xe){const _e=this.resume(),De=this.stack[this.stack.length-1];De.label=_e,De.identifier=Xo(this.sliceSerialize(xe)).toLowerCase()}function w(){const xe=this.resume(),_e=this.stack[this.stack.length-1];_e.title=xe}function N(){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:_s(xe.start),end:void 0},De.push(it)),this.stack.push(it)}function F(xe){const _e=this.stack.pop();_e.value+=this.sliceSerialize(xe),_e.position.end=_s(xe.end)}function D(xe){const _e=this.stack[this.stack.length-1];if(this.data.atHardBreak){const De=_e.children[_e.children.length-1];De.position.end=_s(xe.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&n.canContainEols.includes(_e.type)&&(B.call(this,xe),F.call(this,xe))}function I(){this.data.atHardBreak=!0}function z(){const xe=this.resume(),_e=this.stack[this.stack.length-1];_e.value=xe}function q(){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 Q(){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=bJ(_e),De.identifier=Xo(_e).toLowerCase()}function Y(){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 P(){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=Xo(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=d6(_e,De==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):it=bb(_e);const He=this.stack[this.stack.length-1];He.value+=it}function G(xe){const _e=this.stack.pop();_e.position.end=_s(xe.end)}function ee(xe){F.call(this,xe);const _e=this.stack[this.stack.length-1];_e.url=this.sliceSerialize(xe)}function ne(xe){F.call(this,xe);const _e=this.stack[this.stack.length-1];_e.url="mailto:"+this.sliceSerialize(xe)}function le(){return{type:"blockquote",children:[]}}function ve(){return{type:"code",lang:null,meta:null,value:""}}function be(){return{type:"inlineCode",value:""}}function Oe(){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 ye(){return{type:"link",title:null,url:"",children:[]}}function Se(xe){return{type:"list",ordered:xe.type==="listOrdered",start:null,spread:xe._spread,children:[]}}function Pe(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 _s(t){return{line:t.line,column:t.column,offset:t.offset}}function w6(t,n){let r=-1;for(;++r<n.length;){const i=n[r];Array.isArray(i)?w6(t,i):NJ(t,i)}}function NJ(t,n){let r;for(r in n)if(j6.call(n,r))switch(r){case"canContainEols":{const i=n[r];i&&t[r].push(...i);break}case"transforms":{const i=n[r];i&&t[r].push(...i);break}case"enter":case"exit":{const i=n[r];i&&Object.assign(t[r],i);break}}}function FS(t,n){throw t?new Error("Cannot close `"+t.type+"` ("+Gc({start:t.start,end:t.end})+"): a different token (`"+n.type+"`, "+Gc({start:n.start,end:n.end})+") is open"):new Error("Cannot close document, a token (`"+n.type+"`, "+Gc({start:n.start,end:n.end})+") is still open")}function _J(t){const n=this;n.parser=r;function r(i){return wJ(i,{...n.data("settings"),...t,extensions:n.data("micromarkExtensions")||[],mdastExtensions:n.data("fromMarkdownExtensions")||[]})}}function SJ(t,n){const r={type:"element",tagName:"blockquote",properties:{},children:t.wrap(t.all(n),!0)};return t.patch(n,r),t.applyData(n,r)}function AJ(t,n){const r={type:"element",tagName:"br",properties:{},children:[]};return t.patch(n,r),[t.applyData(n,r),{type:"text",value:`
`}]}function CJ(t,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}),t.patch(n,s),s=t.applyData(n,s),s={type:"element",tagName:"pre",properties:{},children:[s]},t.patch(n,s),s}function EJ(t,n){const r={type:"element",tagName:"del",properties:{},children:t.all(n)};return t.patch(n,r),t.applyData(n,r)}function TJ(t,n){const r={type:"element",tagName:"em",properties:{},children:t.all(n)};return t.patch(n,r),t.applyData(n,r)}function OJ(t,n){const r=typeof t.options.clobberPrefix=="string"?t.options.clobberPrefix:"user-content-",i=String(n.identifier).toUpperCase(),s=Pl(i.toLowerCase()),a=t.footnoteOrder.indexOf(i);let o,c=t.footnoteCounts.get(i);c===void 0?(c=0,t.footnoteOrder.push(i),o=t.footnoteOrder.length):o=a+1,c+=1,t.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)}]};t.patch(n,d);const h={type:"element",tagName:"sup",properties:{},children:[d]};return t.patch(n,h),t.applyData(n,h)}function PJ(t,n){const r={type:"element",tagName:"h"+n.depth,properties:{},children:t.all(n)};return t.patch(n,r),t.applyData(n,r)}function DJ(t,n){if(t.options.allowDangerousHtml){const r={type:"raw",value:n.value};return t.patch(n,r),t.applyData(n,r)}}function k6(t,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=t.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 IJ(t,n){const r=String(n.identifier).toUpperCase(),i=t.definitionById.get(r);if(!i)return k6(t,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 t.patch(n,a),t.applyData(n,a)}function RJ(t,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 t.patch(n,i),t.applyData(n,i)}function FJ(t,n){const r={type:"text",value:n.value.replace(/\r?\n|\r/g," ")};t.patch(n,r);const i={type:"element",tagName:"code",properties:{},children:[r]};return t.patch(n,i),t.applyData(n,i)}function MJ(t,n){const r=String(n.identifier).toUpperCase(),i=t.definitionById.get(r);if(!i)return k6(t,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:t.all(n)};return t.patch(n,a),t.applyData(n,a)}function LJ(t,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:t.all(n)};return t.patch(n,i),t.applyData(n,i)}function BJ(t,n,r){const i=t.all(n),s=r?zJ(r):N6(n),a={},o=[];if(typeof n.checked=="boolean"){const f=i[0];let m;f&&f.type==="element"&&f.tagName==="p"?m=f:(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 f=i[c];(s||c!==0||f.type!=="element"||f.tagName!=="p")&&o.push({type:"text",value:`
`}),f.type==="element"&&f.tagName==="p"&&!s?o.push(...f.children):o.push(f)}const d=i[i.length-1];d&&(s||d.type!=="element"||d.tagName!=="p")&&o.push({type:"text",value:`
`});const h={type:"element",tagName:"li",properties:a,children:o};return t.patch(n,h),t.applyData(n,h)}function zJ(t){let n=!1;if(t.type==="list"){n=t.spread||!1;const r=t.children;let i=-1;for(;!n&&++i<r.length;)n=N6(r[i])}return n}function N6(t){const n=t.spread;return n??t.children.length>1}function qJ(t,n){const r={},i=t.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:t.wrap(i,!0)};return t.patch(n,a),t.applyData(n,a)}function VJ(t,n){const r={type:"element",tagName:"p",properties:{},children:t.all(n)};return t.patch(n,r),t.applyData(n,r)}function UJ(t,n){const r={type:"root",children:t.wrap(t.all(n))};return t.patch(n,r),t.applyData(n,r)}function $J(t,n){const r={type:"element",tagName:"strong",properties:{},children:t.all(n)};return t.patch(n,r),t.applyData(n,r)}function HJ(t,n){const r=t.all(n),i=r.shift(),s=[];if(i){const o={type:"element",tagName:"thead",properties:{},children:t.wrap([i],!0)};t.patch(n.children[0],o),s.push(o)}if(r.length>0){const o={type:"element",tagName:"tbody",properties:{},children:t.wrap(r,!0)},c=gb(n.children[1]),d=i6(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:t.wrap(s,!0)};return t.patch(n,a),t.applyData(n,a)}function WJ(t,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 h=[];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=t.all(m),t.patch(m,b),b=t.applyData(m,b)),h.push(b)}const f={type:"element",tagName:"tr",properties:{},children:t.wrap(h,!0)};return t.patch(n,f),t.applyData(n,f)}function KJ(t,n){const r={type:"element",tagName:"td",properties:{},children:t.all(n)};return t.patch(n,r),t.applyData(n,r)}const MS=9,LS=32;function GJ(t){const n=String(t),r=/\r?\n|\r/g;let i=r.exec(n),s=0;const a=[];for(;i;)a.push(BS(n.slice(s,i.index),s>0,!0),i[0]),s=i.index+i[0].length,i=r.exec(n);return a.push(BS(n.slice(s),s>0,!1)),a.join("")}function BS(t,n,r){let i=0,s=t.length;if(n){let a=t.codePointAt(i);for(;a===MS||a===LS;)i++,a=t.codePointAt(i)}if(r){let a=t.codePointAt(s-1);for(;a===MS||a===LS;)s--,a=t.codePointAt(s-1)}return s>i?t.slice(i,s):""}function QJ(t,n){const r={type:"text",value:GJ(String(n.value))};return t.patch(n,r),t.applyData(n,r)}function YJ(t,n){const r={type:"element",tagName:"hr",properties:{},children:[]};return t.patch(n,r),t.applyData(n,r)}const XJ={blockquote:SJ,break:AJ,code:CJ,delete:EJ,emphasis:TJ,footnoteReference:OJ,heading:PJ,html:DJ,imageReference:IJ,image:RJ,inlineCode:FJ,linkReference:MJ,link:LJ,listItem:BJ,list:qJ,paragraph:VJ,root:UJ,strong:$J,table:HJ,tableCell:KJ,tableRow:WJ,text:QJ,thematicBreak:YJ,toml:gh,yaml:gh,definition:gh,footnoteDefinition:gh};function gh(){}const _6=-1,$f=0,Yc=1,sf=2,kb=3,Nb=4,_b=5,Sb=6,S6=7,A6=8,zS=typeof self=="object"?self:globalThis,JJ=(t,n)=>{const r=(s,a)=>(t.set(a,s),s),i=s=>{if(t.has(s))return t.get(s);const[a,o]=n[s];switch(a){case $f:case _6:return r(o,s);case Yc:{const c=r([],s);for(const d of o)c.push(i(d));return c}case sf:{const c=r({},s);for(const[d,h]of o)c[i(d)]=i(h);return c}case kb:return r(new Date(o),s);case Nb:{const{source:c,flags:d}=o;return r(new RegExp(c,d),s)}case _b:{const c=r(new Map,s);for(const[d,h]of o)c.set(i(d),i(h));return c}case Sb:{const c=r(new Set,s);for(const d of o)c.add(i(d));return c}case S6:{const{name:c,message:d}=o;return r(new zS[c](d),s)}case A6: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 zS[a](o),s)};return i},qS=t=>JJ(new Map,t)(0),Fo="",{toString:ZJ}={},{keys:eZ}=Object,Cc=t=>{const n=typeof t;if(n!=="object"||!t)return[$f,n];const r=ZJ.call(t).slice(8,-1);switch(r){case"Array":return[Yc,Fo];case"Object":return[sf,Fo];case"Date":return[kb,Fo];case"RegExp":return[Nb,Fo];case"Map":return[_b,Fo];case"Set":return[Sb,Fo];case"DataView":return[Yc,r]}return r.includes("Array")?[Yc,r]:r.includes("Error")?[S6,r]:[sf,r]},xh=([t,n])=>t===$f&&(n==="function"||n==="symbol"),tZ=(t,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]=Cc(o);switch(c){case $f:{let f=o;switch(d){case"bigint":c=A6,f=o.toString();break;case"function":case"symbol":if(t)throw new TypeError("unable to serialize "+d);f=null;break;case"undefined":return s([_6],o)}return s([c,f],o)}case Yc:{if(d){let p=o;return d==="DataView"?p=new Uint8Array(o.buffer):d==="ArrayBuffer"&&(p=new Uint8Array(o)),s([d,[...p]],o)}const f=[],m=s([c,f],o);for(const p of o)f.push(a(p));return m}case sf:{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 f=[],m=s([c,f],o);for(const p of eZ(o))(t||!xh(Cc(o[p])))&&f.push([a(p),a(o[p])]);return m}case kb:return s([c,o.toISOString()],o);case Nb:{const{source:f,flags:m}=o;return s([c,{source:f,flags:m}],o)}case _b:{const f=[],m=s([c,f],o);for(const[p,g]of o)(t||!(xh(Cc(p))||xh(Cc(g))))&&f.push([a(p),a(g)]);return m}case Sb:{const f=[],m=s([c,f],o);for(const p of o)(t||!xh(Cc(p)))&&f.push(a(p));return m}}const{message:h}=o;return s([c,{name:d,message:h}],o)};return a},VS=(t,{json:n,lossy:r}={})=>{const i=[];return tZ(!(n||r),!!n,new Map,i)(t),i},af=typeof structuredClone=="function"?(t,n)=>n&&("json"in n||"lossy"in n)?qS(VS(t,n)):structuredClone(t):(t,n)=>qS(VS(t,n));function nZ(t,n){const r=[{type:"text",value:"↩"}];return n>1&&r.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(n)}]}),r}function rZ(t,n){return"Back to reference "+(t+1)+(n>1?"-"+n:"")}function iZ(t){const n=typeof t.options.clobberPrefix=="string"?t.options.clobberPrefix:"user-content-",r=t.options.footnoteBackContent||nZ,i=t.options.footnoteBackLabel||rZ,s=t.options.footnoteLabel||"Footnotes",a=t.options.footnoteLabelTagName||"h2",o=t.options.footnoteLabelProperties||{className:["sr-only"]},c=[];let d=-1;for(;++d<t.footnoteOrder.length;){const h=t.footnoteById.get(t.footnoteOrder[d]);if(!h)continue;const f=t.all(h),m=String(h.identifier).toUpperCase(),p=Pl(m.toLowerCase());let g=0;const b=[],j=t.footnoteCounts.get(m);for(;j!==void 0&&++g<=j;){b.length>0&&b.push({type:"text",value:" "});let k=typeof r=="string"?r:r(d,g);typeof k=="string"&&(k={type:"text",value:k}),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(k)?k:[k]})}const v=f[f.length-1];if(v&&v.type==="element"&&v.tagName==="p"){const k=v.children[v.children.length-1];k&&k.type==="text"?k.value+=" ":v.children.push({type:"text",value:" "}),v.children.push(...b)}else f.push(...b);const x={type:"element",tagName:"li",properties:{id:n+"fn-"+p},children:t.wrap(f,!0)};t.patch(h,x),c.push(x)}if(c.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:a,properties:{...af(o),id:"footnote-label"},children:[{type:"text",value:s}]},{type:"text",value:`
`},{type:"element",tagName:"ol",properties:{},children:t.wrap(c,!0)},{type:"text",value:`
`}]}}const C6=(function(t){if(t==null)return lZ;if(typeof t=="function")return Hf(t);if(typeof t=="object")return Array.isArray(t)?sZ(t):aZ(t);if(typeof t=="string")return oZ(t);throw new Error("Expected function, string, or object as test")});function sZ(t){const n=[];let r=-1;for(;++r<t.length;)n[r]=C6(t[r]);return Hf(i);function i(...s){let a=-1;for(;++a<n.length;)if(n[a].apply(this,s))return!0;return!1}}function aZ(t){const n=t;return Hf(r);function r(i){const s=i;let a;for(a in t)if(s[a]!==n[a])return!1;return!0}}function oZ(t){return Hf(n);function n(r){return r&&r.type===t}}function Hf(t){return n;function n(r,i,s){return!!(cZ(r)&&t.call(this,r,typeof i=="number"?i:void 0,s||void 0))}}function lZ(){return!0}function cZ(t){return t!==null&&typeof t=="object"&&"type"in t}const E6=[],uZ=!0,US=!1,dZ="skip";function hZ(t,n,r,i){let s;typeof n=="function"&&typeof r!="function"?(i=r,r=n):s=n;const a=C6(s),o=i?-1:1;c(t,void 0,[])();function c(d,h,f){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=E6,b,j,v;if((!n||a(d,h,f[f.length-1]||void 0))&&(g=fZ(r(d,f)),g[0]===US))return g;if("children"in d&&d.children){const x=d;if(x.children&&g[0]!==dZ)for(j=(i?x.children.length:-1)+o,v=f.concat(x);j>-1&&j<x.children.length;){const k=x.children[j];if(b=c(k,j,v)(),b[0]===US)return b;j=typeof b[1]=="number"?b[1]:j+o}}return g}}}function fZ(t){return Array.isArray(t)?t:typeof t=="number"?[uZ,t]:t==null?E6:[t]}function T6(t,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),hZ(t,a,c,s);function c(d,h){const f=h[h.length-1],m=f?f.children.indexOf(d):void 0;return o(d,m,f)}}const V0={}.hasOwnProperty,mZ={};function pZ(t,n){const r=n||mZ,i=new Map,s=new Map,a=new Map,o={...XJ,...r.handlers},c={all:h,applyData:xZ,definitionById:i,footnoteById:s,footnoteCounts:a,footnoteOrder:[],handlers:o,one:d,options:r,patch:gZ,wrap:yZ};return T6(t,function(f){if(f.type==="definition"||f.type==="footnoteDefinition"){const m=f.type==="definition"?i:s,p=String(f.identifier).toUpperCase();m.has(p)||m.set(p,f)}}),c;function d(f,m){const p=f.type,g=c.handlers[p];if(V0.call(c.handlers,p)&&g)return g(c,f,m);if(c.options.passThrough&&c.options.passThrough.includes(p)){if("children"in f){const{children:j,...v}=f,x=af(v);return x.children=c.all(f),x}return af(f)}return(c.options.unknownHandler||vZ)(c,f,m)}function h(f){const m=[];if("children"in f){const p=f.children;let g=-1;for(;++g<p.length;){const b=c.one(p[g],f);if(b){if(g&&p[g-1].type==="break"&&(!Array.isArray(b)&&b.type==="text"&&(b.value=$S(b.value)),!Array.isArray(b)&&b.type==="element")){const j=b.children[0];j&&j.type==="text"&&(j.value=$S(j.value))}Array.isArray(b)?m.push(...b):m.push(b)}}}return m}}function gZ(t,n){t.position&&(n.position=ZQ(t))}function xZ(t,n){let r=n;if(t&&t.data){const i=t.data.hName,s=t.data.hChildren,a=t.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,af(a)),"children"in r&&r.children&&s!==null&&s!==void 0&&(r.children=s)}return r}function vZ(t,n){const r=n.data||{},i="value"in n&&!(V0.call(r,"hProperties")||V0.call(r,"hChildren"))?{type:"text",value:n.value}:{type:"element",tagName:"div",properties:{},children:t.all(n)};return t.patch(n,i),t.applyData(n,i)}function yZ(t,n){const r=[];let i=-1;for(n&&r.push({type:"text",value:`
`});++i<t.length;)i&&r.push({type:"text",value:`
`}),r.push(t[i]);return n&&t.length>0&&r.push({type:"text",value:`
`}),r}function $S(t){let n=0,r=t.charCodeAt(n);for(;r===9||r===32;)n++,r=t.charCodeAt(n);return t.slice(n)}function HS(t,n){const r=pZ(t,n),i=r.one(t,void 0),s=iZ(r),a=Array.isArray(i)?{type:"root",children:i}:i||{type:"root",children:[]};return s&&a.children.push({type:"text",value:`
`},s),a}function bZ(t,n){return t&&"run"in t?async function(r,i){const s=HS(r,{file:i,...n});await t.run(s,i)}:function(r,i){return HS(r,{file:i,...t||n})}}function WS(t){if(t)throw t}var mv,KS;function jZ(){if(KS)return mv;KS=1;var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=Object.defineProperty,i=Object.getOwnPropertyDescriptor,s=function(h){return typeof Array.isArray=="function"?Array.isArray(h):n.call(h)==="[object Array]"},a=function(h){if(!h||n.call(h)!=="[object Object]")return!1;var f=t.call(h,"constructor"),m=h.constructor&&h.constructor.prototype&&t.call(h.constructor.prototype,"isPrototypeOf");if(h.constructor&&!f&&!m)return!1;var p;for(p in h);return typeof p>"u"||t.call(h,p)},o=function(h,f){r&&f.name==="__proto__"?r(h,f.name,{enumerable:!0,configurable:!0,value:f.newValue,writable:!0}):h[f.name]=f.newValue},c=function(h,f){if(f==="__proto__")if(t.call(h,f)){if(i)return i(h,f).value}else return;return h[f]};return mv=function d(){var h,f,m,p,g,b,j=arguments[0],v=1,x=arguments.length,k=!1;for(typeof j=="boolean"&&(k=j,j=arguments[1]||{},v=2),(j==null||typeof j!="object"&&typeof j!="function")&&(j={});v<x;++v)if(h=arguments[v],h!=null)for(f in h)m=c(j,f),p=c(h,f),j!==p&&(k&&p&&(a(p)||(g=s(p)))?(g?(g=!1,b=m&&s(m)?m:[]):b=m&&a(m)?m:{},o(j,{name:f,newValue:d(k,b,p)})):typeof p<"u"&&o(j,{name:f,newValue:p}));return j},mv}var wZ=jZ();const pv=_i(wZ);function U0(t){if(typeof t!="object"||t===null)return!1;const n=Object.getPrototypeOf(t);return(n===null||n===Object.prototype||Object.getPrototypeOf(n)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)}function kZ(){const t=[],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,...h){const f=t[++a];let m=-1;if(d){o(d);return}for(;++m<s.length;)(h[m]===null||h[m]===void 0)&&(h[m]=s[m]);s=h,f?NZ(f,c)(...h):o(null,...h)}}function i(s){if(typeof s!="function")throw new TypeError("Expected `middelware` to be a function, not "+s);return t.push(s),n}}function NZ(t,n){let r;return i;function i(...o){const c=t.length>o.length;let d;c&&o.push(s);try{d=t.apply(this,o)}catch(h){const f=h;if(c&&r)throw f;return s(f)}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:_Z,dirname:SZ,extname:AZ,join:CZ,sep:"/"};function _Z(t,n){if(n!==void 0&&typeof n!="string")throw new TypeError('"ext" argument must be a string');qu(t);let r=0,i=-1,s=t.length,a;if(n===void 0||n.length===0||n.length>t.length){for(;s--;)if(t.codePointAt(s)===47){if(a){r=s+1;break}}else i<0&&(a=!0,i=s+1);return i<0?"":t.slice(r,i)}if(n===t)return"";let o=-1,c=n.length-1;for(;s--;)if(t.codePointAt(s)===47){if(a){r=s+1;break}}else o<0&&(a=!0,o=s+1),c>-1&&(t.codePointAt(s)===n.codePointAt(c--)?c<0&&(i=s):(c=-1,i=o));return r===i?i=o:i<0&&(i=t.length),t.slice(r,i)}function SZ(t){if(qu(t),t.length===0)return".";let n=-1,r=t.length,i;for(;--r;)if(t.codePointAt(r)===47){if(i){n=r;break}}else i||(i=!0);return n<0?t.codePointAt(0)===47?"/":".":n===1&&t.codePointAt(0)===47?"//":t.slice(0,n)}function AZ(t){qu(t);let n=t.length,r=-1,i=0,s=-1,a=0,o;for(;n--;){const c=t.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?"":t.slice(s,r)}function CZ(...t){let n=-1,r;for(;++n<t.length;)qu(t[n]),t[n]&&(r=r===void 0?t[n]:r+"/"+t[n]);return r===void 0?".":EZ(r)}function EZ(t){qu(t);const n=t.codePointAt(0)===47;let r=TZ(t,!n);return r.length===0&&!n&&(r="."),r.length>0&&t.codePointAt(t.length-1)===47&&(r+="/"),n?"/"+r:r}function TZ(t,n){let r="",i=0,s=-1,a=0,o=-1,c,d;for(;++o<=t.length;){if(o<t.length)c=t.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+="/"+t.slice(s+1,o):r=t.slice(s+1,o),i=o-s-1;s=o,a=0}else c===46&&a>-1?a++:a=-1}return r}function qu(t){if(typeof t!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(t))}const OZ={cwd:PZ};function PZ(){return"/"}function $0(t){return!!(t!==null&&typeof t=="object"&&"href"in t&&t.href&&"protocol"in t&&t.protocol&&t.auth===void 0)}function DZ(t){if(typeof t=="string")t=new URL(t);else if(!$0(t)){const n=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+t+"`");throw n.code="ERR_INVALID_ARG_TYPE",n}if(t.protocol!=="file:"){const n=new TypeError("The URL must be of scheme file");throw n.code="ERR_INVALID_URL_SCHEME",n}return IZ(t)}function IZ(t){if(t.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=t.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 gv=["history","path","basename","stem","extname","dirname"];class O6{constructor(n){let r;n?$0(n)?r={path:n}:typeof n=="string"||RZ(n)?r={value:n}:r=n:r={},this.cwd="cwd"in r?"":OZ.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let i=-1;for(;++i<gv.length;){const a=gv[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)gv.includes(s)||(this[s]=r[s])}get basename(){return typeof this.path=="string"?ni.basename(this.path):void 0}set basename(n){vv(n,"basename"),xv(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){GS(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(xv(n,"extname"),GS(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){$0(n)&&(n=DZ(n)),vv(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){vv(n,"stem"),xv(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 Fn(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 xv(t,n){if(t&&t.includes(ni.sep))throw new Error("`"+n+"` cannot be a path: did not expect `"+ni.sep+"`")}function vv(t,n){if(!t)throw new Error("`"+n+"` cannot be empty")}function GS(t,n){if(!t)throw new Error("Setting `"+n+"` requires `path` to be set too")}function RZ(t){return!!(t&&typeof t=="object"&&"byteLength"in t&&"byteOffset"in t)}const FZ=(function(t){const i=this.constructor.prototype,s=i[t],a=function(){return s.apply(a,arguments)};return Object.setPrototypeOf(a,i),a}),MZ={}.hasOwnProperty;class Ab extends FZ{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=kZ()}copy(){const n=new Ab;let r=-1;for(;++r<this.attachers.length;){const i=this.attachers[r];n.use(...i)}return n.data(pv(!0,{},this.namespace)),n}data(n,r){return typeof n=="string"?arguments.length===2?(jv("data",this.frozen),this.namespace[n]=r,this):MZ.call(this.namespace,n)&&this.namespace[n]||void 0:n?(jv("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=vh(n),i=this.parser||this.Parser;return yv("parse",i),i(String(r),r)}process(n,r){const i=this;return this.freeze(),yv("process",this.parser||this.Parser),bv("process",this.compiler||this.Compiler),r?s(void 0,r):new Promise(s);function s(a,o){const c=vh(n),d=i.parse(c);i.run(d,c,function(f,m,p){if(f||!m||!p)return h(f);const g=m,b=i.stringify(g,p);zZ(b)?p.value=b:p.result=b,h(f,p)});function h(f,m){f||!m?o(f):a?a(m):r(void 0,m)}}}processSync(n){let r=!1,i;return this.freeze(),yv("processSync",this.parser||this.Parser),bv("processSync",this.compiler||this.Compiler),this.process(n,s),YS("processSync","process",r),i;function s(a,o){r=!0,WS(a),i=o}}run(n,r,i){QS(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=vh(r);s.run(n,d,h);function h(f,m,p){const g=m||n;f?c(f):o?o(g):i(void 0,g,p)}}}runSync(n,r){let i=!1,s;return this.run(n,r,a),YS("runSync","run",i),s;function a(o,c){WS(o),s=c,i=!0}}stringify(n,r){this.freeze();const i=vh(r),s=this.compiler||this.Compiler;return bv("stringify",s),QS(n),s(n,i)}use(n,...r){const i=this.attachers,s=this.namespace;if(jv("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(h){if(typeof h=="function")d(h,[]);else if(typeof h=="object")if(Array.isArray(h)){const[f,...m]=h;d(f,m)}else o(h);else throw new TypeError("Expected usable value, not `"+h+"`")}function o(h){if(!("plugins"in h)&&!("settings"in h))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(h.plugins),h.settings&&(s.settings=pv(!0,s.settings,h.settings))}function c(h){let f=-1;if(h!=null)if(Array.isArray(h))for(;++f<h.length;){const m=h[f];a(m)}else throw new TypeError("Expected a list of plugins, not `"+h+"`")}function d(h,f){let m=-1,p=-1;for(;++m<i.length;)if(i[m][0]===h){p=m;break}if(p===-1)i.push([h,...f]);else if(f.length>0){let[g,...b]=f;const j=i[p][1];U0(j)&&U0(g)&&(g=pv(!0,j,g)),i[p]=[h,g,...b]}}}}const LZ=new Ab().freeze();function yv(t,n){if(typeof n!="function")throw new TypeError("Cannot `"+t+"` without `parser`")}function bv(t,n){if(typeof n!="function")throw new TypeError("Cannot `"+t+"` without `compiler`")}function jv(t,n){if(n)throw new Error("Cannot call `"+t+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function QS(t){if(!U0(t)||typeof t.type!="string")throw new TypeError("Expected node, got `"+t+"`")}function YS(t,n,r){if(!r)throw new Error("`"+t+"` finished async. Use `"+n+"` instead")}function vh(t){return BZ(t)?t:new O6(t)}function BZ(t){return!!(t&&typeof t=="object"&&"message"in t&&"messages"in t)}function zZ(t){return typeof t=="string"||qZ(t)}function qZ(t){return!!(t&&typeof t=="object"&&"byteLength"in t&&"byteOffset"in t)}const VZ="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",XS=[],JS={allowDangerousHtml:!0},UZ=/^(https?|ircs?|mailto|xmpp)$/i,$Z=[{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 Vu(t){const n=HZ(t),r=WZ(t);return KZ(n.runSync(n.parse(r),r),t)}function HZ(t){const n=t.rehypePlugins||XS,r=t.remarkPlugins||XS,i=t.remarkRehypeOptions?{...t.remarkRehypeOptions,...JS}:JS;return LZ().use(_J).use(r).use(bZ,i).use(n)}function WZ(t){const n=t.children||"",r=new O6;return typeof n=="string"&&(r.value=n),r}function KZ(t,n){const r=n.allowedElements,i=n.allowElement,s=n.components,a=n.disallowedElements,o=n.skipHtml,c=n.unwrapDisallowed,d=n.urlTransform||GZ;for(const f of $Z)Object.hasOwn(n,f.from)&&(""+f.from+(f.to?"use `"+f.to+"` instead":"remove it")+VZ+f.id,void 0);return n.className&&(t={type:"element",tagName:"div",properties:{className:n.className},children:t.type==="root"?t.children:[t]}),T6(t,h),iY(t,{Fragment:e.Fragment,components:s,ignoreInvalidStyle:!0,jsx:e.jsx,jsxs:e.jsxs,passKeys:!0,passNode:!0});function h(f,m,p){if(f.type==="raw"&&p&&typeof m=="number")return o?p.children.splice(m,1):p.children[m]={type:"text",value:f.value},m;if(f.type==="element"){let g;for(g in dv)if(Object.hasOwn(dv,g)&&Object.hasOwn(f.properties,g)){const b=f.properties[g],j=dv[g];(j===null||j.includes(f.tagName))&&(f.properties[g]=d(String(b||""),g,f))}}if(f.type==="element"){let g=r?!r.includes(f.tagName):a?a.includes(f.tagName):!1;if(!g&&i&&typeof m=="number"&&(g=!i(f,m,p)),g&&p&&typeof m=="number")return c&&f.children?p.children.splice(m,1,...f.children):p.children.splice(m,1),m}}}function GZ(t){const n=t.indexOf(":"),r=t.indexOf("?"),i=t.indexOf("#"),s=t.indexOf("/");return n===-1||s!==-1&&n>s||r!==-1&&n>r||i!==-1&&n>i||UZ.test(t.slice(0,n))?t:""}function QZ(){var o,c;const n=new URLSearchParams(window.location.search).get("slug"),{data:r=[],isLoading:i}=Fe({queryKey:["blog",n],queryFn:()=>ce.entities.BlogPost.filter({slug:n,published:!0}),enabled:!!n}),s=r[0];if(i)return e.jsx("div",{className:"pt-20 min-h-screen flex items-center justify-center bg-white",children:e.jsx("div",{className:"inline-block animate-spin rounded-full h-12 w-12 border-b-2 border-[#FAB868]"})});if(!s)return e.jsx("div",{className:"pt-20 min-h-screen flex items-center justify-center bg-white",children:e.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 e.jsxs("div",{className:"pt-20 bg-white",children:[e.jsxs(xl,{children:[e.jsx("title",{children:s.meta_title||`${s.title} - 48-7 Blog`}),e.jsx("meta",{name:"description",content:s.meta_description||s.excerpt}),s.meta_keywords&&e.jsx("meta",{name:"keywords",content:s.meta_keywords}),s.canonical_url&&e.jsx("link",{rel:"canonical",href:s.canonical_url}),e.jsx("meta",{property:"og:title",content:s.title}),e.jsx("meta",{property:"og:description",content:s.excerpt}),e.jsx("meta",{property:"og:type",content:"article"}),s.image_url&&e.jsx("meta",{property:"og:image",content:s.image_url}),e.jsx("meta",{name:"twitter:card",content:"summary_large_image"}),e.jsx("meta",{name:"twitter:title",content:s.title}),e.jsx("meta",{name:"twitter:description",content:s.excerpt}),s.image_url&&e.jsx("meta",{name:"twitter:image",content:s.image_url}),e.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"}}})})]}),e.jsxs("section",{className:"relative overflow-hidden py-20 bg-[#F4F4F4]",children:[s.image_url&&e.jsx("img",{src:s.image_url,alt:s.title,className:"absolute inset-0 w-full h-full object-cover opacity-30"}),e.jsx("div",{className:"relative max-w-4xl mx-auto px-4 sm:px-6 lg:px-8",children:e.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},children:[e.jsxs(de,{to:se("Blog"),className:"inline-flex items-center text-[#0D0D0F] hover:text-[#FAB868] transition-colors mb-6",children:[e.jsx(ht,{className:"w-4 h-4 mr-2"})," Terug naar Blog"]}),e.jsx("h1",{className:"text-5xl sm:text-6xl font-bold text-[#0D0D0F] mb-6 leading-tight",children:s.title}),e.jsx("p",{className:"text-xl text-[#9CA3AF] mb-8",children:s.excerpt}),e.jsxs("div",{className:"flex flex-wrap items-center gap-x-6 gap-y-2 text-base text-[#0D0D0F]",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(gD,{className:"w-5 h-5 text-[#FAB868]"}),e.jsx("span",{children:s.author||"48-7 Team"})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(k3,{className:"w-5 h-5 text-[#FAB868]"}),e.jsx("span",{children:s.published_date?new Date(s.published_date).toLocaleDateString("nl-NL"):""})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(vn,{className:"w-5 h-5 text-[#FAB868]"}),e.jsx("span",{children:s.read_time})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(aD,{className:"w-5 h-5 text-[#FAB868]"}),e.jsx("span",{children:s.category})]})]})]})})]}),e.jsx("section",{className:"py-20",children:e.jsx("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8",children:e.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?e.jsx("div",{dangerouslySetInnerHTML:{__html:s.content}}):e.jsx(Vu,{children:s.content})})})}),e.jsx("section",{className:"py-20 bg-[#F4F4F4]",children:e.jsxs("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 text-center",children:[e.jsx("h2",{className:"text-5xl font-bold text-[#0D0D0F] mb-6",children:"Meer lezen?"}),e.jsxs(de,{to:se("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:[e.jsx(Va,{className:"w-5 h-5"}),"Ga naar Blog",e.jsx($e,{className:"w-5 h-5"})]})]})})]})}function Wf({variant:t="default"}){const[n,r]=R.useState(""),[i,s]=R.useState(!1),a=wl(),o=async c=>{if(c.preventDefault(),!n)return;const d=n.replace(/^(https?:\/\/)?(www\.)?/,"").replace(/\/$/,"");a(se("AIImpactRapport")+`?url=${encodeURIComponent(d)}`)};return t==="compact"?e.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"bg-[#F4F4F4] rounded-3xl p-8",children:[e.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[e.jsx("div",{className:"w-12 h-12 bg-[#FAB868] rounded-full flex items-center justify-center",children:e.jsx(ui,{className:"w-6 h-6 text-[#0D0D0F]"})}),e.jsxs("div",{children:[e.jsx("h3",{className:"text-xl font-bold text-[#0D0D0F]",children:"Gratis AI Impact Analyse"}),e.jsx("p",{className:"text-[#9CA3AF] text-sm",children:"Ontdek je potentieel in 60 seconden"})]})]}),e.jsxs("form",{onSubmit:o,className:"flex gap-3",children:[e.jsx(me,{type:"text",placeholder:"jouwbedrijf.nl",value:n,onChange:c=>r(c.target.value),required:!0,className:"flex-1"}),e.jsx(ae,{type:"submit",disabled:i,className:"bg-[#FAB868] text-[#0D0D0F] hover:bg-[#E5A04D] font-semibold",children:i?"...":e.jsx($e,{className:"w-5 h-5"})})]})]}):e.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:e.jsxs("div",{className:"relative z-10",children:[e.jsxs("div",{className:"flex items-center gap-4 mb-6",children:[e.jsx("div",{className:"w-16 h-16 bg-[#0D0D0F] rounded-full flex items-center justify-center",children:e.jsx(At,{className:"w-8 h-8 text-white"})}),e.jsx("div",{children:e.jsx("h2",{className:"text-3xl md:text-4xl font-bold text-[#0D0D0F]",children:"Gratis AI Impact Rapport van jouw bedrijf"})})]}),e.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."}),e.jsxs("form",{onSubmit:o,className:"flex flex-col sm:flex-row gap-4",children:[e.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"}),e.jsx(ae,{type:"submit",disabled:i,className:"px-8 py-6 bg-[#0D0D0F] text-white hover:bg-[#1a1a1c] font-bold text-lg",children:i?e.jsxs("span",{className:"flex items-center gap-2",children:[e.jsxs("svg",{className:"animate-spin w-5 h-5",viewBox:"0 0 24 24",children:[e.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4",fill:"none"}),e.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4z"})]}),"Analyseren..."]}):e.jsxs("span",{className:"flex items-center gap-2",children:[e.jsx(At,{className:"w-5 h-5"}),"Genereer rapport"]})})]}),e.jsx("p",{className:"text-sm text-[#0D0D0F]/70 mt-4",children:"✓ 100% gratis • ✓ Geen verplichtingen • ✓ Direct resultaat"})]})})}function YZ(){const[t,n]=R.useState("all"),{data:r=[],isLoading:i}=Fe({queryKey:["cases"],queryFn:()=>ce.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=t==="all"?r:r.filter(o=>o.case_type===t);return e.jsxs("div",{className:"pt-20",children:[e.jsx("section",{className:"py-20 bg-gradient-to-b from-gray-50 to-white",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[e.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"text-center max-w-3xl mx-auto",children:[e.jsx("h1",{className:"text-4xl sm:text-5xl font-bold text-gray-900 mb-6",children:"Resultaten die spreken"}),e.jsx("p",{className:"text-xl text-gray-600",children:"Bekijk hoe wij MKB-bedrijven helpen hun productiviteit te verdubbelen met AI"})]}),e.jsx(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.2},className:"mt-12 flex justify-center",children:e.jsxs(de,{to:se("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:[e.jsx("span",{className:"text-sm font-bold text-[#0D0D0F]",children:"Ontdek jouw AI-kansen"}),e.jsx($e,{className:"w-4 h-4 text-[#0D0D0F]"})]})})]})}),e.jsx("section",{className:"py-8 border-b border-gray-100 bg-white",children:e.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:e.jsxs("div",{className:"flex items-center gap-2 overflow-x-auto pb-2",children:[e.jsx(cf,{className:"w-5 h-5 text-gray-400 flex-shrink-0"}),s.map(o=>e.jsx("button",{onClick:()=>n(o.id),className:`px-4 py-2 rounded-full text-sm font-medium whitespace-nowrap transition-all ${t===o.id?"bg-gray-900 text-white":"bg-gray-100 text-gray-700 hover:bg-gray-200"}`,children:o.label},o.id))]})})}),e.jsx("section",{className:"py-16",children:e.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:i?e.jsx("div",{className:"text-center py-12",children:e.jsx("div",{className:"inline-block w-8 h-8 border-4 border-blue-600 border-t-transparent rounded-full animate-spin"})}):a.length===0?e.jsx("div",{className:"text-center py-12",children:e.jsx("p",{className:"text-gray-600",children:"Geen cases gevonden"})}):e.jsx("div",{className:"space-y-16",children:a.map((o,c)=>e.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:e.jsxs("div",{className:"grid lg:grid-cols-2",children:[e.jsxs("div",{className:"relative h-64 lg:h-auto",children:[o.featured_image_url&&e.jsx("img",{src:o.featured_image_url,alt:o.client_name,className:"w-full h-full object-cover"}),e.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-black/60 to-transparent lg:bg-gradient-to-r"}),e.jsxs("div",{className:"absolute bottom-6 left-6 text-white",children:[e.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)}),e.jsx("h2",{className:"text-2xl font-bold",children:o.client_name}),e.jsx("p",{className:"text-white/80",children:o.industry})]})]}),e.jsxs("div",{className:"p-4 sm:p-8 lg:p-12",children:[o.homepage_usp&&e.jsx("div",{className:"mb-6",children:e.jsxs("div",{className:"flex items-center gap-2 text-green-600",children:[e.jsx(Ki,{className:"w-5 h-5"}),e.jsx("h3",{className:"text-lg sm:text-xl font-bold",children:o.homepage_usp})]})}),e.jsxs("div",{className:"mb-4 sm:mb-6",children:[e.jsx("h3",{className:"text-xs sm:text-sm font-semibold text-gray-500 uppercase tracking-wider mb-2",children:"Challenge"}),e.jsx("div",{className:"text-sm sm:text-base text-gray-700 prose prose-sm",dangerouslySetInnerHTML:{__html:o.challenge}})]}),e.jsxs("div",{className:"mb-4 sm:mb-6",children:[e.jsx("h3",{className:"text-xs sm:text-sm font-semibold text-gray-500 uppercase tracking-wider mb-2",children:"Oplossing"}),e.jsx("div",{className:"text-sm sm:text-base text-gray-700 prose prose-sm",dangerouslySetInnerHTML:{__html:o.solution}})]}),o.results&&o.results.length>0&&e.jsx("div",{className:"grid grid-cols-3 gap-2 sm:gap-4 mb-4 sm:mb-8",children:o.results.map((d,h)=>e.jsxs("div",{className:"text-center p-2 sm:p-4 bg-gray-50 rounded-xl",children:[e.jsx("p",{className:"text-lg sm:text-2xl font-bold text-gray-900 leading-tight",children:d.value}),e.jsx("p",{className:"text-xs sm:text-sm text-gray-600 mt-1",children:d.label})]},h))}),o.quote&&e.jsxs("div",{className:"bg-gray-50 rounded-xl p-4 sm:p-6",children:[e.jsx(O4,{className:"w-6 h-6 sm:w-8 sm:h-8 text-gray-300 mb-2 sm:mb-3"}),e.jsxs("p",{className:"text-sm sm:text-base text-gray-700 italic mb-2 sm:mb-3",children:['"',o.quote,'"']}),e.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))})})}),e.jsx("section",{className:"py-16 bg-gray-50",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[e.jsxs("div",{className:"text-center mb-8",children:[e.jsx("h2",{className:"text-3xl font-bold text-gray-900 mb-4",children:"Wat kan AI voor jouw bedrijf betekenen?"}),e.jsx("p",{className:"text-xl text-gray-600",children:"Ontvang een gepersonaliseerde analyse met concrete AI kansen"})]}),e.jsx(Wf,{})]})}),e.jsx("section",{className:"py-20 bg-gray-900",children:e.jsxs("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 text-center",children:[e.jsx("h2",{className:"text-3xl font-bold text-white mb-6",children:"Klaar voor jouw succesverhaal?"}),e.jsx("p",{className:"text-xl text-gray-400 mb-8",children:"Ontdek hoe wij jouw bedrijf kunnen helpen met AI"}),e.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 justify-center",children:[e.jsxs(de,{to:se("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",e.jsx($e,{className:"w-5 h-5"})]}),e.jsx(de,{to:se("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 XZ(){return e.jsx("section",{style:{backgroundColor:"#1a1a1a"},className:"py-[88px]",children:e.jsxs("div",{className:"max-w-[1100px] mx-auto px-6",children:[e.jsxs("div",{className:"text-center max-w-[600px] mx-auto mb-14",children:[e.jsx("p",{style:{color:"#f0a500",fontSize:11,fontWeight:700,textTransform:"uppercase",letterSpacing:"0.12em",marginBottom:12},children:"Cowork in actie"}),e.jsx("h2",{style:{fontSize:"clamp(26px, 3.5vw, 40px)",fontWeight:700,lineHeight:1.15,color:"#fff",marginBottom:12},children:"Zo werkt het in de praktijk."}),e.jsx("p",{style:{color:"rgba(255,255,255,0.5)",fontSize:16},children:"Een echte conversatie met Cowork — gekoppeld aan Exact en Gmail. Jij vraagt. Cowork handelt. Jij keurt goed."})]}),e.jsxs("div",{className:"grid lg:grid-cols-2 gap-14 items-center",children:[e.jsxs("div",{style:{backgroundColor:"#111",border:"1px solid rgba(255,255,255,0.08)",borderRadius:18,overflow:"hidden"},children:[e.jsxs("div",{style:{backgroundColor:"#1e1e1e",padding:"14px 20px",display:"flex",alignItems:"center",gap:10,borderBottom:"1px solid rgba(255,255,255,0.06)"},children:[e.jsx("div",{className:"flex gap-1.5",children:["#ff5f57","#ffbd2e","#28c840"].map(t=>e.jsx("span",{style:{width:10,height:10,borderRadius:"50%",backgroundColor:t,display:"inline-block"}},t))}),e.jsx("span",{style:{fontSize:12,fontWeight:600,color:"rgba(255,255,255,0.5)",marginLeft:4},children:"Cowork — Sales assistent"})]}),e.jsxs("div",{style:{padding:24},className:"flex flex-col gap-4",children:[e.jsxs("div",{className:"flex gap-2.5 flex-row-reverse items-start",children:[e.jsx("div",{style:{width:30,height:30,borderRadius:"50%",background:"rgba(255,255,255,0.15)",color:"rgba(255,255,255,0.7)",display:"flex",alignItems:"center",justifyContent:"center",fontSize:11,fontWeight:700,flexShrink:0},children:"JV"}),e.jsx("div",{style:{maxWidth:"78%",background:"rgba(255,255,255,0.1)",color:"rgba(255,255,255,0.85)",borderRadius:"14px 14px 4px 14px",padding:"12px 16px",fontSize:13,lineHeight:1.6},children:"Welke offertes staan al meer dan 2 weken open?"})]}),e.jsxs("div",{className:"flex gap-2.5 items-start",children:[e.jsx("div",{style:{width:30,height:30,borderRadius:"50%",backgroundColor:"#f0a500",color:"#fff",display:"flex",alignItems:"center",justifyContent:"center",fontSize:10,fontWeight:700,flexShrink:0},children:"AI"}),e.jsxs("div",{style:{maxWidth:"78%",background:"#1e2d1e",color:"rgba(255,255,255,0.85)",borderRadius:"14px 14px 14px 4px",padding:"12px 16px",fontSize:13,lineHeight:1.6},children:["Ik zie ",e.jsx("strong",{style:{color:"#f0a500"},children:"3 offertes"})," in Exact die langer dan 2 weken openstaan:",e.jsx("div",{className:"mt-2 flex flex-col gap-1",children:["Bakkerij Janssen — €4.800 — 18 dagen","Logistiek Noord BV — €12.200 — 23 dagen","Installatiebedrijf Smit — €7.500 — 16 dagen"].map((t,n)=>e.jsxs("div",{className:"flex gap-2",style:{fontSize:12.5},children:[e.jsx("span",{style:{color:"#f0a500",fontWeight:700},children:"•"}),t]},n))}),e.jsx("br",{}),"Zal ik voor elk van hen een follow-up mail opstellen op basis van jullie laatste contact?"]})]}),e.jsxs("div",{className:"flex gap-2.5 flex-row-reverse items-start",children:[e.jsx("div",{style:{width:30,height:30,borderRadius:"50%",background:"rgba(255,255,255,0.15)",color:"rgba(255,255,255,0.7)",display:"flex",alignItems:"center",justifyContent:"center",fontSize:11,fontWeight:700,flexShrink:0},children:"JV"}),e.jsx("div",{style:{maxWidth:"78%",background:"rgba(255,255,255,0.1)",color:"rgba(255,255,255,0.85)",borderRadius:"14px 14px 4px 14px",padding:"12px 16px",fontSize:13,lineHeight:1.6},children:"Ja, doe dat voor Bakkerij Janssen."})]}),e.jsxs("div",{className:"flex gap-2.5 items-start",children:[e.jsx("div",{style:{width:30,height:30,borderRadius:"50%",backgroundColor:"#f0a500",color:"#fff",display:"flex",alignItems:"center",justifyContent:"center",fontSize:10,fontWeight:700,flexShrink:0},children:"AI"}),e.jsx("div",{style:{maxWidth:"78%",background:"#1e2d1e",borderRadius:"14px 14px 14px 4px",padding:"12px 16px"},children:e.jsxs("div",{style:{background:"rgba(240,165,0,0.1)",border:"1px solid rgba(240,165,0,0.3)",borderRadius:10,padding:"10px 14px",fontSize:12.5,color:"rgba(255,255,255,0.7)",display:"flex",alignItems:"flex-start",gap:8},children:[e.jsx(Ft,{className:"w-3.5 h-3.5 flex-shrink-0 mt-0.5",style:{stroke:"#f0a500"}}),"Mail aangemaakt in Gmail op basis van jullie laatste gesprek. Klaar om te versturen — ",e.jsx("strong",{style:{color:"#f0a500"},children:"jij keurt goed."})]})})]})]})]}),e.jsxs("div",{className:"flex flex-col gap-5",children:[[{nr:"1",title:"Medewerker stelt een vraag",text:"In gewone taal, via Cowork. Geen formulieren, geen menu's, geen training nodig."},{nr:"2",title:"Cowork raadpleegt jouw systemen",text:"Live data uit Exact, CRM, mailbox — gecombineerd in één antwoord. Geen copy-paste, geen handmatig opzoeken."},{nr:"3",title:"Cowork stelt een actie voor",text:"Mail opstellen, order aanmaken, rapportage genereren. Cowork doet het voorstel — jij beslist."},{nr:"4",title:"Jij keurt goed",text:"Cowork voert uit. Bevestiging direct in Cowork. Jij houdt de controle — altijd."}].map((t,n)=>e.jsxs(Ot.Fragment,{children:[e.jsxs("div",{className:"flex gap-4 items-start",children:[e.jsx("div",{style:{width:36,height:36,borderRadius:"50%",background:"rgba(240,165,0,0.12)",border:"1px solid rgba(240,165,0,0.3)",display:"flex",alignItems:"center",justifyContent:"center",fontFamily:"'Bebas Neue', cursive",fontSize:16,color:"#f0a500",flexShrink:0},children:t.nr}),e.jsxs("div",{children:[e.jsx("h4",{style:{fontSize:15,fontWeight:700,color:"#fff",marginBottom:4},children:t.title}),e.jsx("p",{style:{fontSize:13,color:"rgba(255,255,255,0.45)",lineHeight:1.55},children:t.text})]})]}),n<3&&e.jsx("div",{style:{width:1,height:16,background:"rgba(255,255,255,0.1)",marginLeft:17}})]},n)),e.jsx("div",{style:{marginTop:24},children:e.jsx(de,{to:se("ClaudeCoworkAdvies"),style:{backgroundColor:"#f0a500",color:"#fff"},className:"inline-flex items-center px-6 py-3.5 rounded-lg text-sm font-bold hover:opacity-90 transition-opacity",children:"Zien hoe dit werkt voor mijn bedrijf →"})})]})]})]})})}const JZ=[{key:"dienstverl",label:"Zakelijke dienstverlening"},{key:"bouw",label:"Bouw & Installatie"},{key:"zorg",label:"Zorg & Welzijn"},{key:"groothandel",label:"Groothandel"},{key:"finance",label:"Financiële dienstverlening"}],ZZ={dienstverl:[{voor:"Elke maandagochtend ben ik twee uur kwijt aan het samenstellen van klantupdates uit drie verschillende systemen.",na:"Cowork haalt data op uit alle systemen, stelt de update op in jouw huisstijl en stuurt hem klaar voor review. Jij keurt goed in 10 minuten.",saving:"Tijdsbesparing: ~7 uur/week"},{voor:"Offertes schrijven kost me een halve dag terwijl de informatie al in Exact staat.",na:"Cowork haalt tarieven en klantdata op uit Exact en genereert een conceptofferte inclusief scope en voorwaarden. Klaar voor review in 3 minuten.",saving:"Tijdsbesparing: ~4 uur/week"}],bouw:[{voor:"Werkbonnen verwerken en het Wkb-dossier bijhouden kost mijn uitvoerder elke week uren administratie.",na:"Gesproken notities op de bouwplaats worden automatisch verwerkt tot werkbonnen en Wkb-dossieronderdelen. Uitvoerder accordeert, klaar.",saving:"Tijdsbesparing: ~6 uur/week"},{voor:"Inkooporders controleren en verwerken in Exact neemt de hele ochtend van mijn binnendienst in beslag.",na:"Cowork leest inkomende orders uit e-mail, controleert ze op afwijkingen en verwerkt ze automatisch in Exact. Binnendienst handelt alleen uitzonderingen af.",saving:"Tijdsbesparing: ~5 uur/week"}],zorg:[{voor:"Mijn medewerkers zijn gemiddeld 40 minuten per dienst kwijt aan het schrijven van zorgrapportages.",na:"Medewerker spreekt observaties in na de dienst. Cowork structureert dit tot een AVG-conforme zorgrapportage. Review en opslaan: 3 minuten.",saving:"Tijdsbesparing: ~35 min/dienst"},{voor:"Roosteren kost mijn planner elke week een dag door alle beschikbaarheden en CAO-regels handmatig te verwerken.",na:"Cowork analyseert beschikbaarheid, verlof en CAO-parameters en stelt een conceptrooster op. Planner accordeert en past uitzonderingen aan.",saving:"Tijdsbesparing: ~6 uur/week"}],groothandel:[{voor:"Inkomende orders per e-mail handmatig overtypen in ons systeem kost mijn binnendienst uren per dag.",na:"Orders worden automatisch uitgelezen uit e-mail of PDF en verwerkt in Exact Online. Binnendienst controleert alleen afwijkingen en onbekende artikelen.",saving:"Tijdsbesparing: ~8 uur/week"},{voor:"Elke week dezelfde statusmail naar 30 klanten opstellen en versturen neemt te veel tijd.",na:"Cowork haalt orderstatus op uit Exact, stelt gepersonaliseerde statusmails op per klant en verstuurt ze automatisch op het vaste moment.",saving:"Tijdsbesparing: ~3 uur/week"}],finance:[{voor:"Wwft-dossiers bijhouden en controleren op volledigheid kost mijn compliance officer een dag per week.",na:"Cowork controleert klantdossiers automatisch op Wwft-volledigheid, signaleert verlopen KYC-documenten en rapporteert bevindingen in een overzicht.",saving:"Tijdsbesparing: ~5 uur/week"},{voor:"Klantvragen per e-mail beantwoorden en in HubSpot bijhouden neemt te veel tijd van mijn adviseurs.",na:"Cowork stelt conceptantwoorden op in de stijl van de adviseur, slaat gespreksnotities op in HubSpot en update de dealstatus automatisch.",saving:"Tijdsbesparing: ~4 uur/week"}]};function eee(){const[t,n]=R.useState("dienstverl");return e.jsx("section",{style:{backgroundColor:"#f5f5f5"},className:"py-[88px]",children:e.jsxs("div",{className:"max-w-[1100px] mx-auto px-6",children:[e.jsxs("div",{className:"text-center max-w-[600px] mx-auto mb-10",children:[e.jsx("p",{style:{color:"#f0a500",fontSize:11,fontWeight:700,textTransform:"uppercase",letterSpacing:"0.12em",marginBottom:12},children:"Claude Cowork in de praktijk"}),e.jsx("h2",{style:{fontSize:"clamp(26px, 3.5vw, 40px)",fontWeight:700,lineHeight:1.15,color:"#1a1a1a",marginBottom:12},children:"Wat doet Cowork voor jouw branche?"}),e.jsx("p",{style:{color:"#666",fontSize:16},children:"Concrete voor/na-scenario's per sector — zodat je ziet wat het oplevert in jouw dagelijkse werk."})]}),e.jsx("div",{className:"flex gap-2 flex-wrap justify-center mb-10",children:JZ.map(r=>e.jsx("button",{onClick:()=>n(r.key),style:{padding:"9px 20px",borderRadius:30,border:t===r.key?"2px solid #1a1a1a":"2px solid #e8e8e8",background:t===r.key?"#1a1a1a":"#fff",color:t===r.key?"#fff":"#666",fontSize:14,fontWeight:600,cursor:"pointer",fontFamily:"inherit",transition:"all 0.15s"},children:r.label},r.key))}),e.jsx("div",{className:"grid md:grid-cols-2 gap-6",children:ZZ[t].map((r,i)=>e.jsxs("div",{style:{background:"#fff",border:"1px solid #e8e8e8",borderRadius:14,overflow:"hidden"},children:[e.jsxs("div",{style:{background:"#f5f5f5",padding:"18px 22px"},children:[e.jsx("p",{style:{fontSize:11,fontWeight:700,textTransform:"uppercase",letterSpacing:"0.08em",color:"#999",marginBottom:6},children:"Voor Claude Cowork"}),e.jsxs("p",{style:{fontSize:14,color:"#444",lineHeight:1.55,fontStyle:"italic"},children:['"',r.voor,'"']})]}),e.jsxs("div",{style:{padding:"20px 22px"},children:[e.jsx("p",{style:{fontSize:11,fontWeight:700,textTransform:"uppercase",letterSpacing:"0.08em",color:"#f0a500",marginBottom:8},children:"Na Claude Cowork"}),e.jsx("p",{style:{fontSize:14,color:"#1a1a1a",lineHeight:1.6},children:r.na}),e.jsx("span",{style:{display:"inline-block",marginTop:10,background:"#fef3d0",color:"#b07800",fontSize:12,fontWeight:700,padding:"4px 10px",borderRadius:20},children:r.saving})]})]},i))})]})})}const tee=[{name:"Starter",tagline:"Voor teams die willen starten",price:"€750",unit:"eenmalige setup",features:["2 software-koppelingen","3 skills op maat","Tot 5 gebruikers","Basis onboarding","E-mailsupport, 30 dagen"],featured:!1,btnText:"Vraag Starter aan"},{name:"Groei",tagline:"Voor serieuze inzet van Cowork",price:"€1.500",unit:"eenmalige setup",badge:"Meest gekozen",features:["4 software-koppelingen","6 skills op maat","Tot 15 gebruikers","Begeleide onboarding","E-mail + call support, 60 dagen"],featured:!0,btnText:"Vraag Groei aan"},{name:"Pro",tagline:"Voor meerdere afdelingen of locaties",price:"€2.750",unit:"eenmalige setup",features:["6 software-koppelingen","10 skills op maat","Onbeperkt gebruikers","Dedicated onboarding traject","Prioriteit support, 90 dagen"],featured:!1,btnText:"Vraag Pro aan"}],nee=[{title:"Zwart op wit wat je krijgt",text:"Na de intake weet je exact wat we bouwen — geen verrassingen achteraf."},{title:"Geen ticketsysteem, geen wachtrijen",text:"Eén vast aanspreekpunt bij 48-7 — gewoon bellen of appen."},{title:"Alles wat we bouwen is van jou",text:"Geen lock-in. Jij behoudt volledige eigendom over alle skills en koppelingen."}];function ree(){return e.jsx("section",{id:"pricing",className:"py-[88px]",children:e.jsxs("div",{className:"max-w-[1100px] mx-auto px-6",children:[e.jsxs("div",{className:"text-center max-w-[620px] mx-auto mb-4",children:[e.jsx("p",{style:{color:"#f0a500",fontSize:11,fontWeight:700,textTransform:"uppercase",letterSpacing:"0.12em",marginBottom:12},children:"Prijzen"}),e.jsx("h2",{style:{fontSize:"clamp(26px, 3.5vw, 40px)",fontWeight:700,lineHeight:1.15,color:"#1a1a1a"},children:"Transparant geprijsd. Klaar in één week."})]}),e.jsxs("p",{style:{textAlign:"center",fontSize:14,color:"#666",marginBottom:44},children:["Je betaalt eenmalig voor de setup. De Anthropic-licentie (",e.jsx("strong",{style:{color:"#1a1a1a"},children:"€17/mnd per gebruiker"}),") regel je zelf rechtstreeks bij Anthropic — daar zitten wij niet tussen."]}),e.jsx("div",{className:"grid md:grid-cols-3 gap-5 mb-8",children:tee.map((t,n)=>e.jsxs("div",{style:{borderRadius:16,overflow:"hidden",border:t.featured?"2px solid #f0a500":"1px solid #e8e8e8",display:"flex",flexDirection:"column"},children:[e.jsxs("div",{style:{padding:"28px 24px 20px",backgroundColor:t.featured?"#1a1a1a":"#f5f5f5"},children:[t.badge&&e.jsx("span",{style:{display:"inline-block",backgroundColor:"#f0a500",color:"#fff",fontSize:10,fontWeight:700,textTransform:"uppercase",letterSpacing:"0.07em",padding:"3px 9px",borderRadius:20,marginBottom:12},children:t.badge}),e.jsx("div",{style:{fontSize:22,fontWeight:800,color:t.featured?"#fff":"#1a1a1a"},children:t.name}),e.jsx("div",{style:{fontSize:13,color:t.featured?"rgba(255,255,255,0.5)":"#666",marginTop:3},children:t.tagline})]}),e.jsxs("div",{style:{padding:"22px 24px 26px",flex:1,display:"flex",flexDirection:"column",backgroundColor:"#fff"},children:[e.jsxs("div",{style:{marginBottom:18},children:[e.jsx("strong",{style:{fontSize:32,fontWeight:800,color:"#1a1a1a"},children:t.price}),e.jsx("span",{style:{fontSize:14,color:"#666",marginLeft:4},children:t.unit})]}),e.jsx("ul",{style:{listStyle:"none",display:"flex",flexDirection:"column",gap:9,flex:1,marginBottom:22,padding:0},children:t.features.map((r,i)=>e.jsxs("li",{style:{fontSize:14,color:"#333",display:"flex",gap:9,alignItems:"flex-start"},children:[e.jsx("span",{style:{width:18,height:18,backgroundColor:"#fef3d0",borderRadius:"50%",flexShrink:0,marginTop:1,display:"inline-flex",alignItems:"center",justifyContent:"center"},children:e.jsx("svg",{viewBox:"0 0 18 18",style:{width:12,height:12},fill:"none",stroke:"#f0a500",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:e.jsx("polyline",{points:"3.5,9 7,12.5 14.5,5"})})}),r]},i))}),e.jsx(de,{to:se("Contact")+`?training=${encodeURIComponent("Cowork "+t.name)}`,style:{display:"block",textAlign:"center",padding:13,borderRadius:8,fontSize:15,fontWeight:700,backgroundColor:t.featured?"#f0a500":"#1a1a1a",color:"#fff",textDecoration:"none"},className:"hover:opacity-85 transition-opacity",children:t.btnText})]})]},n))}),e.jsxs("div",{style:{border:"1px solid #e8e8e8",borderRadius:14,padding:"28px 32px",display:"flex",alignItems:"center",gap:32,flexWrap:"wrap",backgroundColor:"#f5f5f5",marginBottom:32},children:[e.jsx("div",{style:{fontSize:36,flexShrink:0},children:"🎓"}),e.jsxs("div",{style:{flex:1,minWidth:200},children:[e.jsx("h4",{style:{fontSize:18,fontWeight:700,color:"#1a1a1a",marginBottom:6},children:"Training voor jouw team"}),e.jsx("p",{style:{fontSize:14,color:"#666",lineHeight:1.6},children:"Wil je jouw team meteen goed laten starten? We verzorgen een praktische training op locatie — zodat iedereen Cowork direct goed gebruikt. Maximaal 15 personen per dagdeel. Op aanvraag in te plannen, aansluitend op de setup of apart."})]}),e.jsxs("div",{style:{textAlign:"right",flexShrink:0},children:[e.jsx("strong",{style:{display:"block",fontSize:36,fontWeight:800,color:"#f0a500",lineHeight:1},children:"€495"}),e.jsx("span",{style:{fontSize:13,color:"#666"},children:"per dagdeel"})]})]}),e.jsx("div",{className:"flex gap-4 flex-wrap",children:nee.map((t,n)=>e.jsxs("div",{style:{flex:1,minWidth:200,display:"flex",gap:12,alignItems:"flex-start",padding:18,background:"#fff",borderRadius:10,border:"1px solid #e8e8e8"},children:[e.jsx("div",{style:{width:24,height:24,backgroundColor:"#f0a500",borderRadius:"50%",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,marginTop:1},children:e.jsx("svg",{viewBox:"0 0 24 24",style:{width:13,height:13},fill:"none",stroke:"#fff",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:e.jsx("polyline",{points:"20 6 9 17 4 12"})})}),e.jsxs("div",{children:[e.jsx("strong",{style:{display:"block",fontSize:14,color:"#1a1a1a",marginBottom:3},children:t.title}),e.jsx("span",{style:{fontSize:13,color:"#666"},children:t.text})]})]},n))}),e.jsx("p",{style:{marginTop:24,textAlign:"center",fontSize:14,color:"#999",fontStyle:"italic"},children:"Wil je na de setup ook maandelijks ondersteuning? Dan bespreken we een service abonnement — maar dat is geen verplichting."})]})})}const iee={role:"assistant",content:`Hoi! 👋 Ik help je ontdekken welke Skills en Connectors het beste passen bij jullie organisatie.

Laten we starten: **welke software gebruiken jullie dagelijks?** Denk aan boekhoud-, CRM-, HR- of voorraadsystemen.`};function P6(){const[t,n]=R.useState(!1),[r,i]=R.useState([iee]),[s,a]=R.useState(""),[o,c]=R.useState(!1),d=R.useRef(null);R.useEffect(()=>{var m;(m=d.current)==null||m.scrollIntoView({behavior:"smooth"})},[r,o]);const h=async()=>{var j;if(!s.trim()||o)return;const m={role:"user",content:s.trim()},p=[...r,m];i(p),a(""),c(!0);const b=((j=(await ce.functions.invoke("coworkAdvisor",{messages:p})).data)==null?void 0:j.reply)||"Sorry, er ging iets mis. Probeer het opnieuw.";i([...p,{role:"assistant",content:b}]),c(!1)},f=m=>{m.key==="Enter"&&!m.shiftKey&&(m.preventDefault(),h())};return e.jsxs(e.Fragment,{children:[e.jsx("button",{onClick:()=>n(!t),className:"fixed bottom-6 right-6 z-50 w-14 h-14 bg-[#FAB868] text-[#0D0D0F] rounded-full shadow-lg flex items-center justify-center hover:bg-[#E5A04D] transition-all","aria-label":"Open AI-adviseur",children:t?e.jsx(Ht,{className:"w-6 h-6"}):e.jsx($o,{className:"w-6 h-6"})}),e.jsx(Cr,{children:t&&e.jsxs(Z.div,{initial:{opacity:0,y:20,scale:.95},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,y:20,scale:.95},transition:{duration:.2},className:"fixed bottom-24 right-6 z-50 w-[360px] max-w-[calc(100vw-1.5rem)] bg-white rounded-2xl shadow-2xl border border-gray-100 flex flex-col overflow-hidden",style:{height:"520px"},children:[e.jsxs("div",{className:"bg-[#0D0D0F] px-5 py-4 flex items-center gap-3",children:[e.jsx("div",{className:"w-9 h-9 bg-[#FAB868] rounded-full flex items-center justify-center flex-shrink-0",children:e.jsx(At,{className:"w-4 h-4 text-[#0D0D0F]"})}),e.jsxs("div",{children:[e.jsx("p",{className:"font-bold text-white text-sm",children:"Cowork Adviseur"}),e.jsx("p",{className:"text-xs text-gray-400",children:"Vindt de beste Skills & Connectors voor jou"})]})]}),e.jsxs("div",{className:"flex-1 overflow-y-auto p-4 space-y-3 bg-[#faf8f5]",children:[r.map((m,p)=>e.jsx("div",{className:`flex ${m.role==="user"?"justify-end":"justify-start"}`,children:e.jsx("div",{className:`max-w-[85%] px-4 py-2.5 rounded-2xl text-sm leading-relaxed whitespace-pre-wrap ${m.role==="user"?"bg-[#FAB868] text-[#0D0D0F] rounded-br-sm font-medium":"bg-white text-gray-800 rounded-bl-sm shadow-sm border border-gray-100"}`,dangerouslySetInnerHTML:{__html:m.content.replace(/\*\*(.*?)\*\*/g,"<strong>$1</strong>").replace(/\n/g,"<br/>")}})},p)),o&&e.jsx("div",{className:"flex justify-start",children:e.jsx("div",{className:"bg-white border border-gray-100 shadow-sm px-4 py-3 rounded-2xl rounded-bl-sm flex gap-1.5",children:[0,1,2].map(m=>e.jsx("span",{className:"w-2 h-2 bg-gray-300 rounded-full animate-bounce",style:{animationDelay:`${m*.15}s`}},m))})}),e.jsx("div",{ref:d})]}),e.jsxs("div",{className:"p-3 border-t border-gray-100 bg-white flex items-end gap-2",children:[e.jsx("textarea",{value:s,onChange:m=>a(m.target.value),onKeyDown:f,placeholder:"Typ je antwoord...",rows:1,className:"flex-1 resize-none border border-gray-200 rounded-xl px-3 py-2.5 text-sm focus:outline-none focus:border-amber-400 bg-gray-50 max-h-24"}),e.jsx("button",{onClick:h,disabled:!s.trim()||o,className:"w-10 h-10 bg-[#FAB868] text-[#0D0D0F] rounded-xl flex items-center justify-center hover:bg-[#E5A04D] transition-colors disabled:opacity-40 flex-shrink-0",children:e.jsx(P4,{className:"w-4 h-4"})})]})]})})]})}function see(){return e.jsx("img",{src:"https://qtrypzzcjebvfcihiynt.supabase.co/storage/v1/object/public/base44-prod/public/695a3d411fa079edce588856/6e5f2b54f_claude-logo_brandlogosnet_yx32y.png",alt:"Claude by Anthropic",style:{height:32,width:"auto"}})}function ZS({imageUrl:t,fallback:n,caption:r,darkMode:i=!1}){const[s,a]=Ot.useState(!1),o=t||n;return o?e.jsxs(e.Fragment,{children:[e.jsxs("div",{onClick:()=>a(!0),style:{borderRadius:14,overflow:"hidden",border:"1px solid "+(i?"rgba(255,255,255,0.1)":"#e8e8e8"),aspectRatio:"16/10",cursor:"zoom-in",position:"relative"},className:"group",children:[e.jsx("img",{src:o,alt:r,style:{width:"100%",height:"100%",objectFit:"cover",transition:"transform 0.3s ease"},className:"group-hover:scale-105"}),e.jsx("div",{style:{position:"absolute",inset:0,background:"rgba(0,0,0,0)",display:"flex",alignItems:"center",justifyContent:"center",transition:"background 0.2s"},className:"group-hover:bg-black/20",children:e.jsx("span",{style:{fontSize:28,opacity:0,transition:"opacity 0.2s"},className:"group-hover:opacity-100",children:"🔍"})})]}),s&&e.jsxs("div",{onClick:()=>a(!1),style:{position:"fixed",inset:0,zIndex:9999,background:"rgba(0,0,0,0.85)",display:"flex",alignItems:"center",justifyContent:"center",padding:24,cursor:"zoom-out"},children:[e.jsx("img",{src:o,alt:r,style:{maxWidth:"90vw",maxHeight:"90vh",borderRadius:12,objectFit:"contain",boxShadow:"0 24px 80px rgba(0,0,0,0.5)"},onClick:c=>c.stopPropagation()}),e.jsx("button",{onClick:()=>a(!1),style:{position:"absolute",top:20,right:24,color:"#fff",background:"none",border:"none",fontSize:32,cursor:"pointer",lineHeight:1},children:"×"})]})]}):e.jsxs("div",{style:{borderRadius:14,border:"2px dashed "+(i?"rgba(255,255,255,0.12)":"#d1d5db"),background:i?"rgba(255,255,255,0.04)":"#f9fafb",aspectRatio:"16/10",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:8},children:[e.jsx("span",{style:{fontSize:28,opacity:.3},children:"🖼️"}),e.jsx("span",{style:{fontSize:12,color:i?"rgba(255,255,255,0.3)":"#9ca3af",textAlign:"center",padding:"0 12px"},children:r})]})}function wv({text:t,highlight:n,btnText:r,to:i,onClick:s}){return e.jsx("div",{style:{backgroundColor:"#f0a500"},className:"py-7",children:e.jsxs("div",{className:"max-w-[1100px] mx-auto px-6 flex items-center justify-between gap-6 flex-wrap",children:[e.jsxs("div",{style:{fontSize:17,fontWeight:700,color:"#fff"},children:[t," ",e.jsx("span",{style:{fontWeight:400,opacity:.85},children:n})]}),s?e.jsx("button",{onClick:s,style:{backgroundColor:"#fff",color:"#1a1a1a",fontWeight:700,padding:"14px 28px",borderRadius:8,fontSize:15,border:"none",cursor:"pointer",fontFamily:"inherit",flexShrink:0},className:"hover:opacity-90 transition-opacity",children:r}):e.jsx(de,{to:i,style:{backgroundColor:"#fff",color:"#1a1a1a",fontWeight:700,padding:"14px 28px",borderRadius:8,fontSize:15,textDecoration:"none",flexShrink:0,display:"inline-block"},className:"hover:opacity-90 transition-opacity",children:r})]})})}function aee(){const[t,n]=R.useState(!1),[r,i]=R.useState({name:"",email:"",company:""}),[s,a]=R.useState(!1),[o,c]=R.useState({name:"",email:"",company:"",branche:"",bericht:""}),[d,h]=R.useState(!1),{data:f=[]}=Fe({queryKey:["site-settings"],queryFn:()=>ce.entities.SiteSettings.list()}),m=k=>{var w;return(w=f.find(N=>N.setting_key===k))==null?void 0:w.value},p=m("cowork_video_url"),g=[{key:"cowork_img_1",caption:"Connectors — koppel Claude aan jouw apps",fallback:"https://media.base44.com/images/public/695a3d411fa079edce588856/17b974f52_connectors.png"},{key:"cowork_img_2",caption:"Welke offertes in HubSpot hebben een factuur in Exact",fallback:"https://media.base44.com/images/public/695a3d411fa079edce588856/9c8f98007_hs-exact.png"},{key:"cowork_img_3",caption:"Cowork in actie — openstaande facturen",fallback:"https://media.base44.com/images/public/695a3d411fa079edce588856/0077fe820_openstaand-excel.png"}],b=[{key:"cowork_skill_img_1",caption:"Skills instellen in Cowork",fallback:"https://media.base44.com/images/public/695a3d411fa079edce588856/30539b4a4_0-skills.png"},{key:"cowork_skill_img_2",caption:"Skill in actie — opdracht uitvoeren",fallback:"https://media.base44.com/images/public/695a3d411fa079edce588856/7b294d866_1-skillslideopdracht.png"},{key:"cowork_skill_img_3",caption:"Resultaat — PowerPoint slide gegenereerd",fallback:"https://media.base44.com/images/public/695a3d411fa079edce588856/c9d3d5316_2-skillresultaat.png"}],j={width:"100%",padding:"12px 14px",border:"1.5px solid rgba(255,255,255,0.12)",borderRadius:8,fontSize:14,fontFamily:"inherit",marginBottom:12,backgroundColor:"rgba(255,255,255,0.07)",color:"#fff",display:"block",outline:"none"},v=async k=>{k.preventDefault(),await ce.functions.invoke("sendCoworkGidsRequest",{name:r.name,email:r.email,company:r.company}),a(!0)},x=async k=>{k.preventDefault(),await ce.functions.invoke("sendContactForm",{name:o.name,email:o.email,company:o.company,message:`Branche: ${o.branche}

${o.bericht}`,subject:"Cowork Demo aanvraag"}),h(!0)};return e.jsxs("div",{className:"pt-20 min-h-screen bg-white",children:[t&&p&&e.jsx("div",{className:"fixed inset-0 z-50 bg-black/80 flex items-center justify-center p-4",onClick:()=>n(!1),children:e.jsxs("div",{className:"relative w-full max-w-4xl",style:{aspectRatio:"16/9"},onClick:k=>k.stopPropagation(),children:[e.jsxs("button",{onClick:()=>n(!1),className:"absolute -top-10 right-0 flex items-center gap-2 text-white text-sm",children:[e.jsx(Ht,{className:"w-5 h-5"})," Sluiten"]}),e.jsx("iframe",{src:p,className:"w-full h-full rounded-xl",allowFullScreen:!0,title:"Cowork video"})]})}),e.jsx("div",{style:{backgroundColor:"#faf8f5",borderBottom:"1px solid #ece8e2"},className:"py-[18px]",children:e.jsxs("div",{className:"max-w-[1100px] mx-auto px-6 flex items-center justify-between flex-wrap gap-4",children:[e.jsxs("div",{className:"flex items-center gap-6",children:[e.jsx(see,{}),e.jsx("div",{style:{width:1,height:28,backgroundColor:"#ddd"}}),e.jsx("span",{style:{fontSize:13,color:"#999",fontWeight:500},children:"geconfigureerd door 48-7 voor het Nederlandse MKB"})]}),e.jsxs("div",{style:{fontSize:13,color:"#888"},children:["Meer weten?"," ",e.jsx(de,{to:se("ClaudeCoworkSkillsConnectors"),style:{color:"#f0a500",fontWeight:600},className:"hover:underline",children:"Bekijk Skills & Connectors →"})]})]})}),e.jsx("section",{style:{backgroundColor:"#1a1a1a",overflow:"hidden"},children:e.jsx("div",{className:"max-w-[1100px] mx-auto px-6",children:e.jsxs("div",{className:"grid lg:grid-cols-[1fr_480px]",style:{minHeight:600},children:[e.jsxs("div",{className:"py-20 lg:pr-16 flex flex-col justify-center",children:[e.jsxs("div",{className:"flex items-center gap-2.5 mb-6",children:[e.jsx("div",{style:{width:8,height:8,borderRadius:"50%",backgroundColor:"#f0a500"}}),e.jsx("span",{style:{color:"#f0a500",fontSize:12,fontWeight:700,textTransform:"uppercase",letterSpacing:"0.12em"},children:"Claude Cowork voor MKB — door 48-7"})]}),e.jsxs("h1",{className:"font-bebas",style:{fontSize:"clamp(52px, 7vw, 88px)",lineHeight:.95,letterSpacing:"0.02em",color:"#fff",marginBottom:28},children:["Laat AI",e.jsx("br",{}),"het werk doen.",e.jsx("br",{}),e.jsx("span",{style:{color:"#f0a500"},children:"In jouw eigen"}),e.jsx("br",{}),"software."]}),e.jsxs("p",{style:{fontSize:18,color:"rgba(255,255,255,0.65)",lineHeight:1.7,maxWidth:480,marginBottom:12},children:["Cowork werkt o.a. in je boekhoudpakket, CRM en e-mail — en voert daar taken voor je uit. Maak offertes. Beantwoord klantmails. Analyseer data. ",e.jsx("strong",{style:{color:"#fff"},children:"Automatisch."})]}),e.jsx("p",{style:{fontSize:13,color:"rgba(255,255,255,0.35)",marginBottom:36},children:"Cowork gebruikt Claude — de AI van Anthropic, vergelijkbaar met ChatGPT maar gebouwd voor zakelijk gebruik."}),e.jsx("div",{className:"flex gap-3.5 flex-wrap",children:e.jsx(de,{to:se("ClaudeCoworkAdvies"),style:{backgroundColor:"#f0a500",color:"#fff",padding:"14px 24px",borderRadius:8,fontSize:15,fontWeight:700,textDecoration:"none",display:"inline-flex",alignItems:"center",gap:8},className:"hover:opacity-90 transition-opacity",children:"Plan een gratis demo"})})]}),e.jsxs("div",{style:{backgroundColor:"#111",position:"relative",overflow:"hidden"},children:[e.jsx("div",{style:{position:"absolute",top:-60,right:-60,width:240,height:240,borderRadius:"50%",background:"radial-gradient(circle, rgba(240,165,0,0.15) 0%, transparent 70%)",pointerEvents:"none"}}),e.jsxs("div",{style:{padding:"48px 40px",height:"100%",display:"flex",flexDirection:"column",justifyContent:"center",gap:16},children:[e.jsx("p",{style:{fontSize:12,fontWeight:700,textTransform:"uppercase",letterSpacing:"0.1em",color:"rgba(255,255,255,0.3)",marginBottom:8},children:"Claude Cowork in cijfers"}),[{nr:"1 wk",title:"Doorgaans live binnen één week",sub:"Van intake tot werkende Claude Cowork-omgeving"},{nr:"€17",title:"Per medewerker per maand",sub:"Anthropic Claude Teams licentie"},{nr:"50+",title:"Kant-en-klare koppelingen",sub:"Exact, AFAS, HubSpot, Microsoft 365 en meer"}].map((k,w)=>e.jsxs("div",{style:{background:"rgba(255,255,255,0.05)",border:"1px solid rgba(255,255,255,0.08)",borderRadius:12,display:"flex",alignItems:"center",gap:14,padding:"16px 18px"},children:[e.jsx("div",{className:"font-bebas",style:{fontSize:32,color:"#f0a500",lineHeight:1,minWidth:60},children:k.nr}),e.jsxs("div",{children:[e.jsx("strong",{style:{display:"block",fontSize:14,color:"#fff"},children:k.title}),e.jsx("span",{style:{fontSize:12,color:"rgba(255,255,255,0.45)"},children:k.sub})]})]},w))]})]})]})})}),e.jsx("div",{style:{backgroundColor:"#f0a500"},children:e.jsx("div",{className:"max-w-[1100px] mx-auto",children:e.jsx("div",{className:"flex flex-wrap",children:[{icon:e.jsx(Ft,{className:"w-5 h-5"}),text:"Binnen 1 week live"},{icon:e.jsx(Vn,{className:"w-5 h-5"}),text:"GDPR-compliant & veilig"},{icon:e.jsx(fi,{className:"w-5 h-5"}),text:"Geen leercurve voor je team"},{icon:e.jsx(Ft,{className:"w-5 h-5"}),text:"Vanaf €17 per medewerker/mnd"}].map((k,w)=>e.jsxs("div",{style:{flex:"1 0 50%",borderRight:w%2===0?"1px solid rgba(0,0,0,0.1)":"none",borderBottom:w<2?"1px solid rgba(0,0,0,0.1)":"none",padding:"22px 28px",display:"flex",alignItems:"center",gap:12},className:"lg:flex-1 lg:border-b-0",children:[e.jsx("span",{style:{color:"rgba(0,0,0,0.6)"},children:k.icon}),e.jsx("span",{style:{fontSize:14,fontWeight:700,color:"rgba(0,0,0,0.75)"},children:k.text})]},w))})})}),e.jsx("div",{style:{backgroundColor:"#f5f5f5",borderTop:"1px solid #e8e8e8",borderBottom:"1px solid #e8e8e8"},className:"py-10",children:e.jsxs("div",{className:"max-w-[1100px] mx-auto px-6",children:[e.jsx("p",{style:{fontSize:12,fontWeight:700,textTransform:"uppercase",letterSpacing:"0.1em",color:"#999",textAlign:"center",marginBottom:24},children:"Cowork koppelt met de software die jij al gebruikt"}),e.jsxs("div",{className:"flex flex-wrap items-center justify-center gap-2.5",children:[[{name:"Exact Online",logo:"https://www.google.com/s2/favicons?domain=exact.com&sz=32"},{name:"Moneybird",logo:"https://www.google.com/s2/favicons?domain=moneybird.com&sz=32"},{name:"Visma",logo:"https://www.google.com/s2/favicons?domain=visma.com&sz=32"},{name:"AFAS",logo:"https://www.google.com/s2/favicons?domain=afas.nl&sz=32"},{name:"HubSpot",logo:"https://cdn.simpleicons.org/hubspot/FF7A59"},{name:"Office 365",logo:"https://cdn.simpleicons.org/microsoftoffice/D83B01"},{name:"Google Workspace",logo:"https://cdn.simpleicons.org/google/4285F4"},{name:"Slack",logo:"https://cdn.simpleicons.org/slack/4A154B"}].map(({name:k,logo:w})=>e.jsxs("div",{style:{background:"#fff",border:"1px solid #e8e8e8",borderRadius:10,padding:"10px 16px",display:"flex",alignItems:"center",gap:8,whiteSpace:"nowrap"},children:[e.jsx("img",{src:w,alt:k,style:{width:20,height:20,objectFit:"contain"},onError:N=>{N.target.style.display="none"}}),e.jsx("span",{style:{fontSize:13,fontWeight:700,color:"#444"},children:k})]},k)),e.jsx("div",{style:{background:"#1a1a1a",color:"#fff",borderRadius:10,padding:"10px 20px",fontSize:13,fontWeight:700,whiteSpace:"nowrap"},children:"+ 150 andere software"})]})]})}),e.jsx("section",{className:"py-[88px]",children:e.jsxs("div",{className:"max-w-[1100px] mx-auto px-6",children:[e.jsxs("div",{className:"grid lg:grid-cols-2 gap-16 items-center mb-14",children:[e.jsxs("div",{children:[e.jsx("h2",{style:{fontSize:"clamp(36px, 5vw, 56px)",fontWeight:800,lineHeight:1.05,marginBottom:16,color:"#1a1a1a"},children:"Wat is Claude Cowork?"}),e.jsx("p",{style:{fontSize:"clamp(18px, 2.5vw, 24px)",fontWeight:600,color:"#444",lineHeight:1.35,marginBottom:16},children:"Een digitale collega die meedenkt, meewerkt en taken uitvoert."}),e.jsx("p",{style:{color:"#666",marginBottom:16,lineHeight:1.75},children:"Claude Cowork is het AI-platform van Anthropic voor teams. Geen chatbot die generieke antwoorden geeft — maar een AI-assistent die jouw systemen kent, jouw processen begrijpt en taken voor je uitvoert."}),e.jsx("p",{style:{color:"#666",marginBottom:0,lineHeight:1.75},children:"48-7 configureert het volledig op jouw bedrijf: gekoppeld aan je bestaande tools, ingesteld op jouw processen. Jouw medewerkers stellen vragen in gewone taal — de AI antwoordt met jóuw data en handelt."}),e.jsxs("div",{style:{background:"#fef3d0",borderLeft:"3px solid #f0a500",borderRadius:"0 8px 8px 0",padding:"14px 18px",fontSize:14,color:"#8a6000",lineHeight:1.65,marginTop:20,marginBottom:24},children:[e.jsx("strong",{style:{color:"#1a1a1a",fontWeight:700},children:"Wat de meeste mensen niet weten:"})," Met standaard AI-tools zoals ChatGPT kun je niet praten met jouw eigen systemen. Cowork lost dat op — zodat de AI wél toegang heeft tot jouw data, veilig en gecontroleerd."]}),e.jsx("div",{className:"flex gap-3 flex-wrap",children:e.jsx(de,{to:se("ClaudeCoworkAdvies"),style:{background:"#1a1a1a",color:"#fff",padding:"14px 24px",borderRadius:8,fontSize:15,fontWeight:700,textDecoration:"none",display:"inline-flex",alignItems:"center"},className:"hover:opacity-90 transition-opacity",children:"Plan een gratis demo"})})]}),e.jsx("div",{className:"grid grid-cols-2 gap-4",children:[{icon:"💬",title:"Praat met je eigen systemen",text:"Stel vragen over je CRM, ERP of kennisdocumenten en krijg direct een antwoord op basis van jóuw data."},{icon:"⚡",title:"Voert ook opdrachten uit",text:"Niet alleen antwoorden geven — de AI kan acties uitvoeren: orders aanmaken, mails versturen, data bijwerken."},{icon:"👥",title:"Per team en rol instelbaar",text:"Elke afdeling ziet alleen wat relevant en toegestaan is. Finance ziet andere data dan sales."},{icon:"🔄",title:"Werkt over systemen heen",text:"Eén vraag combineert data uit meerdere bronnen — CRM én ERP én e-mail tegelijk."}].map((k,w)=>e.jsxs("div",{style:{backgroundColor:"#f5f5f5",borderRadius:12,padding:20,display:"flex",gap:14,alignItems:"flex-start"},children:[e.jsx("span",{style:{fontSize:22,flexShrink:0,marginTop:2},children:k.icon}),e.jsxs("div",{children:[e.jsx("h4",{style:{fontSize:14,fontWeight:700,color:"#1a1a1a",marginBottom:4},children:k.title}),e.jsx("p",{style:{fontSize:13,color:"#666",lineHeight:1.55},children:k.text})]})]},w))})]}),e.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-4",children:g.map((k,w)=>e.jsx(ZS,{imageUrl:m(k.key),fallback:k.fallback,caption:k.caption},w))})]})}),e.jsx(wv,{text:"Zien hoe Cowork werkt in jouw software?",highlight:"30 minuten, geen verkooppraatje.",btnText:"Plan een gratis demo →",to:se("ClaudeCoworkAdvies")}),e.jsx("section",{style:{backgroundColor:"#1a1a1a"},className:"py-[88px]",children:e.jsxs("div",{className:"max-w-[1100px] mx-auto px-6",children:[e.jsxs("div",{className:"grid lg:grid-cols-2 gap-16 items-center mb-14",children:[e.jsxs("div",{children:[e.jsx("p",{style:{color:"#f0a500",fontSize:11,fontWeight:700,textTransform:"uppercase",letterSpacing:"0.12em",marginBottom:12},children:"Skills"}),e.jsx("h2",{style:{fontSize:"clamp(26px, 3.5vw, 40px)",fontWeight:700,lineHeight:1.15,marginBottom:16,color:"#fff"},children:"Wat Cowork concreet doet voor jouw bedrijf."}),e.jsx("p",{style:{color:"rgba(255,255,255,0.55)",marginBottom:16,lineHeight:1.75},children:"Een skill is een vooraf ingerichte werkinstructie voor Cowork. Vergelijk het met een ervaren medewerker die precies weet hoe iets bij jullie werkt — welke toon, welke stappen, welke systemen."}),e.jsx("p",{style:{color:"rgba(255,255,255,0.55)",marginBottom:24,lineHeight:1.75},children:"Wij bouwen die skills op maat voor jouw processen. Jouw medewerkers hoeven alleen maar te vragen."}),e.jsx(de,{to:se("ClaudeCoworkSkillsConnectors"),style:{backgroundColor:"#f0a500",color:"#fff",padding:"14px 24px",borderRadius:8,fontSize:15,fontWeight:700,textDecoration:"none",display:"inline-flex",alignItems:"center"},className:"hover:opacity-90 transition-opacity",children:"Bekijk alle skills & koppelingen →"})]}),e.jsx("div",{className:"grid grid-cols-2 gap-3.5",children:[{icon:"📄",title:"Offerte skill",text:"Haalt klantdata op uit Exact en stelt een conceptofferte op in jullie huisstijl. Klaar voor review in 3 minuten."},{icon:"📬",title:"Follow-up skill",text:"Checkt dagelijks welke offertes of leads te lang stil liggen en stelt een gepersonaliseerd bericht op."},{icon:"📊",title:"Rapportage skill",text:"Haalt cijfers op uit meerdere systemen en genereert een overzicht klaar voor de directie."},{icon:"🗂️",title:"Onboarding skill",text:"Stelt een volledig onboardingplan op voor nieuwe medewerkers op basis van functie en team."}].map((k,w)=>e.jsxs("div",{style:{background:"rgba(255,255,255,0.05)",border:"1px solid rgba(255,255,255,0.08)",borderRadius:12,padding:18,display:"flex",gap:12,alignItems:"flex-start"},children:[e.jsx("span",{style:{fontSize:20,flexShrink:0,marginTop:2},children:k.icon}),e.jsxs("div",{children:[e.jsx("h4",{style:{fontSize:13,fontWeight:700,color:"#fff",marginBottom:3},children:k.title}),e.jsx("p",{style:{fontSize:12,color:"rgba(255,255,255,0.45)",lineHeight:1.5},children:k.text})]})]},w))})]}),e.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-4",children:b.map((k,w)=>e.jsx(ZS,{imageUrl:m(k.key),fallback:k.fallback,caption:k.caption,darkMode:!0},w))})]})}),e.jsx("section",{style:{backgroundColor:"#f5f5f5"},className:"py-[88px]",children:e.jsxs("div",{className:"max-w-[1100px] mx-auto px-6",children:[e.jsxs("div",{style:{textAlign:"center",maxWidth:600,margin:"0 auto 40px"},children:[e.jsx("p",{style:{color:"#f0a500",fontSize:11,fontWeight:700,textTransform:"uppercase",letterSpacing:"0.12em",marginBottom:12},children:"Voorbeelden per rol"}),e.jsx("h2",{style:{fontSize:"clamp(26px, 3.5vw, 40px)",fontWeight:700,lineHeight:1.15,color:"#1a1a1a",marginBottom:12},children:"Wat kun je vragen? Per afdeling."}),e.jsx("p",{style:{color:"#666",fontSize:16},children:"Dit zijn vragen die jouw medewerkers straks gewoon kunnen stellen — in hun eigen woorden, in Cowork."})]}),e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-5",children:[{icon:"💼",name:"Salesmedewerker",sub:"CRM, offertes, klantcontact",questions:["Wat weet ik al over klant De Vries BV voordat ik bel?","Welke klanten heb ik al 3 maanden niet gesproken?","Maak een offerte op basis van ons laatste gesprek.","Welke offertes staan al meer dan 2 weken open?"]},{icon:"📦",name:"Logistiek medewerker",sub:"Orders, planning, leveringen",questions:["Welke orders worden morgen niet op tijd geleverd?","Pas de levertijd van order #4421 aan naar vrijdag.","Stuur een update naar de klant van order #4421.","Wat is de huidige voorraadstatus van artikel X?"]},{icon:"💰",name:"Finance / controller",sub:"Facturatie, omzet, cashflow",questions:["Wat is onze omzet dit kwartaal versus vorig jaar?","Welke facturen staan langer dan 60 dagen open?","Maak een cashflow-overzicht voor de directie.","Welke klanten betalen structureel te laat?"]},{icon:"👤",name:"HR-medewerker",sub:"Personeel, verlof, onboarding",questions:["Welke medewerkers hebben hun evaluatie nog niet gehad?","Stel een onboardingplan op voor de nieuwe medewerker.","Hoeveel verlofuren heeft team Noord nog over?","Wie heeft er volgende week vrij en wie valt er in?"]}].map((k,w)=>e.jsxs("div",{style:{background:"#fff",border:"1px solid #e8e8e8",borderRadius:14,padding:28},children:[e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:14,marginBottom:20},children:[e.jsx("div",{style:{width:44,height:44,backgroundColor:"#fef3d0",borderRadius:10,display:"flex",alignItems:"center",justifyContent:"center",fontSize:20,flexShrink:0},children:k.icon}),e.jsxs("div",{children:[e.jsx("div",{style:{fontSize:16,fontWeight:700,color:"#1a1a1a"},children:k.name}),e.jsx("div",{style:{fontSize:12,color:"#999"},children:k.sub})]})]}),e.jsx("div",{className:"flex flex-col gap-2",children:k.questions.map((N,A)=>e.jsxs("div",{style:{backgroundColor:"#f5f5f5",borderRadius:8,padding:"10px 14px 10px 28px",fontSize:13.5,color:"#444",lineHeight:1.5,fontStyle:"italic",position:"relative"},children:[e.jsx("span",{style:{position:"absolute",left:11,top:9,fontSize:16,color:"#f0a500",fontStyle:"normal",fontWeight:700,lineHeight:1},children:'"'}),N]},A))})]},w))})]})}),e.jsx(XZ,{}),e.jsx(wv,{text:"Klaar om dit te zien in jouw eigen CRM en boekhoudpakket?",highlight:"Gratis demo, 30 minuten.",btnText:"Plan een demo →",to:se("ClaudeCoworkAdvies")}),e.jsx("section",{className:"py-[88px]",children:e.jsxs("div",{className:"max-w-[1100px] mx-auto px-6",children:[e.jsxs("div",{style:{textAlign:"center",maxWidth:600,margin:"0 auto 56px"},children:[e.jsx("p",{style:{color:"#f0a500",fontSize:11,fontWeight:700,textTransform:"uppercase",letterSpacing:"0.12em",marginBottom:12},children:"Hoe werkt het?"}),e.jsx("h2",{style:{fontSize:"clamp(26px, 3.5vw, 40px)",fontWeight:700,lineHeight:1.15,color:"#1a1a1a",marginBottom:12},children:"Van eerste gesprek tot werkende Cowork-omgeving."}),e.jsx("p",{style:{color:"#666",fontSize:16},children:"48-7 neemt het volledige traject op zich — van intake tot oplevering. Jouw team hoeft alleen maar te werken."})]}),e.jsx("div",{className:"grid grid-cols-2 sm:grid-cols-3 lg:grid-cols-5 gap-7",children:[{nr:"01",day:"Dag 1",title:"Intake & scan",body:"We inventariseren processen, tools en doelen. Je krijgt direct eerlijk advies over wat Cowork oplevert.",active:!0},{nr:"02",day:"Dag 2–3",title:"Koppelen",body:"We verbinden Cowork met Exact, je CRM, mailbox en andere tools via bewezen koppelingen.",active:!0},{nr:"03",day:"Dag 3–4",title:"Skills bouwen",body:"We bouwen de skills op maat: ingesteld op jouw branche, processen, tone of voice en workflows.",active:!0},{nr:"04",day:"Dag 5",title:"Live & onboarding",body:"Jouw team gaat aan de slag. We begeleiden de eerste weken zodat adoptie soepel verloopt.",active:!0},{nr:"↺",day:"Optioneel",title:"Service abonnement",body:"Maandelijkse check-ins, updates en nieuwe koppelingen via ons service abonnement — geen verplichting.",active:!1}].map((k,w)=>e.jsxs("div",{style:{textAlign:"center",position:"relative",zIndex:1},children:[e.jsx("div",{className:"font-bebas",style:{width:64,height:64,borderRadius:"50%",background:k.active?"#f0a500":"#fff",border:k.active?"2px solid #f0a500":"2px solid #e8e8e8",display:"flex",alignItems:"center",justifyContent:"center",margin:"0 auto 16px",fontSize:22,color:k.active?"#fff":"#999",boxShadow:k.active?"0 4px 16px rgba(240,165,0,0.3)":"none"},children:k.nr}),e.jsx("p",{style:{fontSize:11,fontWeight:700,textTransform:"uppercase",letterSpacing:"0.1em",color:"#f0a500",marginBottom:6},children:k.day}),e.jsx("h4",{style:{fontSize:15,fontWeight:700,color:"#1a1a1a",marginBottom:6},children:k.title}),e.jsx("p",{style:{fontSize:13,color:"#666",lineHeight:1.55},children:k.body})]},w))})]})}),e.jsx(eee,{}),e.jsx(wv,{text:"Dit herken je?",highlight:"Bekijk wat een setup kost en wat je ervoor terugkrijgt.",btnText:"Bekijk prijzen ↓",onClick:()=>{var k;return(k=document.getElementById("pricing"))==null?void 0:k.scrollIntoView({behavior:"smooth"})}}),e.jsx(ree,{}),e.jsx("section",{style:{backgroundColor:"#f5f5f5"},className:"py-[88px]",children:e.jsx("div",{className:"max-w-[1100px] mx-auto px-6",children:e.jsxs("div",{className:"grid lg:grid-cols-2 gap-16 items-start",children:[e.jsxs("div",{children:[e.jsx("p",{style:{color:"#f0a500",fontSize:11,fontWeight:700,textTransform:"uppercase",letterSpacing:"0.12em",marginBottom:14},children:"Waarom 48-7?"}),e.jsx("h2",{style:{fontSize:"clamp(26px, 3.5vw, 40px)",fontWeight:700,lineHeight:1.15,color:"#1a1a1a",marginBottom:32},children:"Eerste Claude Cowork-specialist in Nederland."}),e.jsx("div",{className:"flex flex-col gap-6",children:[{icon:e.jsx(eu,{className:"w-5 h-5",style:{stroke:"#f0a500",fill:"none"}}),title:"Eerste in Nederland",text:"48-7 is het eerste bureau dat Claude Cowork configureert als digitale medewerker voor het Nederlandse MKB."},{icon:e.jsx(vn,{className:"w-5 h-5",style:{stroke:"#f0a500",fill:"none"}}),title:"Resultaat in dagen",text:"Geen IT-projecten van zes maanden. Doorgaans live binnen een week na de intake."},{icon:e.jsx(fi,{className:"w-5 h-5",style:{stroke:"#f0a500",fill:"none"}}),title:"Jouw team merkt niets",text:"Medewerkers werken gewoon in Cowork — hun vertrouwde omgeving. Geen nieuw systeem, geen training verplicht, geen weerstand op de werkvloer."}].map((k,w)=>e.jsxs("div",{className:"flex gap-4",children:[e.jsx("div",{style:{width:52,height:52,borderRadius:"50%",backgroundColor:"#fef3d0",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0},children:k.icon}),e.jsxs("div",{children:[e.jsx("h4",{style:{fontSize:16,fontWeight:700,marginBottom:4,color:"#1a1a1a"},children:k.title}),e.jsx("p",{style:{color:"#666",fontSize:15,lineHeight:1.6},children:k.text})]})]},w))})]}),e.jsxs("div",{style:{backgroundColor:"#1a1a1a",borderRadius:16,padding:32},children:[e.jsx("p",{style:{fontSize:11,fontWeight:700,textTransform:"uppercase",letterSpacing:"0.1em",color:"#f0a500",marginBottom:10},children:"Technologie"}),e.jsx("h3",{style:{color:"#fff",fontSize:18,marginBottom:12,lineHeight:1.4,fontWeight:700},children:"Gebouwd op Anthropic Claude — de meest betrouwbare enterprise AI ter wereld."}),e.jsx("p",{style:{color:"rgba(255,255,255,0.55)",fontSize:14,lineHeight:1.7},children:"Claude is de AI van Anthropic, opgericht door voormalig OpenAI-onderzoekers met veiligheid als kernprincipe. GDPR-compliant. Jouw data wordt nooit gebruikt voor AI-training."}),e.jsx("div",{className:"grid grid-cols-2 gap-2.5 mt-5",children:[{val:"GDPR",label:"EU-dataverwerking"},{val:"0%",label:"Data in trainingsmodellen"},{val:"SOC2",label:"Gecertificeerde beveiliging"},{val:"F500",label:"Enterprise-bewezen"}].map((k,w)=>e.jsxs("div",{style:{background:"rgba(255,255,255,0.06)",borderRadius:10,padding:14},children:[e.jsx("strong",{className:"font-bebas",style:{display:"block",fontSize:26,color:"#f0a500",lineHeight:1},children:k.val}),e.jsx("span",{style:{fontSize:12,color:"rgba(255,255,255,0.4)",marginTop:3,display:"block"},children:k.label})]},w))})]})]})})}),e.jsx("section",{style:{backgroundColor:"#f5f5f5",borderTop:"1px solid #e8e8e8"},className:"py-[88px]",children:e.jsx("div",{className:"max-w-[1100px] mx-auto px-6",children:e.jsxs("div",{className:"grid lg:grid-cols-2 gap-16 items-center",children:[e.jsxs("div",{children:[e.jsx("p",{style:{color:"#f0a500",fontSize:11,fontWeight:700,textTransform:"uppercase",letterSpacing:"0.12em",marginBottom:14},children:"Gratis gids"}),e.jsx("h2",{style:{fontSize:"clamp(26px, 3.5vw, 40px)",fontWeight:700,lineHeight:1.15,color:"#1a1a1a",marginBottom:14},children:"De Complete Gids voor Claude Cowork in het MKB."}),e.jsx("p",{style:{color:"#666",marginBottom:24,lineHeight:1.75},children:"15 pagina's praktische kennis: hoe je Claude Cowork inricht, welke koppelingen het meeste opleveren en hoe je draagvlak creëert bij je team."}),e.jsx("div",{className:"flex flex-col gap-2",children:[{nr:"01",text:"Wat is Claude Cowork en wat niet"},{nr:"02",text:"De 5 processen die je als eerste automatiseert"},{nr:"03",text:"Koppelingen die het meeste opleveren per branche"},{nr:"04",text:"Hoe je draagvlak creëert bij je team"},{nr:"05",text:"Kosten, ROI en terugverdientijd"}].map((k,w)=>e.jsxs("div",{style:{display:"flex",gap:10,alignItems:"center",fontSize:14,color:"#444"},children:[e.jsx("span",{className:"font-bebas",style:{fontSize:16,color:"#f0a500",minWidth:24},children:k.nr}),k.text]},w))})]}),e.jsx("div",{style:{background:"#fff",borderRadius:16,padding:32,border:"1px solid #e8e8e8"},children:s?e.jsxs("div",{style:{textAlign:"center",padding:"32px 0"},children:[e.jsx("div",{style:{fontSize:40,marginBottom:16},children:"✅"}),e.jsx("h3",{style:{fontSize:20,fontWeight:700,marginBottom:8,color:"#1a1a1a"},children:"Aanvraag ontvangen!"}),e.jsx("p",{style:{color:"#666",fontSize:14},children:"We sturen de gids zo snel mogelijk naar je e-mailadres."})]}):e.jsxs("form",{onSubmit:v,children:[e.jsx("h3",{style:{fontSize:20,fontWeight:700,marginBottom:6,color:"#1a1a1a"},children:"Download gratis Cowork gids"}),e.jsx("p",{style:{fontSize:14,color:"#666",marginBottom:22},children:"Ontvang de gids direct in je mailbox."}),e.jsx("input",{type:"text",name:"name",autoComplete:"name",placeholder:"Jouw naam",required:!0,value:r.name,onChange:k=>i({...r,name:k.target.value}),style:{width:"100%",padding:"12px 14px",border:"1.5px solid #e8e8e8",borderRadius:8,fontSize:15,fontFamily:"inherit",marginBottom:12,backgroundColor:"#f5f5f5",display:"block",outline:"none"}}),e.jsx("input",{type:"email",name:"email",autoComplete:"email",placeholder:"E-mailadres",required:!0,value:r.email,onChange:k=>i({...r,email:k.target.value}),style:{width:"100%",padding:"12px 14px",border:"1.5px solid #e8e8e8",borderRadius:8,fontSize:15,fontFamily:"inherit",marginBottom:12,backgroundColor:"#f5f5f5",display:"block",outline:"none"}}),e.jsx("input",{type:"text",name:"organization",autoComplete:"organization",placeholder:"Bedrijfsnaam",required:!0,value:r.company,onChange:k=>i({...r,company:k.target.value}),style:{width:"100%",padding:"12px 14px",border:"1.5px solid #e8e8e8",borderRadius:8,fontSize:15,fontFamily:"inherit",marginBottom:12,backgroundColor:"#f5f5f5",display:"block",outline:"none"}}),e.jsx("button",{type:"submit",style:{width:"100%",backgroundColor:"#f0a500",color:"#fff",padding:14,borderRadius:8,fontSize:15,fontWeight:700,border:"none",cursor:"pointer",fontFamily:"inherit"},children:"Stuur mij de gids →"}),e.jsx("p",{style:{fontSize:12,color:"#999",textAlign:"center",marginTop:10},children:"Geen spam. Geen verplichtingen. Gewoon kennis."})]})})]})})}),e.jsx("section",{style:{backgroundColor:"#1a1a1a"},className:"py-[88px]",children:e.jsx("div",{className:"max-w-[1100px] mx-auto px-6",children:e.jsxs("div",{className:"grid lg:grid-cols-2 gap-16 items-center",children:[e.jsxs("div",{children:[e.jsx("p",{style:{color:"#f0a500",fontSize:11,fontWeight:700,textTransform:"uppercase",letterSpacing:"0.12em",marginBottom:14},children:"Gratis kennismaking"}),e.jsx("h2",{style:{fontSize:"clamp(26px, 3.5vw, 40px)",fontWeight:700,lineHeight:1.15,color:"#fff",marginBottom:16},children:"Klaar om Cowork in actie te zien?"}),e.jsx("p",{style:{color:"rgba(255,255,255,0.55)",marginBottom:28,lineHeight:1.75},children:"Plan een demo van 30 minuten. We laten je zien wat Cowork concreet doet voor jouw bedrijf — zonder verkooppraatje, met echte voorbeelden uit jouw branche."}),e.jsxs("div",{className:"flex items-center gap-4 flex-wrap",children:[e.jsx(de,{to:se("ClaudeCoworkAdvies"),style:{backgroundColor:"#f0a500",color:"#fff",padding:"14px 24px",borderRadius:8,fontSize:15,fontWeight:700,textDecoration:"none",display:"inline-flex",alignItems:"center"},className:"hover:opacity-90 transition-opacity",children:"Plan een demo"}),e.jsxs("span",{style:{color:"rgba(255,255,255,0.4)",fontSize:14},children:["Of bel: ",e.jsx("strong",{style:{color:"#fff",marginLeft:6},children:"+31 085-06 01 487"})]})]})]}),e.jsx("div",{style:{background:"rgba(255,255,255,0.06)",border:"1px solid rgba(255,255,255,0.1)",borderRadius:16,padding:32},children:d?e.jsxs("div",{style:{textAlign:"center",padding:"32px 0"},children:[e.jsx("div",{style:{fontSize:40,marginBottom:16},children:"✅"}),e.jsx("h3",{style:{fontSize:20,fontWeight:700,marginBottom:8,color:"#fff"},children:"Aanvraag ontvangen!"}),e.jsx("p",{style:{color:"rgba(255,255,255,0.55)",fontSize:14},children:"We nemen zo snel mogelijk contact met je op."})]}):e.jsxs("form",{onSubmit:x,children:[e.jsx("h3",{style:{color:"#fff",fontSize:19,fontWeight:700,marginBottom:18},children:"Plan een gratis demo"}),e.jsx("input",{type:"text",name:"name",autoComplete:"name",placeholder:"Jouw naam",required:!0,value:o.name,onChange:k=>c({...o,name:k.target.value}),style:j}),e.jsx("input",{type:"email",name:"email",autoComplete:"email",placeholder:"E-mailadres",required:!0,value:o.email,onChange:k=>c({...o,email:k.target.value}),style:j}),e.jsx("input",{type:"text",name:"organization",autoComplete:"organization",placeholder:"Bedrijfsnaam",required:!0,value:o.company,onChange:k=>c({...o,company:k.target.value}),style:j}),e.jsxs("select",{value:o.branche,onChange:k=>c({...o,branche:k.target.value}),style:{...j,color:o.branche?"#fff":"rgba(255,255,255,0.35)"},children:[e.jsx("option",{value:"",disabled:!0,children:"Branche"}),["Zakelijke dienstverlening","Bouw & Installatie","Zorg & Welzijn","Groothandel & Transport","Financiële dienstverlening","Anders"].map(k=>e.jsx("option",{value:k,style:{backgroundColor:"#1a1a1a",color:"#fff"},children:k},k))]}),e.jsx("textarea",{placeholder:"Wat wil je automatiseren? (optioneel)",value:o.bericht,onChange:k=>c({...o,bericht:k.target.value}),style:{...j,minHeight:80,resize:"vertical"}}),e.jsx("button",{type:"submit",style:{width:"100%",backgroundColor:"#f0a500",color:"#fff",padding:14,borderRadius:8,fontSize:15,fontWeight:700,border:"none",cursor:"pointer",fontFamily:"inherit",marginTop:4},children:"Verstuur aanvraag →"})]})})]})})}),e.jsx("section",{className:"py-16",children:e.jsxs("div",{className:"max-w-[1100px] mx-auto px-6",children:[e.jsx("p",{style:{fontSize:12,fontWeight:700,textTransform:"uppercase",letterSpacing:"0.1em",color:"#999",textAlign:"center",marginBottom:24},children:"Meer van 48-7 rondom Claude Cowork"}),e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4",children:[{icon:"💻",title:"Claude Code Training",text:"Ontdek de geheimen van Claude Code in een training of 1:1 sessie voor jouw development team.",link:se("ClaudeCoworkTraining"),linkText:"Bekijk training →"},{icon:"🔌",title:"Skills & Connectors",text:"Breid Cowork uit met kant-en-klare skills en software-koppelingen. Vanaf gratis.",link:se("ClaudeCoworkSkillsConnectors"),linkText:"Naar de marketplace →"},{icon:"💡",title:"Claude Cowork Advies",text:"Weet je niet waar je moet beginnen? 48-7 brengt de kansen voor jouw team in kaart.",link:se("ClaudeCoworkAdvies"),linkText:"Meer over advies →"}].map((k,w)=>e.jsxs("div",{style:{border:"1px solid #e8e8e8",borderRadius:12,padding:24,display:"flex",gap:16,alignItems:"flex-start",transition:"box-shadow 0.2s, transform 0.2s"},className:"hover:shadow-lg hover:-translate-y-0.5 transition-all",children:[e.jsx("div",{style:{width:40,height:40,borderRadius:"50%",backgroundColor:"#fef3d0",display:"flex",alignItems:"center",justifyContent:"center",fontSize:18,flexShrink:0},children:k.icon}),e.jsxs("div",{children:[e.jsx("h4",{style:{fontSize:16,fontWeight:700,marginBottom:4,color:"#1a1a1a"},children:k.title}),e.jsx("p",{style:{fontSize:13,color:"#666",lineHeight:1.55,marginBottom:10},children:k.text}),e.jsx(de,{to:k.link,style:{fontSize:13,fontWeight:700,color:"#f0a500"},className:"hover:underline",children:k.linkText})]})]},w))})]})}),e.jsx(P6,{})]})}const oee=[{title:"Workflow automatisering",desc:"Welke processen zijn geschikt voor Claude?"},{title:"Team onboarding",desc:"Hoe introduceer je Claude in je team?"},{title:"Tool integraties",desc:"Welke connectors passen bij jouw stack?"},{title:"Governance & beleid",desc:"Veilig en verantwoord AI gebruik."},{title:"ROI berekening",desc:"Wat levert Claude jouw organisatie op?"},{title:"Maatwerk traject",desc:"Een aanpak die past bij jouw situatie."}];function lee(){const[t,n]=R.useState({name:"",email:"",phone:"",company:"",question:""}),[r,i]=R.useState(!1),[s,a]=R.useState(!1),o=async c=>{c.preventDefault(),a(!0),await ce.functions.invoke("sendContactForm",{name:t.name,email:t.email,phone:t.phone,company:t.company,subject:"Claude Cowork Advies",message:t.question}),a(!1),i(!0)};return e.jsxs("div",{className:"pt-20 min-h-screen bg-white",children:[e.jsx("section",{className:"bg-purple-50 border-b border-purple-100 py-16",children:e.jsx("div",{className:"max-w-5xl mx-auto px-4 sm:px-6 lg:px-8",children:e.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},children:[e.jsx(de,{to:se("ClaudeCowork"),className:"inline-flex items-center gap-2 text-sm text-purple-600 font-medium mb-6 hover:underline",children:"← Claude Cowork"}),e.jsxs("div",{className:"inline-flex items-center gap-2 px-4 py-2 bg-purple-100 rounded-full text-purple-700 text-sm font-semibold mb-4",children:[e.jsx(Wi,{className:"w-4 h-4"}),"Advies"]}),e.jsx("h1",{className:"text-4xl sm:text-5xl font-bold text-gray-900 mb-4",children:"Persoonlijk Claude Advies"}),e.jsx("p",{className:"text-xl text-gray-600 max-w-2xl",children:"Wil je weten hoe Claude Cowork het beste past binnen jouw organisatie? Onze experts denken graag met je mee."})]})})}),e.jsx("section",{className:"py-16",children:e.jsx("div",{className:"max-w-5xl mx-auto px-4 sm:px-6 lg:px-8",children:e.jsxs("div",{className:"grid lg:grid-cols-2 gap-16",children:[e.jsxs("div",{children:[e.jsx("h2",{className:"text-2xl font-bold text-gray-900 mb-6",children:"Waar kunnen we bij helpen?"}),e.jsx("div",{className:"grid grid-cols-2 gap-4",children:oee.map((c,d)=>e.jsxs(Z.div,{initial:{opacity:0,y:10},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:d*.05},className:"bg-gray-50 rounded-xl p-4 border border-gray-100",children:[e.jsx(gt,{className:"w-5 h-5 text-purple-500 mb-2"}),e.jsx("p",{className:"font-semibold text-gray-900 text-sm",children:c.title}),e.jsx("p",{className:"text-xs text-gray-500 mt-1",children:c.desc})]},d))})]}),e.jsx("div",{children:r?e.jsxs("div",{className:"bg-green-50 border border-green-200 rounded-2xl p-8 text-center",children:[e.jsx(gt,{className:"w-12 h-12 text-green-500 mx-auto mb-4"}),e.jsx("h3",{className:"text-xl font-bold text-gray-900 mb-2",children:"Aanvraag ontvangen!"}),e.jsx("p",{className:"text-gray-600",children:"We nemen binnen 1 werkdag contact met je op."})]}):e.jsxs("form",{onSubmit:o,className:"bg-white rounded-2xl border border-gray-200 p-8 shadow-sm space-y-5",children:[e.jsxs("h2",{className:"text-xl font-bold text-gray-900 flex items-center gap-2",children:[e.jsx($o,{className:"w-5 h-5 text-purple-500"}),"Advies aanvragen"]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-1",children:"Naam *"}),e.jsx("input",{required:!0,value:t.name,onChange:c=>n({...t,name:c.target.value}),className:"w-full px-4 py-3 border border-gray-200 rounded-xl text-sm focus:outline-none focus:border-purple-400",placeholder:"Jouw naam"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-1",children:"E-mail *"}),e.jsx("input",{required:!0,type:"email",value:t.email,onChange:c=>n({...t,email:c.target.value}),className:"w-full px-4 py-3 border border-gray-200 rounded-xl text-sm focus:outline-none focus:border-purple-400",placeholder:"jouw@email.nl"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-1",children:"Telefoonnummer"}),e.jsx("input",{type:"tel",value:t.phone,onChange:c=>n({...t,phone:c.target.value}),className:"w-full px-4 py-3 border border-gray-200 rounded-xl text-sm focus:outline-none focus:border-purple-400",placeholder:"+31 6 12345678"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-1",children:"Bedrijf"}),e.jsx("input",{value:t.company,onChange:c=>n({...t,company:c.target.value}),className:"w-full px-4 py-3 border border-gray-200 rounded-xl text-sm focus:outline-none focus:border-purple-400",placeholder:"Bedrijfsnaam"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-1",children:"Jouw vraag *"}),e.jsx("textarea",{required:!0,value:t.question,onChange:c=>n({...t,question:c.target.value}),rows:4,className:"w-full px-4 py-3 border border-gray-200 rounded-xl text-sm focus:outline-none focus:border-purple-400 resize-none",placeholder:"Vertel ons waar je mee bezig bent en waar je advies over wilt..."})]}),e.jsx("button",{type:"submit",disabled:s,className:"w-full py-3 bg-purple-600 text-white font-semibold rounded-xl hover:bg-purple-700 transition-colors disabled:opacity-60 flex items-center justify-center gap-2",children:s?"Versturen...":e.jsxs(e.Fragment,{children:[e.jsx("span",{children:"Verstuur aanvraag"}),e.jsx($e,{className:"w-4 h-4"})]})})]})})]})})})]})}const cee=[{type:"connector",name:"Google Workspace",capability:"Documenten & e-mail",description:"Verbind Claude met Google Docs, Gmail, Drive en Sheets. Genereer content, verwerk e-mails en analyseer data direct vanuit je Workspace.",price:"Inbegrepen",priceNote:"",badge:"popular",sector:"Algemeen",features:["Docs samenvatten & herschrijven","E-mails opstellen en beantwoorden","Spreadsheet data analyseren","Drive-bestanden doorzoeken"]},{type:"connector",name:"Slack",capability:"Teamsamenwerking",description:"Claude als teamassistent in Slack. Beantwoord vragen, vat threads samen en automatiseer notificaties in je kanalen.",price:"Inbegrepen",priceNote:"",badge:"popular",sector:"Communicatie",features:["Thread samenvattingen","Vragen beantwoorden in kanalen","Automatische notificaties","Meeting-aantekeningen verwerken"]},{type:"connector",name:"HubSpot CRM",capability:"Verkoop & marketing",description:"Laat Claude werken met je CRM-data. Genereer follow-up e-mails, analyseer deals en schrijf marketingcontent op basis van contactdata.",price:"Op aanvraag",priceNote:"",badge:"new",sector:"Sales & Marketing",features:["Follow-up e-mails genereren","Deal-analyses schrijven","Contactdata verrijken","Marketing copy op maat"]},{type:"connector",name:"Microsoft 365",capability:"Office & Teams",description:"Integreer Claude met Word, Excel, Outlook en Teams. Schrijf rapporten, analyseer data en stel e-mails op vanuit je Microsoft-omgeving.",price:"Op aanvraag",priceNote:"",badge:null,sector:"Algemeen",features:["Word-documenten genereren","Excel-data analyseren","Outlook e-mails opstellen","Teams-berichten samenvatten"]},{type:"connector",name:"Notion",capability:"Kennisbeheer",description:"Verbind je Notion workspace met Claude. Doorzoek pagina's, genereer content en houd kennisbanken actueel met AI-ondersteuning.",price:"Inbegrepen",priceNote:"",badge:null,sector:"Productiviteit",features:["Pagina's doorzoeken & samenvatten","Nieuwe pagina's genereren","Databases bijwerken","Meetingnotities verwerken"]},{type:"connector",name:"Zapier / Make",capability:"Workflow automatisering",description:"Verbind Claude met honderden apps via Zapier of Make. Automatiseer repetitieve taken zonder te programmeren.",price:"Op aanvraag",priceNote:"",badge:"popular",sector:"Automatisering",features:["500+ app-koppelingen","Triggers en acties instellen","Data transformeren met AI","Workflows testen & monitoren"]},{type:"skill",name:"Prompt Engineering",capability:"Communicatie met AI",description:"Leer hoe je Claude de juiste instructies geeft voor consistente, kwalitatieve output. Van basis tot geavanceerde technieken.",price:"Gratis",priceNote:"",badge:"free",sector:"Basis",features:["Structuur van een goede prompt","Rol, context & format","Chain-of-thought technieken","Itereren en verbeteren"]},{type:"skill",name:"Teksten & Content",capability:"Schrijven & communiceren",description:"Gebruik Claude als schrijfassistent voor blogs, e-mails, rapporten en sociale media. Inclusief tone-of-voice instructies.",price:"Gratis",priceNote:"",badge:"free",sector:"Marketing & Communicatie",features:["Blogartikelen schrijven","E-mails en brieven opstellen","Social media content","Rapporten & samenvattingen"]},{type:"skill",name:"Data Analyse",capability:"Inzichten uit data",description:"Laat Claude data interpreteren, patronen ontdekken en rapportages schrijven op basis van CSV's, tabellen of ruwe cijfers.",price:"Gratis",priceNote:"",badge:"popular",sector:"Analyse",features:["CSV en tabel analyse","Trends en patronen signaleren","Rapportages genereren","Aanbevelingen formuleren"]},{type:"skill",name:"Klantenservice Scripts",capability:"Support & klantcontact",description:"Bouw een bibliotheek van antwoorden en scripts op voor je klantenservice team, afgestemd op jouw tone-of-voice.",price:"Op aanvraag",priceNote:"",badge:"new",sector:"Customer Service",features:["FAQ-bibliotheek opbouwen","Escalatiescripts","Tone-of-voice kalibreren","Antwoorden itereren"]},{type:"skill",name:"Vergaderingen & Notulen",capability:"Productiviteit",description:"Verwerk vergadernotities en transcripties automatisch naar gestructureerde notulen, actiepunten en samenvattingen.",price:"Gratis",priceNote:"",badge:"free",sector:"Productiviteit",features:["Transcriptie verwerken","Actiepunten extraheren","Samenvattingen genereren","Agendapunten voorbereiden"]},{type:"skill",name:"Juridisch & Compliance",capability:"Documenten & beleid",description:"Laat Claude helpen bij het doornemen, samenvatten en opstellen van contracten, beleidsdocumenten en complianceteksten.",price:"Op aanvraag",priceNote:"",badge:null,sector:"Juridisch",features:["Contracten samenvatten","Clausules uitleggen","Beleidsdocumenten opstellen","Risico's signaleren"]}],e4={free:{label:"Gratis",className:"bg-green-100 text-green-700"},paid:{label:"Betaald",className:"bg-amber-100 text-amber-700"},popular:{label:"Populair",className:"bg-orange-100 text-orange-700"},new:{label:"Nieuw",className:"bg-blue-100 text-blue-700"}};function uee(){const[t,n]=R.useState(""),[r,i]=R.useState("all"),[s,a]=R.useState("all"),[o,c]=R.useState(null),{data:d=[]}=Fe({queryKey:["cowork-skills"],queryFn:()=>ce.entities.CoworkSkill.filter({active:!0})}),{data:h=[]}=Fe({queryKey:["cowork-connectors"],queryFn:()=>ce.entities.CoworkConnector.filter({active:!0})}),f=[...h.map(b=>({...b,type:"connector"})),...d.map(b=>({...b,type:"skill"}))].length>0?[...h.map(b=>({...b,type:"connector"})),...d.map(b=>({...b,type:"skill"}))]:cee,m=["all",...Array.from(new Set(f.map(b=>b.sector)))],p=f.filter(b=>{const j=r==="all"||b.type===r,v=s==="all"||b.sector===s,x=!t||b.name.toLowerCase().includes(t.toLowerCase())||b.description.toLowerCase().includes(t.toLowerCase());return j&&v&&x}),g=[{icon:e.jsx(_n,{className:"w-5 h-5 text-amber-500"}),title:"Wat is Claude Cowork?",desc:"Geen chatbot, maar een digitale medewerker die zelfstandig werkt in jouw software.",link:se("ClaudeCowork"),linkLabel:"Lees meer →"},{icon:e.jsx(Nu,{className:"w-5 h-5 text-amber-500"}),title:"Hoe werken Skills & Connectors?",desc:"Skills geven Claude branchekennis. Connectors koppelen Claude aan jouw software.",link:se("ClaudeCowork"),linkLabel:"Bekijk uitleg →"},{icon:e.jsx(c8,{className:"w-5 h-5 text-amber-500"}),title:"Hoe 48-7 helpt met Cowork",desc:"Van intake tot live in één week. 48-7 configureert, koppelt en beheert Cowork voor jouw bedrijf.",link:se("ClaudeCoworkAdvies"),linkLabel:"Hoe wij werken →"}];return e.jsxs("div",{className:"pt-20 min-h-screen bg-white",children:[e.jsx("section",{className:"bg-[#f5f0e8] py-14",children:e.jsx("div",{className:"max-w-6xl mx-auto px-4 sm:px-6 lg:px-8",children:e.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},children:[e.jsx("div",{className:"flex items-center gap-2 mb-8",children:e.jsx("img",{src:"https://qtrypzzcjebvfcihiynt.supabase.co/storage/v1/object/public/base44-prod/public/695a3d411fa079edce588856/a37e4e72c_66af996a9e55f1ee29f117ab1.png",alt:"Claude",className:"h-8"})}),e.jsx("h1",{className:"text-4xl sm:text-5xl font-bold text-gray-900 mb-1 leading-tight",children:"Skills & Connectors"}),e.jsx("h2",{className:"text-4xl sm:text-5xl font-bold text-[#D4731C] mb-6 leading-tight",children:"voor Claude Cowork."}),e.jsx("p",{className:"text-lg text-gray-600 max-w-md mb-10",children:"Breid jouw Cowork-configuratie uit met kant-en-klare skills, software-koppelingen en branche-bundles. Gratis te starten, op maat te schalen."}),e.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-4",children:g.map((b,j)=>e.jsxs("div",{className:"bg-white rounded-2xl p-5 shadow-sm border border-gray-100",children:[e.jsx("div",{className:"w-10 h-10 bg-amber-50 rounded-full flex items-center justify-center mb-3",children:b.icon}),e.jsx("h3",{className:"font-bold text-gray-900 text-sm mb-1",children:b.title}),e.jsx("p",{className:"text-xs text-gray-500 leading-relaxed mb-3",children:b.desc}),e.jsx(de,{to:b.link,className:"text-xs font-semibold text-[#D4731C] hover:underline",children:b.linkLabel})]},j))})]})})}),e.jsx("section",{className:"py-12",children:e.jsx("div",{className:"max-w-6xl mx-auto px-4 sm:px-6 lg:px-8",children:e.jsxs("div",{className:"flex flex-col lg:flex-row gap-10",children:[e.jsx("aside",{className:"lg:w-56 flex-shrink-0",children:e.jsxs("div",{className:"sticky top-24 space-y-6",children:[e.jsxs("div",{className:"relative",children:[e.jsx(mi,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-gray-400"}),e.jsx("input",{type:"text",value:t,onChange:b=>n(b.target.value),placeholder:"Zoeken...",className:"w-full pl-9 pr-4 py-2.5 border border-gray-200 rounded-lg text-sm bg-gray-50 focus:outline-none focus:border-amber-400"})]}),e.jsxs("div",{children:[e.jsx("p",{className:"text-xs font-bold uppercase tracking-wider text-gray-400 mb-2",children:"Type"}),[{key:"all",label:"Alles"},{key:"connector",label:"Connectors"},{key:"skill",label:"Skills"}].map(b=>e.jsxs("button",{onClick:()=>i(b.key),className:`block w-full text-left px-3 py-2 rounded-lg text-sm transition-colors ${r===b.key?"bg-amber-100 text-gray-900 font-semibold":"text-gray-600 hover:bg-gray-100"}`,children:[b.label,e.jsx("span",{className:"float-right text-xs text-gray-400",children:b.key==="all"?f.length:f.filter(j=>j.type===b.key).length})]},b.key))]}),e.jsxs("div",{children:[e.jsx("p",{className:"text-xs font-bold uppercase tracking-wider text-gray-400 mb-2",children:"Sector"}),m.map(b=>e.jsx("button",{onClick:()=>a(b),className:`block w-full text-left px-3 py-2 rounded-lg text-sm transition-colors ${s===b?"bg-amber-100 text-gray-900 font-semibold":"text-gray-600 hover:bg-gray-100"}`,children:b==="all"?"Alle sectoren":b},b))]})]})}),e.jsxs("div",{className:"flex-1",children:[e.jsx("div",{className:"flex items-center justify-between mb-6",children:e.jsxs("p",{className:"text-sm text-gray-500",children:[e.jsx("strong",{className:"text-gray-900",children:p.length})," items gevonden"]})}),e.jsx("div",{className:"grid sm:grid-cols-2 xl:grid-cols-3 gap-5",children:p.map((b,j)=>{var v,x;return e.jsxs(Z.div,{initial:{opacity:0,y:10},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:j*.03},onClick:()=>c(b),className:`bg-white border rounded-xl p-5 flex flex-col cursor-pointer hover:shadow-md transition-all ${b.type==="connector"?"border-t-4 border-t-amber-400 border-gray-200":"border-t-4 border-t-gray-800 border-gray-200"}`,children:[e.jsxs("div",{className:"flex items-start justify-between mb-3",children:[e.jsx("div",{className:`w-11 h-11 rounded-xl flex items-center justify-center text-xs font-bold ${b.type==="connector"?"bg-amber-50 text-amber-600":"bg-gray-100 text-gray-600"}`,children:b.name.slice(0,2).toUpperCase()}),e.jsx("div",{className:"flex flex-col items-end gap-1",children:b.badge&&e.jsx("span",{className:`text-[10px] font-bold uppercase px-2 py-0.5 rounded-full ${(v=e4[b.badge])==null?void 0:v.className}`,children:(x=e4[b.badge])==null?void 0:x.label})})]}),e.jsx("p",{className:"text-xs font-semibold text-amber-500 mb-1",children:b.capability}),e.jsx("h3",{className:"font-bold text-gray-900 mb-2",children:b.name}),e.jsx("p",{className:"text-xs text-gray-500 leading-relaxed flex-1 mb-4",children:b.description}),e.jsxs("div",{className:"flex items-center justify-between pt-3 border-t border-gray-100",children:[e.jsx("span",{className:"font-bold text-sm text-gray-900",children:b.price}),e.jsx("span",{className:`text-[10px] font-bold uppercase tracking-wide ${b.type==="connector"?"text-amber-500":"text-gray-500"}`,children:b.type==="connector"?"Connector":"Skill"})]})]},j)})})]})]})})}),e.jsx(P6,{}),o&&e.jsx("div",{className:"fixed inset-0 bg-black/50 z-50 flex items-start justify-center p-4 sm:p-8 overflow-y-auto",onClick:()=>c(null),children:e.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},onClick:b=>b.stopPropagation(),className:"bg-white rounded-2xl max-w-xl w-full my-auto overflow-hidden shadow-2xl",children:[e.jsxs("div",{className:"bg-gray-900 p-6 flex items-start gap-4",children:[e.jsx("div",{className:"w-14 h-14 bg-gray-700 rounded-xl flex items-center justify-center text-sm font-bold text-gray-300 flex-shrink-0",children:o.name.slice(0,2).toUpperCase()}),e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsx("p",{className:"text-xs font-bold text-amber-400 uppercase tracking-wider mb-1",children:o.type==="connector"?"Connector":"Skill"}),e.jsx("h2",{className:"text-xl font-bold text-white",children:o.name}),e.jsx("p",{className:"text-sm text-gray-400",children:o.capability})]}),e.jsx("button",{onClick:()=>c(null),className:"w-8 h-8 bg-white/10 rounded-full flex items-center justify-center text-white hover:bg-white/20 transition-colors flex-shrink-0",children:e.jsx(Ht,{className:"w-4 h-4"})})]}),e.jsxs("div",{className:"p-6 space-y-6",children:[e.jsx("p",{className:"text-gray-700 leading-relaxed",children:o.description}),e.jsxs("div",{children:[e.jsx("p",{className:"text-xs font-bold uppercase tracking-wider text-gray-400 mb-3",children:"Wat je ermee kunt"}),e.jsx("ul",{className:"space-y-2",children:o.features.map((b,j)=>e.jsxs("li",{className:"flex items-start gap-2 text-sm text-gray-700",children:[e.jsx("span",{className:"w-4 h-4 bg-amber-100 rounded-full flex items-center justify-center flex-shrink-0 mt-0.5",children:e.jsx("span",{className:"w-1.5 h-1.5 bg-amber-500 rounded-full block"})}),b]},j))})]}),e.jsxs("div",{className:"flex items-center justify-between pt-4 border-t border-gray-100",children:[e.jsxs("div",{children:[e.jsx("p",{className:"text-xs text-gray-400",children:"Prijs"}),e.jsx("p",{className:"font-bold text-gray-900",children:o.price})]}),e.jsx(de,{to:se("Contact")+`?training=${encodeURIComponent(o.name)}`,className:"px-5 py-2.5 bg-amber-400 text-gray-900 font-semibold rounded-xl hover:bg-amber-300 transition-colors text-sm",onClick:()=>c(null),children:"Aanvragen"})]})]})]})})]})}const dee=[{title:"Claude Basics voor Teams",duration:"½ dag",audience:"Alle medewerkers",level:"Basis",description:"Leer de fundamenten van werken met Claude: van effectief prompting tot dagelijkse toepassingen.",topics:["Wat is Claude en hoe werkt het?","Prompting technieken","Praktijkoefeningen","Do's & don'ts"]},{title:"Claude Cowork in de Praktijk",duration:"1 dag",audience:"Teams & managers",level:"Gevorderd",description:"Diepgaande training over hoe je Claude integreert in bestaande werkprocessen en workflows automatiseert.",topics:["Workflow automatisering","Koppelingen met tools","Teamprocessen optimaliseren","Cases & templates"]},{title:"Claude voor Leiders",duration:"2 uur",audience:"Management",level:"Leiderschap",description:"Strategisch inzicht in hoe Claude Cowork bijdraagt aan productiviteit en innovatie binnen jouw organisatie.",topics:["AI-strategie bepalen","ROI en KPI's","Change management","Governance & veiligheid"]}];function hee(){return e.jsxs("div",{className:"pt-20 min-h-screen bg-white",children:[e.jsx("section",{className:"bg-blue-50 border-b border-blue-100 py-16",children:e.jsx("div",{className:"max-w-5xl mx-auto px-4 sm:px-6 lg:px-8",children:e.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},children:[e.jsx(de,{to:se("ClaudeCowork"),className:"inline-flex items-center gap-2 text-sm text-blue-600 font-medium mb-6 hover:underline",children:"← Claude Cowork"}),e.jsxs("div",{className:"inline-flex items-center gap-2 px-4 py-2 bg-blue-100 rounded-full text-blue-700 text-sm font-semibold mb-4",children:[e.jsx(Va,{className:"w-4 h-4"}),"Training"]}),e.jsx("h1",{className:"text-4xl sm:text-5xl font-bold text-gray-900 mb-4",children:"Claude Cowork Training"}),e.jsx("p",{className:"text-xl text-gray-600 max-w-2xl",children:"Praktische trainingen die jouw team klaarstomen om effectief samen te werken met Claude."})]})})}),e.jsx("section",{className:"py-16",children:e.jsx("div",{className:"max-w-5xl mx-auto px-4 sm:px-6 lg:px-8",children:e.jsx("div",{className:"grid md:grid-cols-3 gap-8",children:dee.map((t,n)=>e.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:n*.1},className:"bg-white rounded-2xl border border-gray-200 p-6 flex flex-col shadow-sm hover:shadow-md transition-shadow",children:[e.jsx("span",{className:"inline-block px-3 py-1 bg-blue-100 text-blue-700 text-xs font-bold rounded-full mb-4 self-start",children:t.level}),e.jsx("h2",{className:"text-lg font-bold text-gray-900 mb-2",children:t.title}),e.jsx("p",{className:"text-sm text-gray-600 mb-4 flex-1",children:t.description}),e.jsxs("div",{className:"flex gap-4 text-xs text-gray-500 mb-4",children:[e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(vn,{className:"w-3 h-3"}),t.duration]}),e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(_n,{className:"w-3 h-3"}),t.audience]})]}),e.jsx("ul",{className:"space-y-1 mb-5",children:t.topics.map((r,i)=>e.jsxs("li",{className:"flex items-start gap-2 text-xs text-gray-600",children:[e.jsx(gt,{className:"w-3.5 h-3.5 text-blue-500 mt-0.5 flex-shrink-0"}),r]},i))}),e.jsx(de,{to:se("Contact")+`?training=${encodeURIComponent(t.title)}`,className:"w-full text-center px-4 py-2.5 bg-gray-900 text-white text-sm font-semibold rounded-xl hover:bg-gray-700 transition-colors",children:"Aanvragen"})]},n))})})})]})}function fee(){var A,S,E,C;const[t,n]=R.useState({name:"",email:"",phone:"",company:"",subject:"",message:""}),[r,i]=R.useState(!1),[s,a]=R.useState(!1),[o,c]=R.useState({}),[d,h]=R.useState(null),{data:f=[]}=Fe({queryKey:["site-settings"],queryFn:()=>ce.entities.SiteSettings.list()}),m=(A=f.find(B=>B.setting_key==="linkedin_url"))==null?void 0:A.value,p=(S=f.find(B=>B.setting_key==="twitter_url"))==null?void 0:S.value,g=(E=f.find(B=>B.setting_key==="instagram_url"))==null?void 0:E.value,b=(C=f.find(B=>B.setting_key==="youtube_url"))==null?void 0:C.value,j=new URLSearchParams(window.location.search),v=j.get("training"),x=j.get("ref"),k=j.get("level");Ot.useEffect(()=>{v?n(B=>({...B,subject:"training",message:`Ik ben geïnteresseerd in de training: ${v}`})):x==="quiz"&&k&&n(B=>({...B,subject:"consultancy",message:`Ik heb de AI Quiz gedaan en zit in het "${k}" niveau. Ik wil graag meer weten over de mogelijkheden voor mijn bedrijf.`}))},[v,x,k]);const w=()=>{const B={};(!t.name||t.name.trim().length<2)&&(B.name="Naam moet minimaal 2 karakters bevatten");const F=/^[^\s@]+@[^\s@]+\.[^\s@]+$/;if((!t.email||!F.test(t.email))&&(B.email="Voer een geldig e-mailadres in"),t.phone){const D=/^(\+31|0031|0)[1-9][0-9]{8}$/,I=t.phone.replace(/[\s\-\(\)]/g,"");D.test(I)||(B.phone="Voer een geldig Nederlands telefoonnummer in (bijv. 06-12345678)")}return t.subject||(B.subject="Selecteer een onderwerp"),(!t.message||t.message.trim().length<10)&&(B.message="Bericht moet minimaal 10 karakters bevatten"),t.message&&t.message.length>2e3&&(B.message="Bericht mag maximaal 2000 karakters bevatten"),c(B),Object.keys(B).length===0},N=async B=>{if(B.preventDefault(),!!w()){i(!0);try{const{data:F}=await ce.functions.invoke("sendContactForm",t);a(!0)}catch(F){console.error("Error submitting form:",F),h("Er ging iets mis bij het verzenden. Probeer het later opnieuw.")}finally{i(!1)}}};return s?e.jsx("div",{className:"pt-20 min-h-screen bg-gradient-to-b from-gray-50 to-white",children:e.jsx("div",{className:"max-w-xl mx-auto px-4 sm:px-6 lg:px-8 py-32 text-center",children:e.jsxs(Z.div,{initial:{opacity:0,scale:.9},animate:{opacity:1,scale:1},children:[e.jsx("div",{className:"w-20 h-20 bg-green-100 rounded-full flex items-center justify-center mx-auto mb-6",children:e.jsx(gt,{className:"w-10 h-10 text-green-600"})}),e.jsx("h1",{className:"text-3xl font-bold text-gray-900 mb-4",children:"Bericht verzonden!"}),e.jsx("p",{className:"text-xl text-gray-600 mb-8",children:"Bedankt voor je bericht. We nemen binnen 24 uur contact met je op."}),e.jsxs(de,{to:se("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",e.jsx($e,{className:"w-5 h-5"})]})]})})}):e.jsxs("div",{className:"pt-20",children:[e.jsx("section",{className:"py-20 bg-white",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[e.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"text-center max-w-3xl mx-auto mb-16",children:[e.jsx("h1",{className:"text-5xl sm:text-6xl font-bold text-[#0D0D0F] mb-6",children:"Neem contact op"}),e.jsx("p",{className:"text-2xl text-[#9CA3AF]",children:"Benieuwd hoe AI jouw bedrijf kan helpen?"})]}),e.jsxs("div",{className:"grid md:grid-cols-3 gap-6 max-w-4xl mx-auto mb-16",children:[e.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:[e.jsx("div",{className:"w-14 h-14 bg-[#FAB868] rounded-2xl flex items-center justify-center group-hover:bg-[#E5A04D] transition-colors",children:e.jsx(ey,{className:"w-6 h-6 text-[#0D0D0F]"})}),e.jsxs("div",{children:[e.jsx("p",{className:"font-semibold text-[#0D0D0F]",children:"Bel ons"}),e.jsx("p",{className:"text-[#9CA3AF]",children:"+31 085-06 01 487"})]})]}),e.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:[e.jsx("div",{className:"w-14 h-14 bg-[#FAB868] rounded-2xl flex items-center justify-center group-hover:bg-[#E5A04D] transition-colors",children:e.jsx(yi,{className:"w-6 h-6 text-[#0D0D0F]"})}),e.jsxs("div",{children:[e.jsx("p",{className:"font-semibold text-[#0D0D0F]",children:"Email ons"}),e.jsx("p",{className:"text-[#9CA3AF]",children:"hallo@48-7.nl"})]})]}),e.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:[e.jsx("div",{className:"w-14 h-14 bg-[#FAB868] rounded-2xl flex items-center justify-center",children:e.jsx(vn,{className:"w-6 h-6 text-[#0D0D0F]"})}),e.jsxs("div",{children:[e.jsx("p",{className:"font-semibold text-[#0D0D0F]",children:"Openingstijden"}),e.jsx("p",{className:"text-[#9CA3AF]",children:"Ma-Vr 9:00 - 18:00"})]})]})]})]})}),e.jsx("section",{className:"py-16",children:e.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:e.jsxs("div",{className:"grid lg:grid-cols-2 gap-12",children:[e.jsx(Z.div,{initial:{opacity:0,x:-20},animate:{opacity:1,x:0},children:e.jsxs("div",{className:"bg-white rounded-3xl p-8 border-2 border-gray-100 shadow-sm",children:[e.jsx("h2",{className:"text-3xl font-bold text-[#0D0D0F] mb-6",children:"Stuur een bericht"}),d&&e.jsx("div",{className:"mb-4 p-3 bg-red-50 border border-red-200 rounded-lg",children:e.jsx("p",{className:"text-sm text-red-600",children:d})}),e.jsxs("form",{onSubmit:N,className:"space-y-5",children:[e.jsxs("div",{className:"grid sm:grid-cols-2 gap-5",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-[#0D0D0F] mb-1",children:"Naam *"}),e.jsx(me,{required:!0,value:t.name,onChange:B=>{n({...t,name:B.target.value}),o.name&&c({...o,name:null})},placeholder:"Je volledige naam",className:o.name?"border-red-500":""}),o.name&&e.jsx("p",{className:"text-red-500 text-xs mt-1",children:o.name})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-1",children:"Email *"}),e.jsx(me,{required:!0,type:"email",value:t.email,onChange:B=>{n({...t,email:B.target.value}),o.email&&c({...o,email:null})},placeholder:"je@bedrijf.nl",className:o.email?"border-red-500":""}),o.email&&e.jsx("p",{className:"text-red-500 text-xs mt-1",children:o.email})]})]}),e.jsxs("div",{className:"grid sm:grid-cols-2 gap-5",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-1",children:"Telefoon"}),e.jsx(me,{type:"tel",value:t.phone,onChange:B=>{n({...t,phone:B.target.value}),o.phone&&c({...o,phone:null})},placeholder:"+31 6 12345678",className:o.phone?"border-red-500":""}),o.phone&&e.jsx("p",{className:"text-red-500 text-xs mt-1",children:o.phone})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-1",children:"Bedrijf"}),e.jsx(me,{value:t.company,onChange:B=>n({...t,company:B.target.value}),placeholder:"Je bedrijfsnaam"})]})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-1",children:"Onderwerp *"}),e.jsxs(Ji,{value:t.subject,onValueChange:B=>{n({...t,subject:B}),o.subject&&c({...o,subject:null})},children:[e.jsx(wi,{className:o.subject?"border-red-500":"",children:e.jsx(Zi,{placeholder:"Selecteer een onderwerp"})}),e.jsxs(ki,{children:[e.jsx(St,{value:"consultancy",children:"AI Consultancy"}),e.jsx(St,{value:"development",children:"AI Development"}),e.jsx(St,{value:"training",children:"AI Training"}),e.jsx(St,{value:"support",children:"Development Support"}),e.jsx(St,{value:"other",children:"Anders"})]})]}),o.subject&&e.jsx("p",{className:"text-red-500 text-xs mt-1",children:o.subject})]}),e.jsxs("div",{children:[e.jsxs("label",{className:"block text-sm font-medium text-gray-700 mb-1",children:["Bericht * ",e.jsxs("span",{className:"text-gray-400 text-xs",children:["(",t.message.length,"/2000)"]})]}),e.jsx(pt,{required:!0,value:t.message,onChange:B=>{n({...t,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&&e.jsx("p",{className:"text-red-500 text-xs mt-1",children:o.message})]}),e.jsx(ae,{type:"submit",disabled:r,className:"w-full py-5 bg-[#0D0D0F] hover:bg-[#1a1a1c] text-white font-semibold rounded-full",children:r?e.jsxs("span",{className:"flex items-center gap-2",children:[e.jsxs("svg",{className:"animate-spin w-5 h-5",viewBox:"0 0 24 24",children:[e.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4",fill:"none"}),e.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4z"})]}),"Verzenden..."]}):e.jsxs("span",{className:"flex items-center gap-2 justify-center",children:[e.jsx(P4,{className:"w-5 h-5"}),"Verstuur bericht"]})})]})]})}),e.jsxs(Z.div,{initial:{opacity:0,x:20},animate:{opacity:1,x:0},className:"space-y-8",children:[e.jsx(Wf,{variant:"compact"}),e.jsxs("div",{className:"bg-[#FAB868] rounded-3xl p-8",children:[e.jsxs("div",{className:"flex items-center gap-4 mb-4",children:[e.jsx("div",{className:"w-12 h-12 bg-[#0D0D0F] rounded-full flex items-center justify-center",children:e.jsx(At,{className:"w-6 h-6 text-white"})}),e.jsxs("div",{children:[e.jsx("h3",{className:"text-xl font-bold text-[#0D0D0F]",children:"Of doe de AI Quiz"}),e.jsx("p",{className:"text-[#0D0D0F]/70",children:"Ontdek je AI potentieel in 2 minuten"})]})]}),e.jsxs(de,{to:se("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",e.jsx($e,{className:"w-5 h-5"})]})]}),e.jsxs("div",{className:"bg-white rounded-3xl p-8 border-2 border-gray-100",children:[e.jsx("h3",{className:"text-2xl font-bold text-[#0D0D0F] mb-6",children:"Bezoek ons"}),e.jsx("div",{className:"space-y-4",children:e.jsxs("div",{className:"flex items-start gap-4",children:[e.jsx("div",{className:"w-10 h-10 bg-[#F4F4F4] rounded-full flex items-center justify-center flex-shrink-0",children:e.jsx(_u,{className:"w-5 h-5 text-[#0D0D0F]"})}),e.jsxs("div",{children:[e.jsx("p",{className:"font-medium text-[#0D0D0F]",children:"48-7 B.V."}),e.jsx("p",{className:"text-[#9CA3AF]",children:"Euvelgunnerweg 25a"}),e.jsx("p",{className:"text-[#9CA3AF]",children:"9723 CV Groningen"})]})]})}),e.jsx("div",{className:"mt-6 rounded-2xl overflow-hidden h-48 bg-gray-100",children:e.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)&&e.jsxs("div",{className:"bg-white rounded-3xl p-8 border-2 border-gray-100",children:[e.jsx("h3",{className:"text-2xl font-bold text-[#0D0D0F] mb-4",children:"Volg ons"}),e.jsx("p",{className:"text-[#9CA3AF] mb-6",children:"Blijf op de hoogte"}),e.jsxs("div",{className:"flex items-center gap-4",children:[m&&e.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:e.jsx(Hs,{className:"w-6 h-6"})}),p&&e.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:e.jsx("svg",{className:"w-6 h-6",fill:"currentColor",viewBox:"0 0 24 24",children:e.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&&e.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:e.jsx(Jc,{className:"w-6 h-6"})}),b&&e.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:e.jsx(tu,{className:"w-6 h-6"})})]})]})]})]})})})]})}const mee=["Home","Contact","Diensten","Training","Cases","Blog","Vacatures","OverOns"];function pee(){const[t,n]=R.useState(null),[r,i]=R.useState({page_name:"",section_key:"",content:"",content_type:"html",language:"nl"}),s=Xt(),{data:a=[],isLoading:o}=Fe({queryKey:["pageContents"],queryFn:()=>ce.entities.PageContent.list()}),c=Le({mutationFn:b=>ce.entities.PageContent.create(b),onSuccess:()=>{s.invalidateQueries({queryKey:["pageContents"]}),f()}}),d=Le({mutationFn:({id:b,data:j})=>ce.entities.PageContent.update(b,j),onSuccess:()=>{s.invalidateQueries({queryKey:["pageContents"]}),f()}}),h=Le({mutationFn:b=>ce.entities.PageContent.delete(b),onSuccess:()=>{s.invalidateQueries({queryKey:["pageContents"]})}}),f=()=>{n(null),i({page_name:"",section_key:"",content:"",content_type:"html",language:"nl"})},m=b=>{n(b),i(b)},p=b=>{b.preventDefault(),t?d.mutate({id:t.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 t!==null?e.jsx("div",{className:"pt-20 min-h-screen bg-gray-50",children:e.jsxs("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 py-12",children:[e.jsx("div",{className:"mb-6",children:e.jsxs(ae,{variant:"outline",onClick:f,className:"gap-2",children:[e.jsx(ht,{className:"w-4 h-4"}),"Terug naar overzicht"]})}),e.jsxs("div",{className:"bg-white rounded-2xl p-8 border border-gray-200",children:[e.jsx("h2",{className:"text-3xl font-bold text-gray-900 mb-8",children:t!=null&&t.id?"Content Bewerken":"Nieuwe Content"}),e.jsxs("form",{onSubmit:p,className:"space-y-6",children:[e.jsxs("div",{className:"grid md:grid-cols-2 gap-6",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Pagina *"}),e.jsxs(Ji,{value:r.page_name,onValueChange:b=>i({...r,page_name:b}),children:[e.jsx(wi,{children:e.jsx(Zi,{placeholder:"Selecteer een pagina"})}),e.jsx(ki,{children:mee.map(b=>e.jsx(St,{value:b,children:b},b))})]})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Sectie Key *"}),e.jsx(me,{required:!0,value:r.section_key,onChange:b=>i({...r,section_key:b.target.value}),placeholder:"hero_title, about_description, etc."})]})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Content Type"}),e.jsxs(Ji,{value:r.content_type,onValueChange:b=>i({...r,content_type:b}),children:[e.jsx(wi,{children:e.jsx(Zi,{})}),e.jsxs(ki,{children:[e.jsx(St,{value:"text",children:"Plain Text"}),e.jsx(St,{value:"html",children:"HTML/Rich Text"}),e.jsx(St,{value:"markdown",children:"Markdown"})]})]})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Content *"}),r.content_type==="html"?e.jsx(es,{value:r.content,onChange:b=>i({...r,content:b}),placeholder:"Schrijf je content..."}):e.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"})]}),e.jsxs("div",{className:"flex gap-4 pt-6",children:[e.jsxs(ae,{type:"submit",className:"flex-1 gap-2",children:[e.jsx(Sn,{className:"w-4 h-4"}),t!=null&&t.id?"Bijwerken":"Aanmaken"]}),e.jsx(ae,{type:"button",variant:"outline",onClick:f,children:"Annuleren"})]})]})]})]})}):e.jsx("div",{className:"pt-20 min-h-screen bg-gray-50",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-12",children:[e.jsxs("div",{className:"flex items-center justify-between mb-8",children:[e.jsxs("div",{children:[e.jsxs(de,{to:se("AdminDashboard"),className:"text-blue-600 hover:text-blue-700 mb-2 inline-flex items-center gap-1",children:[e.jsx(ht,{className:"w-4 h-4"}),"Terug naar dashboard"]}),e.jsx("h1",{className:"text-4xl font-bold text-gray-900",children:"Content Beheer"}),e.jsx("p",{className:"text-gray-600 mt-2",children:"Beheer statische content op je pagina's"})]}),e.jsxs(ae,{onClick:()=>n({}),children:[e.jsx(Pt,{className:"w-5 h-5 mr-2"}),"Nieuwe Content"]})]}),o?e.jsx("div",{className:"text-center py-12",children:e.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?e.jsxs("div",{className:"bg-white rounded-xl p-12 text-center border border-gray-200",children:[e.jsx("p",{className:"text-gray-600 mb-4",children:"Nog geen content toegevoegd"}),e.jsxs(ae,{onClick:()=>n({}),children:[e.jsx(Pt,{className:"w-5 h-5 mr-2"}),"Voeg eerste content toe"]})]}):e.jsx("div",{className:"space-y-8",children:Object.entries(g).map(([b,j])=>e.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:[e.jsx("h2",{className:"text-2xl font-bold text-gray-900 mb-4",children:b}),e.jsx("div",{className:"space-y-3",children:j.map(v=>e.jsxs("div",{className:"flex items-center justify-between p-4 bg-gray-50 rounded-lg hover:bg-gray-100 transition-colors",children:[e.jsxs("div",{className:"flex-1",children:[e.jsx("p",{className:"font-semibold text-gray-900",children:v.section_key}),e.jsxs("p",{className:"text-sm text-gray-600 line-clamp-1",children:[v.content.replace(/<[^>]*>/g,"").substring(0,100),"..."]}),e.jsx("span",{className:"inline-block mt-1 px-2 py-1 bg-blue-100 text-blue-800 text-xs rounded",children:v.content_type})]}),e.jsxs("div",{className:"flex gap-2 ml-4",children:[e.jsxs(ae,{size:"sm",variant:"outline",onClick:()=>m(v),children:[e.jsx(Pn,{className:"w-4 h-4 mr-1"}),"Bewerk"]}),e.jsx(ae,{size:"sm",variant:"ghost",onClick:()=>{confirm("Weet je zeker dat je dit wilt verwijderen?")&&h.mutate(v.id)},children:e.jsx(wt,{className:"w-4 h-4"})})]})]},v.id))})]},b))})]})})}function gee(){const[t,n]=R.useState("pages"),[r,i]=R.useState(null),[s,a]=R.useState(!1),o=Xt(),{data:c=[]}=Fe({queryKey:["pageContents"],queryFn:()=>ce.entities.PageContent.list()}),{data:d=[]}=Fe({queryKey:["blogPosts"],queryFn:()=>ce.entities.BlogPost.list()}),{data:h=[]}=Fe({queryKey:["trainings"],queryFn:()=>ce.entities.Training.list()}),f=Le({mutationFn:w=>ce.entities.PageContent.create(w),onSuccess:()=>{o.invalidateQueries({queryKey:["pageContents"]}),a(!1),i(null)}}),m=Le({mutationFn:({id:w,data:N})=>ce.entities.PageContent.update(w,N),onSuccess:()=>{o.invalidateQueries({queryKey:["pageContents"]}),a(!1),i(null)}}),p=Le({mutationFn:w=>ce.entities.PageContent.delete(w),onSuccess:()=>o.invalidateQueries({queryKey:["pageContents"]})}),g=Le({mutationFn:w=>ce.entities.BlogPost.create(w),onSuccess:()=>{o.invalidateQueries({queryKey:["blogPosts"]}),a(!1),i(null)}}),b=Le({mutationFn:({id:w,data:N})=>ce.entities.BlogPost.update(w,N),onSuccess:()=>{o.invalidateQueries({queryKey:["blogPosts"]}),a(!1),i(null)}}),j=Le({mutationFn:w=>ce.entities.BlogPost.delete(w),onSuccess:()=>o.invalidateQueries({queryKey:["blogPosts"]})}),v=Le({mutationFn:w=>ce.entities.Training.create(w),onSuccess:()=>{o.invalidateQueries({queryKey:["trainings"]}),a(!1),i(null)}}),x=Le({mutationFn:({id:w,data:N})=>ce.entities.Training.update(w,N),onSuccess:()=>{o.invalidateQueries({queryKey:["trainings"]}),a(!1),i(null)}}),k=Le({mutationFn:w=>ce.entities.Training.delete(w),onSuccess:()=>o.invalidateQueries({queryKey:["trainings"]})});return e.jsx("div",{className:"pt-20 min-h-screen bg-gray-50",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-12",children:[e.jsxs("div",{className:"mb-8",children:[e.jsx("h1",{className:"text-4xl font-bold text-gray-900 mb-2",children:"Content Management"}),e.jsx("p",{className:"text-gray-600",children:"Beheer pagina's, blogs en trainingen"})]}),e.jsxs("div",{className:"flex gap-2 mb-8 border-b border-gray-200",children:[e.jsxs("button",{onClick:()=>n("pages"),className:`px-6 py-3 font-medium transition-colors ${t==="pages"?"text-[#FAB868] border-b-2 border-[#FAB868]":"text-gray-600 hover:text-gray-900"}`,children:["Pagina Content (",c.length,")"]}),e.jsxs("button",{onClick:()=>n("blogs"),className:`px-6 py-3 font-medium transition-colors ${t==="blogs"?"text-[#FAB868] border-b-2 border-[#FAB868]":"text-gray-600 hover:text-gray-900"}`,children:["Blog Posts (",d.length,")"]}),e.jsxs("button",{onClick:()=>n("trainings"),className:`px-6 py-3 font-medium transition-colors ${t==="trainings"?"text-[#FAB868] border-b-2 border-[#FAB868]":"text-gray-600 hover:text-gray-900"}`,children:["Trainingen (",h.length,")"]})]}),e.jsxs(ae,{onClick:()=>{i(null),a(!0)},className:"mb-6",children:[e.jsx(Pt,{className:"w-4 h-4 mr-2"}),"Nieuwe ",t==="pages"?"Pagina Content":t==="blogs"?"Blog Post":"Training"]}),t==="pages"&&e.jsx("div",{className:"space-y-4",children:c.map(w=>e.jsx("div",{className:"bg-white rounded-2xl p-6 border border-gray-200",children:e.jsxs("div",{className:"flex justify-between items-start",children:[e.jsxs("div",{className:"flex-1",children:[e.jsxs("h3",{className:"font-bold text-lg mb-1",children:[w.page_name," - ",w.section_key]}),e.jsx("p",{className:"text-gray-600 text-sm mb-2",children:w.content_type}),e.jsx("p",{className:"text-gray-700 line-clamp-2",children:w.content})]}),e.jsxs("div",{className:"flex gap-2",children:[e.jsx(ae,{variant:"ghost",size:"icon",onClick:()=>{i(w),a(!0)},children:e.jsx(qc,{className:"w-4 h-4"})}),e.jsx(ae,{variant:"ghost",size:"icon",onClick:()=>{confirm("Weet je zeker dat je dit wilt verwijderen?")&&p.mutate(w.id)},children:e.jsx(wt,{className:"w-4 h-4"})})]})]})},w.id))}),t==="blogs"&&e.jsx("div",{className:"space-y-4",children:d.map(w=>e.jsx("div",{className:"bg-white rounded-2xl p-6 border border-gray-200",children:e.jsxs("div",{className:"flex justify-between items-start",children:[e.jsxs("div",{className:"flex-1",children:[e.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[e.jsx("h3",{className:"font-bold text-lg",children:w.title}),w.published&&e.jsx("span",{className:"px-2 py-1 bg-green-100 text-green-800 text-xs rounded-full",children:"Gepubliceerd"})]}),e.jsxs("p",{className:"text-gray-600 text-sm mb-2",children:[w.category," • ",w.read_time]}),e.jsx("p",{className:"text-gray-700 line-clamp-2",children:w.excerpt})]}),e.jsxs("div",{className:"flex gap-2",children:[e.jsx(ae,{variant:"ghost",size:"icon",onClick:()=>{i(w),a(!0)},children:e.jsx(qc,{className:"w-4 h-4"})}),e.jsx(ae,{variant:"ghost",size:"icon",onClick:()=>{confirm("Weet je zeker dat je dit wilt verwijderen?")&&j.mutate(w.id)},children:e.jsx(wt,{className:"w-4 h-4"})})]})]})},w.id))}),t==="trainings"&&e.jsx("div",{className:"space-y-4",children:h.map(w=>e.jsx("div",{className:"bg-white rounded-2xl p-6 border border-gray-200",children:e.jsxs("div",{className:"flex justify-between items-start",children:[e.jsxs("div",{className:"flex-1",children:[e.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[e.jsx("h3",{className:"font-bold text-lg",children:w.title}),w.active&&e.jsx("span",{className:"px-2 py-1 bg-green-100 text-green-800 text-xs rounded-full",children:"Actief"})]}),e.jsxs("p",{className:"text-gray-600 text-sm mb-2",children:[w.category," • ",w.duration]}),e.jsx("p",{className:"text-gray-700 line-clamp-2",children:w.description})]}),e.jsxs("div",{className:"flex gap-2",children:[e.jsx(ae,{variant:"ghost",size:"icon",onClick:()=>{i(w),a(!0)},children:e.jsx(qc,{className:"w-4 h-4"})}),e.jsx(ae,{variant:"ghost",size:"icon",onClick:()=>{confirm("Weet je zeker dat je dit wilt verwijderen?")&&k.mutate(w.id)},children:e.jsx(wt,{className:"w-4 h-4"})})]})]})},w.id))}),s&&e.jsx("div",{className:"fixed inset-0 bg-black/50 backdrop-blur-sm z-50 flex items-center justify-center p-4",children:e.jsxs("div",{className:"bg-white rounded-2xl p-8 max-w-2xl w-full max-h-[90vh] overflow-y-auto",children:[e.jsxs("div",{className:"flex justify-between items-center mb-6",children:[e.jsxs("h2",{className:"text-2xl font-bold",children:[r?"Bewerk":"Nieuwe"," ",t==="pages"?"Pagina Content":t==="blogs"?"Blog Post":"Training"]}),e.jsx(ae,{variant:"ghost",size:"icon",onClick:()=>{a(!1),i(null)},children:e.jsx(Ht,{className:"w-5 h-5"})})]}),t==="pages"&&e.jsx(xee,{editingItem:r,onSubmit:w=>{r?m.mutate({id:r.id,data:w}):f.mutate(w)},onCancel:()=>a(!1)}),t==="blogs"&&e.jsx(vee,{editingItem:r,onSubmit:w=>{r?b.mutate({id:r.id,data:w}):g.mutate(w)},onCancel:()=>a(!1)}),t==="trainings"&&e.jsx(yee,{editingItem:r,onSubmit:w=>{r?x.mutate({id:r.id,data:w}):v.mutate(w)},onCancel:()=>a(!1)})]})})]})})}function xee({editingItem:t,onSubmit:n,onCancel:r}){const[i,s]=R.useState(t||{page_name:"",section_key:"",content:"",content_type:"text",language:"nl"});return e.jsxs("form",{onSubmit:a=>{a.preventDefault(),n(i)},className:"space-y-4",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium mb-1",children:"Pagina Naam"}),e.jsx(me,{required:!0,value:i.page_name,onChange:a=>s({...i,page_name:a.target.value}),placeholder:"bijv. Home, About, Contact"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium mb-1",children:"Sectie Key"}),e.jsx(me,{required:!0,value:i.section_key,onChange:a=>s({...i,section_key:a.target.value}),placeholder:"bijv. hero_title, about_description"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium mb-1",children:"Content Type"}),e.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:[e.jsx("option",{value:"text",children:"Text"}),e.jsx("option",{value:"html",children:"HTML"}),e.jsx("option",{value:"markdown",children:"Markdown"})]})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium mb-1",children:"Content"}),i.content_type==="html"?e.jsx("div",{className:"border-b-2 border-gray-200 focus-within:border-[#FAB868]",children:e.jsx(zf,{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"]]}})}):e.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"})]}),e.jsxs("div",{className:"flex gap-3 pt-4",children:[e.jsx(ae,{type:"button",variant:"outline",onClick:r,className:"flex-1",children:"Annuleren"}),e.jsxs(ae,{type:"submit",className:"flex-1",children:[e.jsx(Sn,{className:"w-4 h-4 mr-2"}),"Opslaan"]})]})]})}function vee({editingItem:t,onSubmit:n,onCancel:r}){const[i,s]=R.useState(t||{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 e.jsxs("form",{onSubmit:a=>{a.preventDefault(),n(i)},className:"space-y-4",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium mb-1",children:"Titel"}),e.jsx(me,{required:!0,value:i.title,onChange:a=>s({...i,title:a.target.value})})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium mb-1",children:"Slug (URL)"}),e.jsx(me,{required:!0,value:i.slug,onChange:a=>s({...i,slug:a.target.value}),placeholder:"url-vriendelijke-versie"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium mb-1",children:"Categorie"}),e.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:[e.jsx("option",{value:"AI",children:"AI"}),e.jsx("option",{value:"Technologie",children:"Technologie"}),e.jsx("option",{value:"Training",children:"Training"}),e.jsx("option",{value:"Case Study",children:"Case Study"}),e.jsx("option",{value:"Nieuws",children:"Nieuws"})]})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium mb-1",children:"Excerpt"}),e.jsx(pt,{required:!0,value:i.excerpt,onChange:a=>s({...i,excerpt:a.target.value})})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium mb-1",children:"Content (Rich Text Editor)"}),e.jsx("div",{className:"border-b-2 border-gray-200 focus-within:border-[#FAB868]",children:e.jsx(zf,{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"}})}),e.jsx("p",{className:"text-xs text-gray-500 mt-2",children:"Tip: Plak afbeelding URLs direct of gebruik de image button. Output is HTML."})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium mb-1",children:"Image URL"}),e.jsx(me,{value:i.image_url,onChange:a=>s({...i,image_url:a.target.value})})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("input",{type:"checkbox",checked:i.published,onChange:a=>s({...i,published:a.target.checked}),className:"w-4 h-4"}),e.jsx("label",{className:"text-sm font-medium",children:"Publiceren"})]}),e.jsxs("div",{className:"flex gap-3 pt-4",children:[e.jsx(ae,{type:"button",variant:"outline",onClick:r,className:"flex-1",children:"Annuleren"}),e.jsxs(ae,{type:"submit",className:"flex-1",children:[e.jsx(Sn,{className:"w-4 h-4 mr-2"}),"Opslaan"]})]})]})}function yee({editingItem:t,onSubmit:n,onCancel:r}){const[i,s]=R.useState(t||{title:"",slug:"",category:"Basis",duration:"",description:"",full_description:"",learning_goals:[],target_audience:"",price:"",image_url:"",active:!0});return e.jsxs("form",{onSubmit:a=>{a.preventDefault(),n(i)},className:"space-y-4",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium mb-1",children:"Titel"}),e.jsx(me,{required:!0,value:i.title,onChange:a=>s({...i,title:a.target.value})})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium mb-1",children:"Slug (URL)"}),e.jsx(me,{required:!0,value:i.slug,onChange:a=>s({...i,slug:a.target.value})})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium mb-1",children:"Categorie"}),e.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:[e.jsx("option",{value:"Basis",children:"Basis"}),e.jsx("option",{value:"Gevorderd",children:"Gevorderd"}),e.jsx("option",{value:"Leiderschap",children:"Leiderschap"}),e.jsx("option",{value:"Technisch",children:"Technisch"})]})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium mb-1",children:"Duur"}),e.jsx(me,{required:!0,value:i.duration,onChange:a=>s({...i,duration:a.target.value}),placeholder:"bijv. 1 dag, 2 uur"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium mb-1",children:"Korte Beschrijving"}),e.jsx(pt,{required:!0,value:i.description,onChange:a=>s({...i,description:a.target.value})})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium mb-1",children:"Volledige Beschrijving (Rich Text)"}),e.jsx("div",{className:"border-b-2 border-gray-200 focus-within:border-[#FAB868]",children:e.jsx(zf,{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"}})})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium mb-1",children:"Doelgroep"}),e.jsx(me,{value:i.target_audience,onChange:a=>s({...i,target_audience:a.target.value})})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium mb-1",children:"Prijs"}),e.jsx(me,{value:i.price,onChange:a=>s({...i,price:a.target.value}),placeholder:"bijv. €1.500 ex. BTW"})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("input",{type:"checkbox",checked:i.active,onChange:a=>s({...i,active:a.target.checked}),className:"w-4 h-4"}),e.jsx("label",{className:"text-sm font-medium",children:"Actief"})]}),e.jsxs("div",{className:"flex gap-3 pt-4",children:[e.jsx(ae,{type:"button",variant:"outline",onClick:r,className:"flex-1",children:"Annuleren"}),e.jsxs(ae,{type:"submit",className:"flex-1",children:[e.jsx(Sn,{className:"w-4 h-4 mr-2"}),"Opslaan"]})]})]})}function bee(){return e.jsxs("div",{className:"pt-20",children:[e.jsxs("section",{className:"relative bg-white pt-32 pb-20 overflow-hidden",children:[e.jsx("div",{className:"absolute top-0 right-0 w-[600px] h-[600px] bg-[#FAB868]/5 rounded-full blur-3xl"}),e.jsx("div",{className:"relative max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:e.jsxs("div",{className:"grid lg:grid-cols-2 gap-20 items-center",children:[e.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"max-w-2xl",children:[e.jsx("h1",{className:"text-5xl sm:text-6xl lg:text-7xl font-bold text-[#0D0D0F] leading-[1.1] mb-8",children:"AI Development Support"}),e.jsx("p",{className:"text-2xl text-[#9CA3AF] mb-8 leading-relaxed",children:"Snel bouwen met AI, zonder technische risico's"}),e.jsxs("div",{className:"bg-[#F4F4F4] rounded-2xl p-6 mb-12",children:[e.jsx("h3",{className:"text-xl font-bold text-[#0D0D0F] mb-3",children:"Vibe coding en AI-assisted development maken teams razendsnel."}),e.jsx("p",{className:"text-lg text-[#0D0D0F]/80",children:"Maar hoe weet je zeker dat wat je oplevert veilig, overdraagbaar en toekomstbestendig is?"})]}),e.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."}),e.jsx("div",{className:"flex flex-col sm:flex-row gap-4",children:e.jsxs(de,{to:se("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",e.jsx($e,{className:"w-5 h-5"})]})})]}),e.jsx(Z.div,{initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},transition:{delay:.3},className:"hidden lg:block",children:e.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"})})]})})]}),e.jsx("section",{className:"py-32 bg-[#F4F4F4]",children:e.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:e.jsxs("div",{className:"grid lg:grid-cols-2 gap-16 items-center",children:[e.jsx(Z.div,{initial:{opacity:0,x:-20},whileInView:{opacity:1,x:0},viewport:{once:!0},children:e.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"})}),e.jsxs(Z.div,{initial:{opacity:0,x:20},whileInView:{opacity:1,x:0},viewport:{once:!0},children:[e.jsx("h2",{className:"text-5xl font-bold text-[#0D0D0F] mb-6",children:"Voor teams die met AI bouwen"}),e.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:"}),e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{className:"flex items-start gap-4",children:[e.jsx("div",{className:"w-8 h-8 bg-[#FAB868] rounded-full flex items-center justify-center flex-shrink-0 mt-1",children:e.jsx(Ft,{className:"w-5 h-5 text-[#0D0D0F]"})}),e.jsx("p",{className:"text-xl text-[#0D0D0F]/80",children:"snel itereren met AI"})]}),e.jsxs("div",{className:"flex items-start gap-4",children:[e.jsx("div",{className:"w-8 h-8 bg-[#FAB868] rounded-full flex items-center justify-center flex-shrink-0 mt-1",children:e.jsx(Ft,{className:"w-5 h-5 text-[#0D0D0F]"})}),e.jsx("p",{className:"text-xl text-[#0D0D0F]/80",children:"eigenaarschap willen houden"})]}),e.jsxs("div",{className:"flex items-start gap-4",children:[e.jsx("div",{className:"w-8 h-8 bg-[#FAB868] rounded-full flex items-center justify-center flex-shrink-0 mt-1",children:e.jsx(Ft,{className:"w-5 h-5 text-[#0D0D0F]"})}),e.jsx("p",{className:"text-xl text-[#0D0D0F]/80",children:"maar zekerheid zoeken over hun technische keuzes"})]})]})]})]})})}),e.jsx("section",{className:"py-32 bg-white",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[e.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-center mb-20",children:[e.jsx("h2",{className:"text-5xl sm:text-6xl font-bold text-[#0D0D0F] mb-6",children:"Waar wij op letten"}),e.jsx("p",{className:"text-2xl text-[#9CA3AF] max-w-3xl mx-auto mb-4",children:"Wij helpen teams antwoord krijgen op cruciale vragen:"})]}),e.jsxs("div",{className:"grid md:grid-cols-2 lg:grid-cols-4 gap-8 mb-12",children:[e.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:[e.jsx("div",{className:"w-16 h-16 bg-[#FAB868] rounded-full flex items-center justify-center mx-auto mb-4",children:e.jsx(D4,{className:"w-8 h-8 text-[#0D0D0F]"})}),e.jsx("h3",{className:"text-xl font-bold text-[#0D0D0F] mb-3",children:"Is de code veilig?"}),e.jsx("p",{className:"text-lg text-[#9CA3AF]",children:"Ook in koppeling met bestaande systemen en databronnen."})]}),e.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:[e.jsx("div",{className:"w-16 h-16 bg-[#FAB868] rounded-full flex items-center justify-center mx-auto mb-4",children:e.jsx(Nu,{className:"w-8 h-8 text-[#0D0D0F]"})}),e.jsx("h3",{className:"text-xl font-bold text-[#0D0D0F] mb-3",children:"Is de juiste architectuur gekozen?"}),e.jsx("p",{className:"text-lg text-[#9CA3AF]",children:"Schaalbaar, onderhoudbaar en logisch opgebouwd."})]}),e.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:[e.jsx("div",{className:"w-16 h-16 bg-[#FAB868] rounded-full flex items-center justify-center mx-auto mb-4",children:e.jsx(_n,{className:"w-8 h-8 text-[#0D0D0F]"})}),e.jsx("h3",{className:"text-xl font-bold text-[#0D0D0F] mb-3",children:"Is de code overdraagbaar?"}),e.jsx("p",{className:"text-lg text-[#9CA3AF]",children:"Begrijpelijk, gedocumenteerd en niet afhankelijk van één persoon."})]}),e.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:[e.jsx("div",{className:"w-16 h-16 bg-[#FAB868] rounded-full flex items-center justify-center mx-auto mb-4",children:e.jsx(H8,{className:"w-8 h-8 text-[#0D0D0F]"})}),e.jsx("h3",{className:"text-xl font-bold text-[#0D0D0F] mb-3",children:"Kan het worden doorontwikkeld?"}),e.jsx("p",{className:"text-lg text-[#9CA3AF]",children:"Klaar voor upgrades, nieuwe modellen en toekomstige eisen."})]})]})]})}),e.jsx("section",{className:"py-32 bg-[#F4F4F4]",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[e.jsx(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-center mb-20",children:e.jsx("h2",{className:"text-5xl sm:text-6xl font-bold text-[#0D0D0F] mb-6",children:"Wat we doen (en wat niet)"})}),e.jsxs("div",{className:"grid lg:grid-cols-2 gap-12",children:[e.jsxs("div",{className:"bg-white rounded-3xl p-8 shadow-xl",children:[e.jsx("h3",{className:"text-3xl font-bold text-[#0D0D0F] mb-6",children:"Wij doen wel"}),e.jsxs("ul",{className:"space-y-4",children:[e.jsxs("li",{className:"flex items-start gap-4",children:[e.jsx("div",{className:"w-8 h-8 bg-[#FAB868] rounded-full flex items-center justify-center flex-shrink-0 mt-1",children:e.jsx(Ft,{className:"w-5 h-5 text-[#0D0D0F]"})}),e.jsx("p",{className:"text-xl text-[#0D0D0F]/80",children:"Code- en architectuurreviews"})]}),e.jsxs("li",{className:"flex items-start gap-4",children:[e.jsx("div",{className:"w-8 h-8 bg-[#FAB868] rounded-full flex items-center justify-center flex-shrink-0 mt-1",children:e.jsx(Ft,{className:"w-5 h-5 text-[#0D0D0F]"})}),e.jsx("p",{className:"text-xl text-[#0D0D0F]/80",children:"Begeleiding bij AI-assisted development"})]}),e.jsxs("li",{className:"flex items-start gap-4",children:[e.jsx("div",{className:"w-8 h-8 bg-[#FAB868] rounded-full flex items-center justify-center flex-shrink-0 mt-1",children:e.jsx(Ft,{className:"w-5 h-5 text-[#0D0D0F]"})}),e.jsx("p",{className:"text-xl text-[#0D0D0F]/80",children:"Helpen bij framework-keuzes (React, Next en alternatieven)"})]}),e.jsxs("li",{className:"flex items-start gap-4",children:[e.jsx("div",{className:"w-8 h-8 bg-[#FAB868] rounded-full flex items-center justify-center flex-shrink-0 mt-1",children:e.jsx(Ft,{className:"w-5 h-5 text-[#0D0D0F]"})}),e.jsx("p",{className:"text-xl text-[#0D0D0F]/80",children:"Meedenken over architectuur, integraties, security en structuur"})]}),e.jsxs("li",{className:"flex items-start gap-4",children:[e.jsx("div",{className:"w-8 h-8 bg-[#FAB868] rounded-full flex items-center justify-center flex-shrink-0 mt-1",children:e.jsx(Ft,{className:"w-5 h-5 text-[#0D0D0F]"})}),e.jsx("p",{className:"text-xl text-[#0D0D0F]/80",children:"Kennisoverdracht aan het team"})]})]})]}),e.jsxs("div",{className:"bg-white rounded-3xl p-8 shadow-xl",children:[e.jsx("h3",{className:"text-3xl font-bold text-[#0D0D0F] mb-6",children:"Wij doen niet"}),e.jsxs("ul",{className:"space-y-4",children:[e.jsxs("li",{className:"flex items-start gap-4",children:[e.jsx("div",{className:"w-8 h-8 bg-gray-200 rounded-full flex items-center justify-center flex-shrink-0 mt-1",children:e.jsx(Ht,{className:"w-5 h-5 text-gray-500"})}),e.jsx("p",{className:"text-xl text-[#0D0D0F]/80",children:"Jullie team overnemen"})]}),e.jsxs("li",{className:"flex items-start gap-4",children:[e.jsx("div",{className:"w-8 h-8 bg-gray-200 rounded-full flex items-center justify-center flex-shrink-0 mt-1",children:e.jsx(Ht,{className:"w-5 h-5 text-gray-500"})}),e.jsx("p",{className:"text-xl text-[#0D0D0F]/80",children:"Black-box oplossingen bouwen"})]})]}),e.jsx("p",{className:"text-xl text-[#0D0D0F] font-semibold mt-8",children:"Jullie blijven bouwen. Wij bewaken de kwaliteit."})]})]})]})}),e.jsx("section",{className:"py-32 bg-white",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[e.jsx(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-center mb-20",children:e.jsx("h2",{className:"text-5xl sm:text-6xl font-bold text-[#0D0D0F] mb-6",children:"Hoe we samenwerken"})}),e.jsxs("div",{className:"grid md:grid-cols-3 gap-8",children:[e.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:[e.jsx("div",{className:"w-16 h-16 bg-[#FAB868] rounded-full flex items-center justify-center mx-auto mb-4",children:e.jsx(vn,{className:"w-8 h-8 text-[#0D0D0F]"})}),e.jsx("h3",{className:"text-xl font-bold text-[#0D0D0F] mb-3",children:"Retainer"}),e.jsx("p",{className:"text-lg text-[#9CA3AF]",children:"structurele begeleiding & reviews"})]}),e.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:[e.jsx("div",{className:"w-16 h-16 bg-[#FAB868] rounded-full flex items-center justify-center mx-auto mb-4",children:e.jsx(z3,{className:"w-8 h-8 text-[#0D0D0F]"})}),e.jsx("h3",{className:"text-xl font-bold text-[#0D0D0F] mb-3",children:"Projectmatig"}),e.jsx("p",{className:"text-lg text-[#9CA3AF]",children:"toetsing van een AI-oplossing"})]}),e.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:[e.jsx("div",{className:"w-16 h-16 bg-[#FAB868] rounded-full flex items-center justify-center mx-auto mb-4",children:e.jsx(_n,{className:"w-8 h-8 text-[#0D0D0F]"})}),e.jsx("h3",{className:"text-xl font-bold text-[#0D0D0F] mb-3",children:"Tijdelijke versterking"}),e.jsx("p",{className:"text-lg text-[#9CA3AF]",children:"altijd met kennisoverdracht"})]})]}),e.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."})]})}),e.jsx("section",{className:"py-32 bg-[#F4F4F4]",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[e.jsx(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-center mb-20",children:e.jsx("h2",{className:"text-5xl sm:text-6xl font-bold text-[#0D0D0F] mb-6",children:"Waarom 48-7"})}),e.jsxs("div",{className:"grid md:grid-cols-2 gap-8 max-w-4xl mx-auto",children:[e.jsxs("div",{className:"flex items-center gap-3 text-xl text-[#0D0D0F]",children:[e.jsx(Ft,{className:"w-6 h-6 text-[#FAB868]"}),"Ervaren developers met echte AI-kennis"]}),e.jsxs("div",{className:"flex items-center gap-3 text-xl text-[#0D0D0F]",children:[e.jsx(Ft,{className:"w-6 h-6 text-[#FAB868]"}),"Begrip van bestaande softwarelandschappen"]}),e.jsxs("div",{className:"flex items-center gap-3 text-xl text-[#0D0D0F]",children:[e.jsx(Ft,{className:"w-6 h-6 text-[#FAB868]"}),"Praktisch, nuchter en zonder hype"]}),e.jsxs("div",{className:"flex items-center gap-3 text-xl text-[#0D0D0F]",children:[e.jsx(Ft,{className:"w-6 h-6 text-[#FAB868]"}),"Gericht op MKB+ teams die snelheid én controle willen"]})]}),e.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?"})]})}),e.jsx("section",{className:"py-32 bg-[#0D0D0F]",children:e.jsxs("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 text-center",children:[e.jsx("h2",{className:"text-5xl font-bold text-white mb-6",children:"Bespreek je situatie"}),e.jsx("p",{className:"text-2xl text-[#9CA3AF] mb-12",children:"Snel bouwen met AI, zonder technische risico's"}),e.jsxs(de,{to:se("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",e.jsx($e,{className:"w-5 h-5"})]})]})})]})}function jee(){const t=[{icon:Wi,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:se("AIConsultancy"),image:"https://images.unsplash.com/photo-1552664730-d307ca884978?w=1200&auto=format&fit=crop",bgLight:"bg-amber-50",color:"#f59e0b"},{icon:S4,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:se("AIDevelopment"),image:"https://images.unsplash.com/photo-1555949963-aa79dcee981c?w=1200&auto=format&fit=crop",bgLight:"bg-blue-50",color:"#3b82f6"},{icon:uf,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:se("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:se("Training"),image:"https://images.unsplash.com/photo-1524178232363-1fb2b075b655?w=1200&auto=format&fit=crop",bgLight:"bg-purple-50",color:"#a855f7"}],n=[{icon:Ya,value:"50+",label:"Projecten afgerond"},{icon:_n,value:"500+",label:"Professionals getraind"},{icon:ui,value:"2x",label:"Gemiddelde productiviteitswinst"}];return e.jsxs("div",{className:"pt-20",children:[e.jsx("section",{className:"py-20 bg-gradient-to-b from-gray-50 to-white",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[e.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"text-center max-w-3xl mx-auto mb-16",children:[e.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:[e.jsx(At,{className:"w-4 h-4"}),"Full-Service AI Agency"]}),e.jsx("h1",{className:"text-4xl sm:text-5xl font-bold text-gray-900 mb-6",children:"Full-Service AI voor MKB"}),e.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."})]}),e.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)=>e.jsxs("div",{className:"text-center p-6 bg-white rounded-2xl border border-gray-100",children:[e.jsx(r.icon,{className:"w-8 h-8 text-blue-600 mx-auto mb-3"}),e.jsx("p",{className:"text-3xl font-bold text-gray-900",children:r.value}),e.jsx("p",{className:"text-gray-600",children:r.label})]},i))})]})}),e.jsx("section",{className:"py-20",children:e.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:e.jsx("div",{className:"space-y-16",children:t.map((r,i)=>e.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:[e.jsxs("div",{className:i%2===1?"lg:order-2":"",children:[e.jsx("div",{className:`w-16 h-16 ${r.bgLight} rounded-2xl flex items-center justify-center mb-6`,children:e.jsx(r.icon,{className:"w-8 h-8",style:{color:r.color}})}),e.jsx("h2",{className:"text-3xl font-bold text-gray-900 mb-4",children:r.title}),e.jsx("p",{className:"text-xl text-gray-600 mb-8",children:r.description}),e.jsx("ul",{className:"space-y-3 mb-8",children:r.features.map((s,a)=>e.jsxs("li",{className:"flex items-center gap-3",children:[e.jsx("div",{className:`w-6 h-6 rounded-full ${r.bgLight} flex items-center justify-center`,children:e.jsx(Ft,{className:"w-4 h-4",style:{color:r.color}})}),e.jsx("span",{className:"text-gray-700",children:s})]},a))}),e.jsxs(de,{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,e.jsx($e,{className:"w-5 h-5"})]})]}),e.jsx("div",{className:`relative ${i%2===1?"lg:order-1":""}`,children:e.jsx("img",{src:r.image,alt:r.title,className:"w-full aspect-square object-cover rounded-3xl shadow-xl"})})]},i))})})}),e.jsx("section",{className:"py-16 bg-gray-50",children:e.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:e.jsx(Wf,{})})}),e.jsx("section",{className:"py-20 bg-gray-900",children:e.jsx("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 text-center",children:e.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},children:[e.jsx("h2",{className:"text-3xl sm:text-4xl font-bold text-white mb-6",children:"Niet zeker welke dienst je nodig hebt?"}),e.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."}),e.jsxs(de,{to:se("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:[e.jsx(At,{className:"w-5 h-5"}),"Start de AI Quiz",e.jsx($e,{className:"w-5 h-5"})]})]})})})]})}var Kf="Checkbox",[wee]=to(Kf),[kee,Cb]=wee(Kf);function Nee(t){const{__scopeCheckbox:n,checked:r,children:i,defaultChecked:s,disabled:a,form:o,name:c,onCheckedChange:d,required:h,value:f="on",internal_do_not_use_render:m}=t,[p,g]=gl({prop:r,defaultProp:s??!1,onChange:d,caller:Kf}),[b,j]=R.useState(null),[v,x]=R.useState(null),k=R.useRef(!1),w=b?!!o||!!b.closest("form"):!0,N={checked:p,disabled:a,setChecked:g,control:b,setControl:j,name:c,form:o,value:f,hasConsumerStoppedPropagationRef:k,required:h,defaultChecked:$s(s)?!1:s,isFormControl:w,bubbleInput:v,setBubbleInput:x};return e.jsx(kee,{scope:n,...N,children:_ee(m)?m(N):i})}var D6="CheckboxTrigger",I6=R.forwardRef(({__scopeCheckbox:t,onKeyDown:n,onClick:r,...i},s)=>{const{control:a,value:o,disabled:c,checked:d,required:h,setControl:f,setChecked:m,hasConsumerStoppedPropagationRef:p,isFormControl:g,bubbleInput:b}=Cb(D6,t),j=Yt(s,f),v=R.useRef(d);return R.useEffect(()=>{const x=a==null?void 0:a.form;if(x){const k=()=>m(v.current);return x.addEventListener("reset",k),()=>x.removeEventListener("reset",k)}},[a,m]),e.jsx(jt.button,{type:"button",role:"checkbox","aria-checked":$s(d)?"mixed":d,"aria-required":h,"data-state":B6(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(k=>$s(k)?!0:!k),b&&g&&(p.current=x.isPropagationStopped(),p.current||x.stopPropagation())})})});I6.displayName=D6;var Eb=R.forwardRef((t,n)=>{const{__scopeCheckbox:r,name:i,checked:s,defaultChecked:a,required:o,disabled:c,value:d,onCheckedChange:h,form:f,...m}=t;return e.jsx(Nee,{__scopeCheckbox:r,checked:s,defaultChecked:a,disabled:c,required:o,onCheckedChange:h,name:i,form:f,value:d,internal_do_not_use_render:({isFormControl:p})=>e.jsxs(e.Fragment,{children:[e.jsx(I6,{...m,ref:n,__scopeCheckbox:r}),p&&e.jsx(L6,{__scopeCheckbox:r})]})})});Eb.displayName=Kf;var R6="CheckboxIndicator",F6=R.forwardRef((t,n)=>{const{__scopeCheckbox:r,forceMount:i,...s}=t,a=Cb(R6,r);return e.jsx(hb,{present:i||$s(a.checked)||a.checked===!0,children:e.jsx(jt.span,{"data-state":B6(a.checked),"data-disabled":a.disabled?"":void 0,...s,ref:n,style:{pointerEvents:"none",...t.style}})})});F6.displayName=R6;var M6="CheckboxBubbleInput",L6=R.forwardRef(({__scopeCheckbox:t,...n},r)=>{const{control:i,hasConsumerStoppedPropagationRef:s,checked:a,defaultChecked:o,required:c,disabled:d,name:h,value:f,form:m,bubbleInput:p,setBubbleInput:g}=Cb(M6,t),b=Yt(r,g),j=ob(a),v=ib(i);R.useEffect(()=>{const k=p;if(!k)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});k.indeterminate=$s(a),A.call(k,$s(a)?!1:a),k.dispatchEvent(E)}},[p,j,a,s]);const x=R.useRef($s(a)?!1:a);return e.jsx(jt.input,{type:"checkbox","aria-hidden":!0,defaultChecked:o??x.current,required:c,disabled:d,name:h,value:f,form:m,...n,tabIndex:-1,ref:b,style:{...n.style,...v,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});L6.displayName=M6;function _ee(t){return typeof t=="function"}function $s(t){return t==="indeterminate"}function B6(t){return $s(t)?"indeterminate":t?"checked":"unchecked"}const Bh=R.forwardRef(({className:t,...n},r)=>e.jsx(Eb,{ref:r,className:Qt("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",t),...n,children:e.jsx(F6,{className:Qt("flex items-center justify-center text-current"),children:e.jsx(Ft,{className:"h-4 w-4"})})}));Bh.displayName=Eb.displayName;function See(){const[t,n]=R.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]=R.useState(!1),[s,a]=R.useState(!1),[o,c]=R.useState(""),[d,h]=R.useState(""),[f,m]=R.useState(!1),[p,g]=R.useState({}),[b,j]=R.useState([]),v=(S,E)=>{n(C=>({...C,[S]:E}))},x=(S,E,C)=>{n(B=>({...B,[S]:C?[...B[S],E]:B[S].filter(F=>F!==E)}))},k=async S=>{var C;const E=Array.from(S.target.files);if(E.length!==0){m(!0);try{const B=[];for(const F of E){const D=await ce.integrations.Core.UploadFile({file:F}),I=D.file_url||((C=D.data)==null?void 0:C.file_url);if(!I)throw new Error("Bestands-URL ontbreekt na uploaden.");B.push(I)}n(F=>({...F,geupload_documenten:[...F.geupload_documenten,...B]}))}catch(B){h("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)}))},N=()=>{const S={};(!t.bedrijfsnaam||t.bedrijfsnaam.trim().length<2)&&(S.bedrijfsnaam="Bedrijfsnaam is verplicht"),(!t.contactpersonen||t.contactpersonen.trim().length<2)&&(S.contactpersonen="Contactpersoon is verplicht");const E=/^[^\s@]+@[^\s@]+\.[^\s@]+$/;if((!t.email||!E.test(t.email))&&(S.email="Voer een geldig e-mailadres in"),t.telefoon){const C=/^(\+31|0031|0)[1-9][0-9]{8}$/,B=t.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(),!N()){h("Er zijn validatiefouten in het formulier. Controleer de rode velden."),window.scrollTo(0,0);return}i(!0),h(""),j([]);try{const E=await ce.functions.invoke("submitDiscoveryForm",t);E.data.success?(c(E.data.id||""),a(!0),window.scrollTo(0,0)):(h(E.data.error||"Er ging iets mis"),E.data.validation_errors&&j(E.data.validation_errors))}catch(E){console.error("Form submission error:",E),h("Netwerkfout: kon geen verbinding maken met de server. Probeer het later opnieuw.")}finally{i(!1)}};return s?e.jsx("div",{className:"min-h-screen bg-gradient-to-br from-gray-50 to-gray-100 py-20",children:e.jsx("div",{className:"max-w-2xl mx-auto px-4",children:e.jsxs("div",{className:"bg-white rounded-3xl shadow-xl p-12 text-center",children:[e.jsx(R3,{className:"w-20 h-20 text-green-500 mx-auto mb-6"}),e.jsx("h1",{className:"text-3xl font-bold mb-4",children:"Bedankt!"}),e.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&&e.jsxs("div",{className:"bg-blue-50 border border-blue-200 rounded-xl p-4 mb-6",children:[e.jsx("p",{className:"text-sm text-gray-600 mb-1",children:"Referentienummer:"}),e.jsx("p",{className:"text-lg font-mono font-bold text-blue-700",children:o})]})]})})}):e.jsx("div",{className:"min-h-screen bg-gradient-to-br from-gray-50 to-gray-100 py-12",children:e.jsx("div",{className:"max-w-4xl mx-auto px-4",children:e.jsxs("div",{className:"bg-white rounded-3xl shadow-xl p-8 md:p-12",children:[e.jsxs("div",{className:"mb-12",children:[e.jsx("h1",{className:"text-4xl font-bold mb-4",children:"48-7 AI Discovery - Pre-Meeting Scan"}),e.jsx("div",{className:"bg-blue-50 border-l-4 border-blue-500 p-4 mb-6",children:e.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."})}),e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4 text-sm",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("span",{className:"font-semibold",children:"⏱️ Invultijd:"}),e.jsx("span",{children:"Ongeveer 10-15 minuten"})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("span",{className:"font-semibold",children:"🔒 Privacy:"}),e.jsx("span",{children:"Gegevens worden vertrouwelijk behandeld"})]})]})]}),e.jsxs("form",{onSubmit:A,className:"space-y-12",children:[e.jsxs("section",{children:[e.jsx("h2",{className:"text-2xl font-bold mb-6 pb-2 border-b-2 border-[#FAB868]",children:"DEEL 1: Bedrijfsgegevens"}),e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block font-semibold mb-2",children:"Bedrijfsnaam *"}),e.jsx(me,{required:!0,value:t.bedrijfsnaam,onChange:S=>{v("bedrijfsnaam",S.target.value),p.bedrijfsnaam&&g({...p,bedrijfsnaam:null})},className:p.bedrijfsnaam?"border-red-500":""}),p.bedrijfsnaam&&e.jsx("p",{className:"text-red-500 text-xs mt-1",children:p.bedrijfsnaam})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block font-semibold mb-2",children:"Contactpersoon(en) tijdens sessie *"}),e.jsx(me,{required:!0,value:t.contactpersonen,onChange:S=>{v("contactpersonen",S.target.value),p.contactpersonen&&g({...p,contactpersonen:null})},className:p.contactpersonen?"border-red-500":""}),p.contactpersonen&&e.jsx("p",{className:"text-red-500 text-xs mt-1",children:p.contactpersonen})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block font-semibold mb-2",children:"Functie(s)"}),e.jsx(me,{value:t.functies,onChange:S=>v("functies",S.target.value)})]}),e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block font-semibold mb-2",children:"E-mail *"}),e.jsx(me,{type:"email",required:!0,value:t.email,onChange:S=>{v("email",S.target.value),p.email&&g({...p,email:null})},className:p.email?"border-red-500":""}),p.email&&e.jsx("p",{className:"text-red-500 text-xs mt-1",children:p.email})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block font-semibold mb-2",children:"Telefoon"}),e.jsx(me,{type:"tel",value:t.telefoon,onChange:S=>{v("telefoon",S.target.value),p.telefoon&&g({...p,telefoon:null})},placeholder:"+31 6 12345678",className:p.telefoon?"border-red-500":""}),p.telefoon&&e.jsx("p",{className:"text-red-500 text-xs mt-1",children:p.telefoon})]})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block font-semibold mb-2",children:"In welke sector/branche zijn jullie actief?"}),e.jsx(me,{value:t.sector,onChange:S=>v("sector",S.target.value)})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block font-semibold mb-3",children:"Hoeveel medewerkers heeft jullie organisatie?"}),e.jsx("div",{className:"space-y-2",children:["1-10","11-25","26-50","51-100","100+"].map(S=>e.jsxs("label",{className:"flex items-center gap-2 cursor-pointer",children:[e.jsx("input",{type:"radio",name:"aantal_medewerkers",value:S,checked:t.aantal_medewerkers===S,onChange:E=>v("aantal_medewerkers",E.target.value),className:"w-4 h-4"}),e.jsx("span",{children:S})]},S))})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block font-semibold mb-3",children:"Omzet range (optioneel)"}),e.jsx("div",{className:"space-y-2",children:["< €500k","€500k - €1M","€1M - €5M","€5M - €10M","€10M+","Geef ik liever niet aan"].map(S=>e.jsxs("label",{className:"flex items-center gap-2 cursor-pointer",children:[e.jsx("input",{type:"radio",name:"omzet_range",value:S,checked:t.omzet_range===S,onChange:E=>v("omzet_range",E.target.value),className:"w-4 h-4"}),e.jsx("span",{children:S})]},S))})]}),e.jsxs("div",{children:[e.jsxs("label",{className:"block font-semibold mb-2",children:["Beschrijf jullie kernactiviteit in één zin",e.jsx("br",{}),e.jsx("span",{className:"text-sm font-normal text-gray-600",children:"(Wat doen jullie en voor wie?)"})]}),e.jsx(pt,{value:t.kernactiviteit,onChange:S=>v("kernactiviteit",S.target.value),rows:3})]})]})]}),e.jsxs("section",{children:[e.jsx("h2",{className:"text-2xl font-bold mb-6 pb-2 border-b-2 border-[#FAB868]",children:"DEEL 2: Huidige Situatie"}),e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block font-semibold mb-3",children:"Wat zijn op dit moment jullie TOP 3 frustraties of knelpunten in de dagelijkse bedrijfsvoering?"}),e.jsxs("div",{className:"space-y-3",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm mb-1",children:"1."}),e.jsx(pt,{value:t.frustratie_1,onChange:S=>v("frustratie_1",S.target.value),rows:2})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm mb-1",children:"2."}),e.jsx(pt,{value:t.frustratie_2,onChange:S=>v("frustratie_2",S.target.value),rows:2})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm mb-1",children:"3."}),e.jsx(pt,{value:t.frustratie_3,onChange:S=>v("frustratie_3",S.target.value),rows:2})]})]})]}),e.jsxs("div",{children:[e.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?"}),e.jsx(pt,{value:t.tijdrovende_activiteit,onChange:S=>v("tijdrovende_activiteit",S.target.value),rows:3})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block font-semibold mb-3",children:"Als je een ruwe schatting maakt, hoeveel tijd gaat hier per week in zitten?"}),e.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=>e.jsxs("label",{className:"flex items-center gap-2 cursor-pointer",children:[e.jsx("input",{type:"radio",name:"tijdsbesteding_uren",value:S,checked:t.tijdsbesteding_uren===S,onChange:E=>v("tijdsbesteding_uren",E.target.value),className:"w-4 h-4"}),e.jsx("span",{children:S})]},S))})]}),e.jsxs("div",{children:[e.jsxs("label",{className:"block font-semibold mb-2",children:["Welke kansen laat jullie nu liggen door gebrek aan tijd, mensen of middelen?",e.jsx("br",{}),e.jsx("span",{className:"text-sm font-normal text-gray-600",children:"(Bijvoorbeeld: meer klanten kunnen helpen, betere service, nieuwe producten ontwikkelen, etc.)"})]}),e.jsx(pt,{value:t.gemiste_kansen,onChange:S=>v("gemiste_kansen",S.target.value),rows:4})]})]})]}),e.jsxs("section",{children:[e.jsx("h2",{className:"text-2xl font-bold mb-6 pb-2 border-b-2 border-[#FAB868]",children:"DEEL 3: Systemen & Data"}),e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{children:[e.jsxs("label",{className:"block font-semibold mb-3",children:["Welke systemen/tools gebruiken jullie dagelijks?",e.jsx("br",{}),e.jsx("span",{className:"text-sm font-normal text-gray-600",children:"(Meerdere antwoorden mogelijk)"})]}),e.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=>e.jsxs("label",{className:"flex items-center gap-2 cursor-pointer",children:[e.jsx(Bh,{checked:t.gebruikte_systemen.includes(S),onCheckedChange:E=>x("gebruikte_systemen",S,E)}),e.jsx("span",{children:S})]},S))})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block font-semibold mb-3",children:"Zijn jullie systemen aan elkaar gekoppeld?"}),e.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=>e.jsxs("label",{className:"flex items-center gap-2 cursor-pointer",children:[e.jsx("input",{type:"radio",name:"systemen_gekoppeld",value:S,checked:t.systemen_gekoppeld===S,onChange:E=>v("systemen_gekoppeld",E.target.value),className:"w-4 h-4"}),e.jsx("span",{children:S})]},S))})]}),e.jsxs("div",{children:[e.jsxs("label",{className:"block font-semibold mb-3",children:["Waar zit jullie belangrijkste bedrijfskennis?",e.jsx("br",{}),e.jsx("span",{className:"text-sm font-normal text-gray-600",children:"(Meerdere antwoorden mogelijk)"})]}),e.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=>e.jsxs("label",{className:"flex items-center gap-2 cursor-pointer",children:[e.jsx(Bh,{checked:t.bedrijfskennis_locatie.includes(S),onCheckedChange:E=>x("bedrijfskennis_locatie",S,E)}),e.jsx("span",{children:S})]},S))})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block font-semibold mb-3",children:"Hoe makkelijk kunnen medewerkers informatie vinden die ze nodig hebben?"}),e.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=>e.jsxs("label",{className:"flex items-center gap-2 cursor-pointer",children:[e.jsx("input",{type:"radio",name:"informatie_vindbaarheid",value:S,checked:t.informatie_vindbaarheid===S,onChange:E=>v("informatie_vindbaarheid",E.target.value),className:"w-4 h-4"}),e.jsx("span",{children:S})]},S))})]})]})]}),e.jsxs("section",{children:[e.jsx("h2",{className:"text-2xl font-bold mb-6 pb-2 border-b-2 border-[#FAB868]",children:"DEEL 4: AI-Readiness"}),e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block font-semibold mb-3",children:"Gebruiken jullie of jullie team al AI-tools?"}),e.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=>e.jsxs("label",{className:"flex items-center gap-2 cursor-pointer",children:[e.jsx("input",{type:"radio",name:"ai_gebruik",value:S,checked:t.ai_gebruik===S,onChange:E=>v("ai_gebruik",E.target.value),className:"w-4 h-4"}),e.jsx("span",{children:S})]},S))})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block font-semibold mb-2",children:"Zo ja, welke AI-tools gebruiken jullie en waarvoor?"}),e.jsx(pt,{value:t.ai_tools_welke,onChange:S=>v("ai_tools_welke",S.target.value),rows:3})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block font-semibold mb-3",children:"Wat is jullie ervaring met AI tot nu toe?"}),e.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=>e.jsxs("label",{className:"flex items-center gap-2 cursor-pointer",children:[e.jsx("input",{type:"radio",name:"ai_ervaring",value:S,checked:t.ai_ervaring===S,onChange:E=>v("ai_ervaring",E.target.value),className:"w-4 h-4"}),e.jsx("span",{children:S})]},S))})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block font-semibold mb-3",children:"Hoe kijkt het management/eigenaar aan tegen AI?"}),e.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=>e.jsxs("label",{className:"flex items-center gap-2 cursor-pointer",children:[e.jsx("input",{type:"radio",name:"management_houding",value:S,checked:t.management_houding===S,onChange:E=>v("management_houding",E.target.value),className:"w-4 h-4"}),e.jsx("span",{children:S})]},S))})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block font-semibold mb-3",children:"Hoe kijken medewerkers aan tegen AI?"}),e.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=>e.jsxs("label",{className:"flex items-center gap-2 cursor-pointer",children:[e.jsx("input",{type:"radio",name:"medewerkers_houding",value:S,checked:t.medewerkers_houding===S,onChange:E=>v("medewerkers_houding",E.target.value),className:"w-4 h-4"}),e.jsx("span",{children:S})]},S))})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block font-semibold mb-2",children:"Zijn er specifieke zorgen of vragen over AI?"}),e.jsx(pt,{value:t.ai_zorgen,onChange:S=>v("ai_zorgen",S.target.value),rows:3})]})]})]}),e.jsxs("section",{children:[e.jsx("h2",{className:"text-2xl font-bold mb-6 pb-2 border-b-2 border-[#FAB868]",children:"DEEL 5: Doelen & Verwachtingen"}),e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{children:[e.jsxs("label",{className:"block font-semibold mb-3",children:["Wat is de belangrijkste reden om met 48-7 in gesprek te gaan?",e.jsx("br",{}),e.jsx("span",{className:"text-sm font-normal text-gray-600",children:"(Meerdere antwoorden mogelijk)"})]}),e.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=>e.jsxs("label",{className:"flex items-center gap-2 cursor-pointer",children:[e.jsx(Bh,{checked:t.redenen_contact.includes(S),onCheckedChange:E=>x("redenen_contact",S,E)}),e.jsx("span",{children:S})]},S))})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block font-semibold mb-2",children:"Als jullie over 6-12 maanden terugkijken, wat zou dan een succesvol resultaat zijn?"}),e.jsx(pt,{value:t.succesvol_resultaat,onChange:S=>v("succesvol_resultaat",S.target.value),rows:4})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block font-semibold mb-3",children:"Hoe urgent is dit voor jullie?"}),e.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=>e.jsxs("label",{className:"flex items-center gap-2 cursor-pointer",children:[e.jsx("input",{type:"radio",name:"urgentie",value:S,checked:t.urgentie===S,onChange:E=>v("urgentie",E.target.value),className:"w-4 h-4"}),e.jsx("span",{children:S})]},S))})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block font-semibold mb-3",children:"Is er budget beschikbaar voor AI-implementatie?"}),e.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=>e.jsxs("label",{className:"flex items-center gap-2 cursor-pointer",children:[e.jsx("input",{type:"radio",name:"budget_beschikbaar",value:S,checked:t.budget_beschikbaar===S,onChange:E=>v("budget_beschikbaar",E.target.value),className:"w-4 h-4"}),e.jsx("span",{children:S})]},S))})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block font-semibold mb-3",children:"Indicatie budget range (optioneel)"}),e.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=>e.jsxs("label",{className:"flex items-center gap-2 cursor-pointer",children:[e.jsx("input",{type:"radio",name:"budget_range",value:S,checked:t.budget_range===S,onChange:E=>v("budget_range",E.target.value),className:"w-4 h-4"}),e.jsx("span",{children:S})]},S))})]})]})]}),e.jsxs("section",{children:[e.jsx("h2",{className:"text-2xl font-bold mb-6 pb-2 border-b-2 border-[#FAB868]",children:"DEEL 6: Discovery Sessie"}),e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block font-semibold mb-2",children:"Zijn er specifieke onderwerpen die jullie zeker besproken willen hebben?"}),e.jsx(pt,{value:t.specifieke_onderwerpen,onChange:S=>v("specifieke_onderwerpen",S.target.value),rows:4})]}),e.jsxs("div",{children:[e.jsxs("label",{className:"block font-semibold mb-2",children:["Zijn er documenten/informatie die jullie vooraf willen delen?",e.jsx("br",{}),e.jsx("span",{className:"text-sm font-normal text-gray-600",children:"(Bijvoorbeeld: organogram, processchema's, huidige toolstack, eerdere analyses)"})]}),e.jsx(pt,{value:t.te_delen_documenten,onChange:S=>v("te_delen_documenten",S.target.value),rows:3,placeholder:"Beschrijf welke documenten je wilt delen..."}),e.jsxs("div",{className:"mt-4",children:[e.jsx("label",{className:"block font-semibold mb-2",children:"Upload documenten"}),e.jsxs("div",{className:"border-2 border-dashed border-gray-300 rounded-xl p-6 text-center",children:[e.jsx("input",{type:"file",multiple:!0,onChange:k,disabled:f,className:"hidden",id:"file-upload",accept:".pdf,.doc,.docx,.xls,.xlsx,.ppt,.pptx,.jpg,.jpeg,.png"}),e.jsxs("label",{htmlFor:"file-upload",className:"cursor-pointer flex flex-col items-center",children:[e.jsx(R4,{className:"w-8 h-8 text-gray-400 mb-2"}),e.jsx("span",{className:"text-sm text-gray-600",children:f?"Bezig met uploaden...":"Klik om bestanden te uploaden"}),e.jsx("span",{className:"text-xs text-gray-400 mt-1",children:"PDF, Word, Excel, PowerPoint, afbeeldingen"})]})]}),t.geupload_documenten.length>0&&e.jsx("div",{className:"mt-3 space-y-2",children:t.geupload_documenten.map((S,E)=>e.jsxs("div",{className:"flex items-center justify-between bg-gray-50 p-3 rounded-lg",children:[e.jsx("span",{className:"text-sm text-gray-700 truncate flex-1",children:S.split("/").pop()}),e.jsx("button",{type:"button",onClick:()=>w(S),className:"ml-2 text-red-600 hover:text-red-800",children:e.jsx(Ht,{className:"w-4 h-4"})})]},E))})]})]})]})]}),e.jsxs("section",{children:[e.jsx("h2",{className:"text-2xl font-bold mb-6 pb-2 border-b-2 border-[#FAB868]",children:"DEEL 7: Aanvullende Informatie"}),e.jsx("div",{className:"space-y-6",children:e.jsxs("div",{children:[e.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?"}),e.jsx(pt,{value:t.overige_informatie,onChange:S=>v("overige_informatie",S.target.value),rows:5})]})})]}),d&&e.jsxs("div",{className:"bg-red-50 border-l-4 border-red-500 p-4 text-red-700",children:[e.jsx("p",{className:"font-semibold mb-2",children:d}),b.length>0&&e.jsx("ul",{className:"list-disc list-inside text-sm space-y-1 mt-2",children:b.map((S,E)=>e.jsx("li",{children:S},E))})]}),e.jsx("div",{className:"pt-6 border-t-2",children:e.jsx(ae,{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?e.jsxs(e.Fragment,{children:[e.jsx(T4,{className:"w-5 h-5 mr-2 animate-spin"}),"Verzenden..."]}):"Discovery Scan Verzenden"})})]})]})})})}function Aee(){const[t,n]=R.useState("input"),[r,i]=R.useState({url:"",description:""}),[s,a]=R.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]=R.useState(!1),[d,h]=R.useState(null),[f,m]=R.useState(null),[p,g]=R.useState(null),[b,j]=R.useState(!1),[v,x]=R.useState([]),[k,w]=R.useState(!1),[N,A]=R.useState({name:"",email:""}),[S,E]=R.useState(!1),[C,B]=R.useState(!1),[F,D]=R.useState(!1);R.useEffect(()=>{const K=new URLSearchParams(window.location.search).get("report_id");K&&I(K)},[]),R.useEffect(()=>{(t==="submitted"||t==="results")&&window.scrollTo({top:0,behavior:"smooth"})},[t]);const I=async H=>{var K,Y;D(!0),g(null);try{const{data:P}=await ce.functions.invoke("getEuAiActReport",{submission_id:H});P.success&&P.analysis?(h(P.analysis),m(H),n("results")):g(P.error||"Rapport niet gevonden")}catch(P){console.error("Error loading shared report:",P),g(((Y=(K=P.response)==null?void 0:K.data)==null?void 0:Y.error)||P.message||"Kon rapport niet laden. Controleer de link en probeer opnieuw.")}finally{D(!1)}},z=H=>{if(H.preventDefault(),!r.url&&!r.description){g("Vul een website URL of beschrijving in");return}n("questionnaire")},q=async()=>{if(!N.email||!N.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),h(null);try{const{data:H}=await ce.functions.invoke("createEuAiActRequest",{website_url:r.url,company_description:r.description,questionnaire:s,user_email:N.email,user_name:N.name});if(H.success){if(H.submission_id)try{const K=await ce.functions.invoke("sendEuAiActReport",{submission_id:H.submission_id,recipient_email:N.email,recipient_name:N.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 e.jsx(fi,{className:"w-6 h-6 text-red-600"});case"hoog":return e.jsx(Ho,{className:"w-6 h-6 text-orange-600"});case"beperkt":return e.jsx(wh,{className:"w-6 h-6 text-yellow-600"});case"minimaal":return e.jsx(gt,{className:"w-6 h-6 text-green-600"});default:return e.jsx(wh,{className:"w-6 h-6 text-gray-600"})}},Q=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 t==="questionnaire"?e.jsx("div",{className:"pt-20 min-h-screen bg-gradient-to-b from-blue-50 to-white",children:e.jsxs("div",{className:"max-w-3xl mx-auto px-4 sm:px-6 lg:px-8 py-12",children:[e.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"text-center mb-8",children:[e.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:[e.jsx(Vn,{className:"w-4 h-4"}),"Stap 2 van 3: Vragenlijst"]}),e.jsx("h1",{className:"text-3xl font-bold text-gray-900 mb-4",children:"Vertel ons meer over je AI-gebruik"}),e.jsx("p",{className:"text-gray-600",children:"Dit helpt ons een nauwkeurigere compliance-analyse te maken"})]}),e.jsxs("div",{className:"bg-white rounded-2xl p-8 border border-gray-100 space-y-8",children:[e.jsxs("div",{children:[e.jsx("h3",{className:"text-lg font-bold text-gray-900 mb-4",children:"Bedrijfscontext"}),e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"In welke sector is jullie bedrijf actief?"}),e.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:[e.jsx("option",{value:"",children:"Selecteer sector"}),e.jsx("option",{value:"retail",children:"Retail / e-commerce"}),e.jsx("option",{value:"financial",children:"Financieel"}),e.jsx("option",{value:"hr",children:"HR / recruitment"}),e.jsx("option",{value:"healthcare",children:"Zorg"}),e.jsx("option",{value:"industry",children:"Industrie / logistiek"}),e.jsx("option",{value:"marketing",children:"Marketing / media"}),e.jsx("option",{value:"it",children:"IT / SaaS"}),e.jsx("option",{value:"government",children:"Overheid / semi-overheid"}),e.jsx("option",{value:"other",children:"Anders"})]})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Voor wie zijn jullie diensten vooral bedoeld?"}),e.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:[e.jsx("option",{value:"",children:"Selecteer doelgroep"}),e.jsx("option",{value:"consumers",children:"Consumenten"}),e.jsx("option",{value:"businesses",children:"Bedrijven"}),e.jsx("option",{value:"both",children:"Beide"})]})]})]})]}),e.jsxs("div",{children:[e.jsx("h3",{className:"text-lg font-bold text-gray-900 mb-4",children:"AI gebruik"}),e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Wordt AI gebruikt binnen jullie organisatie?"}),e.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:[e.jsx("option",{value:"",children:"Selecteer"}),e.jsx("option",{value:"active",children:"Ja, actief"}),e.jsx("option",{value:"limited",children:"Ja, beperkt / experimenten"}),e.jsx("option",{value:"no",children:"Nee"}),e.jsx("option",{value:"unknown",children:"Weet ik niet"})]})]}),(s.ai_usage==="active"||s.ai_usage==="limited")&&e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Waarvoor gebruiken jullie AI vooral? (meerdere keuzes mogelijk)"}),e.jsx("div",{className:"space-y-2",children:["Klantenservice (chatbots, mail)","Marketing / content","Analyse / voorspellingen","Besluitvorming","Product / software","HR","Anders"].map(H=>e.jsxs("label",{className:"flex items-center gap-2",children:[e.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(Y=>Y!==H)})},className:"w-4 h-4 text-blue-600 rounded focus:ring-blue-500"}),e.jsx("span",{className:"text-gray-700",children:H})]},H))})]})]})]}),e.jsxs("div",{children:[e.jsx("h3",{className:"text-lg font-bold text-gray-900 mb-4",children:"Impact op mensen"}),e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Neemt AI beslissingen die directe gevolgen hebben voor mensen?"}),e.jsx("p",{className:"text-xs text-gray-500 mb-2",children:"Bijv: afwijzing sollicitant, kredietscore, prijsbepaling, toegang tot dienst"}),e.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:[e.jsx("option",{value:"",children:"Selecteer"}),e.jsx("option",{value:"yes",children:"Ja"}),e.jsx("option",{value:"no",children:"Nee"}),e.jsx("option",{value:"unknown",children:"Weet ik niet"})]})]}),e.jsxs("div",{children:[e.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?"}),e.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:[e.jsx("option",{value:"",children:"Selecteer"}),e.jsx("option",{value:"yes",children:"Ja"}),e.jsx("option",{value:"sometimes",children:"Soms"}),e.jsx("option",{value:"no",children:"Nee"})]})]})]})]}),e.jsxs("div",{children:[e.jsx("h3",{className:"text-lg font-bold text-gray-900 mb-4",children:"Gevoelige toepassingen"}),e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{children:[e.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)"}),e.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=>e.jsxs("label",{className:"flex items-center gap-2",children:[e.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(Y=>Y!==H)})},className:"w-4 h-4 text-blue-600 rounded focus:ring-blue-500"}),e.jsx("span",{className:"text-gray-700",children:H})]},H))})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Verwerkt AI persoonsgegevens?"}),e.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:[e.jsx("option",{value:"",children:"Selecteer"}),e.jsx("option",{value:"yes",children:"Ja"}),e.jsx("option",{value:"no",children:"Nee"}),e.jsx("option",{value:"unknown",children:"Weet ik niet"})]})]}),s.processes_personal_data==="yes"&&e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Gaat het om gevoelige persoonsgegevens?"}),e.jsx("p",{className:"text-xs text-gray-500 mb-2",children:"Bijv: gezondheid, etniciteit, biometrie"}),e.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:[e.jsx("option",{value:"",children:"Selecteer"}),e.jsx("option",{value:"yes",children:"Ja"}),e.jsx("option",{value:"no",children:"Nee"}),e.jsx("option",{value:"unknown",children:"Weet ik niet"})]})]})]})]}),e.jsxs("div",{children:[e.jsx("h3",{className:"text-lg font-bold text-gray-900 mb-4",children:"Software & herkomst"}),e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Hoe komt de AI tot stand?"}),e.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:[e.jsx("option",{value:"",children:"Selecteer"}),e.jsx("option",{value:"self_developed",children:"Zelf ontwikkeld"}),e.jsx("option",{value:"vendor",children:"Ingekocht bij leverancier"}),e.jsx("option",{value:"tools",children:"Via tools zoals ChatGPT, Copilot, Midjourney"}),e.jsx("option",{value:"combination",children:"Combinatie"})]})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Weten jullie hoe de AI tot zijn uitkomsten komt?"}),e.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:[e.jsx("option",{value:"",children:"Selecteer"}),e.jsx("option",{value:"well_documented",children:"Ja, goed gedocumenteerd"}),e.jsx("option",{value:"partially",children:"Gedeeltelijk"}),e.jsx("option",{value:"no",children:"Nee"})]})]})]})]}),e.jsxs("div",{children:[e.jsx("h3",{className:"text-lg font-bold text-gray-900 mb-4",children:"Governance & compliance"}),e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Is iemand formeel verantwoordelijk voor AI binnen de organisatie?"}),e.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:[e.jsx("option",{value:"",children:"Selecteer"}),e.jsx("option",{value:"yes",children:"Ja"}),e.jsx("option",{value:"no",children:"Nee"})]})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Worden AI-risico's periodiek geëvalueerd?"}),e.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:[e.jsx("option",{value:"",children:"Selecteer"}),e.jsx("option",{value:"yes",children:"Ja"}),e.jsx("option",{value:"no",children:"Nee"}),e.jsx("option",{value:"unknown",children:"Weet ik niet"})]})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Informeren jullie gebruikers dat AI wordt ingezet?"}),e.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:[e.jsx("option",{value:"",children:"Selecteer"}),e.jsx("option",{value:"yes",children:"Ja"}),e.jsx("option",{value:"sometimes",children:"Soms"}),e.jsx("option",{value:"no",children:"Nee"})]})]})]})]}),e.jsxs("div",{children:[e.jsx("h3",{className:"text-lg font-bold text-gray-900 mb-4",children:"Ontvang je analyse"}),e.jsxs("div",{className:"grid sm:grid-cols-2 gap-4",children:[e.jsxs("div",{children:[e.jsxs("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:["Naam ",e.jsx("span",{className:"text-red-600 font-bold text-lg",children:"*"})]}),e.jsx("p",{className:"text-xs text-gray-500 mb-2",children:"(Verplicht veld)"}),e.jsx(me,{type:"text",placeholder:"Je naam",value:N.name,onChange:H=>A({...N,name:H.target.value}),className:N.name?"":"border-red-300 bg-red-50",required:!0})]}),e.jsxs("div",{children:[e.jsxs("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:["Email ",e.jsx("span",{className:"text-red-600 font-bold text-lg",children:"*"})]}),e.jsx("p",{className:"text-xs text-gray-500 mb-2",children:"(Verplicht veld)"}),e.jsx(me,{type:"email",placeholder:"je@email.nl",value:N.email,onChange:H=>A({...N,email:H.target.value}),className:N.email?"":"border-red-300 bg-red-50",required:!0})]})]})]}),e.jsxs("div",{className:"flex gap-4 pt-6 border-t border-gray-200",children:[e.jsx(ae,{variant:"outline",onClick:()=>n("input"),className:"flex-1",children:"Vorige"}),e.jsx(ae,{onClick:q,disabled:o||!N.email||!N.name,className:"flex-1 bg-blue-600 hover:bg-blue-700",children:o?"Indienen...":"Analyseer"})]})]})]})}):F?e.jsx("div",{className:"pt-20 min-h-screen bg-gradient-to-b from-blue-50 to-white",children:e.jsx("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 py-32 text-center",children:e.jsxs(Z.div,{initial:{opacity:0,scale:.9},animate:{opacity:1,scale:1},children:[e.jsx("div",{className:"w-20 h-20 bg-blue-100 rounded-full flex items-center justify-center mx-auto mb-6",children:e.jsxs("svg",{className:"animate-spin w-10 h-10 text-blue-600",viewBox:"0 0 24 24",children:[e.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4",fill:"none"}),e.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4z"})]})}),e.jsx("h1",{className:"text-3xl font-bold text-gray-900 mb-4",children:"Rapport aan het laden..."})]})})}):t==="submitted"?e.jsx("div",{className:"pt-20 min-h-screen bg-gradient-to-b from-green-50 to-white",children:e.jsx("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 py-32 text-center",children:e.jsxs(Z.div,{initial:{opacity:0,scale:.9},animate:{opacity:1,scale:1},children:[e.jsx("div",{className:"w-20 h-20 bg-green-100 rounded-full flex items-center justify-center mx-auto mb-6",children:e.jsx(gt,{className:"w-10 h-10 text-green-600"})}),e.jsx("h1",{className:"text-3xl font-bold text-gray-900 mb-4",children:"Aanvraag ontvangen!"}),e.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 ",e.jsx("strong",{children:N.email})]}),e.jsxs("div",{className:"bg-white rounded-2xl p-6 max-w-md mx-auto border border-gray-100 mb-8",children:[e.jsx("p",{className:"text-sm text-gray-600 mb-4",children:"De analyse wordt momenteel uitgevoerd. Dit kan enkele minuten duren omdat we:"}),e.jsxs("ul",{className:"text-left space-y-2 text-sm text-gray-700",children:[e.jsxs("li",{className:"flex items-start gap-2",children:[e.jsx(gt,{className:"w-4 h-4 text-green-500 mt-0.5 flex-shrink-0"}),e.jsx("span",{children:"Je bedrijfscontext analyseren"})]}),e.jsxs("li",{className:"flex items-start gap-2",children:[e.jsx(gt,{className:"w-4 h-4 text-green-500 mt-0.5 flex-shrink-0"}),e.jsx("span",{children:"AI-toepassingen classificeren"})]}),e.jsxs("li",{className:"flex items-start gap-2",children:[e.jsx(gt,{className:"w-4 h-4 text-green-500 mt-0.5 flex-shrink-0"}),e.jsx("span",{children:"Compliance vereisten bepalen"})]})]})]}),e.jsx(ae,{onClick:()=>window.location.href=se("Home"),className:"bg-gray-900 text-white hover:bg-gray-800",children:"Terug naar home"})]})})}):p?e.jsx("div",{className:"pt-20 min-h-screen bg-gradient-to-b from-red-50 to-white",children:e.jsx("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 py-32 text-center",children:e.jsxs(Z.div,{initial:{opacity:0,scale:.9},animate:{opacity:1,scale:1},children:[e.jsx("div",{className:"w-20 h-20 bg-red-100 rounded-full flex items-center justify-center mx-auto mb-6",children:e.jsx(fi,{className:"w-10 h-10 text-red-600"})}),e.jsx("h1",{className:"text-3xl font-bold text-gray-900 mb-4",children:"Er ging iets mis"}),e.jsx("p",{className:"text-xl text-gray-600 mb-8",children:p}),e.jsx(ae,{onClick:()=>{g(null),i({url:"",description:""})},className:"bg-gray-900 text-white hover:bg-gray-800",children:"Probeer opnieuw"})]})})}):d?e.jsx("div",{className:"pt-20 min-h-screen bg-gradient-to-b from-gray-50 to-white",children:e.jsxs("div",{className:"max-w-5xl mx-auto px-3 sm:px-6 lg:px-8 py-6 sm:py-12",children:[e.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"text-center mb-12",children:[e.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:[e.jsx(Vn,{className:"w-4 h-4"}),"EU AI Act Compliance Check"]}),e.jsx("h1",{className:"text-4xl font-bold text-gray-900 mb-4",children:d.company_name}),e.jsx("p",{className:"text-xl text-gray-600",children:"Compliance analyse voor de EU AI Act"})]}),d.company_overview&&e.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:[e.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[e.jsx(Ya,{className:"w-6 h-6 text-blue-600"}),e.jsx("h2",{className:"text-2xl font-bold text-gray-900",children:"Bedrijfsoverzicht"})]}),e.jsx("p",{className:"text-gray-700",children:d.company_overview})]}),d.identified_ai_applications&&d.identified_ai_applications.length>0&&e.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.2},className:"bg-white rounded-2xl p-4 sm:p-8 mb-8 border border-gray-100",children:[e.jsx("h2",{className:"text-xl sm:text-2xl font-bold text-gray-900 mb-6",children:"Geïdentificeerde AI Toepassingen"}),e.jsx("div",{className:"space-y-4",children:d.identified_ai_applications.map((H,K)=>{var Y,P,T;return e.jsx("div",{className:`p-4 sm:p-6 rounded-xl border-2 ${Q(H.risk_level)}`,children:e.jsxs("div",{className:"flex items-start gap-3 sm:gap-4",children:[e.jsx("div",{className:"flex-shrink-0",children:U(H.risk_level)}),e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-start sm:justify-between gap-2 mb-2",children:[e.jsx("h3",{className:"text-base sm:text-lg font-bold text-gray-900 break-words",children:H.application_name}),e.jsx("span",{className:`px-3 py-1 rounded-full text-xs sm:text-sm font-semibold whitespace-nowrap self-start ${((Y=H.risk_level)==null?void 0:Y.toLowerCase())==="onaanvaardbaar"?"bg-red-100 text-red-800":((P=H.risk_level)==null?void 0:P.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})]}),e.jsx("p",{className:"text-sm sm:text-base text-gray-700 mb-3 break-words",children:H.description}),H.applicable_articles&&e.jsxs("div",{className:"bg-blue-50 p-3 rounded-lg mb-3",children:[e.jsx("p",{className:"text-sm font-medium text-blue-900 mb-1",children:"📜 Van toepassing:"}),e.jsx("p",{className:"text-sm text-blue-800 break-words",children:H.applicable_articles})]}),e.jsxs("div",{className:"bg-white/50 p-3 rounded-lg mb-3",children:[e.jsx("p",{className:"text-sm font-medium text-gray-700 mb-1",children:"⚖️ Risicorechtvaardiging:"}),e.jsx("p",{className:"text-sm text-gray-600 break-words",children:H.risk_justification})]}),H.detailed_explanation&&e.jsxs("div",{className:"bg-gray-50 p-3 rounded-lg",children:[e.jsx("p",{className:"text-sm font-medium text-gray-700 mb-1",children:"💡 Gedetailleerde uitleg:"}),e.jsx("p",{className:"text-sm text-gray-600 break-words",children:H.detailed_explanation})]})]})]})},K)})})]}),e.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.3},className:"bg-orange-50 rounded-2xl p-4 sm:p-8 mb-8 border-2 border-orange-200",children:[e.jsxs("div",{className:"flex items-center gap-3 mb-6",children:[e.jsx(Ho,{className:"w-6 h-6 text-orange-600 flex-shrink-0"}),e.jsx("h2",{className:"text-xl sm: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?e.jsxs("div",{className:"text-center py-8",children:[e.jsx(gt,{className:"w-12 h-12 text-green-600 mx-auto mb-3"}),e.jsx("p",{className:"text-lg font-semibold text-gray-900 mb-2",children:"Niet van toepassing"}),e.jsx("p",{className:"text-gray-600",children:"Er zijn geen hoog-risico AI-systemen geïdentificeerd die specifieke compliance-maatregelen vereisen."})]}):e.jsxs(e.Fragment,{children:[d.high_risk_compliance.applicable_articles&&e.jsxs("div",{className:"mb-6",children:[e.jsx("h3",{className:"font-semibold text-gray-900 mb-2",children:"Van toepassing zijnde artikelen:"}),e.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&&e.jsxs("div",{className:"mb-6",children:[e.jsx("h3",{className:"font-semibold text-gray-900 mb-3",children:"Vereiste maatregelen:"}),e.jsx("ul",{className:"space-y-2",children:d.high_risk_compliance.required_measures.map((H,K)=>e.jsxs("li",{className:"flex items-start gap-2 text-gray-700",children:[e.jsx(gt,{className:"w-5 h-5 text-orange-600 mt-0.5 flex-shrink-0"}),e.jsx("span",{children:H})]},K))})]}),d.high_risk_compliance.documentation_requirements&&e.jsxs("div",{className:"mb-6",children:[e.jsx("h3",{className:"font-semibold text-gray-900 mb-2",children:"Documentatie vereisten:"}),e.jsx("p",{className:"text-gray-700",children:d.high_risk_compliance.documentation_requirements})]}),d.high_risk_compliance.conformity_assessment&&e.jsxs("div",{children:[e.jsx("h3",{className:"font-semibold text-gray-900 mb-2",children:"Conformiteitsbeoordeling:"}),e.jsx("p",{className:"text-gray-700",children:d.high_risk_compliance.conformity_assessment})]})]})]}),d.gdpr_privacy&&e.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.4},className:"bg-blue-50 rounded-2xl p-4 sm:p-8 mb-8 border-2 border-blue-200",children:[e.jsxs("div",{className:"flex items-center gap-3 mb-6",children:[e.jsx(T1,{className:"w-6 h-6 text-blue-600 flex-shrink-0"}),e.jsx("h2",{className:"text-xl sm:text-2xl font-bold text-gray-900",children:"GDPR & Privacy Implicaties"})]}),d.gdpr_privacy.data_handling&&e.jsxs("div",{className:"mb-6",children:[e.jsx("h3",{className:"font-semibold text-gray-900 mb-2",children:"Gegevensverwerking:"}),e.jsx("p",{className:"text-sm sm:text-base text-gray-700 break-words",children:d.gdpr_privacy.data_handling})]}),d.gdpr_privacy.consent_requirements&&e.jsxs("div",{className:"mb-6",children:[e.jsx("h3",{className:"font-semibold text-gray-900 mb-2",children:"Toestemmingsvereisten:"}),e.jsx("p",{className:"text-sm sm:text-base text-gray-700 break-words",children:d.gdpr_privacy.consent_requirements})]}),d.gdpr_privacy.data_breach_risks&&d.gdpr_privacy.data_breach_risks.length>0&&e.jsxs("div",{className:"mb-6",children:[e.jsx("h3",{className:"font-semibold text-gray-900 mb-3",children:"Risico's voor datalekken:"}),e.jsx("ul",{className:"space-y-2",children:d.gdpr_privacy.data_breach_risks.map((H,K)=>e.jsxs("li",{className:"flex items-start gap-2 text-gray-700",children:[e.jsx(fi,{className:"w-5 h-5 text-red-600 mt-0.5 flex-shrink-0"}),e.jsx("span",{children:H})]},K))})]}),d.gdpr_privacy.cybersecurity_risks&&d.gdpr_privacy.cybersecurity_risks.length>0&&e.jsxs("div",{className:"mb-6",children:[e.jsx("h3",{className:"font-semibold text-gray-900 mb-3",children:"Cybersecurity risico's:"}),e.jsx("ul",{className:"space-y-2",children:d.gdpr_privacy.cybersecurity_risks.map((H,K)=>e.jsxs("li",{className:"flex items-start gap-2 text-gray-700",children:[e.jsx(Vn,{className:"w-5 h-5 text-red-600 mt-0.5 flex-shrink-0"}),e.jsx("span",{children:H})]},K))})]}),d.gdpr_privacy.recommendations&&d.gdpr_privacy.recommendations.length>0&&e.jsxs("div",{children:[e.jsx("h3",{className:"font-semibold text-gray-900 mb-3",children:"Aanbevelingen:"}),e.jsx("ul",{className:"space-y-2",children:d.gdpr_privacy.recommendations.map((H,K)=>e.jsxs("li",{className:"flex items-start gap-2 text-gray-700",children:[e.jsx(gt,{className:"w-5 h-5 text-green-600 mt-0.5 flex-shrink-0"}),e.jsx("span",{children:H})]},K))})]})]}),d.training_recommendations&&d.training_recommendations.length>0&&e.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.5},className:"bg-white rounded-2xl p-4 sm:p-8 mb-8 border border-gray-100",children:[e.jsxs("div",{className:"flex items-center gap-3 mb-6",children:[e.jsx($t,{className:"w-6 h-6 text-purple-600 flex-shrink-0"}),e.jsx("h2",{className:"text-xl sm:text-2xl font-bold text-gray-900",children:"Aanbevolen Trainingen"})]}),e.jsx("div",{className:"space-y-4",children:d.training_recommendations.map((H,K)=>e.jsxs("div",{className:"p-4 sm:p-5 bg-purple-50 rounded-xl border border-purple-100",children:[e.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-start sm:justify-between gap-3 mb-3",children:[e.jsxs("div",{className:"flex items-start gap-3 flex-1 min-w-0",children:[e.jsx("div",{className:"w-8 h-8 bg-purple-600 rounded-lg flex items-center justify-center flex-shrink-0",children:e.jsx("span",{className:"text-white font-bold text-sm",children:K+1})}),e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsx("h3",{className:"font-bold text-gray-900 text-base sm:text-lg mb-1 break-words",children:H.training_name}),H.target_audience&&e.jsxs("p",{className:"text-sm text-purple-700 font-medium mb-2 break-words",children:["👥 Doelgroep: ",H.target_audience]})]})]}),e.jsx(de,{to:se("Contact")+`?training=${encodeURIComponent(H.training_name)}`,className:"flex-shrink-0 w-full sm:w-auto px-4 py-2 bg-purple-600 text-white text-sm font-semibold rounded-lg hover:bg-purple-700 transition-colors text-center",children:"Aanvragen"})]}),e.jsxs("div",{className:"space-y-3 sm:ml-11",children:[e.jsxs("div",{children:[e.jsx("p",{className:"text-sm font-medium text-gray-700 mb-1",children:"📚 Waarom relevant:"}),e.jsx("p",{className:"text-sm text-gray-600 break-words",children:H.reason})]}),H.expected_outcomes&&e.jsxs("div",{className:"bg-white p-3 rounded-lg",children:[e.jsx("p",{className:"text-sm font-medium text-gray-700 mb-1",children:"🎯 Resultaat na training:"}),e.jsx("p",{className:"text-sm text-gray-600 break-words",children:H.expected_outcomes})]})]})]},K))})]}),e.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:[e.jsx("p",{className:"text-gray-600 mb-4",children:"Deze analyse is gebaseerd op de EU AI Act verordening"}),e.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",e.jsx($e,{className:"w-5 h-5"})]})]}),e.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.75},className:"bg-white rounded-2xl p-4 sm:p-8 mb-8 border border-gray-100",children:[e.jsx("h2",{className:"text-xl sm:text-2xl font-bold text-gray-900 mb-6",children:"Hoe 48-7 je kan helpen"}),e.jsxs("div",{className:"grid md:grid-cols-2 gap-4 sm:gap-6",children:[e.jsxs("div",{className:"p-4 sm:p-6 bg-blue-50 rounded-xl",children:[e.jsx("h3",{className:"font-bold text-gray-900 mb-2 text-sm sm:text-base",children:"🎯 Compliance Audit & Roadmap"}),e.jsx("p",{className:"text-gray-700 text-xs sm:text-sm break-words",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."})]}),e.jsxs("div",{className:"p-4 sm:p-6 bg-purple-50 rounded-xl",children:[e.jsx("h3",{className:"font-bold text-gray-900 mb-2 text-sm sm:text-base",children:"📋 Documentatie & Implementatie"}),e.jsx("p",{className:"text-gray-700 text-xs sm:text-sm break-words",children:"We helpen je met het opstellen van alle benodigde documentatie, risicobeoordelingen en conformiteitsbeoordelingen."})]}),e.jsxs("div",{className:"p-4 sm:p-6 bg-green-50 rounded-xl",children:[e.jsx("h3",{className:"font-bold text-gray-900 mb-2 text-sm sm:text-base",children:"🛡️ AI Governance & Toezicht"}),e.jsx("p",{className:"text-gray-700 text-xs sm:text-sm break-words",children:"Implementatie van AI governance frameworks, inclusief menselijk toezicht en risicobeheersystemen."})]}),e.jsxs("div",{className:"p-4 sm:p-6 bg-amber-50 rounded-xl",children:[e.jsx("h3",{className:"font-bold text-gray-900 mb-2 text-sm sm:text-base",children:"🔄 Doorlopende Compliance"}),e.jsx("p",{className:"text-gray-700 text-xs sm:text-sm break-words",children:"Periodieke evaluaties, updates van documentatie en begeleiding bij nieuwe AI-implementaties."})]})]})]}),e.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:[e.jsx("h2",{className:"text-2xl font-bold mb-4",children:"Plan een vrijblijvend gesprek"}),e.jsx("p",{className:"text-blue-100 mb-6 text-lg",children:"Bespreek je specifieke situatie met onze AI compliance experts"}),e.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 justify-center",children:[e.jsxs(de,{to:se("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",e.jsx($e,{className:"w-5 h-5"})]}),e.jsx(de,{to:se("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?e.jsx("div",{className:"pt-20 min-h-screen bg-gradient-to-b from-blue-50 to-white",children:e.jsxs("div",{className:"max-w-2xl mx-auto px-4 sm:px-6 lg:px-8 py-20",children:[e.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"text-center mb-8",children:[e.jsx(wh,{className:"w-16 h-16 text-blue-600 mx-auto mb-4"}),e.jsx("h1",{className:"text-3xl font-bold text-gray-900 mb-4",children:"Meer informatie nodig"}),e.jsx("p",{className:"text-gray-600",children:"Beantwoord de volgende vragen voor een betere analyse"})]}),e.jsxs("div",{className:"bg-white rounded-2xl p-8 border border-gray-100",children:[e.jsx("div",{className:"space-y-6",children:v.map((H,K)=>e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:H}),e.jsx(pt,{placeholder:"Jouw antwoord...",className:"min-h-24"})]},K))}),e.jsxs("div",{className:"flex gap-4 mt-6",children:[e.jsx(ae,{variant:"outline",onClick:()=>{j(!1),x([])},className:"flex-1",children:"Annuleren"}),e.jsx(ae,{onClick:q,className:"flex-1 bg-blue-600 hover:bg-blue-700",children:"Analyseer"})]})]})]})}):e.jsx("div",{className:"pt-20 min-h-screen bg-gradient-to-b from-blue-50 to-white",children:e.jsxs("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 py-20",children:[e.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"text-center mb-12",children:[e.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?"}),e.jsx("p",{className:"text-2xl text-[#9CA3AF] max-w-2xl mx-auto",children:"Ontdek welke verplichtingen van toepassing zijn op jouw bedrijf"})]}),e.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:e.jsxs("form",{onSubmit:z,className:"space-y-6",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Website URL (optioneel)"}),e.jsx(me,{type:"text",placeholder:"jouwbedrijf.nl",value:r.url,onChange:H=>i({...r,url:H.target.value}),className:"text-lg py-6"})]}),e.jsx("div",{className:"text-center text-gray-500 font-medium",children:"OF"}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Beschrijf wat je bedrijf doet"}),e.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"})]}),e.jsx(ae,{type:"submit",disabled:!r.url&&!r.description,className:"w-full py-6 bg-[#FAB868] hover:bg-[#E5A04D] text-[#0D0D0F] font-bold text-lg",children:e.jsxs("span",{className:"flex items-center gap-2 justify-center",children:[e.jsx(Vn,{className:"w-5 h-5"}),"Start EU AI Act Check",e.jsx($e,{className:"w-5 h-5"})]})}),e.jsx("p",{className:"text-xs text-gray-500 text-center",children:"✓ 100% gratis • ✓ Gebaseerd op officiële EU AI Act • ✓ Praktische aanbevelingen"})]})}),e.jsxs("div",{className:"grid md:grid-cols-3 gap-6 mt-12",children:[e.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:[e.jsx(Ho,{className:"w-8 h-8 text-orange-600 mb-3"}),e.jsx("h3",{className:"font-bold text-gray-900 mb-2",children:"Risiconiveaus"}),e.jsx("p",{className:"text-sm text-gray-600",children:"Classificatie volgens EU AI Act: onaanvaardbaar, hoog, beperkt, minimaal risico"})]}),e.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:[e.jsx($t,{className:"w-8 h-8 text-blue-600 mb-3"}),e.jsx("h3",{className:"font-bold text-gray-900 mb-2",children:"Compliance"}),e.jsx("p",{className:"text-sm text-gray-600",children:"Specifieke vereisten voor documentatie, conformiteit en menselijk toezicht"})]}),e.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:[e.jsx(T1,{className:"w-8 h-8 text-purple-600 mb-3"}),e.jsx("h3",{className:"font-bold text-gray-900 mb-2",children:"GDPR Integratie"}),e.jsx("p",{className:"text-sm text-gray-600",children:"Combinatie van AI Act en GDPR vereisten voor gegevensbescherming"})]})]})]})})}function Cee(){return e.jsx("div",{className:"pt-20 min-h-screen bg-white",children:e.jsx("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 py-12",children:e.jsxs("div",{className:"bg-[#F4F4F4] rounded-3xl p-12",children:[e.jsxs("div",{className:"flex items-center gap-3 mb-8",children:[e.jsx(Vn,{className:"w-12 h-12 text-[#FAB868]"}),e.jsx("h1",{className:"text-5xl font-bold text-[#0D0D0F]",children:"EU AI Act Checker"})]}),e.jsxs("div",{className:"prose max-w-none",children:[e.jsx("h2",{children:"Overzicht"}),e.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."}),e.jsx("h2",{children:"Architectuur"}),e.jsx("h3",{children:"Frontend: pages/EuAiActChecker.jsx"}),e.jsxs("ul",{children:[e.jsxs("li",{children:[e.jsx("strong",{children:"Framework:"})," React met multi-step flow"]}),e.jsxs("li",{children:[e.jsx("strong",{children:"Steps:"}),e.jsxs("ol",{children:[e.jsx("li",{children:"Initial input (URL of beschrijving)"}),e.jsx("li",{children:"Uitgebreide vragenlijst (questionnaire)"}),e.jsx("li",{children:"Analyzing (30-45 seconden)"}),e.jsx("li",{children:"Results met compliance analyse"})]})]})]}),e.jsx("h3",{children:"Backend: functions/analyzeEuAiAct.js"}),e.jsxs("ul",{children:[e.jsxs("li",{children:[e.jsx("strong",{children:"Runtime:"})," Deno Deploy"]}),e.jsxs("li",{children:[e.jsx("strong",{children:"LLM:"})," OpenAI (via Base44 Core.InvokeLLM)"]}),e.jsxs("li",{children:[e.jsx("strong",{children:"Features:"}),e.jsxs("ul",{children:[e.jsx("li",{children:"Website scraping"}),e.jsx("li",{children:"Vragenlijst-gedreven analyse"}),e.jsx("li",{children:"EU AI Act compliance mapping"}),e.jsx("li",{children:"GDPR + Cybersecurity integratie"})]})]})]}),e.jsx("h2",{children:"Functionaliteiten"}),e.jsx("h3",{children:"1. Vragenlijst Categorieën"}),e.jsx("h4",{children:"Bedrijfscontext"}),e.jsxs("ul",{children:[e.jsx("li",{children:"Sector: retail, financial, HR, healthcare, industrie, marketing, IT, overheid, anders"}),e.jsx("li",{children:"Doelgroep: consumenten, bedrijven, beide"})]}),e.jsx("h4",{children:"AI Gebruik"}),e.jsxs("ul",{children:[e.jsx("li",{children:"Is AI actief in gebruik?"}),e.jsx("li",{children:"Toepassingsgebieden: klantenservice, marketing, analyse, besluitvorming, product, HR, anders"})]}),e.jsx("h4",{children:"Impact op Mensen"}),e.jsxs("ul",{children:[e.jsx("li",{children:"Neemt AI beslissingen met directe gevolgen?"}),e.jsx("li",{children:"Is er menselijk toezicht?"})]}),e.jsx("h4",{children:"Gevoelige Toepassingen"}),e.jsxs("ul",{children:[e.jsx("li",{children:"Werving & selectie"}),e.jsx("li",{children:"Beoordeling medewerkers"}),e.jsx("li",{children:"Krediet / financiële beoordeling"}),e.jsx("li",{children:"Fraude-detectie"}),e.jsx("li",{children:"Toegang tot diensten"}),e.jsx("li",{children:"Biometrie (gezicht, stem, gedrag)"})]}),e.jsx("h4",{children:"Data & Privacy"}),e.jsxs("ul",{children:[e.jsx("li",{children:"Verwerkt AI persoonsgegevens?"}),e.jsx("li",{children:"Gevoelige persoonsgegevens (gezondheid, etniciteit, biometrie)?"})]}),e.jsx("h4",{children:"Governance"}),e.jsxs("ul",{children:[e.jsx("li",{children:"Formele verantwoordelijkheid voor AI?"}),e.jsx("li",{children:"Periodieke risico-evaluatie?"}),e.jsx("li",{children:"Gebruiker notificatie over AI-inzet?"})]}),e.jsx("h3",{children:"2. Analyse Output"}),e.jsx("h4",{children:"Bedrijfsoverzicht"}),e.jsx("p",{children:"Automatisch gegenereerde beschrijving van sector en activiteiten"}),e.jsx("h4",{children:"Geïdentificeerde AI Toepassingen"}),e.jsx("p",{children:"Per applicatie:"}),e.jsxs("ul",{children:[e.jsxs("li",{children:[e.jsx("strong",{children:"Naam:"})," Specifieke toepassing"]}),e.jsxs("li",{children:[e.jsx("strong",{children:"Risk Level:"})," Onaanvaardbaar / Hoog / Beperkt / Minimaal"]}),e.jsxs("li",{children:[e.jsx("strong",{children:"Beschrijving:"})," Wat het doet"]}),e.jsxs("li",{children:[e.jsx("strong",{children:"Risico Rechtvaardiging:"})," Waarom dit risiconiveau"]})]}),e.jsx("h4",{children:"Hoog-Risico Compliance"}),e.jsxs("ul",{children:[e.jsx("li",{children:"Van toepassing zijnde EU AI Act artikelen"}),e.jsx("li",{children:"Vereiste maatregelen"}),e.jsx("li",{children:"Documentatie-eisen"}),e.jsx("li",{children:"Conformiteitsbeoordelingen"}),e.jsxs("li",{children:[e.jsx("em",{children:'"Niet van toepassing"'})," als geen hoog-risico systemen"]})]}),e.jsx("h4",{children:"GDPR & Cybersecurity"}),e.jsxs("ul",{children:[e.jsxs("li",{children:[e.jsx("strong",{children:"Data Handling:"})," Hoe gegevens worden verwerkt"]}),e.jsxs("li",{children:[e.jsx("strong",{children:"Consent Requirements:"})," Toestemmingsvereisten"]}),e.jsxs("li",{children:[e.jsx("strong",{children:"Data Breach Risks:"})," Specifieke datalekrisico's"]}),e.jsxs("li",{children:[e.jsx("strong",{className:"text-red-600",children:"Cybersecurity Risks:"})," Klant- en bedrijfsgegevens vatbaar voor hacks"]}),e.jsxs("li",{children:[e.jsx("strong",{children:"Recommendations:"})," Praktische GDPR + security aanbevelingen"]})]}),e.jsx("h2",{children:"LLM Prompt Structuur"}),e.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`}),e.jsx("h3",{children:"JSON Schema Output"}),e.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"]
  }
}`}),e.jsx("h2",{children:"Risk Level Kleuren & Icons"}),e.jsxs("div",{className:"space-y-3",children:[e.jsxs("div",{className:"flex items-center gap-3 p-3 rounded-lg border-2 bg-red-50 border-red-200",children:[e.jsx(Ho,{className:"w-6 h-6 text-red-600"}),e.jsx("span",{className:"px-3 py-1 bg-red-100 text-red-800 border border-red-200 rounded text-sm font-semibold",children:"Onaanvaardbaar"}),e.jsx("span",{className:"text-sm text-gray-600",children:"VERBODEN systemen"})]}),e.jsxs("div",{className:"flex items-center gap-3 p-3 rounded-lg border-2 bg-orange-50 border-orange-200",children:[e.jsx(Ho,{className:"w-6 h-6 text-orange-600"}),e.jsx("span",{className:"px-3 py-1 bg-orange-100 text-orange-800 border border-orange-200 rounded text-sm font-semibold",children:"Hoog"}),e.jsx("span",{className:"text-sm text-gray-600",children:"Strikte compliance eisen"})]}),e.jsxs("div",{className:"flex items-center gap-3 p-3 rounded-lg border-2 bg-yellow-50 border-yellow-200",children:[e.jsx(wh,{className:"w-6 h-6 text-yellow-600"}),e.jsx("span",{className:"px-3 py-1 bg-yellow-100 text-yellow-800 border border-yellow-200 rounded text-sm font-semibold",children:"Beperkt"}),e.jsx("span",{className:"text-sm text-gray-600",children:"Transparantie vereist"})]}),e.jsxs("div",{className:"flex items-center gap-3 p-3 rounded-lg border-2 bg-green-50 border-green-200",children:[e.jsx(Vn,{className:"w-6 h-6 text-green-600"}),e.jsx("span",{className:"px-3 py-1 bg-green-100 text-green-800 border border-green-200 rounded text-sm font-semibold",children:"Minimaal"}),e.jsx("span",{className:"text-sm text-gray-600",children:"Geen restricties"})]})]}),e.jsx("h2",{children:"Questionnaire Risk Indicators"}),e.jsx("p",{children:"Automatisch gedetecteerd:"}),e.jsxs("ul",{children:[e.jsxs("li",{children:["AI neemt beslissingen: ",e.jsx("code",{children:"ai_decisions === 'yes'"})]}),e.jsxs("li",{children:["Geen menselijk toezicht: ",e.jsx("code",{children:"human_oversight === 'no'"})]}),e.jsx("li",{children:"Hoog-risico processen: werving, beoordeling, krediet, fraude, biometrie"}),e.jsxs("li",{children:["Gevoelige persoonsgegevens: ",e.jsx("code",{children:"sensitive_personal_data === 'yes'"})]}),e.jsxs("li",{children:["Geen AI verantwoordelijke: ",e.jsx("code",{children:"ai_responsible === 'no'"})]}),e.jsxs("li",{children:["Geen risico-evaluatie: ",e.jsx("code",{children:"risk_evaluation === 'no'"})]})]}),e.jsx("h2",{children:"Extra Features"}),e.jsxs("ul",{children:[e.jsxs("li",{children:[e.jsx("strong",{children:"Email Functie:"})," Verstuur volledige analyse naar gebruiker"]}),e.jsxs("li",{children:[e.jsx("strong",{children:"EU AI Act Link:"})," Directe link naar officiële verordening (EUR-Lex)"]}),e.jsxs("li",{children:[e.jsx("strong",{children:'"Doe uitgebreide EU AI Act check" Button:'})," Prominent, opent in nieuw tabblad"]}),e.jsxs("li",{children:[e.jsx("strong",{children:'"Hoe 48-7 kan helpen":'})," 4 diensten showcase (Audit, Documentatie, Governance, Doorlopende Compliance)"]})]}),e.jsx("h2",{children:"LLM Gebruik"}),e.jsxs("ul",{children:[e.jsxs("li",{children:[e.jsx("strong",{children:"Provider:"})," OpenAI (via Base44 Core.InvokeLLM)"]}),e.jsxs("li",{children:[e.jsx("strong",{children:"Context:"})," Website content + company description + questionnaire"]}),e.jsxs("li",{children:[e.jsx("strong",{children:"Special Features:"})," Vragenlijst wordt geformatteerd als readable text, Risk signals worden extracted"]}),e.jsxs("li",{children:[e.jsx("strong",{children:"Output:"})," Gestructureerde JSON"]}),e.jsxs("li",{children:[e.jsx("strong",{children:"Taal:"})," Nederlands (geforceerd)"]}),e.jsxs("li",{children:[e.jsx("strong",{children:"Verwerkingstijd:"})," 30-45 seconden"]})]}),e.jsx("h2",{children:'"Niet van toepassing" Logic'}),e.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
}`}),e.jsx("h2",{children:"Files"}),e.jsxs("ul",{className:"font-mono text-sm",children:[e.jsx("li",{children:"pages/EuAiActChecker.jsx - Frontend component (multi-step)"}),e.jsx("li",{children:"functions/analyzeEuAiAct.js - Backend analysis function"})]}),e.jsx("h2",{children:"Integraties"}),e.jsxs("ul",{children:[e.jsxs("li",{children:[e.jsx("strong",{children:"Impact Report Link:"})," Cross-promote in CTA section"]}),e.jsxs("li",{children:[e.jsx("strong",{children:"Contact Links:"})," Pre-filled met training naam"]}),e.jsxs("li",{children:[e.jsx("strong",{children:"EU AI Act Verordening:"})," Externe link naar EUR-Lex (nieuwe tab)"]})]})]})]})})})}function Eee(){return e.jsxs("section",{className:"relative h-[600px] overflow-hidden",children:[e.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"}),e.jsx("div",{className:"absolute inset-0 bg-gradient-to-r from-[#0D0D0F]/90 via-[#0D0D0F]/70 to-transparent"}),e.jsx("div",{className:"relative h-full max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 flex items-center",children:e.jsxs(Z.div,{initial:{opacity:0,y:30},animate:{opacity:1,y:0},transition:{duration:.8},className:"max-w-3xl text-white",children:[e.jsxs("h1",{className:"text-5xl sm:text-6xl lg:text-7xl font-bold leading-tight mb-6",children:["Van 24-7 naar"," ",e.jsx("span",{className:"text-[#FAB868]",children:"48-7"})]}),e.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."}),e.jsx("div",{className:"flex flex-col sm:flex-row gap-4",children:e.jsx(de,{to:se("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 Tee(){const t=[{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=[]}=Fe({queryKey:["reviews"],queryFn:()=>ce.entities.Review.filter({active:!0},"sort_order"),initialData:[]});return e.jsx("section",{className:"py-20 bg-white",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[e.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-center mb-16",children:[e.jsx("p",{className:"text-sm font-medium text-gray-500 uppercase tracking-wider mb-8",children:"Vertrouwd door ambitieuze MKB-bedrijven"}),e.jsx("div",{className:"flex flex-wrap items-center justify-center gap-8 lg:gap-16",children:t.map((r,i)=>e.jsx(Z.div,{initial:{opacity:0,scale:.8},whileInView:{opacity:1,scale:1},viewport:{once:!0},transition:{delay:i*.1},className:"group",children:e.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))})]}),e.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:e.jsxs("div",{className:"grid grid-cols-2 lg:grid-cols-4 gap-8 text-center",children:[e.jsxs("div",{children:[e.jsx("p",{className:"text-4xl md:text-5xl font-bold text-white mb-2",children:"5+"}),e.jsx("p",{className:"text-gray-400",children:"Jaar ervaring"})]}),e.jsxs("div",{children:[e.jsx("p",{className:"text-4xl md:text-5xl font-bold text-white mb-2",children:"50+"}),e.jsx("p",{className:"text-gray-400",children:"Projecten afgerond"})]}),e.jsxs("div",{children:[e.jsx("p",{className:"text-4xl md:text-5xl font-bold text-white mb-2",children:"€5-20M"}),e.jsx("p",{className:"text-gray-400",children:"MKB omzet focus"})]}),e.jsxs("div",{children:[e.jsx("p",{className:"text-4xl md:text-5xl font-bold text-white mb-2",children:"100%"}),e.jsx("p",{className:"text-gray-400",children:"Full-service"})]})]})}),e.jsx("div",{className:"grid md:grid-cols-3 gap-8",children:n.map((r,i)=>e.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:[e.jsx("div",{className:"flex items-center gap-1 mb-4",children:[...Array(r.rating)].map((s,a)=>e.jsx(eu,{className:"w-5 h-5 fill-yellow-400 text-yellow-400"},a))}),e.jsxs("p",{className:"text-gray-700 mb-6 leading-relaxed",children:['"',r.text,'"']}),e.jsxs("div",{className:"flex items-center gap-3",children:[e.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("")}),e.jsxs("div",{children:[e.jsx("p",{className:"font-semibold text-gray-900",children:r.author}),e.jsx("p",{className:"text-sm text-gray-500",children:r.role})]})]})]},i))})]})})}function Oee(){const{data:t=[]}=Fe({queryKey:["homeServices"],queryFn:()=>ce.entities.HomeService.filter({active:!0},"sort_order"),initialData:[]}),n={Lightbulb:Wi,Code2:S4,Headphones:uf,GraduationCap:pr,Sparkles:At};return e.jsx("section",{className:"py-32 bg-white",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[e.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-center mb-20",children:[e.jsx("h2",{className:"text-5xl sm:text-6xl font-bold text-[#0D0D0F] mb-6",children:"Wat is 48-7?"}),e.jsx("p",{className:"text-slate-600 mx-auto text-2xl max-w-3xl",children:"Full-service AI voor MKB"})]}),e.jsx("div",{className:"grid md:grid-cols-2 gap-12",children:t.map((r,i)=>{const s=n[r.icon]||At;return e.jsx(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:i*.1},children:e.jsxs(de,{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:[e.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:e.jsx(s,{className:"w-8 h-8 text-[#0D0D0F]"})}),e.jsx("h3",{className:"text-3xl font-bold text-[#0D0D0F] mb-4",children:r.title}),e.jsx("p",{className:"text-[#292828] mb-8 text-xl leading-relaxed",children:r.description}),e.jsxs("div",{className:"flex items-center gap-2 text-[#FAB868] font-semibold group-hover:gap-3 transition-all text-lg",children:["Meer info",e.jsx($e,{className:"w-6 h-6"})]})]})},r.id)})})]})})}function Pee(){const{data:t=[]}=Fe({queryKey:["processSteps"],queryFn:()=>ce.entities.ProcessStep.filter({active:!0},"step_number"),initialData:[]}),n={Search:mi,Map:C8,Rocket:K8,Headphones:uf},r=i=>{const s=["blue","indigo","purple","pink"];return s[(i-1)%s.length]};return e.jsx("section",{className:"py-24 bg-white",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[e.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-center mb-16",children:[e.jsx("h2",{className:"text-3xl sm:text-4xl font-bold text-gray-900 mb-4",children:"Hoe we werken"}),e.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"})]}),e.jsxs("div",{className:"relative",children:[e.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"}),e.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-4 gap-8",children:t.map((i,s)=>{const a=n[i.icon]||mi,o=r(i.step_number);return e.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:s*.15},className:"relative",children:[e.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:[e.jsx("div",{className:"absolute -top-4 left-8",children:e.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")})}),e.jsx("div",{className:"w-14 h-14 bg-gray-100 rounded-2xl flex items-center justify-center mb-6 mt-4",children:e.jsx(a,{className:"w-7 h-7 text-gray-700"})}),e.jsx("h3",{className:"text-xl font-bold text-gray-900 mb-3",children:i.title}),e.jsx("p",{className:"text-gray-600 leading-relaxed",children:i.description})]}),s<t.length-1&&e.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:e.jsx($e,{className:"w-4 h-4 text-gray-400"})})]},i.id)})})]})]})})}function Dee(){const{data:t=[]}=Fe({queryKey:["homeBenefits"],queryFn:()=>ce.entities.HomeBenefit.filter({active:!0},"sort_order"),initialData:[]}),n={Briefcase:Xs,Layers:Nu,Building2:Ya,Award:_v};return e.jsx("section",{className:"py-32 bg-[#F4F4F4]",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[e.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-center mb-20",children:[e.jsx("h2",{className:"text-5xl sm:text-6xl font-bold text-[#0D0D0F] mb-6",children:"Waarom 48-7?"}),e.jsx("p",{className:"text-2xl text-[#292828] max-w-2xl mx-auto",children:"Wat ons onderscheidt"})]}),e.jsx("div",{className:"grid md:grid-cols-2 gap-12",children:t.map((r,i)=>{const s=n[r.icon]||_v;return e.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:[e.jsx("div",{className:"w-16 h-16 bg-[#FAB868] rounded-full flex items-center justify-center mb-8",children:e.jsx(s,{className:"w-8 h-8 text-[#0D0D0F]"})}),e.jsx("h3",{className:"text-3xl font-bold text-[#0D0D0F] mb-4",children:r.title}),e.jsx("p",{className:"text-xl text-[#292828] mb-8 leading-relaxed",children:r.description}),r.tags&&r.tags.length>0&&e.jsx("div",{className:"flex flex-wrap gap-4",children:r.tags.map((a,o)=>e.jsxs("div",{className:"flex items-center gap-2 text-base text-[#0D0D0F]",children:[e.jsx(Ft,{className:"w-5 h-5 text-[#FAB868]"}),a]},o))})]},r.id)})})]})})}function Iee(){const{data:t=[]}=Fe({queryKey:["featuredCases"],queryFn:()=>ce.entities.CaseStudy.filter({published:!0,featured_on_homepage:!0},"sort_order"),initialData:[]});return e.jsx("section",{className:"py-24 bg-gray-50",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[e.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:[e.jsxs("div",{children:[e.jsx("h2",{className:"text-3xl sm:text-4xl font-bold text-gray-900 mb-4",children:"Resultaten die spreken"}),e.jsx("p",{className:"text-xl text-gray-600 max-w-2xl",children:"Bekijk hoe wij MKB-bedrijven helpen hun productiviteit te verdubbelen"})]}),e.jsxs(de,{to:se("Cases"),className:"flex items-center gap-2 text-blue-600 font-semibold hover:gap-3 transition-all shrink-0",children:["Bekijk alle cases",e.jsx($e,{className:"w-5 h-5"})]})]}),e.jsx("div",{className:"grid md:grid-cols-3 gap-8",children:t.map((n,r)=>e.jsx(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:r*.15},children:e.jsxs(de,{to:se("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&&e.jsxs("div",{className:"relative h-48 overflow-hidden",children:[e.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"}),e.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-black/60 to-transparent"}),e.jsx("div",{className:"absolute bottom-4 left-4 right-4",children:e.jsx("span",{className:"inline-block px-3 py-1 bg-white/20 backdrop-blur-sm rounded-full text-white text-sm",children:n.industry})})]}),e.jsxs("div",{className:"p-6",children:[e.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&&e.jsx("p",{className:"text-gray-600 text-sm mb-4 line-clamp-2",children:n.homepage_text}),n.homepage_usp&&e.jsxs("div",{className:"flex items-center gap-2 text-green-600 font-semibold",children:[e.jsx(Ki,{className:"w-5 h-5"}),n.homepage_usp]})]})]})},n.id))})]})})}const Ree={Basis:"bg-blue-100 text-blue-700",Gevorderd:"bg-purple-100 text-purple-700",Leiderschap:"bg-emerald-100 text-emerald-700",Technisch:"bg-orange-100 text-orange-700"};function Fee(){const{data:t=[]}=Fe({queryKey:["trainings-homepage"],queryFn:()=>ce.entities.Training.filter({show_on_homepage:!0,active:!0})});return t.length===0?null:e.jsx("section",{className:"py-24 bg-white",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[e.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-center mb-16",children:[e.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:[e.jsx(pr,{className:"w-4 h-4"}),"Start vandaag met AI"]}),e.jsx("h2",{className:"text-3xl sm:text-4xl font-bold text-gray-900 mb-4",children:"Populaire Trainingen"}),e.jsx("p",{className:"text-xl text-gray-600 max-w-2xl mx-auto",children:"Maak je team AI-ready met onze praktijkgerichte trainingen"})]}),e.jsx("div",{className:"grid md:grid-cols-3 gap-8 mb-12",children:t.map((n,r)=>e.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:[e.jsx("div",{className:`inline-block px-3 py-1 rounded-full text-sm font-medium mb-4 ${Ree[n.category]||"bg-gray-100 text-gray-700"}`,children:n.category}),e.jsx("h3",{className:"text-xl font-bold text-gray-900 mb-1 group-hover:text-blue-600 transition-colors",children:n.title}),e.jsx("p",{className:"text-gray-600 mb-6 leading-relaxed",children:n.description}),e.jsxs("div",{className:"flex items-center gap-4 text-sm text-gray-500 mb-4",children:[n.duration&&e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx(vn,{className:"w-4 h-4"}),n.duration]}),n.target_audience&&e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx(_n,{className:"w-4 h-4"}),n.target_audience]})]}),e.jsxs(de,{to:se("TrainingDetail")+`?slug=${n.slug}`,className:"inline-flex items-center gap-1 text-sm font-semibold text-blue-600 hover:text-blue-700 transition-colors",children:["Meer info ",e.jsx($e,{className:"w-4 h-4"})]})]},n.id))}),e.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:[e.jsxs(de,{to:se("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",e.jsx($e,{className:"w-5 h-5"})]}),e.jsxs(de,{to:se("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:[e.jsx(At,{className:"w-5 h-5 text-purple-600"}),"Training Advisor"]})]})]})})}function Mee(){return e.jsx("section",{className:"py-32 bg-white",children:e.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:e.jsx("div",{className:"bg-[#FAB868] rounded-3xl p-16 text-center",children:e.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},children:[e.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."}),e.jsx("p",{className:"text-xl text-[#0D0D0F]/70 mb-12 max-w-3xl mx-auto",children:"Ontvang een persoonlijk rapport."}),e.jsxs(de,{to:se("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:[e.jsx(At,{className:"w-6 h-6"}),"Start de AI Quiz",e.jsx($e,{className:"w-6 h-6"})]})]})})})})}function Lee(){const{data:t=[]}=Fe({queryKey:["teamMembers"],queryFn:()=>ce.entities.TeamMember.filter({active:!0,show_on_homepage:!0},"sort_order"),initialData:[]});return e.jsx("section",{className:"py-24 bg-gray-50",children:e.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:e.jsxs("div",{className:"grid lg:grid-cols-2 gap-12 items-center",children:[e.jsxs(Z.div,{initial:{opacity:0,x:-20},whileInView:{opacity:1,x:0},viewport:{once:!0},children:[e.jsx("h2",{className:"text-3xl sm:text-4xl font-bold text-gray-900 mb-6",children:"Ontmoet The AI Professionals"}),e.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."}),e.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."}),e.jsxs(de,{to:se("OverOns"),className:"inline-flex items-center gap-2 text-blue-600 font-semibold hover:gap-3 transition-all",children:["Meer over ons team",e.jsx($e,{className:"w-5 h-5"})]})]}),e.jsx(Z.div,{initial:{opacity:0,x:20},whileInView:{opacity:1,x:0},viewport:{once:!0},className:"grid grid-cols-2 gap-4",children:t.map((n,r)=>e.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&&e.jsx("div",{className:"aspect-square overflow-hidden",children:e.jsx("img",{src:n.image_url,alt:n.name,className:"w-full h-full object-cover group-hover:scale-105 transition-transform duration-500"})}),e.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:e.jsxs("div",{className:"text-white",children:[e.jsx("p",{className:"font-bold",children:n.name}),e.jsx("p",{className:"text-sm text-white/80",children:n.role})]})}),e.jsxs("div",{className:"p-4",children:[e.jsx("p",{className:"font-semibold text-gray-900",children:n.name}),e.jsx("p",{className:"text-sm text-gray-500",children:n.role})]})]},n.id))})]})})})}function Bee(){const[t,n]=R.useState(""),[r,i]=R.useState(!1),[s,a]=R.useState(!1),[o,c]=R.useState(""),d=async f=>{f.preventDefault(),c(""),i(!0);try{if((await ce.entities.NewsletterSubscriber.filter({email:t})).length>0){c("Je bent al ingeschreven!"),i(!1);return}await ce.entities.NewsletterSubscriber.create({email:t,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)}},h=[{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 e.jsx("section",{className:"py-24 bg-gray-50",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[e.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:[e.jsx("h2",{className:"text-3xl sm:text-4xl font-bold text-white mb-4",children:"Blijf op de hoogte"}),e.jsx("p",{className:"text-xl text-gray-300 mb-8",children:"Ontvang wekelijks de beste AI insights"}),s?e.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:[e.jsx(gt,{className:"w-5 h-5"}),"Je bent ingeschreven!"]}):e.jsxs("form",{onSubmit:d,className:"max-w-md mx-auto",children:[e.jsxs("div",{className:"flex gap-3",children:[e.jsx(me,{type:"email",value:t,onChange:f=>n(f.target.value),placeholder:"je@email.nl",required:!0,className:"flex-1 h-14 px-6 bg-white text-gray-900 rounded-full"}),e.jsx(ae,{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&&e.jsx("p",{className:"text-red-400 text-sm mt-2",children:o})]})]}),e.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:[e.jsxs("div",{children:[e.jsx("h2",{className:"text-3xl sm:text-4xl font-bold text-gray-900 mb-4",children:"Laatste artikelen"}),e.jsx("p",{className:"text-xl text-gray-600",children:"Insights, tips en trends uit de wereld van AI"})]}),e.jsxs(de,{to:se("Blog"),className:"flex items-center gap-2 text-blue-600 font-semibold hover:gap-3 transition-all shrink-0",children:["Alle artikelen",e.jsx($e,{className:"w-5 h-5"})]})]}),e.jsx("div",{className:"grid md:grid-cols-3 gap-8",children:h.map((f,m)=>e.jsx(Z.article,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:m*.15},children:e.jsxs(de,{to:se("Blog"),className:"group block",children:[e.jsxs("div",{className:"relative rounded-2xl overflow-hidden mb-4 aspect-[16/10]",children:[e.jsx("img",{src:f.image,alt:f.title,className:"w-full h-full object-cover group-hover:scale-105 transition-transform duration-500"}),e.jsx("div",{className:"absolute top-4 left-4",children:e.jsx("span",{className:"px-3 py-1 bg-white/90 backdrop-blur-sm rounded-full text-sm font-medium text-gray-900",children:f.category})})]}),e.jsxs("div",{className:"flex items-center gap-3 text-sm text-gray-500 mb-3",children:[e.jsx("span",{children:f.date}),e.jsx("span",{children:"•"}),e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(vn,{className:"w-4 h-4"}),f.readTime]})]}),e.jsx("h3",{className:"text-xl font-bold text-gray-900 mb-2 group-hover:text-blue-600 transition-colors",children:f.title}),e.jsx("p",{className:"text-gray-600 line-clamp-2",children:f.excerpt})]})},m))})]})})}function zee(){const{data:t=[]}=Fe({queryKey:["homeCTAs"],queryFn:()=>ce.entities.HomeCTA.filter({active:!0},"sort_order"),initialData:[]}),n={Sparkles:At,Calendar:Hr,GraduationCap:pr};return e.jsx("section",{className:"py-24 bg-gray-50",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[e.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-center mb-12",children:[e.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?"}),e.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."})]}),e.jsx("div",{className:"grid md:grid-cols-3 gap-8 max-w-5xl mx-auto",children:t.map((r,i)=>{const s=n[r.icon]||At;return e.jsx(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:i*.1},children:e.jsxs(de,{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:[e.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:e.jsx(s,{className:`w-7 h-7 ${r.featured?"text-white":"text-gray-700 group-hover:text-blue-600 transition-colors"}`})}),e.jsx("h3",{className:`text-2xl font-bold mb-3 ${r.featured?"text-white":"text-gray-900"}`,children:r.title}),e.jsx("p",{className:`mb-6 ${r.featured?"text-blue-100":"text-gray-600"}`,children:r.description}),e.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,e.jsx($e,{className:"w-5 h-5"})]})]})},r.id)})})]})})}function qee(){const[t,n]=R.useState(!1),[r,i]=R.useState(""),[s,a]=R.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 e.jsxs("section",{className:"py-12 bg-[#0D0D0F]",children:[e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[e.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-center mb-8",children:[e.jsx("h2",{className:"text-3xl sm:text-4xl font-bold text-white mb-3",children:"AI nieuws van vandaag in 48 seconden"}),e.jsx("p",{className:"text-lg text-gray-400",children:o.short_description})]}),e.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:e.jsx("div",{className:"relative aspect-video rounded-3xl overflow-hidden bg-gray-900 shadow-2xl",children:e.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})})}),e.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:[e.jsxs("div",{className:"bg-[#1a1a1c] rounded-2xl p-6 mb-4",children:[e.jsx("h3",{className:"text-lg font-bold text-white mb-4 text-center",children:"Volg dagelijkse AI nieuws op onze socials"}),e.jsxs("div",{className:"flex justify-center gap-2 mb-4",children:[e.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:e.jsx(Hs,{className:"w-5 h-5 text-[#0D0D0F]"})}),e.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:e.jsx(Jc,{className:"w-5 h-5 text-[#0D0D0F]"})}),e.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:e.jsx(tu,{className:"w-5 h-5 text-[#0D0D0F]"})})]}),e.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:[e.jsx($o,{className:"w-5 h-5"}),"Ontvang dagelijks via WhatsApp"]}),e.jsx("p",{className:"text-xs text-gray-400 text-center mt-3",children:"✓ Elke werkdag • ✓ Geen spam • ✓ Afmelden wanneer je wilt"})]}),e.jsx("div",{className:"text-center",children:e.jsxs(de,{to:se("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:[e.jsx(Av,{className:"w-5 h-5"}),"Bekijk eerdere afleveringen en meer AI nieuws"]})})]})]}),t&&e.jsx("div",{className:"fixed inset-0 bg-black/70 backdrop-blur-sm z-[200] flex items-center justify-center p-4",children:e.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:[e.jsx("button",{onClick:()=>n(!1),className:"absolute top-4 right-4 p-2 rounded-full hover:bg-gray-100 transition-colors",children:e.jsx(Ht,{className:"w-5 h-5"})}),s?e.jsxs("div",{className:"text-center py-8",children:[e.jsx("div",{className:"w-16 h-16 bg-green-100 rounded-full flex items-center justify-center mx-auto mb-4",children:e.jsx($o,{className:"w-8 h-8 text-green-600"})}),e.jsx("h3",{className:"text-2xl font-bold text-gray-900 mb-2",children:"Succesvol ingeschreven!"}),e.jsx("p",{className:"text-gray-600",children:"Je ontvangt vanaf morgen dagelijks het AI-nieuws via WhatsApp."})]}):e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"flex items-center gap-3 mb-6",children:[e.jsx("div",{className:"w-12 h-12 bg-[#25D366] rounded-full flex items-center justify-center",children:e.jsx($o,{className:"w-6 h-6 text-white"})}),e.jsxs("div",{children:[e.jsx("h3",{className:"text-2xl font-bold text-gray-900",children:"WhatsApp Abonnement"}),e.jsx("p",{className:"text-gray-600",children:"Dagelijks AI-nieuws in 48 seconden"})]})]}),e.jsxs("form",{onSubmit:c,className:"space-y-4",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Telefoonnummer *"}),e.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"})]}),e.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.'}),e.jsx(ae,{type:"submit",className:"w-full py-6 bg-[#25D366] text-white hover:bg-[#20BA5A] font-bold text-lg",children:"Abonneer op WhatsApp"})]})]})]})})]})}const t4=[{name:"Allianz",url:"https://media.base44.com/images/public/695a3d411fa079edce588856/07b60a1e1_logo_allianz.png"},{name:"Gemeente Groningen",url:"https://media.base44.com/images/public/695a3d411fa079edce588856/1c589ae06_logo_gemeente_groningen.png"},{name:"HipHot",url:"https://media.base44.com/images/public/695a3d411fa079edce588856/fb80e3140_logo_hiphot.png"},{name:"Justified Bags",url:"https://media.base44.com/images/public/695a3d411fa079edce588856/9a66b2f93_logo_justified_bags.png"},{name:"Ministerie van Volksgezondheid",url:"https://media.base44.com/images/public/695a3d411fa079edce588856/3061bc4f0_logo_min_volksgezondheid.png"},{name:"New Nexus",url:"https://media.base44.com/images/public/695a3d411fa079edce588856/0aee67b2a_logo_new_nexus.png"},{name:"New Rebels",url:"https://media.base44.com/images/public/695a3d411fa079edce588856/a036e1fba_logo_new_rebels.png"},{name:"Parfum.nl",url:"https://media.base44.com/images/public/695a3d411fa079edce588856/b0436eed7_logo_parfum.png"},{name:"Purdey",url:"https://media.base44.com/images/public/695a3d411fa079edce588856/3b7befa30_logo_purdey.png"},{name:"T-Mobile",url:"https://media.base44.com/images/public/695a3d411fa079edce588856/61c5e5fb1_logo_tmobile.png"},{name:"Topdrinks",url:"https://media.base44.com/images/public/695a3d411fa079edce588856/2923a5631_logo_topdrinks.png"},{name:"UMCG",url:"https://media.base44.com/images/public/695a3d411fa079edce588856/6ec585700_logo_umcg.png"}];function z6(){const t=[...t4,...t4];return e.jsxs("section",{className:"py-14 bg-white border-t border-gray-100 overflow-hidden",children:[e.jsx("p",{className:"text-center text-xs font-medium uppercase tracking-widest text-gray-500 mb-10",children:"Samenwerkingen waar we trots op zijn"}),e.jsxs("div",{className:"relative w-full",children:[e.jsx("div",{className:"absolute left-0 top-0 bottom-0 w-24 z-10 pointer-events-none",style:{background:"linear-gradient(to right, white, transparent)"}}),e.jsx("div",{className:"absolute right-0 top-0 bottom-0 w-24 z-10 pointer-events-none",style:{background:"linear-gradient(to left, white, transparent)"}}),e.jsx("div",{className:"flex gap-16 items-center animate-ticker whitespace-nowrap",children:t.map((n,r)=>e.jsx("div",{className:"flex-shrink-0 flex items-center justify-center h-12",children:e.jsx("img",{src:n.url,alt:n.name,className:"max-h-12 w-auto object-contain"})},r))})]}),e.jsx("style",{children:`
        @keyframes ticker {
          0% { transform: translateX(0); }
          100% { transform: translateX(-50%); }
        }
        .animate-ticker {
          animation: ticker 33s linear infinite;
          width: max-content;
        }
        .animate-ticker:hover {
          animation-play-state: paused;
        }
      `})]})}function Vee(){const{data:t=[]}=Fe({queryKey:["homeSections"],queryFn:()=>ce.entities.HomeSection.filter({active:!0},"sort_order"),initialData:[]}),n={hero:e.jsx(Eee,{},"hero"),trust:e.jsx(Tee,{},"trust"),services:e.jsx(Oee,{},"services"),why:e.jsxs(Ot.Fragment,{children:[e.jsx(Dee,{}),e.jsx(z6,{})]},"why"),process:e.jsx(Pee,{},"process"),cases:e.jsx(Iee,{},"cases"),training:e.jsx(Fee,{},"training"),quiz:e.jsx(Mee,{},"quiz"),team:e.jsx(Lee,{},"team"),impact:e.jsx("div",{className:"py-12 bg-white",children:e.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:e.jsx(Wf,{})})},"impact"),news:e.jsx(qee,{},"news"),blog:e.jsx(Bee,{},"blog"),cta:e.jsx(zee,{},"cta")};return e.jsx("div",{children:t.map(r=>n[r.section_key])})}function Uee(){const[t,n]=R.useState(""),[r,i]=R.useState(""),[s,a]=R.useState(""),[o,c]=R.useState(!1),[d,h]=R.useState(null),[f,m]=R.useState(null),[p,g]=R.useState(!1),[b,j]=R.useState({name:"",email:"",phone:""}),v=[{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"}];R.useEffect(()=>{const w=new URLSearchParams(window.location.search),N=w.get("url"),A=w.get("level");N&&(n(N),x(N)),A&&!N&&console.log("User came from quiz with level:",A)},[]);const x=async(w=null)=>{let N=w||t;if(N){N=N.replace(/^(https?:\/\/)?(www\.)?/,"").replace(/\/$/,""),c(!0),m(null),h(null);try{const A=`https://${N}`,{data:S}=await ce.functions.invoke("generateImpactReport",{website_url:A,company_name:r,industry:s||void 0});S.success?h(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)}}},k=async w=>{w.preventDefault(),alert("Bedankt! We nemen zo snel mogelijk contact met je op."),g(!1)};if(o)return e.jsx("div",{className:"pt-20 min-h-screen bg-gradient-to-b from-blue-50 to-white",children:e.jsx("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 py-32 text-center",children:e.jsxs(Z.div,{initial:{opacity:0,scale:.9},animate:{opacity:1,scale:1},children:[e.jsx("div",{className:"w-20 h-20 bg-blue-100 rounded-full flex items-center justify-center mx-auto mb-6",children:e.jsxs("svg",{className:"animate-spin w-10 h-10 text-blue-600",viewBox:"0 0 24 24",children:[e.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4",fill:"none"}),e.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4z"})]})}),e.jsx("h1",{className:"text-3xl font-bold text-gray-900 mb-4",children:"We analyseren je website..."}),e.jsx("p",{className:"text-xl text-gray-600 mb-8",children:"Dit duurt ongeveer 30-60 seconden"}),e.jsxs("div",{className:"flex items-center justify-center gap-2 text-gray-500",children:[e.jsx(gt,{className:"w-5 h-5 text-green-500"}),e.jsx("span",{children:"Website content ophalen"})]}),e.jsxs("div",{className:"flex items-center justify-center gap-2 text-gray-500 mt-3",children:[e.jsx("div",{className:"w-5 h-5 border-2 border-blue-600 border-t-transparent rounded-full animate-spin"}),e.jsx("span",{children:"AI analyse uitvoeren"})]})]})})});if(f)return e.jsx("div",{className:"pt-20 min-h-screen bg-gradient-to-b from-red-50 to-white",children:e.jsx("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 py-32 text-center",children:e.jsxs(Z.div,{initial:{opacity:0,scale:.9},animate:{opacity:1,scale:1},children:[e.jsx("div",{className:"w-20 h-20 bg-red-100 rounded-full flex items-center justify-center mx-auto mb-6",children:e.jsx(fi,{className:"w-10 h-10 text-red-600"})}),e.jsx("h1",{className:"text-3xl font-bold text-gray-900 mb-4",children:"Er ging iets mis"}),e.jsx("p",{className:"text-xl text-gray-600 mb-8",children:f}),e.jsx(ae,{onClick:()=>{m(null),n("")},className:"bg-gray-900 text-white hover:bg-gray-800",children:"Probeer opnieuw"})]})})});if(d){const{report:w,metadata:N}=d,A=w.company_profile||{},S=w.quick_scan||{},E=w.opportunities||[],C=w.productivity_forecast||{},B=w.action_plan||{};return e.jsx("div",{className:"pt-20 min-h-screen bg-gradient-to-b from-gray-50 to-white",children:e.jsxs("div",{className:"max-w-5xl mx-auto px-4 sm:px-6 lg:px-8 py-12",children:[e.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"text-center mb-12",children:[e.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:[e.jsx(At,{className:"w-4 h-4"}),"48-7 Impact Rapport"]}),e.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"]}),e.jsxs("p",{className:"text-xl text-gray-600",children:["Gegenereerd op ",new Date(N.generated_at).toLocaleDateString("nl-NL",{day:"numeric",month:"long",year:"numeric"})]})]}),e.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:[e.jsxs("div",{className:"flex items-center gap-3 mb-6",children:[e.jsx("div",{className:"w-12 h-12 bg-blue-100 rounded-xl flex items-center justify-center",children:e.jsx(Ya,{className:"w-6 h-6 text-blue-600"})}),e.jsx("h2",{className:"text-2xl font-bold text-gray-900",children:"Bedrijfsprofiel"})]}),e.jsxs("div",{className:"grid md:grid-cols-1 gap-6",children:[e.jsxs("div",{children:[e.jsx("p",{className:"text-sm text-gray-500 mb-1",children:"Sector"}),e.jsx("p",{className:"font-semibold text-gray-900",children:A.sector})]}),e.jsxs("div",{children:[e.jsx("p",{className:"text-sm text-gray-500 mb-1",children:"Kernactiviteiten"}),e.jsx("p",{className:"text-gray-700",children:A.core_activities})]})]})]}),e.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:[e.jsx("h2",{className:"text-2xl font-bold text-gray-900 mb-4",children:"De Quick Scan"}),e.jsxs("p",{className:"text-lg text-gray-700 mb-6 leading-relaxed",children:["Wij hebben de processen van ",e.jsx("strong",{children:A.name})," geanalyseerd.",S.focus&&` ${S.focus}`]}),S.usp&&e.jsxs("div",{className:"bg-white/50 rounded-xl p-4 mb-4",children:[e.jsx("p",{className:"text-sm text-gray-600 mb-1",children:"Unique Selling Points"}),e.jsx("p",{className:"text-gray-800",children:S.usp})]}),S.time_intensive_processes&&e.jsxs("div",{className:"bg-white/50 rounded-xl p-4",children:[e.jsx("p",{className:"text-sm text-gray-600 mb-1",children:"Tijd-intensieve processen"}),e.jsx("p",{className:"text-gray-800",children:S.time_intensive_processes})]})]}),e.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.3},className:"mb-8",children:[e.jsxs("div",{className:"text-center mb-8",children:[e.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`}),e.jsxs("p",{className:"text-gray-600",children:["Specifiek voor ",A.name]})]}),e.jsx("div",{className:"space-y-6",children:E.map((F,D)=>e.jsx(Z.div,{initial:{opacity:0,x:-20},animate:{opacity:1,x:0},transition:{delay:.4+D*.1},className:"bg-white rounded-2xl p-8 border-2 border-gray-100 hover:border-blue-200 transition-all",children:e.jsxs("div",{className:"flex items-start gap-4",children:[e.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:D+1}),e.jsxs("div",{className:"flex-1",children:[e.jsx("h3",{className:"text-2xl font-bold text-gray-900 mb-3",children:F.title}),e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{children:[e.jsx("p",{className:"text-sm font-semibold text-red-600 mb-1",children:"❌ Probleem"}),e.jsx("p",{className:"text-gray-700",children:F.problem})]}),e.jsxs("div",{children:[e.jsx("p",{className:"text-sm font-semibold text-blue-600 mb-1",children:"✅ Oplossing"}),e.jsx("p",{className:"text-gray-700",children:F.solution})]}),F.relevance&&e.jsxs("div",{className:"bg-blue-50 p-3 rounded-lg",children:[e.jsx("p",{className:"text-sm font-semibold text-blue-900 mb-1",children:"💡 Waarom relevant"}),e.jsx("p",{className:"text-sm text-blue-800",children:F.relevance})]}),F.implementation_steps&&F.implementation_steps.length>0&&e.jsxs("div",{className:"bg-purple-50 p-3 rounded-lg",children:[e.jsx("p",{className:"text-sm font-semibold text-purple-900 mb-2",children:"🔧 Implementatiestappen"}),e.jsx("ol",{className:"text-sm text-purple-800 space-y-1 list-decimal list-inside",children:F.implementation_steps.map((I,z)=>e.jsx("li",{children:I},z))})]}),F.data_privacy&&e.jsxs("div",{className:"bg-amber-50 p-3 rounded-lg",children:[e.jsx("p",{className:"text-sm font-semibold text-amber-900 mb-1",children:"🔒 Data & Privacy"}),e.jsx("p",{className:"text-sm text-amber-800",children:F.data_privacy})]}),e.jsx("div",{className:"grid sm:grid-cols-2 gap-4 pt-4 border-t border-gray-100",children:e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(Ki,{className:"w-5 h-5 text-green-600"}),e.jsxs("div",{children:[e.jsx("p",{className:"text-sm text-gray-600",children:"Winst"}),e.jsx("p",{className:"font-semibold text-gray-900",children:F.benefit})]})]})})]})]})]})},D))})]}),e.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:[e.jsx("h2",{className:"text-2xl font-bold mb-6",children:"De 48-7 Productiviteitsprognose"}),e.jsxs("div",{className:"grid md:grid-cols-2 gap-8 mb-6",children:[e.jsxs("div",{className:"bg-white/10 backdrop-blur-sm rounded-xl p-6",children:[e.jsx("p",{className:"text-green-100 mb-2",children:"Huidige output"}),e.jsxs("p",{className:"text-5xl font-bold",children:[C.current||100,"%"]})]}),e.jsxs("div",{className:"bg-white/20 backdrop-blur-sm rounded-xl p-6 border-2 border-white/30",children:[e.jsx("p",{className:"text-green-100 mb-2",children:"Output met 48-7 AI-integratie"}),e.jsxs("p",{className:"text-5xl font-bold",children:[C.with_ai||185,"%"]})]})]}),C.drivers&&C.drivers.length>0&&e.jsxs("div",{children:[e.jsx("p",{className:"font-semibold mb-3",children:"Belangrijkste drivers:"}),e.jsx("ul",{className:"space-y-2",children:C.drivers.map((F,D)=>e.jsxs("li",{className:"flex items-start gap-2",children:[e.jsx(gt,{className:"w-5 h-5 mt-0.5 flex-shrink-0"}),e.jsx("span",{children:F})]},D))})]})]}),w.example_case&&e.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:e.jsxs("div",{className:"flex items-start gap-4",children:[e.jsx("div",{className:"w-12 h-12 bg-blue-600 rounded-xl flex items-center justify-center flex-shrink-0",children:e.jsx($t,{className:"w-6 h-6 text-white"})}),e.jsxs("div",{children:[e.jsx("h2",{className:"text-2xl font-bold text-gray-900 mb-3",children:"Voorbeeldcase"}),e.jsx("p",{className:"text-gray-700 text-lg leading-relaxed",children:w.example_case})]})]})}),w.innovative_idea&&e.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:[e.jsxs("div",{className:"absolute inset-0 opacity-10",children:[e.jsx("div",{className:"absolute top-0 right-0 w-64 h-64 bg-white rounded-full blur-3xl"}),e.jsx("div",{className:"absolute bottom-0 left-0 w-64 h-64 bg-white rounded-full blur-3xl"})]}),e.jsxs("div",{className:"relative z-10",children:[e.jsxs("div",{className:"flex items-start gap-4 mb-6",children:[e.jsx("div",{className:"w-14 h-14 bg-white/20 backdrop-blur-sm rounded-2xl flex items-center justify-center flex-shrink-0",children:e.jsx(Wi,{className:"w-7 h-7 text-white"})}),e.jsxs("div",{children:[e.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:[e.jsx(At,{className:"w-4 h-4"}),"Innovatief AI-Idee"]}),e.jsx("h2",{className:"text-3xl font-bold",children:w.innovative_idea.title})]})]}),e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{className:"bg-white/10 backdrop-blur-sm rounded-xl p-6",children:[e.jsx("h3",{className:"font-bold text-lg mb-2",children:"💡 Hoe het werkt"}),e.jsx("p",{className:"text-white/90 leading-relaxed",children:w.innovative_idea.description})]}),e.jsxs("div",{className:"grid md:grid-cols-2 gap-4",children:[e.jsxs("div",{className:"bg-white/10 backdrop-blur-sm rounded-xl p-5",children:[e.jsx("h3",{className:"font-bold mb-2",children:"🎯 Onderscheidend vermogen"}),e.jsx("p",{className:"text-white/90 text-sm",children:w.innovative_idea.unique_value})]}),e.jsxs("div",{className:"bg-white/10 backdrop-blur-sm rounded-xl p-5",children:[e.jsx("h3",{className:"font-bold mb-2",children:"📈 Impact"}),e.jsx("p",{className:"text-white/90 text-sm",children:w.innovative_idea.impact})]})]}),e.jsxs("div",{className:"bg-white/10 backdrop-blur-sm rounded-xl p-5",children:[e.jsx("h3",{className:"font-bold mb-2",children:"🔧 Implementatie"}),e.jsx("p",{className:"text-white/90 text-sm",children:w.innovative_idea.implementation})]}),e.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:[e.jsxs("h3",{className:"font-bold mb-2 flex items-center gap-2",children:[e.jsx(ui,{className:"w-5 h-5"}),"Quick Win (2-4 weken)"]}),e.jsx("p",{className:"text-white/90",children:w.innovative_idea.quick_win})]})]})]})]}),w.training_recommendations&&w.training_recommendations.length>0&&e.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:[e.jsxs("div",{className:"flex items-center gap-3 mb-6",children:[e.jsx("div",{className:"w-12 h-12 bg-purple-100 rounded-xl flex items-center justify-center",children:e.jsx(pr,{className:"w-6 h-6 text-purple-600"})}),e.jsx("h2",{className:"text-2xl font-bold text-gray-900",children:"Aanbevolen Trainingen"})]}),e.jsx("div",{className:"space-y-4",children:w.training_recommendations.map((F,D)=>e.jsxs("div",{className:"p-6 bg-purple-50 rounded-xl border-2 border-purple-100",children:[e.jsxs("div",{className:"flex items-start justify-between mb-3",children:[e.jsxs("div",{className:"flex items-start gap-3",children:[e.jsx("div",{className:"w-8 h-8 bg-purple-600 rounded-lg flex items-center justify-center flex-shrink-0 mt-0.5",children:e.jsx("span",{className:"text-white font-bold text-sm",children:D+1})}),e.jsxs("div",{children:[e.jsx("h3",{className:"font-bold text-gray-900 text-lg mb-1",children:F.training_name}),F.target_audience&&e.jsxs("p",{className:"text-sm text-purple-700 font-medium",children:["Doelgroep: ",F.target_audience]})]})]}),e.jsx(de,{to:se("Contact")+`?training=${encodeURIComponent(F.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"})]}),F.learning_goals&&e.jsxs("div",{className:"mb-3",children:[e.jsx("p",{className:"text-sm font-medium text-gray-700 mb-1",children:"Leerdoelen:"}),e.jsx("p",{className:"text-sm text-gray-600",children:F.learning_goals})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsxs("div",{children:[e.jsx("p",{className:"text-sm font-medium text-gray-700",children:"Waarom relevant:"}),e.jsx("p",{className:"text-sm text-gray-600",children:F.reason})]}),F.relevance_to_opportunities&&e.jsxs("div",{children:[e.jsx("p",{className:"text-sm font-medium text-gray-700",children:"Link met AI-kansen:"}),e.jsx("p",{className:"text-sm text-gray-600",children:F.relevance_to_opportunities})]}),F.compliance_benefit&&e.jsxs("div",{className:"bg-blue-50 p-2 rounded",children:[e.jsx("p",{className:"text-sm font-medium text-blue-900",children:"Compliance voordeel:"}),e.jsx("p",{className:"text-sm text-blue-800",children:F.compliance_benefit})]})]})]},D))}),e.jsx("div",{className:"flex gap-3 mt-6",children:e.jsxs(de,{to:se("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",e.jsx($e,{className:"w-5 h-5"})]})})]}),w.ai_security&&e.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:[e.jsxs("div",{className:"flex items-center gap-3 mb-6",children:[e.jsx("div",{className:"w-12 h-12 bg-red-100 rounded-xl flex items-center justify-center",children:e.jsx(Vn,{className:"w-6 h-6 text-red-600"})}),e.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&&e.jsxs("div",{className:"mb-6",children:[e.jsx("h3",{className:"font-semibold text-gray-900 mb-3",children:"📊 Risicoanalyse per AI-kans"}),e.jsx("div",{className:"space-y-3",children:w.ai_security.risk_analysis_per_opportunity.map((F,D)=>{const I=q=>{const U=q==null?void 0:q.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"},z=q=>{const U=q==null?void 0:q.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 e.jsxs("div",{className:`p-3 rounded-lg border-2 ${I(F.risk_level)}`,children:[e.jsxs("div",{className:"flex items-start justify-between mb-1",children:[e.jsx("p",{className:"font-medium text-gray-900",children:F.opportunity_title}),e.jsx("span",{className:`px-2 py-1 rounded border text-xs font-semibold ${z(F.risk_level)}`,children:F.risk_level})]}),e.jsx("p",{className:"text-sm text-gray-600",children:F.risk_justification})]},D)})})]}),w.ai_security.data_leak_prevention&&e.jsxs("div",{className:"mb-6 p-4 bg-red-50 rounded-xl border border-red-100",children:[e.jsx("h3",{className:"font-semibold text-gray-900 mb-3",children:"🔒 Datalekpreventie"}),w.ai_security.data_leak_prevention.personal_data_processing&&e.jsxs("div",{className:"mb-3",children:[e.jsx("p",{className:"text-sm font-medium text-gray-700",children:"Persoonsgegevens verwerking:"}),e.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&&e.jsxs("div",{className:"mb-3",children:[e.jsx("p",{className:"text-sm font-medium text-gray-700 mb-1",children:"Risico's voor datalekken:"}),e.jsx("ul",{className:"space-y-1",children:w.ai_security.data_leak_prevention.leak_risks.map((F,D)=>e.jsxs("li",{className:"flex items-start gap-2 text-sm text-gray-600",children:[e.jsx("span",{className:"text-red-500 mt-0.5",children:"•"}),e.jsx("span",{children:F})]},D))})]}),w.ai_security.data_leak_prevention.prevention_measures&&w.ai_security.data_leak_prevention.prevention_measures.length>0&&e.jsxs("div",{className:"mb-3",children:[e.jsx("p",{className:"text-sm font-medium text-gray-700 mb-1",children:"Preventiemaatregelen:"}),e.jsx("ul",{className:"space-y-1",children:w.ai_security.data_leak_prevention.prevention_measures.map((F,D)=>e.jsxs("li",{className:"flex items-start gap-2 text-sm text-gray-600",children:[e.jsx("span",{className:"text-green-500 mt-0.5",children:"✓"}),e.jsx("span",{children:F})]},D))})]}),w.ai_security.data_leak_prevention.gdpr_implications&&e.jsxs("div",{className:"p-2 bg-blue-50 rounded border border-blue-200",children:[e.jsx("p",{className:"text-sm font-medium text-blue-900",children:"GDPR Implicaties:"}),e.jsx("p",{className:"text-sm text-blue-800",children:w.ai_security.data_leak_prevention.gdpr_implications})]})]}),w.ai_security.eu_ai_act_compliance&&e.jsxs("div",{className:"mb-6 p-4 bg-blue-50 rounded-xl border border-blue-100",children:[e.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&&e.jsxs("div",{className:"mb-3",children:[e.jsx("p",{className:"text-sm font-medium text-gray-700 mb-1",children:"Hoog-risico systemen:"}),e.jsx("ul",{className:"space-y-1",children:w.ai_security.eu_ai_act_compliance.high_risk_systems.map((F,D)=>e.jsxs("li",{className:"text-sm text-gray-600 ml-4",children:["• ",F]},D))})]}),w.ai_security.eu_ai_act_compliance.applicable_articles&&e.jsxs("div",{className:"mb-3",children:[e.jsx("p",{className:"text-sm font-medium text-gray-700",children:"Van toepassing zijnde artikelen:"}),e.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&&e.jsxs("div",{className:"mb-3",children:[e.jsx("p",{className:"text-sm font-medium text-gray-700",children:"Vereiste documentatie:"}),e.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&&e.jsxs("div",{className:"mb-3",children:[e.jsx("p",{className:"text-sm font-medium text-gray-700",children:"Menselijk toezicht:"}),e.jsx("p",{className:"text-sm text-gray-600",children:w.ai_security.eu_ai_act_compliance.human_oversight})]}),e.jsxs("div",{className:"flex flex-col gap-3 mt-4",children:[e.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",e.jsx($e,{className:"w-4 h-4"})]}),e.jsxs("a",{href:se("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:[e.jsx(Vn,{className:"w-4 h-4"}),"Doe uitgebreide EU AI Act check",e.jsx($e,{className:"w-4 h-4"})]})]})]}),w.ai_security.practical_recommendations&&w.ai_security.practical_recommendations.length>0&&e.jsxs("div",{className:"mb-6",children:[e.jsx("h3",{className:"font-semibold text-gray-900 mb-3",children:"✅ Praktische Aanbevelingen"}),e.jsx("ul",{className:"space-y-2",children:w.ai_security.practical_recommendations.map((F,D)=>e.jsxs("li",{className:"flex items-start gap-2 text-gray-700",children:[e.jsx("span",{className:"text-green-500 mt-1",children:"✓"}),e.jsx("span",{children:F})]},D))})]}),w.ai_security.sector_specific_considerations&&e.jsxs("div",{className:"p-4 bg-amber-50 rounded-xl",children:[e.jsx("h3",{className:"font-semibold text-gray-900 mb-2",children:"🏢 Sectie-specifieke Overwegingen"}),e.jsx("p",{className:"text-gray-700",children:w.ai_security.sector_specific_considerations})]})]}),e.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:[e.jsxs("div",{className:"flex items-center gap-3 mb-6",children:[e.jsx("div",{className:"w-12 h-12 bg-amber-100 rounded-xl flex items-center justify-center",children:e.jsx(Ua,{className:"w-6 h-6 text-amber-600"})}),e.jsx("h2",{className:"text-2xl font-bold text-gray-900",children:"Direct Actieplan"})]}),e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{children:[e.jsx("p",{className:"text-sm text-gray-600 mb-2",children:"Hoogste prioriteit"}),e.jsx("p",{className:"text-lg font-semibold text-gray-900",children:B.priority_opportunity})]}),e.jsxs("div",{children:[e.jsx("p",{className:"text-sm text-gray-600 mb-2",children:"Eerste stap"}),e.jsx("p",{className:"text-gray-700",children:B.first_step})]})]})]}),e.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:1},className:"space-y-6",children:[e.jsxs("div",{className:"bg-gradient-to-r from-blue-600 to-indigo-600 rounded-2xl p-8 text-white text-center",children:[e.jsx("h2",{className:"text-2xl font-bold mb-2",children:"Persoonlijk Advies per Email"}),e.jsxs("p",{className:"text-blue-100 mb-6 text-lg",children:["Ontvang een gedetailleerde implementatie roadmap en ROI-berekening specifiek voor ",A.name]}),e.jsxs(ae,{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:[e.jsx(yi,{className:"w-6 h-6"}),"Stuur mij het volledige advies",e.jsx($e,{className:"w-6 h-6"})]})]}),e.jsxs("div",{className:"grid md:grid-cols-2 gap-6",children:[e.jsxs("div",{className:"bg-gray-900 rounded-2xl p-6 text-white",children:[e.jsx("h3",{className:"text-xl font-bold mb-2",children:"Directe Toelichting"}),e.jsx("p",{className:"text-gray-300 mb-4",children:"Bespreek binnen 15 minuten de mogelijkheden voor jouw bedrijf"}),e.jsxs(de,{to:se("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:[e.jsx(Hr,{className:"w-5 h-5"}),"Plan een gesprek"]})]}),e.jsxs("div",{className:"bg-purple-600 rounded-2xl p-6 text-white",children:[e.jsx("h3",{className:"text-xl font-bold mb-2",children:"EU AI Act Check"}),e.jsx("p",{className:"text-purple-100 mb-4",children:"Ontdek welke compliance-eisen gelden voor jouw bedrijf"}),e.jsxs(de,{to:se("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:[e.jsx(Vn,{className:"w-5 h-5"}),"Start AI Act Check"]})]})]})]}),p&&e.jsx("div",{className:"fixed inset-0 bg-black/50 backdrop-blur-sm z-50 flex items-center justify-center p-4",children:e.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:[e.jsx("h3",{className:"text-2xl font-bold text-gray-900 mb-4",children:"Ontvang je volledige roadmap"}),e.jsx("p",{className:"text-gray-600 mb-6",children:"Vul je gegevens in en we sturen je een uitgebreide technische roadmap."}),e.jsxs("form",{onSubmit:k,className:"space-y-4",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-1",children:"Naam *"}),e.jsx(me,{required:!0,value:b.name,onChange:F=>j({...b,name:F.target.value})})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-1",children:"Email *"}),e.jsx(me,{required:!0,type:"email",value:b.email,onChange:F=>j({...b,email:F.target.value})})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-1",children:"Telefoon"}),e.jsx(me,{type:"tel",value:b.phone,onChange:F=>j({...b,phone:F.target.value})})]}),e.jsxs("div",{className:"flex gap-3 pt-4",children:[e.jsx(ae,{type:"button",variant:"outline",onClick:()=>g(!1),className:"flex-1",children:"Annuleren"}),e.jsx(ae,{type:"submit",className:"flex-1 bg-blue-600 hover:bg-blue-700",children:"Versturen"})]})]})]})})]})})}return e.jsx("div",{className:"pt-20 min-h-screen bg-gradient-to-b from-blue-50 to-white",children:e.jsxs("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 py-20",children:[e.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"text-center mb-12",children:[e.jsxs("h1",{className:"text-5xl sm:text-6xl lg:text-7xl font-bold text-[#0D0D0F] mb-8",children:["Ontvang gratis 48-7 ",e.jsx("br",{}),"AI Impact Rapport"]}),e.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"})]}),e.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:e.jsxs("form",{onSubmit:w=>{w.preventDefault(),x()},className:"space-y-6",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Website URL *"}),e.jsx(me,{type:"text",placeholder:"jouwbedrijf.nl",value:t,onChange:w=>n(w.target.value),required:!0,className:"text-lg py-6"}),e.jsx("p",{className:"text-sm text-gray-500 mt-1",children:"Vul alleen het domein in, bijv. bedrijf.nl (https:// wordt automatisch toegevoegd)"})]}),e.jsxs("div",{className:"grid sm:grid-cols-2 gap-6",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Bedrijfsnaam (optioneel)"}),e.jsx(me,{type:"text",placeholder:"Je Bedrijf BV",value:r,onChange:w=>i(w.target.value)})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Industrie (optioneel)"}),e.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:v.map(w=>e.jsx("option",{value:w.value,children:w.label},w.value))})]})]}),e.jsx(ae,{type:"submit",className:"w-full py-6 bg-[#FAB868] hover:bg-[#E5A04D] text-[#0D0D0F] font-bold text-lg",children:e.jsxs("span",{className:"flex items-center gap-2 justify-center",children:[e.jsx(At,{className:"w-5 h-5"}),"Genereer mijn Impact Rapport",e.jsx($e,{className:"w-5 h-5"})]})}),e.jsx("p",{className:"text-xs text-gray-500 text-center",children:"✓ 100% gratis • ✓ Geen verplichtingen • ✓ Direct resultaat"})]})}),e.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.4},className:"mt-12 text-center",children:[e.jsx("p",{className:"text-gray-600 mb-4",children:"Vertrouwd door:"}),e.jsxs("div",{className:"flex items-center justify-center gap-8 opacity-50",children:[e.jsx("div",{className:"w-16 h-16 bg-gray-200 rounded-xl"}),e.jsx("div",{className:"w-16 h-16 bg-gray-200 rounded-xl"}),e.jsx("div",{className:"w-16 h-16 bg-gray-200 rounded-xl"}),e.jsx("div",{className:"w-16 h-16 bg-gray-200 rounded-xl"})]})]})]})})}function $ee(){return e.jsx("div",{className:"pt-20 min-h-screen bg-white",children:e.jsx("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 py-12",children:e.jsxs("div",{className:"bg-[#F4F4F4] rounded-3xl p-12",children:[e.jsxs("div",{className:"flex items-center gap-3 mb-8",children:[e.jsx($t,{className:"w-12 h-12 text-[#FAB868]"}),e.jsx("h1",{className:"text-5xl font-bold text-[#0D0D0F]",children:"Impact Report"})]}),e.jsxs("div",{className:"prose max-w-none",children:[e.jsxs("h2",{className:"flex items-center gap-2",children:[e.jsx($3,{className:"w-5 h-5"})," Overzicht"]}),e.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."}),e.jsx("h2",{children:"Architectuur"}),e.jsx("h3",{children:"Frontend: pages/ImpactRapport.jsx"}),e.jsxs("ul",{children:[e.jsxs("li",{children:[e.jsx("strong",{children:"Framework:"})," React met Framer Motion voor animaties"]}),e.jsxs("li",{children:[e.jsx("strong",{children:"Input:"})," Website URL, optioneel bedrijfsnaam en industrie"]}),e.jsxs("li",{children:[e.jsx("strong",{children:"Flow:"}),e.jsxs("ol",{children:[e.jsx("li",{children:"Gebruiker voert website URL in"}),e.jsx("li",{children:"Optioneel: bedrijfsnaam en industrie selectie"}),e.jsx("li",{children:"Backend functie wordt aangeroepen"}),e.jsx("li",{children:"Loading state (30-60 seconden)"}),e.jsx("li",{children:"Rapport wordt getoond"})]})]})]}),e.jsx("h3",{children:"Backend: functions/generateImpactReport.js"}),e.jsxs("ul",{children:[e.jsxs("li",{children:[e.jsx("strong",{children:"Runtime:"})," Deno Deploy"]}),e.jsxs("li",{children:[e.jsx("strong",{children:"LLM:"})," OpenAI (via Base44 Core.InvokeLLM integration)"]}),e.jsxs("li",{children:[e.jsx("strong",{children:"Features:"}),e.jsxs("ul",{children:[e.jsx("li",{children:"Website scraping via fetch_website"}),e.jsx("li",{children:"Ophalen custom prompts uit database (ImpactReportPrompt entity)"}),e.jsx("li",{children:"Gestructureerde JSON output via response_json_schema"}),e.jsx("li",{children:"Gebruik van internet context voor actuele informatie"})]})]})]}),e.jsx("h2",{children:"Functionaliteiten"}),e.jsx("h3",{children:"1. Bedrijfsprofiel"}),e.jsxs("ul",{children:[e.jsx("li",{children:"Automatische extractie van sector en kernactiviteiten"}),e.jsx("li",{children:"Gebaseerd op website content"})]}),e.jsx("h3",{children:"2. Quick Scan"}),e.jsxs("ul",{children:[e.jsx("li",{children:"Analyse van tijd-intensieve processen"}),e.jsx("li",{children:"Identificatie van USP's"}),e.jsx("li",{children:"Focus op verbeterpotentieel"})]}),e.jsx("h3",{children:"3. Vijf AI Kansen"}),e.jsx("p",{children:"Voor elke kans:"}),e.jsxs("ul",{children:[e.jsxs("li",{children:[e.jsx("strong",{children:"Titel:"})," Duidelijke omschrijving van de kans"]}),e.jsxs("li",{children:[e.jsx("strong",{children:"Probleem:"})," Huidige situatie/uitdaging"]}),e.jsxs("li",{children:[e.jsx("strong",{children:"Oplossing:"})," Concrete AI-oplossing"]}),e.jsxs("li",{children:[e.jsx("strong",{children:"Relevantie:"})," Waarom specifiek relevant voor dit bedrijf"]}),e.jsxs("li",{children:[e.jsx("strong",{children:"Implementatiestappen:"})," 3-5 concrete stappen"]}),e.jsxs("li",{children:[e.jsx("strong",{children:"Data & Privacy:"})," Privacy overwegingen"]}),e.jsxs("li",{children:[e.jsx("strong",{children:"Winst:"})," Concrete voordelen/ROI"]})]}),e.jsx("h3",{children:"4. Productiviteitsprognose"}),e.jsxs("ul",{children:[e.jsx("li",{children:"Huidige output: 100%"}),e.jsx("li",{children:"Projectie met AI: typisch 150-200%"}),e.jsx("li",{children:"Drivers: Specifieke factoren die groei veroorzaken"})]}),e.jsx("h3",{children:"5. AI Veiligheid & Compliance"}),e.jsxs("ul",{children:[e.jsxs("li",{children:[e.jsx("strong",{children:"Risicoanalyse per AI-kans:"})," Risk level tags (Hoog/Beperkt/Minimaal)"]}),e.jsxs("li",{children:[e.jsx("strong",{children:"Datalekpreventie:"})," GDPR compliance, preventiemaatregelen"]}),e.jsxs("li",{children:[e.jsx("strong",{children:"EU AI Act:"})," Hoog-risico systemen, documentatie-eisen"]}),e.jsxs("li",{children:[e.jsx("strong",{children:"Praktische aanbevelingen:"})," Concrete actiepunten"]}),e.jsxs("li",{children:[e.jsx("strong",{children:"Sector-specifiek:"})," Branche-specifieke overwegingen"]})]}),e.jsxs("h2",{className:"flex items-center gap-2",children:[e.jsx(ui,{className:"w-5 h-5"})," LLM Prompt Structuur"]}),e.jsx("h3",{children:"Prompt Template"}),e.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)`}),e.jsx("h3",{children:"JSON Schema Output"}),e.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": {...}
  }
}`}),e.jsxs("h2",{className:"flex items-center gap-2",children:[e.jsx(A4,{className:"w-5 h-5"})," LLM Gebruik"]}),e.jsxs("ul",{children:[e.jsxs("li",{children:[e.jsx("strong",{children:"Provider:"})," OpenAI (via Base44 Core.InvokeLLM)"]}),e.jsxs("li",{children:[e.jsx("strong",{children:"Context:"})," Website content + optionele internet context"]}),e.jsxs("li",{children:[e.jsx("strong",{children:"Output:"})," Gestructureerde JSON volgens schema"]}),e.jsxs("li",{children:[e.jsx("strong",{children:"Taal:"})," Nederlands (geforceerd in prompt)"]}),e.jsxs("li",{children:[e.jsx("strong",{children:"Verwerkingstijd:"})," 30-60 seconden"]})]}),e.jsx("h2",{children:"Risk Level Kleuren"}),e.jsxs("div",{className:"space-y-2",children:[e.jsxs("div",{className:"flex items-center gap-3 p-3 rounded-lg border-2 border-red-200 bg-red-50",children:[e.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"}),e.jsx("span",{className:"text-sm",children:"border-red-200 bg-red-50"})]}),e.jsxs("div",{className:"flex items-center gap-3 p-3 rounded-lg border-2 border-orange-200 bg-orange-50",children:[e.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"}),e.jsx("span",{className:"text-sm",children:"border-orange-200 bg-orange-50"})]}),e.jsxs("div",{className:"flex items-center gap-3 p-3 rounded-lg border-2 border-green-200 bg-green-50",children:[e.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"}),e.jsx("span",{className:"text-sm",children:"border-green-200 bg-green-50"})]})]}),e.jsx("h2",{children:"Integraties"}),e.jsxs("ul",{children:[e.jsxs("li",{children:[e.jsx("strong",{children:"ImpactReportWidget:"})," Herbruikbaar component voor andere pages"]}),e.jsxs("li",{children:[e.jsx("strong",{children:"EU AI Act Button:"})," Opent in nieuw tabblad"]}),e.jsxs("li",{children:[e.jsx("strong",{children:"Training Links:"})," Direct naar Contact pagina met pre-filled training"]})]}),e.jsx("h2",{children:"Call-to-Actions"}),e.jsxs("ol",{children:[e.jsxs("li",{children:[e.jsx("strong",{children:"Primary:"}),' "Stuur mij het volledige advies" (Email modal)']}),e.jsxs("li",{children:[e.jsx("strong",{children:"Secondary:"}),e.jsxs("ul",{children:[e.jsx("li",{children:'"Plan een gesprek" (Link naar Contact)'}),e.jsx("li",{children:'"Start AI Act Check" (Link naar EU AI Act Checker)'})]})]})]}),e.jsx("h2",{children:"Files"}),e.jsxs("ul",{className:"font-mono text-sm",children:[e.jsx("li",{children:"pages/ImpactRapport.jsx - Frontend component"}),e.jsx("li",{children:"functions/generateImpactReport.js - Backend function"}),e.jsx("li",{children:"components/impact/ImpactReportWidget.jsx - Reusable widget"}),e.jsx("li",{children:"entities/ImpactReportPrompt.json - Custom prompts database"})]})]})]})})})}var Uu={};(function t(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 P=new OffscreenCanvas(1,1),T=P.getContext("2d");T.fillRect(0,0,1,1);var V=P.transferToImageBitmap();T.createPattern(V,"no-repeat")}catch{return!1}return!0})();function d(){}function h(P){var T=r.exports.Promise,V=T!==void 0?T:n.Promise;return typeof V=="function"?new V(P):(P(d,d),null)}var f=(function(P,T){return{transform:function(V){if(P)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 P=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(ee){X===ee||X+P-1<ee?(X=ee,delete L[W],J()):L[W]=requestAnimationFrame(G)}),W},V=function(J){L[J]&&cancelAnimationFrame(L[J])}):(T=function(J){return setTimeout(J,P)},V=function(J){return clearTimeout(J)}),{frame:T,cancel:V}})(),p=(function(){var P,T,V={};function L(X){function J(W,G){X.postMessage({options:W||{},callback:G})}X.init=function(G){var ee=G.transferControlToOffscreen();X.postMessage({canvas:ee},[ee])},X.fire=function(G,ee,ne){if(T)return J(G,null),T;var le=Math.random().toString(36).slice(2);return T=h(function(ve){function be(Oe){Oe.data.callback===le&&(delete V[le],X.removeEventListener("message",be),T=null,f.clear(),ne(),ve())}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(P)return P;if(!i&&a){var X=["var CONFETTI, SIZE = {}, module = {};","("+t.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{P=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(P)}return P}})(),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(P,T){return T?T(P):P}function j(P){return P!=null}function v(P,T,V){return b(P&&j(P[T])?P[T]:g[T],V)}function x(P){return P<0?0:Math.floor(P)}function k(P,T){return Math.floor(Math.random()*(T-P))+P}function w(P){return parseInt(P,16)}function N(P){return P.map(A)}function A(P){var T=String(P).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(P){var T=v(P,"origin",Object);return T.x=v(T,"x",Number),T.y=v(T,"y",Number),T}function E(P){P.width=document.documentElement.clientWidth,P.height=document.documentElement.clientHeight}function C(P){var T=P.getBoundingClientRect();P.width=T.width,P.height=T.height}function B(P){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=P,T}function F(P,T,V,L,X,J,W,G,ee){P.save(),P.translate(T,V),P.rotate(J),P.scale(L,X),P.arc(0,0,1,W,G,ee),P.restore()}function D(P){var T=P.angle*(Math.PI/180),V=P.spread*(Math.PI/180);return{x:P.x,y:P.y,wobble:Math.random()*10,wobbleSpeed:Math.min(.11,Math.random()*.1+.05),velocity:P.startVelocity*.5+Math.random()*P.startVelocity,angle2D:-T+(.5*V-Math.random()*V),tiltAngle:(Math.random()*(.75-.25)+.25)*Math.PI,color:P.color,shape:P.shape,tick:0,totalTicks:P.ticks,decay:P.decay,drift:P.drift,random:Math.random()+2,tiltSin:0,tiltCos:0,wobbleX:0,wobbleY:0,gravity:P.gravity*3,ovalScalar:.6,scalar:P.scalar,flat:P.flat}}function I(P,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(P.fillStyle="rgba("+T.color.r+", "+T.color.g+", "+T.color.b+", "+(1-V)+")",P.beginPath(),o&&T.shape.type==="path"&&typeof T.shape.path=="string"&&Array.isArray(T.shape.matrix))P.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,ee=Math.abs(J-L)*.1,ne=Math.abs(W-X)*.1,le=T.shape.bitmap.width*T.scalar,ve=T.shape.bitmap.height*T.scalar,be=new DOMMatrix([Math.cos(G)*ee,Math.sin(G)*ee,-Math.sin(G)*ne,Math.cos(G)*ne,T.x,T.y]);be.multiplySelf(new DOMMatrix(T.shape.matrix));var Oe=P.createPattern(f.transform(T.shape.bitmap),"no-repeat");Oe.setTransform(be),P.globalAlpha=1-V,P.fillStyle=Oe,P.fillRect(T.x-le/2,T.y-ve/2,le,ve),P.globalAlpha=1}else if(T.shape==="circle")P.ellipse?P.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):F(P,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,ye=5,Se=Math.PI/ye;ye--;)nt=T.x+Math.cos(Te)*ut,ge=T.y+Math.sin(Te)*ut,P.lineTo(nt,ge),Te+=Se,nt=T.x+Math.cos(Te)*We,ge=T.y+Math.sin(Te)*We,P.lineTo(nt,ge),Te+=Se;else P.moveTo(Math.floor(T.x),Math.floor(T.y)),P.lineTo(Math.floor(T.wobbleX),Math.floor(X)),P.lineTo(Math.floor(J),Math.floor(W)),P.lineTo(Math.floor(L),Math.floor(T.wobbleY));return P.closePath(),P.fill(),T.tick<T.totalTicks}function z(P,T,V,L,X){var J=T.slice(),W=P.getContext("2d"),G,ee,ne=h(function(le){function ve(){G=ee=null,W.clearRect(0,0,L.width,L.height),f.clear(),X(),le()}function be(){i&&!(L.width===s.width&&L.height===s.height)&&(L.width=P.width=s.width,L.height=P.height=s.height),!L.width&&!L.height&&(V(P),L.width=P.width,L.height=P.height),W.clearRect(0,0,L.width,L.height),J=J.filter(function(Oe){return I(W,Oe)}),J.length?G=m.frame(be):ve()}G=m.frame(be),ee=ve});return{addFettis:function(le){return J=J.concat(le),ne},canvas:P,promise:ne,reset:function(){G&&m.cancel(G),ee&&ee()}}}function q(P,T){var V=!P,L=!!v(T||{},"resize"),X=!1,J=v(T,"disableForReducedMotion",Boolean),W=a&&!!v(T||{},"useWorker"),G=W?p():null,ee=V?E:C,ne=P&&G?!!P.__confetti_initialized:!1,le=typeof matchMedia=="function"&&matchMedia("(prefers-reduced-motion)").matches,ve;function be(Te,We,ut){for(var nt=v(Te,"particleCount",x),ge=v(Te,"angle",Number),ye=v(Te,"spread",Number),Se=v(Te,"startVelocity",Number),Pe=v(Te,"decay",Number),je=v(Te,"gravity",Number),tt=v(Te,"drift",Number),et=v(Te,"colors",N),rt=v(Te,"ticks",Number),xe=v(Te,"shapes"),_e=v(Te,"scalar"),De=!!v(Te,"flat"),it=S(Te),He=nt,Nt=[],Tr=P.width*it.x,Un=P.height*it.y;He--;)Nt.push(D({x:Tr,y:Un,angle:ge,spread:ye,startVelocity:Se,color:et[He%et.length],shape:xe[k(0,xe.length)],ticks:rt,decay:Pe,gravity:je,drift:tt,scalar:_e,flat:De}));return ve?ve.addFettis(Nt):(ve=z(P,Nt,ee,We,ut),ve.promise)}function Oe(Te){var We=J||v(Te,"disableForReducedMotion",Boolean),ut=v(Te,"zIndex",Number);if(We&&le)return h(function(Se){Se()});V&&ve?P=ve.canvas:V&&!P&&(P=B(ut),document.body.appendChild(P)),L&&!ne&&ee(P);var nt={width:P.width,height:P.height};G&&!ne&&G.init(P),ne=!0,G&&(P.__confetti_initialized=!0);function ge(){if(G){var Se={getBoundingClientRect:function(){if(!V)return P.getBoundingClientRect()}};ee(Se),G.postMessage({resize:{width:Se.width,height:Se.height}});return}nt.width=nt.height=null}function ye(){ve=null,L&&(X=!1,n.removeEventListener("resize",ge)),V&&P&&(document.body.contains(P)&&document.body.removeChild(P),P=null,ne=!1)}return L&&!X&&(X=!0,n.addEventListener("resize",ge,!1)),G?G.fire(Te,nt,ye):be(Te,nt,ye)}return Oe.reset=function(){G&&G.reset(),ve&&ve.reset()},Oe}var U;function Q(){return U||(U=q(null,{useWorker:!0,resize:!0})),U}function H(P,T,V,L,X,J,W){var G=new Path2D(P),ee=new Path2D;ee.addPath(G,new DOMMatrix(T));var ne=new Path2D;return ne.addPath(ee,new DOMMatrix([Math.cos(W)*X,Math.sin(W)*X,-Math.sin(W)*J,Math.cos(W)*J,V,L])),ne}function K(P){if(!o)throw new Error("path confetti are not supported in this browser");var T,V;typeof P=="string"?T=P:(T=P.path,V=P.matrix);var L=new Path2D(T),X=document.createElement("canvas"),J=X.getContext("2d");if(!V){for(var W=1e3,G=W,ee=W,ne=0,le=0,ve,be,Oe=0;Oe<W;Oe+=2)for(var Te=0;Te<W;Te+=2)J.isPointInPath(L,Oe,Te,"nonzero")&&(G=Math.min(G,Oe),ee=Math.min(ee,Te),ne=Math.max(ne,Oe),le=Math.max(le,Te));ve=ne-G,be=le-ee;var We=10,ut=Math.min(We/ve,We/be);V=[ut,0,0,ut,-Math.round(ve/2+G)*ut,-Math.round(be/2+ee)*ut]}return{type:"path",path:T,matrix:V}}function Y(P){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 P=="string"?T=P:(T=P.text,V="scalar"in P?P.scalar:V,X="fontFamily"in P?P.fontFamily:X,L="color"in P?P.color:L);var J=10*V,W=""+J+"px "+X,G=new OffscreenCanvas(J,J),ee=G.getContext("2d");ee.font=W;var ne=ee.measureText(T),le=Math.ceil(ne.actualBoundingBoxRight+ne.actualBoundingBoxLeft),ve=Math.ceil(ne.actualBoundingBoxAscent+ne.actualBoundingBoxDescent),be=2,Oe=ne.actualBoundingBoxLeft+be,Te=ne.actualBoundingBoxAscent+be;le+=be+be,ve+=be+be,G=new OffscreenCanvas(le,ve),ee=G.getContext("2d"),ee.font=W,ee.fillStyle=L,ee.fillText(T,Oe,Te);var We=1/V;return{type:"bitmap",bitmap:G.transferToImageBitmap(),matrix:[We,0,0,We,-le*We/2,-ve*We/2]}}r.exports=function(){return Q().apply(this,arguments)},r.exports.reset=function(){Q().reset()},r.exports.create=q,r.exports.shapeFromPath=K,r.exports.shapeFromText=Y})((function(){return typeof window<"u"?window:typeof self<"u"?self:this||{}})(),Uu,!1);const Hee=Uu.exports;Uu.exports.create;function Wee({deelnemers:t}){const[n,r]=R.useState(!1),[i,s]=R.useState(0),a=t,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),Hee({particleCount:100,spread:70,origin:{y:.6}})},5e3)},h=m=>m%2===0?"#EF4444":"#FFFFFF",f=m=>m%2===0?"#FFFFFF":"#EF4444";return e.jsxs("div",{className:"flex flex-col items-center",children:[e.jsxs(Z.div,{initial:{opacity:0,y:-20},animate:{opacity:1,y:0},className:"text-center mb-8",children:[e.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"}),e.jsx("p",{className:"text-gray-700 text-lg",children:"Draai het wiel en ontdek wie er koffie moet halen!"})]}),e.jsxs("div",{className:"relative mb-8",children:[e.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:e.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"})}),e.jsxs(Z.div,{initial:{opacity:0,scale:.8},animate:{opacity:1,scale:1},className:"relative",children:[e.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"}),e.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:[e.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),v=100+100*Math.cos(g),x=100+100*Math.sin(g),k=100+100*Math.cos(b),w=100+100*Math.sin(b),N=c>180?1:0,A=`M 100 100 L ${v} ${x} A 100 100 0 ${N} 1 ${k} ${w} Z`,S=h(p),E=f(p),C=60,B=100+C*Math.cos(j),F=100+C*Math.sin(j),D=c*p+c/2;return e.jsxs("g",{children:[e.jsx("path",{d:A,fill:S}),e.jsxs("g",{transform:`translate(${B}, ${F}) rotate(${D})`,children:[e.jsx("text",{textAnchor:"middle",fill:E,fontSize:"24",y:"-5",children:m.character.split(" ")[0]}),e.jsx("text",{textAnchor:"middle",fill:E,fontSize:"8",fontWeight:"bold",y:"15",writingMode:"tb",letterSpacing:"1",children:m.name.toUpperCase()})]})]},`${m.id}-${p}`)})}),e.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:e.jsx("div",{className:"text-3xl",children:"☕"})})]}),e.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%)"}})]})]}),e.jsx(ae,{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 Kee(){const[t,n]=R.useState(null),[r,i]=R.useState({name:"",character:"☕ Koffieboon"}),[s,a]=R.useState(!1),o=Xt(),{data:c=[]}=Fe({queryKey:["koffie-deelnemers"],queryFn:()=>ce.entities.KoffieDeelnemer.list()}),d=Le({mutationFn:x=>ce.entities.KoffieDeelnemer.create(x),onSuccess:()=>{o.invalidateQueries({queryKey:["koffie-deelnemers"]}),i({name:"",character:"☕ Koffieboon"})}}),h=Le({mutationFn:({id:x,data:k})=>ce.entities.KoffieDeelnemer.update(x,k),onSuccess:()=>{o.invalidateQueries({queryKey:["koffie-deelnemers"]}),n(null)}}),f=Le({mutationFn:x=>ce.entities.KoffieDeelnemer.delete(x),onSuccess:()=>o.invalidateQueries({queryKey:["koffie-deelnemers"]})}),m=x=>{x.preventDefault(),t?h.mutate({id:t,data:r}):d.mutate({...r,is_present:!0})},p=x=>{h.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,v=["☕ Koffieboon","🦸 Superheld","🥷 Ninja","👑 Koning/Koningin","🤖 Robot","🏴‍☠️ Piraat","🧙 Tovenaar","🦄 Eenhoorn","🐉 Draak","🚀 Astronaut"];return s&&j?e.jsx("div",{className:"min-h-screen bg-gradient-to-br from-yellow-50 via-orange-50 to-red-50 pt-20",children:e.jsxs("div",{className:"max-w-6xl mx-auto px-4 py-12",children:[e.jsxs(ae,{onClick:()=>a(!1),variant:"outline",className:"mb-6",children:[e.jsx(Ht,{className:"w-4 h-4 mr-2"}),"Terug naar deelnemers"]}),e.jsx(Wee,{deelnemers:b})]})}):e.jsx("div",{className:"min-h-screen bg-gradient-to-br from-yellow-50 via-orange-50 to-red-50 pt-20",children:e.jsxs("div",{className:"max-w-4xl mx-auto px-4 py-12",children:[e.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"text-center mb-12",children:[e.jsx("h1",{className:"text-5xl font-bold text-gray-900 mb-4",children:"☕ Koffie Roulette"}),e.jsx("p",{className:"text-xl text-gray-600",children:"Wie moet er vandaag koffie halen?"})]}),e.jsx(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.1},className:"text-center mb-8",children:j?e.jsx(ae,{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!"}):e.jsx("p",{className:"text-gray-600 mb-4",children:"Zorg dat minimaal 2 deelnemers aanwezig zijn om te kunnen spinnen"})}),e.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:[e.jsxs("h2",{className:"text-xl font-bold text-gray-900 mb-4",children:["Deelnemers (",b.length," aanwezig van ",c.length,")"]}),c.length===0?e.jsx("p",{className:"text-gray-500 text-center py-8",children:"Geen deelnemers toegevoegd. Voeg er een paar toe om te beginnen!"}):e.jsx("div",{className:"space-y-3",children:e.jsx(Cr,{children:c.map(x=>e.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:[e.jsxs("div",{className:"flex items-center gap-4 flex-1",children:[e.jsx("div",{className:"text-3xl",children:x.character.split(" ")[0]}),e.jsxs("div",{children:[e.jsx("p",{className:"font-semibold text-gray-900",children:x.name}),e.jsx("p",{className:"text-sm text-gray-600",children:x.character})]})]}),e.jsxs("div",{className:"flex items-center gap-4",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("span",{className:"text-sm font-medium text-gray-700",children:x.is_present?"Aanwezig":"Afwezig"}),e.jsx(Kc,{checked:x.is_present,onCheckedChange:()=>p(x),className:"data-[state=checked]:bg-green-500"})]}),e.jsx(ae,{variant:"outline",size:"sm",onClick:()=>g(x),children:e.jsx(qc,{className:"w-4 h-4"})}),e.jsx(ae,{variant:"outline",size:"sm",onClick:()=>f.mutate(x.id),children:e.jsx(wt,{className:"w-4 h-4"})})]})]},x.id))})})]}),e.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:[e.jsx("h2",{className:"text-xl font-bold text-gray-900 mb-4",children:t?"Deelnemer bewerken":"Nieuwe deelnemer"}),e.jsxs("form",{onSubmit:m,className:"flex flex-col sm:flex-row gap-4",children:[e.jsx(me,{required:!0,placeholder:"Naam",value:r.name,onChange:x=>i({...r,name:x.target.value}),className:"flex-1"}),e.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:v.map(x=>e.jsx("option",{value:x,children:x},x))}),e.jsx(ae,{type:"submit",className:"bg-orange-500 hover:bg-orange-600",children:t?e.jsxs(e.Fragment,{children:[e.jsx(qc,{className:"w-4 h-4 mr-2"}),"Opslaan"]}):e.jsxs(e.Fragment,{children:[e.jsx(Pt,{className:"w-4 h-4 mr-2"}),"Toevoegen"]})}),t&&e.jsx(ae,{type:"button",variant:"outline",onClick:()=>{n(null),i({name:"",character:"☕ Koffieboon"})},children:"Annuleren"})]})]})]})})}const Gee=[{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 Qee(){const[t,n]=R.useState(!1),[r,i]=R.useState(!1),a=new URLSearchParams(window.location.search).get("id"),o=Gee.find(m=>m.id===a);if(!o)return e.jsx("div",{className:"pt-20 min-h-screen bg-white flex items-center justify-center",children:e.jsxs("div",{className:"text-center",children:[e.jsx("h1",{className:"text-3xl font-bold text-gray-900 mb-4",children:"Nieuwsitem niet gevonden"}),e.jsx(de,{to:se("Nieuws"),className:"text-blue-600 hover:underline",children:"Terug naar nieuws"})]})});const c=window.location.href,d=o.title,h=o.short_description,f=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:h,url:c}),n(!1)};return e.jsxs("div",{className:"pt-20 min-h-screen bg-white",children:[e.jsx("div",{className:"bg-[#F4F4F4] py-4",children:e.jsx("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8",children:e.jsxs(de,{to:se("Nieuws"),className:"inline-flex items-center gap-2 text-[#0D0D0F] hover:text-[#FAB868] transition-colors",children:[e.jsx(ht,{className:"w-5 h-5"}),"Terug naar nieuwsoverzicht"]})})}),e.jsx("section",{className:"py-12 bg-white",children:e.jsx("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8",children:e.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},children:[e.jsxs("div",{className:"flex items-center justify-between mb-6",children:[e.jsxs("div",{className:"flex items-center gap-2 text-[#9CA3AF]",children:[e.jsx(Hr,{className:"w-5 h-5"}),e.jsx("span",{children:new Date(o.publication_date).toLocaleDateString("nl-NL",{weekday:"long",year:"numeric",month:"long",day:"numeric"})})]}),e.jsxs("div",{className:"relative",children:[e.jsxs("button",{onClick:()=>n(!t),className:"flex items-center gap-2 px-4 py-2 bg-[#F4F4F4] text-[#0D0D0F] rounded-xl hover:bg-[#FAB868] transition-colors",children:[e.jsx(ty,{className:"w-5 h-5"}),"Delen"]}),e.jsx(Cr,{children:t&&e.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:[e.jsxs("button",{onClick:()=>f("linkedin"),className:"flex items-center gap-3 w-full px-4 py-3 text-left hover:bg-[#F4F4F4] rounded-xl transition-colors",children:[e.jsx(Hs,{className:"w-5 h-5 text-[#0077B5]"}),e.jsx("span",{className:"text-sm font-medium",children:"LinkedIn"})]}),e.jsxs("button",{onClick:()=>f("x"),className:"flex items-center gap-3 w-full px-4 py-3 text-left hover:bg-[#F4F4F4] rounded-xl transition-colors",children:[e.jsx(Ht,{className:"w-5 h-5"}),e.jsx("span",{className:"text-sm font-medium",children:"X (Twitter)"})]}),e.jsxs("button",{onClick:()=>f("facebook"),className:"flex items-center gap-3 w-full px-4 py-3 text-left hover:bg-[#F4F4F4] rounded-xl transition-colors",children:[e.jsx(C4,{className:"w-5 h-5 text-[#1877F2]"}),e.jsx("span",{className:"text-sm font-medium",children:"Facebook"})]}),e.jsx("button",{onClick:()=>f("copy"),className:"flex items-center gap-3 w-full px-4 py-3 text-left hover:bg-[#F4F4F4] rounded-xl transition-colors",children:r?e.jsxs(e.Fragment,{children:[e.jsx(Ft,{className:"w-5 h-5 text-green-600"}),e.jsx("span",{className:"text-sm font-medium text-green-600",children:"Gekopieerd!"})]}):e.jsxs(e.Fragment,{children:[e.jsx(E4,{className:"w-5 h-5"}),e.jsx("span",{className:"text-sm font-medium",children:"Kopieer link"})]})})]})})]})]}),e.jsx("h1",{className:"text-5xl font-bold text-[#0D0D0F] mb-6",children:o.title}),e.jsx("p",{className:"text-2xl text-[#9CA3AF] mb-8",children:o.short_description})]})})}),e.jsx("section",{className:"py-8 bg-[#F4F4F4]",children:e.jsx("div",{className:"max-w-5xl mx-auto px-4 sm:px-6 lg:px-8",children:e.jsx(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},children:e.jsx("div",{className:"aspect-video rounded-3xl overflow-hidden bg-gray-900 shadow-xl",children:e.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})})})})}),e.jsx("section",{className:"py-16 bg-white",children:e.jsx("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8",children:e.jsx("div",{className:"space-y-16",children:o.articles.map((m,p)=>e.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&&e.jsx("div",{className:"rounded-3xl overflow-hidden mb-8",children:e.jsx("img",{src:m.image_url,alt:m.article_title,className:"w-full h-auto"})}),e.jsx("h2",{className:"text-4xl font-bold text-[#0D0D0F] mb-6",children:m.article_title}),e.jsx("div",{className:"prose prose-lg max-w-none mb-6",children:e.jsx(Vu,{children:m.article_content})}),m.source_url&&e.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",e.jsx(Bs,{className:"w-5 h-5"})]})]},p))})})}),e.jsx("section",{className:"py-16 bg-[#F4F4F4]",children:e.jsx("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 text-center",children:e.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},children:[e.jsx("h2",{className:"text-3xl font-bold text-[#0D0D0F] mb-4",children:"Mis geen enkele aflevering"}),e.jsx("p",{className:"text-xl text-[#9CA3AF] mb-8",children:"Volg ons op social media of ontvang dagelijks de video via WhatsApp"}),e.jsx(de,{to:se("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 n4=[{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 Yee(){const[t,n]=R.useState(""),[r,i]=R.useState(!1),[s,a]=R.useState(!1),[o,c]=R.useState(!1),d=n4[0],h=n4.slice(1),f=b=>{b.preventDefault(),console.log("WhatsApp subscription:",t),i(!0),setTimeout(()=>{i(!1),n("")},3e3)},m=window.location.origin+se("Nieuws"),p=d.title;d.short_description;const g=b=>{const j=encodeURIComponent(m),v=encodeURIComponent(p),x={linkedin:`https://www.linkedin.com/sharing/share-offsite/?url=${j}`,x:`https://twitter.com/intent/tweet?url=${j}&text=${v}`,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 e.jsxs("div",{className:"pt-20 min-h-screen bg-white",children:[e.jsx("section",{className:"py-16 bg-[#0D0D0F]",children:e.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:e.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"text-center",children:[e.jsx("h1",{className:"text-5xl sm:text-6xl font-bold text-white mb-6",children:"Daily AI in 48 seconden"}),e.jsx("p",{className:"text-2xl text-gray-400 max-w-3xl mx-auto",children:"Elke werkdag het laatste AI-nieuws, samengevat in 48 seconden"})]})})}),e.jsx("section",{className:"py-16 bg-white",children:e.jsx("div",{className:"max-w-6xl mx-auto px-4 sm:px-6 lg:px-8",children:e.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},children:[e.jsxs("div",{className:"mb-6",children:[e.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"})}),e.jsx("h2",{className:"text-3xl font-bold text-[#0D0D0F]",children:"AI nieuws van vandaag in 48 seconden"})]}),e.jsx("div",{className:"aspect-video rounded-3xl overflow-hidden bg-gray-900 shadow-xl mb-8",children:e.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})}),e.jsxs("div",{className:"flex items-start justify-between gap-4 mb-6",children:[e.jsx("p",{className:"text-xl text-[#9CA3AF] leading-relaxed flex-1",children:d.short_description}),e.jsxs("div",{className:"relative",children:[e.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:[e.jsx(ty,{className:"w-5 h-5"}),e.jsx("span",{className:"hidden sm:inline",children:"Delen"})]}),e.jsx(Cr,{children:s&&e.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:[e.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:[e.jsx(Hs,{className:"w-5 h-5 text-[#0077B5]"}),e.jsx("span",{className:"text-sm font-medium",children:"LinkedIn"})]}),e.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:[e.jsx(Ht,{className:"w-5 h-5"}),e.jsx("span",{className:"text-sm font-medium",children:"X (Twitter)"})]}),e.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:[e.jsx(C4,{className:"w-5 h-5 text-[#1877F2]"}),e.jsx("span",{className:"text-sm font-medium",children:"Facebook"})]}),e.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?e.jsxs(e.Fragment,{children:[e.jsx(Ft,{className:"w-5 h-5 text-green-600"}),e.jsx("span",{className:"text-sm font-medium text-green-600",children:"Gekopieerd!"})]}):e.jsxs(e.Fragment,{children:[e.jsx(E4,{className:"w-5 h-5"}),e.jsx("span",{className:"text-sm font-medium",children:"Kopieer link"})]})})]})})]})]})]})})}),e.jsx("section",{className:"py-12 bg-gradient-to-r from-[#25D366] to-[#20BA5A]",children:e.jsx("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8",children:e.jsx(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},children:r?e.jsxs("div",{className:"text-center py-8",children:[e.jsx("div",{className:"w-16 h-16 bg-white/20 rounded-full flex items-center justify-center mx-auto mb-4",children:e.jsx(gt,{className:"w-8 h-8 text-white"})}),e.jsx("h3",{className:"text-3xl font-bold text-white mb-2",children:"Succesvol ingeschreven!"}),e.jsx("p",{className:"text-xl text-white/90",children:"Je ontvangt vanaf morgen dagelijks het AI-nieuws via WhatsApp."})]}):e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"text-center mb-8",children:[e.jsx("h2",{className:"text-4xl font-bold text-white mb-4",children:"Blijf niet achter, mis geen AI nieuws!"}),e.jsx("p",{className:"text-xl text-white/90",children:"Wij sturen je elke werkdag het belangrijkste AI nieuws in 48 seconden via WhatsApp."})]}),e.jsxs("form",{onSubmit:f,className:"flex flex-col sm:flex-row gap-4 max-w-2xl mx-auto",children:[e.jsx(me,{type:"tel",placeholder:"+31 6 12345678",value:t,onChange:b=>n(b.target.value),required:!0,className:"flex-1 px-6 py-6 text-lg bg-white rounded-xl h-14"}),e.jsxs(ae,{type:"submit",className:"px-8 py-6 bg-[#0D0D0F] text-white hover:bg-[#1a1a1c] font-bold text-lg rounded-xl h-14",children:[e.jsx($o,{className:"w-5 h-5 mr-2"}),"Inschrijven"]})]}),e.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&&e.jsx("section",{className:"py-16 bg-[#F4F4F4]",children:e.jsxs("div",{className:"max-w-6xl mx-auto px-4 sm:px-6 lg:px-8",children:[e.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"mb-12",children:[e.jsx("h2",{className:"text-4xl font-bold text-[#0D0D0F] mb-4",children:"Verdieping van vandaag"}),e.jsx("p",{className:"text-xl text-[#9CA3AF]",children:"Lees meer over de belangrijkste ontwikkelingen"})]}),e.jsx("div",{className:"grid md:grid-cols-2 gap-8",children:d.articles.map((b,j)=>e.jsx(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:j*.1},children:e.jsxs(de,{to:se("NewsDetail")+`?id=${d.id}`,className:"block bg-white rounded-3xl overflow-hidden hover:shadow-xl transition-all group",children:[b.image_url&&e.jsx("div",{className:"aspect-video overflow-hidden",children:e.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"})}),e.jsxs("div",{className:"p-6",children:[e.jsx("h3",{className:"text-2xl font-bold text-[#0D0D0F] mb-3 group-hover:text-[#FAB868] transition-colors",children:b.article_title}),e.jsx("p",{className:"text-[#9CA3AF] line-clamp-3 mb-4",children:b.article_content}),e.jsxs("span",{className:"inline-flex items-center gap-2 text-[#FAB868] font-semibold",children:["Lees meer",e.jsx($e,{className:"w-5 h-5"})]})]})]})},j))})]})}),e.jsx("section",{className:"py-16 bg-white",children:e.jsxs("div",{className:"max-w-6xl mx-auto px-4 sm:px-6 lg:px-8",children:[e.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"mb-12",children:[e.jsx("h2",{className:"text-4xl font-bold text-[#0D0D0F] mb-4",children:"Archief"}),e.jsx("p",{className:"text-xl text-[#9CA3AF]",children:"Bekijk eerdere afleveringen"})]}),e.jsx("div",{className:"space-y-6",children:h.map((b,j)=>e.jsx(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:j*.1},children:e.jsx(de,{to:se("NewsDetail")+`?id=${b.id}`,className:"block bg-[#F4F4F4] rounded-3xl p-6 hover:bg-white hover:shadow-lg transition-all group",children:e.jsxs("div",{className:"flex flex-col md:flex-row gap-6",children:[e.jsx("div",{className:"md:w-64 flex-shrink-0",children:e.jsx("div",{className:"aspect-video rounded-2xl overflow-hidden bg-gray-900",children:e.jsx("img",{src:"https://img.youtube.com/vi/dQw4w9WgXcQ/maxresdefault.jpg",alt:b.title,className:"w-full h-full object-cover"})})}),e.jsxs("div",{className:"flex-1",children:[e.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[e.jsx(Hr,{className:"w-5 h-5 text-[#FAB868]"}),e.jsx("span",{className:"text-sm text-[#9CA3AF]",children:new Date(b.publication_date).toLocaleDateString("nl-NL",{weekday:"long",year:"numeric",month:"long",day:"numeric"})})]}),e.jsx("h3",{className:"text-2xl font-bold text-[#0D0D0F] mb-3 group-hover:text-[#FAB868] transition-colors",children:b.title}),e.jsx("p",{className:"text-lg text-[#9CA3AF] mb-4",children:b.short_description}),e.jsxs("span",{className:"inline-flex items-center gap-2 text-[#FAB868] font-semibold",children:["Bekijk afleverig",e.jsx($e,{className:"w-5 h-5"})]})]})]})})},b.id))})]})})]})}function Xee(){const n=new URLSearchParams(window.location.search).get("slug"),{data:r=[],isLoading:i}=Fe({queryKey:["solutions",n],queryFn:()=>ce.entities.Solution.filter({slug:n,published:!0}),enabled:!!n,initialData:[]}),s=r[0];return i?e.jsx("div",{className:"pt-20 min-h-screen flex items-center justify-center",children:e.jsx("div",{className:"inline-block w-8 h-8 border-4 border-blue-600 border-t-transparent rounded-full animate-spin"})}):s?e.jsxs("div",{className:"pt-20",children:[e.jsxs("section",{className:"relative bg-gradient-to-br from-blue-600 via-indigo-600 to-purple-700 text-white pt-32 pb-20",children:[e.jsxs("div",{className:"absolute inset-0 overflow-hidden",children:[e.jsx("div",{className:"absolute top-0 right-0 w-[600px] h-[600px] bg-white/10 rounded-full blur-3xl"}),e.jsx("div",{className:"absolute bottom-0 left-0 w-[400px] h-[400px] bg-white/10 rounded-full blur-3xl"})]}),e.jsx("div",{className:"relative max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:e.jsxs("div",{className:"grid lg:grid-cols-2 gap-12 items-center",children:[e.jsxs(Z.div,{initial:{opacity:0,x:-20},animate:{opacity:1,x:0},children:[s.subtitle&&e.jsx("p",{className:"text-blue-100 font-semibold mb-4",children:s.subtitle}),e.jsx("h1",{className:"text-5xl sm:text-6xl font-bold mb-6 leading-tight",children:s.hero_title||s.title}),e.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&&e.jsx("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-6 mb-8",children:s.statistics.map((a,o)=>e.jsxs("div",{className:"bg-white/10 backdrop-blur-sm rounded-xl p-4",children:[e.jsx("p",{className:"text-3xl font-bold mb-1",children:a.value}),e.jsx("p",{className:"text-sm text-blue-100",children:a.label})]},o))}),e.jsxs("div",{className:"flex flex-col sm:flex-row gap-4",children:[s.cta_button_link&&e.jsxs(de,{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",e.jsx($e,{className:"w-5 h-5"})]}),e.jsx(de,{to:se("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&&e.jsx(Z.div,{initial:{opacity:0,x:20},animate:{opacity:1,x:0},transition:{delay:.2},className:"hidden lg:block",children:e.jsx("img",{src:s.hero_image,alt:s.title,className:"w-full rounded-3xl shadow-2xl"})})]})})]}),s.features&&s.features.length>0&&e.jsx("section",{className:"py-20 bg-white",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[e.jsx(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-center mb-16",children:e.jsx("h2",{className:"text-4xl font-bold text-gray-900 mb-4",children:"Belangrijkste Features"})}),e.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-8",children:s.features.map((a,o)=>e.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:[e.jsx("div",{className:"w-12 h-12 bg-blue-100 rounded-xl flex items-center justify-center mb-4",children:e.jsx(Ft,{className:"w-6 h-6 text-blue-600"})}),e.jsx("h3",{className:"text-xl font-bold text-gray-900 mb-2",children:a.title}),e.jsx("p",{className:"text-gray-600",children:a.description})]},o))})]})}),s.how_it_works&&s.how_it_works.length>0&&e.jsx("section",{className:"py-20 bg-gray-50",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[e.jsx(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-center mb-16",children:e.jsx("h2",{className:"text-4xl font-bold text-gray-900 mb-4",children:"Hoe het werkt"})}),e.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)=>e.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:[e.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}),e.jsxs("div",{className:"flex-1",children:[e.jsx("h3",{className:"text-2xl font-bold text-gray-900 mb-2",children:a.title}),e.jsx("p",{className:"text-gray-600 text-lg",children:a.description})]})]},o))})]})}),s.use_cases&&s.use_cases.length>0&&e.jsx("section",{className:"py-20 bg-white",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[e.jsx(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-center mb-16",children:e.jsx("h2",{className:"text-4xl font-bold text-gray-900 mb-4",children:"Praktijkvoorbeelden"})}),e.jsx("div",{className:"grid md:grid-cols-2 gap-8",children:s.use_cases.map((a,o)=>e.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&&e.jsx("img",{src:a.image,alt:a.title,className:"w-full h-48 object-cover rounded-xl mb-6"}),e.jsx("h3",{className:"text-2xl font-bold text-gray-900 mb-3",children:a.title}),e.jsx("p",{className:"text-gray-700 text-lg",children:a.description})]},o))})]})}),s.benefits&&s.benefits.length>0&&e.jsx("section",{className:"py-20 bg-gray-50",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[e.jsx(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-center mb-16",children:e.jsx("h2",{className:"text-4xl font-bold text-gray-900 mb-4",children:"Voordelen"})}),e.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-6",children:s.benefits.map((a,o)=>e.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:[e.jsx("div",{className:"w-10 h-10 bg-green-100 rounded-lg flex items-center justify-center flex-shrink-0",children:e.jsx(Ft,{className:"w-5 h-5 text-green-600"})}),e.jsxs("div",{children:[e.jsx("h3",{className:"font-bold text-gray-900 mb-1",children:a.title}),e.jsx("p",{className:"text-gray-600 text-sm",children:a.description})]})]},o))})]})}),s.testimonial&&s.testimonial.quote&&e.jsx("section",{className:"py-20 bg-gradient-to-br from-blue-600 to-indigo-700 text-white",children:e.jsx("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8",children:e.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-center",children:[e.jsx(O4,{className:"w-16 h-16 mx-auto mb-6 text-blue-200"}),e.jsxs("p",{className:"text-2xl md:text-3xl font-medium mb-8 leading-relaxed",children:['"',s.testimonial.quote,'"']}),e.jsxs("div",{className:"flex items-center justify-center gap-4",children:[s.testimonial.image&&e.jsx("img",{src:s.testimonial.image,alt:s.testimonial.author,className:"w-16 h-16 rounded-full"}),e.jsxs("div",{className:"text-left",children:[e.jsx("p",{className:"font-bold",children:s.testimonial.author}),e.jsx("p",{className:"text-blue-200",children:s.testimonial.role}),s.testimonial.company&&e.jsx("p",{className:"text-blue-200",children:s.testimonial.company})]})]})]})})}),e.jsx("section",{className:"py-20 bg-gray-900",children:e.jsx("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 text-center",children:e.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},children:[e.jsx("h2",{className:"text-3xl sm:text-4xl font-bold text-white mb-6",children:s.cta_title||"Klaar om te beginnen?"}),e.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."}),e.jsxs(de,{to:s.cta_button_link||se("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:[e.jsx(ui,{className:"w-5 h-5"}),s.cta_button_text||"Contact opnemen",e.jsx($e,{className:"w-5 h-5"})]})]})})})]}):e.jsx("div",{className:"pt-20 min-h-screen flex items-center justify-center",children:e.jsxs("div",{className:"text-center",children:[e.jsx("h1",{className:"text-3xl font-bold text-gray-900 mb-4",children:"Oplossing niet gevonden"}),e.jsx(de,{to:se("Oplossingen"),className:"text-blue-600 hover:underline",children:"Bekijk alle oplossingen"})]})})}function Jee(){const{data:t=[],isLoading:n}=Fe({queryKey:["solutions"],queryFn:()=>ce.entities.Solution.filter({published:!0},"sort_order",50),initialData:[]});return e.jsxs("div",{className:"pt-20",children:[e.jsx("section",{className:"relative bg-gradient-to-b from-blue-50 to-white pt-32 pb-20",children:e.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:e.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"text-center max-w-3xl mx-auto",children:[e.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:[e.jsx(At,{className:"w-4 h-4"}),"AI Oplossingen"]}),e.jsx("h1",{className:"text-5xl sm:text-6xl font-bold text-gray-900 mb-6",children:"Onze AI Oplossingen"}),e.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."})]})})}),e.jsx("section",{className:"py-20 bg-white",children:e.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:n?e.jsx("div",{className:"text-center py-12",children:e.jsx("div",{className:"inline-block w-8 h-8 border-4 border-blue-600 border-t-transparent rounded-full animate-spin"})}):t.length===0?e.jsx("div",{className:"text-center py-12",children:e.jsx("p",{className:"text-gray-600",children:"Geen oplossingen gevonden. Kom later terug!"})}):e.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-8",children:t.map((r,i)=>e.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&&e.jsxs("div",{className:"relative h-48 overflow-hidden",children:[e.jsx("img",{src:r.hero_image,alt:r.title,className:"w-full h-full object-cover group-hover:scale-105 transition-transform duration-300"}),e.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-black/50 to-transparent"})]}),e.jsxs("div",{className:"p-8",children:[e.jsx("h3",{className:"text-2xl font-bold text-gray-900 mb-2",children:r.title}),r.subtitle&&e.jsx("p",{className:"text-sm text-blue-600 font-medium mb-4",children:r.subtitle}),e.jsx("p",{className:"text-gray-600 mb-6 line-clamp-3",children:r.short_description}),r.statistics&&r.statistics.length>0&&e.jsx("div",{className:"flex gap-4 mb-6 pb-6 border-b border-gray-100",children:r.statistics.slice(0,2).map((s,a)=>e.jsxs("div",{children:[e.jsx("p",{className:"text-2xl font-bold text-blue-600",children:s.value}),e.jsx("p",{className:"text-sm text-gray-600",children:s.label})]},a))}),e.jsxs(de,{to:se(`OplossingDetail?slug=${r.slug}`),className:"inline-flex items-center gap-2 text-blue-600 font-semibold hover:gap-3 transition-all",children:["Meer informatie",e.jsx($e,{className:"w-5 h-5"})]})]})]},r.id))})})}),e.jsx("section",{className:"py-20 bg-gray-900",children:e.jsx("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 text-center",children:e.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},children:[e.jsx("h2",{className:"text-3xl sm:text-4xl font-bold text-white mb-6",children:"Op zoek naar een custom oplossing?"}),e.jsx("p",{className:"text-xl text-gray-400 mb-8",children:"We bouwen ook maatwerk AI-oplossingen specifiek voor jouw bedrijf."}),e.jsxs(de,{to:se("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:[e.jsx(Ki,{className:"w-5 h-5"}),"Bespreek je project",e.jsx($e,{className:"w-5 h-5"})]})]})})})]})}function Zee(){const{data:t=[]}=Fe({queryKey:["teamMembers"],queryFn:()=>ce.entities.TeamMember.filter({active:!0,show_on_about_page:!0},"sort_order"),initialData:[]}),n=[{icon:Xs,title:"Praktijkervaring",description:"Ons team komt uit het bedrijfsleven. Wij begrijpen de dagelijkse uitdagingen van MKB en vertalen AI mogelijkheden naar praktische oplossingen."},{icon:Nu,title:"Full-service",description:"Wij stoppen niet bij advies. Van strategie tot implementatie, van training tot support — wij begeleiden het complete traject."},{icon:Ya,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:_v,title:"Kwaliteit",description:"Wij positioneren ons in het midden tot hoog segment. Geen quick fixes, maar duurzame oplossingen die je bedrijf vooruit helpen."}];return e.jsxs("div",{className:"pt-20",children:[e.jsx("section",{className:"py-20 bg-gradient-to-b from-gray-50 to-white",children:e.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:e.jsxs("div",{className:"grid lg:grid-cols-2 gap-12 items-center",children:[e.jsxs(Z.div,{initial:{opacity:0,x:-20},animate:{opacity:1,x:0},children:[e.jsx("h1",{className:"text-4xl sm:text-5xl font-bold text-gray-900 mb-6",children:"The AI Professionals"}),e.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."}),e.jsx("div",{className:"flex flex-wrap gap-4",children:e.jsxs(de,{to:se("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",e.jsx($e,{className:"w-5 h-5"})]})})]}),e.jsx(Z.div,{initial:{opacity:0,x:20},animate:{opacity:1,x:0},className:"relative",children:e.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"})})]})})}),e.jsx("section",{className:"py-20",children:e.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:e.jsxs("div",{className:"grid md:grid-cols-2 gap-12",children:[e.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:[e.jsx("div",{className:"w-14 h-14 bg-blue-100 rounded-2xl flex items-center justify-center mb-6",children:e.jsx(Ua,{className:"w-7 h-7 text-blue-600"})}),e.jsx("h2",{className:"text-2xl font-bold text-gray-900 mb-4",children:"Onze Missie"}),e.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."})]}),e.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:[e.jsx("div",{className:"w-14 h-14 bg-purple-100 rounded-2xl flex items-center justify-center mb-6",children:e.jsx(zs,{className:"w-7 h-7 text-purple-600"})}),e.jsx("h2",{className:"text-2xl font-bold text-gray-900 mb-4",children:"Onze Visie"}),e.jsx("p",{className:"text-gray-700 text-lg",children:"Een wereld waarin elk bedrijf profiteert van AI. Niet door vervanging van mensen, maar door versterking van hun capaciteiten."})]})]})})}),e.jsx("section",{className:"py-20 bg-gray-50",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[e.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-center mb-16",children:[e.jsx("h2",{className:"text-3xl font-bold text-gray-900 mb-4",children:"Wat maakt ons anders"}),e.jsx("p",{className:"text-xl text-gray-600",children:"De pijlers onder onze aanpak"})]}),e.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-4 gap-8",children:n.map((r,i)=>e.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:[e.jsx("div",{className:"w-12 h-12 bg-blue-100 rounded-xl flex items-center justify-center mb-4",children:e.jsx(r.icon,{className:"w-6 h-6 text-blue-600"})}),e.jsx("h3",{className:"text-xl font-bold text-gray-900 mb-2",children:r.title}),e.jsx("p",{className:"text-gray-600",children:r.description})]},i))})]})}),e.jsx("section",{className:"py-20",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[e.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-center mb-16",children:[e.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:[e.jsx(_n,{className:"w-4 h-4"}),"Ons Team"]}),e.jsx("h2",{className:"text-3xl font-bold text-gray-900 mb-4",children:"Ontmoet de professionals"}),e.jsx("p",{className:"text-xl text-gray-600",children:"Experts met een passie voor AI en MKB"})]}),e.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-8",children:t.map((r,i)=>e.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&&e.jsx("div",{className:"aspect-square overflow-hidden",children:e.jsx("img",{src:r.image_url,alt:r.name,className:"w-full h-full object-cover group-hover:scale-105 transition-transform duration-500"})}),e.jsxs("div",{className:"p-6",children:[e.jsxs("div",{className:"flex items-start justify-between mb-2",children:[e.jsxs("div",{children:[e.jsx("h3",{className:"text-xl font-bold text-gray-900",children:r.name}),e.jsx("p",{className:"text-blue-600 font-medium",children:r.role})]}),r.linkedin_url&&e.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:e.jsx(Hs,{className:"w-5 h-5"})})]}),r.bio&&e.jsx("p",{className:"text-gray-600",children:r.bio})]})]},r.id))})]})}),e.jsx(z6,{}),e.jsx("section",{className:"py-20 bg-gray-900",children:e.jsxs("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 text-center",children:[e.jsx("h2",{className:"text-3xl font-bold text-white mb-6",children:"Word onderdeel van 48-7"}),e.jsx("p",{className:"text-xl text-gray-400 mb-8",children:"Wij zijn altijd op zoek naar getalenteerde professionals die onze missie delen."}),e.jsxs(de,{to:se("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",e.jsx($e,{className:"w-5 h-5"})]})]})})]})}function ts(t){return Array.isArray?Array.isArray(t):U6(t)==="[object Array]"}function ete(t){if(typeof t=="string")return t;let n=t+"";return n=="0"&&1/t==-1/0?"-0":n}function tte(t){return t==null?"":ete(t)}function hi(t){return typeof t=="string"}function q6(t){return typeof t=="number"}function nte(t){return t===!0||t===!1||rte(t)&&U6(t)=="[object Boolean]"}function V6(t){return typeof t=="object"}function rte(t){return V6(t)&&t!==null}function dr(t){return t!=null}function kv(t){return!t.trim().length}function U6(t){return t==null?t===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(t)}const ite="Incorrect 'index' type",ste=t=>`Invalid value for key ${t}`,ate=t=>`Pattern length exceeds max of ${t}.`,ote=t=>`Missing ${t} property in key`,lte=t=>`Property 'weight' in key '${t}' must be a positive integer`,r4=Object.prototype.hasOwnProperty;class cte{constructor(n){this._keys=[],this._keyMap={};let r=0;n.forEach(i=>{let s=$6(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 $6(t){let n=null,r=null,i=null,s=1,a=null;if(hi(t)||ts(t))i=t,n=i4(t),r=H0(t);else{if(!r4.call(t,"name"))throw new Error(ote("name"));const o=t.name;if(i=o,r4.call(t,"weight")&&(s=t.weight,s<=0))throw new Error(lte(o));n=i4(o),r=H0(o),a=t.getFn}return{path:n,id:r,weight:s,src:i,getFn:a}}function i4(t){return ts(t)?t:t.split(".")}function H0(t){return ts(t)?t.join("."):t}function ute(t,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 h=a[d];if(!dr(h))return;if(c===o.length-1&&(hi(h)||q6(h)||nte(h)))r.push(tte(h));else if(ts(h)){i=!0;for(let f=0,m=h.length;f<m;f+=1)s(h[f],o,c+1)}else o.length&&s(h,o,c+1)}};return s(t,hi(n)?n.split("."):n,0),i?r:r[0]}const dte={includeMatches:!1,findAllMatches:!1,minMatchCharLength:1},hte={isCaseSensitive:!1,ignoreDiacritics:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:(t,n)=>t.score===n.score?t.idx<n.idx?-1:1:t.score<n.score?-1:1},fte={location:0,threshold:.6,distance:100},mte={useExtendedSearch:!1,getFn:ute,ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1};var Xe={...hte,...dte,...fte,...mte};const pte=/[^ ]+/g;function gte(t=1,n=3){const r=new Map,i=Math.pow(10,n);return{get(s){const a=s.match(pte).length;if(r.has(a))return r.get(a);const o=1/Math.pow(a,.5*t),c=parseFloat(Math.round(o*i)/i);return r.set(a,c),c},clear(){r.clear()}}}class Tb{constructor({getFn:n=Xe.getFn,fieldNormWeight:r=Xe.fieldNormWeight}={}){this.norm=gte(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,hi(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();hi(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)||kv(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(ts(o)){let c=[];const d=[{nestedArrIndex:-1,value:o}];for(;d.length;){const{nestedArrIndex:h,value:f}=d.pop();if(dr(f))if(hi(f)&&!kv(f)){let m={v:f,i:h,n:this.norm.get(f)};c.push(m)}else ts(f)&&f.forEach((m,p)=>{d.push({nestedArrIndex:p,value:m})})}i.$[a]=c}else if(hi(o)&&!kv(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 H6(t,n,{getFn:r=Xe.getFn,fieldNormWeight:i=Xe.fieldNormWeight}={}){const s=new Tb({getFn:r,fieldNormWeight:i});return s.setKeys(t.map($6)),s.setSources(n),s.create(),s}function xte(t,{getFn:n=Xe.getFn,fieldNormWeight:r=Xe.fieldNormWeight}={}){const{keys:i,records:s}=t,a=new Tb({getFn:n,fieldNormWeight:r});return a.setKeys(i),a.setIndexRecords(s),a}function yh(t,{errors:n=0,currentLocation:r=0,expectedLocation:i=0,distance:s=Xe.distance,ignoreLocation:a=Xe.ignoreLocation}={}){const o=n/t.length;if(a)return o;const c=Math.abs(i-r);return s?o+c/s:c?1:o}function vte(t=[],n=Xe.minMatchCharLength){let r=[],i=-1,s=-1,a=0;for(let o=t.length;a<o;a+=1){let c=t[a];c&&i===-1?i=a:!c&&i!==-1&&(s=a-1,s-i+1>=n&&r.push([i,s]),i=-1)}return t[a-1]&&a-i>=n&&r.push([i,a-1]),r}const Na=32;function yte(t,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:h=Xe.ignoreLocation}={}){if(n.length>Na)throw new Error(ate(Na));const f=n.length,m=t.length,p=Math.max(0,Math.min(i,m));let g=a,b=p;const j=c>1||d,v=j?Array(m):[];let x;for(;(x=t.indexOf(n,b))>-1;){let E=yh(n,{currentLocation:x,expectedLocation:p,distance:s,ignoreLocation:h});if(g=Math.min(E,g),b=x+f,j){let C=0;for(;C<f;)v[x+C]=1,C+=1}}b=-1;let k=[],w=1,N=f+m;const A=1<<f-1;for(let E=0;E<f;E+=1){let C=0,B=N;for(;C<B;)yh(n,{errors:E,currentLocation:p+B,expectedLocation:p,distance:s,ignoreLocation:h})<=g?C=B:N=B,B=Math.floor((N-C)/2+C);N=B;let F=Math.max(1,p-B+1),D=o?m:Math.min(p+B,m)+f,I=Array(D+2);I[D+1]=(1<<E)-1;for(let q=D;q>=F;q-=1){let U=q-1,Q=r[t.charAt(U)];if(j&&(v[U]=+!!Q),I[q]=(I[q+1]<<1|1)&Q,E&&(I[q]|=(k[q+1]|k[q])<<1|1|k[q+1]),I[q]&A&&(w=yh(n,{errors:E,currentLocation:U,expectedLocation:p,distance:s,ignoreLocation:h}),w<=g)){if(g=w,b=U,b<=p)break;F=Math.max(1,2*p-b)}}if(yh(n,{errors:E+1,currentLocation:p,expectedLocation:p,distance:s,ignoreLocation:h})>g)break;k=I}const S={isMatch:b>=0,score:Math.max(.001,w)};if(j){const E=vte(v,c);E.length?d&&(S.indices=E):S.isMatch=!1}return S}function bte(t){let n={};for(let r=0,i=t.length;r<i;r+=1){const s=t.charAt(r);n[s]=(n[s]||0)|1<<i-r-1}return n}const of=String.prototype.normalize?(t=>t.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,"")):(t=>t);class W6{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:h=Xe.ignoreDiacritics,ignoreLocation:f=Xe.ignoreLocation}={}){if(this.options={location:r,threshold:i,distance:s,includeMatches:a,findAllMatches:o,minMatchCharLength:c,isCaseSensitive:d,ignoreDiacritics:h,ignoreLocation:f},n=d?n:n.toLowerCase(),n=h?of(n):n,this.pattern=n,this.chunks=[],!this.pattern.length)return;const m=(g,b)=>{this.chunks.push({pattern:g,alphabet:bte(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 v=p-Na;m(this.pattern.substr(v),v)}}else m(this.pattern,0)}searchIn(n){const{isCaseSensitive:r,ignoreDiacritics:i,includeMatches:s}=this.options;if(n=r?n:n.toLowerCase(),n=i?of(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:h,ignoreLocation:f}=this.options;let m=[],p=0,g=!1;this.chunks.forEach(({pattern:j,alphabet:v,startIndex:x})=>{const{isMatch:k,score:w,indices:N}=yte(n,j,v,{location:a+x,distance:o,threshold:c,findAllMatches:d,minMatchCharLength:h,includeMatches:s,ignoreLocation:f});k&&(g=!0),p+=w,k&&N&&(m=[...m,...N])});let b={isMatch:g,score:g?p/this.chunks.length:1};return g&&s&&(b.indices=m),b}}class ra{constructor(n){this.pattern=n}static isMultiMatch(n){return s4(n,this.multiRegex)}static isSingleMatch(n){return s4(n,this.singleRegex)}search(){}}function s4(t,n){const r=t.match(n);return r?r[1]:null}class jte extends ra{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 wte extends ra{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 kte extends ra{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 Nte extends ra{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 _te extends ra{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 Ste extends ra{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 K6 extends ra{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:h=Xe.ignoreDiacritics,ignoreLocation:f=Xe.ignoreLocation}={}){super(n),this._bitapSearch=new W6(n,{location:r,threshold:i,distance:s,includeMatches:a,findAllMatches:o,minMatchCharLength:c,isCaseSensitive:d,ignoreDiacritics:h,ignoreLocation:f})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(n){return this._bitapSearch.searchIn(n)}}class G6 extends ra{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 W0=[jte,G6,kte,Nte,Ste,_te,wte,K6],a4=W0.length,Ate=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,Cte="|";function Ete(t,n={}){return t.split(Cte).map(r=>{let i=r.trim().split(Ate).filter(a=>a&&!!a.trim()),s=[];for(let a=0,o=i.length;a<o;a+=1){const c=i[a];let d=!1,h=-1;for(;!d&&++h<a4;){const f=W0[h];let m=f.isMultiMatch(c);m&&(s.push(new f(m,n)),d=!0)}if(!d)for(h=-1;++h<a4;){const f=W0[h];let m=f.isSingleMatch(c);if(m){s.push(new f(m,n));break}}}return s})}const Tte=new Set([K6.type,G6.type]);class Ote{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:h=Xe.threshold,distance:f=Xe.distance}={}){this.query=null,this.options={isCaseSensitive:r,ignoreDiacritics:i,includeMatches:s,minMatchCharLength:a,findAllMatches:c,ignoreLocation:o,location:d,threshold:h,distance:f},n=r?n:n.toLowerCase(),n=i?of(n):n,this.pattern=n,this.query=Ete(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?of(n):n;let o=0,c=[],d=0;for(let h=0,f=r.length;h<f;h+=1){const m=r[h];c.length=0,o=0;for(let p=0,g=m.length;p<g;p+=1){const b=m[p],{isMatch:j,indices:v,score:x}=b.search(n);if(j){if(o+=1,d+=x,i){const k=b.constructor.type;Tte.has(k)?c=[...c,...v]:c.push(v)}}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 K0=[];function Pte(...t){K0.push(...t)}function G0(t,n){for(let r=0,i=K0.length;r<i;r+=1){let s=K0[r];if(s.condition(t,n))return new s(t,n)}return new W6(t,n)}const lf={AND:"$and",OR:"$or"},Q0={PATH:"$path",PATTERN:"$val"},Y0=t=>!!(t[lf.AND]||t[lf.OR]),Dte=t=>!!t[Q0.PATH],Ite=t=>!ts(t)&&V6(t)&&!Y0(t),o4=t=>({[lf.AND]:Object.keys(t).map(n=>({[n]:t[n]}))});function Q6(t,n,{auto:r=!0}={}){const i=s=>{let a=Object.keys(s);const o=Dte(s);if(!o&&a.length>1&&!Y0(s))return i(o4(s));if(Ite(s)){const d=o?s[Q0.PATH]:a[0],h=o?s[Q0.PATTERN]:s[d];if(!hi(h))throw new Error(ste(d));const f={keyId:H0(d),pattern:h};return r&&(f.searcher=G0(h,n)),f}let c={children:[],operator:a[0]};return a.forEach(d=>{const h=s[d];ts(h)&&h.forEach(f=>{c.children.push(i(f))})}),c};return Y0(t)||(t=o4(t)),i(t)}function Rte(t,{ignoreFieldNorm:n=Xe.ignoreFieldNorm}){t.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 Fte(t,n){const r=t.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 Mte(t,n){n.score=t.score}function Lte(t,n,{includeMatches:r=Xe.includeMatches,includeScore:i=Xe.includeScore}={}){const s=[];return r&&s.push(Fte),i&&s.push(Mte),t.map(a=>{const{idx:o}=a,c={item:n[o],refIndex:o};return s.length&&s.forEach(d=>{d(a,c)}),c})}class Dl{constructor(n,r={},i){this.options={...Xe,...r},this.options.useExtendedSearch,this._keyStore=new cte(this.options.keys),this.setCollection(n,i)}setCollection(n,r){if(this._docs=n,r&&!(r instanceof Tb))throw new Error(ite);this._myIndex=r||H6(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=hi(n)?hi(this._docs[0])?this._searchStringList(n):this._searchObjectList(n):this._searchLogical(n);return Rte(d,{ignoreFieldNorm:c}),a&&d.sort(o),q6(r)&&r>-1&&(d=d.slice(0,r)),Lte(d,this._docs,{includeMatches:i,includeScore:s})}_searchStringList(n){const r=G0(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:h,indices:f}=r.searchIn(a);d&&s.push({item:a,idx:o,matches:[{score:h,value:a,norm:c,indices:f}]})}),s}_searchLogical(n){const r=Q6(n,this.options),i=(c,d,h)=>{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:h,item:d,matches:g}]:[]}const f=[];for(let m=0,p=c.children.length;m<p;m+=1){const g=c.children[m],b=i(g,d,h);if(b.length)f.push(...b);else if(c.operator===lf.AND)return[]}return f},s=this._myIndex.records,a={},o=[];return s.forEach(({$:c,i:d})=>{if(dr(c)){let h=i(r,c,d);h.length&&(a[d]||(a[d]={idx:d,item:c,matches:[]},o.push(a[d])),h.forEach(({matches:f})=>{a[d].matches.push(...f)}))}}),o}_searchObjectList(n){const r=G0(n,this.options),{keys:i,records:s}=this._myIndex,a=[];return s.forEach(({$:o,i:c})=>{if(!dr(o))return;let d=[];i.forEach((h,f)=>{d.push(...this._findMatches({key:h,value:o[f],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(ts(r))r.forEach(({v:a,i:o,n:c})=>{if(!dr(a))return;const{isMatch:d,score:h,indices:f}=i.searchIn(a);d&&s.push({score:h,key:n,value:a,idx:o,norm:c,indices:f})});else{const{v:a,n:o}=r,{isMatch:c,score:d,indices:h}=i.searchIn(a);c&&s.push({score:d,key:n,value:a,norm:o,indices:h})}return s}}Dl.version="7.1.0";Dl.createIndex=H6;Dl.parseIndex=xte;Dl.config=Xe;Dl.parseQuery=Q6;Pte(Ote);function Bte(){const[t,n]=R.useState([]),[r,i]=R.useState([]),[s,a]=R.useState("relevance"),c=new URLSearchParams(window.location.search).get("q")||"",{data:d=[],isLoading:h}=Fe({queryKey:["cases"],queryFn:()=>ce.entities.CaseStudy.filter({published:!0}),staleTime:300*1e3}),{data:f=[],isLoading:m}=Fe({queryKey:["blogs"],queryFn:()=>ce.entities.BlogPost.filter({published:!0}),staleTime:300*1e3}),{data:p=[],isLoading:g}=Fe({queryKey:["trainings"],queryFn:()=>ce.entities.Training.filter({active:!0}),staleTime:300*1e3}),{data:b=[],isLoading:j}=Fe({queryKey:["vacancies"],queryFn:()=>ce.entities.Vacature.filter({active:!0}),staleTime:300*1e3}),{data:v=[],isLoading:x}=Fe({queryKey:["pages"],queryFn:()=>ce.entities.PageSection.filter({active:!0}),staleTime:300*1e3}),k=h||m||g||j||x,w=Ot.useMemo(()=>k?[]:[...d.map(I=>({type:"case",title:I.client_name||"",description:I.challenge||"",content:`${I.challenge||""} ${I.solution||""}`,category:I.case_type||"",date:I.created_date,slug:I.slug,item:I})),...f.map(I=>({type:"blog",title:I.title||"",description:I.excerpt||"",content:I.content||"",category:I.category||"",date:I.published_date,slug:I.slug,item:I})),...p.map(I=>({type:"training",title:I.title||"",description:I.description||"",content:I.full_description||I.description||"",category:I.category||"",date:I.created_date,slug:I.slug,item:I})),...b.map(I=>({type:"vacancy",title:I.title||"",description:I.role_summary||I.description||"",content:I.description||"",category:I.level||"",date:I.created_date,slug:I.slug,item:I})),...v.map(I=>({type:"page",title:I.title||"",description:I.subtitle||"",content:I.content||"",category:I.page_name||"",date:I.created_date,slug:I.page_name,item:I}))],[d,f,p,b,v,k]),N=Ot.useMemo(()=>new Dl(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]);R.useEffect(()=>{if(!c||k){n([]);return}const I=N.search(c);n(I)},[c,N,k]);const S=[...t.filter(I=>r.length===0?!0:r.includes(I.item.category)||r.includes(I.item.type))].sort((I,z)=>s==="relevance"?I.score-z.score:s==="date"?new Date(z.item.date)-new Date(I.item.date):0),E=[...new Set(t.map(I=>I.item.category).filter(Boolean))],C=(I,z)=>se({case:"CaseDetail",blog:"BlogDetail",training:"TrainingDetail",vacancy:"VacatureDetail",page:"Diensten"}[I])+`?slug=${z}`,B=I=>({case:Xs,blog:$t,training:pr,vacancy:Va,page:Wi})[I]||$t,F=I=>({case:"Case Study",blog:"Blog",training:"Training",vacancy:"Vacature",page:"Pagina"})[I]||I,D=I=>{i(z=>z.includes(I)?z.filter(q=>q!==I):[...z,I])};return e.jsxs("div",{className:"pt-20 min-h-screen bg-white",children:[e.jsx("section",{className:"py-16 bg-[#F4F4F4]",children:e.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:e.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},children:[e.jsxs("div",{className:"flex items-center gap-3 mb-6",children:[e.jsx(mi,{className:"w-8 h-8 text-[#FAB868]"}),e.jsx("h1",{className:"text-4xl font-bold text-[#0D0D0F]",children:"Zoekresultaten"})]}),e.jsx("p",{className:"text-xl text-[#9CA3AF]",children:c?`Resultaten voor "${c}"`:"Voer een zoekterm in"}),!k&&c&&e.jsxs("p",{className:"text-lg text-[#9CA3AF] mt-2",children:[S.length," ",S.length===1?"resultaat":"resultaten"," gevonden"]})]})})}),!k&&c&&t.length>0&&e.jsx("section",{className:"py-8 bg-white border-b border-gray-100",children:e.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:e.jsxs("div",{className:"flex flex-wrap gap-4 items-center",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(cf,{className:"w-5 h-5 text-[#9CA3AF]"}),e.jsx("span",{className:"font-semibold text-[#0D0D0F]",children:"Filters:"})]}),e.jsxs("select",{value:s,onChange:I=>a(I.target.value),className:"px-4 py-2 border border-gray-200 rounded-lg text-[#0D0D0F] focus:border-[#FAB868] focus:outline-none",children:[e.jsx("option",{value:"relevance",children:"Relevantie"}),e.jsx("option",{value:"date",children:"Datum"})]}),e.jsx("div",{className:"flex flex-wrap gap-2",children:E.map(I=>e.jsx("button",{onClick:()=>D(I),className:`px-4 py-2 rounded-full text-sm font-medium transition-colors ${r.includes(I)?"bg-[#FAB868] text-[#0D0D0F]":"bg-gray-100 text-[#9CA3AF] hover:bg-gray-200"}`,children:I},I))}),r.length>0&&e.jsxs("button",{onClick:()=>i([]),className:"flex items-center gap-1 px-3 py-2 text-sm text-[#9CA3AF] hover:text-[#0D0D0F] transition-colors",children:[e.jsx(Ht,{className:"w-4 h-4"}),"Wis filters"]})]})})}),e.jsx("section",{className:"py-16",children:e.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:k?e.jsxs("div",{className:"text-center py-20",children:[e.jsx("div",{className:"inline-block animate-spin rounded-full h-12 w-12 border-b-2 border-[#FAB868]"}),e.jsx("p",{className:"mt-4 text-[#9CA3AF]",children:"Zoeken..."})]}):c?S.length===0?e.jsxs("div",{className:"text-center py-20",children:[e.jsx(mi,{className:"w-16 h-16 text-[#9CA3AF] mx-auto mb-4"}),e.jsxs("p",{className:"text-xl text-[#9CA3AF]",children:['Geen resultaten gevonden voor "',c,'"']}),e.jsx("p",{className:"text-[#9CA3AF] mt-2",children:"Probeer een andere zoekterm"})]}):e.jsx("div",{className:"space-y-6",children:S.map((I,z)=>{const q=B(I.item.type),U=Math.round((1-I.score)*100);return e.jsx(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:z*.05},children:e.jsx(de,{to:C(I.item.type,I.item.slug),className:"block bg-[#F4F4F4] rounded-2xl p-6 hover:bg-white hover:shadow-lg transition-all",children:e.jsxs("div",{className:"flex items-start gap-4",children:[e.jsx("div",{className:"w-12 h-12 bg-[#FAB868] rounded-lg flex items-center justify-center flex-shrink-0",children:e.jsx(q,{className:"w-6 h-6 text-[#0D0D0F]"})}),e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsxs("div",{className:"flex items-center gap-3 mb-2",children:[e.jsx("span",{className:"text-sm font-semibold text-[#FAB868]",children:F(I.item.type)}),I.item.category&&e.jsxs("span",{className:"text-sm text-[#9CA3AF]",children:["• ",I.item.category]}),e.jsxs("span",{className:"text-sm text-[#9CA3AF] ml-auto",children:[U,"% match"]})]}),e.jsx("h3",{className:"text-2xl font-bold text-[#0D0D0F] mb-2",children:I.item.title}),e.jsx("p",{className:"text-[#9CA3AF] mb-4 line-clamp-2",children:I.item.description}),e.jsxs("div",{className:"flex items-center gap-2 text-[#FAB868] font-semibold",children:["Bekijk details",e.jsx($e,{className:"w-5 h-5"})]})]})]})})},`${I.item.type}-${I.item.slug}-${z}`)})}):e.jsxs("div",{className:"text-center py-20",children:[e.jsx(mi,{className:"w-16 h-16 text-[#9CA3AF] mx-auto mb-4"}),e.jsx("p",{className:"text-xl text-[#9CA3AF]",children:"Gebruik de zoekbalk om te zoeken"})]})})})]})}function zte({trainings:t=[]}){const[n,r]=R.useState(new Date),[i,s]=R.useState(null),a=R.useMemo(()=>{const x=[];return t.forEach(k=>{k.sessions&&Array.isArray(k.sessions)&&k.sessions.forEach(w=>{x.push({...w,training:{id:k.id,title:k.title,slug:k.slug,duration:k.duration,category:k.category}})})}),x},[t]),o=R.useMemo(()=>{const x={};return a.forEach(k=>{const w=_t(new Date(k.date),"yyyy-MM-dd");x[w]||(x[w]=[]),x[w].push(k)}),x},[a]),c=Kq(n),d=Hq(n),h=Wq({start:c,end:d}),f=c.getDay(),m=f===0?6:f-1,p=()=>r(WV(n)),g=()=>r(FE(n,1)),b=i?o[_t(i,"yyyy-MM-dd")]||[]:[],j=x=>x.enrolled>=x.capacity,v=x=>VE(ml(new Date(x.date)));return e.jsxs("div",{className:"bg-white rounded-3xl p-8 border-2 border-gray-100",children:[e.jsxs("div",{className:"flex items-center justify-between mb-6",children:[e.jsx("h2",{className:"text-3xl font-bold text-[#0D0D0F]",children:"Trainingskalender"}),e.jsxs("div",{className:"flex items-center gap-4",children:[e.jsx("button",{onClick:p,className:"p-2 hover:bg-[#F4F4F4] rounded-full transition-colors",children:e.jsx(C3,{className:"w-6 h-6 text-[#0D0D0F]"})}),e.jsx("span",{className:"text-xl font-semibold text-[#0D0D0F] min-w-[180px] text-center",children:_t(n,"MMMM yyyy",{locale:Ea})}),e.jsx("button",{onClick:g,className:"p-2 hover:bg-[#F4F4F4] rounded-full transition-colors",children:e.jsx(_4,{className:"w-6 h-6 text-[#0D0D0F]"})})]})]}),e.jsx("div",{className:"grid grid-cols-7 gap-2 mb-2",children:["Ma","Di","Wo","Do","Vr","Za","Zo"].map(x=>e.jsx("div",{className:"text-center text-sm font-medium text-[#9CA3AF] py-2",children:x},x))}),e.jsxs("div",{className:"grid grid-cols-7 gap-2 mb-6",children:[Array.from({length:m}).map((x,k)=>e.jsx("div",{className:"aspect-square"},`pad-${k}`)),h.map(x=>{const k=_t(x,"yyyy-MM-dd"),w=o[k]||[],N=w.length>0,A=i&&Vq(x,i);return e.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]":N?"bg-[#FAB868]/20 text-[#0D0D0F] hover:bg-[#FAB868]/30":"hover:bg-[#F4F4F4] text-[#0D0D0F]"}`,children:[e.jsx("div",{children:_t(x,"d")}),N&&e.jsx("div",{className:"absolute bottom-1 left-1/2 -translate-x-1/2 flex gap-1",children:w.slice(0,3).map((S,E)=>e.jsx("div",{className:`w-1.5 h-1.5 rounded-full ${A?"bg-[#0D0D0F]":"bg-[#FAB868]"}`},E))})]},k)})]}),i&&e.jsxs(Z.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},className:"border-t-2 border-gray-100 pt-6",children:[e.jsx("h3",{className:"text-xl font-bold text-[#0D0D0F] mb-4",children:_t(i,"EEEE d MMMM yyyy",{locale:Ea})}),b.length===0?e.jsx("p",{className:"text-[#9CA3AF]",children:"Geen trainingen op deze datum"}):e.jsx("div",{className:"space-y-4",children:b.map((x,k)=>{const w=v(x),N=j(x);return e.jsx(de,{to:se(`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:e.jsxs("div",{className:"flex items-start justify-between mb-3",children:[e.jsxs("div",{className:"flex-1",children:[e.jsx("h4",{className:`font-bold text-lg mb-1 ${w?"line-through text-gray-500":"text-[#0D0D0F]"}`,children:x.training.title}),e.jsxs("div",{className:"flex flex-wrap items-center gap-3 text-sm text-[#9CA3AF]",children:[e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx(vn,{className:"w-4 h-4"}),_t(new Date(x.date),"HH:mm")]}),e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx(_u,{className:"w-4 h-4"}),x.location]})]})]}),e.jsxs("div",{className:"flex flex-col items-end gap-2",children:[e.jsx("span",{className:"px-3 py-1 bg-[#FAB868]/20 text-[#0D0D0F] rounded-full text-xs font-medium",children:x.training.category}),N?e.jsx("span",{className:"px-3 py-1 bg-red-100 text-red-800 rounded-full text-xs font-medium",children:"Vol"}):e.jsxs("div",{className:"flex items-center gap-1 text-sm text-[#0D0D0F]",children:[e.jsx(_n,{className:"w-4 h-4 text-[#FAB868]"}),e.jsxs("span",{className:"font-medium",children:[x.enrolled,"/",x.capacity]})]})]})]})},k)})})]})]})}const qte=[{id:"all",label:"Alle"},{id:"Basis",label:"Basis"},{id:"Gevorderd",label:"Gevorderd"},{id:"Leiderschap",label:"Leiderschap"},{id:"Technisch",label:"Technisch"}];function Vte(){var h;const[t,n]=R.useState("all"),[r,i]=R.useState(!1),{data:s=[],isLoading:a}=Fe({queryKey:["trainings"],queryFn:()=>ce.entities.Training.filter({active:!0},"-created_date",50),staleTime:300*1e3}),{data:o=[]}=Fe({queryKey:["site-settings"],queryFn:()=>ce.entities.SiteSettings.list()}),c=((h=o.find(f=>f.setting_key==="show_training_calendar"))==null?void 0:h.value)!=="false";Ot.useEffect(()=>{const f=new URLSearchParams(window.location.search),m=f.get("category"),p=f.get("view");m&&n(m),p==="calendar"&&i(!0)},[]);const d=Ot.useMemo(()=>t==="all"?s:s.filter(f=>f.category===t),[s,t]);return e.jsxs("div",{className:"pt-20",children:[e.jsx("section",{className:"relative bg-white pt-32 pb-20",children:e.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:e.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"text-center max-w-3xl mx-auto",children:[e.jsx("div",{className:"w-24 h-24 bg-[#FAB868] rounded-full flex items-center justify-center mx-auto mb-6",children:e.jsx(pr,{className:"w-12 h-12 text-[#0D0D0F]"})}),e.jsx("h1",{className:"text-5xl sm:text-6xl font-bold text-[#0D0D0F] mb-6 leading-tight",children:"Maak je team AI-ready"}),e.jsx("p",{className:"text-2xl text-[#9CA3AF] mb-12",children:"Praktijkgerichte trainingen voor elk niveau"}),e.jsxs(de,{to:se("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:[e.jsx(At,{className:"w-5 h-5"}),"Vind de juiste training",e.jsx($e,{className:"w-5 h-5"})]})]})})}),e.jsx("section",{className:"py-8 border-b border-gray-100 bg-white",children:e.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:e.jsxs("div",{className:"flex items-center justify-between gap-4 flex-wrap",children:[e.jsxs("div",{className:"flex items-center gap-2 overflow-x-auto pb-2",children:[e.jsx(cf,{className:"w-5 h-5 text-[#9CA3AF] flex-shrink-0"}),qte.map(f=>e.jsx("button",{onClick:()=>n(f.id),className:`px-4 py-2 rounded-full text-sm font-medium whitespace-nowrap transition-all ${t===f.id?"bg-[#FAB868] text-[#0D0D0F]":"bg-[#F4F4F4] text-[#0D0D0F] hover:bg-[#E5E5E5]"}`,children:f.label},f.id))]}),c&&e.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:[e.jsx(Hr,{className:"w-4 h-4"}),r?"Toon overzicht":"Toon kalender"]})]})})}),e.jsx("section",{className:"py-20",children:e.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:a?e.jsx("div",{className:"text-center py-12",children:e.jsx("div",{className:"inline-block w-8 h-8 border-4 border-blue-600 border-t-transparent rounded-full animate-spin"})}):r&&c?e.jsx(zte,{trainings:s}):d.length===0?e.jsx("div",{className:"text-center py-12",children:e.jsx("p",{className:"text-gray-600",children:"Geen trainingen gevonden"})}):e.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-8",children:d.map((f,m)=>{const p=pr;return e.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:[f.image_url&&e.jsx(de,{to:se(`TrainingDetail?slug=${f.slug}`),className:"block mb-6",children:e.jsx("img",{src:f.image_url,alt:f.title,loading:"lazy",className:"w-full h-48 object-cover rounded-2xl hover:opacity-90 transition-opacity cursor-pointer"})}),e.jsxs("div",{className:"flex items-start justify-between mb-4",children:[e.jsx("div",{className:"w-14 h-14 bg-[#F4F4F4] rounded-full flex items-center justify-center",children:e.jsx(p,{className:"w-7 h-7 text-[#0D0D0F]"})}),e.jsx("span",{className:"px-3 py-1 bg-[#FAB868]/20 text-[#0D0D0F] rounded-full text-sm font-medium",children:f.category})]}),e.jsx(de,{to:se(`TrainingDetail?slug=${f.slug}`),className:"block",children:e.jsx("h3",{className:"text-2xl font-bold text-[#0D0D0F] mb-2 hover:text-[#FAB868] transition-colors",children:f.title})}),e.jsx("p",{className:"text-[#0D0D0F]/80 mb-6 flex-grow text-lg",children:f.description}),e.jsx("div",{className:"flex items-center gap-4 text-base text-[#9CA3AF] pt-4 border-t border-gray-100 mb-6",children:e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx(vn,{className:"w-5 h-5 text-[#FAB868]"}),f.duration]})}),e.jsx(de,{to:se(`TrainingDetail?slug=${f.slug}`),className:"w-full text-center py-3 bg-[#0D0D0F] text-white font-semibold rounded-full hover:bg-[#1a1a1c] transition-colors",children:"Meer informatie"})]},f.id)})})})}),e.jsx("section",{className:"py-32 bg-[#F4F4F4]",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[e.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-center mb-20",children:[e.jsx("h2",{className:"text-5xl sm:text-6xl font-bold text-[#0D0D0F] mb-6",children:"Onze faciliteiten"}),e.jsx("p",{className:"text-2xl text-[#9CA3AF]",children:"Leren in een inspirerende omgeving"})]}),e.jsxs("div",{className:"grid md:grid-cols-2 gap-8",children:[e.jsx(Z.div,{initial:{opacity:0,x:-20},whileInView:{opacity:1,x:0},viewport:{once:!0},className:"rounded-3xl overflow-hidden shadow-lg",children:e.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"})}),e.jsx(Z.div,{initial:{opacity:0,x:20},whileInView:{opacity:1,x:0},viewport:{once:!0},className:"rounded-3xl overflow-hidden shadow-lg",children:e.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"})})]})]})}),e.jsx("section",{className:"py-32 bg-[#0D0D0F]",children:e.jsxs("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 text-center",children:[e.jsx("h2",{className:"text-5xl font-bold text-white mb-6",children:"Niet zeker welke training past?"}),e.jsx("p",{className:"text-2xl text-[#9CA3AF] mb-12",children:"Gebruik onze Training Advisor"}),e.jsxs(de,{to:se("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:[e.jsx(At,{className:"w-5 h-5"}),"Start Training Advisor",e.jsx($e,{className:"w-5 h-5"})]})]})})]})}function Ute(){const[t,n]=R.useState(0),[r,i]=R.useState({}),[s,a]=R.useState(!1),[o,c]=R.useState(!1),{data:d=[],isLoading:h}=Fe({queryKey:["trainings"],queryFn:()=>ce.entities.Training.list()}),f=d.filter(v=>v.active!==!1),m=[{id:"teamSize",question:"Hoe groot is je team?",icon:_n,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:Ua,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:vn,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=(v,x)=>{i({...r,[v]:x}),t<m.length-1?setTimeout(()=>n(t+1),300):(c(!0),setTimeout(()=>{c(!1),a(!0)},1500))},g=()=>{if(f.length===0)return[];const x=f.map(N=>{var E;let A=0,S=[];if(r.level==="beginner"&&N.category==="Basis"&&(A+=3,S.push("Perfect startpunt voor beginners")),r.level==="intermediate"&&(N.category==="Basis"||N.category==="Gevorderd")&&(A+=2,S.push("Past bij je huidige niveau")),r.level==="advanced"&&(N.category==="Gevorderd"||N.category==="Technisch")&&(A+=3,S.push("Voor gevorderden")),r.goal==="awareness"&&N.category==="Basis"&&(A+=2,S.push("Ideaal voor bewustwording")),r.goal==="productivity"&&(N.title.toLowerCase().includes("copilot")||N.title.toLowerCase().includes("productiviteit")||(E=N.description)!=null&&E.toLowerCase().includes("efficiency"))&&(A+=3,S.push("Direct toepasbaar voor productiviteit")),r.goal==="development"&&N.category==="Technisch"&&(A+=3,S.push("Voor hands-on development")),r.goal==="leadership"&&N.category==="Leiderschap"&&(A+=3,S.push("Strategisch AI leiderschap")),r.teamSize==="large"&&N.category==="Leiderschap"&&(A+=2,S.push("Belangrijk voor grotere teams")),N.target_audience){const C=N.target_audience.toLowerCase();r.goal==="leadership"&&(C.includes("management")||C.includes("leider"))&&(A+=2),r.goal==="development"&&(C.includes("developer")||C.includes("technisch"))&&(A+=2),r.level==="beginner"&&(C.includes("iedereen")||C.includes("beginners"))&&(A+=1)}return{training:N,score:A,reason:S.join(" • ")||"Past bij je profiel"}}).sort((N,A)=>A.score-N.score),k=x.filter(N=>N.score>0);return(k.length>0?k:x.slice(0,5)).map(({training:N,reason:A})=>({title:N.title,slug:N.slug,reason:A,priority:N.category||"Aanbevolen",duration:N.duration,description:N.description}))},b=m[t],j=(t+1)/m.length*100;if(h)return e.jsx("div",{className:"pt-20 min-h-screen bg-gradient-to-b from-purple-50 to-white flex items-center justify-center",children:e.jsxs("div",{className:"text-center",children:[e.jsx(N8,{className:"w-12 h-12 text-purple-600 animate-spin mx-auto mb-4"}),e.jsx("p",{className:"text-gray-600",children:"Trainingen aan het laden..."})]})});if(o)return e.jsx("div",{className:"pt-20 min-h-screen bg-gradient-to-b from-purple-50 to-white flex items-center justify-center",children:e.jsxs(Z.div,{initial:{opacity:0,scale:.9},animate:{opacity:1,scale:1},className:"text-center",children:[e.jsx("div",{className:"w-20 h-20 bg-purple-100 rounded-full flex items-center justify-center mx-auto mb-6",children:e.jsx(At,{className:"w-10 h-10 text-purple-600 animate-pulse"})}),e.jsx("h2",{className:"text-2xl font-bold text-gray-900 mb-2",children:"Bezig met analyseren..."}),e.jsx("p",{className:"text-gray-600",children:"We zoeken de beste trainingen voor jou"})]})});if(s){const v=g();return e.jsx("div",{className:"pt-20 min-h-screen bg-gradient-to-b from-purple-50 to-white",children:e.jsxs("div",{className:"max-w-3xl mx-auto px-4 sm:px-6 lg:px-8 py-20",children:[e.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"text-center mb-12",children:[e.jsx("div",{className:"w-16 h-16 bg-green-100 rounded-full flex items-center justify-center mx-auto mb-6",children:e.jsx(gt,{className:"w-8 h-8 text-green-600"})}),e.jsx("h1",{className:"text-3xl font-bold text-gray-900 mb-4",children:"Jouw gepersonaliseerde aanbevelingen"}),e.jsx("p",{className:"text-gray-600",children:"Op basis van je antwoorden hebben we de beste trainingen voor je geselecteerd"})]}),v.length>0?e.jsx("div",{className:"space-y-6 mb-12",children:v.map((x,k)=>e.jsx(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:k*.15},className:"bg-white rounded-2xl p-6 border border-gray-100 shadow-sm hover:shadow-lg transition-all",children:e.jsxs("div",{className:"flex items-start justify-between gap-4",children:[e.jsxs("div",{className:"flex-1",children:[e.jsxs("div",{className:"flex items-center gap-3 mb-3",children:[e.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&&e.jsxs("span",{className:"text-sm text-gray-500 flex items-center gap-1",children:[e.jsx(vn,{className:"w-4 h-4"}),x.duration]})]}),e.jsx("h3",{className:"text-xl font-bold text-gray-900 mb-2",children:x.title}),e.jsx("p",{className:"text-gray-600 mb-2",children:x.description}),e.jsx("p",{className:"text-sm text-purple-600 font-medium",children:x.reason})]}),e.jsxs("div",{className:"flex flex-col gap-2",children:[e.jsx(de,{to:se("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:e.jsx($e,{className:"w-5 h-5 text-gray-600"})}),e.jsx(de,{to:se("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:e.jsx(gt,{className:"w-5 h-5 text-purple-600"})})]})]})},k))}):e.jsxs("div",{className:"bg-white rounded-2xl p-12 text-center mb-12",children:[e.jsx("p",{className:"text-gray-600 mb-4",children:"Er zijn momenteel geen trainingen beschikbaar die passen bij je profiel."}),e.jsx("p",{className:"text-gray-500",children:"Neem contact met ons op voor een persoonlijk advies."})]}),e.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 justify-center",children:[e.jsxs(de,{to:se("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",e.jsx($e,{className:"w-5 h-5"})]}),e.jsx(de,{to:se("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"})]}),e.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:[e.jsx(ht,{className:"w-4 h-4"}),"Opnieuw beginnen"]})]})})}return e.jsx("div",{className:"pt-20 min-h-screen bg-gradient-to-b from-purple-50 to-white",children:e.jsxs("div",{className:"max-w-2xl mx-auto px-4 sm:px-6 lg:px-8 py-20",children:[e.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"text-center mb-12",children:[e.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:[e.jsx(At,{className:"w-4 h-4"}),"Training Advisor"]}),e.jsx("h1",{className:"text-3xl font-bold text-gray-900 mb-4",children:"Vind de perfecte training"}),e.jsxs("p",{className:"text-gray-600",children:["Beantwoord een paar vragen en ontvang direct een persoonlijk advies gebaseerd op ",f.length," beschikbare trainingen"]})]}),e.jsxs("div",{className:"mb-8",children:[e.jsxs("div",{className:"flex justify-between text-sm text-gray-500 mb-2",children:[e.jsxs("span",{children:["Vraag ",t+1," van ",m.length]}),e.jsxs("span",{children:[Math.round(j),"%"]})]}),e.jsx("div",{className:"h-2 bg-gray-200 rounded-full overflow-hidden",children:e.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}})})]}),e.jsx(Cr,{mode:"wait",children:e.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:[e.jsxs("div",{className:"flex items-center gap-3 mb-6",children:[e.jsx("div",{className:"w-12 h-12 bg-purple-100 rounded-xl flex items-center justify-center",children:e.jsx(b.icon,{className:"w-6 h-6 text-purple-600"})}),e.jsx("h2",{className:"text-xl font-bold text-gray-900",children:b.question})]}),e.jsx("div",{className:"space-y-3",children:b.options.map((v,x)=>e.jsxs("button",{onClick:()=>p(b.id,v.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]===v.value?"border-purple-600 bg-purple-50":"border-gray-200"}`,children:[e.jsx("p",{className:"font-semibold text-gray-900",children:v.label}),e.jsx("p",{className:"text-sm text-gray-500",children:v.description})]},x))})]},t)}),t>0&&e.jsxs("button",{onClick:()=>n(t-1),className:"mt-6 flex items-center gap-2 text-gray-600 hover:text-gray-900 transition-colors",children:[e.jsx(ht,{className:"w-4 h-4"}),"Vorige vraag"]})]})})}function $te(){var o,c;const n=new URLSearchParams(window.location.search).get("slug"),{data:r=[],isLoading:i}=Fe({queryKey:["trainings",n],queryFn:()=>ce.entities.Training.filter({slug:n,active:!0}),enabled:!!n}),s=r[0];if(i)return e.jsx("div",{className:"pt-20 min-h-screen flex items-center justify-center bg-white",children:e.jsx("div",{className:"inline-block animate-spin rounded-full h-12 w-12 border-b-2 border-[#FAB868]"})});if(!s)return e.jsx("div",{className:"pt-20 min-h-screen flex items-center justify-center bg-white",children:e.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 e.jsxs("div",{className:"pt-20 bg-white",children:[e.jsxs(xl,{children:[e.jsx("title",{children:`${s.title} - AI Training - 48-7`}),e.jsx("meta",{name:"description",content:s.description}),e.jsx("meta",{property:"og:title",content:s.title}),e.jsx("meta",{property:"og:description",content:s.description}),e.jsx("meta",{property:"og:type",content:"website"}),s.image_url&&e.jsx("meta",{property:"og:image",content:s.image_url}),e.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})})]}),e.jsxs("section",{className:"relative overflow-hidden pt-16 pb-12 bg-[#F4F4F4]",children:[s.image&&e.jsx("img",{src:s.image,alt:s.title,className:"absolute inset-0 w-full h-full object-cover opacity-30"}),e.jsx("div",{className:"relative max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-16",children:e.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"max-w-4xl mx-auto",children:[e.jsx("div",{className:"flex items-center gap-4 mb-6",children:e.jsxs(de,{to:se("Training"),className:"inline-flex items-center text-[#0D0D0F] hover:text-[#FAB868] transition-colors",children:[e.jsx(ht,{className:"w-4 h-4 mr-2"})," Terug naar overzicht"]})}),e.jsx("div",{className:"w-24 h-24 bg-[#FAB868] rounded-full flex items-center justify-center mb-6",children:e.jsx(pr,{className:"w-12 h-12 text-[#0D0D0F]"})}),e.jsx("h1",{className:"text-5xl sm:text-6xl font-bold text-[#0D0D0F] mb-4",children:s.title}),e.jsx("p",{className:"text-2xl text-[#9CA3AF] mb-8",children:s.description}),e.jsxs("div",{className:"flex flex-wrap items-center gap-6 text-lg text-[#0D0D0F]",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(vn,{className:"w-6 h-6 text-[#FAB868]"}),e.jsx("span",{children:s.duration})]}),s.target_audience&&e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(_n,{className:"w-6 h-6 text-[#FAB868]"}),e.jsx("span",{children:s.target_audience})]}),s.price&&e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(A1,{className:"w-6 h-6 text-[#FAB868]"}),e.jsx("span",{children:s.price})]})]})]})})]}),e.jsx("section",{className:"py-20",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 grid lg:grid-cols-3 gap-12",children:[e.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"lg:col-span-2 space-y-10",children:[e.jsxs("div",{children:[e.jsx("h2",{className:"text-4xl font-bold text-[#0D0D0F] mb-6",children:"Over deze training"}),e.jsx("div",{className:"training-content",children:a?e.jsx("div",{dangerouslySetInnerHTML:{__html:s.full_description||s.description}}):e.jsx(Vu,{children:s.full_description||s.description})}),e.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&&e.jsxs("div",{children:[e.jsx("h3",{className:"text-3xl font-bold text-[#0D0D0F] mb-6",children:"Wat je leert"}),e.jsx("ul",{className:"space-y-4",children:s.learning_goals.map((d,h)=>e.jsxs("li",{className:"flex items-start gap-3 text-xl text-[#0D0D0F]/80",children:[e.jsx(gt,{className:"w-7 h-7 text-[#FAB868] flex-shrink-0 mt-1"}),e.jsx("span",{children:d})]},h))})]})]}),e.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:e.jsxs("div",{className:"bg-[#F4F4F4] rounded-3xl p-8 sticky top-28",children:[e.jsx("h3",{className:"text-2xl font-bold text-[#0D0D0F] mb-6",children:"Details"}),e.jsxs("ul",{className:"space-y-4 text-lg text-[#0D0D0F]/80 mb-8",children:[e.jsxs("li",{className:"flex items-center gap-3",children:[e.jsx(vn,{className:"w-6 h-6 text-[#FAB868]"}),e.jsx("span",{children:e.jsx("span",{className:"font-semibold",children:s.duration})})]}),s.target_audience&&e.jsxs("li",{className:"flex items-start gap-3",children:[e.jsx(_n,{className:"w-6 h-6 text-[#FAB868] flex-shrink-0 mt-1"}),e.jsx("span",{children:s.target_audience})]}),s.price&&e.jsxs("li",{className:"flex items-center gap-3",children:[e.jsx(A1,{className:"w-6 h-6 text-[#FAB868]"}),e.jsx("span",{className:"font-semibold",children:s.price})]})]}),s.sessions&&s.sessions.length>0&&e.jsxs("div",{className:"mb-8 pb-8 border-b-2 border-gray-200",children:[e.jsxs("h4",{className:"text-lg font-bold text-[#0D0D0F] mb-4 flex items-center gap-2",children:[e.jsx(Hr,{className:"w-5 h-5 text-[#FAB868]"}),"Geplande data"]}),e.jsx("div",{className:"space-y-3",children:s.sessions.sort((d,h)=>new Date(d.date)-new Date(h.date)).map((d,h)=>{const f=VE(ml(new Date(d.date))),m=d.enrolled>=d.capacity;return e.jsxs("div",{className:`p-3 rounded-xl border-2 ${f?"border-gray-200 bg-gray-50 opacity-60":"border-gray-200 hover:border-[#FAB868] transition-colors"}`,children:[e.jsx("div",{className:`font-semibold text-sm mb-1 ${f?"line-through text-gray-500":"text-[#0D0D0F]"}`,children:_t(new Date(d.date),"EEEE d MMMM yyyy",{locale:Ea})}),e.jsxs("div",{className:"text-xs text-[#9CA3AF] space-y-1",children:[e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx(vn,{className:"w-3 h-3"}),_t(new Date(d.date),"HH:mm")]}),e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx(_u,{className:"w-3 h-3"}),d.location]}),e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx(_n,{className:"w-3 h-3"}),d.enrolled,"/",d.capacity," deelnemers",m&&e.jsx("span",{className:"ml-2 px-2 py-0.5 bg-red-100 text-red-800 rounded-full text-xs font-medium",children:"Vol"})]})]})]},h)})})]}),e.jsxs(de,{to:se("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",e.jsx($e,{className:"w-5 h-5"})]})]})})]})}),e.jsx("section",{className:"py-20 bg-[#0D0D0F]",children:e.jsxs("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 text-center",children:[e.jsx("h2",{className:"text-5xl font-bold text-white mb-6",children:"Bekijk al onze trainingen"}),e.jsxs(de,{to:se("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:[e.jsx(pr,{className:"w-5 h-5"}),"Alle Trainingen"]})]})})]})}function Hte(){var o,c;const n=new URLSearchParams(window.location.search).get("slug"),{data:r=[],isLoading:i}=Fe({queryKey:["vacature",n],queryFn:()=>ce.entities.Vacature.filter({slug:n,active:!0}),enabled:!!n}),s=r[0];if(i)return e.jsx("div",{className:"pt-20 min-h-screen bg-white flex items-center justify-center",children:e.jsx("div",{className:"inline-block animate-spin rounded-full h-12 w-12 border-b-2 border-[#FAB868]"})});if(!s)return e.jsx("div",{className:"pt-20 min-h-screen bg-white flex items-center justify-center",children:e.jsxs("div",{className:"text-center",children:[e.jsx("h1",{className:"text-3xl font-bold text-gray-900 mb-4",children:"Vacature niet gevonden"}),e.jsx(de,{to:se("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 e.jsxs("div",{className:"pt-20 min-h-screen bg-white",children:[e.jsxs(xl,{children:[e.jsx("title",{children:`${s.title} - Vacatures - 48-7`}),e.jsx("meta",{name:"description",content:s.role_summary||s.description}),e.jsx("meta",{property:"og:title",content:s.title}),e.jsx("meta",{property:"og:description",content:s.role_summary||s.description}),e.jsx("meta",{property:"og:type",content:"website"}),e.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})})]}),e.jsx("div",{className:"bg-[#F4F4F4] py-4",children:e.jsx("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8",children:e.jsxs(de,{to:se("Vacatures"),className:"inline-flex items-center gap-2 text-[#0D0D0F] hover:text-[#FAB868] transition-colors",children:[e.jsx(ht,{className:"w-5 h-5"}),"Terug naar vacatures"]})})}),e.jsx("section",{className:"py-16 bg-white",children:e.jsx("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8",children:e.jsxs(Z.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},children:[e.jsxs("div",{className:"flex flex-wrap items-center gap-3 mb-6",children:[e.jsx("span",{className:"px-4 py-2 bg-[#FAB868] text-[#0D0D0F] rounded-full text-sm font-semibold",children:s.level}),e.jsxs("div",{className:"flex items-center gap-2 text-[#9CA3AF]",children:[e.jsx(_u,{className:"w-5 h-5"}),e.jsx("span",{children:s.location})]}),e.jsxs("div",{className:"flex items-center gap-2 text-[#9CA3AF]",children:[e.jsx(vn,{className:"w-5 h-5"}),e.jsx("span",{children:s.type})]}),s.salary_range&&e.jsxs("div",{className:"flex items-center gap-2 text-[#9CA3AF]",children:[e.jsx(Xs,{className:"w-5 h-5"}),e.jsx("span",{children:s.salary_range})]})]}),e.jsx("h1",{className:"text-5xl font-bold text-[#0D0D0F] mb-6",children:s.title}),e.jsx("p",{className:"text-2xl text-[#9CA3AF] mb-8",children:s.role_summary||s.description}),e.jsxs(de,{to:se("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",e.jsx($e,{className:"w-5 h-5"})]})]})})}),e.jsx("section",{className:"py-16 bg-[#F4F4F4]",children:e.jsx("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8",children:e.jsxs("div",{className:"space-y-12",children:[e.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"bg-white rounded-3xl p-8",children:[e.jsx("h2",{className:"text-3xl font-bold text-[#0D0D0F] mb-6",children:"De rol"}),e.jsx("div",{className:"text-lg text-[#9CA3AF] leading-relaxed prose prose-lg max-w-none",children:a?e.jsx("div",{dangerouslySetInnerHTML:{__html:s.description}}):e.jsx(Vu,{children:s.description})})]}),e.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"bg-white rounded-3xl p-8",children:[e.jsx("h2",{className:"text-3xl font-bold text-[#0D0D0F] mb-6",children:"Wat ga je doen?"}),s.responsibilities&&s.responsibilities.length>0?e.jsx("ul",{className:"space-y-3",children:s.responsibilities.map((d,h)=>e.jsxs("li",{className:"flex items-start gap-3",children:[e.jsx(gt,{className:"w-6 h-6 text-[#FAB868] flex-shrink-0 mt-0.5"}),e.jsx("span",{className:"text-lg text-[#9CA3AF]",children:d})]},h))}):e.jsx("p",{className:"text-lg text-[#9CA3AF]",children:"Meer details volgen binnenkort."})]}),e.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"bg-white rounded-3xl p-8",children:[e.jsx("h2",{className:"text-3xl font-bold text-[#0D0D0F] mb-6",children:"Wat breng je mee?"}),s.requirements&&s.requirements.length>0?e.jsx("ul",{className:"space-y-3 mb-8",children:s.requirements.map((d,h)=>e.jsxs("li",{className:"flex items-start gap-3",children:[e.jsx(gt,{className:"w-6 h-6 text-[#FAB868] flex-shrink-0 mt-0.5"}),e.jsx("span",{className:"text-lg text-[#9CA3AF]",children:d})]},h))}):e.jsx("p",{className:"text-lg text-[#9CA3AF] mb-8",children:"Meer details volgen binnenkort."})]}),e.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"bg-white rounded-3xl p-8",children:[e.jsx("h2",{className:"text-3xl font-bold text-[#0D0D0F] mb-6",children:"Wat bieden wij?"}),s.benefits&&s.benefits.length>0?e.jsx("ul",{className:"space-y-3",children:s.benefits.map((d,h)=>e.jsxs("li",{className:"flex items-start gap-3",children:[e.jsx(gt,{className:"w-6 h-6 text-[#FAB868] flex-shrink-0 mt-0.5"}),e.jsx("span",{className:"text-lg text-[#9CA3AF]",children:d})]},h))}):e.jsx("p",{className:"text-lg text-[#9CA3AF]",children:"Meer details volgen binnenkort."})]})]})})}),e.jsx("section",{className:"py-20 bg-[#0D0D0F]",children:e.jsx("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 text-center",children:e.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},children:[e.jsx("h2",{className:"text-4xl font-bold text-white mb-6",children:"Enthousiast geworden?"}),e.jsx("p",{className:"text-xl text-gray-300 mb-8",children:"Solliciteer direct of neem contact op voor meer informatie"}),e.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 justify-center",children:[e.jsxs(de,{to:se("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",e.jsx($e,{className:"w-5 h-5"})]}),e.jsx(de,{to:se("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 Wte(){const{data:t=[],isLoading:n}=Fe({queryKey:["vacatures"],queryFn:()=>ce.entities.Vacature.filter({active:!0},"-created_date")});return e.jsxs("div",{className:"pt-20",children:[e.jsxs("section",{className:"relative h-[500px] overflow-hidden",children:[e.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"}),e.jsx("div",{className:"absolute inset-0 bg-gradient-to-r from-[#0D0D0F]/90 via-[#0D0D0F]/70 to-transparent"}),e.jsx("div",{className:"relative h-full max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 flex items-center",children:e.jsxs(Z.div,{initial:{opacity:0,y:30},animate:{opacity:1,y:0},className:"max-w-2xl text-white",children:[e.jsx("h1",{className:"text-5xl sm:text-6xl lg:text-7xl font-bold mb-6 leading-tight",children:"Bouw de toekomst van AI"}),e.jsx("p",{className:"text-2xl text-gray-200 mb-8",children:"Word onderdeel van het snelst groeiende AI team van Nederland"}),e.jsxs("div",{className:"flex flex-wrap gap-8 text-lg",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(Ki,{className:"w-6 h-6 text-[#FAB868]"}),e.jsx("span",{children:"Groeiend bedrijf"})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(_n,{className:"w-6 h-6 text-[#FAB868]"}),e.jsx("span",{children:"Talent-first cultuur"})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(Wi,{className:"w-6 h-6 text-[#FAB868]"}),e.jsx("span",{children:"Cutting-edge projecten"})]})]})]})})]}),e.jsx("section",{className:"py-20 bg-white",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[e.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-center mb-16",children:[e.jsx("h2",{className:"text-5xl font-bold text-[#0D0D0F] mb-6",children:"Open vacatures"}),e.jsx("p",{className:"text-2xl text-[#9CA3AF]",children:"Vind jouw plek in ons team"})]}),n?e.jsx("div",{className:"text-center py-12",children:e.jsx("div",{className:"inline-block w-8 h-8 border-4 border-blue-600 border-t-transparent rounded-full animate-spin"})}):t.length===0?e.jsx("div",{className:"text-center py-12",children:e.jsx("p",{className:"text-gray-600",children:"Momenteel geen openstaande vacatures"})}):e.jsx("div",{className:"space-y-6",children:t.map((r,i)=>e.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:e.jsxs("div",{className:"flex flex-col lg:flex-row lg:items-center justify-between gap-6",children:[e.jsxs("div",{className:"flex-1",children:[e.jsxs("div",{className:"flex flex-wrap items-center gap-3 mb-4",children:[e.jsx("span",{className:"px-4 py-1 bg-[#FAB868] text-[#0D0D0F] rounded-full text-sm font-semibold",children:r.level}),e.jsxs("div",{className:"flex items-center gap-2 text-[#9CA3AF]",children:[e.jsx(_u,{className:"w-4 h-4"}),e.jsx("span",{children:r.location})]}),e.jsxs("div",{className:"flex items-center gap-2 text-[#9CA3AF]",children:[e.jsx(vn,{className:"w-4 h-4"}),e.jsx("span",{children:r.type})]})]}),e.jsx("h3",{className:"text-3xl font-bold text-[#0D0D0F] mb-3 group-hover:text-[#FAB868] transition-colors",children:r.title}),e.jsx("p",{className:"text-xl text-[#9CA3AF] mb-4",children:r.role_summary||r.description}),r.requirements&&r.requirements.length>0&&e.jsx("div",{className:"flex flex-wrap gap-2",children:r.requirements.slice(0,4).map((s,a)=>e.jsx("span",{className:"px-3 py-1 bg-white text-[#0D0D0F] rounded-full text-sm",children:s},a))})]}),e.jsxs("div",{className:"flex gap-3",children:[e.jsx(de,{to:se("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"}),e.jsxs(de,{to:se("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",e.jsx($e,{className:"w-5 h-5"})]})]})]})},i))})]})}),e.jsx("section",{className:"py-20 bg-[#F4F4F4]",children:e.jsx("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 text-center",children:e.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},children:[e.jsx(Xs,{className:"w-16 h-16 text-[#FAB868] mx-auto mb-6"}),e.jsx("h2",{className:"text-4xl font-bold text-[#0D0D0F] mb-6",children:"Zie je jezelf niet in deze vacatures?"}),e.jsx("p",{className:"text-xl text-[#9CA3AF] mb-8",children:"We zijn altijd op zoek naar talent. Stuur ons een open sollicitatie."}),e.jsxs(de,{to:se("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",e.jsx($e,{className:"w-5 h-5"})]})]})})}),e.jsx("section",{className:"py-20 bg-white",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[e.jsx(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-center mb-16",children:e.jsx("h2",{className:"text-5xl font-bold text-[#0D0D0F] mb-6",children:"Waarom 48-7?"})}),e.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:Ki},{title:"Impact maken",description:"Bouw oplossingen die Nederlandse bedrijven écht verder helpen",icon:Wi},{title:"Geweldig team",description:"Werk samen met gepassioneerde professionals in een informele sfeer",icon:_n}].map((r,i)=>e.jsxs(Z.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:i*.1},className:"text-center",children:[e.jsx("div",{className:"w-20 h-20 bg-[#FAB868] rounded-full flex items-center justify-center mx-auto mb-6",children:e.jsx(r.icon,{className:"w-10 h-10 text-[#0D0D0F]"})}),e.jsx("h3",{className:"text-2xl font-bold text-[#0D0D0F] mb-3",children:r.title}),e.jsx("p",{className:"text-lg text-[#9CA3AF]",children:r.description})]},i))})]})})]})}function Kte({children:t,currentPageName:n}){var q,U,Q,H,K,Y,P;const[r,i]=R.useState(!1),[s,a]=R.useState(!1),[o,c]=R.useState(null),[d,h]=R.useState(!1),[f,m]=R.useState(""),[p,g]=R.useState(!1),[b,j]=R.useState(!1),[v,x]=R.useState(!1),k=Za(),{data:w=[]}=Fe({queryKey:["site-settings"],queryFn:()=>ce.entities.SiteSettings.list()}),N=((q=w.find(T=>T.setting_key==="logo_url"))==null?void 0:q.value)||"https://qtrypzzcjebvfcihiynt.supabase.co/storage/v1/object/public/base44-prod/public/695a3d411fa079edce588856/1fa26eb8b_48-7-AI-professionals-16-1-2026.png",A=(U=w.find(T=>T.setting_key==="linkedin_url"))==null?void 0:U.value,S=(Q=w.find(T=>T.setting_key==="instagram_url"))==null?void 0:Q.value,E=(H=w.find(T=>T.setting_key==="twitter_url"))==null?void 0:H.value,C=(K=w.find(T=>T.setting_key==="youtube_url"))==null?void 0:K.value,B=((Y=w.find(T=>T.setting_key==="show_blog"))==null?void 0:Y.value)!=="false",F=((P=w.find(T=>T.setting_key==="show_news"))==null?void 0:P.value)!=="false";R.useEffect(()=>{const T=()=>{i(window.scrollY>20)};return window.addEventListener("scroll",T),()=>window.removeEventListener("scroll",T)},[]),R.useEffect(()=>{if(!document.getElementById("hs-script-loader")){const T=document.createElement("script");T.type="text/javascript",T.id="hs-script-loader",T.async=!0,T.defer=!0,T.src="https://js-eu1.hs-scripts.com/147778836.js",document.body.appendChild(T)}},[]),R.useEffect(()=>{a(!1),c(null),h(!1),g(!1),j(!1),x(!1),window.scrollTo(0,0)},[k]);const D=T=>{T.preventDefault(),f.trim()&&(window.location.href=se("SearchResults")+`?q=${encodeURIComponent(f)}`)},I={diensten:{label:"Wat we doen",items:[{name:"AI Consultancy",href:se("AIConsultancy"),desc:"Strategie & innovatie met AI"},{name:"AI Software Development",href:se("AIDevelopment"),desc:"Custom AI oplossingen"},{name:"Development Support",href:se("DevelopmentSupport"),desc:"CTO as a Service & meer"}]},training:{items:[{name:"Trainingen en Workshops",href:se("Training"),desc:"Overzicht van ons aanbod"},{name:"Training Advisor",href:se("TrainingAdvisor"),desc:"Vind de juiste training"}]},claudeCowork:{items:[{name:"Overzicht",href:se("ClaudeCowork"),desc:"Wat is Claude Cowork?"},{name:"Skills & Connectors",href:se("ClaudeCoworkSkillsConnectors"),desc:"Marketplace van AI-skills"},{name:"Training",href:se("ClaudeCoworkTraining"),desc:"Leer werken met Claude"},{name:"Advies",href:se("ClaudeCoworkAdvies"),desc:"Persoonlijk adviesgesprek"}]}},z=({items:T,label:V,dropdownKey:L})=>{const[X,J]=Ot.useState(!1),W=Ot.useRef(null),G=()=>{W.current&&clearTimeout(W.current),J(!0),c(L)},ee=()=>{W.current=setTimeout(()=>{J(!1),c(null)},150)};return e.jsxs("div",{className:"relative",onMouseEnter:G,onMouseLeave:ee,children:[e.jsxs("button",{className:"flex items-center gap-1 text-[#0D0D0F] hover:text-[#FAB868] transition-colors font-medium py-2",children:[V,e.jsx(_a,{className:`w-4 h-4 transition-transform ${o===L?"rotate-180":""}`})]}),e.jsx(Cr,{children:o===L&&e.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:G,onMouseLeave:ee,children:e.jsx("div",{className:"p-2",children:T.map((ne,le)=>e.jsxs(de,{to:ne.href,className:"flex flex-col p-3 rounded-xl hover:bg-[#F4F4F4] transition-colors group",children:[e.jsx("span",{className:"font-medium text-[#0D0D0F] group-hover:text-[#FAB868] transition-colors",children:ne.name}),e.jsx("span",{className:"text-sm text-[#292828]",children:ne.desc})]},le))})})})]})};return e.jsxs("div",{className:"min-h-screen bg-white",children:[e.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:[e.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:e.jsxs("div",{className:"flex items-center justify-between h-20",children:[e.jsx(de,{to:se("Home"),className:"flex items-center",children:e.jsx("img",{src:N,alt:"48-7 AI Professionals",className:"h-8"})}),e.jsxs("nav",{className:"hidden lg:flex items-center gap-2",children:[e.jsx(z,{items:I.diensten.items,label:I.diensten.label,dropdownKey:"diensten"}),e.jsx(z,{items:I.training.items,label:"Training",dropdownKey:"training"}),e.jsx(z,{items:I.claudeCowork.items,label:"Claude Cowork",dropdownKey:"claudeCowork"}),e.jsx(de,{to:se("Cases"),className:"px-4 py-2 text-[#0D0D0F] hover:text-[#FAB868] transition-colors font-medium",children:"Cases"}),B&&e.jsx(de,{to:se("Blog"),className:"px-4 py-2 text-[#0D0D0F] hover:text-[#FAB868] transition-colors font-medium",children:"Blog"}),F&&e.jsx(de,{to:se("Nieuws"),className:"px-4 py-2 text-[#0D0D0F] hover:text-[#FAB868] transition-colors font-medium",children:"AI Nieuws"}),e.jsx(de,{to:se("EuAiActChecker"),className:"px-4 py-2 text-[#0D0D0F] hover:text-[#FAB868] transition-colors font-medium",children:"EU AI Act"}),e.jsx(de,{to:se("AIImpactRapport"),className:"px-4 py-2 text-[#0D0D0F] hover:text-[#FAB868] transition-colors font-medium",children:"AI Impact Scan"}),e.jsx(de,{to:se("OverOns"),className:"px-4 py-2 text-[#0D0D0F] hover:text-[#FAB868] transition-colors font-medium",children:"Over 48-7"})]}),e.jsxs("div",{className:"hidden lg:flex items-center gap-3",children:[e.jsx("button",{onClick:()=>h(!d),className:"p-3 hover:bg-[#F4F4F4] rounded-full transition-colors","aria-label":"Zoeken",children:e.jsx(mi,{className:"w-5 h-5 text-[#0D0D0F]"})}),e.jsx(de,{to:se("Contact"),className:"px-6 py-3 bg-[#FAB868] text-[#0D0D0F] font-semibold rounded-full hover:bg-[#E5A04D] transition-all",children:"Contact"})]}),e.jsx("button",{className:"lg:hidden p-2 rounded-full hover:bg-[#F4F4F4] transition-colors",onClick:()=>a(!s),children:s?e.jsx(Ht,{className:"w-6 h-6"}):e.jsx(T8,{className:"w-6 h-6"})})]})}),e.jsx(Cr,{children:s&&e.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:e.jsxs("nav",{className:"px-4 py-6 space-y-2",children:[e.jsxs("div",{children:[e.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",e.jsx(_a,{className:`w-4 h-4 transition-transform ${p?"rotate-180":""}`})]}),e.jsx(Cr,{children:p&&e.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((T,V)=>e.jsx(de,{to:T.href,className:"block px-4 py-2 text-sm text-[#0D0D0F] hover:bg-[#F4F4F4] rounded-lg",onClick:()=>a(!1),children:T.name},V))})})]}),e.jsxs("div",{children:[e.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",e.jsx(_a,{className:`w-4 h-4 transition-transform ${b?"rotate-180":""}`})]}),e.jsx(Cr,{children:b&&e.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((T,V)=>e.jsx(de,{to:T.href,className:"block px-4 py-2 text-sm text-[#0D0D0F] hover:bg-[#F4F4F4] rounded-lg",onClick:()=>a(!1),children:T.name},V))})})]}),e.jsxs("div",{children:[e.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:()=>x(!v),children:["Claude Cowork",e.jsx(_a,{className:`w-4 h-4 transition-transform ${v?"rotate-180":""}`})]}),e.jsx(Cr,{children:v&&e.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.claudeCowork.items.map((T,V)=>e.jsx(de,{to:T.href,className:"block px-4 py-2 text-sm text-[#0D0D0F] hover:bg-[#F4F4F4] rounded-lg",onClick:()=>a(!1),children:T.name},V))})})]}),e.jsx(de,{to:se("Cases"),className:"block px-4 py-3 text-[#0D0D0F] font-medium hover:bg-[#F4F4F4] rounded-xl transition-colors",onClick:()=>a(!1),children:"Cases"}),B&&e.jsx(de,{to:se("Blog"),className:"block px-4 py-3 text-[#0D0D0F] font-medium hover:bg-[#F4F4F4] rounded-xl transition-colors",onClick:()=>a(!1),children:"Blog"}),F&&e.jsx(de,{to:se("Nieuws"),className:"block px-4 py-3 text-[#0D0D0F] font-medium hover:bg-[#F4F4F4] rounded-xl transition-colors",onClick:()=>a(!1),children:"AI Nieuws"}),e.jsx(de,{to:se("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"}),e.jsx(de,{to:se("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"}),e.jsx(de,{to:se("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"}),e.jsx(de,{to:se("Contact"),className:"block px-4 py-3 text-[#0D0D0F] font-medium hover:bg-[#F4F4F4] rounded-xl transition-colors",onClick:()=>a(!1),children:"Contact"})]})})}),e.jsx(Cr,{children:d&&e.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:e.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-4",children:e.jsxs("form",{onSubmit:D,className:"flex items-center gap-2",children:[e.jsxs("div",{className:"flex-1 relative",children:[e.jsx(mi,{className:"absolute left-4 top-1/2 -translate-y-1/2 w-5 h-5 text-gray-400"}),e.jsx("input",{type:"text",value:f,onChange:T=>m(T.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})]}),e.jsx("button",{type:"submit",className:"px-6 py-3 bg-[#FAB868] text-[#0D0D0F] font-semibold rounded-full hover:bg-[#E5A04D] transition-all",children:"Zoeken"})]})})})})]}),e.jsx("main",{children:t}),e.jsxs("footer",{className:"bg-[#0D0D0F] text-white",children:[F&&e.jsx("div",{className:"border-b border-gray-800",children:e.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-16",children:e.jsxs("div",{className:"flex flex-col items-center text-center gap-8",children:[e.jsxs("div",{children:[e.jsx("h3",{className:"text-2xl font-bold mb-2",children:"Daily AI Nieuws in 48 seconden"}),e.jsx("p",{className:"text-gray-400",children:"Elke dag de belangrijkste AI ontwikkelingen, compact samengevat. Perfect voor ondernemers die up-to-date willen blijven."})]}),e.jsxs("div",{className:"flex flex-col sm:flex-row items-center gap-4",children:[e.jsxs(de,{to:se("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",e.jsx($e,{className:"w-5 h-5"})]}),e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("span",{className:"text-gray-400 text-sm",children:"Bekijk AI nieuws op onze socials:"}),e.jsxs("div",{className:"flex gap-2",children:[A&&e.jsx("a",{href:A,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:e.jsx(Hs,{className:"w-5 h-5 text-white"})}),S&&e.jsx("a",{href:S,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:e.jsx(Jc,{className:"w-5 h-5 text-white"})}),C&&e.jsx("a",{href:C,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:e.jsx(tu,{className:"w-5 h-5 text-white"})})]})]})]})]})})}),e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-16",children:[e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-12",children:[e.jsxs("div",{children:[e.jsx("h4",{className:"font-semibold text-lg mb-6",children:"Diensten"}),e.jsxs("ul",{className:"space-y-3",children:[e.jsx("li",{children:e.jsx(de,{to:se("AIConsultancy"),className:"text-gray-400 hover:text-white transition-colors",children:"AI Consultancy"})}),e.jsx("li",{children:e.jsx(de,{to:se("AIDevelopment"),className:"text-gray-400 hover:text-white transition-colors",children:"Software Development"})}),e.jsx("li",{children:e.jsx(de,{to:se("DevelopmentSupport"),className:"text-gray-400 hover:text-white transition-colors",children:"Development Support"})}),e.jsx("li",{children:e.jsx(de,{to:se("Training"),className:"text-gray-400 hover:text-white transition-colors",children:"AI Training"})})]})]}),e.jsxs("div",{children:[e.jsx("h4",{className:"font-semibold text-lg mb-6",children:"Training"}),e.jsxs("ul",{className:"space-y-3",children:[e.jsx("li",{children:e.jsx(de,{to:se("Training"),className:"text-gray-400 hover:text-white transition-colors",children:"Alle Trainingen"})}),e.jsx("li",{children:e.jsx(de,{to:se("TrainingAdvisor"),className:"text-gray-400 hover:text-white transition-colors",children:"Training Advisor"})}),e.jsx("li",{children:e.jsx(de,{to:se("Training")+"?category=workshops",className:"text-gray-400 hover:text-white transition-colors",children:"Workshops"})})]})]}),e.jsxs("div",{children:[e.jsx("h4",{className:"font-semibold text-lg mb-6",children:"Resources"}),e.jsxs("ul",{className:"space-y-3",children:[F&&e.jsx("li",{children:e.jsx(de,{to:se("Nieuws"),className:"text-gray-400 hover:text-white transition-colors",children:"AI Nieuws"})}),B&&e.jsx("li",{children:e.jsx(de,{to:se("Blog"),className:"text-gray-400 hover:text-white transition-colors",children:"Blog"})}),e.jsx("li",{children:e.jsx(de,{to:se("AIQuiz"),className:"text-gray-400 hover:text-white transition-colors",children:"AI Quiz"})}),e.jsx("li",{children:e.jsx(de,{to:se("AIImpactRapport"),className:"text-gray-400 hover:text-white transition-colors",children:"AI Impact Rapport"})}),e.jsx("li",{children:e.jsx(de,{to:se("Cases"),className:"text-gray-400 hover:text-white transition-colors",children:"Case Studies"})}),e.jsx("li",{children:e.jsx(de,{to:se("Vacatures"),className:"text-gray-400 hover:text-white transition-colors",children:"Vacatures"})}),e.jsx("li",{children:e.jsx(de,{to:se("OverOns"),className:"text-gray-400 hover:text-white transition-colors",children:"Over Ons"})})]})]}),e.jsxs("div",{children:[e.jsx("h4",{className:"font-semibold text-lg mb-6",children:"Contact"}),e.jsxs("ul",{className:"space-y-3",children:[e.jsx("li",{children:e.jsx(de,{to:se("Contact"),className:"text-gray-400 hover:text-white transition-colors",children:"Neem contact op"})}),e.jsx("li",{children:e.jsx(de,{to:se("ContentEditor"),className:"text-gray-400 hover:text-white transition-colors",children:"48-7 - Nederland"})}),e.jsxs("li",{className:"flex items-center gap-3 text-gray-400",children:[e.jsx(yi,{className:"w-5 h-5 flex-shrink-0"}),e.jsx("a",{href:"mailto:info@48-7.nl",className:"hover:text-white transition-colors",children:"hallo@48-7.nl"})]}),e.jsxs("li",{className:"flex items-center gap-3 text-gray-400",children:[e.jsx(ey,{className:"w-5 h-5 flex-shrink-0"}),e.jsx("a",{href:"tel:+31850601487",className:"hover:text-white transition-colors",children:"+31 085-06 01 487"})]})]}),e.jsxs("div",{className:"flex items-center gap-4 mt-6",children:[A&&e.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:e.jsx(Hs,{className:"w-5 h-5"})}),E&&e.jsx("a",{href:E,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:e.jsx(I4,{className:"w-5 h-5"})}),C&&e.jsx("a",{href:C,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:e.jsx(tu,{className:"w-5 h-5"})}),S&&e.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:e.jsx(Jc,{className:"w-5 h-5"})})]})]})]}),e.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:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("img",{src:N,alt:"48-7 AI Professionals",className:"h-8"}),e.jsx("span",{className:"text-gray-400",children:"© 2026 48-7. Alle rechten voorbehouden."})]}),e.jsxs("div",{className:"flex items-center gap-6 text-gray-400 text-sm",children:[e.jsx("a",{href:"#",className:"hover:text-white transition-colors",children:"Privacy Policy"}),e.jsx(de,{to:"/voorwaarden",className:"hover:text-white transition-colors",children:"Algemene Voorwaarden"})]})]})]})]})]})}const Gte={AIConsultancy:Nq,AIDevelopment:_q,AIImpactRapport:Dq,AIQuiz:Fq,AIQuizDocs:Mq,AdminAIQuizSubmissions:KV,AdminBlog:_K,AdminCases:SK,AdminDashboard:uG,AdminDiscoveryForms:BG,AdminEmailTemplates:zG,AdminEuAiActSubmissions:qG,AdminHandleiding:VG,AdminHome:lQ,AdminImpactScans:cQ,AdminNewsletterSubscribers:uQ,AdminNieuws:dQ,AdminOplossingen:hQ,AdminPageBuilder:fQ,AdminPageEditor:mQ,AdminPrompts:pQ,AdminReviews:gQ,AdminSEO:xQ,AdminSettings:kQ,AdminTeam:NQ,AdminTestScans:_Q,AdminTrainingen:SQ,AdminVacatures:AQ,Blog:EQ,BlogDetail:QZ,Cases:YZ,ClaudeCowork:aee,ClaudeCoworkAdvies:lee,ClaudeCoworkSkillsConnectors:uee,ClaudeCoworkTraining:hee,Contact:fee,ContentEditor:pee,ContentManagement:gee,DevelopmentSupport:bee,Diensten:jee,DiscoveryForm:See,EuAiActChecker:Aee,EuAiActCheckerDocs:Cee,Home:Vee,ImpactRapport:Uee,ImpactReportDocs:$ee,KoffieRoulette:Kee,NewsDetail:Qee,Nieuws:Yee,OplossingDetail:Xee,Oplossingen:Jee,OverOns:Zee,SearchResults:Bte,Training:Vte,TrainingAdvisor:Ute,TrainingDetail:$te,VacatureDetail:Hte,Vacatures:Wte},Y6={mainPage:"Home",Pages:Gte,Layout:Kte};function Qte(){const t=Za(),{isAuthenticated:n}=oC(),{Pages:r,mainPage:i}=Y6,s=i;return R.useEffect(()=>{const a=t.pathname;let o;if(a==="/"||a==="")o=s;else{const c=a.replace(/^\//,"").split("/")[0];o=Object.keys(r).find(f=>f.toLowerCase()===c.toLowerCase())||null}n&&o&&ce.appLogs.logUserInApp(o).catch(()=>{})},[t,n,r,s]),null}function Yte({}){var s;const n=Za().pathname.substring(1),{data:r,isFetched:i}=Fe({queryKey:["user"],queryFn:async()=>{try{return{user:await ce.auth.me(),isAuthenticated:!0}}catch{return{user:null,isAuthenticated:!1}}}});return e.jsx("div",{className:"min-h-screen flex items-center justify-center p-6 bg-slate-50",children:e.jsx("div",{className:"max-w-md w-full",children:e.jsxs("div",{className:"text-center space-y-6",children:[e.jsxs("div",{className:"space-y-2",children:[e.jsx("h1",{className:"text-7xl font-light text-slate-300",children:"404"}),e.jsx("div",{className:"h-0.5 w-16 bg-slate-200 mx-auto"})]}),e.jsxs("div",{className:"space-y-3",children:[e.jsx("h2",{className:"text-2xl font-medium text-slate-800",children:"Page Not Found"}),e.jsxs("p",{className:"text-slate-600 leading-relaxed",children:["The page ",e.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"&&e.jsx("div",{className:"mt-8 p-4 bg-slate-100 rounded-lg border border-slate-200",children:e.jsxs("div",{className:"flex items-start space-x-3",children:[e.jsx("div",{className:"flex-shrink-0 w-5 h-5 rounded-full bg-orange-100 flex items-center justify-center mt-0.5",children:e.jsx("div",{className:"w-2 h-2 rounded-full bg-orange-400"})}),e.jsxs("div",{className:"text-left space-y-1",children:[e.jsx("p",{className:"text-sm font-medium text-slate-700",children:"Admin Note"}),e.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."})]})]})}),e.jsx("div",{className:"pt-6",children:e.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:[e.jsx("svg",{className:"w-4 h-4 mr-2",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:e.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 Xte=()=>e.jsx("div",{className:"flex flex-col items-center justify-center min-h-screen bg-gradient-to-b from-white to-slate-50",children:e.jsx("div",{className:"max-w-md w-full p-8 bg-white rounded-lg shadow-lg border border-slate-100",children:e.jsxs("div",{className:"text-center",children:[e.jsx("div",{className:"inline-flex items-center justify-center w-16 h-16 mb-6 rounded-full bg-orange-100",children:e.jsx("svg",{className:"w-8 h-8 text-orange-600",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:e.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"})})}),e.jsx("h1",{className:"text-3xl font-bold text-slate-900 mb-4",children:"Access Restricted"}),e.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."}),e.jsxs("div",{className:"p-4 bg-slate-50 rounded-md text-sm text-slate-600",children:[e.jsx("p",{children:"If you believe this is an error, you can:"}),e.jsxs("ul",{className:"list-disc list-inside mt-2 space-y-1",children:[e.jsx("li",{children:"Verify you are logged in with the correct account"}),e.jsx("li",{children:"Contact the app administrator for access"}),e.jsx("li",{children:"Try logging out and back in again"})]})]})]})})}),Jte=`# Algemene Voorwaarden — 48-7 AI Professionals

*Laatst bijgewerkt: maart 2026*

---

## 1. Definities

**Overeenkomst:** de overeenkomst gesloten tussen 48-7 en de Opdrachtgever met betrekking tot de levering van Diensten.

**Diensten:** alle diensten verleend door 48-7, waaronder maar niet beperkt tot SaaS-producten (Software), Consultancy, Trainingen, Workshops, AI-demo's, Webinars, Proof of Concepts en (maatwerk) Development.

**Software:** alle door 48-7 aangeboden softwareproducten, platforms en digitale tools die via het internet beschikbaar worden gesteld.

**Werken:** alle door 48-7 te ontwikkelen, configureren en/of aan te passen producten, waaronder websites, applicaties, software, documentatie, adviezen, rapporten, analyses, ontwerpen, teksten, AI-modellen, prompts, workflows, afbeeldingen, audiovisueel materiaal en huisstijlen.

**48-7:** 48-7 is een handelsnaam van 48-7 B.V., gevestigd te Groningen, ingeschreven bij de Kamer van Koophandel in Nederland onder nummer 85131938, en de aanbieder van de Diensten.

**Opdrachtgever:** de rechtspersoon of natuurlijke persoon handelend in de uitoefening van beroep of bedrijf die een Overeenkomst aangaat met 48-7.

**Gebruiker:** iedere natuurlijke persoon die namens of ten behoeve van de Opdrachtgever gebruik maakt van de Software of de resultaten van de Diensten.

**Betrokken Personen:** alle medewerkers, freelancers, zelfstandigen zonder personeel (zzp'ers), uitzendkrachten, gedetacheerden en overige door 48-7 ingeschakelde derden die betrokken zijn bij de uitvoering van de Overeenkomst.

**Partij/Partijen:** 48-7 en/of de Opdrachtgever.

**AV:** de Algemene Voorwaarden zoals opgenomen in dit document.

---

## 2. Toepasselijkheid

1. Deze AV zijn uitsluitend van toepassing op overeenkomsten met rechtspersonen en/of natuurlijke personen handelend in de uitoefening van beroep of bedrijf (B2B). Deze AV zijn niet bedoeld voor consumenten.
2. Op alle aanbiedingen, offertes en Overeenkomsten van 48-7 zijn uitsluitend deze AV van toepassing. De Opdrachtgever met wie eenmaal op basis van deze AV is gecontracteerd, stemt in met de toepasselijkheid ervan op toekomstige en/of vervolgopdrachten met 48-7.
3. De omvang van de Diensten wordt nader omschreven in een afzonderlijke overeenkomst of offerte.
4. 48-7 wijst uitdrukkelijk eventuele algemene voorwaarden of inkoopvoorwaarden van de Opdrachtgever af, alsmede van deze AV afwijkende bepalingen, tenzij deze uitdrukkelijk schriftelijk door 48-7 zijn aanvaard.
5. Indien enige bepaling of een deel daarvan in deze AV om welke reden dan ook niet of slechts gedeeltelijk bindend is, laat dit de geldigheid van de overige bepalingen onverlet. In dat geval is 48-7 gerechtigd een vervangende bepaling toe te passen die rechtens toelaatbaar is en zo dicht mogelijk aansluit bij de strekking en inhoud van de nietige of niet-bindende bepaling.
6. Deze AV strekken mede ten behoeve van door 48-7 ten behoeve van de Overeenkomst of de uitvoering daarvan ingeschakelde derden.

---

## 3. Aanbiedingen en Totstandkoming van de Overeenkomst

1. Alle door 48-7 gedane aanbiedingen zijn vrijblijvend en geldig gedurende 14 dagen na verzending, tenzij uitdrukkelijk anders vermeld. Aanbiedingen van 48-7 mogen niet zonder toestemming van 48-7 worden verveelvoudigd of aan derden openbaar worden gemaakt.
2. Tenzij uitdrukkelijk anders vermeld, is documentatie verstrekt door of namens 48-7 bij de aanbieding of na sluiting van de Overeenkomst, waaronder informatie en adviezen, vrijblijvend.
3. Overeenkomsten alsmede wijzigingen daarvan komen tot stand door schriftelijke of elektronische bevestiging of opdrachtbevestiging door 48-7. Voorts komt een Overeenkomst tot stand doordat 48-7 een door de Opdrachtgever verstrekte opdracht geheel of gedeeltelijk uitvoert zonder voorafgaande bevestiging.
4. Afspraken met of toezeggingen door medewerkers of Betrokken Personen van 48-7 binden 48-7 niet, tenzij deze uitdrukkelijk door 48-7 zijn bevestigd. Een mondelinge aanbieding en/of toezegging van 48-7 of een van haar Betrokken Personen is eveneens niet bindend, tenzij deze uitdrukkelijk schriftelijk door 48-7 is bevestigd.
5. 48-7 is te allen tijde gerechtigd opdrachten en/of orders te weigeren of aan de levering en/of uitvoering nadere voorwaarden te verbinden.

---

## 4. Verplichtingen van 48-7

### 4.1 Software (SaaS)

1. 48-7 heeft een inspanningsverplichting om de Software via het internet beschikbaar te stellen en naar behoren te laten functioneren, maar kan en zal nimmer garanderen dat de Software te allen tijde, ononderbroken en zonder storingen beschikbaar is.
2. 48-7 is gerechtigd de Software of onderdelen daarvan tijdelijk buiten gebruik te stellen voor onderhoud, aanpassing of verbetering. 48-7 zal er naar streven dergelijke buitengebruikstellingen zoveel mogelijk buiten kantooruren te laten plaatsvinden en zal de Opdrachtgever hiervan zo mogelijk tijdig op de hoogte stellen, maar kan dit niet garanderen en is nimmer aansprakelijk voor schade in verband met dergelijke buitengebruikstelling.
3. 48-7 zal de Software up-to-date houden. 48-7 kan hierbij afhankelijk zijn van haar toeleverancier(s). 48-7 is gerechtigd bepaalde updates of patches niet te installeren indien dit naar haar oordeel niet bevorderlijk is voor de correcte werking van de Software of niet in het belang van de Opdrachtgever is.
4. 48-7 zal zo spoedig mogelijk reageren op verzoeken om ondersteuning. Een reactie wordt gedefinieerd als een ontvangstbevestiging met inhoudelijke terugkoppeling en een aankondiging van de te ondernemen actie en de oplostermijn (indien van toepassing).
5. Een oplossing kan betrekking hebben op een workaround: een oplossing die het probleem niet permanent verhelpt, maar de impact ervan beperkt of een route om het probleem heen biedt. 48-7 zal steeds streven naar een zo spoedig mogelijke workaround, gevolgd door een definitieve oplossing zodra deze gereed is.
6. Door 48-7 genoemde termijnen voor het reageren of bieden van een oplossing zijn streeftermijnen en uitsluitend indicatief. Er bestaat geen aansprakelijkheid voor schade als gevolg van het niet halen van een streeftermijn.
7. 48-7 zal tijdelijke back-ups maken van gegevens opgeslagen door middel van de Software ten behoeve van noodvoorzieningen. Op verzoek en tegen betaling van een redelijke vergoeding zal 48-7 een kopie van deze gegevens beschikbaar stellen voor gebruik in andere systemen, voor zover dit technisch mogelijk is.

### 4.2 Consultancy, Training & Development

1. 48-7 zal de Consultancy, Trainingen en Development-opdrachten naar beste inzicht en vermogen uitvoeren overeenkomstig de eisen van goed vakmanschap.
2. Door 48-7 opgegeven streeftijden voor de levering en/of uitvoering van Diensten zijn steeds indicatief en nimmer fatale termijnen, tenzij uitdrukkelijk schriftelijk anders is overeengekomen.
3. Indien 48-7 enige streektijd overschrijdt, is 48-7 pas in verzuim na schriftelijke ingebrekestelling.
4. Indien een goede uitvoering van de Diensten dit vereist, heeft 48-7 het recht bepaalde werkzaamheden te laten verrichten door derden, waaronder freelancers en zzp'ers. 48-7 is en blijft naar Opdrachtgever toe de verantwoordelijke.
5. 48-7 geeft geen garanties ten aanzien van functioneren bij gebruik van niet-courante of verouderde besturingssystemen, browsers, plugins, scripts, overige software en hardware, tenzij in de offerte anders is vermeld.

### 4.3 Meerwerk

1. Alle wijzigingen in de Diensten, hetzij op verzoek van Opdrachtgever, hetzij als gevolg van het feit dat door welke omstandigheden dan ook een andere uitvoering noodzakelijk is, worden wanneer daaraan extra kosten verbonden zijn als meerwerk beschouwd en voor zover daaruit minder kosten bestaan als minderwerk. Deze worden overeenkomstig gefactureerd aan Opdrachtgever.
2. Vooraf zal worden aangegeven dat sprake is van meerwerk. Verzocht meerwerk wordt verricht tegen het gebruikelijke uurtarief, tenzij anders overeengekomen.
3. Opdrachtgever begrijpt dat door wijziging van de Overeenkomst en/of het ontstaan van meerwerk het overeengekomen of verwachte tijdstip van voltooiing van alle in de Overeenkomst gemaakte afspraken kan worden beïnvloed.

---

## 5. Verplichtingen en Verantwoordelijkheden van de Opdrachtgever

1. De Opdrachtgever erkent dat hij medeverantwoordelijk is voor een succesvolle uitvoering van de Overeenkomst.
2. Op verzoek van 48-7 zal de Opdrachtgever de door 48-7 gewenste medewerking verlenen en/of informatie tijdig en in alle redelijkheid verstrekken. In het bijzonder draagt Opdrachtgever ervoor zorg dat alle gegevens, waarvan 48-7 aangeeft dat deze noodzakelijk zijn of waarvan de Opdrachtgever redelijkerwijs behoort te begrijpen dat deze noodzakelijk zijn voor het uitvoeren van de Diensten, tijdig aan 48-7 worden verstrekt.
3. De Opdrachtgever zal 48-7 toegang geven tot alle plaatsen, diensten en accounts onder haar beheer (zoals webhosting accounts, API-sleutels, CMS-systemen) die 48-7 redelijkerwijs nodig heeft om de Diensten te leveren.
4. Het is de Opdrachtgever niet toegestaan om:
   - a. derden gebruik te laten maken van de Software, tenzij het door Opdrachtgever aangewezen Gebruikers betreft;
   - b. de Software te gebruiken voor handelingen die in strijd zijn met Nederlandse of andere toepasselijke wet- en regelgeving, waaronder het opslaan of verspreiden van lasterlijke, smadelijke of racistische informatie;
   - c. de Software zodanig te gebruiken dat dit overlast of hinder veroorzaakt voor andere gebruikers;
   - d. storingen en/of schade te veroorzaken in de Software;
   - e. de Software op strafbare of onrechtmatige wijze te gebruiken;
   - f. intellectuele eigendomsrechten van 48-7 en/of derden te schenden;
   - g. gegevens, informatie en/of knowhow van 48-7 openbaar te maken, te verveelvoudigen en/of anderszins met derden te delen.
5. De Opdrachtgever garandeert dat zijn gebruik van de Software en/of de resultaten van de Diensten voldoet aan alle toepasselijke wettelijke vereisten, waaronder de verplichtingen voor 'deployers' onder de EU AI Act (waar van toepassing), en verbindt zich ertoe om passend menselijk toezicht, monitoring en noodzakelijke risicobeoordeling in stand te houden alvorens te vertrouwen op AI-suggesties van de Software.
6. Indien 48-7 constateert of redelijkerwijs vermoedt dat de Opdrachtgever zijn verplichtingen op grond van de Overeenkomst of deze AV niet nakomt, is 48-7 gerechtigd het gebruik van de Software door de Opdrachtgever tot nader order te blokkeren en de uitvoering van de Overeenkomst op te schorten, dan wel andere vereiste maatregelen te treffen, zonder tot enige schadevergoeding gehouden te zijn. De Opdrachtgever blijft in dat geval uitdrukkelijk verplicht aan alle contractuele en openstaande verplichtingen te voldoen.
7. De Opdrachtgever is verplicht zijn account te beveiligen tegen ongeautoriseerde toegang door derden door middel van een gebruikersnaam en wachtwoord. 48-7 mag te allen tijde aannemen dat alles wat na aanmelding met de gebruikersnaam en het wachtwoord van het account van de Opdrachtgever plaatsvindt, geschiedt onder leiding en toezicht van de Opdrachtgever.
8. De Opdrachtgever is gehouden 48-7 te informeren over ieder vermoeden van onrechtmatig gebruik van de Software.
9. Indien een Dienst vereist dat Opdrachtgever bronmaterialen aan 48-7 levert, staat Opdrachtgever er te allen tijde voor in dat hij beschikt over alle licenties die noodzakelijk zijn voor de verstrekking aan en het bedoelde gebruik door 48-7. Opdrachtgever vrijwaart 48-7 van claims van derden ten aanzien van schending van deze rechten.

---

## 6. Oplevering en Aanvaarding

1. 48-7 zal te ontwikkelen of aan te passen Werken of gedeelten daarvan opleveren wanneer deze in haar professionele opinie voldoen aan de specificaties of geschikt zijn voor gebruik.
2. Opdrachtgever dient vervolgens binnen 14 dagen na oplevering het opgeleverde te evalueren en goed of af te keuren. Indien Opdrachtgever niet binnen deze periode het opgeleverde afkeurt, wordt het opgeleverde geacht te zijn aanvaard.
3. Indien een Werk in fasen wordt opgeleverd, dient Opdrachtgever na oplevering van elke fase de goed- of afkeuring van het deel van het Werk van die fase te geven op de wijze zoals in het vorige lid bepaald. Opdrachtgever mag een goed- of afkeuring in een latere fase niet baseren op aspecten die in een eerdere fase goedgekeurd zijn.
4. Indien Opdrachtgever het opgeleverde geheel of gedeeltelijk afkeurt, zal 48-7 zich inspannen de reden van afkeuring zo snel mogelijk weg te nemen. Dit kan 48-7 doen door het resultaat te reviseren of gemotiveerd aan te geven waarom de reden niet opgaat. Opdrachtgever heeft vervolgens een periode van 14 dagen om de revisie of motivatie goed of af te keuren.
5. Indien Opdrachtgever na de eerste revisie of motivatie het opgeleverde geheel of gedeeltelijk heeft afgekeurd, zal er naar oordeel van 48-7 een redelijk aantal revisierondes volgen.
6. Indien een partij aangeeft verdere revisies niet (meer) zinvol te achten, worden beide partijen gerechtigd de overeenkomst op te zeggen voor wat betreft het afgekeurde. In dat geval zal Opdrachtgever de daadwerkelijk door 48-7 gemaakte uren vergoeden, met als maximum het voor het afgekeurde geoffreerde bedrag. Opdrachtgever wordt daarmee echter niet gerechtigd het afgekeurde te gebruiken op welke wijze dan ook.
7. Na aanvaarding van het opgeleverde vervalt iedere aansprakelijkheid voor gebreken in het opgeleverde, tenzij 48-7 het gebrek kende of had moeten kennen ten tijde van aanvaarding. In ieder geval vervalt iedere aansprakelijkheid voor gebreken in een Werk na verloop van een jaar na beëindiging van de Overeenkomst om welke reden dan ook.

---

## 7. Verbod op Benadering van Betrokken Personen

1. Gedurende de looptijd van de Overeenkomst en gedurende een periode van één (1) jaar na beëindiging daarvan, is het de Opdrachtgever niet toegestaan Betrokken Personen van 48-7 — waaronder medewerkers, freelancers, zzp'ers, uitzendkrachten, gedetacheerden en overige door 48-7 ingeschakelde derden die betrokken zijn of waren bij de uitvoering van de Overeenkomst — direct of indirect, in dienst te nemen, in te huren, opdrachten aan te bieden of met hen te onderhandelen over werkzaamheden die gelijk of vergelijkbaar zijn aan de werkzaamheden die zij voor 48-7 in het kader van de Overeenkomst verrichten of hebben verricht, anders dan met voorafgaande schriftelijke toestemming van 48-7.
2. Het verbod als bedoeld in het vorige lid geldt eveneens voor het benaderen van Betrokken Personen voor het verrichten van werkzaamheden ten behoeve van aan de Opdrachtgever gelieerde ondernemingen of derden.
3. Bij iedere overtreding van het in dit artikel bedoelde verbod is de Opdrachtgever aan 48-7 een onmiddellijk opeisbare boete verschuldigd van €50.000 per Betrokken Persoon per overtreding, onverminderd het recht van 48-7 op vergoeding van de daadwerkelijk geleden schade indien deze het boetebedrag overstijgt.

---

## 8. Prijzen, Facturering en Betaling

1. Alle prijzen zijn in euro's en exclusief btw en andere van overheidswege opgelegde heffingen, tenzij anders overeengekomen met Opdrachtgever.
2. 48-7 is gerechtigd prijzen, prijsmodellen en overige vergoedingen eenmaal per jaar met maximaal 5% te verhogen ter compensatie van ontwikkelingen zoals inflatie en andere prijsstijgingen, zonder de Opdrachtgever hiervan uitdrukkelijk te informeren.
3. Indien en voor zover de prijsverhoging binnen het in artikel 8.2 gestelde percentage blijft, heeft de Opdrachtgever niet de mogelijkheid de Overeenkomst voortijdig te beëindigen.
4. 48-7 is tevens gerechtigd prijzen, prijsmodellen en overige vergoedingen om andere redenen aan te passen, mits deze aanpassingen aantoonbaar gekoppeld zijn aan en proportioneel zijn ten opzichte van wijzigingen in objectieve, verifieerbare externe kostenfactoren die specifiek zijn voor de Dienstverlening, zoals stijgingen in cloudservicekosten, noodzakelijke licentiekosten van derden of salarisindexaties van personeel. Indien de prijsverhoging niet binnen het in artikel 8.2 gestelde percentage valt, of meer dan eenmaal per jaar plaatsvindt, zal 48-7 de Opdrachtgever ten minste twee (2) kalendermaanden voordat de wijziging ingaat per e-mail en/of in-app notificatie informeren.
5. Indien de Opdrachtgever de wijziging als bedoeld in artikel 8.4 niet wenst te accepteren, kan hij de Overeenkomst beëindigen met inachtneming van artikel 9. Gebruik van de Diensten van 48-7 na de datum van inwerkingtreding wordt beschouwd als aanvaarding van de gewijzigde voorwaarden.
6. De periodieke vergoeding voor de Software en het gebruik daarvan is steeds vooraf verschuldigd over de in de Overeenkomst overeengekomen termijn van één maand of één jaar. De periodieke vergoeding wordt elektronisch door 48-7 gefactureerd en kan, indien gewenst, door 48-7 per automatische incasso worden geïncasseerd, tenzij anders is overeengekomen. De periodieke vergoeding kan fluctueren indien de samenstelling van de Software en/of het aantal Gebruikers wijzigt.
7. Consultancy-, Training- en Development-opdrachten worden gefactureerd op basis van de in de offerte of Overeenkomst overeengekomen tarieven en voorwaarden. Facturatie geschiedt maandelijks achteraf op basis van de daadwerkelijk gemaakte uren, tenzij anders is overeengekomen in aanvullende projectspecifieke voorwaarden.
8. Betalingen anders dan via automatische incasso dienen te geschieden binnen 14 dagen na factuurdatum, tenzij schriftelijk anders is overeengekomen. Indien Opdrachtgever niet tijdig betaalt, is hij vanaf 14 dagen na de datum van de factuur van rechtswege in verzuim zonder dat hiervoor ingebrekestelling is vereist. Over het openstaande factuurbedrag wordt de wettelijke handelsrente verschuldigd.
9. Alle gerechtelijke en buitengerechtelijke kosten die verband houden met de inning van enige vordering op de Opdrachtgever komen voor diens rekening, voor zover wettelijk toegestaan. De buitengerechtelijke kosten bedragen ten minste 15% van het factuurbedrag of de factuurbedragen, met een minimum van €500, een en ander voor zover wettelijk toegestaan.
10. Zonder uitdrukkelijke schriftelijke toestemming van 48-7 is het de Opdrachtgever niet toegestaan zijn betalingsverplichtingen jegens 48-7 op te schorten en/of te verrekenen met een vordering van de Opdrachtgever op 48-7, om welke reden dan ook.
11. Betalingen door of namens de Opdrachtgever strekken achtereenvolgens ter voldoening van de verschuldigde buitengerechtelijke incassokosten, de gerechtelijke kosten, de verschuldigde rente en vervolgens de openstaande hoofdsommen in volgorde van ouderdom, ongeacht andersluidende instructies van de Opdrachtgever.
12. De vordering tot betaling is direct opeisbaar ingeval Opdrachtgever in staat van faillissement wordt verklaard, surseance van betaling aanvraagt, dan wel algeheel beslag op vermogensbestanddelen van Opdrachtgever wordt gelegd, Opdrachtgever overlijdt en ook indien deze in liquidatie treedt of wordt ontbonden.

---

## 9. Looptijd en Beëindiging

1. De Overeenkomst wordt aangegaan voor de looptijd zoals vastgelegd in de Overeenkomst (bijv. één jaar, twee jaar of onbepaalde tijd). De Overeenkomst kan tussentijds slechts worden opgezegd zoals in deze AV bepaald, of met goedvinden van beide Partijen.
2. Indien bepaalde Diensten naar hun strekking voor onbepaalde tijd worden geleverd, wordt de Overeenkomst voor deze Diensten geacht te zijn aangegaan voor perioden van steeds zes maanden. Beide Partijen kunnen de Overeenkomst steeds tegen het einde van deze periode schriftelijk opzeggen met een opzegtermijn van twee maanden.
3. Tenzij anders overeengekomen, kan de Overeenkomst voor bepaalde tijd door beide Partijen schriftelijk worden opgezegd tegen het einde van de dan geldende looptijd, met inachtneming van een opzegtermijn van negentig (90) dagen.
4. Opdrachtgever kan een Dienst strekkende tot het ontwikkelen of aanpassen van Werken tussentijds opzeggen tegen betaling van een afkoopsom gelijk aan de gemaakte uren tegen binnen 48-7 geldend uurtarief.
5. Na beëindiging van de Overeenkomst zal 48-7 de Opdrachtgever gedurende een periode van dertig (30) dagen de mogelijkheid bieden om gegevens opgeslagen in de Software te exporteren of op te vragen, in een gangbaar machineleesbaar formaat. Na afloop van deze termijn is 48-7 gerechtigd alle gegevens van de Opdrachtgever te verwijderen en alle accounts van Opdrachtgever op te heffen. 48-7 is niet verplicht Opdrachtgever een kopie van deze gegevens te verschaffen na het verstrijken van deze termijn.
6. Bij ontbinding of beëindiging als bedoeld in de voorgaande artikelen blijven de volgende verplichtingen van de Opdrachtgever jegens 48-7 van kracht:
   - openstaande vorderingen / betalingen;
   - aansprakelijkheid;
   - geheimhouding;
   - intellectuele eigendom.

---

## 10. Opschorting en Ontbinding

1. In de volgende gevallen is 48-7 gerechtigd de uitvoering van de Overeenkomst en/of het recht op gebruik van de Software onmiddellijk op te schorten of de Overeenkomst geheel of gedeeltelijk zonder ingebrekestelling en zonder rechterlijke tussenkomst te ontbinden, zonder tot enige schadevergoeding gehouden te zijn en onverminderd haar verdere rechten:
   - a) indien de Opdrachtgever enige betalings- of andere verplichting uit de met 48-7 gesloten Overeenkomst of een daarmee samenhangende overeenkomst niet, niet behoorlijk of niet tijdig nakomt;
   - b) in geval van faillissement, surseance van betaling, stillegging, liquidatie of gehele of gedeeltelijke overdracht – al dan niet tot zekerheid – van het bedrijf van de Opdrachtgever, waaronder begrepen de overdracht van een aanzienlijk deel van diens vorderingen.
2. In elk van de in het vorige lid bedoelde gevallen zijn alle vorderingen van 48-7 op de Opdrachtgever onmiddellijk en volledig opeisbaar.
3. Verplichtingen die naar hun aard bestemd zijn om ook na beëindiging of ontbinding van de Overeenkomst voort te duren, blijven onverminderd van kracht.

---

## 11. Overmacht

1. In geval van overmacht is 48-7 gerechtigd – naar eigen keuze – de uitvoering van de Overeenkomst voor de duur van de overmacht onmiddellijk op te schorten of de Overeenkomst geheel of gedeeltelijk zonder rechterlijke tussenkomst te ontbinden, zonder tot enige schadevergoeding gehouden te zijn.
2. Onder overmacht wordt verstaan: iedere omstandigheid buiten de macht van 48-7 – ook indien deze ten tijde van het sluiten van de Overeenkomst reeds voorzienbaar was – die de nakoming van de Overeenkomst blijvend of tijdelijk verhindert of bezwaarlijk maakt, alsmede, voor zover daaronder niet reeds begrepen, storingen of uitval van het internet, de telecommunicatie-infrastructuur, een (D)DoS-aanval, stroomuitval, oorlog of oorlogsdreiging, stakingen, epidemieën, personeelstekort en andere soortgelijke gebeurtenissen en/of ernstige verstoringen in het bedrijf van 48-7 of het bedrijf van een van haar toeleveranciers, transportproblemen en/of de annulering of te late uitvoering door derden van door 48-7 gesloten inkoop- of andere overeenkomsten. Dit geldt ongeacht of de omstandigheden die de overmacht veroorzaken zich voordoen in Nederland of in een ander land.
3. Wanneer de overmachtsituatie langer dan negentig (90) dagen heeft geduurd, zijn beide Partijen gerechtigd de Overeenkomst te ontbinden, zonder enige verplichting tot schadevergoeding.

---

## 12. Aansprakelijkheid

1. 48-7 kan niet aansprakelijk worden gehouden voor schade als gevolg van onjuiste en/of onvolledige medewerking van en/of door of namens de Opdrachtgever verstrekte informatie.
2. De Software kan suggesties doen voor c.q. worden gebruikt bij de verwerking van documenten en andere gegevens. De verantwoordelijkheid voor de juistheid van alles wat door de Opdrachtgever met de Software wordt verwerkt, waaronder documenten en gegevens, berust te allen tijde bij de Opdrachtgever en diens Gebruikers. AI-gegenereerde output dient altijd door de Opdrachtgever te worden gecontroleerd en gevalideerd alvorens hierop te vertrouwen.
3. 48-7 is slechts aansprakelijk tegenover Opdrachtgever in het geval van een toerekenbare tekortkoming in de nakoming van de Overeenkomst en uitsluitend voor vervangende schadevergoeding, dat wil zeggen vergoeding van de waarde van de achterwege gebleven prestatie. Onverminderd de elders in de Overeenkomst en deze AV overeengekomen beperkingen, is de aansprakelijkheid van 48-7 beperkt tot vergoeding van uitsluitend de directe schade, tot maximaal het totaalbedrag dat de Opdrachtgever in de twaalf (12) maanden voorafgaand aan de schadeveroorzakende gebeurtenis aan 48-7 heeft betaald, met een maximum van €50.000 per jaar. Deze aansprakelijkheidsbeperkingen gelden niet indien de schade het gevolg is van opzet of grove nalatigheid van 48-7 of haar leidinggevenden.
4. De aansprakelijkheid van 48-7 wegens toerekenbare tekortkoming in de nakoming van de Overeenkomst ontstaat slechts indien Opdrachtgever 48-7 direct en deugdelijk schriftelijk in gebreke stelt, waarbij een redelijke termijn gesteld wordt om de tekortkoming weg te nemen, en 48-7 ook na die termijn toerekenbaar in de nakoming van zijn verplichtingen tekort blijft schieten. De ingebrekestelling dient een zo gedetailleerd mogelijke omschrijving van de tekortkoming te bevatten, zodat 48-7 in staat is adequaat te reageren.
5. 48-7 kan nimmer aansprakelijk worden gehouden voor indirecte schade of verlies, waaronder gevolgschade, gederfde winst, gemiste besparingen, immateriële schade, bedrijfsstagnatie of zuiver financieel verlies, waaronder maar niet beperkt tot verlies of beschadiging van data, kosten van dataherstel of -reconstructie, verlies van productiecapaciteit, verlies van goodwill of reputatieschade, en eventuele daaruit voortvloeiende door derden aan de Opdrachtgever opgelegde boetes of sancties.
6. De Opdrachtgever vrijwaart 48-7 tegen alle aanspraken van derden, uit welken hoofde dan ook, die verband houden met de Overeenkomst of de uitvoering daarvan door 48-7 voor de Opdrachtgever.
7. Door het verloop van twaalf maanden na het ontstaan van de vordering tot schadevergoeding vervalt de vordering van Opdrachtgever jegens 48-7, tenzij Partijen een andere termijn zijn overeengekomen.
8. De aansprakelijkheidsbeperking op grond van deze AV strekt zich tevens uit tot door 48-7 ingeschakelde derden.

---

## 13. Intellectuele Eigendom

1. Alle intellectuele eigendomsrechten op de Software, inclusief maar niet beperkt tot broncode, documentatie, AI-modellen, algoritmen, trainingsdata en -methodologieën, berusten uitsluitend bij 48-7 of haar licentiegevers.
2. De Opdrachtgever verkrijgt uitsluitend een niet-exclusief, niet-overdraagbaar gebruiksrecht op de Software voor de duur van de Overeenkomst.
3. 48-7 gebruikt voor haar werkzaamheden open source software waarvan de rechten bij derden liggen. Voor door 48-7 zelf gemaakte Werken geldt dat de rechten bij 48-7 liggen, tenzij er met Opdrachtgever schriftelijk afgesproken wordt dat de rechten worden overgedragen. Daarbij geldt dat rechten op Werken die op maat voor Opdrachtgever gemaakt zijn, in beginsel na aanvaarding van de Overeenkomst aan Opdrachtgever toekomen.
4. Indien de rechten op Werken worden overgedragen van 48-7 naar Opdrachtgever, behoudt 48-7 een onbeperkte en eeuwigdurende licentie om het Werk en onderdelen daarvan te gebruiken in de bedrijfsvoering en uit te leveren aan anderen. Dit doet niets af aan de plicht van 48-7 om vertrouwelijke informatie van Opdrachtgever vertrouwelijk te behandelen.
5. Ieder gebruik, verveelvoudiging of openbaarmaking van de materialen dat buiten de strekking van de Overeenkomst of verleende gebruiksrechten valt, wordt beschouwd als een schending van het auteursrecht.
6. 48-7 zal de bronbestanden (zoals, maar niet beperkt tot, broncode, configuratiebestanden, prompt-templates) van geleverde Werken aan Opdrachtgever ter beschikking stellen. 48-7 zal bronbestanden van de Werken bewaren zolang 48-7 Diensten voor Opdrachtgever verricht, of het aannemelijk is dat 48-7 Diensten voor Opdrachtgever zal verrichten. 48-7 is gerechtigd na deze periode de bronbestanden te verwijderen.

---

## 14. Verwerking van Persoonsgegevens

1. Indien een Opdrachtgever persoonsgegevens invoert in de Software, zijn zowel de Opdrachtgever als 48-7 onderworpen aan de Algemene Verordening Gegevensbescherming (AVG), waarbij de Opdrachtgever verwerkingsverantwoordelijke is en 48-7 verwerker. De Opdrachtgever vrijwaart 48-7 tegen alle aanspraken van derden/betrokkenen op grond van de AVG, waaronder maar niet beperkt tot bestuurlijke boetes of sancties opgelegd door een toezichthouder, voortvloeiend uit niet-naleving door de Opdrachtgever als verwerkingsverantwoordelijke.
2. Krachtens de AVG dienen de verwerkingsverantwoordelijke en de verwerker een verwerkersovereenkomst te sluiten met betrekking tot de verwerking van persoonsgegevens. De verwerkersovereenkomst tussen 48-7 en de Opdrachtgever wordt in een afzonderlijk document vastgelegd.
3. 48-7 zorgt voor een passend beveiligingsniveau dat in verhouding staat tot de risico's die met de verwerking en de aard van de te beschermen persoonsgegevens zijn gemoeid, doch uitsluitend voor zover deze zich in de Diensten of infrastructuur van 48-7 bevinden.
4. 48-7 garandeert dat eenieder die onder haar gezag handelt en toegang heeft tot persoonsgegevens waarvoor de Opdrachtgever verantwoordelijk is, deze uitsluitend verwerkt in opdracht van de Opdrachtgever.
5. 48-7 maakt gebruik van subverwerkers ten behoeve van de levering van de Diensten, waaronder cloudinfrastructuur en AI-dienstverleners. Een actueel overzicht van subverwerkers wordt opgenomen in de verwerkersovereenkomst. 48-7 zal de Opdrachtgever informeren bij materiële wijzigingen in het subverwerkerregister.
6. 48-7 zal de Opdrachtgever onverwijld, doch uiterlijk binnen 48 uur na constatering, informeren over een inbreuk in verband met persoonsgegevens (datalek) die betrekking heeft op persoonsgegevens van de Opdrachtgever. 48-7 zal redelijke medewerking verlenen aan het onderzoek naar en de afhandeling van het datalek.
7. De Opdrachtgever garandeert dat hij uitsluitend op rechtmatige wijze persoonsgegevens invoert in de Diensten van 48-7 en draagt hiervoor de volledige verantwoordelijkheid.
8. Indien de Opdrachtgever op grond van een wettelijke verplichting, bijvoorbeeld onder de AVG, gehouden is gegevens opgeslagen in de Software van 48-7 te wijzigen, te verwijderen of over te dragen, zal 48-7 hierbij assisteren voor zover mogelijk. De kosten van eventuele werkzaamheden kunnen apart in rekening worden gebracht op basis van het geldende uurtarief.

---

## 15. Geheimhouding

1. Partijen zullen informatie die zij voor, tijdens of na de uitvoering van de Overeenkomst aan elkaar verstrekken, vertrouwelijk behandelen wanneer deze informatie is gemarkeerd als vertrouwelijk of wanneer de ontvangende Partij weet of behoort te weten dat de informatie als vertrouwelijk bedoeld was. Onder vertrouwelijke informatie wordt onder meer maar niet uitsluitend verstaan: AI-modelarchitecturen, eigen algoritmen, trainingsdata en -methodologieën, specifieke operationele benchmarks, bedrijfsprocessen, klantgegevens en prijsafspraken. Partijen leggen deze verplichting tevens op aan hun werknemers alsmede aan door hen ingeschakelde derden ter uitvoering van de Overeenkomst.
2. 48-7 mag de kennis die zij heeft opgedaan bij het uitvoeren van de Overeenkomst gebruiken voor andere opdrachten, voor zover hierbij geen vertrouwelijke informatie van Opdrachtgever in strijd met verplichtingen omtrent vertrouwelijkheid beschikbaar komt voor derden.
3. De verplichtingen uit dit artikel blijven ook bestaan na beëindiging van de Overeenkomst om welke reden dan ook, en wel voor zolang als de Partij die de informatie verstrekt redelijkerwijs aanspraak kan maken op het vertrouwelijke karakter van de informatie.
4. De in dit artikel opgenomen geheimhoudingsplicht geldt niet voor informatie waarvan de ontvangende Partij kan aantonen dat:
   - a. de informatie reeds publiekelijk bekend was;
   - b. de informatie algemeen bekend was;
   - c. openbaarmaking geschiedt op grond van een wettelijke verplichting of rechterlijk bevel.

---

## 16. Overdracht

1. Het is de Opdrachtgever verboden zijn vorderingen, rechten en/of verplichtingen uit de Overeenkomst onder welke titel dan ook aan een derde te cederen, te verpanden of over te dragen, zonder voorafgaande schriftelijke toestemming van 48-7.
2. 48-7 is gerechtigd haar vorderingen, rechten en/of verplichtingen uit de Overeenkomst onder welke titel dan ook aan een derde te cederen, te verpanden of over te dragen, waaronder aan een moeder-, dochter- of zustermaatschappij.

---

## 17. Boetebeding

1. Bij schending van de bepalingen van de artikelen 13 (Intellectuele Eigendom), 15 (Geheimhouding) en/of 16 (Overdracht) verbeurt de Opdrachtgever aan 48-7, zonder dat ingebrekestelling of rechterlijke tussenkomst is vereist, een onmiddellijk opeisbare eenmalige boete van €5.000, vermeerderd met €500 voor iedere dag of gedeelte daarvan dat de overtreding voortduurt.
2. Een door de Opdrachtgever verschuldigde boete doet geen afbreuk aan het recht van 48-7 op vergoeding van door haar geleden schade, kosten en rente.

---

## 18. Toepasselijk Recht en Geschillen

1. Op deze Overeenkomst is uitsluitend Nederlands recht van toepassing. Toepasselijkheid van het Weens Koopverdrag (CISG) is uitdrukkelijk uitgesloten.
2. Geschillen tussen de Partijen die verband houden met deze Overeenkomst en die niet in onderling overleg kunnen worden opgelost, worden voorgelegd aan de bevoegde Nederlandse rechter te Groningen, tenzij Partijen overeenkomen het geschil te beslechten door middel van arbitrage of een bindend advies.

---

## 19. Slotbepalingen

1. **Wijziging:** 48-7 behoudt zich het recht voor deze Algemene Voorwaarden te wijzigen of aan te vullen. Wijzigingen worden ten minste dertig (30) dagen voor inwerkingtreding per e-mail aan de Opdrachtgever medegedeeld. Indien de Opdrachtgever een materiële wijziging niet wenst te accepteren, kan hij de Overeenkomst opzeggen tegen de datum van inwerkingtreding van de wijziging. 48-7 mag op elk moment wijzigingen doorvoeren die noodzakelijk zijn vanwege gewijzigde wettelijke regelingen; tegen dergelijke wijzigingen kan Opdrachtgever geen bezwaar maken.
2. **Partiële nietigheid:** Indien enige bepaling in de Overeenkomst en/of deze AV nietig mocht zijn, laat dit de geldigheid van de Overeenkomst/Algemene Voorwaarden als geheel onverlet. Partijen zullen een of meer nieuwe bepalingen vaststellen ter vervanging van de nietige bepalingen, die de strekking van de oorspronkelijke Overeenkomst/Algemene Voorwaarden zo dicht mogelijk benaderen.
3. Wijzigingen in de directie of rechtsvorm van 48-7 hebben geen invloed op de Overeenkomst.
4. Eventuele algemene voorwaarden van de zijde van de Opdrachtgever zijn niet van toepassing op deze Overeenkomst, ook niet indien Partijen in hun briefpapier, offertes, facturen of anderszins naar deze voorwaarden verwijzen, tenzij deze uitdrukkelijk schriftelijk door 48-7 zijn aanvaard.
5. **Schriftelijk:** Onder "schriftelijk" vallen in deze voorwaarden ook e-mail, Slack, WhatsApp en communicatie per fax of vergelijkbare digitale communicatiemiddelen, mits de identiteit van de afzender en de integriteit van de inhoud voldoende vaststaat. Partijen zullen zich inspannen de ontvangst en inhoud van communicatie per e-mail te bevestigen.
6. De door 48-7 ontvangen of opgeslagen versie van enige communicatie geldt als authentiek, behoudens tegenbewijs te leveren door Opdrachtgever.

---

## Contactgegevens

Bij vragen, klachten of opmerkingen over deze Algemene Voorwaarden kun je contact met ons opnemen:

**48-7 AI Professionals**
E-mail: hallo@48-7.nl
Telefoon: +31 085-06 01 487
Website: https://48-7.nl

Euvelgunnerweg 25a
9723 CV Groningen
KvK: 85131938
BTW: NL863520194B01
`;function Zte(){return e.jsx("div",{className:"min-h-screen bg-white pt-24 pb-16",children:e.jsx("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8",children:e.jsx("div",{className:`prose prose-gray max-w-none
          [&_h1]:text-3xl [&_h1]:font-bold [&_h1]:text-[#0D0D0F] [&_h1]:mb-2
          [&_h2]:text-xl [&_h2]:font-bold [&_h2]:text-[#0D0D0F] [&_h2]:mt-10 [&_h2]:mb-4
          [&_h3]:text-lg [&_h3]:font-semibold [&_h3]:text-[#0D0D0F] [&_h3]:mt-6 [&_h3]:mb-3
          [&_p]:text-gray-700 [&_p]:leading-relaxed [&_p]:mb-4 [&_p]:text-base
          [&_ol]:text-gray-700 [&_ol]:mb-4 [&_ol]:pl-6 [&_ol]:list-decimal
          [&_ul]:text-gray-700 [&_ul]:mb-4 [&_ul]:pl-6 [&_ul]:list-disc
          [&_li]:mb-2 [&_li]:leading-relaxed
          [&_strong]:font-semibold [&_strong]:text-[#0D0D0F]
          [&_em]:text-gray-500
          [&_hr]:border-gray-200 [&_hr]:my-8
          [&_a]:text-[#FAB868] [&_a]:hover:underline
        `,children:e.jsx(Vu,{children:Jte})})})})}const{Pages:X6,Layout:l4,mainPage:ene}=Y6,J6=ene,tne=X6[J6],Nv=({children:t,currentPageName:n})=>l4?e.jsx(l4,{currentPageName:n,children:t}):e.jsx(e.Fragment,{children:t}),nne=()=>{const{isLoadingAuth:t,isLoadingPublicSettings:n,authError:r,navigateToLogin:i}=oC();if(n||t)return e.jsx("div",{className:"fixed inset-0 flex items-center justify-center",children:e.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 e.jsx(Xte,{});if(r.type==="auth_required")return i(),null}return e.jsxs(OR,{children:[e.jsx(Tc,{path:"/",element:e.jsx(Nv,{currentPageName:J6,children:e.jsx(tne,{})})}),Object.entries(X6).map(([s,a])=>e.jsx(Tc,{path:`/${s}`,element:e.jsx(Nv,{currentPageName:s,children:e.jsx(a,{})})},s)),e.jsx(Tc,{path:"/voorwaarden",element:e.jsx(Nv,{currentPageName:"Voorwaarden",children:e.jsx(Zte,{})})}),e.jsx(Tc,{path:"*",element:e.jsx(Yte,{})})]})};function rne(){return e.jsx(YL,{children:e.jsxs(AI,{client:BI,children:[e.jsxs(LR,{children:[e.jsx(Qte,{}),e.jsx(nne,{})]}),e.jsx(rI,{})]})})}r3.createRoot(document.getElementById("root")).render(e.jsx(rne,{}))});export default ine();